the-art-of-joomla-archive /pdf/code/trunk/administrator/components/com_artofpdf/views/com_menus/tmpl/menu_default.php

Language PHP Lines 55
MD5 Hash 33dbfaa1682ea0f2b1fa304c2ac56fca Estimated Cost $585 (why?)
Repository https://bitbucket.org/eddieajau/the-art-of-joomla-archive View Raw File View Project SPDX
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<?php
/**
 * @version		$Id: menu_default.php 385 2010-11-03 09:01:13Z eddieajau $
 * @package		NewLifeInIT
 * @subpackage	com_artofpdf
 * @copyright	Copyright 2010 New Life in IT Pty Ltd. All rights reserved.
 * @license		GNU General Public License version 2 or later.
 * @link		http://www.theartofjoomla.com
 */

// No direct access
defined('_JEXEC') or die;

JHtml::addIncludePath(JPATH_COMPONENT.'/helpers/html');
//JHtml::stylesheet('default.css', 'administrator/components/com_artofpdf/media/css/');

// This view is rather complicated so we need to work directly with the model.
$model		= $this->getModel();

// Clone the current item so it doesn't get blown up in the recursion.
$resolved	= clone $this->resolved;
$level		= (int) $resolved->level;
$title		= sprintf(
	'&nbsp;<h%d>%s</h%d>',
	$level+1,
	$resolved->title,
	$level+1
);
?>

<?php if ($resolved->newpage) : ?>
<!--NEWPAGE-->
<?php endif; ?>

<?php if ($resolved->bookmark) : ?>
<!--BOOKMARK<?php echo $level; ?> <?php echo $resolved->bookmark; ?>-->
<?php endif; ?>
<?php echo $title; ?>

<?php echo $resolved->html; ?>

<?php foreach ($resolved->children as $child) : ?>
<?php
	if ($child instanceof JPdfContent) :
		// This content for this item has already been resolved.
		$this->resolved = $child;
	else :
		// Resolve the item.
		$this->resolved = $model->resolve($child);
	endif;

	echo $this->loadTemplate($this->resolved->layout);
?>
<?php endforeach; ?>
Back to Top