first commit
This commit is contained in:
40
plugins/system/tabsaccordions/layouts/container_start.php
Normal file
40
plugins/system/tabsaccordions/layouts/container_start.php
Normal file
@@ -0,0 +1,40 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Tabs & Accordions
|
||||
* @version 2.0.0
|
||||
*
|
||||
* @author Peter van Westen <info@regularlabs.com>
|
||||
* @link https://regularlabs.com
|
||||
* @copyright Copyright © 2023 Regular Labs All Rights Reserved
|
||||
* @license GNU General Public License version 2 or later
|
||||
*/
|
||||
|
||||
use RegularLabs\Library\HtmlTag as RL_HtmlTag;
|
||||
|
||||
defined('JPATH_BASE') or die;
|
||||
|
||||
/**
|
||||
* Layout variables
|
||||
* -----------------
|
||||
*
|
||||
* @var object $displayData
|
||||
*/
|
||||
|
||||
$set = $displayData;
|
||||
|
||||
$layout_path = JPATH_PLUGINS . '/system/tabsaccordions/layouts';
|
||||
|
||||
$attributes = [
|
||||
];
|
||||
$data_attributes = [
|
||||
'element' => 'container',
|
||||
'state' => 'initial', // @todo: set to null if pre-load styling is switched off
|
||||
...(array) $set->data,
|
||||
];
|
||||
|
||||
$attributes = trim(
|
||||
RL_HtmlTag::flattenAttributes($attributes)
|
||||
. ' ' . RL_HtmlTag::flattenAttributes($data_attributes, 'data-rlta-')
|
||||
);
|
||||
?>
|
||||
<div <?php echo $attributes; ?>>
|
||||
Reference in New Issue
Block a user