Reply New Topic
2011/3/21 14:53:24
#1
Offline
Home away from home

Re: [Trac Ticket #21] ACP Breadcrumbs in 1.3

Is this of any help?


/**
* Breadcrumb
*
* Managing page breadcrumb
*
* @copyright The ImpressCMS Project http://www.impresscms.org/
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU General Public License (GPL)
* @category ICMS
* @package View
* @subpackage Breadcrumb
* @author marcan <marcan@impresscms.org>
*/
class icms_view_Breadcrumb {

private $_tpl;
private $items;

/**
* Constructor
* @param array $items An array of items for the breadcrumb
*/
public function __construct($items) {
$this->items = $items;
}

/**
* Adds the breadcrumb items to the template
* @param boolean $fetchOnly Whether to display the breadcrumbs, or not
*/
public function render($fetchOnly = FALSE) {

$this->_tpl = new icms_view_Tpl();
$this->_tpl->assign('icms_breadcrumb_items', $this->items);

if ($fetchOnly) {
return $this->_tpl->fetch('db:system_breadcrumb.html');
} else {
$this->_tpl->display('db:system_breadcrumb.html');
}
}
}

_________________
Christian Web Resources
Facebook

Subject Poster Date
     [Trac Ticket #21] ACP Breadcrumbs in 1.3 Will 2009/12/3 12:10:17
       Re: ACP Breadcrumbs in 1.3 phoenyx 2009/12/3 13:12:13
         Re: ACP Breadcrumbs in 1.3 Will 2009/12/3 13:15:10
           Re: ACP Breadcrumbs in 1.3 skenow 2009/12/3 20:04:07
             Re: ACP Breadcrumbs in 1.3 nachenko 2009/12/4 0:36:32
               Re: ACP Breadcrumbs in 1.3 phoenyx 2009/12/4 11:29:25
                 Re: ACP Breadcrumbs in 1.3 Will 2009/12/4 11:32:42
                 Re: ACP Breadcrumbs in 1.3 skenow 2009/12/5 17:55:03
       Re: ACP Breadcrumbs in 1.3 fiammybe 2011/3/3 3:39:59
       Re: [Trac Ticket #21] ACP Breadcrumbs in 1.3 fiammybe 2011/3/21 13:41:52
         Re: [Trac Ticket #21] ACP Breadcrumbs in 1.3 skenow 2011/3/21 14:53:24
           Re: [Trac Ticket #21] ACP Breadcrumbs in 1.3 david 2011/3/22 1:56:21
       Re: [Trac Ticket #21] ACP Breadcrumbs in 1.3 Will 2011/3/22 4:43:23
         Re: [Trac Ticket #21] ACP Breadcrumbs in 1.3 skenow 2011/3/22 7:07:05
       Re: [Trac Ticket #21] ACP Breadcrumbs in 1.3 fiammybe 2011/3/24 12:45:08
       Re: [Trac Ticket #21] ACP Breadcrumbs in 1.3 fiammybe 2011/4/7 14:34:31
Reply New Topic extras
 Previous Topic   Next Topic
You can view topic.
You can start a new topic.
You can reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You can post without approval.