Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function my_carousel_shortcodes_child ($atts , $content = null){
- $atts = shortcode_atts(
- array(
- "carousel_image" => '',
- "carousel_heading" => '',
- "carousel_detail" => '',
- ),$atts
- );
- $slider_structure_child = '<div class="single-slide">';
- $slider_structure_child .= '<div class="value-icon-wrapper">';
- $slider_structure_child .= '<img class="value-icon" src="'.wp_get_attachment_url($atts['carousel_image']).'" alt="'.$atts['carousel_heading'].'">';
- $slider_structure_child .= '</div>';
- $slider_structure_child .= '<h3>'.$atts['carousel_heading'].'</h3>';
- $slider_structure_child .= '<p>'.$atts['carousel_detail'].'</p>';
- $slider_structure_child .= '</div>';
- return $slider_structure_child;
- }
- add_shortcode('my_carousel_child' , 'my_carousel_shortcodes_child');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement