AAAA.htaccess000066600000000177151373531020006353 0ustar00 Order allow,deny Deny from all edit_metadata.php000066600000002650151373531020010051 0ustar00form->getFieldsets('metadata'); foreach ($fieldSets as $name => $fieldSet) : echo JHtml::_('sliders.panel', JText::_($fieldSet->label), $name.'-options'); if (isset($fieldSet->description) && trim($fieldSet->description)) : echo '

'.$this->escape(JText::_($fieldSet->description)).'

'; endif; ?>
label); ?>
index.html000066600000000037151373531020006545 0ustar00 edit.php000066600000010302151373531020006202 0ustar00 edit_params.php000066600000001740151373531020007553 0ustar00form->getFieldsets('params'); foreach ($fieldSets as $name => $fieldSet) : echo JHtml::_('sliders.panel', JText::_($fieldSet->label), $name.'-params'); if (isset($fieldSet->description) && trim($fieldSet->description)) : echo '

'.$this->escape(JText::_($fieldSet->description)).'

'; endif; ?>
label); ?>
tmpl/edit_params.php000066600000001566151374155720010547 0ustar00form->getFieldsets('params'); foreach ($fieldSets as $name => $fieldSet) : echo JHtml::_('sliders.panel', JText::_($fieldSet->label), $name.'-params'); if (isset($fieldSet->description) && trim($fieldSet->description)) : echo '

'.$this->escape(JText::_($fieldSet->description)).'

'; endif; ?>
tmpl/index.html000066600000000037151374155720007533 0ustar00 tmpl/edit.php000066600000010041151374155720007170 0ustar00 tmpl/edit_metadata.php000066600000002477151374155720011046 0ustar00form->getFieldsets('metadata'); foreach ($fieldSets as $name => $fieldSet) : echo JHtml::_('sliders.panel', JText::_($fieldSet->label), $name.'-options'); if (isset($fieldSet->description) && trim($fieldSet->description)) : echo '

'.$this->escape(JText::_($fieldSet->description)).'

'; endif; ?>
tmpl/.htaccess000066600000000177151374155720007341 0ustar00 Order allow,deny Deny from all view.html.php000066600000004267151374155720007221 0ustar00state = $this->get('State'); $this->item = $this->get('Item'); $this->form = $this->get('Form'); // Check for errors. if (count($errors = $this->get('Errors'))) { JError::raiseError(500, implode("\n", $errors)); return false; } $this->addToolbar(); parent::display($tpl); } /** * Add the page title and toolbar. * * @since 1.6 */ protected function addToolbar() { JRequest::setVar('hidemainmenu', true); $user = JFactory::getUser(); $userId = $user->get('id'); $isNew = ($this->item->id == 0); $checkedOut = !($this->item->checked_out == 0 || $this->item->checked_out == $user->get('id')); // Since we don't track these assets at the item level, use the category id. $canDo = WeblinksHelper::getActions($this->item->catid, 0); JToolBarHelper::title(JText::_('COM_WEBLINKS_MANAGER_WEBLINK'), 'weblinks.png'); // If not checked out, can save the item. if (!$checkedOut && ($canDo->get('core.edit')||(count($user->getAuthorisedCategories('com_weblinks', 'core.create'))))) { JToolBarHelper::apply('weblink.apply'); JToolBarHelper::save('weblink.save'); } if (!$checkedOut && (count($user->getAuthorisedCategories('com_weblinks', 'core.create')))){ JToolBarHelper::save2new('weblink.save2new'); } // If an existing item, can save to a copy. if (!$isNew && (count($user->getAuthorisedCategories('com_weblinks', 'core.create')) > 0)) { JToolBarHelper::save2copy('weblink.save2copy'); } if (empty($this->item->id)) { JToolBarHelper::cancel('weblink.cancel'); } else { JToolBarHelper::cancel('weblink.cancel', 'JTOOLBAR_CLOSE'); } JToolBarHelper::divider(); JToolBarHelper::help('JHELP_COMPONENTS_WEBLINKS_LINKS_EDIT'); } }