first commit

This commit is contained in:
alazhar
2020-01-02 22:20:31 +07:00
commit 10eb3340ad
5753 changed files with 631345 additions and 0 deletions

View File

@ -0,0 +1 @@
<!DOCTYPE html><title></title>

View File

@ -0,0 +1,24 @@
<?php
/**
* @package Joomla.Administrator
* @subpackage mod_submenu
*
* @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;
$list = JSubMenuHelper::getEntries();
$filters = JSubMenuHelper::getFilters();
$action = JSubMenuHelper::getAction();
$displayMenu = count($list);
$displayFilters = count($filters);
$hide = JFactory::getApplication()->input->getBool('hidemainmenu');
if ($displayMenu || $displayFilters)
{
require JModuleHelper::getLayoutPath('mod_submenu', $params->get('layout', 'default'));
}

View File

@ -0,0 +1,53 @@
<?xml version="1.0" encoding="utf-8"?>
<extension
type="module"
version="3.1"
client="administrator">
<name>mod_submenu</name>
<author>Joomla! Project</author>
<creationDate>Feb 2006</creationDate>
<copyright>Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved.</copyright>
<license>GNU General Public License version 2 or later; see LICENSE.txt</license>
<authorEmail>admin@joomla.org</authorEmail>
<authorUrl>www.joomla.org</authorUrl>
<version>3.0.0</version>
<description>MOD_SUBMENU_XML_DESCRIPTION</description>
<files>
<filename module="mod_submenu">mod_submenu.php</filename>
<filename>helper.php</filename>
<filename>index.html</filename>
<folder>tmpl</folder>
</files>
<languages>
<language tag="en-GB">en-GB.mod_submenu.ini</language>
<language tag="en-GB">en-GB.mod_submenu.sys.ini</language>
</languages>
<help key="JHELP_EXTENSIONS_MODULE_MANAGER_ADMIN_SUBMENU" />
<config>
<fields name="params">
<fieldset name="advanced">
<field
name="layout"
type="modulelayout"
label="JFIELD_ALT_LAYOUT_LABEL"
description="JFIELD_ALT_MODULE_LAYOUT_DESC" />
<field
name="moduleclass_sfx"
type="textarea" rows="3"
label="COM_MODULES_FIELD_MODULECLASS_SFX_LABEL"
description="COM_MODULES_FIELD_MODULECLASS_SFX_DESC" />
<field
name="cache"
type="list"
default="0"
label="COM_MODULES_FIELD_CACHING_LABEL"
description="COM_MODULES_FIELD_CACHING_DESC">
<option
value="0">COM_MODULES_FIELD_VALUE_NOCACHING</option>
</field>
</fieldset>
</fields>
</config>
</extension>

View File

@ -0,0 +1,60 @@
<?php
/**
* @package Joomla.Administrator
* @subpackage mod_submenu
*
* @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;
?>
<div id="sidebar">
<div class="sidebar-nav">
<?php if ($displayMenu) : ?>
<ul id="submenu" class="nav nav-list">
<?php foreach ($list as $item) : ?>
<?php if (isset ($item[2]) && $item[2] == 1) :
?><li class="active"><?php
else :
?><li><?php
endif;
?>
<?php
if ($hide) :
?><a class="nolink"><?php echo $item[0]; ?></a><?php
else :
if (strlen($item[1])) :
?><a href="<?php echo JFilterOutput::ampReplace($item[1]); ?>"><?php echo $item[0]; ?></a><?php
else :
?><?php echo $item[0]; ?><?php
endif;
endif;
?>
</li>
<?php endforeach; ?>
</ul>
<?php endif; ?>
<?php if ($displayMenu && $displayFilters) : ?>
<hr />
<?php endif; ?>
<?php if ($displayFilters) : ?>
<div class="filter-select hidden-phone">
<h4 class="page-header"><?php echo JText::_('JSEARCH_FILTER_LABEL');?></h4>
<form action="<?php echo JRoute::_($action);?>" method="post">
<?php foreach ($filters as $filter) : ?>
<label for="<?php echo $filter['name']; ?>" class="element-invisible"><?php echo $filter['label']; ?></label>
<select name="<?php echo $filter['name']; ?>" id="<?php echo $filter['name']; ?>" class="span12 small" onchange="this.form.submit()">
<?php if (!$filter['noDefault']) : ?>
<option value=""><?php echo $filter['label']; ?></option>
<?php endif; ?>
<?php echo $filter['options']; ?>
</select>
<hr class="hr-condensed" />
<?php endforeach; ?>
</form>
</div>
<?php endif; ?>
</div>
</div>

View File

@ -0,0 +1 @@
<!DOCTYPE html><title></title>