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/themes/smart-mag/admin/options/listings/ |
Upload File : |
<?php /** * Fields for List loops. */ $fields = []; \Bunyad\Util\repeat_options( $_common['tpl_listing'], [ 'list' => [ 'overrides' => [ 'loop_{key}_excerpt_length' => [ 'value' => 20, ] ], 'replacements' => [ '{selector}' => '.loop-list', ], 'skip' => [ 'loop_{key}_content_center', ] ] ], $fields, ['replace_in' => ['css', 'group', 'context']] ); $fields[] = [ 'name' => 'loop_list_style', 'label' => esc_html__('Style Variation', 'bunyad-admin'), 'value' => '', 'desc' => 'Different styles like cards, normal etc.', 'type' => 'select', 'options' => [ '' => esc_html__('Normal', 'bunyad-admin'), 'card' => esc_html__('Cards', 'bunyad-admin'), ], ]; $fields[] = [ 'name' => 'loop_list_grid_on_sm', 'label' => esc_html__('Grid Style on Phones', 'bunyad-admin'), 'value' => '', 'desc' => 'Show in a grid, instead of list style, on mobile devices.', 'type' => 'toggle', ]; $fields[] = [ 'name' => 'css_loop_list_row_gap', 'label' => esc_html__('Custom Row Gap', 'bunyad-admin'), 'value' => '', 'desc' => '', 'type' => 'number', 'devices' => true, 'style' => 'inline-sm', 'css' => [ '.loop-list' => ['props' => ['--grid-row-gap' => '%spx']] ] ]; $fields[] = [ 'name' => 'css_loop_list_box_radius', 'label' => esc_html__('Cards Box Roundness', 'bunyad-admin'), 'value' => '', 'desc' => 'Ony for cards style.', 'type' => 'number', 'style' => 'inline-sm', 'css' => [ '.loop-list-card .l-post' => [ 'props' => ['border-radius' => '%spx', 'overflow' => 'hidden'] ] ] ]; $fields[] = [ 'name' => 'loop_list_media_width', 'label' => esc_html__('Image Width %', 'bunyad-admin'), 'value' => '', 'desc' => '', 'type' => 'number', 'style' => 'inline-sm', 'input_attrs' => ['min' => 1, 'max' => 100, 'step' => 1], 'transport' => 'refresh', 'css' => [ '.list-post' => [ 'props' => [ '--list-p-media-width' => '%s%', '--list-p-media-max-width' => '85%' ], ] ], ]; $fields[] = [ 'name' => 'css_loop_list_media_max_width', 'label' => esc_html__('Max Width %', 'bunyad-admin'), 'value' => '', 'desc' => '', 'type' => 'slider', 'devices' => true, 'classes' => 'sep-bottom', 'input_attrs' => ['min' => 1, 'max' => 100, 'step' => 1], 'css' => [ '.list-post .media:not(i)' => [ 'props' => ['--list-p-media-max-width' => '%s%'], ] ], 'condition' => [['key' => 'loop_list_media_width', 'value' => '', 'compare' => '!=']] ]; return $fields;