Advertisement
Guest User

Untitled

a guest
Apr 21st, 2015
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. <?php
  2.  
  3. //Themed linked Shorcode
  4. function theme_link($atts, $content = null ) {
  5. $a = shortcode_atts(array(
  6. 'link' => '#'
  7. ), $atts);
  8. return '<a class="styled-link" href="'.$a['link'] .'">' . $content . '<i></i></a>';
  9. }
  10. add_shortcode( 'link', 'theme_link' );
  11.  
  12. function theme_link($atts, $content = null ) {
  13. $a = shortcode_atts(array(
  14. 'link' => '#',
  15. 'type' => 'base'
  16. ), $atts);
  17. return '<a class="styled-link btn' . $a['type'] .'" href="'.$a['link'] .'">' . $content . '<i></i></a>';
  18. }
  19. add_shortcode( 'link', 'theme_link' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement