From 7eac40704acffd2c1afa8c9ab303bedf6a927029 Mon Sep 17 00:00:00 2001 From: tomusborne Date: Thu, 4 Jan 2018 12:23:16 -0800 Subject: [PATCH] 1.0 --- lightweight-grid-columns.php | 4 ++-- readme.txt | 30 +++++++++++++++++++----------- 2 files changed, 21 insertions(+), 13 deletions(-) diff --git a/lightweight-grid-columns.php b/lightweight-grid-columns.php index 1c3428c..17df79f 100644 --- a/lightweight-grid-columns.php +++ b/lightweight-grid-columns.php @@ -3,7 +3,7 @@ Plugin Name: Lightweight Grid Columns Plugin URI: https://generatepress.com Description: Add columns to your content using easy to use shortcodes. -Version: 0.7 +Version: 1.0 Author: Tom Usborne Author URI: https://tomusborne.com License: GNU General Public License v2 or later @@ -11,7 +11,7 @@ Text Domain: lightweight-grid-columns */ -define( 'LGC_VERSION', '0.7'); +define( 'LGC_VERSION', '1.0' ); add_action( 'plugins_loaded', 'lgc_load_textdomain' ); /** diff --git a/readme.txt b/readme.txt index 500fad8..fc5bca0 100644 --- a/readme.txt +++ b/readme.txt @@ -2,9 +2,9 @@ Contributors: edge22 Donate link: https://generatepress.com/ongoing-development Tags: columns, columns shortcode, grid columns -Requires at least: 4.0 -Tested up to: 4.5.2 -Stable tag: 0.7 +Requires at least: 4.5 +Tested up to: 4.9 +Stable tag: 1.0 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -55,20 +55,20 @@ Fair enough! Simply add the shortcode to your content. For example, the below will output 4 columns on desktop, 2 columns on tablet and 1 column on mobile [lgc_column grid="25" tablet_grid="50" mobile_grid="100"]Some content[/lgc_column] - + [lgc_column grid="25" tablet_grid="50" mobile_grid="100"]Some content[/lgc_column] - + [lgc_column grid="25" tablet_grid="50" mobile_grid="100"]Some content[/lgc_column] - + [lgc_column grid="25" tablet_grid="50" mobile_grid="100" last="true"]Some content[/lgc_column] - + Take note of our last column - see the last="true" part? Don't forget ;) = What are my options for percentages? = This is taken directly from (http://unsemantic.com): -There are grid classes named grid-x where "x" is a number that represents the percentage width of each grid unit. These cover multiples of 5, up to 100 (grid-5, grid-10 ... grid-95, grid-100). There are also classes for dividing a page into thirds: grid-33 and grid-66 which are 33.3333% and 66.6667% wide, respectively. +There are grid classes named grid-x where "x" is a number that represents the percentage width of each grid unit. These cover multiples of 5, up to 100 (grid-5, grid-10 ... grid-95, grid-100). There are also classes for dividing a page into thirds: grid-33 and grid-66 which are 33.3333% and 66.6667% wide, respectively. = Are there any other options I can use in the shortcode? = @@ -77,13 +77,13 @@ Yes! You can use: = class = - + [lgc_column grid="25" tablet_grid="50" mobile_grid="100" class="push-25"]Some content[/lgc_column] = style = [lgc_column grid="25" tablet_grid="50" mobile_grid="100" style="padding-left:0px;"]Some content[/lgc_column] - + = equal_heights = By default, JS equal heights are set to "true". @@ -98,6 +98,10 @@ By default, JS equal heights are set to "true". == Changelog == += 1.0 = +* Move custom class value to the parent container +* Code cleanup + = 0.7 = * Fix weird scroll behavior caused by transitions and matchHeight * Only load matchHeight on pages where columns are present with it enabled @@ -126,6 +130,10 @@ By default, JS equal heights are set to "true". == Upgrade Notice == += 1.0 = +* Move custom class value to the parent container +* Code cleanup + = 0.7 = * Fix weird scroll behavior caused by transitions and matchHeight * Only load matchHeight on pages where columns are present with it enabled @@ -149,4 +157,4 @@ Add old IE compatibility Allow line breaks inside your columns = 0.1 = -* Initial release \ No newline at end of file +* Initial release