Server IP : 172.67.214.6 / Your IP : 216.73.216.73 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/fyntric.com/wp-content/plugins/smartmag-core/blocks/loops/highlights/ |
Upload File : |
<?php namespace Bunyad\Blocks\Loops; use Bunyad\Blocks\Base\LoopOptions; /** * Grid Small Block Options */ class Highlights_Options extends LoopOptions { public $block_id = 'Highlights'; protected $supported_columns = 2; /** * @inheritDoc */ public function init() { parent::init(); // Block name to be used by page builders $this->block_name = esc_html__('Highlights Block', 'bunyad-admin'); $this->elementor_conf = [ 'title' => $this->block_name, 'icon' => 'ts-ele-icon ts-ele-icon-highlights', 'categories' => ['smart-mag-blocks'], ]; // No pagination for this block // $this->remove_options(['pagination', 'pagination_type']); // Remove spacings. $this->remove_options([ 'css_column_gap', 'css_row_gap' ]); $this->options['sec-layout'] = [ 'small_style' => [ 'label' => esc_html__('Small Style', 'bunyad-admin'), 'type' => 'select', 'options' => [ 'a' => esc_html__('Style A: With Thumbs', 'bunyad-admin'), 'b' => esc_html__('Style B: Arrows / No Thumbs', 'bunyad-admin'), ], 'default' => 'a', ] ] + $this->options['sec-layout']; $this->options['sec-style-titles'] += [ 'css_title_typo_sm' => [ 'label' => esc_html__('Small Titles Typography', 'bunyad-admin'), 'type' => 'group', 'group_type' => 'typography', 'selector' => '{{WRAPPER}} .small-post .post-title', 'default' => [], 'position' => [ 'at' => 'after', 'of' => 'css_title_typo' ] ], ]; $this->_add_defaults(); } }