Breadcrumb com icone

  • legus
  • Avatar de legus Autor do Tópico
  • Offline
  • JCB! Junior
  • JCB! Junior
Mais
13 anos 3 meses atrás #74192 por legus
legus created the topic: Breadcrumb com icone
Boa noite!
Estou tentando substituir a palavra "home" do breadcrumb por uma imagem, mas não estou conseguindo entender muito bem. (imagem em anexo)

Podem me dar uma luz? Pois não quero usar módulos.

Grato
<?php
/**
 * @package		Joomla.Site
 * @subpackage	mod_breadcrumbs
 * @copyright	Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
 * @license		GNU General Public License version 2 or later; see LICENSE.txt
 */

// no direct access
defined('_JEXEC') or die;
?>

<div class="breadcrumbs<?php echo $moduleclass_sfx; ?>">
<?php if ($params->get('showHere', 1))
	{
		echo '<span class="showHere">' .JText::_('MOD_BREADCRUMBS_HERE').'</span>';
	}
?>
<?php for ($i = 0; $i < $count; $i ++) :

	// If not the last item in the breadcrumbs add the separator
	if ($i < $count -1) {
		if (!empty($list&#91;$i&#93;->link)) {

//
			
echo '<a href="'.$list&#91;$i&#93;->link.'" class="pathway">'.$list&#91;$i&#93;->name.'</a>';
			


	
		} else {
			echo '<span>';
			echo $list&#91;$i&#93;->name;
			echo '</span>';
		}
		if($i < $count -2){
			echo ' '.$separator.' ';
		}
	}  elseif ($params->get('showLast', 1)) { // when $i == $count -1 and 'showLast' is true
		if($i > 0){
			echo ' '.$separator.' ';
		}
		 echo '<span>';
		echo $list&#91;$i&#93;->name;
		  echo '</span>';
	}
endfor; ?>
</div>

Compartilhe conhecimento, não morra com ele!
Anexos:

Please Entrar ou Registrar to join the conversation.