Advertisement
Guest User

Untitled

a guest
Jun 28th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. function my_carousel_shortcodes_child ($atts , $content = null){
  2. $atts = shortcode_atts(
  3. array(
  4. "carousel_image" => '',
  5. "carousel_heading" => '',
  6. "carousel_detail" => '',
  7. ),$atts
  8. );
  9.  
  10. $slider_structure_child = '<div class="single-slide">';
  11. $slider_structure_child .= '<div class="value-icon-wrapper">';
  12. $slider_structure_child .= '<img class="value-icon" src="'.wp_get_attachment_url($atts['carousel_image']).'" alt="'.$atts['carousel_heading'].'">';
  13. $slider_structure_child .= '</div>';
  14. $slider_structure_child .= '<h3>'.$atts['carousel_heading'].'</h3>';
  15. $slider_structure_child .= '<p>'.$atts['carousel_detail'].'</p>';
  16. $slider_structure_child .= '</div>';
  17.  
  18. return $slider_structure_child;
  19. }
  20.  
  21. add_shortcode('my_carousel_child' , 'my_carousel_shortcodes_child');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement