__( 'Widgets Title Only', 'jevelin' ), 'base' => 'vcj_footer_widgets_title', 'description' => __( 'Add widgets in WPbakery based footer', 'jevelin' ), 'category' => __( 'Jevelin Elements', 'jevelin' ), 'icon' => get_template_directory_uri().'/img/builder-icon.png', 'params' => array( array( 'param_name' => 'title', 'heading' => __( 'Title', 'jevelin' ), 'description' => __( 'Enter title', 'jevelin' ), 'type' => 'textfield', 'std' => '', ), array ( 'param_name' => 'preset', 'heading' => 'Color Preset', 'description' => 'Choose color preset, that can be overwritten by color options', 'value' => array ( 'Dark Text' => 'dark', 'Light Text' => 'light', ), 'type' => 'dropdown', 'std' => 'dark', ), array( 'param_name' => 'heading_size', 'heading' => __( 'Heading Font Size', 'jevelin' ), 'description' => __( 'Enter heading size (Note: CSS measurement units allowed).', 'jevelin' ), 'type' => 'textfield', 'std' => '', ), array( 'param_name' => 'line_height', 'heading' => __( 'Line Height', 'jevelin' ), 'description' => __( 'Enter line height (Note: CSS measurement units allowed).', 'jevelin' ), 'type' => 'textfield', 'std' => '', ), array ( 'param_name' => 'heading_color', 'heading' => 'Heading Color', 'description' => 'Select heading color', 'type' => 'colorpicker', 'group' => 'Colors', ), array ( 'param_name' => 'border_color', 'heading' => 'Border Color', 'description' => 'Select border color', 'type' => 'colorpicker', 'group' => 'Colors', ), array ( 'param_name' => 'border_color2', 'heading' => 'Border Color 2', 'description' => 'Select border color 2', 'type' => 'colorpicker', 'group' => 'Colors', ), array( 'param_name' => 'css', 'type' => 'css_editor', 'heading' => __( 'CSS box', 'jevelin' ), 'group' => __( 'Design Options', 'jevelin' ), ), ), ) ); } public function _html( $atts ) { // Params extraction extract( shortcode_atts( array( 'title' => '', 'columns' => '3', 'alignment' => 'vertical', 'css' => 'none', 'text_size' => '', 'heading_size' => '', 'line_height' => '', 'source' => 'footer-widgets1', 'preset' => 'dark', 'heading_color' => '', 'text_color' => '', 'link_color' => '', 'link_hover_color' => '', 'icon_color' => '', 'border_color' => '', 'border_color2' => '', ), $atts ) ); // HTML $id = 'sh-footer-builder-title-'.jevelin_rand(); $element_class = array(); $element_class[] = $id; $element_class[] = 'sh-footer-builder-title-'.$columns.'columns'; $element_class[] = apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, vc_shortcode_custom_css_class( $css, ' ' ), $this->settings['base'], $atts ); // Preset if( $preset == 'light' ) : $colors = (object)array( 'heading_color' => '#ffffff', 'text_color' => '#e3e3e3', 'link_color' => '#ffffff', 'link_hover_color' => '#47c9e5', 'icon_color' => '#f7f7f7', 'border_color' => 'rgba(255,255,255,0.10)', 'border_color2' => '#ffffff', ); else : $colors = (object)array( 'heading_color' => '#505050', 'text_color' => '#8d8d8d', 'link_color' => '#505050', 'link_hover_color' => '#8d8d8d', 'icon_color' => '#8d8d8d', 'border_color' => '#ececec', 'border_color2' => '#505050', ); endif; // Colors if( $heading_color ) : $colors->heading_color = $heading_color; endif; if( $text_color ) : $colors->text_color = $text_color; endif; if( $link_color ) : $colors->link_color = $link_color; endif; if( $link_hover_color ) : $colors->link_hover_color = $link_hover_color; endif; if( $icon_color ) : $colors->icon_color = $icon_color; endif; if( $border_color ) : $colors->border_color = $border_color; endif; if( $border_color2 ) : $colors->border_color2 = $border_color2; endif; wp_reset_postdata(); $the_sidebars = wp_get_sidebars_widgets(); //echo count( $the_sidebars[ $source ] ); //echo '/'.var_dump( $source ); ob_start(); ?> class="sh-footer-builder-title ">