Reply New Topic
21/3/2011 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 3/12/2009 12:10:17
       Re: ACP Breadcrumbs in 1.3 phoenyx 3/12/2009 13:12:13
         Re: ACP Breadcrumbs in 1.3 Will 3/12/2009 13:15:10
           Re: ACP Breadcrumbs in 1.3 skenow 3/12/2009 20:04:07
             Re: ACP Breadcrumbs in 1.3 nachenko 4/12/2009 0:36:32
               Re: ACP Breadcrumbs in 1.3 phoenyx 4/12/2009 11:29:25
                 Re: ACP Breadcrumbs in 1.3 Will 4/12/2009 11:32:42
                 Re: ACP Breadcrumbs in 1.3 skenow 5/12/2009 17:55:03
       Re: ACP Breadcrumbs in 1.3 fiammybe 3/3/2011 3:39:59
       Re: [Trac Ticket #21] ACP Breadcrumbs in 1.3 fiammybe 21/3/2011 13:41:52
         Re: [Trac Ticket #21] ACP Breadcrumbs in 1.3 skenow 21/3/2011 14:53:24
           Re: [Trac Ticket #21] ACP Breadcrumbs in 1.3 david 22/3/2011 1:56:21
       Re: [Trac Ticket #21] ACP Breadcrumbs in 1.3 Will 22/3/2011 4:43:23
         Re: [Trac Ticket #21] ACP Breadcrumbs in 1.3 skenow 22/3/2011 7:07:05
       Re: [Trac Ticket #21] ACP Breadcrumbs in 1.3 fiammybe 24/3/2011 12:45:08
       Re: [Trac Ticket #21] ACP Breadcrumbs in 1.3 fiammybe 7/4/2011 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.