This repository has been archived on 2026-11-04. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
teater-neuf/wp-content/plugins/ds-live-composer/includes/class.module.php
T
2014-04-07 12:01:12 +02:00

1631 lines
40 KiB
PHP

<?php
class DSLC_Module {
var $col_choices = array(
array(
'label' => '1/12',
'value' => '1',
),
array(
'label' => '2/12',
'value' => '2',
),
array(
'label' => '3/12',
'value' => '3',
),
array(
'label' => '4/12',
'value' => '4',
),
array(
'label' => '5/12',
'value' => '5',
),
array(
'label' => '6/12',
'value' => '6',
),
array(
'label' => '7/12',
'value' => '7',
),
array(
'label' => '8/12',
'value' => '8',
),
array(
'label' => '9/12',
'value' => '9',
),
array(
'label' => '10/12',
'value' => '10',
),
array(
'label' => '11/12',
'value' => '11',
),
array(
'label' => '12/12',
'value' => '12',
),
);
var $posts_per_row_choices = array(
array(
'label' => '1',
'value' => '12',
),
array(
'label' => '2',
'value' => '6',
),
array(
'label' => '3',
'value' => '4',
),
array(
'label' => '4',
'value' => '3',
),
array(
'label' => '6',
'value' => '2',
),
);
/**
* Filter Options
*/
var $filters_options = array(
array(
'label' => 'BG Color',
'id' => 'css_filter_bg_color',
'std' => '#ffffff',
'type' => 'color',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-post-filter.dslc-inactive',
'affect_on_change_rule' => 'background-color',
'section' => 'styling',
'tab' => 'Filters'
),
array(
'label' => 'BG Color - Active',
'id' => 'css_filter_bg_color_active',
'std' => '#5890e5',
'type' => 'color',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-post-filter.dslc-active',
'affect_on_change_rule' => 'background-color',
'section' => 'styling',
'tab' => 'Filters'
),
array(
'label' => 'Border Color',
'id' => 'css_filter_border_color',
'std' => '#e8e8e8',
'type' => 'color',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-post-filter.dslc-inactive',
'affect_on_change_rule' => 'border-color',
'section' => 'styling',
'tab' => 'Filters'
),
array(
'label' => 'Border Color - Active',
'id' => 'css_filter_border_color_active',
'std' => '#5890e5',
'type' => 'color',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-post-filter.dslc-active',
'affect_on_change_rule' => 'border-color',
'section' => 'styling',
'tab' => 'Filters'
),
array(
'label' => 'Border Width',
'id' => 'css_filter_border_width',
'std' => '1',
'type' => 'slider',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-post-filter',
'affect_on_change_rule' => 'border-width',
'section' => 'styling',
'ext' => 'px',
'tab' => 'Filters'
),
array(
'label' => 'Borders',
'id' => 'css_filter_border_trbl',
'std' => 'top right bottom left',
'type' => 'checkbox',
'choices' => array(
array(
'label' => 'Top',
'value' => 'top'
),
array(
'label' => 'Right',
'value' => 'right'
),
array(
'label' => 'Bottom',
'value' => 'bottom'
),
array(
'label' => 'Left',
'value' => 'left'
),
),
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-post-filter',
'affect_on_change_rule' => 'border-style',
'section' => 'styling',
'tab' => 'Filters',
),
array(
'label' => 'Border Radius',
'id' => 'css_filter_border_radius',
'std' => '3',
'type' => 'slider',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-post-filter',
'affect_on_change_rule' => 'border-radius',
'section' => 'styling',
'tab' => 'Filters',
'ext' => 'px'
),
array(
'label' => 'Color',
'id' => 'css_filter_color',
'std' => '#979797',
'type' => 'color',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-post-filter.dslc-inactive',
'affect_on_change_rule' => 'color',
'section' => 'styling',
'tab' => 'Filters'
),
array(
'label' => 'Color - Active',
'id' => 'css_filter_color_active',
'std' => '#ffffff',
'type' => 'color',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-post-filter.dslc-active',
'affect_on_change_rule' => 'color',
'section' => 'styling',
'tab' => 'Filters'
),
array(
'label' => 'Font Size',
'id' => 'css_filter_font_size',
'std' => '11',
'type' => 'slider',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-post-filter',
'affect_on_change_rule' => 'font-size',
'section' => 'styling',
'tab' => 'Filters',
'ext' => 'px'
),
array(
'label' => 'Font Weight',
'id' => 'css_filter_font_weight',
'std' => '700',
'type' => 'slider',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-post-filter',
'affect_on_change_rule' => 'font-weight',
'section' => 'styling',
'tab' => 'Filters',
'ext' => '',
'min' => 100,
'max' => 900,
'increment' => 100
),
array(
'label' => 'Font Family',
'id' => 'css_filter_font_family',
'std' => 'Open Sans',
'type' => 'font',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-post-filter',
'affect_on_change_rule' => 'font-family',
'section' => 'styling',
'tab' => 'Filters',
),
array(
'label' => 'Padding Vertical',
'id' => 'css_filter_padding_vertical',
'std' => '12',
'type' => 'slider',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-post-filter',
'affect_on_change_rule' => 'padding-top,padding-bottom',
'section' => 'styling',
'ext' => 'px',
'tab' => 'Filters'
),
array(
'label' => 'Padding Horizontal',
'id' => 'css_filter_padding_horizontal',
'std' => '12',
'type' => 'slider',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-post-filter',
'affect_on_change_rule' => 'padding-left,padding-right',
'section' => 'styling',
'ext' => 'px',
'tab' => 'Filters'
),
array(
'label' => 'Position',
'id' => 'css_filter_position',
'std' => 'left',
'type' => 'select',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-post-filters',
'affect_on_change_rule' => 'float',
'section' => 'styling',
'tab' => 'Filters',
'choices' => array(
array(
'label' => 'Left',
'value' => 'left',
),
array(
'label' => 'Right',
'value' => 'right',
),
)
),
array(
'label' => 'Spacing',
'id' => 'css_filter_spacing',
'std' => '10',
'type' => 'slider',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-post-filter',
'affect_on_change_rule' => 'margin-right',
'section' => 'styling',
'ext' => 'px',
'tab' => 'Filters'
),
array(
'label' => 'Margin Bottom',
'id' => 'css_filter_margin_bottom',
'std' => '20',
'type' => 'slider',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-post-filters',
'affect_on_change_rule' => 'margin-bottom',
'section' => 'styling',
'tab' => 'Filters',
'ext' => 'px'
),
/**
* Responsive Tablet
*/
array(
'label' => 'Filters - Font Size',
'id' => 'css_res_t_filter_font_size',
'std' => '11',
'type' => 'slider',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-post-filter',
'affect_on_change_rule' => 'font-size',
'section' => 'responsive',
'tab' => 'tablet',
'ext' => 'px'
),
array(
'label' => 'Filters - Padding Vertical',
'id' => 'css_res_t_filter_padding_vertical',
'std' => '12',
'type' => 'slider',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-post-filter',
'affect_on_change_rule' => 'padding-top,padding-bottom',
'section' => 'responsive',
'ext' => 'px',
'tab' => 'tablet'
),
array(
'label' => 'Filters - Padding Horizontal',
'id' => 'css_res_t_filter_padding_horizontal',
'std' => '12',
'type' => 'slider',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-post-filter',
'affect_on_change_rule' => 'padding-left,padding-right',
'section' => 'responsive',
'ext' => 'px',
'tab' => 'tablet'
),
array(
'label' => 'Filters - Spacing',
'id' => 'css_res_t_filter_spacing',
'std' => '10',
'type' => 'slider',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-post-filter',
'affect_on_change_rule' => 'margin-right',
'section' => 'responsive',
'ext' => 'px',
'tab' => 'tablet'
),
array(
'label' => 'Filters - Margin Bottom',
'id' => 'css_res_t_filter_margin_bottom',
'std' => '20',
'type' => 'slider',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-post-filters',
'affect_on_change_rule' => 'margin-bottom',
'section' => 'responsive',
'tab' => 'tablet',
'ext' => 'px'
),
/**
* Responsive Phone
*/
array(
'label' => 'Filters - Font Size',
'id' => 'css_res_p_filter_font_size',
'std' => '11',
'type' => 'slider',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-post-filter',
'affect_on_change_rule' => 'font-size',
'section' => 'responsive',
'tab' => 'phone',
'ext' => 'px'
),
array(
'label' => 'Filters - Padding Vertical',
'id' => 'css_res_p_filter_padding_vertical',
'std' => '12',
'type' => 'slider',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-post-filter',
'affect_on_change_rule' => 'padding-top,padding-bottom',
'section' => 'responsive',
'ext' => 'px',
'tab' => 'phone'
),
array(
'label' => 'Filters - Padding Horizontal',
'id' => 'css_res_p_filter_padding_horizontal',
'std' => '12',
'type' => 'slider',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-post-filter',
'affect_on_change_rule' => 'padding-left,padding-right',
'section' => 'responsive',
'ext' => 'px',
'tab' => 'phone'
),
array(
'label' => 'Filters - Spacing',
'id' => 'css_res_p_filter_spacing',
'std' => '10',
'type' => 'slider',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-post-filter',
'affect_on_change_rule' => 'margin-right',
'section' => 'responsive',
'ext' => 'px',
'tab' => 'phone'
),
array(
'label' => 'Filters - Margin Bottom',
'id' => 'css_res_p_filter_margin_bottom',
'std' => '20',
'type' => 'slider',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-post-filters',
'affect_on_change_rule' => 'margin-bottom',
'section' => 'responsive',
'tab' => 'phone',
'ext' => 'px'
),
);
/**
* Heading
*/
var $heading_options = array(
array(
'label' => 'Main Heading Title',
'id' => 'main_heading_title',
'std' => 'CLICK TO EDIT',
'type' => 'text',
'visibility' => 'hidden'
),
array(
'label' => 'View All Title',
'id' => 'main_heading_link_title',
'std' => 'VIEW ALL',
'type' => 'text',
'visibility' => 'hidden'
),
array(
'label' => 'Title - Color',
'id' => 'css_main_heading_color',
'std' => '',
'type' => 'color',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-module-heading h2',
'affect_on_change_rule' => 'color',
'section' => 'styling',
'tab' => 'Heading'
),
array(
'label' => 'Title - Font Size',
'id' => 'css_main_heading_font_size',
'std' => '17',
'type' => 'slider',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-module-heading h2',
'affect_on_change_rule' => 'font-size',
'section' => 'styling',
'tab' => 'Heading',
'ext' => 'px'
),
array(
'label' => 'Title - Font Weight',
'id' => 'css_main_heading_font_weight',
'std' => '400',
'type' => 'slider',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-module-heading h2',
'affect_on_change_rule' => 'font-weight',
'section' => 'styling',
'tab' => 'Heading',
'ext' => '',
'min' => 100,
'max' => 900,
'increment' => 100
),
array(
'label' => 'Title - Font Family',
'id' => 'css_main_heading_font_family',
'std' => 'Oswald',
'type' => 'font',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-module-heading h2',
'affect_on_change_rule' => 'font-family',
'section' => 'styling',
'tab' => 'Heading',
),
array(
'label' => 'Title - Line Height',
'id' => 'css_main_heading_line_height',
'std' => '37',
'type' => 'slider',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-module-heading h2',
'affect_on_change_rule' => 'line-height',
'section' => 'styling',
'tab' => 'Heading',
'ext' => 'px'
),
array(
'label' => 'Link - Color',
'id' => 'css_main_heading_link_color',
'std' => '',
'type' => 'color',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-module-heading-view-all a',
'affect_on_change_rule' => 'color',
'section' => 'styling',
'tab' => 'Heading'
),
array(
'label' => 'Link - Color - Hover',
'id' => 'css_main_heading_link_color_hover',
'std' => '',
'type' => 'color',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-module-heading-view-all a:hover',
'affect_on_change_rule' => 'color',
'section' => 'styling',
'tab' => 'Heading'
),
array(
'label' => 'Link - Font Size',
'id' => 'css_main_heading_link_font_size',
'std' => '11',
'type' => 'slider',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-module-heading-view-all a',
'affect_on_change_rule' => 'font-size',
'section' => 'styling',
'tab' => 'Heading',
'ext' => 'px'
),
array(
'label' => 'Link - Font Weight',
'id' => 'css_main_heading_link_font_weight',
'std' => '600',
'type' => 'slider',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-module-heading-view-all a',
'affect_on_change_rule' => 'font-weight',
'section' => 'styling',
'tab' => 'Heading',
'ext' => '',
'min' => 100,
'max' => 900,
'increment' => 100
),
array(
'label' => 'Link - Font Family',
'id' => 'css_main_heading_link_font_family',
'std' => 'Open Sans',
'type' => 'font',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-module-heading-view-all a',
'affect_on_change_rule' => 'font-family',
'section' => 'styling',
'tab' => 'Heading',
),
array(
'label' => 'Link - Padding Vertical',
'id' => 'css_main_heading_link_padding_ver',
'std' => '10',
'type' => 'slider',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-module-heading-view-all',
'affect_on_change_rule' => 'padding-top,padding-bottom',
'section' => 'styling',
'tab' => 'Heading',
'ext' => 'px'
),
array(
'label' => 'Link - URL',
'id' => 'view_all_link',
'std' => '#',
'type' => 'text',
'section' => 'styling',
'tab' => 'Heading',
),
array(
'label' => 'Separator - Color',
'id' => 'css_main_heading_sep_color',
'std' => '#4f4f4f',
'type' => 'color',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-module-heading-view-all a',
'affect_on_change_rule' => 'border-left-color',
'section' => 'styling',
'tab' => 'Heading'
),
array(
'label' => 'Separator - Style',
'id' => 'css_main_heading_sep_style',
'std' => 'dotted',
'type' => 'select',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-module-heading-view-all a',
'affect_on_change_rule' => 'border-left-style',
'section' => 'styling',
'tab' => 'Heading',
'choices' => array(
array(
'label' => 'Solid',
'value' => 'solid',
),
array(
'label' => 'Dashed',
'value' => 'dashed',
),
array(
'label' => 'Dotted',
'value' => 'dotted',
),
)
),
array(
'label' => 'Margin Bottom',
'id' => 'css_heading_margin_bottom',
'std' => '20',
'type' => 'slider',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-module-heading h2',
'affect_on_change_rule' => 'margin-bottom',
'section' => 'styling',
'tab' => 'Heading',
'ext' => 'px'
),
/**
* Responsive Tablet
*/
array(
'label' => 'Heading - Font Size',
'id' => 'css_res_t_main_heading_font_size',
'std' => '17',
'type' => 'slider',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-module-heading h2',
'affect_on_change_rule' => 'font-size',
'section' => 'responsive',
'tab' => 'tablet',
'ext' => 'px'
),
array(
'label' => 'Heading - Line Height',
'id' => 'css_res_t_main_heading_line_height',
'std' => '37',
'type' => 'slider',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-module-heading h2',
'affect_on_change_rule' => 'line-height',
'section' => 'responsive',
'tab' => 'tablet',
'ext' => 'px'
),
array(
'label' => 'Heading Link - Font Size',
'id' => 'css_res_t_main_heading_link_font_size',
'std' => '11',
'type' => 'slider',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-module-heading-view-all a',
'affect_on_change_rule' => 'font-size',
'section' => 'responsive',
'tab' => 'tablet',
'ext' => 'px'
),
array(
'label' => 'Heading Link - Padding Vertical',
'id' => 'css_res_t_main_heading_link_padding_ver',
'std' => '10',
'type' => 'slider',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-module-heading-view-all',
'affect_on_change_rule' => 'padding-top,padding-bottom',
'section' => 'responsive',
'tab' => 'tablet',
'ext' => 'px'
),
array(
'label' => 'Heading - Margin Bottom',
'id' => 'css_res_t_heading_margin_bottom',
'std' => '20',
'type' => 'slider',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-module-heading h2',
'affect_on_change_rule' => 'margin-bottom',
'section' => 'responsive',
'tab' => 'tablet',
'ext' => 'px'
),
/**
* Responsive Phone
*/
array(
'label' => 'Heading - Font Size',
'id' => 'css_res_p_main_heading_font_size',
'std' => '17',
'type' => 'slider',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-module-heading h2',
'affect_on_change_rule' => 'font-size',
'section' => 'responsive',
'tab' => 'phone',
'ext' => 'px'
),
array(
'label' => 'Heading - Line Height',
'id' => 'css_res_p_main_heading_line_height',
'std' => '37',
'type' => 'slider',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-module-heading h2',
'affect_on_change_rule' => 'line-height',
'section' => 'responsive',
'tab' => 'phone',
'ext' => 'px'
),
array(
'label' => 'Heading Link - Font Size',
'id' => 'css_res_p_main_heading_link_font_size',
'std' => '11',
'type' => 'slider',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-module-heading-view-all a',
'affect_on_change_rule' => 'font-size',
'section' => 'responsive',
'tab' => 'phone',
'ext' => 'px'
),
array(
'label' => 'Heading Link - Padding Vertical',
'id' => 'css_res_p_main_heading_link_padding_ver',
'std' => '10',
'type' => 'slider',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-module-heading-view-all',
'affect_on_change_rule' => 'padding-top,padding-bottom',
'section' => 'responsive',
'tab' => 'phone',
'ext' => 'px'
),
array(
'label' => 'Heading - Margin Bottom',
'id' => 'css_res_p_heading_margin_bottom',
'std' => '20',
'type' => 'slider',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-module-heading h2',
'affect_on_change_rule' => 'margin-bottom',
'section' => 'responsive',
'tab' => 'phone',
'ext' => 'px'
),
);
/**
* Carousel Arrows
*/
var $carousel_arrows_options = array(
array(
'label' => 'BG Color',
'id' => 'css_arrows_bg_color',
'std' => '#c9c9c9',
'type' => 'color',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-carousel-nav-prev,.dslc-carousel-nav-next',
'affect_on_change_rule' => 'background-color',
'section' => 'styling',
'tab' => 'Carousel Arrows'
),
array(
'label' => 'BG Color - Hover',
'id' => 'css_arrows_bg_color_hover',
'std' => '#5890e5',
'type' => 'color',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-carousel-nav-prev:hover,.dslc-carousel-nav-next:hover',
'affect_on_change_rule' => 'background-color',
'section' => 'styling',
'tab' => 'Carousel Arrows'
),
array(
'label' => 'Border Color',
'id' => 'css_arrows_border_color',
'std' => '',
'type' => 'color',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-carousel-nav-prev,.dslc-carousel-nav-next',
'affect_on_change_rule' => 'border-color',
'section' => 'styling',
'tab' => 'Carousel Arrows',
),
array(
'label' => 'Border Color - Hover',
'id' => 'css_arrows_border_color_hover',
'std' => '',
'type' => 'color',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-carousel-nav-prev:hover,.dslc-carousel-nav-next:hover',
'affect_on_change_rule' => 'border-color',
'section' => 'styling',
'tab' => 'Carousel Arrows',
),
array(
'label' => 'Border Width',
'id' => 'css_arrows_border_width',
'std' => '0',
'type' => 'slider',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-carousel-nav-prev,.dslc-carousel-nav-next',
'affect_on_change_rule' => 'border-width',
'section' => 'styling',
'ext' => 'px',
'tab' => 'Carousel Arrows',
),
array(
'label' => 'Border Radius',
'id' => 'css_arrows_border_radius',
'std' => '3',
'type' => 'slider',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-carousel-nav-prev,.dslc-carousel-nav-next',
'affect_on_change_rule' => 'border-radius',
'section' => 'styling',
'tab' => 'Carousel Arrows',
'ext' => 'px'
),
array(
'label' => 'Color',
'id' => 'css_arrows_color',
'std' => '#ffffff',
'type' => 'color',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-carousel-nav-prev span,.dslc-carousel-nav-next span',
'affect_on_change_rule' => 'color',
'section' => 'styling',
'tab' => 'Carousel Arrows'
),
array(
'label' => 'Color - Hover',
'id' => 'css_arrows_color_hover',
'std' => '#ffffff',
'type' => 'color',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-carousel-nav-prev:hover span,.dslc-carousel-nav-next:hover span',
'affect_on_change_rule' => 'color',
'section' => 'styling',
'tab' => 'Carousel Arrows'
),
array(
'label' => 'Margin Top',
'id' => 'css_arrows_margin_top',
'std' => '6',
'type' => 'slider',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-carousel-nav',
'affect_on_change_rule' => 'margin-top',
'section' => 'styling',
'tab' => 'Carousel Arrows',
'ext' => 'px'
),
array(
'label' => 'Size',
'id' => 'css_arrows_size',
'std' => '23',
'type' => 'slider',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-carousel-nav-prev,.dslc-carousel-nav-next',
'affect_on_change_rule' => 'width,height',
'section' => 'styling',
'ext' => 'px',
'tab' => 'Carousel Arrows'
),
array(
'label' => 'Size - Arrows',
'id' => 'css_arrows_arrow_size',
'std' => '10',
'type' => 'slider',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-carousel-nav-prev span,.dslc-carousel-nav-next span',
'affect_on_change_rule' => 'font-size',
'section' => 'styling',
'ext' => 'px',
'tab' => 'Carousel Arrows'
),
array(
'label' => 'Margin Bottom',
'id' => 'css_arrows_margin_bottom',
'std' => '20',
'type' => 'slider',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-carousel-nav',
'affect_on_change_rule' => 'margin-bottom',
'section' => 'styling',
'tab' => 'Carousel Arrows',
'ext' => 'px'
),
);
/**
* Carousel Circles
*/
var $carousel_circles_options = array(
array(
'label' => 'Color',
'id' => 'css_circles_color',
'std' => '#b9b9b9',
'type' => 'color',
'refresh_on_change' => false,
'affect_on_change_el' => '.owl-pagination .owl-page span',
'affect_on_change_rule' => 'background-color',
'section' => 'styling',
'tab' => 'Carousel Circles'
),
array(
'label' => 'Color - Active',
'id' => 'css_circles_color_active',
'std' => '#5890e5',
'type' => 'color',
'refresh_on_change' => false,
'affect_on_change_el' => '.owl-pagination .owl-page.active span',
'affect_on_change_rule' => 'background-color',
'section' => 'styling',
'tab' => 'Carousel Circles'
),
array(
'label' => 'Margin Top',
'id' => 'css_circles_margin_top',
'std' => '20',
'type' => 'slider',
'refresh_on_change' => false,
'affect_on_change_el' => '.owl-controls',
'affect_on_change_rule' => 'margin-top',
'section' => 'styling',
'tab' => 'Carousel Circles',
'ext' => 'px'
),
array(
'label' => 'Size',
'id' => 'css_circles_size',
'std' => '7',
'type' => 'slider',
'refresh_on_change' => false,
'affect_on_change_el' => '.owl-pagination .owl-page span',
'affect_on_change_rule' => 'width,height',
'section' => 'styling',
'tab' => 'Carousel Circles',
'ext' => 'px'
),
array(
'label' => 'Spacing',
'id' => 'css_circles_spacing',
'std' => '3',
'type' => 'slider',
'refresh_on_change' => false,
'affect_on_change_el' => '.owl-pagination .owl-page',
'affect_on_change_rule' => 'margin-left,margin-right',
'section' => 'styling',
'tab' => 'Carousel Circles',
'ext' => 'px'
),
);
/**
* Pagination
*/
var $pagination_options = array(
array(
'label' => 'Align',
'id' => 'css_pag_align',
'std' => 'left',
'type' => 'select',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-pagination',
'affect_on_change_rule' => 'text-align',
'section' => 'styling',
'tab' => 'Pagination',
'choices' => array(
array(
'label' => 'Left',
'value' => 'left',
),
array(
'label' => 'Center',
'value' => 'center',
),
array(
'label' => 'Right',
'value' => 'right',
),
)
),
array(
'label' => 'Container - BG Color',
'id' => 'css_pag_bg_color',
'std' => '',
'type' => 'color',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-pagination',
'affect_on_change_rule' => 'background-color',
'section' => 'styling',
'tab' => 'Pagination',
),
array(
'label' => 'Container - Border Color',
'id' => 'css_pag_border_color',
'std' => '',
'type' => 'color',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-pagination',
'affect_on_change_rule' => 'border-color',
'section' => 'styling',
'tab' => 'Pagination'
),
array(
'label' => 'Container - Border Width',
'id' => 'css_pag_border_width',
'std' => '0',
'type' => 'slider',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-pagination',
'affect_on_change_rule' => 'border-width',
'section' => 'styling',
'ext' => 'px',
'tab' => 'Pagination'
),
array(
'label' => 'Container - Borders',
'id' => 'css_pag_border_trbl',
'std' => 'top right bottom left',
'type' => 'checkbox',
'choices' => array(
array(
'label' => 'Top',
'value' => 'top'
),
array(
'label' => 'Right',
'value' => 'right'
),
array(
'label' => 'Bottom',
'value' => 'bottom'
),
array(
'label' => 'Left',
'value' => 'left'
),
),
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-pagination',
'affect_on_change_rule' => 'border-style',
'section' => 'styling',
'tab' => 'Pagination',
),
array(
'label' => 'Container - Border Radius',
'id' => 'css_pag_border_radius',
'std' => '0',
'type' => 'slider',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-pagination',
'affect_on_change_rule' => 'border-radius',
'section' => 'styling',
'tab' => 'Pagination',
'ext' => 'px'
),
array(
'label' => 'Container - Padding Vertical',
'id' => 'css_pag_padding_vertical',
'std' => '0',
'type' => 'slider',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-pagination',
'affect_on_change_rule' => 'padding-top,padding-bottom',
'section' => 'styling',
'ext' => 'px',
'tab' => 'Pagination'
),
array(
'label' => 'Container - Padding Horizontal',
'id' => 'css_pag_padding_horizontal',
'std' => '0',
'type' => 'slider',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-pagination',
'affect_on_change_rule' => 'padding-left,padding-right',
'section' => 'styling',
'ext' => 'px',
'tab' => 'Pagination'
),
array(
'label' => 'Item - BG Color',
'id' => 'css_pag_item_bg_color',
'std' => '#ffffff',
'type' => 'color',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-pagination li.dslc-inactive a',
'affect_on_change_rule' => 'background-color',
'section' => 'styling',
'tab' => 'Pagination',
),
array(
'label' => 'Item - Active - BG Color',
'id' => 'css_pag_item_bg_color_active',
'std' => '#5890e5',
'type' => 'color',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-pagination li.dslc-active a',
'affect_on_change_rule' => 'background-color',
'section' => 'styling',
'tab' => 'Pagination',
),
array(
'label' => 'Item - Border Color',
'id' => 'css_pag_item_border_color',
'std' => '#e8e8e8',
'type' => 'color',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-pagination li.dslc-inactive a',
'affect_on_change_rule' => 'border-color',
'section' => 'styling',
'tab' => 'Pagination'
),
array(
'label' => 'Item - Active - Border Color',
'id' => 'css_pag_item_border_color_active',
'std' => '#5890e5',
'type' => 'color',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-pagination li.dslc-active a',
'affect_on_change_rule' => 'border-color',
'section' => 'styling',
'tab' => 'Pagination'
),
array(
'label' => 'Item - Border Width',
'id' => 'css_pag_item_border_width',
'std' => '1',
'type' => 'slider',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-pagination li.dslc-inactive a',
'affect_on_change_rule' => 'border-width',
'section' => 'styling',
'ext' => 'px',
'tab' => 'Pagination'
),
array(
'label' => 'Item - Active - Border Width',
'id' => 'css_pag_item_border_width_active',
'std' => '1',
'type' => 'slider',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-pagination li.dslc-active a',
'affect_on_change_rule' => 'border-width',
'section' => 'styling',
'ext' => 'px',
'tab' => 'Pagination'
),
array(
'label' => 'Item - Borders',
'id' => 'css_pag_item_border_trbl',
'std' => 'top right bottom left',
'type' => 'checkbox',
'choices' => array(
array(
'label' => 'Top',
'value' => 'top'
),
array(
'label' => 'Right',
'value' => 'right'
),
array(
'label' => 'Bottom',
'value' => 'bottom'
),
array(
'label' => 'Left',
'value' => 'left'
),
),
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-pagination li a',
'affect_on_change_rule' => 'border-style',
'section' => 'styling',
'tab' => 'Pagination',
),
array(
'label' => 'Item - Border Radius',
'id' => 'css_pag_item_border_radius',
'std' => '3',
'type' => 'slider',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-pagination li a',
'affect_on_change_rule' => 'border-radius',
'section' => 'styling',
'tab' => 'Pagination',
'ext' => 'px'
),
array(
'label' => 'Item - Color',
'id' => 'css_pag_item_color',
'std' => '#979797',
'type' => 'color',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-pagination li.dslc-inactive a',
'affect_on_change_rule' => 'color',
'section' => 'styling',
'tab' => 'Pagination',
),
array(
'label' => 'Item - Active - Color',
'id' => 'css_pag_item_color_active',
'std' => '#ffffff',
'type' => 'color',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-pagination li.dslc-active a',
'affect_on_change_rule' => 'color',
'section' => 'styling',
'tab' => 'Pagination',
),
array(
'label' => 'Item - Font Size',
'id' => 'css_pag_item_font_size',
'std' => '11',
'type' => 'slider',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-pagination li a',
'affect_on_change_rule' => 'font-size',
'section' => 'styling',
'tab' => 'Pagination',
'ext' => 'px'
),
array(
'label' => 'Item - Font Weight',
'id' => 'css_pag_item_font_weight',
'std' => '700',
'type' => 'slider',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-pagination li a',
'affect_on_change_rule' => 'font-weight',
'section' => 'styling',
'tab' => 'Pagination',
'ext' => '',
'min' => 100,
'max' => 900,
'increment' => 100
),
array(
'label' => 'Item - Font Family',
'id' => 'css_pag_item_font_family',
'std' => 'Open Sans',
'type' => 'font',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-pagination li a',
'affect_on_change_rule' => 'font-family',
'section' => 'styling',
'tab' => 'Pagination',
),
array(
'label' => 'Item - Padding Vertical',
'id' => 'css_pag_item_padding_vertical',
'std' => '12',
'type' => 'slider',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-pagination li a',
'affect_on_change_rule' => 'padding-top,padding-bottom',
'section' => 'styling',
'ext' => 'px',
'tab' => 'Pagination'
),
array(
'label' => 'Item - Padding Horizontal',
'id' => 'css_pag_item_padding_horizontal',
'std' => '12',
'type' => 'slider',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-pagination li a',
'affect_on_change_rule' => 'padding-left,padding-right',
'section' => 'styling',
'ext' => 'px',
'tab' => 'Pagination'
),
array(
'label' => 'Item - Spacing',
'id' => 'css_pag_item_spacing',
'std' => '10',
'type' => 'slider',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-pagination li',
'affect_on_change_rule' => 'margin-right',
'section' => 'styling',
'ext' => 'px',
'tab' => 'Pagination'
),
);
/**
* Responsive
*/
var $res_posts_options = array(
/**
* Smaller Monitor
*/
array(
'label' => 'Posts Per Row',
'id' => 'res_sm_columns',
'std' => 'auto',
'type' => 'select',
'choices' => array(
array(
'label' => 'Automatic',
'value' => 'auto',
),
array(
'label' => '1',
'value' => '12',
),
array(
'label' => '2',
'value' => '6',
),
array(
'label' => '3',
'value' => '4',
),
array(
'label' => '4',
'value' => '3',
),
array(
'label' => '6',
'value' => '2',
),
),
'tab' => 'smaller monitor',
'section' => 'responsive'
),
array(
'label' => 'Thumbnail',
'id' => 'res_sm_thumb',
'std' => 'block',
'type' => 'select',
'choices' => array(
array(
'label' => 'Enabled',
'value' => 'block',
),
array(
'label' => 'Disabled',
'value' => 'none',
),
),
'tab' => 'smaller monitor',
'section' => 'responsive',
'refresh_on_change' => false,
'affect_on_change_rule' => 'display',
'affect_on_change_el' => '.dslc-blog-post-thumb'
),
/**
* Tablet
*/
array(
'label' => 'Posts Per Row',
'id' => 'res_tp_columns',
'std' => 'auto',
'type' => 'select',
'choices' => array(
array(
'label' => 'Automatic',
'value' => 'auto',
),
array(
'label' => '1',
'value' => '12',
),
array(
'label' => '2',
'value' => '6',
),
array(
'label' => '3',
'value' => '4',
),
array(
'label' => '4',
'value' => '3',
),
array(
'label' => '6',
'value' => '2',
),
),
'tab' => 'tablet portrait',
'section' => 'responsive'
),
/**
* Phone
*/
array(
'label' => 'Posts Per Row',
'id' => 'res_p_columns',
'std' => 'auto',
'type' => 'select',
'choices' => array(
array(
'label' => 'Automatic',
'value' => 'auto',
),
array(
'label' => '1',
'value' => '12',
),
array(
'label' => '2',
'value' => '6',
),
array(
'label' => '3',
'value' => '4',
),
array(
'label' => '4',
'value' => '3',
),
array(
'label' => '6',
'value' => '2',
),
),
'tab' => 'phone',
'section' => 'responsive'
),
);
/**
* Declare module options
*/
function options() {
die('Function "options" must be over-ridden in a sub-class (the module class).');
}
/**
* The front-end output of the module
*/
function output( $options ) {
die('Function "output" must be over-ridden in a sub-class (the module class).');
}
function module_start( $options ) {
global $dslc_should_filter;
$dslc_should_filter = false;
$options['module_id'] = $this->module_id;
global $dslc_css_style;
global $dslc_googlefonts_array;
?>
<div id="dslc-module-<?php echo $options['module_instance_id']; ?>" class="dslc-module-front dslc-module-<?php echo $this->module_id; ?>" data-module-id="<?php echo $options['module_instance_id']; ?>" data-dslc-module-id="<?php echo $this->module_id; ?>" data-dslc-module-size="12">
<?php do_action( 'dslc_module_before' ); ?>
<?php if ( DS_LIVE_COMPOSER_ACTIVE && is_user_logged_in() && current_user_can( DS_LIVE_COMPOSER_CAPABILITY ) ) : ?>
<style><?php
$options_arr = $this->options();
if ( isset( $options['css_custom'] ) && $options['css_custom'] == 'disabled' ) {
} else {
dslc_generate_custom_css( $options_arr, $options, true );
$googlefonts_output = '';
foreach ( $dslc_googlefonts_array as $googlefont) {
$googlefont = str_replace( ' ', '+', $googlefont );
if ( $googlefont != '' ) {
$googlefonts_output .= '@import url("http://fonts.googleapis.com/css?family=' . $googlefont . ':100,200,300,400,500,600,700,800,900&subset=latin,latin-ext"); ';
}
}
echo $googlefonts_output;
echo $dslc_css_style;
}
?></style>
<div class="dslca-module-manage">
<span class="dslca-module-manage-line"></span>
<div class="dslca-module-manage-inner">
<a href="#" class="dslca-module-edit-hook"><span class="dslc-icon-cog"></span></a>
<a href="#" class="dslca-copy-module-hook"><span class="dslc-icon-copy"></span></a>
<a href="#" class="dslca-move-module-hook"><span class="dslc-icon-move"></span></a>
<a href="#" class="dslca-change-width-module-hook">
<span class="dslc-icon-columns"></span>
<div class="dslca-change-width-module-options">
<span data-size="1">1/12</span><span data-size="2">2/12</span>
<span data-size="3">3/12</span><span data-size="4">4/12</span>
<span data-size="5">5/12</span><span data-size="6">6/12</span>
<span data-size="7">7/12</span><span data-size="8">8/12</span>
<span data-size="9">9/12</span><span data-size="10">10/12</span>
<span data-size="11">11/12</span><span data-size="12">12/12</span>
</div>
</a>
<a href="#" class="dslca-delete-module-hook"><span class="dslc-icon-remove"></span></a>
</div>
</div>
<?php endif; ?>
<?php
}
function module_end( $user_options ) {
$options = $this->options();
$user_options['module_id'] = $this->module_id;
$option_ids = array();
?>
<?php if ( DS_LIVE_COMPOSER_ACTIVE && is_user_logged_in() && current_user_can( DS_LIVE_COMPOSER_CAPABILITY ) ) : ?>
<div class="dslca-module-options-front">
<?php foreach ( $options as $option ) : ?>
<?php
// Option ID
$option_id = $option['id'];
$options_ids[] = $option['id'];
// If value already set use it, if not use default
if ( isset( $user_options[ $option_id ] ) )
$option_value = $user_options[ $option_id ];
else
$option_value = $option['std'];
?>
<textarea class="dslca-module-option-front" data-id="<?php echo $option_id; ?>"><?php echo stripslashes ( $option_value ); ?></textarea>
<?php endforeach; ?>
<?php foreach ( $user_options as $user_option_id => $user_option_val ) : ?>
<?php if ( ! in_array( $user_option_id, $options_ids ) ) : ?>
<textarea class="dslca-module-option-front" data-id="<?php echo $user_option_id; ?>"><?php echo stripslashes( $user_option_val ); ?></textarea>
<?php endif; ?>
<?php endforeach; ?>
</div><!-- dslca-module-options-front -->
<textarea class="dslca-module-code"><?php echo base64_encode( serialize($user_options) ); ?></textarea>
<span class="dslc-sortable-helper-icon dslc-icon-<?php echo $this->module_icon; ?>" data-title="<?php echo $this->module_title; ?>" data-icon="<?php echo $this->module_icon; ?>"></span>
<?php endif; ?>
<?php do_action( 'dslc_module_after' ); ?>
</div><!-- .dslc-module -->
<?php
global $dslc_should_filter;
$dslc_should_filter = true;
}
}