Jump to content
Sign in to follow this  
Unavoidable

[Решено] Хлебные крошки. Как сделать, чтобы последний пункт не был ссылкой?

Recommended Posts

Подскажите, как сделать, чтобы в строке навигации последний пункт не был ссылкой? 

Share this post


Link to post
Share on other sites

<div class="breadcrumb">
        <?php foreach ($breadcrumbs as $i=> $breadcrumb) { ?>
        <?php if($i+1<count($breadcrumbs)) { ?><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a> <?php } else { ?><span class="active_breadcrumb"><?php echo $breadcrumb['text']; ?></span><?php } ?>
        <?php } ?>
  </div>

Share this post


Link to post
Share on other sites

<div class="breadcrumb">

        <?php foreach ($breadcrumbs as $i=> $breadcrumb) { ?>

        <?php if($i+1<count($breadcrumbs)) { ?><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a> <?php } else { ?><span class="active_breadcrumb"><?php echo $breadcrumb['text']; ?></span><?php } ?>

        <?php } ?>

  </div>

 

Спасибо.

Share this post


Link to post
Share on other sites

нзч

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.