Created
February 18, 2017 17:01
-
-
Save neroze/3e887d5c39ce614a0766ee1a31dfa0a5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function team_wrapper_block_function( $atts, $content ) { | |
extract( shortcode_atts( array( | |
'el_class' => '' | |
), $atts ) ); | |
ob_start(); | |
echo '<section class="team-wrapper"> | |
<div class="team-thumbnail"> | |
<div class="container"> | |
<div class="row-fluid">'.do_shortcode($content).'</div> | |
</div> | |
</div> | |
</section>'; | |
$content = ob_get_contents(); | |
ob_get_clean(); | |
return $content; | |
} | |
add_shortcode( 'team_wrapper', 'team_wrapper_block_function' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment