'; $data_img .= ''; $data_img .= ''; } if ( !empty( $title ) ) { $data_title .= '
'; $data_title .= $title; $data_title .= '
'; } if ( !empty( $desc ) ) { $data_desc .= '
'; $data_desc .= $desc; $data_desc .= '
'; } if ( !empty( $subtitle ) ) { $data_subtitle .= '
'; $data_subtitle .= $subtitle; $data_subtitle .= '
'; } if ( $show_button == 'yes' ) { if ( !empty( $button_link ) ) { $button_link_text = explode( '|', $button_link ); $button_link = $button_link_text[0]; } if( empty($button_text) ) $button_text = __( 'Readmore', 'kingcomposer' ); $data_button .= '
'; $data_button .= ''. $button_text .''; $data_button .= '
'; } $social_list = array( 'facebook' => 'facebook-f', 'twitter' => 'twitter', 'google_plus' => 'google_plus-g', 'linkedin' => 'linkedin-in', 'pinterest' => 'pinterest', 'flickr' => 'flickr', 'instagram' => 'instagram', 'dribbble' => 'dribbble', 'reddit' => 'reddit-square', 'email' => 'envelope', ); foreach( $social_list as $acc => $icon ){ if( !empty( $atts[$acc]) && $atts[$acc] != '__empty__' ){ $icon = str_replace( array('_', 'email') , array( '-', 'envelope') , $icon); if ($icon == 'envelope') $data_socials .= ''; else $data_socials .= ''; } } if( !empty( $data_socials) ) $data_socials = '
' . $data_socials . '
'; ?>
'; echo $data_title; echo $data_subtitle; echo $data_desc; echo $data_socials; echo '
'; break; case '3': echo $data_img; echo '
'; echo $data_title; echo $data_subtitle; echo $data_desc; echo $data_button; echo $data_socials; echo '
'; break; default: echo $data_img; echo $data_title; echo $data_subtitle; echo $data_desc; echo $data_socials; echo $data_button; break; } ?>