You've already forked joomla_test
first commit
This commit is contained in:
1
administrator/templates/hathor/html/com_menus/index.html
Normal file
1
administrator/templates/hathor/html/com_menus/index.html
Normal file
@ -0,0 +1 @@
|
||||
<!DOCTYPE html><title></title>
|
154
administrator/templates/hathor/html/com_menus/item/edit.php
Normal file
154
administrator/templates/hathor/html/com_menus/item/edit.php
Normal file
@ -0,0 +1,154 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Administrator
|
||||
* @subpackage Template.hathor
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
// Include the component HTML helpers.
|
||||
JHtml::addIncludePath(JPATH_COMPONENT.'/helpers/html');
|
||||
|
||||
JHtml::_('behavior.framework');
|
||||
JHtml::_('behavior.formvalidation');
|
||||
JHtml::_('behavior.modal');
|
||||
|
||||
$canDo = MenusHelper::getActions();
|
||||
?>
|
||||
|
||||
<script type="text/javascript">
|
||||
Joomla.submitbutton = function(task, type)
|
||||
{
|
||||
if (task == 'item.setType' || task == 'item.setMenuType')
|
||||
{
|
||||
if (task == 'item.setType')
|
||||
{
|
||||
document.id('item-form').elements['jform[type]'].value = type;
|
||||
document.id('fieldtype').value = 'type';
|
||||
} else {
|
||||
document.id('item-form').elements['jform[menutype]'].value = type;
|
||||
}
|
||||
Joomla.submitform('item.setType', document.id('item-form'));
|
||||
} else if (task == 'item.cancel' || document.formvalidator.isValid(document.id('item-form')))
|
||||
{
|
||||
Joomla.submitform(task, document.id('item-form'));
|
||||
}
|
||||
else
|
||||
{
|
||||
// special case for modal popups validation response
|
||||
$$('#item-form .modal-value.invalid').each(function(field){
|
||||
var idReversed = field.id.split("").reverse().join("");
|
||||
var separatorLocation = idReversed.indexOf('_');
|
||||
var name = idReversed.substr(separatorLocation).split("").reverse().join("")+'name';
|
||||
document.id(name).addClass('invalid');
|
||||
});
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<div class="menuitem-edit">
|
||||
|
||||
<form action="<?php echo JRoute::_('index.php?option=com_menus&layout=edit&id='.(int) $this->item->id); ?>" method="post" name="adminForm" id="item-form" class="form-validate">
|
||||
|
||||
<div class="col main-section">
|
||||
<fieldset class="adminform">
|
||||
<legend><?php echo JText::_('COM_MENUS_ITEM_DETAILS');?></legend>
|
||||
<ul class="adminformlist">
|
||||
|
||||
<li><?php echo $this->form->getLabel('type'); ?>
|
||||
<?php echo $this->form->getInput('type'); ?></li>
|
||||
|
||||
<li><?php echo $this->form->getLabel('title'); ?>
|
||||
<?php echo $this->form->getInput('title'); ?></li>
|
||||
|
||||
<?php if ($this->item->type == 'url') : ?>
|
||||
<?php $this->form->setFieldAttribute('link', 'readonly', 'false');?>
|
||||
<li><?php echo $this->form->getLabel('link'); ?>
|
||||
<?php echo $this->form->getInput('link'); ?></li>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->item->type == 'alias') : ?>
|
||||
<li> <?php echo $this->form->getLabel('aliastip'); ?></li>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->item->type != 'url') : ?>
|
||||
<li><?php echo $this->form->getLabel('alias'); ?>
|
||||
<?php echo $this->form->getInput('alias'); ?></li>
|
||||
<?php endif; ?>
|
||||
|
||||
<li><?php echo $this->form->getLabel('note'); ?>
|
||||
<?php echo $this->form->getInput('note'); ?></li>
|
||||
|
||||
<?php if ($this->item->type !== 'url') : ?>
|
||||
<li><?php echo $this->form->getLabel('link'); ?>
|
||||
<?php echo $this->form->getInput('link'); ?></li>
|
||||
<?php endif ?>
|
||||
|
||||
<?php if ($canDo->get('core.edit.state')) : ?>
|
||||
<li><?php echo $this->form->getLabel('published'); ?>
|
||||
<?php echo $this->form->getInput('published'); ?></li>
|
||||
<?php endif ?>
|
||||
|
||||
<li><?php echo $this->form->getLabel('access'); ?>
|
||||
<?php echo $this->form->getInput('access'); ?></li>
|
||||
|
||||
<li><?php echo $this->form->getLabel('menutype'); ?>
|
||||
<?php echo $this->form->getInput('menutype'); ?></li>
|
||||
|
||||
<li><?php echo $this->form->getLabel('parent_id'); ?>
|
||||
<?php echo $this->form->getInput('parent_id'); ?></li>
|
||||
|
||||
<li><?php echo $this->form->getLabel('menuordering'); ?>
|
||||
<?php echo $this->form->getInput('menuordering'); ?></li>
|
||||
|
||||
<li><?php echo $this->form->getLabel('browserNav'); ?>
|
||||
<?php echo $this->form->getInput('browserNav'); ?></li>
|
||||
|
||||
<?php if ($canDo->get('core.edit.state')) : ?>
|
||||
<?php if ($this->item->type == 'component') : ?>
|
||||
<li><?php echo $this->form->getLabel('home'); ?>
|
||||
<?php echo $this->form->getInput('home'); ?></li>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<li><?php echo $this->form->getLabel('language'); ?>
|
||||
<?php echo $this->form->getInput('language'); ?></li>
|
||||
|
||||
<li><?php echo $this->form->getLabel('template_style_id'); ?>
|
||||
<?php echo $this->form->getInput('template_style_id'); ?></li>
|
||||
|
||||
<li><?php echo $this->form->getLabel('id'); ?>
|
||||
<?php echo $this->form->getInput('id'); ?></li>
|
||||
</ul>
|
||||
|
||||
</fieldset>
|
||||
</div>
|
||||
|
||||
<div class="col options-section">
|
||||
<?php echo JHtml::_('sliders.start', 'menu-sliders-'.$this->item->id); ?>
|
||||
<?php //Load parameters.
|
||||
echo $this->loadTemplate('options'); ?>
|
||||
|
||||
<div class="clr"></div>
|
||||
|
||||
<?php if (!empty($this->modules)) : ?>
|
||||
<?php echo JHtml::_('sliders.panel', JText::_('COM_MENUS_ITEM_MODULE_ASSIGNMENT'), 'module-options'); ?>
|
||||
<fieldset>
|
||||
<?php echo $this->loadTemplate('modules'); ?>
|
||||
</fieldset>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php echo JHtml::_('sliders.end'); ?>
|
||||
|
||||
<input type="hidden" name="task" value="" />
|
||||
<?php echo $this->form->getInput('component_id'); ?>
|
||||
<?php echo JHtml::_('form.token'); ?>
|
||||
<input type="hidden" id="fieldtype" name="fieldtype" value="" />
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<div class="clr"></div>
|
||||
</div>
|
@ -0,0 +1,85 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Administrator
|
||||
* @subpackage Template.hathor
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
?>
|
||||
<?php
|
||||
$fieldSets = $this->form->getFieldsets('request');
|
||||
|
||||
if (!empty($fieldSets))
|
||||
{
|
||||
$fieldSet = array_shift($fieldSets);
|
||||
$label = !empty($fieldSet->label) ? $fieldSet->label : 'COM_MENUS_'.$fieldSet->name.'_FIELDSET_LABEL';
|
||||
echo JHtml::_('sliders.panel', JText::_($label), 'request-options');
|
||||
if (isset($fieldSet->description) && trim($fieldSet->description)) :
|
||||
echo '<p class="tip">'.$this->escape(JText::_($fieldSet->description)).'</p>';
|
||||
endif;
|
||||
?>
|
||||
<fieldset class="panelform">
|
||||
<legend class="element-invisible"><?php echo JText::_($label) ?></legend>
|
||||
<?php $hidden_fields = ''; ?>
|
||||
<ul class="adminformlist">
|
||||
<?php foreach ($this->form->getFieldset('request') as $field) : ?>
|
||||
<?php if (!$field->hidden) : ?>
|
||||
<li>
|
||||
<?php echo $field->label; ?>
|
||||
<?php echo $field->input; ?>
|
||||
</li>
|
||||
<?php else : $hidden_fields .= $field->input; ?>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<?php echo $hidden_fields; ?>
|
||||
</fieldset>
|
||||
<?php
|
||||
}
|
||||
|
||||
|
||||
$fieldSets = $this->form->getFieldsets('params');
|
||||
|
||||
foreach ($fieldSets as $name => $fieldSet) :
|
||||
$label = !empty($fieldSet->label) ? $fieldSet->label : 'COM_MENUS_'.$name.'_FIELDSET_LABEL';
|
||||
echo JHtml::_('sliders.panel', JText::_($label), $name.'-options');
|
||||
if (isset($fieldSet->description) && trim($fieldSet->description)) :
|
||||
echo '<p class="tip">'.$this->escape(JText::_($fieldSet->description)).'</p>';
|
||||
endif;
|
||||
?>
|
||||
<div class="clr"></div>
|
||||
<fieldset class="panelform">
|
||||
<legend class="element-invisible"><?php echo JText::_($label) ?></legend>
|
||||
<ul class="adminformlist">
|
||||
<?php foreach ($this->form->getFieldset($name) as $field) : ?>
|
||||
<li><?php echo $field->label; ?>
|
||||
<?php echo $field->input; ?></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</fieldset>
|
||||
<?php endforeach;?>
|
||||
<?php
|
||||
|
||||
$fieldSets = $this->form->getFieldsets('associations');
|
||||
|
||||
foreach ($fieldSets as $name => $fieldSet) :
|
||||
$label = !empty($fieldSet->label) ? $fieldSet->label : 'COM_MENUS_'.$name.'_FIELDSET_LABEL';
|
||||
echo JHtml::_('sliders.panel', JText::_($label), $name.'-options');
|
||||
if (isset($fieldSet->description) && trim($fieldSet->description)) :
|
||||
echo '<p class="tip">'.$this->escape(JText::_($fieldSet->description)).'</p>';
|
||||
endif;
|
||||
?>
|
||||
<div class="clr"></div>
|
||||
<fieldset class="panelform">
|
||||
<legend class="element-invisible"><?php echo JText::_($label) ?></legend>
|
||||
<ul class="adminformlist">
|
||||
<?php foreach ($this->form->getFieldset($name) as $field) : ?>
|
||||
<li><?php echo $field->label; ?>
|
||||
<?php echo $field->input; ?></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</fieldset>
|
||||
<?php endforeach;?>
|
@ -0,0 +1 @@
|
||||
<!DOCTYPE html><title></title>
|
250
administrator/templates/hathor/html/com_menus/items/default.php
Normal file
250
administrator/templates/hathor/html/com_menus/items/default.php
Normal file
@ -0,0 +1,250 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Administrator
|
||||
* @subpackage Template.hathor
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
// Include the component HTML helpers.
|
||||
JHtml::addIncludePath(JPATH_COMPONENT.'/helpers/html');
|
||||
|
||||
JHtml::_('behavior.multiselect');
|
||||
JHtml::_('behavior.modal');
|
||||
|
||||
$user = JFactory::getUser();
|
||||
$app = JFactory::getApplication();
|
||||
$userId = $user->get('id');
|
||||
$listOrder = $this->escape($this->state->get('list.ordering'));
|
||||
$listDirn = $this->escape($this->state->get('list.direction'));
|
||||
$ordering = ($listOrder == 'a.lft');
|
||||
$canOrder = $user->authorise('core.edit.state', 'com_menus');
|
||||
$saveOrder = ($listOrder == 'a.lft' && $listDirn == 'asc');
|
||||
$assoc = isset($app->item_associations) ? $app->item_associations : 0;
|
||||
?>
|
||||
<?php //Set up the filter bar. ?>
|
||||
<form action="<?php echo JRoute::_('index.php?option=com_menus&view=items');?>" method="post" name="adminForm" id="adminForm">
|
||||
<?php if (!empty( $this->sidebar)) : ?>
|
||||
<div id="j-sidebar-container" class="span2">
|
||||
<?php echo $this->sidebar; ?>
|
||||
</div>
|
||||
<div id="j-main-container" class="span10">
|
||||
<?php else : ?>
|
||||
<div id="j-main-container">
|
||||
<?php endif;?>
|
||||
<fieldset id="filter-bar">
|
||||
<legend class="element-invisible"><?php echo JText::_('JSEARCH_FILTER_LABEL'); ?></legend>
|
||||
<div class="filter-search">
|
||||
<label class="filter-search-lbl" for="filter_search"><?php echo JText::_('JSEARCH_FILTER_LABEL'); ?></label>
|
||||
<input type="text" name="filter_search" id="filter_search" value="<?php echo $this->escape($this->state->get('filter.search')); ?>" title="<?php echo JText::_('COM_MENUS_ITEMS_SEARCH_FILTER'); ?>" />
|
||||
<button type="submit"><?php echo JText::_('JSEARCH_FILTER_SUBMIT'); ?></button>
|
||||
<button type="button" onclick="document.id('filter_search').value='';this.form.submit();"><?php echo JText::_('JSEARCH_FILTER_CLEAR'); ?></button>
|
||||
</div>
|
||||
<div class="filter-select">
|
||||
<label class="selectlabel" for="menutype">
|
||||
<?php echo JText::_('TPL_HATHOR_COM_MENUS_MENU'); ?>
|
||||
</label>
|
||||
<select name="menutype" class="inputbox" id="menutype">
|
||||
<?php echo JHtml::_('select.options', JHtml::_('menu.menus'), 'value', 'text', $this->state->get('filter.menutype'));?>
|
||||
</select>
|
||||
|
||||
<label class="selectlabel" for="filter_level">
|
||||
<?php echo JText::_('COM_MENUS_OPTION_SELECT_LEVEL'); ?>
|
||||
</label>
|
||||
<select name="filter_level" class="inputbox" id="filter_level">
|
||||
<option value=""><?php echo JText::_('COM_MENUS_OPTION_SELECT_LEVEL');?></option>
|
||||
<?php echo JHtml::_('select.options', $this->f_levels, 'value', 'text', $this->state->get('filter.level'));?>
|
||||
</select>
|
||||
|
||||
<label class="selectlabel" for="filter_published">
|
||||
<?php echo JText::_('JOPTION_SELECT_PUBLISHED'); ?>
|
||||
</label>
|
||||
<select name="filter_published" class="inputbox" id="filter_published">
|
||||
<option value=""><?php echo JText::_('JOPTION_SELECT_PUBLISHED');?></option>
|
||||
<?php echo JHtml::_('select.options', JHtml::_('jgrid.publishedOptions', array('archived' => false)), 'value', 'text', $this->state->get('filter.published'), true);?>
|
||||
</select>
|
||||
|
||||
<label class="selectlabel" for="filter_access">
|
||||
<?php echo JText::_('JOPTION_SELECT_ACCESS'); ?>
|
||||
</label>
|
||||
<select name="filter_access" class="inputbox" id="filter_access">
|
||||
<option value=""><?php echo JText::_('JOPTION_SELECT_ACCESS');?></option>
|
||||
<?php echo JHtml::_('select.options', JHtml::_('access.assetgroups'), 'value', 'text', $this->state->get('filter.access'));?>
|
||||
</select>
|
||||
|
||||
<label class="selectlabel" for="filter_language">
|
||||
<?php echo JText::_('JOPTION_SELECT_LANGUAGE'); ?>
|
||||
</label>
|
||||
<select name="filter_language" class="inputbox" id="filter_language">
|
||||
<option value=""><?php echo JText::_('JOPTION_SELECT_LANGUAGE');?></option>
|
||||
<?php echo JHtml::_('select.options', JHtml::_('contentlanguage.existing', true, true), 'value', 'text', $this->state->get('filter.language'));?>
|
||||
</select>
|
||||
|
||||
<button type="submit" id="filter-go">
|
||||
<?php echo JText::_('JSUBMIT'); ?></button>
|
||||
</div>
|
||||
</fieldset>
|
||||
<div class="clr"> </div>
|
||||
<?php //Set up the grid heading. ?>
|
||||
<table class="adminlist">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="checkmark-col">
|
||||
<input type="checkbox" name="checkall-toggle" value="" title="<?php echo JText::_('JGLOBAL_CHECK_ALL'); ?>" onclick="Joomla.checkAll(this)" />
|
||||
</th>
|
||||
<th class="title">
|
||||
<?php echo JHtml::_('grid.sort', 'JGLOBAL_TITLE', 'a.title', $listDirn, $listOrder); ?>
|
||||
</th>
|
||||
<th class="nowrap state-col">
|
||||
<?php echo JHtml::_('grid.sort', 'JSTATUS', 'a.published', $listDirn, $listOrder); ?>
|
||||
</th>
|
||||
<th class="nowrap ordering-col">
|
||||
<?php echo JHtml::_('grid.sort', 'JGRID_HEADING_ORDERING', 'a.lft', $listDirn, $listOrder); ?>
|
||||
<?php if ($canOrder && $saveOrder) :?>
|
||||
<?php echo JHtml::_('grid.order', $this->items, 'filesave.png', 'items.saveorder'); ?>
|
||||
<?php endif; ?>
|
||||
</th>
|
||||
<th class="title access-col">
|
||||
<?php echo JHtml::_('grid.sort', 'JGRID_HEADING_ACCESS', 'access_level', $listDirn, $listOrder); ?>
|
||||
</th>
|
||||
<th width="10%">
|
||||
<?php echo JText::_('JGRID_HEADING_MENU_ITEM_TYPE'); ?>
|
||||
</th>
|
||||
<th class="home-col">
|
||||
<?php echo JHtml::_('grid.sort', 'COM_MENUS_HEADING_HOME', 'a.home', $listDirn, $listOrder); ?>
|
||||
</th>
|
||||
<?php
|
||||
if ($assoc):
|
||||
?>
|
||||
<th class="width-5">
|
||||
<?php echo JHtml::_('grid.sort', 'COM_MENUS_HEADING_ASSOCIATION', 'association', $listDirn, $listOrder); ?>
|
||||
</th>
|
||||
<?php endif;?>
|
||||
<th class="language-col">
|
||||
<?php echo JHtml::_('grid.sort', 'JGRID_HEADING_LANGUAGE', 'language', $listDirn, $listOrder); ?>
|
||||
</th>
|
||||
<th class="nowrap id-col">
|
||||
<?php echo JHtml::_('grid.sort', 'JGRID_HEADING_ID', 'a.id', $listDirn, $listOrder); ?>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<?php
|
||||
$originalOrders = array();
|
||||
foreach ($this->items as $i => $item) :
|
||||
$orderkey = array_search($item->id, $this->ordering[$item->parent_id]);
|
||||
$canCreate = $user->authorise('core.create', 'com_menus');
|
||||
$canEdit = $user->authorise('core.edit', 'com_menus');
|
||||
$canCheckin = $user->authorise('core.manage', 'com_checkin') || $item->checked_out == $user->get('id')|| $item->checked_out == 0;
|
||||
$canChange = $user->authorise('core.edit.state', 'com_menus') && $canCheckin;
|
||||
?>
|
||||
<tr class="row<?php echo $i % 2; ?>">
|
||||
<td class="center">
|
||||
<?php echo JHtml::_('grid.id', $i, $item->id); ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php echo str_repeat('<span class="gi">|—</span>', $item->level - 1) ?>
|
||||
<?php if ($item->checked_out) : ?>
|
||||
<?php echo JHtml::_('jgrid.checkedout', $i, $item->editor, $item->checked_out_time, 'items.', $canCheckin); ?>
|
||||
<?php endif; ?>
|
||||
<?php if ($canEdit) : ?>
|
||||
<a href="<?php echo JRoute::_('index.php?option=com_menus&task=item.edit&id='.(int) $item->id);?>">
|
||||
<?php echo $this->escape($item->title); ?></a>
|
||||
<?php else : ?>
|
||||
<?php echo $this->escape($item->title); ?>
|
||||
<?php endif; ?>
|
||||
<p class="smallsub" title="<?php echo $this->escape($item->path);?>">
|
||||
<?php echo str_repeat('<span class="gtr">|—</span>', $item->level - 1) ?>
|
||||
<?php if ($item->type != 'url') : ?>
|
||||
<?php if (empty($item->note)) : ?>
|
||||
<?php echo JText::sprintf('JGLOBAL_LIST_ALIAS', $this->escape($item->alias));?>
|
||||
<?php else : ?>
|
||||
<?php echo JText::sprintf('JGLOBAL_LIST_ALIAS_NOTE', $this->escape($item->alias), $this->escape($item->note));?>
|
||||
<?php endif; ?>
|
||||
<?php elseif ($item->type == 'url' && $item->note) : ?>
|
||||
<?php echo JText::sprintf('JGLOBAL_LIST_NOTE', $this->escape($item->note));?>
|
||||
<?php endif; ?></p>
|
||||
</td>
|
||||
<td class="center">
|
||||
<?php echo JHtml::_('MenusHtml.Menus.state', $item->published, $i, $canChange, 'cb'); ?>
|
||||
</td>
|
||||
<td class="order">
|
||||
<?php if ($canChange) : ?>
|
||||
<?php if ($saveOrder) : ?>
|
||||
<span><?php echo $this->pagination->orderUpIcon($i, isset($this->ordering[$item->parent_id][$orderkey - 1]), 'items.orderup', 'JLIB_HTML_MOVE_UP', $ordering); ?></span>
|
||||
<span><?php echo $this->pagination->orderDownIcon($i, $this->pagination->total, isset($this->ordering[$item->parent_id][$orderkey + 1]), 'items.orderdown', 'JLIB_HTML_MOVE_DOWN', $ordering); ?></span>
|
||||
<?php endif; ?>
|
||||
<?php $disabled = $saveOrder ? '' : 'disabled="disabled"'; ?>
|
||||
<input type="text" name="order[]" value="<?php echo $orderkey + 1;?>" <?php echo $disabled ?> class="text-area-order" title="<?php echo $item->title; ?> order" />
|
||||
<?php $originalOrders[] = $orderkey + 1; ?>
|
||||
<?php else : ?>
|
||||
<?php echo $orderkey + 1;?>
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
<td class="center">
|
||||
<?php echo $this->escape($item->access_level); ?>
|
||||
</td>
|
||||
<td class="nowrap">
|
||||
<span title="<?php echo isset($item->item_type_desc) ? htmlspecialchars($this->escape($item->item_type_desc), ENT_COMPAT, 'UTF-8') : ''; ?>">
|
||||
<?php echo $this->escape($item->item_type); ?></span>
|
||||
</td>
|
||||
<td class="center">
|
||||
<?php if ($item->type == 'component') : ?>
|
||||
<?php if ($item->language == '*' || $item->home == '0'):?>
|
||||
<?php echo JHtml::_('jgrid.isdefault', $item->home, $i, 'items.', ($item->language != '*' || !$item->home) && $canChange);?>
|
||||
<?php elseif ($canChange):?>
|
||||
<a href="<?php echo JRoute::_('index.php?option=com_menus&task=items.unsetDefault&cid[]='.$item->id.'&'.JSession::getFormToken().'=1');?>">
|
||||
<?php echo JHtml::_('image', 'mod_languages/' . $item->image . '.gif', $item->language_title, array('title' => JText::sprintf('COM_MENUS_GRID_UNSET_LANGUAGE', $item->language_title)), true);?>
|
||||
</a>
|
||||
<?php else:?>
|
||||
<?php echo JHtml::_('image', 'mod_languages/' . $item->image . '.gif', $item->language_title, array('title' => $item->language_title), true);?>
|
||||
<?php endif;?>
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
<?php
|
||||
if ($assoc):
|
||||
?>
|
||||
<td class="center">
|
||||
<?php if ($item->association):?>
|
||||
<?php echo JHtml::_('MenusHtml.Menus.association', $item->id);?>
|
||||
<?php endif;?>
|
||||
</td>
|
||||
<?php endif;?>
|
||||
<td class="center">
|
||||
<?php if ($item->language == ''):?>
|
||||
<?php echo JText::_('JDEFAULT'); ?>
|
||||
<?php elseif ($item->language == '*'):?>
|
||||
<?php echo JText::alt('JALL', 'language'); ?>
|
||||
<?php else:?>
|
||||
<?php echo $item->language_title ? $this->escape($item->language_title) : JText::_('JUNDEFINED'); ?>
|
||||
<?php endif;?>
|
||||
</td>
|
||||
<td class="center">
|
||||
<span title="<?php echo sprintf('%d-%d', $item->lft, $item->rgt);?>">
|
||||
<?php echo (int) $item->id; ?></span>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<?php echo $this->pagination->getListFooter(); ?>
|
||||
<div class="clr"> </div>
|
||||
|
||||
<?php //Load the batch processing form.is user is allowed ?>
|
||||
<?php if ($user->authorise('core.create', 'com_menus') || $user->authorise('core.edit', 'com_menus')) : ?>
|
||||
<?php echo $this->loadTemplate('batch'); ?>
|
||||
<?php endif;?>
|
||||
|
||||
<input type="hidden" name="task" value="" />
|
||||
<input type="hidden" name="boxchecked" value="0" />
|
||||
<input type="hidden" name="filter_order" value="<?php echo $listOrder; ?>" />
|
||||
<input type="hidden" name="filter_order_Dir" value="<?php echo $listDirn; ?>" />
|
||||
<input type="hidden" name="original_order_values" value="<?php echo implode($originalOrders, ','); ?>" />
|
||||
<?php echo JHtml::_('form.token'); ?>
|
||||
</div>
|
||||
</form>
|
@ -0,0 +1 @@
|
||||
<!DOCTYPE html><title></title>
|
51
administrator/templates/hathor/html/com_menus/menu/edit.php
Normal file
51
administrator/templates/hathor/html/com_menus/menu/edit.php
Normal file
@ -0,0 +1,51 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Administrator
|
||||
* @subpackage Template.hathor
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
// Include the component HTML helpers.
|
||||
JHtml::addIncludePath(JPATH_COMPONENT.'/helpers/html');
|
||||
|
||||
JHtml::_('behavior.formvalidation');
|
||||
?>
|
||||
|
||||
<script type="text/javascript">
|
||||
Joomla.submitbutton = function(task)
|
||||
{
|
||||
if (task == 'menu.cancel' || document.formvalidator.isValid(document.id('item-form')))
|
||||
{
|
||||
Joomla.submitform(task, document.getElementById('item-form'));
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<div class="menu-edit">
|
||||
|
||||
<form action="<?php echo JRoute::_('index.php?option=com_menus&layout=edit&id='.(int) $this->item->id); ?>" method="post" name="adminForm" id="item-form">
|
||||
<div class="col main-section">
|
||||
<fieldset class="adminform">
|
||||
<legend><?php echo JText::_('COM_MENUS_MENU_DETAILS');?></legend>
|
||||
<ul class="adminformlist">
|
||||
<li><?php echo $this->form->getLabel('title'); ?>
|
||||
<?php echo $this->form->getInput('title'); ?></li>
|
||||
|
||||
<li><?php echo $this->form->getLabel('menutype'); ?>
|
||||
<?php echo $this->form->getInput('menutype'); ?></li>
|
||||
|
||||
<li><?php echo $this->form->getLabel('description'); ?>
|
||||
<?php echo $this->form->getInput('description'); ?></li>
|
||||
</ul>
|
||||
</fieldset>
|
||||
|
||||
<input type="hidden" name="task" value="" />
|
||||
<?php echo JHtml::_('form.token'); ?>
|
||||
</div>
|
||||
</form>
|
||||
<div class="clr"></div>
|
||||
</div>
|
@ -0,0 +1 @@
|
||||
<!DOCTYPE html><title></title>
|
154
administrator/templates/hathor/html/com_menus/menus/default.php
Normal file
154
administrator/templates/hathor/html/com_menus/menus/default.php
Normal file
@ -0,0 +1,154 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Administrator
|
||||
* @subpackage Template.hathor
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
// Include the component HTML helpers.
|
||||
JHtml::addIncludePath(JPATH_COMPONENT . '/helpers/html');
|
||||
|
||||
JHtml::_('behavior.multiselect');
|
||||
|
||||
$uri = JUri::getInstance();
|
||||
$return = base64_encode($uri);
|
||||
$user = JFactory::getUser();
|
||||
$userId = $user->get('id');
|
||||
$listOrder = $this->escape($this->state->get('list.ordering'));
|
||||
$listDirn = $this->escape($this->state->get('list.direction'));
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
Joomla.submitbutton = function(task)
|
||||
{
|
||||
if (task != 'menus.delete' || confirm('<?php echo JText::_('COM_MENUS_MENU_CONFIRM_DELETE', true);?>'))
|
||||
{
|
||||
Joomla.submitform(task);
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<form action="<?php echo JRoute::_('index.php?option=com_menus&view=menus');?>" method="post" name="adminForm" id="adminForm">
|
||||
<?php if (!empty( $this->sidebar)) : ?>
|
||||
<div id="j-sidebar-container" class="span2">
|
||||
<?php echo $this->sidebar; ?>
|
||||
</div>
|
||||
<div id="j-main-container" class="span10">
|
||||
<?php else : ?>
|
||||
<div id="j-main-container">
|
||||
<?php endif;?>
|
||||
<fieldset id="filter-bar">
|
||||
<legend class="element-invisible"><?php echo JText::_('JSEARCH_FILTER_LABEL'); ?></legend>
|
||||
<div class="filter-search">
|
||||
<label class="filter-search-lbl" for="filter_search"><?php echo JText::_('COM_MENUS_MENU_SEARCH_FILTER'); ?></label>
|
||||
<input type="text" name="filter_search" id="filter_search" value="<?php echo $this->escape($this->state->get('filter.search')); ?>" title="<?php echo JText::_('COM_MENUS_ITEMS_SEARCH_FILTER'); ?>" />
|
||||
<button type="submit"><?php echo JText::_('JSEARCH_FILTER_SUBMIT'); ?></button>
|
||||
<button type="button" onclick="document.id('filter_search').value='';this.form.submit();"><?php echo JText::_('JSEARCH_FILTER_CLEAR'); ?></button>
|
||||
</div>
|
||||
</fieldset>
|
||||
<div class="clearfix"> </div>
|
||||
<table class="adminlist">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="checkmark-col" rowspan="2">
|
||||
<input type="checkbox" name="checkall-toggle" value="" title="<?php echo JText::_('JGLOBAL_CHECK_ALL'); ?>" onclick="Joomla.checkAll(this)" />
|
||||
</th>
|
||||
<th rowspan="2">
|
||||
<?php echo JHtml::_('grid.sort', 'JGLOBAL_TITLE', 'a.title', $listDirn, $listOrder); ?>
|
||||
</th>
|
||||
<th class="width-30" colspan="3">
|
||||
<?php echo JText::_('COM_MENUS_HEADING_NUMBER_MENU_ITEMS'); ?>
|
||||
</th>
|
||||
<th class="width-20" rowspan="2">
|
||||
<?php echo JText::_('COM_MENUS_HEADING_LINKED_MODULES'); ?>
|
||||
</th>
|
||||
<th class="nowrap id-col" rowspan="2">
|
||||
<?php echo JHtml::_('grid.sort', 'JGRID_HEADING_ID', 'a.id', $listDirn, $listOrder); ?>
|
||||
</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="width-10">
|
||||
<?php echo JText::_('COM_MENUS_HEADING_PUBLISHED_ITEMS'); ?>
|
||||
</th>
|
||||
<th class="width-10">
|
||||
<?php echo JText::_('COM_MENUS_HEADING_UNPUBLISHED_ITEMS'); ?>
|
||||
</th>
|
||||
<th class="width-10">
|
||||
<?php echo JText::_('COM_MENUS_HEADING_TRASHED_ITEMS'); ?>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<?php foreach ($this->items as $i => $item) :
|
||||
$canCreate = $user->authorise('core.create', 'com_menus');
|
||||
$canEdit = $user->authorise('core.edit', 'com_menus');
|
||||
$canChange = $user->authorise('core.edit.state', 'com_menus');
|
||||
?>
|
||||
<tr class="row<?php echo $i % 2; ?>">
|
||||
<td class="center">
|
||||
<?php echo JHtml::_('grid.id', $i, $item->id); ?>
|
||||
</td>
|
||||
<td>
|
||||
<a href="<?php echo JRoute::_('index.php?option=com_menus&view=items&menutype='.$item->menutype) ?> ">
|
||||
<?php echo $this->escape($item->title); ?></a>
|
||||
<p class="smallsub">(<span><?php echo JText::_('COM_MENUS_MENU_MENUTYPE_LABEL') ?></span>
|
||||
<?php if ($canEdit) : ?>
|
||||
<?php echo '<a href="'.JRoute::_('index.php?option=com_menus&task=menu.edit&id='.$item->id).' title='.$this->escape($item->description).'">'.
|
||||
$this->escape($item->menutype).'</a>'; ?>)
|
||||
<?php else : ?>
|
||||
<?php echo $this->escape($item->menutype)?>)
|
||||
<?php endif; ?>
|
||||
</p>
|
||||
</td>
|
||||
<td class="center btns">
|
||||
<a href="<?php echo JRoute::_('index.php?option=com_menus&view=items&menutype='.$item->menutype.'&filter_published=1');?>">
|
||||
<?php echo $item->count_published; ?></a>
|
||||
</td>
|
||||
<td class="center btns">
|
||||
<a href="<?php echo JRoute::_('index.php?option=com_menus&view=items&menutype='.$item->menutype.'&filter_published=0');?>">
|
||||
<?php echo $item->count_unpublished; ?></a>
|
||||
</td>
|
||||
<td class="center btns">
|
||||
<a href="<?php echo JRoute::_('index.php?option=com_menus&view=items&menutype='.$item->menutype.'&filter_published=-2');?>">
|
||||
<?php echo $item->count_trashed; ?></a>
|
||||
</td>
|
||||
<td class="left">
|
||||
<ul class="menu-module-list">
|
||||
<?php
|
||||
if (isset($this->modules[$item->menutype])) :
|
||||
foreach ($this->modules[$item->menutype] as &$module) :
|
||||
?>
|
||||
<li>
|
||||
<?php if ($canEdit) : ?>
|
||||
<a class="modal" href="<?php echo JRoute::_('index.php?option=com_modules&task=module.edit&id='.$module->id.'&return='.$return.'&tmpl=component&layout=modal');?>" rel="{handler: 'iframe', size: {x: 1024, y: 450}}" title="<?php echo JText::_('COM_MENUS_EDIT_MODULE_SETTINGS');?>">
|
||||
<?php echo JText::sprintf('COM_MENUS_MODULE_ACCESS_POSITION', $this->escape($module->title), $this->escape($module->access_title), $this->escape($module->position)); ?></a>
|
||||
<?php else :?>
|
||||
<?php echo JText::sprintf('COM_MENUS_MODULE_ACCESS_POSITION', $this->escape($module->title), $this->escape($module->access_title), $this->escape($module->position)); ?>
|
||||
<?php endif; ?>
|
||||
</li>
|
||||
<?php
|
||||
endforeach;
|
||||
endif;
|
||||
?>
|
||||
</ul>
|
||||
</td>
|
||||
<td class="center">
|
||||
<?php echo $item->id; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<?php echo $this->pagination->getListFooter(); ?>
|
||||
|
||||
<input type="hidden" name="task" value="" />
|
||||
<input type="hidden" name="boxchecked" value="0" />
|
||||
<input type="hidden" name="filter_order" value="<?php echo $listOrder; ?>" />
|
||||
<input type="hidden" name="filter_order_Dir" value="<?php echo $listDirn; ?>" />
|
||||
<?php echo JHtml::_('form.token'); ?>
|
||||
</div>
|
||||
</form>
|
@ -0,0 +1 @@
|
||||
<!DOCTYPE html><title></title>
|
@ -0,0 +1,67 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Administrator
|
||||
* @subpackage Template.hathor
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
setmenutype = function(type)
|
||||
{
|
||||
window.parent.Joomla.submitbutton('item.setType', type);
|
||||
window.parent.SqueezeBox.close();
|
||||
}
|
||||
</script>
|
||||
|
||||
<h2 class="modal-title"><?php echo JText::_('COM_MENUS_TYPE_CHOOSE'); ?></h2>
|
||||
<ul class="menu_types">
|
||||
<?php foreach ($this->types as $name => $list): ?>
|
||||
<li><dl class="menu_type">
|
||||
<dt><?php echo JText::_($name); ?></dt>
|
||||
<dd><ul>
|
||||
<?php foreach ($list as $item): ?>
|
||||
<li><a class="choose_type" href="#" title="<?php echo JText::_($item->description); ?>"
|
||||
onclick="javascript:setmenutype('<?php echo base64_encode(json_encode(array('id' => $this->recordId, 'title' => $item->title, 'request' => $item->request))); ?>')">
|
||||
<?php echo JText::_($item->title);?>
|
||||
</a>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
|
||||
<li><dl class="menu_type">
|
||||
<dt><?php echo JText::_('COM_MENUS_TYPE_SYSTEM'); ?></dt>
|
||||
<dd>
|
||||
<ul>
|
||||
<li><a class="choose_type" href="#" title="<?php echo JText::_('COM_MENUS_TYPE_EXTERNAL_URL_DESC'); ?>"
|
||||
onclick="javascript:setmenutype('<?php echo base64_encode(json_encode(array('id' => $this->recordId, 'title' => 'url'))); ?>')">
|
||||
<?php echo JText::_('COM_MENUS_TYPE_EXTERNAL_URL'); ?>
|
||||
</a>
|
||||
</li>
|
||||
<li><a class="choose_type" href="#" title="<?php echo JText::_('COM_MENUS_TYPE_ALIAS_DESC'); ?>"
|
||||
onclick="javascript:setmenutype('<?php echo base64_encode(json_encode(array('id' => $this->recordId, 'title' => 'alias'))); ?>')">
|
||||
<?php echo JText::_('COM_MENUS_TYPE_ALIAS'); ?>
|
||||
</a>
|
||||
</li>
|
||||
<li><a class="choose_type" href="#" title="<?php echo JText::_('COM_MENUS_TYPE_SEPARATOR_DESC'); ?>"
|
||||
onclick="javascript:setmenutype('<?php echo base64_encode(json_encode(array('id' => $this->recordId, 'title' => 'separator'))); ?>')">
|
||||
<?php echo JText::_('COM_MENUS_TYPE_SEPARATOR'); ?>
|
||||
</a>
|
||||
</li>
|
||||
<li><a class="choose_type" href="#" title="<?php echo JText::_('COM_MENUS_TYPE_HEADING_DESC'); ?>"
|
||||
onclick="javascript:setmenutype('<?php echo base64_encode(json_encode(array('id' => $this->recordId, 'title' => 'heading'))); ?>')">
|
||||
<?php echo JText::_('COM_MENUS_TYPE_HEADING'); ?>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
@ -0,0 +1 @@
|
||||
<!DOCTYPE html><title></title>
|
Reference in New Issue
Block a user