Server IP : 104.21.93.192 / Your IP : 216.73.216.84 Web Server : LiteSpeed System : Linux premium900.web-hosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 User : redwjova ( 1790) PHP Version : 8.1.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/redwjova/clevorio.com/wp-content/plugins/smartmag-core/inc/elementor/ |
Upload File : |
<?php namespace Bunyad\Elementor; use Bunyad\Blocks\Base\LoopBlock; use Bunyad\Blocks\Base\LoopOptions; /** * Extra section options. */ class SectionOptions extends LoopOptions { public function init() { parent::init(); if (LoopWidget::is_elementor()) { parent::init_editor(); } $options = [ 'sec-query' => [ // 'posts' => $this->options['sec-general']['posts'] ] + $this->options['sec-filter'] ]; $this->options = $options; $this->_add_defaults(LoopBlock::get_query_props()); /** * IMPORTANT: Any changes will also have to reflect in blockQueryKeys in elementor-editor.js */ $this->options['sec-query']['query_type'] = array_replace( $this->options['sec-query']['query_type'], [ 'options' => [ 'none' => esc_html__('None', 'bunyad-admin'), 'custom' => esc_html__('Custom', 'bunyad-admin'), // Main isn't supported yet. 'main-custom' => esc_html__('Archive / Main Query', 'bunyad-admin'), // Using parent's query not supported yet. // 'section' => esc_html__('Section Query (Parent Section)', 'bunyad-admin'), ], 'default' => 'none' ] ); } }