/** * * additems toolbar */ protected function addToolbar() { //$sliderTitle = $this->arrSliders[$this->sliderID]["title"]; $arrSlider = HelperUniteRev::getSlider($this->sliderID); $sliderTitle = $arrSlider["title"]; $title = JText::_('COM_UNITEREVOLUTION') . " - " . $sliderTitle . " - "; $title .= "<small>[" . JText::_('COM_UNITEREVOLUTION_SLIDES') . "]</small>"; JToolBarHelper::title($title, 'generic.png'); $numSliders = count($this->arrSliders); if ($numSliders > 0) { JUniteToolBarHelperRev::addComboButton("button_new_slide", "Add Slide", "Adding...", "Slide Added!", "icon-32-new"); JToolBarHelper::divider(); JUniteToolBarHelperRev::addCustomButton("button_close", "Close", "icon-32-cancel"); } }
/** * * add toolbars */ protected function addToolbar() { $title = JText::_('COM_UNITEREVOLUTION') . " - "; if ($this->isNew) { $title .= '<small>[ ' . JText::_('COM_UNITEREVOLUTION_NEW') . ' ]</small>'; } else { $title .= $this->item->title . " <small>[" . JText::_("COM_UNITEREVOLUTION_EDIT_SETTINGS") . "]</small>"; } JToolBarHelper::title($title, 'generic.png'); /* JToolBarHelper::addNew("new","new something"); JToolBarHelper::apply(); JToolBarHelper::cancel(); JToolBarHelper::save(); */ JUniteToolBarHelperRev::addComboButton("button_save", "Save", "Saving...", "Saved!", "icon-32-apply"); if ($this->isNew == false) { JUniteToolBarHelperRev::addComboButton("button_save_duplicate", "Save & Copy", "Saving...", "Saved!", "icon-32-save-copy"); } JUniteToolBarHelperRev::addComboButton("button_save_close", "Save & Close", "Saving...", "Saved!", "icon-32-save"); JUniteToolBarHelperRev::addCustomButton("button_cancel", "Cancel", "icon-32-cancel"); }
/** * * add the toolbar */ protected function addToolbar() { JRequest::setVar('hidemainmenu', true); $user = JFactory::getUser(); $userId = $user->get('id'); $isNew = $this->item->id == 0; $checkedOut = false; $canDo = true; $sliderTitle = $this->slider["title"]; $title = JText::_('COM_UNITEREVOLUTION') . ' - ' . $sliderTitle; if ($isNew) { $title .= " - <small>[" . JText::_('COM_UNITEREVOLUTION_NEW_SLIDE') . "]</small>"; } else { $title .= " <small>[" . JText::_('COM_UNITEREVOLUTION_EDIT_SLIDE') . ", ID:{$this->item->id}]</small>"; } JToolBarHelper::title($title, 'generic.png'); JUniteToolBarHelperRev::addComboButton("button_save_slide", "Save", "Saving...", "Saved!"); JUniteToolBarHelperRev::addComboButton("button_save_slide_new", "Save & New", "Saving...", "Saved!", "icon-32-save-new"); JUniteToolBarHelperRev::addComboButton("button_save_slide_copy", "Save & Copy", "Saving...", "Saved!", "icon-32-save-copy"); JUniteToolBarHelperRev::addComboButton("button_save_slide_close", "Save & Close", "Saving...", "Saved!", "icon-32-save"); JUniteToolBarHelperRev::addCustomButton("button_cancel", "Cancel", "icon-32-cancel"); }