| Server IP : 54.36.91.62 / Your IP : 216.73.217.112 Web Server : Apache System : Linux webm013.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 User : coopiak ( 151928) PHP Version : 8.3.23 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/coopiak/dansnotreville-fr/plugins/system/nrframework/layouts/controls/ |
Upload File : |
<?php
/**
* @package EngageBox
* @version 6.1.3 Pro
*
* @author Tassos Marinos <info@tassos.gr>
* @link https://www.tassos.gr
* @copyright Copyright © 2023 Tassos All Rights Reserved
* @license GNU GPLv3 <http://www.gnu.org/licenses/gpl.html> or later
*/
defined('_JEXEC') or die('Restricted access');
extract($displayData);
$unit = isset($value['unit']) ? $value['unit'] : 'px';
?>
<div class="tf-dimension-control<?php echo $units ? ' has-units' : ''; ?>">
<div class="tf-dimension-controls">
<?php
foreach ($dimensions as $key => $label)
{
$item_name = $name . '[' . $key . ']';
$item_value = isset($value[$key]) ? $value[$key] : '';
$is_linked = isset($value['linked']) ? $value['linked'] : $linked;
$item_id = rtrim(str_replace(['][', '[', ']'], '_', $item_name), '_');
?>
<div class="tf-dimension-controls--item form-control<?php echo $item_value !== '' ? ' has-value' : ''; ?>">
<input type="number" value="<?php echo $item_value; ?>" min="0" max="999" class="tf-dimension-controls--item--value" placeholder="<?php echo JText::_($label); ?>" id="<?php echo $item_id; ?>" name="<?php echo $item_name; ?>" />
<?php
if ($units)
{
$layout = new JLayoutFile('selector', JPATH_PLUGINS . '/system/nrframework/layouts/controls/unit');
echo $layout->render([
'name' => $name,
'units' => $units,
'unit' => $unit,
'hide_input' => true
]);
}
?>
</div>
<?php
}
?>
</div>
<?php
$layout = new JLayoutFile('input_value', JPATH_PLUGINS . '/system/nrframework/layouts/controls/unit');
echo $layout->render([
'name' => $name,
'unit' => $unit
]);
$layout = new JLayoutFile('linked', JPATH_PLUGINS . '/system/nrframework/layouts/controls/dimension');
echo $layout->render([
'dimension_control_locks' => $dimension_control_locks,
'name' => $name,
'is_linked' => $is_linked
]);
?>
</div>