/** * Add nesscessary JS & CSS files * * @return void */ private function _addAssets() { $objJSNMedia = JSNISFactory::getObj('classes.jsn_is_media'); !class_exists('JSNBaseHelper') or JSNBaseHelper::loadAssets(); $objJSNMedia->addStyleSheet(JURI::root(true) . '/administrator/components/com_imageshow/assets/css/imageshow.css'); JSNHtmlAsset::addScript(JURI::root(true) . '/media/jui/js/jquery.min.js'); $objJSNMedia->addScript(JURI::root(true) . '/administrator/components/com_imageshow/assets/js/joomlashine/conflict.js'); JSNHtmlAsset::addScript(JSN_URL_ASSETS . '/3rd-party/jquery-ui/js/jquery-ui-1.9.0.custom.min.js'); // Add toolbar menu JSNISImageShowHelper::addToolbarMenu(); // Set the submenu JSNISImageShowHelper::addSubmenu('about'); }
/** * Add the page title and toolbar. * * @return void */ protected function addToolbar() { jimport('joomla.html.toolbar'); $canDo = JSNISImageShowHelper::getActions(); $bar = JToolBar::getInstance('toolbar'); JHTML::_('behavior.tooltip'); JHTML::_('behavior.modal', 'a.modal'); JToolBarHelper::title(JText::_('JSN_IMAGESHOW') . ': ' . JText::_('SHOWCASE_SHOWCASES_MANAGER'), 'showcase'); $objJSNUtils = JSNISFactory::getObj('classes.jsn_is_utils'); $objJSNShowcase = JSNISFactory::getObj('classes.jsn_is_showcase'); //$limitStatus = $objJSNUtils->checkLimit(); //$count = $objJSNShowcase->countShowcase(); //if (@$count[0] >= 3 && $limitStatus == true) //{ //$bar->appendButton('Custom', '<button class="btn btn-small btn-success jsn-popup-upgrade disabled"><i class="icon-new icon-white"> </i>' . JText::_('JTOOLBAR_NEW') . '</button>'); //} //else //{ if ($canDo->get('core.create')) { JToolBarHelper::addNew(); JToolBarHelper::custom('copy', 'copy.png', 'copy_f2.png', JText::_('JSN_IMAGESHOW_SHOWCASES_COPY'), true); } //} if ($canDo->get('core.edit')) { JToolBarHelper::editList(); JToolBarHelper::divider(); } if ($canDo->get('core.edit.state')) { JToolBarHelper::publishList(); JToolBarHelper::unpublishList(); JToolBarHelper::divider(); } if ($canDo->get('core.delete')) { //JToolBarHelper::deleteList(); JToolBarHelper::deleteList('JSN_IMAGESHOW_CONFIRM_DELETE', 'remove', 'JTOOLBAR_DELETE'); JToolBarHelper::divider(); } // Add toolbar menu JSNISImageShowHelper::addToolbarMenu(); // Set the submenu JSNISImageShowHelper::addSubmenu('showcases'); }
/** * Add the page title and toolbar. * * @return void */ protected function addToolbar() { jimport('joomla.html.toolbar'); // Add toolbar menu JSNISImageShowHelper::addToolbarMenu(); // Set the submenu JSNISImageShowHelper::addSubmenu('cpanel'); //$path = JPATH_COMPONENT_ADMINISTRATOR . DS . 'helpers'; //$toolbar = JToolBar::getInstance('toolbar'); //$toolbar->addButtonPath($path); //$toolbar->appendButton('JSNHelpButton', '', '', 'index.php?option=com_imageshow&controller=help&tmpl=component', 960, 480); //JToolBarHelper::divider(); //$toolbar->appendButton('JSNMenuButton'); }
/** * Add the page title and toolbar. * * @return void */ protected function addToolbar() { jimport('joomla.html.toolbar'); // Add toolbar menu JSNISImageShowHelper::addToolbarMenu(); // Set the submenu JSNISImageShowHelper::addSubmenu('maintenance'); }