Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function createTeamBox($atts){
- $args = shortcode_atts(array(
- "nome" => "",
- "cargo" => "Administrador",
- "descricao" => ""
- ), $atts);
- // this is the code that will return
- return '<div class="col-lg-4 col-sm-4 col-md-4 col-xs-4">'.
- '<div class="content-box big bottom-pad-small team-member">'.
- '<h4 class="team-member-name">'.$args['nome'].'</h4>'.
- '<p class="team-member-job">'.$args['cargo'].'</p>'.
- '<p class="team-member-description">'.$args['descricao'].'</p>'.
- '</div> <!-- // content-box big bottom-pad-small -->'.
- '</div> <!-- // col-lg col-sm col-md col-xs -->"';
- }
- add_shortcode('caixa-equipe', 'createTeamBox');
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement