Archived
1018 lines
31 KiB
PHP
1018 lines
31 KiB
PHP
<?php
|
|
|
|
class DSLC_TP_Comments_Form extends DSLC_Module {
|
|
|
|
var $module_id = 'DSLC_TP_Comments_Form';
|
|
var $module_title = 'Comment Form';
|
|
var $module_icon = 'comment';
|
|
var $module_category = 'single';
|
|
|
|
function options() {
|
|
|
|
$dslc_options = array(
|
|
|
|
/**
|
|
* General
|
|
*/
|
|
|
|
array(
|
|
'label' => __( 'BG Color', 'dslc_string' ),
|
|
'id' => 'css_bg_color',
|
|
'std' => '',
|
|
'type' => 'color',
|
|
'refresh_on_change' => false,
|
|
'affect_on_change_el' => '.dslc-tp-comment-form',
|
|
'affect_on_change_rule' => 'background-color',
|
|
'section' => 'styling',
|
|
),
|
|
array(
|
|
'label' => __( 'Border Color', 'dslc_string' ),
|
|
'id' => 'css_border_color',
|
|
'std' => '',
|
|
'type' => 'color',
|
|
'refresh_on_change' => false,
|
|
'affect_on_change_el' => '.dslc-tp-comment-form',
|
|
'affect_on_change_rule' => 'border-color',
|
|
'section' => 'styling',
|
|
),
|
|
array(
|
|
'label' => __( 'Border Width', 'dslc_string' ),
|
|
'id' => 'css_border_width',
|
|
'std' => '0',
|
|
'type' => 'slider',
|
|
'refresh_on_change' => false,
|
|
'affect_on_change_el' => '.dslc-tp-comment-form',
|
|
'affect_on_change_rule' => 'border-width',
|
|
'section' => 'styling',
|
|
'ext' => 'px',
|
|
),
|
|
array(
|
|
'label' => __( 'Borders', 'dslc_string' ),
|
|
'id' => 'css_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-comment-form',
|
|
'affect_on_change_rule' => 'border-style',
|
|
'section' => 'styling',
|
|
),
|
|
array(
|
|
'label' => __( 'Border Radius', 'dslc_string' ),
|
|
'id' => 'css_border_radius',
|
|
'std' => '0',
|
|
'type' => 'slider',
|
|
'refresh_on_change' => false,
|
|
'affect_on_change_el' => '.dslc-tp-comment-form',
|
|
'affect_on_change_rule' => 'border-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-comment-form',
|
|
'affect_on_change_rule' => 'margin-bottom',
|
|
'section' => 'styling',
|
|
'ext' => 'px',
|
|
),
|
|
array(
|
|
'label' => __( 'Padding Vertical', 'dslc_string' ),
|
|
'id' => 'css_padding_vertical',
|
|
'std' => '0',
|
|
'type' => 'slider',
|
|
'refresh_on_change' => false,
|
|
'affect_on_change_el' => '.dslc-tp-comment-form',
|
|
'affect_on_change_rule' => 'padding-top,padding-bottom',
|
|
'section' => 'styling',
|
|
'ext' => 'px'
|
|
),
|
|
array(
|
|
'label' => __( 'Padding Horizontal', 'dslc_string' ),
|
|
'id' => 'css_padding_horizontal',
|
|
'std' => '0',
|
|
'type' => 'slider',
|
|
'refresh_on_change' => false,
|
|
'affect_on_change_el' => '.dslc-tp-comment-form',
|
|
'affect_on_change_rule' => 'padding-left,padding-right',
|
|
'section' => 'styling',
|
|
'ext' => 'px'
|
|
),
|
|
|
|
/**
|
|
* Heading
|
|
*/
|
|
|
|
array(
|
|
'label' => __( 'Color', 'dslc_string' ),
|
|
'id' => 'css_heading_color',
|
|
'std' => '#4d4d4d',
|
|
'type' => 'color',
|
|
'refresh_on_change' => false,
|
|
'affect_on_change_el' => '#reply-title',
|
|
'affect_on_change_rule' => 'color',
|
|
'section' => 'styling',
|
|
'tab' => 'Title'
|
|
),
|
|
array(
|
|
'label' => __( 'Font Size', 'dslc_string' ),
|
|
'id' => 'css_heading_font_size',
|
|
'std' => '18',
|
|
'type' => 'slider',
|
|
'refresh_on_change' => false,
|
|
'affect_on_change_el' => '#reply-title',
|
|
'affect_on_change_rule' => 'font-size',
|
|
'section' => 'styling',
|
|
'tab' => 'Title',
|
|
'ext' => 'px'
|
|
),
|
|
array(
|
|
'label' => __( 'Font Weight', 'dslc_string' ),
|
|
'id' => 'css_heading_font_weight',
|
|
'std' => '600',
|
|
'type' => 'slider',
|
|
'refresh_on_change' => false,
|
|
'affect_on_change_el' => '#reply-title',
|
|
'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_heading_font_family',
|
|
'std' => 'Open Sans',
|
|
'type' => 'font',
|
|
'refresh_on_change' => false,
|
|
'affect_on_change_el' => '#reply-title',
|
|
'affect_on_change_rule' => 'font-family',
|
|
'section' => 'styling',
|
|
'tab' => 'Title',
|
|
),
|
|
array(
|
|
'label' => __( 'Line Height', 'dslc_string' ),
|
|
'id' => 'css_heading_line_height',
|
|
'std' => '18',
|
|
'type' => 'slider',
|
|
'refresh_on_change' => false,
|
|
'affect_on_change_el' => '#reply-title',
|
|
'affect_on_change_rule' => 'line-height',
|
|
'section' => 'styling',
|
|
'tab' => 'Title',
|
|
'ext' => 'px'
|
|
),
|
|
array(
|
|
'label' => __( 'Margin Bottom', 'dslc_string' ),
|
|
'id' => 'css_heading_margin',
|
|
'std' => '30',
|
|
'type' => 'slider',
|
|
'refresh_on_change' => false,
|
|
'affect_on_change_el' => '#reply-title',
|
|
'affect_on_change_rule' => 'margin-bottom',
|
|
'section' => 'styling',
|
|
'tab' => 'Title',
|
|
'ext' => 'px'
|
|
),
|
|
|
|
/**
|
|
* Inputs
|
|
*/
|
|
|
|
array(
|
|
'label' => __( 'BG Color', 'dslc_string' ),
|
|
'id' => 'css_inputs_bg_color',
|
|
'std' => '#fff',
|
|
'type' => 'color',
|
|
'refresh_on_change' => false,
|
|
'affect_on_change_el' => '.dslc-tp-comment-form input[type=text],.dslc-tp-comment-form textarea',
|
|
'affect_on_change_rule' => 'background-color',
|
|
'section' => 'styling',
|
|
'tab' => 'inputs',
|
|
),
|
|
array(
|
|
'label' => __( 'Border Color', 'dslc_string' ),
|
|
'id' => 'css_inputs_border_color',
|
|
'std' => '#ddd',
|
|
'type' => 'color',
|
|
'refresh_on_change' => false,
|
|
'affect_on_change_el' => '.dslc-tp-comment-form input[type=text],.dslc-tp-comment-form textarea',
|
|
'affect_on_change_rule' => 'border-color',
|
|
'section' => 'styling',
|
|
'tab' => 'inputs',
|
|
),
|
|
array(
|
|
'label' => __( 'Border Width', 'dslc_string' ),
|
|
'id' => 'css_inputs_border_width',
|
|
'std' => '1',
|
|
'type' => 'slider',
|
|
'refresh_on_change' => false,
|
|
'affect_on_change_el' => '.dslc-tp-comment-form input[type=text],.dslc-tp-comment-form textarea',
|
|
'affect_on_change_rule' => 'border-width',
|
|
'section' => 'styling',
|
|
'ext' => 'px',
|
|
'tab' => 'inputs',
|
|
),
|
|
array(
|
|
'label' => __( 'Borders', 'dslc_string' ),
|
|
'id' => 'css_inputs_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-comment-form input[type=text],.dslc-tp-comment-form textarea',
|
|
'affect_on_change_rule' => 'border-style',
|
|
'section' => 'styling',
|
|
'tab' => 'inputs',
|
|
),
|
|
array(
|
|
'label' => __( 'Border Radius', 'dslc_string' ),
|
|
'id' => 'css_inputs_border_radius',
|
|
'std' => '0',
|
|
'type' => 'slider',
|
|
'refresh_on_change' => false,
|
|
'affect_on_change_el' => '.dslc-tp-comment-form input[type=text],.dslc-tp-comment-form textarea',
|
|
'affect_on_change_rule' => 'border-radius',
|
|
'section' => 'styling',
|
|
'ext' => 'px',
|
|
'tab' => 'inputs',
|
|
),
|
|
array(
|
|
'label' => __( 'Color', 'dslc_string' ),
|
|
'id' => 'css_inputs_color',
|
|
'std' => '#4d4d4d',
|
|
'type' => 'color',
|
|
'refresh_on_change' => false,
|
|
'affect_on_change_el' => '.dslc-tp-comment-form input[type=text],.dslc-tp-comment-form textarea',
|
|
'affect_on_change_rule' => 'color',
|
|
'section' => 'styling',
|
|
'tab' => 'inputs'
|
|
),
|
|
array(
|
|
'label' => __( 'Font Size', 'dslc_string' ),
|
|
'id' => 'css_inputs_font_size',
|
|
'std' => '13',
|
|
'type' => 'slider',
|
|
'refresh_on_change' => false,
|
|
'affect_on_change_el' => '.dslc-tp-comment-form input[type=text],.dslc-tp-comment-form textarea',
|
|
'affect_on_change_rule' => 'font-size',
|
|
'section' => 'styling',
|
|
'tab' => 'inputs',
|
|
'ext' => 'px'
|
|
),
|
|
array(
|
|
'label' => __( 'Font Weight', 'dslc_string' ),
|
|
'id' => 'css_inputs_font_weight',
|
|
'std' => '500',
|
|
'type' => 'slider',
|
|
'refresh_on_change' => false,
|
|
'affect_on_change_el' => '.dslc-tp-comment-form input[type=text],.dslc-tp-comment-form textarea',
|
|
'affect_on_change_rule' => 'font-weight',
|
|
'section' => 'styling',
|
|
'tab' => 'inputs',
|
|
'ext' => '',
|
|
'min' => 100,
|
|
'max' => 900,
|
|
'increment' => 100
|
|
),
|
|
array(
|
|
'label' => __( 'Font Family', 'dslc_string' ),
|
|
'id' => 'css_inputs_font_family',
|
|
'std' => 'Open Sans',
|
|
'type' => 'font',
|
|
'refresh_on_change' => false,
|
|
'affect_on_change_el' => '.dslc-tp-comment-form input[type=text],.dslc-tp-comment-form textarea',
|
|
'affect_on_change_rule' => 'font-family',
|
|
'section' => 'styling',
|
|
'tab' => 'inputs',
|
|
),
|
|
array(
|
|
'label' => __( 'Line Height', 'dslc_string' ),
|
|
'id' => 'css_inputs_line_height',
|
|
'std' => '23',
|
|
'type' => 'slider',
|
|
'refresh_on_change' => false,
|
|
'affect_on_change_el' => '.dslc-tp-comment-form textarea',
|
|
'affect_on_change_rule' => 'line-height',
|
|
'section' => 'styling',
|
|
'tab' => 'inputs',
|
|
'ext' => 'px'
|
|
),
|
|
array(
|
|
'label' => __( 'Margin Bottom', 'dslc_string' ),
|
|
'id' => 'css_inputs_margin_bottom',
|
|
'std' => '15',
|
|
'type' => 'slider',
|
|
'refresh_on_change' => false,
|
|
'affect_on_change_el' => '.dslc-tp-comment-form input[type=text],.dslc-tp-comment-form textarea',
|
|
'affect_on_change_rule' => 'margin-bottom',
|
|
'section' => 'styling',
|
|
'ext' => 'px',
|
|
'tab' => 'inputs',
|
|
),
|
|
array(
|
|
'label' => __( 'Padding Vertical', 'dslc_string' ),
|
|
'id' => 'css_inputs_padding_vertical',
|
|
'std' => '10',
|
|
'type' => 'slider',
|
|
'refresh_on_change' => false,
|
|
'affect_on_change_el' => '.dslc-tp-comment-form input[type=text],.dslc-tp-comment-form textarea',
|
|
'affect_on_change_rule' => 'padding-top,padding-bottom',
|
|
'section' => 'styling',
|
|
'ext' => 'px',
|
|
'tab' => 'inputs',
|
|
),
|
|
array(
|
|
'label' => __( 'Padding Horizontal', 'dslc_string' ),
|
|
'id' => 'css_inputs_padding_horizontal',
|
|
'std' => '15',
|
|
'type' => 'slider',
|
|
'refresh_on_change' => false,
|
|
'affect_on_change_el' => '.dslc-tp-comment-form input[type=text],.dslc-tp-comment-form textarea',
|
|
'affect_on_change_rule' => 'padding-left,padding-right',
|
|
'section' => 'styling',
|
|
'ext' => 'px',
|
|
'tab' => 'inputs',
|
|
),
|
|
|
|
/**
|
|
* Submit Button
|
|
*/
|
|
|
|
array(
|
|
'label' => __( 'BG Color', 'dslc_string' ),
|
|
'id' => 'css_button_bg_color',
|
|
'std' => '#5890e5',
|
|
'type' => 'color',
|
|
'refresh_on_change' => false,
|
|
'affect_on_change_el' => 'input#submit',
|
|
'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' => 'input#submit: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' => 'input#submit',
|
|
'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' => 'input#submit',
|
|
'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' => 'input#submit',
|
|
'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' => 'input#submit: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' => 'input#submit',
|
|
'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' => 'input#submit',
|
|
'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' => 'input#submit: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' => 'input#submit',
|
|
'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' => 'input#submit',
|
|
'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' => 'input#submit',
|
|
'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' => 'input#submit',
|
|
'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' => 'input#submit',
|
|
'affect_on_change_rule' => 'padding-left,padding-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-tp-comment-form',
|
|
'affect_on_change_rule' => 'margin-bottom',
|
|
'section' => 'responsive',
|
|
'ext' => 'px',
|
|
'tab' => 'tablet',
|
|
),
|
|
array(
|
|
'label' => __( 'Padding Vertical', 'dslc_string' ),
|
|
'id' => 'css_res_t_padding_vertical',
|
|
'std' => '0',
|
|
'type' => 'slider',
|
|
'refresh_on_change' => false,
|
|
'affect_on_change_el' => '.dslc-tp-comment-form',
|
|
'affect_on_change_rule' => 'padding-top,padding-bottom',
|
|
'section' => 'responsive',
|
|
'ext' => 'px',
|
|
'tab' => 'tablet',
|
|
),
|
|
array(
|
|
'label' => __( 'Padding Horizontal', 'dslc_string' ),
|
|
'id' => 'css_res_t_padding_horizontal',
|
|
'std' => '0',
|
|
'type' => 'slider',
|
|
'refresh_on_change' => false,
|
|
'affect_on_change_el' => '.dslc-tp-comment-form',
|
|
'affect_on_change_rule' => 'padding-left,padding-right',
|
|
'section' => 'responsive',
|
|
'ext' => 'px',
|
|
'tab' => 'tablet',
|
|
),
|
|
array(
|
|
'label' => __( 'Heading - Font Size', 'dslc_string' ),
|
|
'id' => 'css_res_t_heading_font_size',
|
|
'std' => '18',
|
|
'type' => 'slider',
|
|
'refresh_on_change' => false,
|
|
'affect_on_change_el' => '#reply-title',
|
|
'affect_on_change_rule' => 'font-size',
|
|
'section' => 'responsive',
|
|
'tab' => 'tablet',
|
|
'ext' => 'px'
|
|
),
|
|
array(
|
|
'label' => __( 'Heading - Line Height', 'dslc_string' ),
|
|
'id' => 'css_res_t_heading_line_height',
|
|
'std' => '18',
|
|
'type' => 'slider',
|
|
'refresh_on_change' => false,
|
|
'affect_on_change_el' => '#reply-title',
|
|
'affect_on_change_rule' => 'line-height',
|
|
'section' => 'responsive',
|
|
'tab' => 'tablet',
|
|
'ext' => 'px'
|
|
),
|
|
array(
|
|
'label' => __( 'Heading - Margin Bottom', 'dslc_string' ),
|
|
'id' => 'css_res_t_heading_margin',
|
|
'std' => '30',
|
|
'type' => 'slider',
|
|
'refresh_on_change' => false,
|
|
'affect_on_change_el' => '#reply-title',
|
|
'affect_on_change_rule' => 'margin-bottom',
|
|
'section' => 'responsive',
|
|
'tab' => 'tablet',
|
|
'ext' => 'px'
|
|
),
|
|
array(
|
|
'label' => __( 'Inputs - Font Size', 'dslc_string' ),
|
|
'id' => 'css_res_t_inputs_font_size',
|
|
'std' => '13',
|
|
'type' => 'slider',
|
|
'refresh_on_change' => false,
|
|
'affect_on_change_el' => '.dslc-tp-comment-form input[type=text],.dslc-tp-comment-form textarea',
|
|
'affect_on_change_rule' => 'font-size',
|
|
'section' => 'responsive',
|
|
'tab' => 'tablet',
|
|
'ext' => 'px'
|
|
),
|
|
array(
|
|
'label' => __( 'Inputs - Line Height', 'dslc_string' ),
|
|
'id' => 'css_res_t_inputs_line_height',
|
|
'std' => '23',
|
|
'type' => 'slider',
|
|
'refresh_on_change' => false,
|
|
'affect_on_change_el' => '.dslc-tp-comment-form textarea',
|
|
'affect_on_change_rule' => 'line-height',
|
|
'section' => 'responsive',
|
|
'tab' => 'tablet',
|
|
'ext' => 'px'
|
|
),
|
|
array(
|
|
'label' => __( 'Inputs - Margin Bottom', 'dslc_string' ),
|
|
'id' => 'css_res_t_inputs_margin_bottom',
|
|
'std' => '15',
|
|
'type' => 'slider',
|
|
'refresh_on_change' => false,
|
|
'affect_on_change_el' => '.dslc-tp-comment-form input[type=text],.dslc-tp-comment-form textarea',
|
|
'affect_on_change_rule' => 'margin-bottom',
|
|
'section' => 'responsive',
|
|
'ext' => 'px',
|
|
'tab' => 'tablet',
|
|
),
|
|
array(
|
|
'label' => __( 'Inputs - Padding Vertical', 'dslc_string' ),
|
|
'id' => 'css_res_t_inputs_padding_vertical',
|
|
'std' => '10',
|
|
'type' => 'slider',
|
|
'refresh_on_change' => false,
|
|
'affect_on_change_el' => '.dslc-tp-comment-form input[type=text],.dslc-tp-comment-form textarea',
|
|
'affect_on_change_rule' => 'padding-top,padding-bottom',
|
|
'section' => 'responsive',
|
|
'ext' => 'px',
|
|
'tab' => 'tablet',
|
|
),
|
|
array(
|
|
'label' => __( 'Inputs - Padding Horizontal', 'dslc_string' ),
|
|
'id' => 'css_res_t_inputs_padding_horizontal',
|
|
'std' => '15',
|
|
'type' => 'slider',
|
|
'refresh_on_change' => false,
|
|
'affect_on_change_el' => '.dslc-tp-comment-form input[type=text],.dslc-tp-comment-form textarea',
|
|
'affect_on_change_rule' => 'padding-left,padding-right',
|
|
'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' => 'input#submit',
|
|
'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' => 'input#submit',
|
|
'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' => 'input#submit',
|
|
'affect_on_change_rule' => 'padding-left,padding-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-tp-comment-form',
|
|
'affect_on_change_rule' => 'margin-bottom',
|
|
'section' => 'responsive',
|
|
'ext' => 'px',
|
|
'tab' => 'phone',
|
|
),
|
|
array(
|
|
'label' => __( 'Padding Vertical', 'dslc_string' ),
|
|
'id' => 'css_res_p_padding_vertical',
|
|
'std' => '0',
|
|
'type' => 'slider',
|
|
'refresh_on_change' => false,
|
|
'affect_on_change_el' => '.dslc-tp-comment-form',
|
|
'affect_on_change_rule' => 'padding-top,padding-bottom',
|
|
'section' => 'responsive',
|
|
'ext' => 'px',
|
|
'tab' => 'phone',
|
|
),
|
|
array(
|
|
'label' => __( 'Padding Horizontal', 'dslc_string' ),
|
|
'id' => 'css_res_p_padding_horizontal',
|
|
'std' => '0',
|
|
'type' => 'slider',
|
|
'refresh_on_change' => false,
|
|
'affect_on_change_el' => '.dslc-tp-comment-form',
|
|
'affect_on_change_rule' => 'padding-left,padding-right',
|
|
'section' => 'responsive',
|
|
'ext' => 'px',
|
|
'tab' => 'phone',
|
|
),
|
|
array(
|
|
'label' => __( 'Heading - Font Size', 'dslc_string' ),
|
|
'id' => 'css_res_p_heading_font_size',
|
|
'std' => '18',
|
|
'type' => 'slider',
|
|
'refresh_on_change' => false,
|
|
'affect_on_change_el' => '#reply-title',
|
|
'affect_on_change_rule' => 'font-size',
|
|
'section' => 'responsive',
|
|
'tab' => 'phone',
|
|
'ext' => 'px'
|
|
),
|
|
array(
|
|
'label' => __( 'Heading - Line Height', 'dslc_string' ),
|
|
'id' => 'css_res_p_heading_line_height',
|
|
'std' => '18',
|
|
'type' => 'slider',
|
|
'refresh_on_change' => false,
|
|
'affect_on_change_el' => '#reply-title',
|
|
'affect_on_change_rule' => 'line-height',
|
|
'section' => 'responsive',
|
|
'tab' => 'phone',
|
|
'ext' => 'px'
|
|
),
|
|
array(
|
|
'label' => __( 'Heading - Margin Bottom', 'dslc_string' ),
|
|
'id' => 'css_res_p_heading_margin',
|
|
'std' => '30',
|
|
'type' => 'slider',
|
|
'refresh_on_change' => false,
|
|
'affect_on_change_el' => '#reply-title',
|
|
'affect_on_change_rule' => 'margin-bottom',
|
|
'section' => 'responsive',
|
|
'tab' => 'phone',
|
|
'ext' => 'px'
|
|
),
|
|
array(
|
|
'label' => __( 'Inputs - Font Size', 'dslc_string' ),
|
|
'id' => 'css_res_p_inputs_font_size',
|
|
'std' => '13',
|
|
'type' => 'slider',
|
|
'refresh_on_change' => false,
|
|
'affect_on_change_el' => '.dslc-tp-comment-form input[type=text],.dslc-tp-comment-form textarea',
|
|
'affect_on_change_rule' => 'font-size',
|
|
'section' => 'responsive',
|
|
'tab' => 'phone',
|
|
'ext' => 'px'
|
|
),
|
|
array(
|
|
'label' => __( 'Inputs - Line Height', 'dslc_string' ),
|
|
'id' => 'css_res_p_inputs_line_height',
|
|
'std' => '23',
|
|
'type' => 'slider',
|
|
'refresh_on_change' => false,
|
|
'affect_on_change_el' => '.dslc-tp-comment-form textarea',
|
|
'affect_on_change_rule' => 'line-height',
|
|
'section' => 'responsive',
|
|
'tab' => 'phone',
|
|
'ext' => 'px'
|
|
),
|
|
array(
|
|
'label' => __( 'Inputs - Margin Bottom', 'dslc_string' ),
|
|
'id' => 'css_res_p_inputs_margin_bottom',
|
|
'std' => '15',
|
|
'type' => 'slider',
|
|
'refresh_on_change' => false,
|
|
'affect_on_change_el' => '.dslc-tp-comment-form input[type=text],.dslc-tp-comment-form textarea',
|
|
'affect_on_change_rule' => 'margin-bottom',
|
|
'section' => 'responsive',
|
|
'ext' => 'px',
|
|
'tab' => 'phone',
|
|
),
|
|
array(
|
|
'label' => __( 'Inputs - Padding Vertical', 'dslc_string' ),
|
|
'id' => 'css_res_p_inputs_padding_vertical',
|
|
'std' => '10',
|
|
'type' => 'slider',
|
|
'refresh_on_change' => false,
|
|
'affect_on_change_el' => '.dslc-tp-comment-form input[type=text],.dslc-tp-comment-form textarea',
|
|
'affect_on_change_rule' => 'padding-top,padding-bottom',
|
|
'section' => 'responsive',
|
|
'ext' => 'px',
|
|
'tab' => 'phone',
|
|
),
|
|
array(
|
|
'label' => __( 'Inputs - Padding Horizontal', 'dslc_string' ),
|
|
'id' => 'css_res_p_inputs_padding_horizontal',
|
|
'std' => '15',
|
|
'type' => 'slider',
|
|
'refresh_on_change' => false,
|
|
'affect_on_change_el' => '.dslc-tp-comment-form input[type=text],.dslc-tp-comment-form textarea',
|
|
'affect_on_change_rule' => 'padding-left,padding-right',
|
|
'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' => 'input#submit',
|
|
'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' => 'input#submit',
|
|
'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' => 'input#submit',
|
|
'affect_on_change_rule' => 'padding-left,padding-right',
|
|
'section' => 'responsive',
|
|
'ext' => 'px',
|
|
'tab' => 'phone'
|
|
),
|
|
|
|
);
|
|
|
|
return apply_filters( 'dslc_module_options', $dslc_options, $this->module_id );
|
|
|
|
}
|
|
|
|
function output( $options ) {
|
|
|
|
global $dslc_active;
|
|
|
|
$post_id = $options['post_id'];
|
|
$show_fake = true;
|
|
|
|
if ( is_singular() && get_post_type() !== 'dslc_templates' ) {
|
|
$post_id = get_the_ID();
|
|
$show_fake = false;
|
|
}
|
|
|
|
$this->module_start( $options );
|
|
|
|
/* Module output starts here */
|
|
|
|
?>
|
|
|
|
<div class="dslc-tp-comment-form">
|
|
|
|
<?php if ( $show_fake ) : ?>
|
|
|
|
<div id="respond" class="comment-respond">
|
|
<h3 id="reply-title" class="comment-reply-title">Leave a Comment</h3>
|
|
<form action="http://localhost/livecomposer/wp-comments-post.php" method="post" id="commentform" class="comment-form" onsubmit="return(false)">
|
|
<div class="comment-form-name"><input id="author" name="author" type=text value="John Doe" size="30" placeholder="Name *" aria-required="true"></div>
|
|
<div class="comment-form-email"><input id="email" name="email" type=text value="johndoe@gmail.com" size="30" placeholder="Email *" aria-required="true"></div>
|
|
<div class="comment-form-website"><input id="url" name="url" type=text value="http://johndoe.com" size="30" placeholder="Website"></div>
|
|
<div class="comment-form-comment"><textarea id="comment" name="comment" placeholder="Comment" aria-required="true">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmodtempor 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.</textarea></div>
|
|
<p class="form-submit">
|
|
<input name="submit" type="submit" id="submit" value="SUBMIT YOUR COMMENT">
|
|
<input type="hidden" name="comment_post_ID" value="14" id="comment_post_ID">
|
|
<input type="hidden" name="comment_parent" id="comment_parent" value="0">
|
|
</p>
|
|
</form>
|
|
</div><!-- #respond -->
|
|
|
|
<?php else :
|
|
|
|
global $commenter;
|
|
comment_form( array(
|
|
'label_submit' => ___( 'SUBMIT YOUR COMMENT', 'dslc_string' ),
|
|
'cancel_reply_link' => 'cancel',
|
|
'comment_notes_before' => '',
|
|
'comment_notes_after' => '',
|
|
'title_reply' => ___( 'Leave a Comment', 'dslc_string' ),
|
|
'title_reply_to' => ___( 'Reply to %s.', 'dslc_string'),
|
|
'comment_field' => '<div class="comment-form-comment"><textarea id="comment" name="comment" placeholder="' . ___( 'Comment', 'dslc_string' ) . '" aria-required="true"></textarea></div>',
|
|
'fields' => apply_filters( 'comment_form_default_fields', array(
|
|
'author' => '<div class="comment-form-name"><input id="author" name="author" type=text value="' . esc_attr( $commenter['comment_author'] ) . '" size="30" placeholder="' . ___( 'Name', 'dslc_string' ) . ' *" aria-required="true" /></div>',
|
|
'email' => '<div class="comment-form-email"><input id="email" name="email" type=text value="' . esc_attr( $commenter['comment_author_email'] ) . '" size="30" placeholder="' . ___( 'Email', 'dslc_string' ) . ' *" aria-required="true" /></div>',
|
|
'url' => '<div class="comment-form-website"><input id="url" name="url" type=text value="' . esc_attr( $commenter['comment_author_url'] ) . '" size="30" placeholder="' . ___( 'Website', 'dslc_string' ) . '" /></div>'
|
|
)),
|
|
), $post_id);
|
|
|
|
endif; ?>
|
|
|
|
</div><!-- dslc-tp-comment-form -->
|
|
|
|
<?php
|
|
|
|
/* Module output ends here */
|
|
|
|
$this->module_end( $options );
|
|
|
|
}
|
|
|
|
}
|