__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ 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;
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 {position:relative;background:#efefef;border: none;border-radius: px;color: #333;font-weight: normal;line-height: 24px;padding: 5px 5px 5px 35px;margin: 3px 0;text-align: left;text-decoration: none;}
.ckinfo > .fas {
font-size: 15px;
padding: 3px 5px;
background: rgba(0, 0, 0, 0.1);
position: absolute;
top: 0;
bottom: 0;
left: 0;
line-height: 25px;
width: 30px;
text-align: center;
}
.ckinfo img {margin: 0 10px 0 0;}
.control-label:empty {display: none;}
.control-label:empty + .controls {margin: 0;}
';
$doc->addStyleDeclaration($styles);
// get the extension version
$current_version = $this->getCurrentVersion(JPATH_SITE .'/administrator/components/com_sliderck/sliderck.xml');
$html = '';
$html .= '<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css" integrity="sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf" crossorigin="anonymous">';
$html .= '<div class="ckinfo"><i class="fas fa-thumbs-up"></i><a href="https://extensions.joomla.org/extension/slider-ck/" target="_blank">' . JText::_('SLIDERCK_VOTE_JED') . '</a></div>';
$html .= '<div class="ckinfo"><i class="fas fa-info"></i><b>SLIDER CK</b> - ' . JText::_('SLIDERCK_CURRENT_VERSION') . ' : <span class="label">' . $current_version . '</span></div>';
$html .= '<div class="ckinfo"><i class="fas fa-file-alt"></i><a href="https://www.joomlack.fr/documentation/slider-ck" target="_blank">' . JText::_('SLIDERCK_DOCUMENTATION') . '</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 = simplexml_load_file($file_url)) {
$installed_version = (string)$xml_installed->version;
}
return $installed_version;
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| ckbackground.php | File | 633 B | 0664 |
|
| ckcolor.php | File | 2.18 KB | 0664 |
|
| ckdocumentation.php | File | 763 B | 0664 |
|
| ckfolderlist.php | File | 1.9 KB | 0664 |
|
| ckformfield.php | File | 1.67 KB | 0664 |
|
| ckheight.php | File | 3.4 KB | 0664 |
|
| ckinfo.php | File | 2.46 KB | 0664 |
|
| cklayout.php | File | 3.77 KB | 0664 |
|
| cklight.php | File | 1.21 KB | 0664 |
|
| cklist.php | File | 2.22 KB | 0664 |
|
| ckmigrate.php | File | 4.64 KB | 0664 |
|
| ckpro.php | File | 917 B | 0664 |
|
| ckproducts.php | File | 2.65 KB | 0664 |
|
| ckproonly.php | File | 1.14 KB | 0664 |
|
| ckradio.php | File | 2.26 KB | 0664 |
|
| ckslidesmanager.php | File | 3.56 KB | 0664 |
|
| cksource.php | File | 2.13 KB | 0664 |
|
| ckspacer.php | File | 1.56 KB | 0664 |
|
| ckstyle.php | File | 3.22 KB | 0664 |
|
| cktext.php | File | 1.91 KB | 0664 |
|
| sliderckcolor.php | File | 901 B | 0664 |
|
| sliderckinterface.php | File | 1.89 KB | 0664 |
|
| slidercklist.php | File | 951 B | 0664 |
|
| sliderckradio.php | File | 1.09 KB | 0664 |
|
| sliderckspacer.php | File | 1.55 KB | 0664 |
|
| slidercktext.php | File | 843 B | 0664 |
|