Skip to content

Instantly share code, notes, and snippets.

@fovoc
Created August 19, 2014 08:04
Show Gist options
  • Select an option

  • Save fovoc/266e1f17795be82751fd to your computer and use it in GitHub Desktop.

Select an option

Save fovoc/266e1f17795be82751fd to your computer and use it in GitHub Desktop.
shoestrap-3-extra-widget-areas - /includes/functions.php#L211
<?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