diff --git a/cherry-plugin.php b/cherry-plugin.php index 72d4c2f..17f3037 100644 --- a/cherry-plugin.php +++ b/cherry-plugin.php @@ -1,7 +1,7 @@ '' - ), $atts ) ); - //remove wrong nested

$content = remove_invalid_tags( $content, array('p') ); - $content = wpautop( $content ); - - // Allow other shortcodes inside the column content. - if ( false !== strpos( $content, '[' ) ) - $content = do_shortcode( shortcode_unautop( $content ) ); - + extract(shortcode_atts(array( + 'custom_class' => '' + ), $atts)); + // add divs to the content $return = '

'; $return .= do_shortcode( $content ); $return .= '
'; - $return = apply_filters( 'cherry_plugin_shortcode_output', $return, $atts, $shortcodename ); - return $return; } add_shortcode( 'span1', 'cherry_grid_column' ); @@ -42,12 +34,6 @@ function one_half_column($atts, $content = null) { //remove wrong nested

$content = remove_invalid_tags( $content, array('p') ); - $content = wpautop( $content ); - - // Allow other shortcodes inside the column content. - if ( false !== strpos( $content, '[' ) ) - $content = do_shortcode( shortcode_unautop( $content ) ); - // add divs to the content $return = '

'; $return .= do_shortcode( $content ); @@ -62,12 +48,6 @@ function one_third_column( $atts, $content = null ) { //remove wrong nested

$content = remove_invalid_tags( $content, array('p') ); - $content = wpautop( $content ); - - // Allow other shortcodes inside the column content. - if ( false !== strpos( $content, '[' ) ) - $content = do_shortcode( shortcode_unautop( $content ) ); - // add divs to the content $return = '

'; $return .= do_shortcode( $content ); @@ -82,12 +62,6 @@ function two_third_column( $atts, $content = null ) { //remove wrong nested

$content = remove_invalid_tags( $content, array('p') ); - $content = wpautop( $content ); - - // Allow other shortcodes inside the column content. - if ( false !== strpos( $content, '[' ) ) - $content = do_shortcode( shortcode_unautop( $content ) ); - // add divs to the content $return = '

'; $return .= do_shortcode( $content ); @@ -102,12 +76,6 @@ function one_fourth_column( $atts, $content = null ) { //remove wrong nested

$content = remove_invalid_tags( $content, array('p') ); - $content = wpautop( $content ); - - // Allow other shortcodes inside the column content. - if ( false !== strpos( $content, '[' ) ) - $content = do_shortcode( shortcode_unautop( $content ) ); - // add divs to the content $return = '

'; $return .= do_shortcode( $content ); @@ -122,12 +90,6 @@ function three_fourth_column( $atts, $content = null) { //remove wrong nested

$content = remove_invalid_tags( $content, array('p') ); - $content = wpautop( $content ); - - // Allow other shortcodes inside the column content. - if ( false !== strpos( $content, '[' ) ) - $content = do_shortcode( shortcode_unautop( $content ) ); - // add divs to the content $return = '

'; $return .= do_shortcode( $content ); @@ -142,12 +104,6 @@ function one_sixth_column( $atts, $content = null ) { //remove wrong nested

$content = remove_invalid_tags( $content, array('p') ); - $content = wpautop( $content ); - - // Allow other shortcodes inside the column content. - if ( false !== strpos( $content, '[' ) ) - $content = do_shortcode( shortcode_unautop( $content ) ); - // add divs to the content $return = '

'; $return .= do_shortcode( $content ); @@ -162,12 +118,6 @@ function five_sixth_column( $atts, $content = null ) { //remove wrong nested

$content = remove_invalid_tags( $content, array('p') ); - $content = wpautop( $content ); - - // Allow other shortcodes inside the column content. - if ( false !== strpos( $content, '[' ) ) - $content = do_shortcode( shortcode_unautop( $content ) ); - // add divs to the content $return = '

'; $return .= do_shortcode( $content );