| Current Path : /home/w/u/e/wuectly/www/03cbe/ |
| Current File : /home/w/u/e/wuectly/www/03cbe/mod_version.tar |
default.php 0000604 00000000573 15245571351 0006712 0 ustar 00 <?php
/**
* @package Joomla.Administrator
* @subpackage mod_version
*
* @copyright (C) 2013 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
?>
<?php if (!empty($version)) : ?>
<?php echo $version; ?>
<?php echo ' — '; ?>
<?php endif; ?>
mod_version.xml 0000604 00000004005 15245602047 0007612 0 ustar 00 <?xml version="1.0" encoding="utf-8"?>
<extension type="module" version="3.1" client="administrator" method="upgrade">
<name>mod_version</name>
<author>Joomla! Project</author>
<creationDate>January 2012</creationDate>
<copyright>(C) 2012 Open Source Matters, Inc.</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>
<folder>language</folder>
<folder>tmpl</folder>
<filename>helper.php</filename>
</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"
label="MOD_VERSION_FORMAT_LABEL"
description="MOD_VERSION_FORMAT_DESC"
default="short"
>
<option value="short">MOD_VERSION_FORMAT_SHORT</option>
<option value="long">MOD_VERSION_FORMAT_LONG</option>
</field>
<field
name="product"
type="radio"
label="MOD_VERSION_PRODUCT_LABEL"
description="MOD_VERSION_PRODUCT_DESC"
class="btn-group btn-group-yesno"
default="1"
filter="integer"
>
<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"
validate="moduleLayout"
/>
<field
name="moduleclass_sfx"
type="textarea"
label="COM_MODULES_FIELD_MODULECLASS_SFX_LABEL"
description="COM_MODULES_FIELD_MODULECLASS_SFX_DESC"
rows="3"
/>
</fieldset>
</fields>
</config>
</extension>
mod_version.php 0000604 00000000725 15245602047 0007606 0 ustar 00 <?php
/**
* @package Joomla.Administrator
* @subpackage mod_version
*
* @copyright (C) 2012 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
JLoader::register('ModVersionHelper', __DIR__ . '/helper.php');
$version = ModVersionHelper::getVersion($params);
require JModuleHelper::getLayoutPath('mod_version', $params->get('layout', 'default'));
tmpl/default.php 0000604 00000000560 15245602047 0007657 0 ustar 00 <?php
/**
* @package Joomla.Administrator
* @subpackage mod_version
*
* @copyright (C) 2012 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
?>
<?php if (!empty($version)) : ?>
<p class="text-center"><?php echo $version; ?></p>
<?php endif; ?>
helper.php 0000604 00000001770 15245602047 0006542 0 ustar 00 <?php
/**
* @package Joomla.Administrator
* @subpackage mod_version
*
* @copyright (C) 2012 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
/**
* Helper for mod_version
*
* @since 1.6
*/
abstract class ModVersionHelper
{
/**
* Get the member items of the submenu.
*
* @param \Joomla\Registry\Registry &$params The parameters object.
*
* @return string String containing the current Joomla version based on the selected format.
*/
public static function getVersion(&$params)
{
$version = new JVersion;
$versionText = $version->getShortVersion();
$product = $params->get('product', 1);
if ($params->get('format', 'short') === 'long')
{
$versionText = str_replace($version::PRODUCT . ' ', '', $version->getLongVersion());
}
if (!empty($product))
{
$versionText = $version::PRODUCT . ' ' . $versionText;
}
return $versionText;
}
}
language/en-GB/en-GB.mod_version.sys.ini 0000604 00000000542 15245602047 0013752 0 ustar 00 ; Joomla! Project
; (C) 2012 Open Source Matters, Inc. <https://www.joomla.org>
; License GNU General Public License version 2 or later; see LICENSE.txt
; 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."
language/en-GB/en-GB.mod_version.ini 0000604 00000001140 15245602047 0013130 0 ustar 00 ; Joomla! Project
; (C) 2012 Open Source Matters, Inc. <https://www.joomla.org>
; License GNU General Public License version 2 or later; see LICENSE.txt
; 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."