PageRenderTime 49ms CodeModel.GetById 18ms RepoModel.GetById 1ms app.codeStats 0ms

/pdf/code/trunk/administrator/components/com_artofpdf/views/artofpdf/view.html.php

https://bitbucket.org/eddieajau/the-art-of-joomla-archive
PHP | 53 lines | 19 code | 7 blank | 27 comment | 0 complexity | 1b7a84dd62cea6f69fb55b67c198d394 MD5 | raw file
  1. <?php
  2. /**
  3. * @version $Id: view.html.php 276 2010-09-10 10:15:53Z eddieajau $
  4. * @package NewLifeInIT
  5. * @subpackage com_artofpdf
  6. * @copyright Copyright 2010 New Life in IT Pty Ltd. All rights reserved.
  7. * @license GNU General Public License version 2 or later.
  8. * @link http://www.theartofjoomla.com
  9. */
  10. // No direct access
  11. defined('_JEXEC') or die;
  12. jimport('joomla.application.component.view');
  13. /**
  14. * @package NewLifeInIT
  15. * @subpackage com_artofpdf
  16. */
  17. class ArtofPdfViewArtofPdf extends JView
  18. {
  19. /**
  20. * Override the display method for the view.
  21. *
  22. * @return void
  23. * @since 1.0
  24. */
  25. public function display()
  26. {
  27. ArtofPdfHelper::addSubmenu($this->getName());
  28. $this->addToolbar();
  29. parent::display();
  30. }
  31. /**
  32. * Add the page title and toolbar.
  33. *
  34. * @return void
  35. * @since 1.0
  36. */
  37. protected function addToolbar()
  38. {
  39. // Add the view title.
  40. JToolBarHelper::title(JText::_('COM_ARTOFPDF_PDFS_TITLE'));
  41. JToolBarHelper::preferences('');
  42. // We can't use the toolbar helper here because there is no generic popup button.
  43. JToolBar::getInstance('toolbar')
  44. ->appendButton('Popup', 'help', 'COM_ARTOFPDF_ABOUT', 'index.php?option=com_artofpdf&view=about&tmpl=component');
  45. }
  46. }