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,46 @@
<?php
/**
* @package Joomla.Administrator
* @subpackage mod_version
*
* @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;
/**
* Helper for mod_version
*
* @package Joomla.Administrator
* @subpackage mod_version
* @since 1.6
*/
abstract class ModVersionHelper
{
/**
* Get the member items of the submenu.
*
* @param JRegistry &$params The parameters object.
*
* @return string String containing the current Joomla version based on the selected format.
*/
public static function getVersion(&$params)
{
$format = $params->get('format', 'short');
$product = $params->get('product', 0);
$method = 'get' . ucfirst($format) . "Version";
// Get the joomla version
$instance = new JVersion;
$version = call_user_func(array($instance, $method));
if ($format == 'short' && !empty($product))
{
// Add the product name to short format only (in long format it's included)
$version = $instance->PRODUCT . ' ' . $version;
}
return $version;
}
}

View File

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

View File

@ -0,0 +1,13 @@
; Joomla! Project
; Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved.
; License GNU General Public License version 2 or later; see LICENSE.txt, see LICENSE.php
; Note : All ini files need to be saved as UTF-8
MOD_VERSION="Joomla! Version Information"
MOD_VERSION_FORMAT_DESC="The long version includes code name and date"
MOD_VERSION_FORMAT_LABEL="Version format"
MOD_VERSION_FORMAT_LONG="Long"
MOD_VERSION_FORMAT_SHORT="Short"
MOD_VERSION_PRODUCT_DESC="Include Joomla! name when using short format"
MOD_VERSION_PRODUCT_LABEL="Show Joomla!"
MOD_VERSION_XML_DESCRIPTION="This module displays the Joomla! version."

View File

@ -0,0 +1,8 @@
; Joomla! Project
; Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved.
; License GNU General Public License version 2 or later; see LICENSE.txt, see LICENSE.php
; Note : All ini files need to be saved as UTF-8
MOD_VERSION="Joomla! Version Information"
MOD_VERSION_LAYOUT_DEFAULT="Default"
MOD_VERSION_XML_DESCRIPTION="This module displays the Joomla! version."

View File

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

View File

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

View File

@ -0,0 +1,16 @@
<?php
/**
* @package Joomla.Administrator
* @subpackage mod_version
*
* @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;
require_once __DIR__ . '/helper.php';
$version = ModVersionHelper::getVersion($params);
require JModuleHelper::getLayoutPath('mod_version', $params->get('layout', 'default'));

View File

@ -0,0 +1,78 @@
<?xml version="1.0" encoding="utf-8"?>
<extension
type="module"
version="3.1"
client="administrator">
<name>mod_version</name>
<author>Joomla! Project</author>
<creationDate>January 2012</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_VERSION_XML_DESCRIPTION</description>
<files>
<filename module="mod_version">mod_version.php</filename>
<filename>helper.php</filename>
<filename>index.html</filename>
<folder>tmpl</folder>
<folder>language</folder>
</files>
<languages>
<language tag="en-GB">language/en-GB/en-GB.mod_version.ini</language>
<language tag="en-GB">language/en-GB/en-GB.mod_version.sys.ini</language>
</languages>
<help key="JHELP_EXTENSIONS_MODULE_MANAGER_ADMIN_VERSION" />
<config>
<fields name="params">
<fieldset name="basic">
<field
name="format"
type="list"
default="short"
label="MOD_VERSION_FORMAT_LABEL"
description="MOD_VERSION_FORMAT_DESC">
<option
value="short">MOD_VERSION_FORMAT_SHORT</option>
<option
value="long">MOD_VERSION_FORMAT_LONG</option>
</field>
<field
name="product"
type="list"
default="1"
label="MOD_VERSION_PRODUCT_LABEL"
description="MOD_VERSION_PRODUCT_DESC">
<option
value="1">JYES</option>
<option
value="0">JNO</option>
</field>
</fieldset>
<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,14 @@
<?php
/**
* @package Joomla.Administrator
* @subpackage mod_version
*
* @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 if (!empty($version)) : ?>
<p align="center"><?php echo $version ?></p>
<?php endif; ?>

View File

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