/pdf/code/trunk/administrator/components/com_artofpdf/views/artofpdf/view.html.php
PHP | 53 lines | 19 code | 7 blank | 27 comment | 0 complexity | 1b7a84dd62cea6f69fb55b67c198d394 MD5 | raw file
- <?php
- /**
- * @version $Id: view.html.php 276 2010-09-10 10:15:53Z 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;
- jimport('joomla.application.component.view');
- /**
- * @package NewLifeInIT
- * @subpackage com_artofpdf
- */
- class ArtofPdfViewArtofPdf extends JView
- {
- /**
- * Override the display method for the view.
- *
- * @return void
- * @since 1.0
- */
- public function display()
- {
- ArtofPdfHelper::addSubmenu($this->getName());
- $this->addToolbar();
- parent::display();
- }
- /**
- * Add the page title and toolbar.
- *
- * @return void
- * @since 1.0
- */
- protected function addToolbar()
- {
- // Add the view title.
- JToolBarHelper::title(JText::_('COM_ARTOFPDF_PDFS_TITLE'));
- JToolBarHelper::preferences('');
- // We can't use the toolbar helper here because there is no generic popup button.
- JToolBar::getInstance('toolbar')
- ->appendButton('Popup', 'help', 'COM_ARTOFPDF_ABOUT', 'index.php?option=com_artofpdf&view=about&tmpl=component');
- }
- }