'wpb_button', 'icon' => 'none', 'size' => '', 'target' => '', 'href' => '', 'title' => __('Text on the button', "js_composer"), 'call_text' => '', 'position' => 'cta_align_right', 'el_class' => '' ), $atts)); $el_class = $this->getExtraClass($el_class); if ( $target == 'same' || $target == '_self' ) { $target = ''; } if ( $target != '' ) { $target = ' target="'.$target.'"'; } $icon = ( $icon != '' && $icon != 'none' ) ? ' '.$icon : ''; $i_icon = ( $icon != '' ) ? ' ' : ''; $color = ( $color != '' ) ? ' wpb_'.$color : ''; $size = ( $size != '' && $size != 'wpb_regularsize' ) ? ' wpb_'.$size : ' '.$size; $a_class = ''; if ( $el_class != '' ) { $tmp_class = explode(" ", $el_class); if ( in_array("prettyphoto", $tmp_class) ) { wp_enqueue_script( 'prettyphoto' ); wp_enqueue_style( 'prettyphoto' ); $a_class .= ' prettyphoto'; $el_class = str_ireplace("prettyphoto", "", $el_class); } } if ( $href != '' ) { $button = ''.$title.$i_icon.''; $button = '' . $button . ''; } else { //$button = ''; $button = ''; $el_class .= ' cta_no_button'; } $css_class = apply_filters(VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, 'wpb_call_to_action wpb_content_element clearfix '.$position.$el_class, $this->settings['base']); $output .= '
'; if ( $position != 'cta_align_bottom' ) $output .= $button; $output .= apply_filters('wpb_cta_text', '

'. $call_text . '

', array('content'=>$call_text)); //$output .= '

'. $call_text . '

'; if ( $position == 'cta_align_bottom' ) $output .= $button; $output .= '
' . $this->endBlockComment('.wpb_call_to_action') . "\n"; echo $output;