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/modules/tp-content/module.php
T
2014-04-07 12:01:12 +02:00

1170 lines
33 KiB
PHP

<?php
class DSLC_TP_Content extends DSLC_Module {
var $module_id = 'DSLC_TP_Content';
var $module_title = 'The Content';
var $module_icon = 'font';
var $module_category = 'single';
function options() {
$dslc_options = array(
/**
* Styling Options
*/
array(
'label' => __( 'Enable/Disable Custom CSS', 'dslc_string' ),
'id' => 'css_custom',
'std' => 'disabled',
'type' => 'select',
'choices' => array(
array(
'label' => __( 'Enabled', 'dslc_string' ),
'value' => 'enabled'
),
array(
'label' => __( 'Disabled', 'dslc_string' ),
'value' => 'disabled'
),
),
'section' => 'styling',
),
array(
'label' => __( ' BG Color', 'dslc_string' ),
'id' => 'css_main_bg_color',
'std' => '',
'type' => 'color',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-tp-content',
'affect_on_change_rule' => 'background-color',
'section' => 'styling',
),
array(
'label' => __( 'Border Color', 'dslc_string' ),
'id' => 'css_main_border_color',
'std' => '',
'type' => 'color',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-tp-content',
'affect_on_change_rule' => 'border-color',
'section' => 'styling',
),
array(
'label' => __( 'Border Width', 'dslc_string' ),
'id' => 'css_main_border_width',
'std' => '0',
'type' => 'slider',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-tp-content',
'affect_on_change_rule' => 'border-width',
'section' => 'styling',
'ext' => 'px',
),
array(
'label' => __( 'Borders', 'dslc_string' ),
'id' => 'css_main_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-tp-content',
'affect_on_change_rule' => 'border-style',
'section' => 'styling',
),
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-tp-content',
'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_main_border_radius_bottom',
'std' => '0',
'type' => 'slider',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-tp-content',
'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-tp-content',
'affect_on_change_rule' => 'margin-bottom',
'section' => 'styling',
'ext' => 'px',
),
array(
'label' => __( 'Padding Vertical', 'dslc_string' ),
'id' => 'css_main_padding_vertical',
'std' => '0',
'type' => 'slider',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-tp-content',
'affect_on_change_rule' => 'padding-top,padding-bottom',
'section' => 'styling',
'ext' => 'px',
),
array(
'label' => __( 'Padding Horizontal', 'dslc_string' ),
'id' => 'css_main_padding_horizontal',
'std' => '0',
'type' => 'slider',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-tp-content',
'affect_on_change_rule' => 'padding-left,padding-right',
'section' => 'styling',
'ext' => 'px',
),
/**
* Content
*/
array(
'label' => __( 'Color', 'dslc_string' ),
'id' => 'css_main_color',
'std' => '',
'type' => 'color',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-tp-content',
'affect_on_change_rule' => 'color',
'section' => 'styling',
'tab' => 'Content'
),
array(
'label' => __( 'Font Size', 'dslc_string' ),
'id' => 'css_main_font_size',
'std' => '13',
'type' => 'slider',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-tp-content',
'affect_on_change_rule' => 'font-size',
'section' => 'styling',
'tab' => 'Content',
'ext' => 'px'
),
array(
'label' => __( 'Font Weight', 'dslc_string' ),
'id' => 'css_main_font_weight',
'std' => '400',
'type' => 'slider',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-tp-content',
'affect_on_change_rule' => 'font-weight',
'section' => 'styling',
'tab' => 'Content',
'ext' => '',
'min' => 100,
'max' => 900,
'increment' => 100
),
array(
'label' => __( 'Font Family', 'dslc_string' ),
'id' => 'css_main_font_family',
'std' => 'Open Sans',
'type' => 'font',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-tp-content',
'affect_on_change_rule' => 'font-family',
'section' => 'styling',
'tab' => 'Content',
),
array(
'label' => __( 'Line Height', 'dslc_string' ),
'id' => 'css_main_line_height',
'std' => '22',
'type' => 'slider',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-tp-content',
'affect_on_change_rule' => 'line-height',
'section' => 'styling',
'tab' => 'Content',
'ext' => 'px'
),
array(
'label' => __( 'Text Align', 'dslc_string' ),
'id' => 'css_main_text_align',
'std' => 'left',
'type' => 'select',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-tp-content',
'affect_on_change_rule' => 'text-align',
'section' => 'styling',
'tab' => 'Content',
'choices' => array(
array(
'label' => __( 'Left', 'dslc_string' ),
'value' => 'left',
),
array(
'label' => __( 'Center', 'dslc_string' ),
'value' => 'center',
),
array(
'label' => __( 'Right', 'dslc_string' ),
'value' => 'right',
),
)
),
/**
* Heading 2
*/
array(
'label' => __( 'Color', 'dslc_string' ),
'id' => 'css_h2_color',
'std' => '',
'type' => 'color',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-tp-content h2',
'affect_on_change_rule' => 'color',
'section' => 'styling',
'tab' => 'H2'
),
array(
'label' => __( 'Font Size', 'dslc_string' ),
'id' => 'css_h2_font_size',
'std' => '13',
'type' => 'slider',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-tp-content h2',
'affect_on_change_rule' => 'font-size',
'section' => 'styling',
'tab' => 'H2',
'ext' => 'px'
),
array(
'label' => __( 'Font Weight', 'dslc_string' ),
'id' => 'css_h2_font_weight',
'std' => '400',
'type' => 'slider',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-tp-content h2',
'affect_on_change_rule' => 'font-weight',
'section' => 'styling',
'tab' => 'H2',
'ext' => '',
'min' => 100,
'max' => 900,
'increment' => 100
),
array(
'label' => __( 'Font Family', 'dslc_string' ),
'id' => 'css_h2_font_family',
'std' => 'Open Sans',
'type' => 'font',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-tp-content h2',
'affect_on_change_rule' => 'font-family',
'section' => 'styling',
'tab' => 'H2',
),
array(
'label' => __( 'Line Height', 'dslc_string' ),
'id' => 'css_h2_line_height',
'std' => '22',
'type' => 'slider',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-tp-content h2',
'affect_on_change_rule' => 'line-height',
'section' => 'styling',
'tab' => 'H2',
'ext' => 'px'
),
array(
'label' => __( 'Text Align', 'dslc_string' ),
'id' => 'css_h2_text_align',
'std' => 'left',
'type' => 'select',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-tp-content h2',
'affect_on_change_rule' => 'text-align',
'section' => 'styling',
'tab' => 'H2',
'choices' => array(
array(
'label' => __( 'Left', 'dslc_string' ),
'value' => 'left',
),
array(
'label' => __( 'Center', 'dslc_string' ),
'value' => 'center',
),
array(
'label' => __( 'Right', 'dslc_string' ),
'value' => 'right',
),
)
),
/**
* Heading 3
*/
array(
'label' => __( 'Color', 'dslc_string' ),
'id' => 'css_h3_color',
'std' => '',
'type' => 'color',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-tp-content h3',
'affect_on_change_rule' => 'color',
'section' => 'styling',
'tab' => 'H3'
),
array(
'label' => __( 'Font Size', 'dslc_string' ),
'id' => 'css_h3_font_size',
'std' => '13',
'type' => 'slider',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-tp-content h3',
'affect_on_change_rule' => 'font-size',
'section' => 'styling',
'tab' => 'H3',
'ext' => 'px'
),
array(
'label' => __( 'Font Weight', 'dslc_string' ),
'id' => 'css_h3_font_weight',
'std' => '400',
'type' => 'slider',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-tp-content h3',
'affect_on_change_rule' => 'font-weight',
'section' => 'styling',
'tab' => 'H3',
'ext' => '',
'min' => 100,
'max' => 900,
'increment' => 100
),
array(
'label' => __( 'Font Family', 'dslc_string' ),
'id' => 'css_h3_font_family',
'std' => 'Open Sans',
'type' => 'font',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-tp-content h3',
'affect_on_change_rule' => 'font-family',
'section' => 'styling',
'tab' => 'H3',
),
array(
'label' => __( 'Line Height', 'dslc_string' ),
'id' => 'css_h3_line_height',
'std' => '22',
'type' => 'slider',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-tp-content h3',
'affect_on_change_rule' => 'line-height',
'section' => 'styling',
'tab' => 'H3',
'ext' => 'px'
),
array(
'label' => __( 'Text Align', 'dslc_string' ),
'id' => 'css_h3_text_align',
'std' => 'left',
'type' => 'select',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-tp-content h3',
'affect_on_change_rule' => 'text-align',
'section' => 'styling',
'tab' => 'H3',
'choices' => array(
array(
'label' => __( 'Left', 'dslc_string' ),
'value' => 'left',
),
array(
'label' => __( 'Center', 'dslc_string' ),
'value' => 'center',
),
array(
'label' => __( 'Right', 'dslc_string' ),
'value' => 'right',
),
)
),
/**
* Heading 4
*/
array(
'label' => __( 'Color', 'dslc_string' ),
'id' => 'css_h4_color',
'std' => '',
'type' => 'color',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-tp-content h4',
'affect_on_change_rule' => 'color',
'section' => 'styling',
'tab' => 'h4'
),
array(
'label' => __( 'Font Size', 'dslc_string' ),
'id' => 'css_h4_font_size',
'std' => '13',
'type' => 'slider',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-tp-content h4',
'affect_on_change_rule' => 'font-size',
'section' => 'styling',
'tab' => 'h4',
'ext' => 'px'
),
array(
'label' => __( 'Font Weight', 'dslc_string' ),
'id' => 'css_h4_font_weight',
'std' => '400',
'type' => 'slider',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-tp-content h4',
'affect_on_change_rule' => 'font-weight',
'section' => 'styling',
'tab' => 'h4',
'ext' => '',
'min' => 100,
'max' => 900,
'increment' => 100
),
array(
'label' => __( 'Font Family', 'dslc_string' ),
'id' => 'css_h4_font_family',
'std' => 'Open Sans',
'type' => 'font',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-tp-content h4',
'affect_on_change_rule' => 'font-family',
'section' => 'styling',
'tab' => 'h4',
),
array(
'label' => __( 'Line Height', 'dslc_string' ),
'id' => 'css_h4_line_height',
'std' => '22',
'type' => 'slider',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-tp-content h4',
'affect_on_change_rule' => 'line-height',
'section' => 'styling',
'tab' => 'h4',
'ext' => 'px'
),
array(
'label' => __( 'Text Align', 'dslc_string' ),
'id' => 'css_h4_text_align',
'std' => 'left',
'type' => 'select',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-tp-content h4',
'affect_on_change_rule' => 'text-align',
'section' => 'styling',
'tab' => 'h4',
'choices' => array(
array(
'label' => __( 'Left', 'dslc_string' ),
'value' => 'left',
),
array(
'label' => __( 'Center', 'dslc_string' ),
'value' => 'center',
),
array(
'label' => __( 'Right', 'dslc_string' ),
'value' => 'right',
),
)
),
/**
* Heading 5
*/
array(
'label' => __( 'Color', 'dslc_string' ),
'id' => 'css_h5_color',
'std' => '',
'type' => 'color',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-tp-content h5',
'affect_on_change_rule' => 'color',
'section' => 'styling',
'tab' => 'h5'
),
array(
'label' => __( 'Font Size', 'dslc_string' ),
'id' => 'css_h5_font_size',
'std' => '13',
'type' => 'slider',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-tp-content h5',
'affect_on_change_rule' => 'font-size',
'section' => 'styling',
'tab' => 'h5',
'ext' => 'px'
),
array(
'label' => __( 'Font Weight', 'dslc_string' ),
'id' => 'css_h5_font_weight',
'std' => '400',
'type' => 'slider',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-tp-content h5',
'affect_on_change_rule' => 'font-weight',
'section' => 'styling',
'tab' => 'h5',
'ext' => '',
'min' => 100,
'max' => 900,
'increment' => 100
),
array(
'label' => __( 'Font Family', 'dslc_string' ),
'id' => 'css_h5_font_family',
'std' => 'Open Sans',
'type' => 'font',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-tp-content h5',
'affect_on_change_rule' => 'font-family',
'section' => 'styling',
'tab' => 'h5',
),
array(
'label' => __( 'Line Height', 'dslc_string' ),
'id' => 'css_h5_line_height',
'std' => '22',
'type' => 'slider',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-tp-content h5',
'affect_on_change_rule' => 'line-height',
'section' => 'styling',
'tab' => 'h5',
'ext' => 'px'
),
array(
'label' => __( 'Text Align', 'dslc_string' ),
'id' => 'css_h5_text_align',
'std' => 'left',
'type' => 'select',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-tp-content h5',
'affect_on_change_rule' => 'text-align',
'section' => 'styling',
'tab' => 'h5',
'choices' => array(
array(
'label' => __( 'Left', 'dslc_string' ),
'value' => 'left',
),
array(
'label' => __( 'Center', 'dslc_string' ),
'value' => 'center',
),
array(
'label' => __( 'Right', 'dslc_string' ),
'value' => 'right',
),
)
),
/**
* Heading 6
*/
array(
'label' => __( 'Color', 'dslc_string' ),
'id' => 'css_h6_color',
'std' => '',
'type' => 'color',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-tp-content h6',
'affect_on_change_rule' => 'color',
'section' => 'styling',
'tab' => 'h6'
),
array(
'label' => __( 'Font Size', 'dslc_string' ),
'id' => 'css_h6_font_size',
'std' => '13',
'type' => 'slider',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-tp-content h6',
'affect_on_change_rule' => 'font-size',
'section' => 'styling',
'tab' => 'h6',
'ext' => 'px'
),
array(
'label' => __( 'Font Weight', 'dslc_string' ),
'id' => 'css_h6_font_weight',
'std' => '400',
'type' => 'slider',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-tp-content h6',
'affect_on_change_rule' => 'font-weight',
'section' => 'styling',
'tab' => 'h6',
'ext' => '',
'min' => 100,
'max' => 900,
'increment' => 100
),
array(
'label' => __( 'Font Family', 'dslc_string' ),
'id' => 'css_h6_font_family',
'std' => 'Open Sans',
'type' => 'font',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-tp-content h6',
'affect_on_change_rule' => 'font-family',
'section' => 'styling',
'tab' => 'h6',
),
array(
'label' => __( 'Line Height', 'dslc_string' ),
'id' => 'css_h6_line_height',
'std' => '22',
'type' => 'slider',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-tp-content h6',
'affect_on_change_rule' => 'line-height',
'section' => 'styling',
'tab' => 'h6',
'ext' => 'px'
),
array(
'label' => __( 'Text Align', 'dslc_string' ),
'id' => 'css_h6_text_align',
'std' => 'left',
'type' => 'select',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-tp-content h6',
'affect_on_change_rule' => 'text-align',
'section' => 'styling',
'tab' => 'h6',
'choices' => array(
array(
'label' => __( 'Left', 'dslc_string' ),
'value' => 'left',
),
array(
'label' => __( 'Center', 'dslc_string' ),
'value' => 'center',
),
array(
'label' => __( 'Right', 'dslc_string' ),
'value' => 'right',
),
)
),
/**
* Links
*/
array(
'label' => __( 'Link Color', 'dslc_string' ),
'id' => 'css_link_color',
'std' => '',
'type' => 'color',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-tp-content a',
'affect_on_change_rule' => 'color',
'section' => 'styling',
'tab' => 'links'
),
array(
'label' => __( 'Link - Hover Color', 'dslc_string' ),
'id' => 'css_link_color_hover',
'std' => '',
'type' => 'color',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-tp-content a:hover',
'affect_on_change_rule' => 'color',
'section' => 'styling',
'tab' => 'links'
),
/**
* 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-tp-content',
'affect_on_change_rule' => 'margin-bottom',
'section' => 'responsive',
'tab' => 'tablet',
'ext' => 'px',
),
array(
'label' => __( 'Padding Vertical', 'dslc_string' ),
'id' => 'css_res_t_main_padding_vertical',
'std' => '0',
'type' => 'slider',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-tp-content',
'affect_on_change_rule' => 'padding-top,padding-bottom',
'section' => 'responsive',
'tab' => 'tablet',
'ext' => 'px',
),
array(
'label' => __( 'Padding Horizontal', 'dslc_string' ),
'id' => 'css_res_t_main_padding_horizontal',
'std' => '0',
'type' => 'slider',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-tp-content',
'affect_on_change_rule' => 'padding-left,padding-right',
'section' => 'responsive',
'tab' => 'tablet',
'ext' => 'px',
),
array(
'label' => __( 'Font Size', 'dslc_string' ),
'id' => 'css_res_t_main_font_size',
'std' => '13',
'type' => 'slider',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-tp-content',
'affect_on_change_rule' => 'font-size',
'section' => 'responsive',
'tab' => 'tablet',
'ext' => 'px'
),
array(
'label' => __( 'Line Height', 'dslc_string' ),
'id' => 'css_res_t_main_line_height',
'std' => '22',
'type' => 'slider',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-tp-content',
'affect_on_change_rule' => 'line-height',
'section' => 'responsive',
'tab' => 'tablet',
'ext' => 'px'
),
array(
'label' => __( 'H2 - Font Size', 'dslc_string' ),
'id' => 'css_res_t_h2_font_size',
'std' => '13',
'type' => 'slider',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-tp-content h2',
'affect_on_change_rule' => 'font-size',
'section' => 'responsive',
'tab' => 'tablet',
'ext' => 'px'
),
array(
'label' => __( 'H2 - Line Height', 'dslc_string' ),
'id' => 'css_res_t_h2_line_height',
'std' => '22',
'type' => 'slider',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-tp-content h2',
'affect_on_change_rule' => 'line-height',
'section' => 'responsive',
'tab' => 'tablet',
'ext' => 'px'
),
array(
'label' => __( 'H3 - Font Size', 'dslc_string' ),
'id' => 'css_res_t_h3_font_size',
'std' => '13',
'type' => 'slider',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-tp-content h3',
'affect_on_change_rule' => 'font-size',
'section' => 'responsive',
'tab' => 'tablet',
'ext' => 'px'
),
array(
'label' => __( 'H3 - Line Height', 'dslc_string' ),
'id' => 'css_res_t_h3_line_height',
'std' => '22',
'type' => 'slider',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-tp-content h3',
'affect_on_change_rule' => 'line-height',
'section' => 'responsive',
'tab' => 'tablet',
'ext' => 'px'
),
array(
'label' => __( 'H4 - Font Size', 'dslc_string' ),
'id' => 'css_res_t_h4_font_size',
'std' => '13',
'type' => 'slider',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-tp-content h4',
'affect_on_change_rule' => 'font-size',
'section' => 'responsive',
'tab' => 'tablet',
'ext' => 'px'
),
array(
'label' => __( 'H4 - Line Height', 'dslc_string' ),
'id' => 'css_res_t_h4_line_height',
'std' => '22',
'type' => 'slider',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-tp-content h4',
'affect_on_change_rule' => 'line-height',
'section' => 'responsive',
'tab' => 'tablet',
'ext' => 'px'
),
array(
'label' => __( 'H5 - Font Size', 'dslc_string' ),
'id' => 'css_res_t_h5_font_size',
'std' => '13',
'type' => 'slider',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-tp-content h5',
'affect_on_change_rule' => 'font-size',
'section' => 'responsive',
'tab' => 'tablet',
'ext' => 'px'
),
array(
'label' => __( 'H5 - Line Height', 'dslc_string' ),
'id' => 'css_res_t_h5_line_height',
'std' => '22',
'type' => 'slider',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-tp-content h5',
'affect_on_change_rule' => 'line-height',
'section' => 'responsive',
'tab' => 'tablet',
'ext' => 'px'
),
array(
'label' => __( 'H6 - Font Size', 'dslc_string' ),
'id' => 'css_res_t_h6_font_size',
'std' => '13',
'type' => 'slider',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-tp-content h6',
'affect_on_change_rule' => 'font-size',
'section' => 'responsive',
'tab' => 'tablet',
'ext' => 'px'
),
array(
'label' => __( 'H6 - Line Height', 'dslc_string' ),
'id' => 'css_res_t_h6_line_height',
'std' => '22',
'type' => 'slider',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-tp-content h6',
'affect_on_change_rule' => 'line-height',
'section' => 'responsive',
'tab' => 'tablet',
'ext' => 'px'
),
/**
* 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-tp-content',
'affect_on_change_rule' => 'margin-bottom',
'section' => 'responsive',
'tab' => 'phone',
'ext' => 'px',
),
array(
'label' => __( 'Padding Vertical', 'dslc_string' ),
'id' => 'css_res_p_main_padding_vertical',
'std' => '0',
'type' => 'slider',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-tp-content',
'affect_on_change_rule' => 'padding-top,padding-bottom',
'section' => 'responsive',
'tab' => 'phone',
'ext' => 'px',
),
array(
'label' => __( 'Padding Horizontal', 'dslc_string' ),
'id' => 'css_res_p_main_padding_horizontal',
'std' => '0',
'type' => 'slider',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-tp-content',
'affect_on_change_rule' => 'padding-left,padding-right',
'section' => 'responsive',
'tab' => 'phone',
'ext' => 'px',
),
array(
'label' => __( 'Font Size', 'dslc_string' ),
'id' => 'css_res_p_main_font_size',
'std' => '13',
'type' => 'slider',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-tp-content',
'affect_on_change_rule' => 'font-size',
'section' => 'responsive',
'tab' => 'phone',
'ext' => 'px'
),
array(
'label' => __( 'Line Height', 'dslc_string' ),
'id' => 'css_res_p_main_line_height',
'std' => '22',
'type' => 'slider',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-tp-content',
'affect_on_change_rule' => 'line-height',
'section' => 'responsive',
'tab' => 'phone',
'ext' => 'px'
),
array(
'label' => __( 'H2 - Font Size', 'dslc_string' ),
'id' => 'css_res_p_h2_font_size',
'std' => '13',
'type' => 'slider',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-tp-content h2',
'affect_on_change_rule' => 'font-size',
'section' => 'responsive',
'tab' => 'phone',
'ext' => 'px'
),
array(
'label' => __( 'H2 - Line Height', 'dslc_string' ),
'id' => 'css_res_p_h2_line_height',
'std' => '22',
'type' => 'slider',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-tp-content h2',
'affect_on_change_rule' => 'line-height',
'section' => 'responsive',
'tab' => 'phone',
'ext' => 'px'
),
array(
'label' => __( 'H3 - Font Size', 'dslc_string' ),
'id' => 'css_res_p_h3_font_size',
'std' => '13',
'type' => 'slider',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-tp-content h3',
'affect_on_change_rule' => 'font-size',
'section' => 'responsive',
'tab' => 'phone',
'ext' => 'px'
),
array(
'label' => __( 'H3 - Line Height', 'dslc_string' ),
'id' => 'css_res_p_h3_line_height',
'std' => '22',
'type' => 'slider',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-tp-content h3',
'affect_on_change_rule' => 'line-height',
'section' => 'responsive',
'tab' => 'phone',
'ext' => 'px'
),
array(
'label' => __( 'H4 - Font Size', 'dslc_string' ),
'id' => 'css_res_p_h4_font_size',
'std' => '13',
'type' => 'slider',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-tp-content h4',
'affect_on_change_rule' => 'font-size',
'section' => 'responsive',
'tab' => 'phone',
'ext' => 'px'
),
array(
'label' => __( 'H4 - Line Height', 'dslc_string' ),
'id' => 'css_res_p_h4_line_height',
'std' => '22',
'type' => 'slider',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-tp-content h4',
'affect_on_change_rule' => 'line-height',
'section' => 'responsive',
'tab' => 'phone',
'ext' => 'px'
),
array(
'label' => __( 'H5 - Font Size', 'dslc_string' ),
'id' => 'css_res_p_h5_font_size',
'std' => '13',
'type' => 'slider',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-tp-content h5',
'affect_on_change_rule' => 'font-size',
'section' => 'responsive',
'tab' => 'phone',
'ext' => 'px'
),
array(
'label' => __( 'H5 - Line Height', 'dslc_string' ),
'id' => 'css_res_p_h5_line_height',
'std' => '22',
'type' => 'slider',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-tp-content h5',
'affect_on_change_rule' => 'line-height',
'section' => 'responsive',
'tab' => 'phone',
'ext' => 'px'
),
array(
'label' => __( 'H6 - Font Size', 'dslc_string' ),
'id' => 'css_res_p_h6_font_size',
'std' => '13',
'type' => 'slider',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-tp-content h6',
'affect_on_change_rule' => 'font-size',
'section' => 'responsive',
'tab' => 'phone',
'ext' => 'px'
),
array(
'label' => __( 'H6 - Line Height', 'dslc_string' ),
'id' => 'css_res_p_h6_line_height',
'std' => '22',
'type' => 'slider',
'refresh_on_change' => false,
'affect_on_change_el' => '.dslc-tp-content h6',
'affect_on_change_rule' => 'line-height',
'section' => 'responsive',
'tab' => 'phone',
'ext' => 'px'
),
);
return apply_filters( 'dslc_module_options', $dslc_options, $this->module_id );
}
function output( $options ) {
global $dslc_active;
$post_id = $options['post_id'];
if ( is_singular() ) {
$post_id = get_the_ID();
}
$this->module_start( $options );
/* Module output starts here */
$content_post = get_post( $post_id );
$content = $content_post->post_content;
if ( get_post_type( $post_id ) == 'dslc_templates' ) {
$content = '<p>This is palceholder text. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>';
$content .= '<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>';
}
?><div class="dslc-tp-content"><?php
if ( is_singular() && get_post_type( $post_id ) != 'dslc_templates' )
the_content();
else
echo $content;
?></div><?php
/* Module output ends here */
$this->module_end( $options );
}
}