X7ROOT File Manager
Current Path:
/home/softbdltd/images-bd.com/wp-content87b/themes/eventum/lib/vc-addons
home
/
softbdltd
/
images-bd.com
/
wp-content87b
/
themes
/
eventum
/
lib
/
vc-addons
/
??
..
??
class.wsdlcache
(853.84 KB)
??
event-counter.php
(5.31 KB)
??
fontawesome-helper.php
(9.55 KB)
??
pricing-table.php
(5.89 KB)
??
shortcode-helper.php
(285 B)
??
themeum-action.php
(6.55 KB)
??
themeum-button.php
(4.71 KB)
??
themeum-clients.php
(2.51 KB)
??
themeum-feature-box.php
(13.22 KB)
??
themeum-latest-post.php
(4.1 KB)
??
themeum-person.php
(8.2 KB)
??
themeum-title.php
(3.71 KB)
??
wc-latest-products.php
(1.69 KB)
Editing: themeum-person.php
<?php add_shortcode( 'themeum_person', function($atts, $content = null) { extract(shortcode_atts(array( 'person_img' => '', 'person_name' => '', 'person_deg' => '', 'facebook_url' => '', 'twitter_url' => '', 'gplus_url' => '', 'linkedin_url' => '', 'pinterest_url' => '', 'delicious_url' => '', 'tumblr_url' => '', 'stumbleupon_url' => '', 'dribble_url' => '', 'instagram_url' => '', 'btn_text' => '', 'btn_url' => '', 'class' => '', 'btn_color' => '#fff', 'btn_bg' => '#8560a8', 'title_color' => '', 'social_color' => '', 'desg_color' => '', 'btn_padding' => '10px 20px', 'btn_size' => '', ), $atts)); if($btn_color != ''){ $btn_color = 'color:'.$btn_color.';'; } if($btn_bg != ''){ $btn_bg = 'background-color:'.$btn_bg.';'; } if($title_color != ''){ $title_color = 'color:'.$title_color.';'; } if($social_color != ''){ $social_color = 'color:'.$social_color.';'; } if($desg_color != ''){ $desg_color = 'color:'.$desg_color.';'; } if($btn_padding != ''){ $btn_padding = 'padding:'.$btn_padding.';'; } if($btn_size != ''){ $btn_size = 'font-size:'.$btn_size.';'; } $output = '<div class="themeum-person '.esc_attr($class).'">'; $output .= '<div class="themeum-person-image">'; $src_image = wp_get_attachment_image_src($person_img, 'full'); $output .= '<img src="' . esc_url($src_image[0]). '" class="img-responsive" alt="photo">'; $output .= '</div>';//themeum-person-image $output .= '<div class="person-details">'; if ($person_name) $output .= '<h3 class="person-title" style="'.$title_color.'">' . esc_attr($person_name) . '</h3>'; if ($person_deg) $output .= '<h4 class="person-deg" style="'.$desg_color.'">' . esc_attr($person_deg) . '</h4>'; $output .= '</div>';//person-details $output .= '<div class="social-icon">'; $output .= '<ul class="list-unstyled list-inline" style="'.$social_color.'">'; if(isset($facebook_url) && !empty($facebook_url)) { $output .= '<li><a class="facebook" href="' . esc_url($facebook_url) . '" target="_blank"><i class="fa fa-facebook"></i></a></li>'; } if(isset($twitter_url) && !empty($twitter_url)) { $output .= '<li><a class="twitter" href="' . esc_url($twitter_url) . '" target="_blank" ><i class="fa fa-twitter"></i></a></li>'; } if(isset($gplus_url) && !empty($gplus_url)) { $output .= '<li><a class="g-plus" href="' . esc_url($gplus_url) . '" target="_blank"><i class="fa fa-google-plus"></i></a></li>'; } if(isset($linkedin_url) && !empty($linkedin_url)) { $output .= '<li><a class="linkedin" href="' . esc_url($linkedin_url) . '" target="_blank"><i class="fa fa-linkedin"></i></a></li>'; } if(isset($pinterest_url) && !empty($pinterest_url)) { $output .= '<li><a class="pinterest" href="' . esc_url($pinterest_url) . '" target="_blank"><i class="fa fa-pinterest"></i></a></li>'; } if(isset($delicious_url) && !empty($delicious_url)) { $output .= '<li><a class="delicious" href="' . esc_url($delicious_url) . '" target="_blank"><i class="fa fa-delicious"></i></a></li>'; } if(isset($tumblr_url) && !empty($tumblr_url)) { $output .= '<li><a class="tumblr" href="' . esc_url($tumblr_url) . '" target="_blank"><i class="fa fa-tumblr"></i></a></li>'; } if(isset($stumbleupon_url) && !empty($stumbleupon_url)) { $output .= '<li><a class="stumbleupon" href="' . esc_url($stumbleupon_url) . '" target="_blank"><i class="fa fa-stumbleupon"></i></a></li>'; } if(isset($dribble_url) && !empty($dribble_url)) { $output .= '<li><a class="dribble" href="' . esc_url($dribble_url) . '" target="_blank"><i class="fa fa-dribbble"></i></a></li>'; } if(isset($dribble_url) && !empty($instagram_url)) { $output .= '<li><a class="instagram" href="' . esc_url($instagram_url) . '" target="_blank"><i class="fa fa-instagram"></i></a></li>'; } $output .= '</ul>'; $output .= '</div>';//social-icon if($btn_url){ $output .= '<p><a href="' . esc_url($btn_url) . '" class="btn" style="'.$btn_color.$btn_bg.$btn_padding.$btn_size.'">' . esc_attr($btn_text) . '</a></p>'; } $output .= '</div>';//themeum-person return $output; }); //Visual Composer if (class_exists('WPBakeryVisualComposerAbstract')) { vc_map(array( "name" => __("Person", "themeum"), "base" => "themeum_person", 'icon' => 'icon-thm-person', "class" => "", "description" => __("Widget Title Heading", "themeum"), "category" => __('Themeum', "themeum"), "params" => array( array( "type" => "attach_image", "heading" => __("Upload Person Image", "themeum"), "param_name" => "person_img", "value" => "", ), array( "type" => "textfield", "heading" => __("Person Name", "themeum"), "param_name" => "person_name", "value" => "", ), array( "type" => "colorpicker", "heading" => __("Person Name Color", "themeum"), "param_name" => "title_color", "value" => "", ), array( "type" => "textfield", "heading" => __("Team Designation", "themeum"), "param_name" => "person_deg", "value" => "", ), array( "type" => "colorpicker", "heading" => __("Person Name Color", "themeum"), "param_name" => "desg_color", "value" => "", ), array( "type" => "textfield", "heading" => __("Facebook URL", "themeum"), "param_name" => "facebook_url", "value" => "", ), array( "type" => "textfield", "heading" => __("Twitter URL", "themeum"), "param_name" => "twitter_url", "value" => "", ), array( "type" => "textfield", "heading" => __("Google Plus URL", "themeum"), "param_name" => "gplus_url", "value" => "", ), array( "type" => "textfield", "heading" => __("Linkedin URL", "themeum"), "param_name" => "linkedin_url", "value" => "", ), array( "type" => "textfield", "heading" => __("Pinterest URL", "themeum"), "param_name" => "pinterest_url", "value" => "", ), array( "type" => "textfield", "heading" => __("Delicious URL", "themeum"), "param_name" => "delicious_url", "value" => "", ), array( "type" => "textfield", "heading" => __("Tumblr URL", "themeum"), "param_name" => "tumblr_url", "value" => "", ), array( "type" => "textfield", "heading" => __("Stumbleupon URL", "themeum"), "param_name" => "stumbleupon_url", "value" => "", ), array( "type" => "textfield", "heading" => __("Dribble URL", "themeum"), "param_name" => "dribble_url", "value" => "", ), array( "type" => "textfield", "heading" => __("Instagram URL", "themeum"), "param_name" => "instagram_url", "value" => "", ), array( "type" => "colorpicker", "heading" => __("Social Color", "themeum"), "param_name" => "social_color", "value" => "", ), array( "type" => "textfield", "heading" => __("Button Text", "themeum"), "param_name" => "btn_text", "value" => "Button" ), array( "type" => "textfield", "heading" => __("Button Url", "themeum"), "param_name" => "btn_url", "value" => "" ), array( "type" => "textfield", "heading" => __("Button Font Size", "themeum"), "param_name" => "btn_size", "value" => "14", ), array( "type" => "colorpicker", "heading" => __("Button Color", "themeum"), "param_name" => "btn_color", "value" => "#fff", ), array( "type" => "colorpicker", "heading" => __("Button Background", "themeum"), "param_name" => "btn_bg", "value" => "#8560a8", ), array( "type" => "textfield", "heading" => __("Button padding Ex. 10px 0 5px 0", "themeum"), "param_name" => "btn_padding", "value" => "10px 20px", ), array( "type" => "textfield", "heading" => __("Class", "themeum"), "param_name" => "class", "value" => "" ), ) )); }
Upload File
Create Folder