acf
This commit is contained in:
35
plugins/system/nrframework/layouts/responsive_control.php
Normal file
35
plugins/system/nrframework/layouts/responsive_control.php
Normal file
@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Advanced Custom Fields
|
||||
* @version 2.8.8 Pro
|
||||
*
|
||||
* @author Tassos Marinos <info@tassos.gr>
|
||||
* @link https://www.tassos.gr
|
||||
* @copyright Copyright © 2024 Tassos All Rights Reserved
|
||||
* @license GNU GPLv3 <http://www.gnu.org/licenses/gpl.html> or later
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
extract($displayData);
|
||||
|
||||
use Joomla\CMS\Form\FormHelper;
|
||||
|
||||
if (empty($html))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
$styles = array_filter([
|
||||
'max-width' => $width
|
||||
]);
|
||||
$styles = array_map(function($k, $v) {
|
||||
return $k . ':' . $v . ';';
|
||||
}, array_keys($styles), $styles);
|
||||
?>
|
||||
<div class="nr-responsive-control<?php echo $class; ?>"<?php echo $styles ? ' style="' . implode('', $styles) . '"' : ''; ?>>
|
||||
<div class="nr-responsive-control--item <?php echo $breakpoint; ?>">
|
||||
<?php echo $html; ?>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user