Example #1
0
<?php

/*
 * Layout Section
*/
$this->sections[] = array('title' => __('Layout Settings', 'rhythm'), 'desc' => __('Change the main theme\'s layout and configure it.', 'rhythm'), 'icon' => 'el-icon-th-large', 'fields' => array(array('id' => 'main-layout', 'type' => 'image_select', 'compiler' => true, 'title' => __('Main Layout', 'rhythm'), 'subtitle' => __('Select main content and sidebar alignment. Choose between 1 or 2 column layout.', 'rhythm'), 'options' => array('default' => array('alt' => __('1 Column', 'rhythm'), 'img' => ReduxFramework::$_url . 'assets/img/1col.png'), 'left_sidebar' => array('alt' => __('2 Column Left', 'rhythm'), 'img' => ReduxFramework::$_url . 'assets/img/2cl.png'), 'right_sidebar' => array('alt' => __('2 Column Right', 'rhythm'), 'img' => ReduxFramework::$_url . 'assets/img/2cr.png')), 'default' => 'default', 'validate' => 'not_empty'), array('id' => 'sidebar', 'type' => 'select', 'title' => __('Sidebar', 'rhythm'), 'subtitle' => __('Select custom sidebar', 'rhythm'), 'options' => ts_get_custom_sidebars_list(), 'default' => '', 'required' => array('main-layout', 'equals', array('left_sidebar', 'right_sidebar'))), array('id' => 'sidebar-size', 'type' => 'select', 'title' => __('Sidebar Size', 'rhythm'), 'subtitle' => __('Choose size for the title wrapper', 'rhythm'), 'options' => array('3columns' => __('Normal', 'rhythm'), '4columns' => __('Wide', 'rhythm')), 'default' => '', 'required' => array('main-layout', 'equals', array('left_sidebar', 'right_sidebar')))));
Example #2
0
<?php

/*
 * Layout Section
*/
$sections[] = array('title' => __('Layout Settings', 'rhythm'), 'desc' => __('Change the main theme\'s layout and configure it.', 'rhythm'), 'icon' => 'el-icon-adjust-alt', 'fields' => array(array('id' => 'main-layout-local', 'type' => 'select', 'compiler' => true, 'title' => __('Main Layout', 'rhythm'), 'subtitle' => __('Select main content and sidebar alignment. Choose between 1 or 2 column layout.', 'rhythm'), 'options' => array('default' => __('1 Column', 'rhythm'), 'left_sidebar' => __('2 - Column Left', 'rhythm'), 'right_sidebar' => __('2 - Column Right', 'rhythm')), 'default' => ''), array('id' => 'sidebar-local', 'type' => 'select', 'title' => __('Sidebar', 'rhythm'), 'subtitle' => __('Select custom sidebar', 'rhythm'), 'options' => ts_get_custom_sidebars_list(), 'default' => '', 'required' => array('main-layout-local', 'equals', array('left_sidebar', 'right_sidebar'))), array('id' => 'sidebar-size-local', 'type' => 'select', 'title' => __('Sidebar Size', 'rhythm'), 'subtitle' => __('Choose size for the title wrapper', 'rhythm'), 'options' => array('3columns' => __('Normal', 'rhythm'), '4columns' => __('Wide', 'rhythm')), 'default' => '', 'required' => array('main-layout-local', 'equals', array('left_sidebar', 'right_sidebar')))));
Example #3
0
<?php

/*
 * Footer Section
*/
$sections[] = array('title' => __('Footer', 'rhythm'), 'desc' => __('Change the footer section configuration.', 'rhythm'), 'icon' => 'el-icon-cog', 'fields' => array(array('id' => 'random-number', 'type' => 'info', 'desc' => __('Footer sidebar configuration', 'rhythm')), array('id' => 'footer-widgets-enable-local', 'type' => 'button_set', 'title' => __('Enable footer sidebar?', 'rhythm'), 'subtitle' => __('If on, this layout part will be displayed.', 'rhythm'), 'options' => array('1' => 'On', '' => 'Default', '0' => 'Off'), 'default' => ''), array('id' => 'footer-sidebar-1-local', 'type' => 'select', 'title' => __('Footer Sidebar 1', 'rhythm'), 'subtitle' => __('Select custom sidebar', 'rhythm'), 'options' => ts_get_custom_sidebars_list(), 'default' => '', 'required' => array('footer-widgets-enable-local', 'equals', '1')), array('id' => 'footer-sidebar-2-local', 'type' => 'select', 'title' => __('Footer Sidebar 2', 'rhythm'), 'subtitle' => __('Select custom sidebar', 'rhythm'), 'options' => ts_get_custom_sidebars_list(), 'default' => '', 'required' => array('footer-widgets-enable-local', 'equals', '1')), array('id' => 'footer-sidebar-3-local', 'type' => 'select', 'title' => __('Footer Sidebar 3', 'rhythm'), 'subtitle' => __('Select custom sidebar', 'rhythm'), 'options' => ts_get_custom_sidebars_list(), 'default' => '', 'required' => array('footer-widgets-enable-local', 'equals', '1')), array('id' => 'footer-sidebar-4-local', 'type' => 'select', 'title' => __('Footer Sidebar 4', 'rhythm'), 'subtitle' => __('Select custom sidebar', 'rhythm'), 'options' => ts_get_custom_sidebars_list(), 'default' => '', 'required' => array('footer-widgets-enable-local', 'equals', '1')), array('id' => 'random-number', 'type' => 'info', 'desc' => __('Footer bar configuration', 'rhythm')), array('id' => 'footer-enable-local', 'type' => 'button_set', 'title' => __('Enable footer?', 'rhythm'), 'subtitle' => __('If on, this layout part will be displayed.', 'rhythm'), 'options' => array('1' => 'On', '' => 'Default', '0' => 'Off'), 'default' => ''), array('id' => 'footer-logo-enable-local', 'type' => 'button_set', 'title' => __('Enable logo?', 'rhythm'), 'subtitle' => __('If on, this layout part will be displayed.', 'rhythm'), 'options' => array('1' => 'On', '' => 'Default', '0' => 'Off'), 'default' => ''), array('id' => 'footer-logo-local', 'type' => 'media', 'url' => true, 'title' => __('Footer Logo', 'rhythm'), 'subtitle' => __('Upload the logo that will be displayed in the footer.', 'rhythm')), array('id' => 'footer-enable-social-icons-local', 'type' => 'button_set', 'title' => __('Show social icons', 'rhythm'), 'subtitle' => __('If on, social icons will be displayed.', 'rhythm'), 'options' => array('1' => 'On', '' => 'Default', '0' => 'Off'), 'default' => ''), array('id' => 'footer-text-content-local', 'type' => 'textarea', 'title' => __('Copyright Content', 'rhythm'), 'subtitle' => __('Place any text to be displayed. Leave empty to use default one from theme options.', 'rhythm'), 'default' => ''), array('id' => 'footer-small-text-content-local', 'type' => 'textarea', 'title' => __('Copyright Small Content', 'rhythm'), 'subtitle' => __('Place any text to be displayed. Leave empty to use default one from theme options.', 'rhythm'), 'default' => '')));
Example #4
0
<?php

/*
 * Footer Section
*/
$this->sections[] = array('title' => __('Footer', 'rhythm'), 'desc' => __('Change the footer section configuration.', 'rhythm'), 'icon' => 'el-icon-cog', 'fields' => array(array('id' => 'random-number', 'type' => 'info', 'desc' => __('Footer sidebar configuration', 'rhythm')), array('id' => 'footer-widgets-enable', 'type' => 'switch', 'title' => __('Enable footer sidebar?', 'rhythm'), 'subtitle' => __('If on, this layout part will be displayed.', 'rhythm'), "default" => 0), array('id' => 'footer-sidebar-1', 'type' => 'select', 'title' => __('Footer Sidebar 1', 'rhythm'), 'subtitle' => __('Select custom sidebar', 'rhythm'), 'options' => ts_get_custom_sidebars_list(), 'default' => 'default', 'required' => array('footer-widgets-enable', 'equals', '1'), 'validate' => 'not_empty'), array('id' => 'footer-sidebar-2', 'type' => 'select', 'title' => __('Footer Sidebar 2', 'rhythm'), 'subtitle' => __('Select custom sidebar', 'rhythm'), 'options' => ts_get_custom_sidebars_list(), 'default' => 'default', 'required' => array('footer-widgets-enable', 'equals', '1'), 'validate' => 'not_empty'), array('id' => 'footer-sidebar-3', 'type' => 'select', 'title' => __('Footer Sidebar 3', 'rhythm'), 'subtitle' => __('Select custom sidebar', 'rhythm'), 'options' => ts_get_custom_sidebars_list(), 'default' => 'default', 'required' => array('footer-widgets-enable', 'equals', '1'), 'validate' => 'not_empty'), array('id' => 'footer-sidebar-4', 'type' => 'select', 'title' => __('Footer Sidebar 4', 'rhythm'), 'subtitle' => __('Select custom sidebar', 'rhythm'), 'options' => ts_get_custom_sidebars_list(), 'default' => 'default', 'required' => array('footer-widgets-enable', 'equals', '1'), 'validate' => 'not_empty'), array('id' => 'random-number', 'type' => 'info', 'desc' => __('Footer bar configuration', 'rhythm')), array('id' => 'footer-enable', 'type' => 'switch', 'title' => __('Enable footer?', 'rhythm'), 'subtitle' => __('If on, this layout part will be displayed.', 'rhythm'), "default" => 1), array('id' => 'footer-logo-enable', 'type' => 'switch', 'title' => __('Enable logo?', 'rhythm'), 'subtitle' => __('If on, this layout part will be displayed.', 'rhythm'), "default" => 1), array('id' => 'footer-logo', 'type' => 'media', 'url' => true, 'title' => __('Footer Logo', 'rhythm'), 'subtitle' => __('Upload the logo that will be displayed in the footer.', 'rhythm')), array('id' => 'footer-enable-social-icons', 'type' => 'switch', 'title' => __('Show social icons', 'rhythm'), 'subtitle' => __('If on, social icons will be displayed.', 'rhythm'), "default" => 0), array('id' => 'footer-text-content', 'type' => 'textarea', 'title' => __('Copyright Content', 'rhythm'), 'subtitle' => __('Place any text to be displayed.', 'rhythm'), 'default' => ''), array('id' => 'footer-small-text-content', 'type' => 'textarea', 'title' => __('Copyright Small Content', 'rhythm'), 'subtitle' => __('Place any text to be displayed.', 'rhythm'), 'default' => '')));