Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //Themed linked Shorcode
- function theme_link($atts, $content = null ) {
- $a = shortcode_atts(array(
- 'link' => '#'
- ), $atts);
- return '<a class="styled-link" href="'.$a['link'] .'">' . $content . '<i></i></a>';
- }
- add_shortcode( 'link', 'theme_link' );
- function theme_link($atts, $content = null ) {
- $a = shortcode_atts(array(
- 'link' => '#',
- 'type' => 'base'
- ), $atts);
- return '<a class="styled-link btn' . $a['type'] .'" href="'.$a['link'] .'">' . $content . '<i></i></a>';
- }
- add_shortcode( 'link', 'theme_link' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement