function display($tpl = null) { global $mainframe; JHTML::stylesheet('phocagallery.css', 'administrator/components/com_phocagallery/assets/'); JToolBarHelper::title(JText::_('Phoca Gallery Info'), 'info'); JToolBarHelper::cancel('cancel', 'Close'); JToolBarHelper::help('screen.phocagallery', true); $version = PhocaGalleryHelper::getPhocaVersion(); $this->assignRef('version', $version); parent::display($tpl); }
function display($tpl = null) { JHTML::stylesheet('phocagallery.css', 'administrator/components/com_phocagallery/assets/'); global $mainframe; $uri =& JFactory::getURI(); $document =& JFactory::getDocument(); $db =& JFactory::getDBO(); JToolBarHelper::title(' ' . JText::_('Phoca Gallery Control Panel'), 'phoca'); JToolBarHelper::preferences('com_phocagallery', '460'); JToolBarHelper::help('screen.phocagallery', true); JHTML::_('behavior.tooltip'); $version = PhocaGalleryHelper::getPhocaVersion(); $this->assignRef('version', $version); parent::display($tpl); }
/** * Method to get Phoca Information for using them in footer * @param int $display_phoca_info Parameter for displaying Phoca Information - All, Logo, Version, Nothing * @return string HTML code of Phoca Information */ function getPhocaInfoCode($display_phoca_info) { $version = PhocaGalleryHelper::getPhocaVersion(); $output = ''; if ($display_phoca_info != 0) { $output .= '<p> </p>'; $output .= '<div style="text-align:center">'; } if ($display_phoca_info == 1 || $display_phoca_info == 2) { $output .= '<a href="http://www.phoca.cz/" style="text-decoration:none" target="_blank">' . JHTML::_('image', 'components/com_phocagallery/assets/images/icon-phoca-logo.png', 'Phoca.cz') . '</a>'; } if ($display_phoca_info == 1 || $display_phoca_info == 3) { $output .= ' <a href="http://www.phoca.cz/" style="text-decoration:none" target="_blank">' . $version . '</a>'; } if ($display_phoca_info == 4) { $output .= ' <a href="http://www.phoca.cz/" style="text-decoration:none" target="_blank">Phoca Gallery</a>'; } if ($display_phoca_info == 5) { $output .= ' <a href="http://www.phoca.cz/" style="text-decoration:none" target="_blank">Phoca Gallery ' . $version . '</a>'; } if ($display_phoca_info == 6) { $output .= ' <a href="http://www.phoca.cz/" style="text-decoration:none" target="_blank">' . JHTML::_('image', 'components/com_phocagallery/assets/images/icon-phoca-logo-seal.png', 'Phoca.cz') . '</a>'; } if ($display_phoca_info != 0) { $output .= '</div>'; } else { $output .= '<!-- <a href="http://www.phoca.cz/">site: www.phoca.cz | version: ' . $version . '</a> -->'; // info for developers, need not to ask for the Phoca Gallery version.... } return $output; }