Skip to content

Commit

Permalink
1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tomusborne committed Jan 4, 2018
1 parent 9bcfa56 commit 7eac407
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 13 deletions.
4 changes: 2 additions & 2 deletions lightweight-grid-columns.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
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
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lightweight-grid-columns
*/

define( 'LGC_VERSION', '0.7');
define( 'LGC_VERSION', '1.0' );

add_action( 'plugins_loaded', 'lgc_load_textdomain' );
/**
Expand Down
30 changes: 19 additions & 11 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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? =

Expand All @@ -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".
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -149,4 +157,4 @@ Add old IE compatibility
Allow line breaks inside your columns

= 0.1 =
* Initial release
* Initial release

0 comments on commit 7eac407

Please sign in to comment.