| Server IP : 146.59.209.152 / Your IP : 216.73.216.46 Web Server : Apache System : Linux webm005.cluster131.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64 User : infrafs ( 43850) PHP Version : 8.2.29 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/infrafs/bike/wp-content/plugins/colibri-page-builder/src/Customizer/Panels/ |
Upload File : |
<?php
namespace ColibriWP\PageBuilder\Customizer\Panels;
use ColibriWP\PageBuilder\Customizer\Settings\ContentSetting;
class ContentPanel extends \ColibriWP\PageBuilder\Customizer\BasePanel {
public function init() {
$this->addSections(
array(
"page_layout_reorder" => array(
"wp_data" => array(
"title" => __( 'Reorder and remove sections', 'colibri-page-builder' ),
"panel" => $this->id,
),
),
"page_content_section" => array(
"wp_data" => array(
"title" => __( 'Add sections into page', 'colibri-page-builder' ),
"panel" => $this->id,
),
),
"page_content_settings" => array(
"wp_data" => array(
"panel" => $this->id,
),
),
)
);
$this->addControls(
array(
"page_content_control" => array(
"wp_data" => array(
'section' => 'page_content',
"settings" => "page_content"
)
)
)
);
$this->addSettings(
array(
"page_content" => array(
"class" => ContentSetting::class,
"section" => "page_content_section",
"wp_data" => array(
"transport" => "postMessage",
"default" => array(),
)
),
)
);
}
public function render_template() {
?>
<li id="accordion-panel-{{ data.id }}" data-name="{{{ data.id }}}"
class="accordion-section control-section control-panel control-panel-{{ data.type }}">
<h3 class="accordion-section-title no-chevron" tabindex="0">
{{ data.title }}
<!--<span title="<?php _e( 'Add Section', 'colibri-page-builder' ) //phpcs:ignore WordPress.Security.EscapeOutput.UnsafePrintingFunction ?>" class="add-section-plus section-icon"></span>-->
<!--<span title="<?php _e( 'Page Settings', 'colibri-page-builder' ) //phpcs:ignore WordPress.Security.EscapeOutput.UnsafePrintingFunction ?>" class="section-icon setting hidden"></span>-->
</h3>
<div class="sections-list-reorder">
<div id="extend-builder-sections"></div>
</div>
</li>
<?php ;
}
}