'#', 'text' => 'Use the "text" attribute to change me!', 'title' => '', 'color' => '', 'size' => '' ), $atts) ); $output = ''; return $output; } /* ============================================================= * Shortcode for social buttons * ============================================================= */ add_shortcode( 'social', 'social' ); function social($atts) { extract( shortcode_atts( array( 'link' => '#', 'text' => 'I\'m a social network link!', 'title' => '', 'network' => '', 'notext' => '' ), $atts) ); $output = ''; return $output; } /* ============================================================= * Shortcode for rows and columns * ============================================================= */ add_shortcode( 'row', 'row' ); function row( $atts, $content = null ) { return '
' . do_shortcode( $content ) . '
'; } add_shortcode( 'column', 'column' ); function column( $atts, $content = null ) { extract( shortcode_atts( array( 'span' => '' ), $atts) ); return '
' . do_shortcode( $content ) . '
'; } /* ============================================================= * Shortcode for alerts * ============================================================= */ add_shortcode( 'alert', 'alert' ); function alert( $atts, $content = null ) { extract( shortcode_atts( array( 'type' => '' ), $atts) ); $output = '
' . do_shortcode( $content ) . '
'; return $output; } ?>