Changeset 1438044
- Timestamp:
- 06/16/2016 08:39:51 PM (10 years ago)
- Location:
- tuxedo-responsive-widget-columns/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (2 diffs)
-
tuxedo_responsive_widget_columns.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tuxedo-responsive-widget-columns/trunk/readme.txt
r1339367 r1438044 3 3 Tags: sidebars, sidebar, widget areas, widget, widgets, sidebar columns, widget columns, widget area columns, split sidebar, split widget area, layout, grid, column, columns, row, rows, responsive 4 4 Requires at least: 3.4 5 Tested up to: 4. 4.16 Stable tag: 1. 05 Tested up to: 4.5.2 6 Stable tag: 1.1 7 7 License: GPLv2 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 34 34 == Changelog == 35 35 36 = 1.1 = 37 * If no row/column widgets are used TRWC no longer outputs grid wrappers. Themes that have horizontal widget areas built-in should now function properly. 38 36 39 = 1.0 = 37 40 * Initial release. -
tuxedo-responsive-widget-columns/trunk/tuxedo_responsive_widget_columns.php
r1339345 r1438044 4 4 * Plugin URI: https://github.com/andtrev/Tuxedo-Responsive-Widget-Columns 5 5 * Description: Split sidebars and widget areas into responsive columns. 6 * Version: 1. 06 * Version: 1.1 7 7 * Author: Trevor Anderson 8 8 * Author URI: https://github.com/andtrev … … 206 206 static $cur_col_in_row = 1; // Current column in row. 207 207 static $cols_per_row = array( 1 ); // Columns per row. 208 static $total_tux_widgets = 0; // Total row/column widgets. 208 209 $before = ''; 209 210 … … 216 217 $cur_row = 0; 217 218 $cols_per_row = array( 1 ); 219 $total_tux_widgets = 0; 218 220 foreach ( $sidebar_widgets[$sidebar_id] as $widget_id ) { 219 221 if ( strpos( $widget_id, 'tux_col' ) !== false ) { … … 224 226 $cols_per_row[$cur_row]++; 225 227 } 228 $total_tux_widgets++; 226 229 } elseif ( strpos( $widget_id, 'tux_row' ) !== false ) { 227 230 $cur_row++; 228 231 $cols_per_row[$cur_row] = 1; 232 $total_tux_widgets++; 229 233 } 230 234 } … … 232 236 $before = '<div class="tux-row"><div class="tux-col tux-span-1-of-' . $cols_per_row[0] . '">'; 233 237 238 } 239 240 if ( $total_tux_widgets < 1 ) { 241 return $params; 234 242 } 235 243
Note: See TracChangeset
for help on using the changeset viewer.