Created
August 19, 2014 08:04
-
-
Save fovoc/266e1f17795be82751fd to your computer and use it in GitHub Desktop.
shoestrap-3-extra-widget-areas - /includes/functions.php#L211
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| function shoestrap_ewa_widget_area_wrapper( $action = '', $num = 3 ) { | |
| global $ss_framework; | |
| if ( shoestrap_getVariable( $action . '_check' ) == '1' ) { | |
| echo $ss_framework->open_row( 'div', null, $action.'_outer', null ); | |
| echo '<div class="'.$action.'">'; | |
| for ( $i = 1; $i < ( $num + 1 ); $i++ ) { | |
| echo '<div class="'. $ss_framework->column_classes( array( 'medium' => 12 / $num ), null ) .'">'; | |
| dynamic_sidebar( $action . '_' . $i ); | |
| echo '</div>'; | |
| } | |
| echo '</div>'; | |
| echo $ss_framework->close_row( 'div' ); | |
| } elseif ( shoestrap_getVariable( $action . '_check' ) == '2' ) { | |
| echo apply_filters( 'the_content', shoestrap_getVariable( $action . '_custom_content' ) ); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment