__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
/**
* @copyright Copyright (C) 2017 Cedric KEIFLIN alias ced1870
* http://www.joomlack.fr
* @license GNU/GPL
* */
defined('JPATH_PLATFORM') or die;
if (!defined('SLIDERCK_MEDIA_URI'))
{
define('SLIDERCK_MEDIA_URI', JUri::root(true) . '/media/com_sliderck');
}
class JFormFieldCkinfo extends JFormField
{
/**
* The form field type.
*
* @var string
*
*/
protected $type = 'ckinfo';
/**
* Method to get the field input markup.
*
* @return string The field input markup.
*
*/
protected function getLabel()
{
return '';
}
/**
* Method to get the field label markup.
*
* @return string The field label markup.
*
*/
protected function getInput()
{
$doc = JFactory::getDocument();
$styles = '.ckinfo {background:#efefef;border: none;border-radius: 3px;color: #333;font-weight: normal;line-height: 24px;padding: 5px;margin: 3px 0;text-align: left;text-decoration: none;}';
$styles .= '.ckinfo img {margin: 0 10px 0 0;}';
$styles .= '.control-label:empty {display: none;}';
$styles .= '.control-label:empty + .controls {margin: 0;}';
$doc->addStyleDeclaration($styles);
// get the extension version
$current_module_version = $this->getCurrentVersion(JPATH_SITE .'/modules/mod_sliderck/mod_sliderck.xml');
$current_component_version = $this->getCurrentVersion(JPATH_SITE .'/administrator/components/com_sliderck/sliderck.xml');
$html = '';
$html .= '<div class="ckinfo"><img src="' . SLIDERCK_MEDIA_URI . '/images/thumb-up.png" /><a href="https://extensions.joomla.org/extensions/extension/photos-a-images/slideshow/slider-ck" target="_blank">' . JText::_('MOD_SLIDERCK_PLEASE_VOTE_JED') . '</a></div>';
$html .= '<div class="ckinfo"><img src="' . SLIDERCK_MEDIA_URI . '/images/information.png" /><b>MODULE SLIDER CK</b> - ' . JText::_('MOD_SLIDERCK_CURRENT_VERSION') . ' : <span class="label">' . $current_module_version . '</span></div>';
$html .= '<div class="ckinfo"><img src="' . SLIDERCK_MEDIA_URI . '/images/information.png" /><b>COMPONENT SLIDER CK</b> - ' . JText::_('MOD_SLIDERCK_CURRENT_VERSION') . ' : <span class="label">' . $current_component_version . '</span></div>';
$html .= '<div class="ckinfo"><img src="' . SLIDERCK_MEDIA_URI . '/images/link.png" /><a href="http://docs.joomlack.fr/slider-ck" target="_blank">' . JText::_('MOD_SLIDERCK_DOCS_URL') . '</a></div>';
return $html;
}
/*
* Get a variable from the manifest file
*
* @return the current version
*/
public static function getCurrentVersion($file_url) {
// get the version installed
$installed_version = 'UNKOWN';
if ($xml_installed = JFactory::getXML($file_url)) {
$installed_version = (string)$xml_installed->version;
}
return $installed_version;
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| images | Folder | 0775 |
|
|
| ckfolder.css | File | 1.52 KB | 0664 |
|
| ckfolder.js | File | 2.54 KB | 0664 |
|
| ckfolder.php | File | 3.67 KB | 0664 |
|
| ckinfo.php | File | 2.68 KB | 0664 |
|
| cklayout.php | File | 3.7 KB | 0664 |
|
| cklist.php | File | 5.22 KB | 0664 |
|
| ckparams.php | File | 1.4 KB | 0664 |
|
| ckradio.php | File | 4.94 KB | 0664 |
|
| cksource.php | File | 1.94 KB | 0664 |
|
| ckspacer.php | File | 4.56 KB | 0664 |
|
| cksql.php | File | 1.48 KB | 0664 |
|
| ckstyle.php | File | 5.19 KB | 0664 |
|
| cktext.php | File | 4.24 KB | 0664 |
|
| index.html | File | 31 B | 0664 |
|