' . do_shortcode($content) . ''; } add_shortcode( 'row', 'audemedia_shortcode_row' ); // Columns [column][/column] function audemedia_shortcode_column( $atts, $content = null ) { extract( shortcode_atts( array( 'center' => '', 'number' => '', ), $atts ) ); // Set the 'center' variable if ($center == 'true') { $center = 'centered'; } return '

' . do_shortcode($content) . '

'; } add_shortcode( 'column', 'audemedia_shortcode_column' ); // Buttons [button][/button] function audemedia_shortcode_button( $atts, $content = null ) { extract( shortcode_atts( array( 'link' => '#', 'size' => 'medium', 'background' => '', 'style' => '' ), $atts ) ); return '' . $content . ''; } add_shortcode( 'button', 'audemedia_shortcode_button' ); // Panels [panel][/panel] function audemedia_shortcode_panel( $atts, $content = null ) { extract( shortcode_atts( array( 'type' => '', 'style' => '', 'background' => '', ), $atts ) ); return '
' . do_shortcode($content) . '
'; } add_shortcode( 'panel', 'audemedia_shortcode_panel' ); // Pricing Boxes [pricingbox][/pricingbox] function audemedia_shortcode_pricingbox( $atts, $content = null ) { extract( shortcode_atts( array( 'title' => '', 'price' => '', 'description' => '', 'link' => '', 'linktext' => '', ), $atts ) ); return ''; } add_shortcode( 'pricingbox', 'audemedia_shortcode_pricingbox' ); /*--------------------------------------*/ /* Clean up Shortcodes /*--------------------------------------*/ function aude_clean_shortcodes($content){ $array = array ( '

[' => '[', ']

' => ']', ']
' => ']' ); $content = strtr($content, $array); return $content; } add_filter('the_content', 'aude_clean_shortcodes'); // Add Shortcodes to Post / Pages add_action('media_buttons','add_sh_select',11); function add_sh_select(){ global $shortcode_tags; $shortcode_list = ''; /* ------------------------------------- */ /* enter names of shortcode to exclude below */ /* ------------------------------------- */ $exclude = array("caption", "gallery", "wp_caption", "embed"); echo ''; } add_action('admin_head', 'button_js'); function button_js() { echo ''; } ?>