Ejemplo n.º 1
0
/**
 * Live Composer Compatibility File
 *
 * @package West
 */
function west_lc_defaults($options, $id)
{
    // The array that will hold new defaults
    $new_defaults = array();
    if ($id == 'DSLC_Info_Box') {
        $new_defaults = array('elements' => 'icon title content ', 'css_bg_color' => 'rgba(0, 0, 0, 0)', 'css_border_color' => 'rgba(0, 0, 0, 0)', 'css_padding_vertical' => '15', 'css_padding_horizontal' => '15', 'css_wrapper_bg_color' => 'transparent', 'css_icon_bg_color' => 'rgb(234, 171, 28)', 'css_icon_border_color' => 'rgb(234, 171, 28)', 'css_icon_color' => 'rgb(255, 255, 255)', 'icon_id' => 'connectdevelop', 'css_icon_margin_bottom' => '30', 'css_icon_wrapper_width' => '100', 'css_icon_width' => '34', 'css_title_font_size' => '20', 'css_title_font_family' => 'Montserrat', 'css_title_line_height' => '26', 'css_title_margin' => '30', 'css_content_color' => 'rgb(150, 156, 179)', 'css_content_font_family' => 'Roboto', 'css_content_margin' => '0', 'css_button_bg_color' => 'rgb(234, 171, 28)', 'css_button_bg_color_hover' => 'rgba(224, 117, 75, 0.9)', 'css_button_font_size' => '14', 'css_button_font_weight' => '600', 'css_button_margin_top' => '30', 'button_icon_id' => 'cogs', 'css_button_icon_color' => 'rgb(215, 217, 220)', 'css_button_icon_margin' => '7', 'css_button_2_bg_color' => 'rgb(38, 173, 218)', 'css_button_2_bg_color_hover' => 'rgba(38, 173, 218, 0.9)', 'title' => 'DEVELOPMENT', 'content' => '<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean eleifend interdum lacus, eu consequat dolor convallis eu interdum lacus.</p>', 'button_title' => 'Read more', 'css_res_t' => 'enabled', 'css_res_p' => 'enabled', 'css_content_line_height' => '26');
    }
    if ($id == 'DSLC_Button') {
        $new_defaults = array('css_align' => 'center', 'css_bg_color' => 'rgb(234, 171, 28)', 'css_bg_color_hover' => 'rgba(234, 171, 28, 0.9)', 'css_border_color' => 'rgba(0, 0, 0, 0)', 'css_border_radius' => '0', 'css_padding_vertical' => '15', 'css_padding_horizontal' => '30', 'css_button_font_size' => '13', 'css_button_font_weight' => '700', 'css_button_font_family' => 'Roboto', 'button_state' => 'disabled');
    }
    if ($id == 'DSLC_Projects') {
        $new_defaults = array('elements' => 'filters ', 'post_elements' => 'thumbnail title ', 'separator_enabled' => 'disabled', 'css_thumbnail_border_radius_top' => '0', 'main_location' => 'inside', 'css_main_bg_color' => 'rgba(234, 171, 28, 0.6)', 'css_main_border_width' => '0', 'css_main_border_radius_bottom' => '0', 'css_main_padding_vertical' => '0', 'css_main_padding_horizontal' => '0', 'css_title_color' => 'rgb(255, 255, 255)', 'css_title_font_size' => '16', 'css_title_font_weight' => '600', 'css_title_line_height' => '16', 'css_title_margin_bottom' => '0', 'css_filter_bg_color_active' => 'rgb(234, 171, 28)', 'css_filter_border_color' => 'rgb(234, 171, 28)', 'css_filter_border_color_active' => 'rgb(234, 171, 28)', 'css_filter_border_width' => '2', 'css_filter_border_trbl' => 'top bottom ', 'css_filter_border_radius' => '0', 'css_filter_color' => 'rgb(150, 156, 179)', 'css_filter_font_size' => '13', 'css_filter_font_weight' => '400', 'css_filter_position' => 'center', 'css_filter_spacing' => '20', 'css_filter_margin_bottom' => '45', 'thumb_resize_width_manual' => '500px', 'css_anim_hover' => 'dslcSlideUpFadeIn', 'css_anim_speed' => '400');
    }
    if ($id == 'DSLC_Staff') {
        $new_defaults = array('link' => 'disabled', 'amount' => '3', 'columns' => '4', 'social_link_target' => '_blank', 'post_elements' => 'thumbnail social title position ', 'separator_enabled' => 'disabled', 'thumb_resize_width_manual' => '400px', 'css_social_bg_color' => 'rgba(234, 171, 28, 0.9)', 'css_social_border_color' => 'transparent', 'css_social_padding_vertical' => '10', 'css_social_font_size' => '18', 'css_main_border_width' => '0', 'css_title_font_size' => '20', 'css_title_font_family' => 'Montserrat', 'css_title_line_height' => '24', 'css_position_border_trbl' => 'top ', 'css_position_color' => 'rgb(150, 156, 179)', 'css_position_font_size' => '14', 'css_position_font_weight' => '400', 'css_position_font_family' => 'Roboto', 'css_position_padding_vertical' => '18', 'css_excerpt_color' => 'rgb(150, 156, 179)', 'css_excerpt_font_size' => '14', 'css_excerpt_font_family' => 'Roboto', 'css_res_t' => 'enabled', 'css_res_p' => 'enabled', 'css_filter_bg_color' => 'rgba(0, 0, 0, 0)', 'css_filter_bg_color_active' => 'rgb(224, 117, 75)', 'css_filter_border_color' => 'rgb(128, 128, 128)', 'css_filter_border_color_active' => 'rgb(224, 117, 75)', 'css_filter_border_trbl' => 'top bottom ', 'css_filter_border_radius' => '0', 'css_filter_margin_bottom' => '45', 'css_res_p_main_padding_vertical' => '15', 'css_res_p_position_margin_bottom' => '5');
    }
    if ($id == 'DSLC_Testimonials') {
        $new_defaults = array('type' => 'carousel', 'amount' => '2', 'columns' => '12', 'post_elements' => 'quote name position ', 'carousel_elements' => 'circles ', 'css_sep_height' => '0', 'css_sep_thickness' => '0', 'css_sep_style' => 'none', 'css_main_bg_color' => 'transparent', 'css_main_padding_vertical' => '0', 'css_main_padding_horizontal' => '100', 'css_quote_border_color' => 'rgb(225, 234, 239)', 'css_quote_border_width' => '2', 'css_quote_border_trbl' => 'bottom ', 'css_quote_color' => 'rgb(150, 156, 179)', 'css_quote_font_size' => '16', 'css_quote_font_weight' => '400', 'css_quote_font_family' => 'Roboto', 'css_quote_margin' => '30', 'css_quote_padding_bottom' => '30', 'css_author_margin_bottom' => '30', 'css_avatar_margin_right' => '21', 'css_avatar_size' => '100', 'css_name_color' => 'rgb(43, 45, 58)', 'css_name_font_size' => '18', 'css_name_font_family' => 'Montserrat', 'css_name_margin_bottom' => '15', 'css_name_margin_top' => '0', 'css_position_color' => 'rgb(208, 211, 214)', 'css_position_font_size' => '13', 'css_position_font_family' => 'Roboto', 'carousel_autoplay' => '5000', 'carousel_autoplay_hover' => 'true', 'css_arrows_bg_color' => 'rgb(234, 171, 28)', 'css_arrows_bg_color_hover' => 'rgba(234, 171, 28, 0.9)', 'css_arrows_margin_top' => '0', 'css_arrows_size' => '24', 'css_arrows_arrow_size' => '13', 'css_arrows_margin_bottom' => '0', 'css_circles_color' => 'rgb(221, 221, 221)', 'css_circles_color_active' => 'rgb(234, 171, 28)', 'css_circles_size' => '10', 'css_circles_spacing' => '4', 'css_res_t' => 'enabled', 'css_res_p' => 'enabled');
    }
    if ($id == 'DSLC_Partners') {
        $new_defaults = array('link' => 'disabled', 'post_elements' => 'thumbnail ', 'carousel_elements' => 'circles ', 'separator_enabled' => 'disabled', 'css_thumbnail_border_width' => '0', 'css_thumbnail_margin_bottom' => '0', 'thumb_resize_width_manual' => '300px', 'css_main_text_align' => 'center', 'css_title_font_size' => '16', 'css_title_font_family' => 'Montserrat', 'css_res_t' => 'enabled', 'css_res_p' => 'enabled', 'css_res_t_thumbnail_margin_bottom' => '0', 'css_res_t_thumbnail_padding_vertical' => '0', 'css_res_p_sep_height' => '1', 'css_res_p_thumbnail_margin_bottom' => '0', 'css_res_p_thumbnail_padding_vertical' => '0', 'css_res_p_title_margin_bottom' => '14');
    }
    if ($id == 'DSLC_Accordion') {
        $new_defaults = array('css_title_color' => 'rgb(43, 45, 58)', 'css_title_font_weight' => '600', 'css_content_bg_color' => 'transparent', 'css_content_color' => 'rgb(150, 156, 179)', 'css_content_font_size' => '13');
    }
    if ($id == 'DSLC_Social') {
        $new_defaults = array('css_text_align' => 'center', 'css_bg_color' => 'rgb(234, 171, 28)', 'css_bg_color_hover' => 'rgb(28, 30, 41)', 'css_size' => '60', 'css_spacing' => '30', 'css_icon_font_size' => '24');
    }
    if ($id == 'DSLC_Blog') {
        $new_defaults = array('amount' => '3', 'columns' => '4', 'post_elements' => 'thumbnail title excerpt button ', 'thumb_resize_width_manual' => '400px', 'css_main_border_color' => 'rgb(241, 241, 241)', 'title_color' => 'rgb(61, 61, 61)', 'title_font_size' => '20', 'css_title_font_family' => 'Montserrat', 'title_line_height' => '30', 'title_margin' => '20', 'css_meta_border_color' => 'rgb(241, 241, 241)', 'css_meta_border_trbl' => 'top bottom ', 'css_meta_font_size' => '12', 'css_meta_font_family' => 'Roboto', 'css_meta_link_color' => 'rgb(234, 171, 28)', 'css_meta_link_color_hover' => 'rgb(234, 171, 28)', 'css_meta_avatar_border_radius' => '0', 'css_meta_avatar_margin_right' => '15', 'css_excerpt_color' => 'rgb(153, 160, 168)', 'css_excerpt_font_size' => '14', 'css_excerpt_font_weight' => '400', 'css_excerpt_font_family' => 'Roboto', 'css_button_bg_color' => 'rgb(234, 171, 28)', 'css_button_bg_color_hover' => 'rgba(234, 171, 28, 0.9)', 'css_button_border_radius' => '0', 'css_button_font_weight' => '500', 'css_button_font_family' => 'Roboto', 'css_button_padding_horizontal' => '15', 'css_res_t' => 'enabled', 'css_res_p' => 'enabled', 'css_res_p_thumb_margin_right' => '0', 'css_res_p_main_padding_vertical' => '15', 'css_res_p_main_padding_horizontal' => '15');
    }
    return dslc_set_defaults($new_defaults, $options);
}
Ejemplo n.º 2
0
function amplify_lc_infobox($options, $id)
{
    $new_defaults = array();
    if ($id == 'DSLC_Info_Box') {
        $new_defaults = array('css_icon_bg_color' => 'rgb(250, 190, 40)', 'css_icon_wrapper_width' => '100', 'css_icon_width' => '50', 'css_title_color' => 'rgb(65, 71, 79)', 'css_title_font_size' => '20', 'css_title_font_weight' => '400', 'css_title_font_family' => 'Oswald', 'css_title_line_height' => '20', 'css_content_font_size' => '16', 'css_content_font_family' => 'Open Sans', 'css_button_bg_color' => 'rgb(250, 190, 40)', 'css_button_font_size' => '16', 'css_button_font_weight' => '400', 'css_button_icon_color' => 'rgb(51, 51, 51)', 'button_title' => 'Read more');
    }
    return dslc_set_defaults($new_defaults, $options);
}
Ejemplo n.º 3
0
 function lbmn_alter_lc_defaults($options, $id)
 {
     // The array that will hold new defaults
     $new_defaults = array();
     $theme_ver_log = get_option('lbmn_theme_updates_log');
     if (in_array('1.0.1', $theme_ver_log)) {
         // Do not apply new default styles for users updated theme from V.1
         // to not break their live website layouts
         /**
          * --------------------------------------------
          * Text module
          */
         if ($id == 'DSLC_Text_Simple' || $id == 'DSLC_Html') {
             $new_defaults = array('css_custom' => 'enabled', 'css_margin_bottom' => '30', 'css_main_font_size' => '17', 'css_main_font_weight' => '300', 'css_main_font_family' => '', 'css_main_line_height' => '27', 'css_h1_font_size' => '66', 'css_h1_font_weight' => '200', 'css_h1_font_family' => '', 'css_h1_line_height' => '70', 'css_h1_margin_bottom' => '30', 'css_h2_font_size' => '50', 'css_h2_font_weight' => '200', 'css_h2_font_family' => '', 'css_h2_line_height' => '55', 'css_h2_margin_bottom' => '24', 'css_h3_font_size' => '42', 'css_h3_font_weight' => '200', 'css_h3_font_family' => '', 'css_h3_line_height' => '48', 'css_h3_margin_bottom' => '25', 'css_h4_font_size' => '30', 'css_h4_font_weight' => '300', 'css_h4_font_family' => '', 'css_h4_line_height' => '38', 'css_h4_margin_bottom' => '20', 'css_h5_font_size' => '24', 'css_h5_font_weight' => '300', 'css_h5_font_family' => '', 'css_h5_line_height' => '33', 'css_h5_margin_bottom' => '20', 'css_h6_font_size' => '', 'css_h6_font_family' => '', 'css_h6_font_weight' => '', 'css_h6_line_height' => '', 'css_h6_margin_bottom' => '', 'css_h6_padding_vertical' => '', 'css_h6_padding_horizontal' => '', 'css_h6_text_align' => '', 'css_h6_border_color' => '', 'css_h6_border_width' => '', 'css_h6_border_trbl' => '', 'css_h6_border_radius_top' => '', 'css_h6_border_radius_bottom' => '', 'css_res_t' => 'enabled', 'css_res_t_margin_bottom' => '39', 'css_res_t_main_font_size' => '16', 'css_res_t_main_line_height' => '26', 'css_res_t_h2_font_size' => '40', 'css_res_t_h2_line_height' => '46', 'css_res_t_h2_margin_bottom' => '0', 'css_res_t_h3_font_size' => '24', 'css_res_t_h3_line_height' => '26', 'css_res_t_h3_margin_bottom' => '30', 'css_res_p' => 'enabled', 'css_res_ph_main_font_size' => '14', 'css_res_ph_main_line_height' => '21', 'css_res_ph_h2_font_size' => '34', 'css_res_ph_h2_line_height' => '32', 'css_res_p_h2_margin_bottom' => '10', 'css_res_ph_h3_font_size' => '18', 'css_res_ph_h3_line_height' => '24', 'css_res_p_h3_margin_bottom' => '20');
         }
         /**
          * --------------------------------------------
          * Button module
          */
         if ($id == 'DSLC_Button') {
             $new_defaults = array('button_text' => 'Click to edit', 'button_url' => '#', 'css_bg_color' => 'transparent', 'css_border_color' => 'rgb(239, 236, 236)', 'css_border_color_hover' => 'rgb(75, 123, 194)', 'css_border_width' => '1', 'css_padding_horizontal' => '18', 'css_button_color' => 'rgb(42, 160, 239)', 'css_button_font_size' => '17', 'css_button_font_weight' => '300', 'css_button_font_family' => '');
         }
         /**
          * --------------------------------------------
          * Title module
          */
         if ($id == 'DSLC_TP_Title') {
             $new_defaults = array('css_font_size' => '50', 'css_font_weight' => '200', 'css_font_family' => '', 'css_line_height' => '55');
         }
         /**
          * --------------------------------------------
          * Meta module
          */
         if ($id == 'DSLC_TP_Meta') {
             $new_defaults = array('tp_elements' => 'date author category tags comments ', 'format' => 'vertical', 'color' => 'rgb(97, 103, 108)', 'font_size' => '15', 'css_font_weight' => '300', 'css_font_family' => '', 'css_line_height' => '22');
         }
         /**
          * --------------------------------------------
          * Accordion module
          */
         if ($id == 'DSLC_Accordion') {
             $new_defaults = array('css_title_font_family' => '', 'css_content_font_family' => '');
         }
         /**
          * --------------------------------------------
          * Blog module
          */
         if ($id == 'DSLC_Blog') {
             $new_defaults = array('css_title_font_family' => '', 'css_excerpt_font_family' => '', 'css_button_font_family' => '', 'css_main_heading_font_family' => '', 'css_main_heading_link_font_family' => '');
         }
     } else {
         // Apply new module styling rules since V.1.1
         /**
          * --------------------------------------------
          * Text module
          */
         if ($id == 'DSLC_Text_Simple' || $id == 'DSLC_Html' || $id == 'DSLC_TP_Content') {
             $new_defaults = array('css_main_font_size' => '', 'css_main_font_family' => '', 'css_main_font_weight' => '', 'css_main_line_height' => '', 'css_h1_font_size' => '', 'css_h1_font_family' => '', 'css_h1_font_weight' => '', 'css_h1_line_height' => '', 'css_h1_margin_bottom' => '', 'css_h2_font_size' => '', 'css_h2_font_family' => '', 'css_h2_font_weight' => '', 'css_h2_line_height' => '', 'css_h2_margin_bottom' => '', 'css_h3_font_size' => '', 'css_h3_font_family' => '', 'css_h3_font_weight' => '', 'css_h3_line_height' => '', 'css_h3_margin_bottom' => '', 'css_h4_font_size' => '', 'css_h4_font_family' => '', 'css_h4_font_weight' => '', 'css_h4_line_height' => '', 'css_h4_margin_bottom' => '', 'css_h5_font_size' => '', 'css_h5_font_family' => '', 'css_h5_font_weight' => '', 'css_h5_line_height' => '', 'css_h5_margin_bottom' => '', 'css_h6_font_size' => '', 'css_h6_font_family' => '', 'css_h6_font_weight' => '', 'css_h6_line_height' => '', 'css_h6_margin_bottom' => '', 'css_li_font_family' => '', 'css_li_font_size' => '', 'css_li_font_weight' => '', 'css_li_line_height' => '', 'css_ul_margin_bottom' => '', 'css_ul_margin_left' => '', 'css_ul_li_margin_bottom' => '', 'css_inputs_font_family' => '', 'css_inputs_font_size' => '', 'css_inputs_font_weight' => '', 'css_inputs_line_height' => '');
         }
         /**
          * --------------------------------------------
          * Button module
          */
         if ($id == 'DSLC_Button') {
             $new_defaults = array('button_text' => 'Click to edit', 'button_url' => '#', 'css_bg_color' => 'transparent', 'css_border_color' => 'rgb(226, 223, 223)', 'css_border_color_hover' => 'rgb(75, 123, 194)', 'css_border_width' => '1', 'css_border_radius' => '4', 'css_margin_bottom' => '50', 'css_padding_vertical' => '14', 'css_padding_horizontal' => '18', 'css_button_color' => 'rgb(42, 160, 239)', 'css_button_color_hover' => 'rgb(255, 255, 255)', 'css_button_font_size' => '17', 'css_button_font_weight' => '300', 'css_button_font_family' => '', 'css_icon_margin' => '10', 'css_res_p_padding_vertical' => '', 'css_res_p_padding_horizontal' => '', 'css_res_p_button_font_size' => '', 'css_res_p_icon_margin' => '', 'css_res_t_margin_bottom' => '', 'css_res_t_padding_vertical' => '', 'css_res_t_padding_horizontal' => '', 'css_res_t_button_font_size' => '', 'css_res_t_icon_margin' => '');
         }
         /**
          * --------------------------------------------
          * Info Box module
          */
         if ($id == 'DSLC_Info_Box') {
             $new_defaults = array('elements' => 'icon title content button ', 'text_align' => 'left', 'css_margin_bottom' => '50', 'css_icon_bg_color' => 'transparent', 'css_icon_border_color' => 'rgba(89, 175, 226, 0.3)', 'css_icon_border_width' => '1', 'css_icon_color' => 'rgb(89, 175, 226)', 'css_icon_border_radius' => '28', 'icon_id' => 'smile', 'css_icon_margin_right' => '25', 'icon_position' => 'aside', 'css_icon_wrapper_width' => '72', 'css_icon_width' => '28', 'title' => 'Click to edit this heading', 'css_title_color' => '', 'css_title_font_size' => '27', 'css_title_font_weight' => '300', 'css_title_font_family' => '', 'css_title_line_height' => '30', 'css_title_margin' => '20', 'content' => '<p>This is just placeholder text. To change it move your mouse this block and click "Edit Content" label.</p>', 'css_content_font_weight' => '', 'css_content_font_family' => '', 'css_content_line_height' => '22', 'css_content_margin' => '20', 'button_title' => 'Click to edit', 'css_button_bg_color' => 'rgba(0, 0, 0, 0)', 'css_button_bg_color_hover' => 'rgb(75, 123, 194)', 'css_button_color' => '', 'css_button_icon_color' => '', 'css_button_border_width' => '1', 'css_button_border_color' => 'rgb(226, 223, 223)', 'css_button_border_color_hover' => 'rgb(75, 123, 194)', 'css_button_font_size' => '13', 'css_button_font_weight' => '400', 'css_button_font_family' => '', 'css_button_margin_top' => '20', 'css_button_margin_right' => '12', 'button_icon_id' => 'ok', 'button_2_title' => 'Click to edit', 'css_button_2_bg_color' => 'rgba(0, 0, 0, 0)', 'css_button_2_bg_color_hover' => 'rgb(75, 123, 194)', 'css_button_2_color' => '', 'css_button_2_icon_color' => '', 'css_button_2_border_width' => '1', 'css_button_2_border_color' => 'rgb(226, 223, 223)', 'css_button_2_border_color_hover' => 'rgb(75, 123, 194)', 'css_button_2_font_size' => '13', 'css_button_2_font_weight' => '400', 'css_button_2_font_family' => '', 'css_button_2_margin_top' => '20', 'css_button_2_margin_right' => '12', 'button_2_icon_id' => 'ok', 'css_res_t' => 'disabled', 'css_res_t_margin_bottom' => '', 'css_res_t_icon_margin_right' => '20', 'css_res_t_icon_wrapper_width' => '50', 'css_res_t_icon_width' => '21', 'css_res_t_title_font_size' => '21', 'css_res_t_title_line_height' => '27', 'css_res_t_title_margin' => '18', 'css_res_t_content_font_size' => '', 'css_res_t_content_line_height' => '', 'css_res_t_content_margin' => '20', 'css_res_t_button_font_size' => '', 'css_res_t_button_padding_vertical' => '', 'css_res_t_button_padding_horizontal' => '', 'css_res_t_button_icon_margin' => '10', 'css_res_p' => 'disabled', 'css_res_p_margin_bottom' => '', 'css_res_p_icon_margin_top' => '-2', 'css_res_p_icon_margin_right' => '20', 'css_res_p_icon_wrapper_width' => '60', 'css_res_p_icon_width' => '24', 'css_res_p_title_font_size' => '23', 'css_res_p_title_line_height' => '27', 'css_res_p_title_margin' => '16', 'css_res_p_content_margin' => '20', 'css_res_p_button_font_size' => '', 'css_res_p_button_padding_vertical' => '', 'css_res_p_button_padding_horizontal' => '', 'css_res_p_button_icon_margin' => '10');
         }
         if ($id == 'DSLC_Image') {
             $new_defaults = array('css_ct_font_size' => '14', 'css_ct_font_weight' => '300', 'css_ct_font_family' => '');
         }
         /**
          * --------------------------------------------
          * Title module
          */
         if ($id == 'DSLC_TP_Title') {
             $new_defaults = array('css_font_size' => '50', 'css_font_weight' => '200', 'css_font_family' => '', 'css_line_height' => '55');
         }
         /**
          * --------------------------------------------
          * Meta module
          */
         if ($id == 'DSLC_TP_Meta') {
             $new_defaults = array('tp_elements' => 'date author category tags comments ', 'format' => 'vertical', 'color' => 'rgb(97, 103, 108)', 'font_size' => '15', 'css_font_weight' => '300', 'css_font_family' => '', 'css_line_height' => '22');
         }
         /**
          * --------------------------------------------
          * Accordion module
          */
         if ($id == 'DSLC_Accordion') {
             $new_defaults = array('css_title_font_family' => '', 'css_content_font_family' => '');
         }
         /**
          * --------------------------------------------
          * Blog module
          */
         if ($id == 'DSLC_Blog') {
             $new_defaults = array('css_title_font_family' => '', 'css_excerpt_font_family' => '', 'css_button_font_family' => '', 'css_main_heading_font_family' => '', 'css_main_heading_link_font_family' => '');
         }
         /**
          * ----------------------------------------------------------------------
          * Partners Module
          */
         if ($id == 'DSLC_Partners') {
             $new_defaults = array('elements' => 'main_heading filters ', 'css_thumbnail_margin_bottom' => '20', 'css_thumbnail_padding_vertical' => '0', 'thumb_resize_width' => '', 'css_title_color' => '', 'css_title_font_size' => '21', 'css_title_font_weight' => '300', 'css_title_font_family' => '', 'css_title_line_height' => '27', 'css_excerpt_color' => '', 'css_excerpt_font_size' => '14', 'css_excerpt_font_weight' => '300', 'css_excerpt_font_family' => '', 'main_heading_title' => 'Click to edit this heading', 'main_heading_link_title' => 'View all partners', 'css_main_heading_font_size' => '27', 'css_main_heading_font_weight' => '300', 'css_main_heading_font_family' => '', 'css_main_heading_line_height' => '38', 'css_main_heading_link_font_size' => '16', 'css_main_heading_link_font_weight' => '300', 'css_main_heading_link_font_family' => '', 'css_main_heading_sep_color' => 'rgba(79, 79, 79, 0.25)', 'css_heading_margin_bottom' => '50', 'css_filter_border_color' => 'rgba(130, 129, 129, 0.11)', 'css_filter_font_size' => '14', 'css_filter_font_weight' => '400', 'css_filter_font_family' => '', 'css_filter_padding_horizontal' => '16', 'css_filter_position' => 'right', 'css_filter_margin_bottom' => '50', 'css_arrows_bg_color' => 'transparent', 'css_arrows_border_color' => 'rgba(170, 170, 170, 0.28)', 'css_arrows_border_color_hover' => 'rgb(88, 144, 229)', 'css_arrows_border_width' => '1', 'css_arrows_color' => 'rgba(196, 196, 196, 0.68)', 'css_arrows_size' => '40', 'css_arrows_arrow_size' => '11', 'css_circles_color' => 'rgba(185, 185, 185, 0.17)', 'css_circles_color_active' => 'rgba(153, 153, 153, 0.78)', 'css_circles_margin_top' => '0', 'css_circles_size' => '8', 'css_circles_spacing' => '10', 'css_res_p_thumbnail_padding_vertical' => '10', 'css_res_p_title_font_size' => '21', 'css_res_p_title_line_height' => '27', 'css_res_p_excerpt_font_size' => '', 'css_res_p_main_heading_font_size' => '23', 'css_res_p_main_heading_line_height' => '27', 'css_res_p_main_heading_link_font_size' => '16', 'css_res_p_heading_margin_bottom' => '0', 'css_res_p_filter_font_size' => '', 'css_pag_align' => 'center', 'css_pag_border_color' => 'rgba(170, 170, 170, 0.28)', 'css_pag_item_font_size' => '14', 'css_pag_item_font_weight' => '400', 'css_pag_item_font_family' => '', 'css_pag_item_padding_vertical' => '14', 'css_pag_item_padding_horizontal' => '16', 'css_pag_item_spacing' => '14');
         }
         /**
          * ----------------------------------------------------------------------
          * Testimonials Module
          */
         if ($id == 'DSLC_Testimonials') {
             $new_defaults = array('type' => 'carousel', 'elements' => 'main_heading filters ', 'amount' => '3', 'columns' => '12', 'order' => 'ASC', 'css_main_bg_color' => 'transparent', 'css_main_padding_vertical' => '0', 'css_main_padding_horizontal' => '0', 'css_quote_border_color' => 'transparent', 'css_quote_border_width' => '0', 'css_quote_color' => '', 'css_quote_font_size' => '20', 'css_quote_font_weight' => '300', 'css_quote_line_height' => '30', 'css_quote_margin' => '0', 'css_quote_padding_bottom' => '0', 'author_pos' => 'outside right', 'css_author_margin_left' => '30', 'css_avatar_bg_color' => 'rgba(24, 24, 25, 0.05)', 'css_avatar_border_color' => 'rgba(0, 0, 0, 0.06)', 'css_avatar_border_width' => '1', 'css_avatar_padding' => '6', 'css_avatar_size' => '90', 'css_name_color' => '', 'css_name_font_size' => '24', 'css_name_font_weight' => '300', 'css_name_margin_bottom' => '6', 'css_name_margin_top' => '20', 'css_position_color' => '', 'css_position_font_size' => '16', 'css_position_font_weight' => '300', 'css_thumbnail_margin_bottom' => '20', 'css_thumbnail_padding_vertical' => '0', 'thumb_resize_width' => '', 'css_title_color' => '', 'css_title_font_size' => '21', 'css_title_font_weight' => '300', 'css_title_font_family' => '', 'css_title_line_height' => '27', 'css_excerpt_color' => '', 'css_excerpt_font_size' => '14', 'css_excerpt_font_weight' => '300', 'css_excerpt_font_family' => '', 'css_quote_font_family' => '', 'css_name_font_family' => '', 'css_position_font_family' => '', 'main_heading_title' => 'Click to edit this heading', 'main_heading_link_title' => 'View all testimonials', 'css_main_heading_font_size' => '27', 'css_main_heading_font_weight' => '300', 'css_main_heading_font_family' => '', 'css_main_heading_line_height' => '38', 'css_main_heading_link_font_size' => '16', 'css_main_heading_link_font_weight' => '300', 'css_main_heading_link_font_family' => '', 'css_main_heading_sep_color' => 'rgba(79, 79, 79, 0.25)', 'css_heading_margin_bottom' => '50', 'css_filter_border_color' => 'rgba(130, 129, 129, 0.11)', 'css_filter_font_size' => '14', 'css_filter_font_weight' => '400', 'css_filter_font_family' => '', 'css_filter_padding_horizontal' => '16', 'css_filter_position' => 'right', 'css_filter_margin_bottom' => '50', 'css_arrows_bg_color' => 'transparent', 'css_arrows_border_color' => 'rgba(170, 170, 170, 0.28)', 'css_arrows_border_color_hover' => 'rgb(88, 144, 229)', 'css_arrows_border_width' => '1', 'css_arrows_color' => 'rgba(196, 196, 196, 0.68)', 'css_arrows_size' => '40', 'css_arrows_arrow_size' => '11', 'css_circles_color' => 'rgba(185, 185, 185, 0.17)', 'css_circles_color_active' => 'rgba(153, 153, 153, 0.78)', 'css_circles_margin_top' => '0', 'css_circles_size' => '8', 'css_circles_spacing' => '10', 'css_pag_align' => 'center', 'css_pag_border_color' => 'rgba(170, 170, 170, 0.28)', 'css_pag_item_font_size' => '14', 'css_pag_item_font_weight' => '400', 'css_pag_item_font_family' => '', 'css_pag_item_padding_vertical' => '14', 'css_pag_item_padding_horizontal' => '16', 'css_pag_item_spacing' => '14', 'css_res_p_thumbnail_padding_vertical' => '10', 'css_res_p_title_font_size' => '21', 'css_res_p_title_line_height' => '27', 'css_res_p_excerpt_font_size' => '', 'css_res_p_main_heading_font_size' => '23', 'css_res_p_main_heading_line_height' => '27', 'css_res_p_main_heading_link_font_size' => '16', 'css_res_p_heading_margin_bottom' => '0', 'css_res_p_filter_font_size' => '', 'css_res_p_main_padding_vertical' => '0', 'css_res_p_main_padding_horizontal' => '0', 'css_res_p_quote_margin' => '0', 'css_res_p_author_margin_bottom' => '30', 'css_res_p_author_margin_right' => '0', 'css_res_p_avatar_padding' => '4', 'css_res_p_name_font_size' => '19', 'css_res_p_name_margin_bottom' => '4', 'css_res_p_position_font_size' => '14', 'css_res_p_main_heading_link_padding_ver' => '15');
         }
         /**
          * ----------------------------------------------------------------------
          * Projects Modules
          */
         if ($id == 'DSLC_Projects') {
             $new_defaults = array('type' => 'carousel', 'orientation' => 'vertical', 'elements' => '', 'amount' => '6', 'columns' => '4', 'post_elements' => 'thumbnail title excerpt button ', 'css_thumbnail_border_radius_top' => '0', 'thumb_resize_height' => '260', 'thumb_resize_width' => '120', 'thumb_width' => '100', 'css_main_text_align' => 'left', 'main_heading_title' => 'Click to edit this heading', 'main_heading_link_title' => 'View all projects', 'css_main_heading_font_size' => '27', 'css_main_heading_font_weight' => '300', 'css_main_heading_font_family' => '', 'css_main_heading_line_height' => '38', 'css_main_heading_link_font_size' => '16', 'css_main_heading_link_font_weight' => '300', 'css_main_heading_link_font_family' => '', 'css_main_heading_sep_color' => 'rgba(79, 79, 79, 0.25)', 'css_heading_margin_bottom' => '50', 'css_filter_border_color' => 'rgba(130, 129, 129, 0.11)', 'css_filter_font_size' => '14', 'css_filter_font_weight' => '400', 'css_filter_font_family' => '', 'css_filter_padding_horizontal' => '16', 'css_filter_position' => 'right', 'css_filter_margin_bottom' => '50', 'css_arrows_bg_color' => 'transparent', 'css_arrows_border_color' => 'rgba(170, 170, 170, 0.28)', 'css_arrows_border_color_hover' => 'rgb(88, 144, 229)', 'css_arrows_border_width' => '1', 'css_arrows_color' => 'rgba(196, 196, 196, 0.68)', 'css_arrows_size' => '40', 'css_arrows_arrow_size' => '11', 'css_circles_color' => 'rgba(185, 185, 185, 0.17)', 'css_circles_color_active' => 'rgba(153, 153, 153, 0.78)', 'css_circles_margin_top' => '0', 'css_circles_size' => '8', 'css_circles_spacing' => '10', 'css_pag_align' => 'center', 'css_pag_border_color' => 'rgba(170, 170, 170, 0.28)', 'css_pag_item_font_size' => '14', 'css_pag_item_font_weight' => '400', 'css_pag_item_font_family' => '', 'css_pag_item_padding_vertical' => '14', 'css_pag_item_padding_horizontal' => '16', 'css_pag_item_spacing' => '14', 'css_title_color' => '', 'css_title_font_size' => '21', 'css_title_font_weight' => '300', 'css_title_font_family' => '', 'css_title_line_height' => '27', 'css_cats_color' => 'rgb(171, 171, 171)', 'css_cats_font_size' => '12', 'css_cats_font_weight' => '300', 'css_cats_font_family' => '', 'css_cats_margin-bottom' => '8', 'carousel_elements' => 'circles ', 'css_main_border_width' => '0', 'css_main_border_radius_bottom' => '0', 'css_main_padding_vertical' => '30', 'css_main_padding_horizontal' => '40', 'css_main_text_align' => 'center', 'css_excerpt_border_width' => '0', 'css_excerpt_font_weight' => '300', 'css_excerpt_font_family' => '', 'css_excerpt_padding' => '0', 'button_text' => 'View Project', 'css_button_bg_color' => 'transparent', 'css_button_border_width' => '1', 'css_button_border_color' => 'rgb(226, 223, 223)', 'css_button_border_color_hover' => 'rgb(71, 124, 204)', 'css_button_color' => '', 'css_button_color_hover' => 'rgb(216, 113, 113)', 'css_button_font_size' => '14', 'css_button_font_weight' => '300', 'css_button_font_family' => '', 'css_button_padding_vertical' => '12', 'css_res_p_title_font_size' => '21', 'css_res_p_title_line_height' => '27', 'css_res_p_excerpt_font_size' => '', 'css_res_p_main_heading_font_size' => '23', 'css_res_p_main_heading_line_height' => '27', 'css_res_p_main_heading_link_font_size' => '16', 'css_res_p_heading_margin_bottom' => '0', 'css_res_p_filter_font_size' => '', 'css_res_t_title_font_size' => '21', 'css_res_t_title_line_height' => '27', 'css_res_t_excerpt_font_size' => '', 'css_res_t_main_heading_font_size' => '23', 'css_res_t_main_heading_line_height' => '27', 'css_res_t_main_heading_link_font_size' => '16', 'css_res_t_heading_margin_bottom' => '0', 'css_res_t_filter_font_size' => '', 'css_res_t_button_font_size' => '', 'css_res_t_button_padding_vertical' => '', 'css_res_t_button_padding_horizontal' => '', 'css_res_t_button_icon_margin' => '10');
         }
         /**
          * ----------------------------------------------------------------------
          * Posts Module
          */
         if ($id == 'DSLC_Posts') {
             $new_defaults = array('type' => 'carousel', 'orientation' => 'vertical', 'elements' => 'main_heading', 'amount' => '6', 'columns' => '4', 'post_elements' => 'thumbnail title excerpt button ', 'css_thumb_border_radius_top' => '0', 'css_main_text_align' => 'left', 'thumb_width' => '100', 'thumb_margin' => '25', 'thumb_resize_height' => '255', 'thumb_resize_width_manual' => '400', 'thumb_resize_width' => '384', 'main_heading_title' => 'Click to edit this heading', 'main_heading_link_title' => 'View all projects', 'css_main_heading_font_size' => '27', 'css_main_heading_font_weight' => '300', 'css_main_heading_font_family' => '', 'css_main_heading_line_height' => '38', 'css_main_heading_link_font_size' => '16', 'css_main_heading_link_font_weight' => '300', 'css_main_heading_link_font_family' => '', 'css_main_heading_sep_color' => 'rgba(79, 79, 79, 0.25)', 'css_heading_margin_bottom' => '50', 'css_filter_border_color' => 'rgba(130, 129, 129, 0.11)', 'css_filter_font_size' => '14', 'css_filter_font_weight' => '400', 'css_filter_font_family' => '', 'css_filter_padding_horizontal' => '16', 'css_filter_position' => 'right', 'css_filter_margin_bottom' => '50', 'css_arrows_bg_color' => 'transparent', 'css_arrows_border_color' => 'rgba(170, 170, 170, 0.28)', 'css_arrows_border_color_hover' => 'rgb(88, 144, 229)', 'css_arrows_border_width' => '1', 'css_arrows_color' => 'rgba(196, 196, 196, 0.68)', 'css_arrows_size' => '40', 'css_arrows_arrow_size' => '11', 'css_circles_color' => 'rgba(185, 185, 185, 0.17)', 'css_circles_color_active' => 'rgba(153, 153, 153, 0.78)', 'css_circles_margin_top' => '0', 'css_circles_size' => '8', 'css_circles_spacing' => '10', 'css_pag_align' => 'center', 'css_pag_border_color' => 'rgba(170, 170, 170, 0.28)', 'css_pag_item_font_size' => '14', 'css_pag_item_font_weight' => '400', 'css_pag_item_font_family' => '', 'css_pag_item_padding_vertical' => '14', 'css_pag_item_padding_horizontal' => '16', 'css_pag_item_spacing' => '14', 'css_title_color' => '', 'title_font_size' => '24', 'css_title_font_weight' => '300', 'css_title_font_family' => '', 'title_line_height' => '27', 'css_excerpt_border_width' => '0', 'css_excerpt_font_weight' => '300', 'css_excerpt_font_family' => '', 'css_excerpt_padding' => '0', 'css_excerpt_border_width' => '0', 'css_excerpt_font_size' => '14', 'css_excerpt_font_weight' => '300', 'excerpt_length' => '16', 'css_excerpt_color' => '', 'carousel_elements' => 'arrows circles ', 'css_main_border_width' => '0', 'css_main_border_radius_bottom' => '0', 'css_main_padding_vertical' => '0', 'css_main_padding_horizontal' => '0', 'css_main_text_align' => 'left', 'css_meta_border_width' => '0', 'css_meta_border_trbl' => 'bottom ', 'css_meta_font_family' => '', 'css_meta_link_color' => '', 'css_meta_link_color_hover' => '', 'button_text' => 'View Project', 'css_button_bg_color' => 'transparent', 'css_button_border_width' => '1', 'css_button_border_color' => 'rgb(226, 223, 223)', 'css_button_border_color_hover' => 'rgb(71, 124, 204)', 'css_button_color' => '', 'css_button_color_hover' => 'rgb(255, 255, 255)', 'css_button_font_size' => '14', 'css_button_font_weight' => '300', 'css_button_font_family' => '', 'css_button_padding_vertical' => '12', 'css_res_p_title_font_size' => '21', 'css_res_p_title_line_height' => '27', 'css_res_p_excerpt_font_size' => '', 'css_res_p_main_heading_font_size' => '23', 'css_res_p_main_heading_line_height' => '27', 'css_res_p_main_heading_link_font_size' => '16', 'css_res_p_heading_margin_bottom' => '0', 'css_res_p_filter_font_size' => '', 'css_res_t_title_font_size' => '21', 'css_res_t_title_line_height' => '27', 'css_res_t_excerpt_font_size' => '', 'css_res_t_main_heading_font_size' => '23', 'css_res_t_main_heading_line_height' => '27', 'css_res_t_main_heading_link_font_size' => '16', 'css_res_t_heading_margin_bottom' => '0', 'css_res_t_filter_font_size' => '', 'css_res_p_thumb_margin' => '14', 'css_res_p_main_padding_vertical' => '0', 'css_res_p_main_padding_horizontal' => '0', 'css_res_t_button_font_size' => '', 'css_res_t_button_padding_vertical' => '', 'css_res_t_button_padding_horizontal' => '', 'css_res_t_button_icon_margin' => '10');
         }
     }
     // else in_array('1.0.1')
     // Call the function that alters the defaults and return
     return dslc_set_defaults($new_defaults, $options);
 }
Ejemplo n.º 4
0
 function lbmn_alter_nf_defaults_in_lc($options, $id)
 {
     // The array that will hold new defaults
     $new_defaults = array();
     if ($id == 'LBMN_Ninja_Forms') {
         $new_defaults = array('css_margin_bottom' => '40', 'css_main_border_width' => '0', 'css_form_field_padding_right' => '30', 'css_form_field_padding_bottom' => '20', 'css_labels_font_size' => '16', 'css_labels_font_weight' => '300', 'css_inputs_border_color' => 'rgb(220, 221, 221)', 'css_inputs_color' => 'rgb(172, 174, 174)', 'css_inputs_focus_border_color' => 'rgb(90, 173, 225)', 'css_inputs_focus_txt_color' => 'rgb(60, 60, 60)', 'css_inputs_border_width' => '1', 'css_inputs_border_trbl' => 'top right bottom left ', 'css_inputs_border_radius' => '4', 'css_inputs_font_size' => '16', 'css_inputs_line_height' => '24', 'css_inputs_line_height' => '24', 'css_inputs_padding_vertical' => '10', 'css_inputs_padding_horizontal' => '12', 'css_inputs_margin_bottom' => '0', 'css_button_bg_color' => 'rgb(90, 173, 225)', 'css_button_color' => 'rgb(255, 255, 255)', 'css_button_bg_color_hover' => 'rgb(77, 125, 192)', 'css_button_border_width' => '0', 'css_button_border_trbl' => 'top right bottom left ', 'css_button_border_radius' => '4', 'css_button_font_size' => '18', 'css_button_font_weight' => '300', 'css_button_line_height' => '21', 'css_button_padding_vertical' => '14', 'css_button_padding_horizontal' => '20', 'css_button_margin_top' => '15', 'css_req_items_color' => 'rgb(165, 165, 165)', 'css_req_items_font_size' => '14', 'css_req_items_line_height' => '21', 'css_req_items_margin_bottom' => '30', 'css_req_items_padding_vertical' => '15', 'css_symbol_color' => 'rgb(244, 133, 27)', 'css_text_color' => 'rgb(165, 165, 165)', 'css_text_font_size' => '14', 'css_text_line_height' => '21', 'css_description_color' => 'rgb(165, 165, 165)', 'css_description_font_size' => '12', 'css_description_line_height' => '18', 'css_description_margin_top' => '10', 'css_form_error_bg_color' => 'rgb(252, 9, 27)', 'css_form_error_border_radius_top' => '0', 'css_form_error_border_radius_bottom' => '4', 'css_form_error_color' => 'rgb(255, 255, 255)', 'css_form_error_font_size' => '12', 'css_form_error_line_height' => '14', 'css_form_error_bottom' => '0', 'css_form_error_padding_vertical' => '4', 'css_form_error_padding_horizontal' => '12', 'css_form_success_msg_bg_color' => 'rgb(245, 248, 235)', 'css_form_success_msg_border_color' => 'rgb(217, 223, 195)', 'css_form_success_msg_border_width' => '1', 'css_form_success_msg_border_trbl' => 'bottom ', 'css_form_success_msg_border_radius_top' => '4', 'css_form_success_msg_border_radius_bottom' => '4', 'css_form_success_msg_color' => 'rgb(145, 177, 40)', 'css_form_success_msg_font_size' => '21', 'css_form_success_msg_line_height' => '30', 'css_form_success_msg_padding_vertical' => '30', 'css_form_success_msg_text_align' => 'center', 'css_checkbox_labels_font_size' => '16', 'css_checkbox_labels_font_weight' => '300', 'css_checkbox_input_margin_right' => '6', 'css_select_border_color' => 'rgb(220, 221, 221)', 'css_select_border_width' => '1', 'css_select_border_trbl' => 'top right bottom left ', 'css_select_padding_vertical' => '9', 'css_select_padding_horizontal' => '14', 'css_hr_bg_color' => 'rgba(220, 221, 221, 0.48)', 'css_hr_height' => '1', 'css_hr_margin_top' => '20', 'css_hr_margin_bottom' => '15');
     }
     // Call the function that alters the defaults and return
     return dslc_set_defaults($new_defaults, $options);
 }