function magzimum_breaking_theme_options_args($args)
 {
     // Create breaking option panel
     $args['panels']['breaking_panel']['title'] = __('Breaking News', 'magzimum');
     // Settings Section
     $args['panels']['breaking_panel']['sections']['section_breaking_settings'] = array('title' => __('Breaking News Settings', 'magzimum'), 'priority' => 70, 'fields' => array('breaking_status' => array('title' => __('Enable for', 'magzimum'), 'type' => 'select', 'choices' => magzimum_get_featured_status_options()), 'breaking_title' => array('title' => __('Title', 'magzimum'), 'type' => 'text'), 'breaking_category' => array('title' => __('Category', 'magzimum'), 'type' => 'dropdown-taxonomies'), 'breaking_show_date' => array('title' => __('Show Date', 'magzimum'), 'type' => 'checkbox'), 'breaking_number' => array('title' => __('Number of Posts', 'magzimum'), 'type' => 'number', 'sanitize_callback' => 'absint', 'input_attrs' => array('min' => 1, 'max' => 10, 'step' => 1, 'style' => 'width: 50px;')), 'breaking_transition_delay' => array('title' => __('Transition Delay', 'magzimum'), 'description' => __('In second(s)', 'magzimum'), 'type' => 'number', 'sanitize_callback' => 'absint', 'input_attrs' => array('min' => 1, 'max' => 10, 'step' => 1, 'style' => 'width: 50px;'))));
     return $args;
 }
 function magzimum_featured_content_theme_options_args($args)
 {
     // Create featured content option panel
     $args['panels']['featured_content_panel']['title'] = __('Featured Content', 'magzimum');
     // Settings Section
     $args['panels']['featured_content_panel']['sections']['section_content_settings'] = array('title' => __('Content Settings', 'magzimum'), 'priority' => 65, 'fields' => array('featured_content_show_arrow' => array('title' => __('Show Arrow', 'magzimum'), 'type' => 'checkbox'), 'featured_content_show_thumbnail' => array('title' => __('Show Thumbnail', 'magzimum'), 'type' => 'checkbox'), 'featured_content_show_date' => array('title' => __('Show Date', 'magzimum'), 'type' => 'checkbox'), 'featured_content_show_category' => array('title' => __('Show Category', 'magzimum'), 'type' => 'checkbox'), 'featured_content_enable_autoplay' => array('title' => __('Enable Autoplay', 'magzimum'), 'type' => 'checkbox'), 'featured_content_transition_delay' => array('title' => __('Transition Delay', 'magzimum'), 'description' => __('In second(s)', 'magzimum'), 'type' => 'number', 'sanitize_callback' => 'absint', 'input_attrs' => array('min' => 1, 'max' => 10, 'step' => 1, 'style' => 'width: 50px;'))));
     // Icons Section
     $args['panels']['featured_content_panel']['sections']['section_content_type'] = array('title' => __('Content Type', 'magzimum'), 'priority' => 50, 'fields' => array('featured_content_status' => array('title' => __('Enable Featured Content on', 'magzimum'), 'type' => 'select', 'choices' => magzimum_get_featured_status_options()), 'featured_content_type' => array('title' => __('Select Content Type', 'magzimum'), 'type' => 'select', 'choices' => magzimum_get_featured_content_type_options(), 'sanitize_callback' => 'sanitize_key'), 'featured_content_category' => array('title' => __('Select Category', 'magzimum'), 'type' => 'dropdown-taxonomies', 'sanitize_callback' => 'absint'), 'featured_content_number' => array('title' => __('No of Posts', 'magzimum'), 'type' => 'number', 'sanitize_callback' => 'absint', 'input_attrs' => array('min' => 1, 'max' => 20, 'style' => 'width: 55px;'))));
     return $args;
 }
Esempio n. 3
0
 function magzimum_slider_theme_options_args($args)
 {
     // Create featured slider option panel
     $args['panels']['featured_slider_panel']['title'] = __('Featured Slider Section', 'magzimum');
     // Settings Section
     $args['panels']['featured_slider_panel']['sections']['section_slider_settings'] = array('title' => __('Slider Settings', 'magzimum'), 'priority' => 75, 'fields' => array('featured_slider_transition_effect' => array('title' => __('Transition Effect', 'magzimum'), 'type' => 'select', 'choices' => magzimum_get_featured_slider_transition_effects()), 'featured_slider_transition_delay' => array('title' => __('Transition Delay', 'magzimum'), 'description' => __('In second(s)', 'magzimum'), 'type' => 'number', 'sanitize_callback' => 'absint', 'input_attrs' => array('min' => 1, 'max' => 10, 'step' => 1, 'style' => 'width: 50px;')), 'featured_slider_transition_duration' => array('title' => __('Transition Duration', 'magzimum'), 'description' => __('In second(s)', 'magzimum'), 'type' => 'number', 'sanitize_callback' => 'absint', 'input_attrs' => array('min' => 1, 'max' => 10, 'step' => 1, 'style' => 'width: 50px;')), 'featured_slider_enable_caption' => array('title' => __('Enable Caption', 'magzimum'), 'type' => 'checkbox'), 'featured_slider_enable_arrow' => array('title' => __('Enable Arrow', 'magzimum'), 'type' => 'checkbox'), 'featured_slider_enable_pager' => array('title' => __('Enable Pager', 'magzimum'), 'type' => 'checkbox'), 'featured_slider_enable_autoplay' => array('title' => __('Enable Autoplay', 'magzimum'), 'type' => 'checkbox'), 'featured_slider_enable_clickable_image' => array('title' => __('Enable Link in Image', 'magzimum'), 'type' => 'checkbox')));
     // Icons Section
     $args['panels']['featured_slider_panel']['sections']['section_slider_type'] = array('title' => __('Slider Type', 'magzimum'), 'priority' => 70, 'fields' => array('featured_slider_type' => array('title' => __('Select Slider Type', 'magzimum'), 'type' => 'select', 'choices' => magzimum_get_featured_slider_type(), 'sanitize_callback' => 'sanitize_key'), 'featured_slider_category' => array('title' => __('Select Category', 'magzimum'), 'type' => 'dropdown-taxonomies', 'sanitize_callback' => 'absint'), 'featured_slider_number' => array('title' => __('No of Slides', 'magzimum'), 'type' => 'number', 'default' => 3, 'sanitize_callback' => 'absint', 'input_attrs' => array('min' => 1, 'max' => 20, 'style' => 'width: 55px;'))));
     // Slider Section
     $args['panels']['featured_slider_panel']['sections']['section_slider_common'] = array('title' => __('Slider Section', 'magzimum'), 'priority' => 60, 'fields' => array('featured_slider_status' => array('title' => __('Enable Slider Section on', 'magzimum'), 'type' => 'select', 'choices' => magzimum_get_featured_status_options())));
     return $args;
 }