true ), 'objects' ); $post_types_choices = array(); // Generate usable array of post types foreach ( $post_types as $post_type_id => $post_type ) { $post_types_choices[] = array( 'label' => $post_type->labels->name, 'value' => $post_type_id ); } // Options $dslc_options = array( array( 'label' => __( 'Post Type', 'dslc_string' ), 'id' => 'post_type', 'std' => 'post', 'type' => 'select', 'choices' => $post_types_choices ), array( 'label' => __( 'Type', 'dslc_string' ), 'id' => 'type', 'std' => 'grid', 'type' => 'select', 'choices' => array( array( 'label' => __( 'Grid', 'dslc_string' ), 'value' => 'grid' ), array( 'label' => __( 'Masonry Grid', 'dslc_string' ), 'value' => 'masonry' ), array( 'label' => __( 'Carousel', 'dslc_string' ), 'value' => 'carousel' ) ) ), array( 'label' => __( 'Orientation', 'dslc_string' ), 'id' => 'orientation', 'std' => 'vertical', 'type' => 'select', 'choices' => array( array( 'label' => __( 'Vertical', 'dslc_string' ), 'value' => 'vertical' ), array( 'label' => __( 'Horizontal', 'dslc_string' ), 'value' => 'horizontal' ) ) ), array( 'label' => __( 'Posts Per Page', 'dslc_string' ), 'id' => 'amount', 'std' => '4', 'type' => 'text', ), array( 'label' => __( 'Pagination', 'dslc_string' ), 'id' => 'pagination_type', 'std' => 'disabled', 'type' => 'select', 'choices' => array( array( 'label' => __( 'Disabled', 'dslc_string' ), 'value' => 'disabled', ), array( 'label' => __( 'Numbered', 'dslc_string' ), 'value' => 'numbered', ) ), ), array( 'label' => __( 'Posts Per Row', 'dslc_string' ), 'id' => 'columns', 'std' => '3', 'type' => 'select', 'choices' => $this->posts_per_row_choices, ), array( 'label' => __( 'Order By', 'dslc_string' ), 'id' => 'orderby', 'std' => 'date', 'type' => 'select', 'choices' => array( array( 'label' => __( 'Publish Date', 'dslc_string' ), 'value' => 'date' ), array( 'label' => __( 'Modified Date', 'dslc_string' ), 'value' => 'modified' ), array( 'label' => __( 'Random', 'dslc_string' ), 'value' => 'rand' ), array( 'label' => __( 'Alphabetic', 'dslc_string' ), 'value' => 'title' ), array( 'label' => __( 'Comment Count', 'dslc_string' ), 'value' => 'comment_count' ), ) ), array( 'label' => __( 'Order', 'dslc_string' ), 'id' => 'order', 'std' => 'DESC', 'type' => 'select', 'choices' => array( array( 'label' => __( 'Ascending', 'dslc_string' ), 'value' => 'ASC' ), array( 'label' => __( 'Descending', 'dslc_string' ), 'value' => 'DESC' ) ) ), array( 'label' => __( 'Offset', 'dslc_string' ), 'id' => 'offset', 'std' => '0', 'type' => 'text', ), /* Styling */ array( 'label' => __( 'Elements', 'dslc_string' ), 'id' => 'elements', 'std' => '', 'type' => 'checkbox', 'choices' => array( array( 'label' => __( 'Heading', 'dslc_string' ), 'value' => 'main_heading' ), array( 'label' => __( 'Filters', 'dslc_string' ), 'value' => 'filters' ), ), 'section' => 'styling' ), array( 'label' => __( 'Post Elements', 'dslc_string' ), 'id' => 'post_elements', 'std' => 'thumbnail meta title excerpt button', 'type' => 'checkbox', 'choices' => array( array( 'label' => __( 'Thumbnail', 'dslc_string' ), 'value' => 'thumbnail', ), array( 'label' => __( 'Title', 'dslc_string' ), 'value' => 'title', ), array( 'label' => __( 'Meta', 'dslc_string' ), 'value' => 'meta', ), array( 'label' => __( 'Excerpt', 'dslc_string' ), 'value' => 'excerpt', ), array( 'label' => __( 'Button', 'dslc_string' ), 'value' => 'button', ), ), 'section' => 'styling' ), array( 'label' => __( 'Carousel Elements', 'dslc_string' ), 'id' => 'carousel_elements', 'std' => 'arrows circles', 'type' => 'checkbox', 'choices' => array( array( 'label' => __( 'Arrows', 'dslc_string' ), 'value' => 'arrows' ), array( 'label' => __( 'Circles', 'dslc_string' ), 'value' => 'circles' ), ), 'section' => 'styling' ), /** * Wrapper */ array( 'label' => __( 'BG Color', 'dslc_string' ), 'id' => 'css_wrapper_bg_color', 'std' => '', 'type' => 'color', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-posts', 'affect_on_change_rule' => 'background-color', 'section' => 'styling', ), array( 'label' => __( 'Border Color', 'dslc_string' ), 'id' => 'css_wrapper_border_color', 'std' => '', 'type' => 'color', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-posts', 'affect_on_change_rule' => 'border-color', 'section' => 'styling', ), array( 'label' => __( 'Border Width', 'dslc_string' ), 'id' => 'css_wrapper_border_width', 'std' => '0', 'type' => 'slider', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-posts', 'affect_on_change_rule' => 'border-width', 'section' => 'styling', 'ext' => 'px', ), array( 'label' => __( 'Borders', 'dslc_string' ), 'id' => 'css_wrapper_border_trbl', 'std' => 'top right bottom left', 'type' => 'checkbox', 'choices' => array( array( 'label' => __( 'Top', 'dslc_string' ), 'value' => 'top' ), array( 'label' => __( 'Right', 'dslc_string' ), 'value' => 'right' ), array( 'label' => __( 'Bottom', 'dslc_string' ), 'value' => 'bottom' ), array( 'label' => __( 'Left', 'dslc_string' ), 'value' => 'left' ), ), 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-posts', 'affect_on_change_rule' => 'border-style', 'section' => 'styling', ), array( 'label' => __( 'Border Radius - Top', 'dslc_string' ), 'id' => 'css_wrapper_border_radius_top', 'std' => '0', 'type' => 'slider', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-posts', 'affect_on_change_rule' => 'border-top-left-radius,border-top-right-radius', 'section' => 'styling', 'ext' => 'px' ), array( 'label' => __( 'Border Radius - Bottom', 'dslc_string' ), 'id' => 'css_wrapper_border_radius_bottom', 'std' => '0', 'type' => 'slider', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-posts', 'affect_on_change_rule' => 'border-bottom-left-radius,border-bottom-right-radius', 'section' => 'styling', 'ext' => 'px' ), array( 'label' => __( 'Margin Bottom', 'dslc_string' ), 'id' => 'css_margin_bottom', 'std' => '0', 'type' => 'slider', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-cpt-post-main', 'affect_on_change_rule' => 'margin-bottom', 'section' => 'styling', 'ext' => 'px', ), array( 'label' => __( 'Padding Vertical', 'dslc_string' ), 'id' => 'css_wrapper_padding_vertical', 'std' => '0', 'type' => 'slider', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-posts', 'affect_on_change_rule' => 'padding-top,padding-bottom', 'section' => 'styling', 'ext' => 'px', ), array( 'label' => __( 'Padding Horizontal', 'dslc_string' ), 'id' => 'css_wrapper_padding_horizontal', 'std' => '0', 'type' => 'slider', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-posts', 'affect_on_change_rule' => 'padding-left,padding-right', 'section' => 'styling', 'ext' => 'px', ), /** * Separator */ array( 'label' => __( 'Color', 'dslc_string' ), 'id' => 'css_sep_border_color', 'std' => '#ededed', 'type' => 'color', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-post-separator', 'affect_on_change_rule' => 'border-color', 'section' => 'styling', 'tab' => 'Row Separator' ), array( 'label' => __( 'Height', 'dslc_string' ), 'id' => 'css_sep_height', 'std' => '32', 'type' => 'slider', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-post-separator', 'affect_on_change_rule' => 'margin-bottom,padding-bottom', 'ext' => 'px', 'min' => 1, 'max' => 300, 'section' => 'styling', 'tab' => 'Row Separator' ), array( 'label' => __( 'Style', 'dslc_string' ), 'id' => 'css_sep_style', 'std' => 'dashed', 'type' => 'select', 'choices' => array( array( 'label' => __( 'Invisible', 'dslc_string' ), 'value' => 'none' ), array( 'label' => __( 'Solid', 'dslc_string' ), 'value' => 'solid' ), array( 'label' => __( 'Dashed', 'dslc_string' ), 'value' => 'dashed' ), array( 'label' => __( 'Dotted', 'dslc_string' ), 'value' => 'dotted' ), ), 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-post-separator', 'affect_on_change_rule' => 'border-style', 'section' => 'styling', 'tab' => 'Row Separator' ), /** * Thumbnail */ array( 'label' => __( 'BG Color', 'dslc_string' ), 'id' => 'css_thumb_bg_color', 'std' => '', 'type' => 'color', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-cpt-post-thumb', 'affect_on_change_rule' => 'background-color', 'section' => 'styling', 'tab' => 'Thumbnail' ), array( 'label' => __( 'Border Color', 'dslc_string' ), 'id' => 'css_thumb_border_color', 'std' => '#e6e6e6', 'type' => 'color', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-cpt-post-thumb-inner', 'affect_on_change_rule' => 'border-color', 'section' => 'styling', 'tab' => 'Thumbnail' ), array( 'label' => __( 'Border Width', 'dslc_string' ), 'id' => 'css_thumb_border_width', 'std' => '0', 'type' => 'slider', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-cpt-post-thumb-inner', 'affect_on_change_rule' => 'border-width', 'section' => 'styling', 'ext' => 'px', 'tab' => 'Thumbnail' ), array( 'label' => __( 'Borders', 'dslc_string' ), 'id' => 'css_thumb_border_trbl', 'std' => 'top right bottom left', 'type' => 'checkbox', 'choices' => array( array( 'label' => __( 'Top', 'dslc_string' ), 'value' => 'top' ), array( 'label' => __( 'Right', 'dslc_string' ), 'value' => 'right' ), array( 'label' => __( 'Bottom', 'dslc_string' ), 'value' => 'bottom' ), array( 'label' => __( 'Left', 'dslc_string' ), 'value' => 'left' ), ), 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-cpt-post-thumb-inner', 'affect_on_change_rule' => 'border-style', 'section' => 'styling', 'tab' => 'Thumbnail', ), array( 'label' => __( 'Border Radius - Top', 'dslc_string' ), 'id' => 'css_thumb_border_radius_top', 'std' => '4', 'type' => 'slider', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-cpt-post-thumb, .dslc-cpt-post-thumb-inner', 'affect_on_change_rule' => 'border-top-left-radius,border-top-right-radius', 'section' => 'styling', 'tab' => 'Thumbnail', 'ext' => 'px' ), array( 'label' => __( 'Border Radius - Bottom', 'dslc_string' ), 'id' => 'css_thumb_border_radius_bottom', 'std' => '0', 'type' => 'slider', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-cpt-post-thumb, .dslc-cpt-post-thumb-inner', 'affect_on_change_rule' => 'border-bottom-left-radius,border-bottom-right-radius', 'section' => 'styling', 'tab' => 'Thumbnail', 'ext' => 'px' ), array( 'label' => __( 'Margin Bottom', 'dslc_string' ), 'id' => 'thumb_margin', 'std' => '0', 'type' => 'slider', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-cpt-post-thumb', 'affect_on_change_rule' => 'margin-bottom', 'section' => 'styling', 'tab' => 'Thumbnail', 'ext' => 'px' ), array( 'label' => __( 'Margin Right', 'dslc_string' ), 'id' => 'thumb_margin_right', 'std' => '20', 'type' => 'slider', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-cpt-post-thumb', 'affect_on_change_rule' => 'margin-right', 'section' => 'styling', 'tab' => 'Thumbnail', 'ext' => 'px' ), array( 'label' => __( 'Padding Vertical', 'dslc_string' ), 'id' => 'css_thumb_padding_vertical', 'std' => '0', 'type' => 'slider', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-cpt-post-thumb-inner', 'affect_on_change_rule' => 'padding-top,padding-bottom', 'section' => 'styling', 'ext' => 'px', 'tab' => 'Thumbnail' ), array( 'label' => __( 'Padding Horizontal', 'dslc_string' ), 'id' => 'css_thumb_padding_horizontal', 'std' => '0', 'type' => 'slider', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-cpt-post-thumb-inner', 'affect_on_change_rule' => 'padding-left,padding-right', 'section' => 'styling', 'ext' => 'px', 'tab' => 'Thumbnail' ), array( 'label' => __( 'Resize - Height', 'dslc_string' ), 'id' => 'thumb_resize_height', 'std' => '', 'type' => 'text', 'section' => 'styling', 'tab' => 'thumbnail' ), array( 'label' => __( 'Resize - Width', 'dslc_string' ), 'id' => 'thumb_resize_width', 'std' => '', 'type' => 'text', 'section' => 'styling', 'tab' => 'thumbnail', 'visibility' => 'hidden' ), array( 'label' => __( 'Width', 'dslc_string' ), 'id' => 'thumb_width', 'std' => '100', 'type' => 'slider', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-cpt-post-thumb', 'affect_on_change_rule' => 'width', 'section' => 'styling', 'tab' => 'Thumbnail', 'min' => 1, 'max' => 100, 'ext' => '%' ), /** * Main */ array( 'label' => __( ' BG Color', 'dslc_string' ), 'id' => 'css_main_bg_color', 'std' => '#ffffff', 'type' => 'color', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-cpt-post-main', 'affect_on_change_rule' => 'background-color', 'section' => 'styling', 'tab' => 'Main' ), array( 'label' => __( 'Border Color', 'dslc_string' ), 'id' => 'css_main_border_color', 'std' => '#e8e8e8', 'type' => 'color', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-cpt-post-main', 'affect_on_change_rule' => 'border-color', 'section' => 'styling', 'tab' => 'Main' ), array( 'label' => __( 'Border Width', 'dslc_string' ), 'id' => 'css_main_border_width', 'std' => '1', 'type' => 'slider', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-cpt-post-main', 'affect_on_change_rule' => 'border-width', 'section' => 'styling', 'ext' => 'px', 'tab' => 'Main' ), array( 'label' => __( 'Borders', 'dslc_string' ), 'id' => 'css_main_border_trbl', 'std' => 'right bottom left', 'type' => 'checkbox', 'choices' => array( array( 'label' => __( 'Top', 'dslc_string' ), 'value' => 'top' ), array( 'label' => __( 'Right', 'dslc_string' ), 'value' => 'right' ), array( 'label' => __( 'Bottom', 'dslc_string' ), 'value' => 'bottom' ), array( 'label' => __( 'Left', 'dslc_string' ), 'value' => 'left' ), ), 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-cpt-post-main', 'affect_on_change_rule' => 'border-style', 'section' => 'styling', 'tab' => 'Main', ), array( 'label' => __( 'Border Radius - Top', 'dslc_string' ), 'id' => 'css_main_border_radius_top', 'std' => '0', 'type' => 'slider', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-cpt-post-main', 'affect_on_change_rule' => 'border-top-left-radius,border-top-right-radius', 'section' => 'styling', 'tab' => 'Main', 'ext' => 'px' ), array( 'label' => __( 'Border Radius - Bottom', 'dslc_string' ), 'id' => 'css_main_border_radius_bottom', 'std' => '4', 'type' => 'slider', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-cpt-post-main', 'affect_on_change_rule' => 'border-bottom-left-radius,border-bottom-right-radius', 'section' => 'styling', 'tab' => 'Main', 'ext' => 'px' ), array( 'label' => __( 'Padding Vertical', 'dslc_string' ), 'id' => 'css_main_padding_vertical', 'std' => '25', 'type' => 'slider', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-cpt-post-main', 'affect_on_change_rule' => 'padding-top,padding-bottom', 'section' => 'styling', 'ext' => 'px', 'tab' => 'Main' ), array( 'label' => __( 'Padding Horizontal', 'dslc_string' ), 'id' => 'css_main_padding_horizontal', 'std' => '25', 'type' => 'slider', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-cpt-post-main', 'affect_on_change_rule' => 'padding-left,padding-right', 'section' => 'styling', 'ext' => 'px', 'tab' => 'Main' ), array( 'label' => __( 'Minimum Height', 'dslc_string' ), 'id' => 'css_main_min_height', 'std' => '0', 'type' => 'slider', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-cpt-post-main', 'affect_on_change_rule' => 'min-height', 'section' => 'styling', 'ext' => 'px', 'tab' => 'Main', 'min' => 0, 'max' => 500 ), array( 'label' => __( 'Text Align', 'dslc_string' ), 'id' => 'css_main_text_align', 'std' => 'center', 'type' => 'select', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-cpt-post-main', 'affect_on_change_rule' => 'text-align', 'section' => 'styling', 'tab' => 'Main', 'choices' => array( array( 'label' => __( 'Left', 'dslc_string' ), 'value' => 'left', ), array( 'label' => __( 'Center', 'dslc_string' ), 'value' => 'center', ), array( 'label' => __( 'Right', 'dslc_string' ), 'value' => 'right', ), ) ), /* Title Options */ array( 'label' => __( 'Color', 'dslc_string' ), 'id' => 'title_color', 'std' => '#4d4d4d', 'type' => 'color', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-cpt-post-title h2,.dslc-cpt-post-title h2 a', 'affect_on_change_rule' => 'color', 'section' => 'styling', 'tab' => 'Title' ), array( 'label' => __( 'Color - Hover', 'dslc_string' ), 'id' => 'title_color_hover', 'std' => '', 'type' => 'color', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-cpt-post-title h2:hover,.dslc-cpt-post-title h2 a:hover', 'affect_on_change_rule' => 'color', 'section' => 'styling', 'tab' => 'Title' ), array( 'label' => __( 'Font Size', 'dslc_string' ), 'id' => 'title_font_size', 'std' => '17', 'type' => 'slider', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-cpt-post-title h2,.dslc-cpt-post-title h2 a', 'affect_on_change_rule' => 'font-size', 'section' => 'styling', 'tab' => 'Title', 'ext' => 'px' ), array( 'label' => __( 'Font Weight', 'dslc_string' ), 'id' => 'css_title_font_weight', 'std' => '500', 'type' => 'slider', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-cpt-post-title h2,.dslc-cpt-post-title h2 a', 'affect_on_change_rule' => 'font-weight', 'section' => 'styling', 'tab' => 'Title', 'ext' => '', 'min' => 100, 'max' => 900, 'increment' => 100 ), array( 'label' => __( 'Font Family', 'dslc_string' ), 'id' => 'css_title_font_family', 'std' => 'Open Sans', 'type' => 'font', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-cpt-post-title h2,.dslc-cpt-post-title h2 a', 'affect_on_change_rule' => 'font-family', 'section' => 'styling', 'tab' => 'Title', ), array( 'label' => __( 'Line Height', 'dslc_string' ), 'id' => 'title_line_height', 'std' => '29', 'type' => 'slider', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-cpt-post-title h2,.dslc-cpt-post-title h2 a', 'affect_on_change_rule' => 'line-height', 'section' => 'styling', 'tab' => 'Title', 'ext' => 'px' ), array( 'label' => __( 'Margin Bottom', 'dslc_string' ), 'id' => 'title_margin', 'std' => '16', 'type' => 'slider', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-cpt-post-title', 'affect_on_change_rule' => 'margin-bottom', 'section' => 'styling', 'tab' => 'Title', 'ext' => 'px' ), /** * Meta */ array( 'label' => __( 'Border Color', 'dslc_string' ), 'id' => 'css_meta_border_color', 'std' => '#e5e5e5', 'type' => 'color', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-cpt-post-meta', 'affect_on_change_rule' => 'border-color', 'section' => 'styling', 'tab' => 'Meta' ), array( 'label' => __( 'Border Width', 'dslc_string' ), 'id' => 'css_meta_border_width', 'std' => '1', 'type' => 'slider', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-cpt-post-meta', 'affect_on_change_rule' => 'border-width', 'section' => 'styling', 'ext' => 'px', 'tab' => 'Meta' ), array( 'label' => __( 'Borders', 'dslc_string' ), 'id' => 'css_meta_border_trbl', 'std' => 'top bottom', 'type' => 'checkbox', 'choices' => array( array( 'label' => __( 'Top', 'dslc_string' ), 'value' => 'top' ), array( 'label' => __( 'Right', 'dslc_string' ), 'value' => 'right' ), array( 'label' => __( 'Bottom', 'dslc_string' ), 'value' => 'bottom' ), array( 'label' => __( 'Left', 'dslc_string' ), 'value' => 'left' ), ), 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-cpt-post-meta', 'affect_on_change_rule' => 'border-style', 'section' => 'styling', 'tab' => 'Meta' ), array( 'label' => __( 'Color', 'dslc_string' ), 'id' => 'css_meta_color', 'std' => '#a8a8a8', 'type' => 'color', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-cpt-post-meta', 'affect_on_change_rule' => 'color', 'section' => 'styling', 'tab' => 'Meta' ), array( 'label' => __( 'Font Size', 'dslc_string' ), 'id' => 'css_meta_font_size', 'std' => '11', 'type' => 'slider', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-cpt-post-meta', 'affect_on_change_rule' => 'font-size', 'section' => 'styling', 'tab' => 'Meta', 'ext' => 'px' ), array( 'label' => __( 'Font Family', 'dslc_string' ), 'id' => 'css_meta_font_family', 'std' => 'Libre Baskerville', 'type' => 'font', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-cpt-post-meta', 'affect_on_change_rule' => 'font-family', 'section' => 'styling', 'tab' => 'Meta', ), array( 'label' => __( 'Font Weight', 'dslc_string' ), 'id' => 'css_meta_font_weight', 'std' => '400', 'type' => 'slider', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-cpt-post-meta', 'affect_on_change_rule' => 'font-weight', 'section' => 'styling', 'tab' => 'Meta', 'ext' => '', 'min' => 100, 'max' => 900, 'increment' => 100 ), array( 'label' => __( 'Margin Bottom', 'dslc_string' ), 'id' => 'css_meta_margin_bottom', 'std' => '16', 'type' => 'slider', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-cpt-post-meta', 'affect_on_change_rule' => 'margin-bottom', 'section' => 'styling', 'ext' => 'px', 'tab' => 'Meta' ), array( 'label' => __( 'Padding Vertical', 'dslc_string' ), 'id' => 'css_meta_padding_vertical', 'std' => '16', 'type' => 'slider', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-cpt-post-meta', 'affect_on_change_rule' => 'padding-top,padding-bottom', 'section' => 'styling', 'ext' => 'px', 'tab' => 'Meta' ), array( 'label' => __( 'Padding Horizontal', 'dslc_string' ), 'id' => 'css_meta_padding_horizontal', 'std' => '0', 'type' => 'slider', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-cpt-post-meta', 'affect_on_change_rule' => 'padding-left,padding-right', 'section' => 'styling', 'ext' => 'px', 'tab' => 'Meta' ), array( 'label' => __( 'Link - Color', 'dslc_string' ), 'id' => 'css_meta_link_color', 'std' => '#5890e5', 'type' => 'color', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-cpt-post-meta a', 'affect_on_change_rule' => 'color', 'section' => 'styling', 'tab' => 'Meta' ), array( 'label' => __( 'Link - Hover - Color', 'dslc_string' ), 'id' => 'css_meta_link_color_hover', 'std' => '#5890e5', 'type' => 'color', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-cpt-post-meta a:hover', 'affect_on_change_rule' => 'color', 'section' => 'styling', 'tab' => 'Meta' ), /** * Excerpt */ array( 'label' => __( 'Color', 'dslc_string' ), 'id' => 'css_excerpt_color', 'std' => '#a6a6a6', 'type' => 'color', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-cpt-post-excerpt', 'affect_on_change_rule' => 'color', 'section' => 'styling', 'tab' => 'Excerpt' ), array( 'label' => __( 'Font Size', 'dslc_string' ), 'id' => 'css_excerpt_font_size', 'std' => '13', 'type' => 'slider', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-cpt-post-excerpt', 'affect_on_change_rule' => 'font-size', 'section' => 'styling', 'tab' => 'Excerpt', 'ext' => 'px' ), array( 'label' => __( 'Font Weight', 'dslc_string' ), 'id' => 'css_excerpt_font_weight', 'std' => '500', 'type' => 'slider', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-cpt-post-excerpt', 'affect_on_change_rule' => 'font-weight', 'section' => 'styling', 'tab' => 'Excerpt', 'ext' => '', 'min' => 100, 'max' => 900, 'increment' => 100 ), array( 'label' => __( 'Font Family', 'dslc_string' ), 'id' => 'css_excerpt_font_family', 'std' => 'Bitter', 'type' => 'font', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-cpt-post-excerpt', 'affect_on_change_rule' => 'font-family', 'section' => 'styling', 'tab' => 'Excerpt', ), array( 'label' => __( 'Line Height', 'dslc_string' ), 'id' => 'css_excerpt_line_height', 'std' => '23', 'type' => 'slider', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-cpt-post-excerpt, .dslc-cpt-post-excerpt p', 'affect_on_change_rule' => 'line-height', 'section' => 'styling', 'tab' => 'Excerpt', 'ext' => 'px' ), array( 'label' => __( 'Margin Bottom', 'dslc_string' ), 'id' => 'excerpt_margin', 'std' => '22', 'type' => 'slider', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-cpt-post-excerpt', 'affect_on_change_rule' => 'margin-bottom', 'section' => 'styling', 'ext' => 'px', 'tab' => 'excerpt' ), array( 'label' => __( 'Max Length ( amount of words )', 'dslc_string' ), 'id' => 'excerpt_length', 'std' => '20', 'type' => 'text', 'section' => 'styling', 'tab' => 'Excerpt' ), /** * Button */ array( 'label' => __( 'Text', 'dslc_string' ), 'id' => 'button_text', 'std' => 'CONTINUE READING', 'type' => 'text', 'section' => 'styling', 'tab' => 'Button', ), array( 'label' => __( 'BG Color', 'dslc_string' ), 'id' => 'css_button_bg_color', 'std' => '#5890e5', 'type' => 'color', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-cpt-post-read-more a', 'affect_on_change_rule' => 'background-color', 'section' => 'styling', 'tab' => 'Button' ), array( 'label' => __( 'BG Color - Hover', 'dslc_string' ), 'id' => 'css_button_bg_color_hover', 'std' => '#4b7bc2', 'type' => 'color', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-cpt-post-read-more a:hover', 'affect_on_change_rule' => 'background-color', 'section' => 'styling', 'tab' => 'Button' ), array( 'label' => __( 'Border Width', 'dslc_string' ), 'id' => 'css_button_border_width', 'std' => '0', 'type' => 'slider', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-cpt-post-read-more a', 'affect_on_change_rule' => 'border-width', 'section' => 'styling', 'tab' => 'Button', 'ext' => 'px' ), array( 'label' => __( 'Borders', 'dslc_string' ), 'id' => 'css_button_border_trbl', 'std' => 'top right bottom left', 'type' => 'checkbox', 'choices' => array( array( 'label' => __( 'Top', 'dslc_string' ), 'value' => 'top' ), array( 'label' => __( 'Right', 'dslc_string' ), 'value' => 'right' ), array( 'label' => __( 'Bottom', 'dslc_string' ), 'value' => 'bottom' ), array( 'label' => __( 'Left', 'dslc_string' ), 'value' => 'left' ), ), 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-cpt-post-read-more a', 'affect_on_change_rule' => 'border-style', 'section' => 'styling', 'tab' => 'Button' ), array( 'label' => __( 'Border Color', 'dslc_string' ), 'id' => 'css_button_border_color', 'std' => '', 'type' => 'color', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-cpt-post-read-more a', 'affect_on_change_rule' => 'border-color', 'section' => 'styling', 'tab' => 'Button' ), array( 'label' => __( 'Border Color - Hover', 'dslc_string' ), 'id' => 'css_button_border_color_hover', 'std' => '', 'type' => 'color', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-cpt-post-read-more a:hover', 'affect_on_change_rule' => 'border-color', 'section' => 'styling', 'tab' => 'Button' ), array( 'label' => __( 'Border Radius', 'dslc_string' ), 'id' => 'css_button_border_radius', 'std' => '3', 'type' => 'slider', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-cpt-post-read-more a', 'affect_on_change_rule' => 'border-radius', 'section' => 'styling', 'tab' => 'Button', 'ext' => 'px' ), array( 'label' => __( 'Color', 'dslc_string' ), 'id' => 'css_button_color', 'std' => '#ffffff', 'type' => 'color', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-cpt-post-read-more a', 'affect_on_change_rule' => 'color', 'section' => 'styling', 'tab' => 'Button' ), array( 'label' => __( 'Color - Hover', 'dslc_string' ), 'id' => 'css_button_color_hover', 'std' => '#ffffff', 'type' => 'color', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-cpt-post-read-more a:hover', 'affect_on_change_rule' => 'color', 'section' => 'styling', 'tab' => 'Button' ), array( 'label' => __( 'Font Size', 'dslc_string' ), 'id' => 'css_button_font_size', 'std' => '11', 'type' => 'slider', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-cpt-post-read-more a', 'affect_on_change_rule' => 'font-size', 'section' => 'styling', 'tab' => 'Button', 'ext' => 'px' ), array( 'label' => __( 'Font Weight', 'dslc_string' ), 'id' => 'css_button_font_weight', 'std' => '800', 'type' => 'slider', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-cpt-post-read-more a', 'affect_on_change_rule' => 'font-weight', 'section' => 'styling', 'tab' => 'Button', 'ext' => '', 'min' => 100, 'max' => 900, 'increment' => 100 ), array( 'label' => __( 'Font Family', 'dslc_string' ), 'id' => 'css_button_font_family', 'std' => 'Lato', 'type' => 'font', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-cpt-post-read-more a', 'affect_on_change_rule' => 'font-family', 'section' => 'styling', 'tab' => 'Button', ), array( 'label' => __( 'Padding Vertical', 'dslc_string' ), 'id' => 'css_button_padding_vertical', 'std' => '12', 'type' => 'slider', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-cpt-post-read-more a', 'affect_on_change_rule' => 'padding-top,padding-bottom', 'section' => 'styling', 'ext' => 'px', 'tab' => 'Button' ), array( 'label' => __( 'Padding Horizontal', 'dslc_string' ), 'id' => 'css_button_padding_horizontal', 'std' => '12', 'type' => 'slider', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-cpt-post-read-more a', 'affect_on_change_rule' => 'padding-left,padding-right', 'section' => 'styling', 'ext' => 'px', 'tab' => 'Button' ), array( 'label' => __( 'Icon', 'dslc_string' ), 'id' => 'button_icon_id', 'std' => '', 'type' => 'icon', 'section' => 'styling', 'tab' => 'Button', ), array( 'label' => __( 'Icon - Color', 'dslc_string' ), 'id' => 'css_button_icon_color', 'std' => '', 'type' => 'color', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-cpt-post-read-more a .dslc-icon', 'affect_on_change_rule' => 'color', 'section' => 'styling', 'tab' => 'Button' ), array( 'label' => __( 'Icon - Hover - Color', 'dslc_string' ), 'id' => 'css_button_icon_color_hover', 'std' => '', 'type' => 'color', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-cpt-post-read-more a:hover .dslc-icon', 'affect_on_change_rule' => 'color', 'section' => 'styling', 'tab' => 'Button' ), array( 'label' => __( 'Icon - Margin Right', 'dslc_string' ), 'id' => 'css_button_icon_margin', 'std' => '5', 'type' => 'slider', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-cpt-post-read-more a .dslc-icon', 'affect_on_change_rule' => 'margin-right', 'section' => 'styling', 'ext' => 'px', 'tab' => 'Button' ), /** * Responsive Tablet */ array( 'label' => __( 'Responsive', 'dslc_string' ), 'id' => 'css_res_t', 'std' => 'disabled', 'type' => 'select', 'choices' => array( array( 'label' => __( 'Disabled', 'dslc_string' ), 'value' => 'disabled' ), array( 'label' => __( 'Enabled', 'dslc_string' ), 'value' => 'enabled' ), ), 'section' => 'responsive', 'tab' => 'tablet', ), array( 'label' => __( 'Margin Bottom', 'dslc_string' ), 'id' => 'css_res_t_margin_bottom', 'std' => '0', 'type' => 'slider', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-cpt-post-main', 'affect_on_change_rule' => 'margin-bottom', 'section' => 'responsive', 'tab' => 'tablet', 'ext' => 'px', ), array( 'label' => __( 'Separator - Height', 'dslc_string' ), 'id' => 'css_res_t_sep_height', 'std' => '32', 'type' => 'slider', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-post-separator', 'affect_on_change_rule' => 'margin-bottom,padding-bottom', 'ext' => 'px', 'min' => 1, 'max' => 300, 'section' => 'responsive', 'tab' => 'tablet', ), array( 'label' => __( 'Thumbnail - Margin Bottom', 'dslc_string' ), 'id' => 'css_res_t_thumb_margin', 'std' => '0', 'type' => 'slider', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-cpt-post-thumb', 'affect_on_change_rule' => 'margin-bottom', 'section' => 'responsive', 'tab' => 'tablet', 'ext' => 'px' ), array( 'label' => __( 'Thumbnail - Margin Right', 'dslc_string' ), 'id' => 'css_res_t_thumb_margin_right', 'std' => '20', 'type' => 'slider', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-cpt-post-thumb', 'affect_on_change_rule' => 'margin-right', 'section' => 'responsive', 'tab' => 'tablet', 'ext' => 'px' ), array( 'label' => __( 'Thumbnail - Padding Vertical', 'dslc_string' ), 'id' => 'css_res_t_thumb_padding_vertical', 'std' => '0', 'type' => 'slider', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-cpt-post-thumb-inner', 'affect_on_change_rule' => 'padding-top,padding-bottom', 'section' => 'responsive', 'ext' => 'px', 'tab' => 'tablet' ), array( 'label' => __( 'Thumbnail - Padding Horizontal', 'dslc_string' ), 'id' => 'css_res_t_thumb_padding_horizontal', 'std' => '0', 'type' => 'slider', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-cpt-post-thumb-inner', 'affect_on_change_rule' => 'padding-left,padding-right', 'section' => 'responsive', 'ext' => 'px', 'tab' => 'tablet' ), array( 'label' => __( 'Main - Padding Vertical', 'dslc_string' ), 'id' => 'css_res_t_main_padding_vertical', 'std' => '25', 'type' => 'slider', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-cpt-post-main', 'affect_on_change_rule' => 'padding-top,padding-bottom', 'section' => 'responsive', 'ext' => 'px', 'tab' => 'tablet' ), array( 'label' => __( 'Main - Padding Horizontal', 'dslc_string' ), 'id' => 'css_res_t_main_padding_horizontal', 'std' => '25', 'type' => 'slider', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-cpt-post-main', 'affect_on_change_rule' => 'padding-left,padding-right', 'section' => 'responsive', 'ext' => 'px', 'tab' => 'tablet' ), array( 'label' => __( 'Title - Font Size', 'dslc_string' ), 'id' => 'css_res_t_title_font_size', 'std' => '17', 'type' => 'slider', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-cpt-post-title h2,.dslc-cpt-post-title h2 a', 'affect_on_change_rule' => 'font-size', 'section' => 'responsive', 'tab' => 'tablet', 'ext' => 'px' ), array( 'label' => __( 'Title - Line Height', 'dslc_string' ), 'id' => 'css_res_t_title_line_height', 'std' => '29', 'type' => 'slider', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-cpt-post-title h2, .dslc-cpt-post-title h2 a', 'affect_on_change_rule' => 'line-height', 'section' => 'responsive', 'tab' => 'tablet', 'ext' => 'px' ), array( 'label' => __( 'Title - Margin Bottom', 'dslc_string' ), 'id' => 'css_res_t_title_margin', 'std' => '16', 'type' => 'slider', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-cpt-post-title', 'affect_on_change_rule' => 'margin-bottom', 'section' => 'responsive', 'tab' => 'tablet', 'ext' => 'px' ), array( 'label' => __( 'Meta - Font Size', 'dslc_string' ), 'id' => 'css_res_t_meta_font_size', 'std' => '11', 'type' => 'slider', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-cpt-post-meta', 'affect_on_change_rule' => 'font-size', 'section' => 'responsive', 'tab' => 'tablet', 'ext' => 'px' ), array( 'label' => __( 'Meta - Margin Bottom', 'dslc_string' ), 'id' => 'css_res_t_meta_margin_bottom', 'std' => '16', 'type' => 'slider', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-cpt-post-meta', 'affect_on_change_rule' => 'margin-bottom', 'section' => 'responsive', 'ext' => 'px', 'tab' => 'tablet' ), array( 'label' => __( 'Meta - Padding Vertical', 'dslc_string' ), 'id' => 'css_res_t_meta_padding_vertical', 'std' => '16', 'type' => 'slider', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-cpt-post-meta', 'affect_on_change_rule' => 'padding-top,padding-bottom', 'section' => 'responsive', 'ext' => 'px', 'tab' => 'tablet' ), array( 'label' => __( 'Meta - Padding Horizontal', 'dslc_string' ), 'id' => 'css_res_t_meta_padding_horizontal', 'std' => '0', 'type' => 'slider', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-cpt-post-meta', 'affect_on_change_rule' => 'padding-left,padding-right', 'section' => 'responsive', 'ext' => 'px', 'tab' => 'tablet' ), array( 'label' => __( 'Excerpt - Font Size', 'dslc_string' ), 'id' => 'css_res_t_excerpt_font_size', 'std' => '13', 'type' => 'slider', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-cpt-post-excerpt', 'affect_on_change_rule' => 'font-size', 'section' => 'responsive', 'tab' => 'tablet', 'ext' => 'px' ), array( 'label' => __( 'Excerpt - Line Height', 'dslc_string' ), 'id' => 'css_res_t_excerpt_line_height', 'std' => '23', 'type' => 'slider', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-cpt-post-excerpt, .dslc-cpt-post-excerpt p', 'affect_on_change_rule' => 'line-height', 'section' => 'responsive', 'tab' => 'tablet', 'ext' => 'px' ), array( 'label' => __( 'Excerpt - Margin Bottom', 'dslc_string' ), 'id' => 'css_res_t_excerpt_margin', 'std' => '22', 'type' => 'slider', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-cpt-post-excerpt', 'affect_on_change_rule' => 'margin-bottom', 'section' => 'responsive', 'ext' => 'px', 'tab' => 'tablet' ), array( 'label' => __( 'Button - Font Size', 'dslc_string' ), 'id' => 'css_res_t_button_font_size', 'std' => '11', 'type' => 'slider', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-cpt-post-read-more a', 'affect_on_change_rule' => 'font-size', 'section' => 'responsive', 'tab' => 'tablet', 'ext' => 'px' ), array( 'label' => __( 'Button - Padding Vertical', 'dslc_string' ), 'id' => 'css_res_t_button_padding_vertical', 'std' => '12', 'type' => 'slider', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-cpt-post-read-more a', 'affect_on_change_rule' => 'padding-top,padding-bottom', 'section' => 'responsive', 'ext' => 'px', 'tab' => 'tablet' ), array( 'label' => __( 'Button - Padding Horizontal', 'dslc_string' ), 'id' => 'css_res_t_button_padding_horizontal', 'std' => '12', 'type' => 'slider', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-cpt-post-read-more a', 'affect_on_change_rule' => 'padding-left,padding-right', 'section' => 'responsive', 'ext' => 'px', 'tab' => 'tablet' ), array( 'label' => __( 'Button - Icon - Margin Right', 'dslc_string' ), 'id' => 'css_res_t_button_icon_margin', 'std' => '5', 'type' => 'slider', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-cpt-post-read-more a .dslc-icon', 'affect_on_change_rule' => 'margin-right', 'section' => 'responsive', 'ext' => 'px', 'tab' => 'tablet' ), /** * Responsive Phone */ array( 'label' => __( 'Responsive', 'dslc_string' ), 'id' => 'css_res_p', 'std' => 'disabled', 'type' => 'select', 'choices' => array( array( 'label' => __( 'Disabled', 'dslc_string' ), 'value' => 'disabled' ), array( 'label' => __( 'Enabled', 'dslc_string' ), 'value' => 'enabled' ), ), 'section' => 'responsive', 'tab' => 'phone', ), array( 'label' => __( 'Margin Bottom', 'dslc_string' ), 'id' => 'css_res_p_margin_bottom', 'std' => '0', 'type' => 'slider', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-cpt-post-main', 'affect_on_change_rule' => 'margin-bottom', 'section' => 'responsive', 'tab' => 'phone', 'ext' => 'px', ), array( 'label' => __( 'Separator - Height', 'dslc_string' ), 'id' => 'css_res_p_sep_height', 'std' => '32', 'type' => 'slider', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-post-separator', 'affect_on_change_rule' => 'margin-bottom,padding-bottom', 'ext' => 'px', 'min' => 1, 'max' => 300, 'section' => 'responsive', 'tab' => 'phone', ), array( 'label' => __( 'Thumbnail - Margin Bottom', 'dslc_string' ), 'id' => 'css_res_p_thumb_margin', 'std' => '0', 'type' => 'slider', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-cpt-post-thumb', 'affect_on_change_rule' => 'margin-bottom', 'section' => 'responsive', 'tab' => 'phone', 'ext' => 'px' ), array( 'label' => __( 'Thumbnail - Margin Right', 'dslc_string' ), 'id' => 'css_res_p_thumb_margin_right', 'std' => '20', 'type' => 'slider', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-cpt-post-thumb', 'affect_on_change_rule' => 'margin-right', 'section' => 'responsive', 'tab' => 'phone', 'ext' => 'px' ), array( 'label' => __( 'Thumbnail - Padding Vertical', 'dslc_string' ), 'id' => 'css_res_p_thumb_padding_vertical', 'std' => '0', 'type' => 'slider', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-cpt-post-thumb-inner', 'affect_on_change_rule' => 'padding-top,padding-bottom', 'section' => 'responsive', 'ext' => 'px', 'tab' => 'phone' ), array( 'label' => __( 'Thumbnail - Padding Horizontal', 'dslc_string' ), 'id' => 'css_res_p_thumb_padding_horizontal', 'std' => '0', 'type' => 'slider', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-cpt-post-thumb-inner', 'affect_on_change_rule' => 'padding-left,padding-right', 'section' => 'responsive', 'ext' => 'px', 'tab' => 'phone' ), array( 'label' => __( 'Main - Padding Vertical', 'dslc_string' ), 'id' => 'css_res_p_main_padding_vertical', 'std' => '25', 'type' => 'slider', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-cpt-post-main', 'affect_on_change_rule' => 'padding-top,padding-bottom', 'section' => 'responsive', 'ext' => 'px', 'tab' => 'phone' ), array( 'label' => __( 'Main - Padding Horizontal', 'dslc_string' ), 'id' => 'css_res_p_main_padding_horizontal', 'std' => '25', 'type' => 'slider', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-cpt-post-main', 'affect_on_change_rule' => 'padding-left,padding-right', 'section' => 'responsive', 'ext' => 'px', 'tab' => 'phone' ), array( 'label' => __( 'Title - Font Size', 'dslc_string' ), 'id' => 'css_res_p_title_font_size', 'std' => '17', 'type' => 'slider', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-cpt-post-title h2,.dslc-cpt-post-title h2 a', 'affect_on_change_rule' => 'font-size', 'section' => 'responsive', 'tab' => 'phone', 'ext' => 'px' ), array( 'label' => __( 'Title - Line Height', 'dslc_string' ), 'id' => 'css_res_p_title_line_height', 'std' => '29', 'type' => 'slider', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-cpt-post-title h2,.dslc-cpt-post-title h2 a', 'affect_on_change_rule' => 'line-height', 'section' => 'responsive', 'tab' => 'phone', 'ext' => 'px' ), array( 'label' => __( 'Title - Margin Bottom', 'dslc_string' ), 'id' => 'css_res_p_title_margin', 'std' => '16', 'type' => 'slider', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-cpt-post-title', 'affect_on_change_rule' => 'margin-bottom', 'section' => 'responsive', 'tab' => 'phone', 'ext' => 'px' ), array( 'label' => __( 'Meta - Font Size', 'dslc_string' ), 'id' => 'css_res_p_meta_font_size', 'std' => '11', 'type' => 'slider', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-cpt-post-meta', 'affect_on_change_rule' => 'font-size', 'section' => 'responsive', 'tab' => 'phone', 'ext' => 'px' ), array( 'label' => __( 'Meta - Margin Bottom', 'dslc_string' ), 'id' => 'css_res_p_meta_margin_bottom', 'std' => '16', 'type' => 'slider', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-cpt-post-meta', 'affect_on_change_rule' => 'margin-bottom', 'section' => 'responsive', 'ext' => 'px', 'tab' => 'phone' ), array( 'label' => __( 'Meta - Padding Vertical', 'dslc_string' ), 'id' => 'css_res_p_meta_padding_vertical', 'std' => '16', 'type' => 'slider', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-cpt-post-meta', 'affect_on_change_rule' => 'padding-top,padding-bottom', 'section' => 'responsive', 'ext' => 'px', 'tab' => 'phone' ), array( 'label' => __( 'Meta - Padding Horizontal', 'dslc_string' ), 'id' => 'css_res_p_meta_padding_horizontal', 'std' => '0', 'type' => 'slider', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-cpt-post-meta', 'affect_on_change_rule' => 'padding-left,padding-right', 'section' => 'responsive', 'ext' => 'px', 'tab' => 'phone' ), array( 'label' => __( 'Excerpt - Font Size', 'dslc_string' ), 'id' => 'css_res_p_excerpt_font_size', 'std' => '13', 'type' => 'slider', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-cpt-post-excerpt', 'affect_on_change_rule' => 'font-size', 'section' => 'responsive', 'tab' => 'phone', 'ext' => 'px' ), array( 'label' => __( 'Excerpt - Line Height', 'dslc_string' ), 'id' => 'css_res_p_excerpt_line_height', 'std' => '23', 'type' => 'slider', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-cpt-post-excerpt, .dslc-cpt-post-excerpt p', 'affect_on_change_rule' => 'line-height', 'section' => 'responsive', 'tab' => 'phone', 'ext' => 'px' ), array( 'label' => __( 'Excerpt - Margin Bottom', 'dslc_string' ), 'id' => 'css_res_p_excerpt_margin', 'std' => '22', 'type' => 'slider', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-cpt-post-excerpt', 'affect_on_change_rule' => 'margin-bottom', 'section' => 'responsive', 'ext' => 'px', 'tab' => 'phone' ), array( 'label' => __( 'Button - Font Size', 'dslc_string' ), 'id' => 'css_res_p_button_font_size', 'std' => '11', 'type' => 'slider', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-cpt-post-read-more a', 'affect_on_change_rule' => 'font-size', 'section' => 'responsive', 'tab' => 'phone', 'ext' => 'px' ), array( 'label' => __( 'Button - Padding Vertical', 'dslc_string' ), 'id' => 'css_res_p_button_padding_vertical', 'std' => '12', 'type' => 'slider', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-cpt-post-read-more a', 'affect_on_change_rule' => 'padding-top,padding-bottom', 'section' => 'responsive', 'ext' => 'px', 'tab' => 'phone' ), array( 'label' => __( 'Button - Padding Horizontal', 'dslc_string' ), 'id' => 'css_res_p_button_padding_horizontal', 'std' => '12', 'type' => 'slider', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-cpt-post-read-more a', 'affect_on_change_rule' => 'padding-left,padding-right', 'section' => 'responsive', 'ext' => 'px', 'tab' => 'phone' ), array( 'label' => __( 'Button - Icon - Margin Right', 'dslc_string' ), 'id' => 'css_res_p_button_icon_margin', 'std' => '5', 'type' => 'slider', 'refresh_on_change' => false, 'affect_on_change_el' => '.dslc-cpt-post-read-more a .dslc-icon', 'affect_on_change_rule' => 'margin-right', 'section' => 'responsive', 'ext' => 'px', 'tab' => 'phone' ), ); $dslc_options = array_merge( $dslc_options, $this->heading_options ); $dslc_options = array_merge( $dslc_options, $this->filters_options ); $dslc_options = array_merge( $dslc_options, $this->carousel_arrows_options ); $dslc_options = array_merge( $dslc_options, $this->carousel_circles_options ); $dslc_options = array_merge( $dslc_options, $this->pagination_options ); return apply_filters( 'dslc_module_options', $dslc_options, $this->module_id ); } function output( $options ) { global $dslc_active; if ( $dslc_active && is_user_logged_in() && current_user_can( DS_LIVE_COMPOSER_CAPABILITY ) ) $dslc_is_admin = true; else $dslc_is_admin = false; $this->module_start( $options ); /* CUSTOM START */ if ( ! isset( $options['excerpt_length'] ) ) $options['excerpt_length'] = 20; /** * Query */ // Fix for pagination if( is_front_page() ) { $paged = ( get_query_var( 'page' ) ) ? get_query_var( 'page' ) : 1; } else { $paged = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1; } // General args $args = array( 'paged' => $paged, 'post_type' => $options['post_type'], 'posts_per_page' => $options['amount'], 'order' => $options['order'], 'orderby' => $options['orderby'], 'offset' => $options['offset'] ); // Category args if ( isset( $options['categories'] ) && $options['categories'] != '' ) { $cats_array = explode( ' ', $options['categories']); $args['category__in'] = $cats_array; } // Do the query $dslc_query = new WP_Query( $args ); /** * Unnamed */ $columns_class = 'dslc-col dslc-' . $options['columns'] . '-col '; $count = 0; $real_count = 0; $increment = $options['columns']; $max_count = 12; /** * Elements to show */ // Main Elements $elements = $options['elements']; if ( ! empty( $elements ) ) $elements = explode( ' ', trim( $elements ) ); else $elements = array(); // Post Elements $post_elements = $options['post_elements']; if ( ! empty( $post_elements ) ) $post_elements = explode( ' ', trim( $post_elements ) ); else $post_elements = 'all'; // Carousel Elements $carousel_elements = $options['carousel_elements']; if ( ! empty( $carousel_elements ) ) $carousel_elements = explode( ' ', trim( $carousel_elements ) ); else $carousel_elements = array(); /** * Classes generation */ // Posts container $container_class = 'dslc-posts dslc-cpt-posts dslc-clearfix dslc-cpt-posts-type-' . $options['type'] .' dslc-cpt-posts-orientation-' . $options['orientation'] . ' '; if ( $options['type'] == 'masonry' ) $container_class .= 'dslc-init-masonry '; elseif ( $options['type'] == 'grid' ) $container_class .= 'dslc-init-grid '; // Post $element_class = 'dslc-post dslc-cpt-post '; if ( $options['type'] == 'masonry' ) $element_class .= 'dslc-masonry-item '; elseif ( $options['type'] == 'carousel' ) $element_class .= 'dslc-carousel-item '; /** * What is shown */ $show_header = false; $show_heading = false; $show_filters = false; $show_carousel_arrows = false; $show_view_all_link = false; if ( in_array( 'main_heading', $elements ) ) $show_heading = true; if ( ( $elements == 'all' || in_array( 'filters', $elements ) ) && $options['type'] !== 'carousel' ) $show_filters = true; if ( $options['type'] == 'carousel' && in_array( 'arrows', $carousel_elements ) ) $show_carousel_arrows = true; if ( $show_heading || $show_filters || $show_carousel_arrows ) $show_header = true; /** * Carousel Items */ switch ( $options['columns'] ) { case 12 : $carousel_items = 1; break; case 6 : $carousel_items = 2; break; case 4 : $carousel_items = 3; break; case 3 : $carousel_items = 4; break; case 2 : $carousel_items = 6; break; default: $carousel_items = 6; break; } /** * Heading ( output ) */ if ( $show_header ) : ?>