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/news-focus/ |
Upload File : |
<?php namespace Bunyad\Blocks\Loops; use Bunyad\Blocks\Base\LoopOptions; /** * Grid Small Block Options */ class NewsFocus_Options extends LoopOptions { public $block_id = 'NewsFocus'; protected $supported_columns = [2, 3, 4]; /** * @inheritDoc */ public function init() { parent::init(); // Block name to be used by page builders $this->block_name = esc_html__('News Focus Block', 'bunyad-admin'); $this->elementor_conf = [ 'title' => $this->block_name, 'icon' => 'ts-ele-icon ts-ele-icon-news-focus', 'categories' => ['smart-mag-blocks'], ]; $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', ], 'highlights' => [ 'label' => esc_html__('Big Posts', 'bunyad-admin'), 'type' => 'number', 'default' => 1, ] ] + $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' ] ], ]; // Remove devices. unset($this->options['sec-layout']['columns']['devices']); // Remove spacings. $this->remove_options([ 'css_column_gap', 'css_row_gap' ]); $this->_add_defaults(); } }