Jump to content
Дизайн и модификация IPS Community IPBSkinsBETA
Search In
  • More options...
Find results that contain...
Find results in...
Sign in to follow this  
dozoruj

Некликабельные хлебные крошки

Recommended Posts

Здравствуйте. Хочу сделать чтобы последняя ссылка в хлебных крошках не была кликабельной.

Нашел код, который формирует хлебные крошки: /forums/forums.php

		
if( is_array( $this->nav ) AND count( $this->nav ) )
	{
		foreach( $this->nav as $_id => $_nav )
		{
			$this->registry->getClass('output')->addNavigation( $_nav[0], $_nav[1], $_nav[2], $_nav[3] );
		}
	}

 

Пытался сделать сам, однако не слишком силен в php. просба подскахать как это реализовать.

Share this post


Link to post
Share on other sites
        if( is_array( $this->nav ) AND count( $this->nav ) )
       {
           $keys = array_keys($this->nav);
           $lastKey = end($keys);

           foreach( $this->nav as $_id => $_nav )
           {
               if ($_id == $lastKey)
               {
                   $_nav[1] = '';
               }

               $this->registry->getClass('output')->addNavigation( $_nav[0], $_nav[1], $_nav[2], $_nav[3] );
           }
       }

  • Upvote 2

Share this post


Link to post
Share on other sites

Благодарю. Помогло.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...