Version Description
- Move custom class value to the parent container
- Code cleanup
Download this release
Release Info
Developer | edge22 |
Plugin | Lightweight Grid Columns |
Version | 1.0 |
Comparing to | |
See all releases |
Code changes from version 0.7 to 1.0
- languages/lightweight-grid-columns.mo +0 -0
- languages/lightweight-grid-columns.po +0 -48
- lightweight-grid-columns.php +143 -145
- readme.txt +19 -11
languages/lightweight-grid-columns.mo
DELETED
Binary file
|
languages/lightweight-grid-columns.po
DELETED
@@ -1,48 +0,0 @@
|
|
1 |
-
msgid ""
|
2 |
-
msgstr ""
|
3 |
-
"Project-Id-Version: Lightweight Grid Columns\n"
|
4 |
-
"POT-Creation-Date: 2015-05-20 16:34-0800\n"
|
5 |
-
"PO-Revision-Date: 2015-05-20 16:35-0800\n"
|
6 |
-
"Last-Translator: \n"
|
7 |
-
"Language-Team: \n"
|
8 |
-
"Language: en_GB\n"
|
9 |
-
"MIME-Version: 1.0\n"
|
10 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
-
"Content-Transfer-Encoding: 8bit\n"
|
12 |
-
"X-Generator: Poedit 1.7.6\n"
|
13 |
-
"X-Poedit-Basepath: ..\n"
|
14 |
-
"X-Poedit-SourceCharset: UTF-8\n"
|
15 |
-
"X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;"
|
16 |
-
"esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;"
|
17 |
-
"_n_noop:1,2;_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
|
18 |
-
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
19 |
-
"X-Poedit-SearchPath-0: .\n"
|
20 |
-
"X-Poedit-SearchPathExcluded-0: *.js\n"
|
21 |
-
|
22 |
-
#: lightweight-grid-columns.php:85
|
23 |
-
msgid "Add columns"
|
24 |
-
msgstr ""
|
25 |
-
|
26 |
-
#: lightweight-grid-columns.php:86
|
27 |
-
msgid "Columns"
|
28 |
-
msgstr ""
|
29 |
-
|
30 |
-
#: lightweight-grid-columns.php:87
|
31 |
-
msgid "Desktop grid percentage"
|
32 |
-
msgstr ""
|
33 |
-
|
34 |
-
#: lightweight-grid-columns.php:88
|
35 |
-
msgid "Tablet grid percentage"
|
36 |
-
msgstr ""
|
37 |
-
|
38 |
-
#: lightweight-grid-columns.php:89
|
39 |
-
msgid "Mobile grid percentage"
|
40 |
-
msgstr ""
|
41 |
-
|
42 |
-
#: lightweight-grid-columns.php:90
|
43 |
-
msgid "Content"
|
44 |
-
msgstr ""
|
45 |
-
|
46 |
-
#: lightweight-grid-columns.php:91
|
47 |
-
msgid "Last column in row?"
|
48 |
-
msgstr ""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
lightweight-grid-columns.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Lightweight Grid Columns
|
4 |
Plugin URI: https://generatepress.com
|
5 |
Description: Add columns to your content using easy to use shortcodes.
|
6 |
-
Version: 0
|
7 |
Author: Tom Usborne
|
8 |
Author URI: https://tomusborne.com
|
9 |
License: GNU General Public License v2 or later
|
@@ -11,177 +11,175 @@ License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
|
11 |
Text Domain: lightweight-grid-columns
|
12 |
*/
|
13 |
|
14 |
-
define( 'LGC_VERSION', '0
|
15 |
|
|
|
16 |
/**
|
17 |
* Load plugin textdomain.
|
18 |
*
|
19 |
* @since 0.1
|
20 |
*/
|
21 |
-
add_action( 'plugins_loaded', 'lgc_load_textdomain' );
|
22 |
function lgc_load_textdomain() {
|
23 |
-
load_plugin_textdomain( 'lightweight-grid-columns' );
|
24 |
}
|
25 |
|
26 |
-
if ( ! function_exists( 'lgc_shortcodes_register_shortcode' ) )
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
function lgc_shortcodes_register_shortcode()
|
32 |
-
|
33 |
-
|
34 |
}
|
35 |
-
endif;
|
36 |
|
37 |
-
if ( ! function_exists( 'lgc_add_shortcode_button' ) )
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
function lgc_add_shortcode_button()
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
|
|
52 |
}
|
53 |
}
|
54 |
-
endif;
|
55 |
|
56 |
-
if ( ! function_exists( 'lgc_shortcodes_add_tinymce_plugin' ) )
|
57 |
-
/*
|
58 |
-
|
59 |
-
|
60 |
-
function lgc_shortcodes_add_tinymce_plugin( $plugin_array ) {
|
61 |
-
|
62 |
-
|
|
|
63 |
}
|
64 |
-
endif;
|
65 |
|
66 |
-
if ( ! function_exists( 'lgc_shortcodes_register_button' ) )
|
67 |
-
/*
|
68 |
-
|
69 |
-
|
70 |
-
function lgc_shortcodes_register_button( $buttons ) {
|
71 |
-
|
72 |
-
|
|
|
73 |
}
|
74 |
-
endif;
|
75 |
|
76 |
-
if ( ! function_exists( 'lgc_translatable_strings' ) )
|
77 |
-
add_action( 'admin_head','lgc_translatable_strings', 0 );
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
|
|
|
|
|
|
91 |
}
|
92 |
-
endif;
|
93 |
|
94 |
-
if ( ! function_exists( 'lgc_shortcodes_admin_css' ) )
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
function lgc_shortcodes_admin_css() {
|
100 |
-
|
|
|
101 |
}
|
102 |
-
endif;
|
103 |
|
104 |
-
if ( ! function_exists( 'lgc_shortcodes_css' ) )
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
function lgc_shortcodes_css() {
|
110 |
-
|
111 |
-
|
|
|
112 |
}
|
113 |
-
endif;
|
114 |
|
115 |
-
if ( ! function_exists( 'lgc_columns_shortcode' ) )
|
116 |
-
/*
|
117 |
-
|
118 |
-
|
119 |
-
function lgc_columns_shortcode( $atts , $content = null ) {
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
)
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
$content = sprintf(
|
138 |
-
'<div %9$s class="lgc-column lgc-grid-parent %1$s %2$s %3$s %4$s"><div %6$s class="inside-grid-column %5$s">%7$s</div></div>%8$s',
|
139 |
-
'lgc-grid-' . intval( $grid ),
|
140 |
-
'lgc-tablet-grid-' . intval( $tablet_grid ),
|
141 |
-
'lgc-mobile-grid-' . intval( $mobile_grid ),
|
142 |
-
( 'true' == $equal_heights ) ? 'lgc-equal-heights' : '',
|
143 |
-
esc_attr( $class ),
|
144 |
-
( '' !== $style ) ? ' style="' . esc_attr( $style ) . '"' : '',
|
145 |
-
do_shortcode( $content ),
|
146 |
-
( 'true' == $last ) ? '<div class="lgc-clear"></div>' : '',
|
147 |
-
( '' !== $id ) ? 'id="' . $id . '"' : ''
|
148 |
-
);
|
149 |
-
|
150 |
-
return force_balance_tags( $content );
|
151 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
152 |
}
|
153 |
-
endif;
|
154 |
|
155 |
-
if ( ! function_exists( 'lgc_columns_helper' ) )
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
function lgc_columns_helper( $content )
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
}
|
171 |
-
endif;
|
172 |
|
173 |
-
if ( ! function_exists( 'lgc_ie_compatibility' ) )
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
function lgc_ie_compatibility()
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
}
|
187 |
-
endif;
|
3 |
Plugin Name: Lightweight Grid Columns
|
4 |
Plugin URI: https://generatepress.com
|
5 |
Description: Add columns to your content using easy to use shortcodes.
|
6 |
+
Version: 1.0
|
7 |
Author: Tom Usborne
|
8 |
Author URI: https://tomusborne.com
|
9 |
License: GNU General Public License v2 or later
|
11 |
Text Domain: lightweight-grid-columns
|
12 |
*/
|
13 |
|
14 |
+
define( 'LGC_VERSION', '1.0' );
|
15 |
|
16 |
+
add_action( 'plugins_loaded', 'lgc_load_textdomain' );
|
17 |
/**
|
18 |
* Load plugin textdomain.
|
19 |
*
|
20 |
* @since 0.1
|
21 |
*/
|
|
|
22 |
function lgc_load_textdomain() {
|
23 |
+
load_plugin_textdomain( 'lightweight-grid-columns' );
|
24 |
}
|
25 |
|
26 |
+
if ( ! function_exists( 'lgc_shortcodes_register_shortcode' ) ) {
|
27 |
+
add_action( 'init', 'lgc_shortcodes_register_shortcode' );
|
28 |
+
/*
|
29 |
+
* Declare our shortcode
|
30 |
+
*/
|
31 |
+
function lgc_shortcodes_register_shortcode() {
|
32 |
+
add_shortcode( 'lgc_column', 'lgc_columns_shortcode' );
|
33 |
+
}
|
34 |
}
|
|
|
35 |
|
36 |
+
if ( ! function_exists( 'lgc_add_shortcode_button' ) ) {
|
37 |
+
add_action( 'admin_init', 'lgc_add_shortcode_button' );
|
38 |
+
/*
|
39 |
+
* Set it up so we can register our TinyMCE button
|
40 |
+
*/
|
41 |
+
function lgc_add_shortcode_button() {
|
42 |
+
// check user permissions
|
43 |
+
if ( ! current_user_can( 'edit_posts' ) && ! current_user_can( 'edit_pages' ) ) {
|
44 |
+
return;
|
45 |
+
}
|
46 |
+
|
47 |
+
// check if WYSIWYG is enabled
|
48 |
+
if ( get_user_option( 'rich_editing' ) == 'true') {
|
49 |
+
add_filter( 'mce_external_plugins', 'lgc_shortcodes_add_tinymce_plugin' );
|
50 |
+
add_filter( 'mce_buttons', 'lgc_shortcodes_register_button' );
|
51 |
+
}
|
52 |
}
|
53 |
}
|
|
|
54 |
|
55 |
+
if ( ! function_exists( 'lgc_shortcodes_add_tinymce_plugin' ) ) {
|
56 |
+
/*
|
57 |
+
* Register our tinyMCE button javascript
|
58 |
+
*/
|
59 |
+
function lgc_shortcodes_add_tinymce_plugin( $plugin_array ) {
|
60 |
+
$plugin_array['lgc_shortcodes_button'] = plugins_url( '/js/button.js', __FILE__ );
|
61 |
+
return $plugin_array;
|
62 |
+
}
|
63 |
}
|
|
|
64 |
|
65 |
+
if ( ! function_exists( 'lgc_shortcodes_register_button' ) ) {
|
66 |
+
/*
|
67 |
+
* Register our TinyMCE button
|
68 |
+
*/
|
69 |
+
function lgc_shortcodes_register_button( $buttons ) {
|
70 |
+
array_push( $buttons, 'lgc_shortcodes_button' );
|
71 |
+
return $buttons;
|
72 |
+
}
|
73 |
}
|
|
|
74 |
|
75 |
+
if ( ! function_exists( 'lgc_translatable_strings' ) ) {
|
76 |
+
add_action( 'admin_head','lgc_translatable_strings', 0 );
|
77 |
+
/*
|
78 |
+
* Add translatable strings.
|
79 |
+
*/
|
80 |
+
function lgc_translatable_strings() {
|
81 |
+
?>
|
82 |
+
<script type="text/javascript">
|
83 |
+
var lgc_add_columns = '<?php esc_html_e( 'Add columns', 'lightweight-grid-columns' ); ?>';
|
84 |
+
var lgc_columns = '<?php esc_html_e( 'Columns', 'lightweight-grid-columns' ); ?>';
|
85 |
+
var lgc_desktop = '<?php esc_html_e( 'Desktop grid percentage', 'lightweight-grid-columns' ); ?>';
|
86 |
+
var lgc_tablet = '<?php esc_html_e( 'Tablet grid percentage', 'lightweight-grid-columns' ); ?>';
|
87 |
+
var lgc_mobile = '<?php esc_html_e( 'Mobile grid percentage', 'lightweight-grid-columns' ); ?>';
|
88 |
+
var lgc_content = '<?php esc_html_e( 'Content', 'lightweight-grid-columns' ); ?>';
|
89 |
+
var lgc_last = '<?php esc_html_e( 'Last column in row?', 'lightweight-grid-columns' ); ?>';
|
90 |
+
</script>
|
91 |
+
<?php
|
92 |
+
}
|
93 |
}
|
|
|
94 |
|
95 |
+
if ( ! function_exists( 'lgc_shortcodes_admin_css' ) ) {
|
96 |
+
add_action( 'admin_enqueue_scripts', 'lgc_shortcodes_admin_css' );
|
97 |
+
/*
|
98 |
+
* Add our admin CSS
|
99 |
+
*/
|
100 |
+
function lgc_shortcodes_admin_css() {
|
101 |
+
wp_enqueue_style( 'lgc-columns-admin', plugins_url('/css/admin.css', __FILE__) );
|
102 |
+
}
|
103 |
}
|
|
|
104 |
|
105 |
+
if ( ! function_exists( 'lgc_shortcodes_css' ) ) {
|
106 |
+
add_action( 'wp_enqueue_scripts', 'lgc_shortcodes_css', 99 );
|
107 |
+
/*
|
108 |
+
* Add the unsemantic framework
|
109 |
+
*/
|
110 |
+
function lgc_shortcodes_css() {
|
111 |
+
wp_enqueue_style( 'lgc-unsemantic-grid-responsive-tablet', plugins_url('/css/unsemantic-grid-responsive-tablet.css', __FILE__), array(), LGC_VERSION, 'all' );
|
112 |
+
wp_register_script( 'lgc-matchHeight', plugins_url('/js/jquery.matchHeight-min.js', __FILE__), array( 'jquery' ), LGC_VERSION, true );
|
113 |
+
}
|
114 |
}
|
|
|
115 |
|
116 |
+
if ( ! function_exists( 'lgc_columns_shortcode' ) ) {
|
117 |
+
/*
|
118 |
+
* Create the output of the columns shortcode
|
119 |
+
*/
|
120 |
+
function lgc_columns_shortcode( $atts , $content = null ) {
|
121 |
+
extract( shortcode_atts(
|
122 |
+
array(
|
123 |
+
'grid' => '50',
|
124 |
+
'tablet_grid' => '50',
|
125 |
+
'mobile_grid' => '100',
|
126 |
+
'last' => '',
|
127 |
+
'class' => '',
|
128 |
+
'style' => '',
|
129 |
+
'equal_heights' => 'true',
|
130 |
+
'id' => ''
|
131 |
+
), $atts )
|
132 |
+
);
|
133 |
+
|
134 |
+
if ( 'true' == $equal_heights ) {
|
135 |
+
wp_enqueue_script( 'lgc-matchHeight' );
|
136 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
137 |
|
138 |
+
$content = sprintf(
|
139 |
+
'<div %9$s class="lgc-column lgc-grid-parent %1$s %2$s %3$s %4$s %5$s"><div %6$s class="inside-grid-column">%7$s</div></div>%8$s',
|
140 |
+
'lgc-grid-' . intval( $grid ),
|
141 |
+
'lgc-tablet-grid-' . intval( $tablet_grid ),
|
142 |
+
'lgc-mobile-grid-' . intval( $mobile_grid ),
|
143 |
+
( 'true' == $equal_heights ) ? 'lgc-equal-heights' : '',
|
144 |
+
esc_attr( $class ),
|
145 |
+
( '' !== $style ) ? ' style="' . esc_attr( $style ) . '"' : '',
|
146 |
+
do_shortcode( $content ),
|
147 |
+
( 'true' == $last ) ? '<div class="lgc-clear"></div>' : '',
|
148 |
+
( '' !== $id ) ? 'id="' . esc_attr( $id ) . '"' : ''
|
149 |
+
);
|
150 |
+
|
151 |
+
return force_balance_tags( $content );
|
152 |
+
}
|
153 |
}
|
|
|
154 |
|
155 |
+
if ( ! function_exists( 'lgc_columns_helper' ) ) {
|
156 |
+
add_filter( 'the_content', 'lgc_columns_helper' );
|
157 |
+
/*
|
158 |
+
* Fix the WP paragraph and <br /> issue with shortcodes
|
159 |
+
*/
|
160 |
+
function lgc_columns_helper( $content ) {
|
161 |
+
$array = array (
|
162 |
+
'<p>[lgc_column' => '[lgc_column',
|
163 |
+
'lgc_column]</p>' => 'lgc_column]',
|
164 |
+
'<br />[lgc_column' => '[lgc_column',
|
165 |
+
'lgc_column]<br />' => 'lgc_column]'
|
166 |
+
);
|
167 |
+
|
168 |
+
return strtr( $content, $array );
|
169 |
+
}
|
170 |
}
|
|
|
171 |
|
172 |
+
if ( ! function_exists( 'lgc_ie_compatibility' ) ) {
|
173 |
+
add_action( 'wp_head', 'lgc_ie_compatibility' );
|
174 |
+
/**
|
175 |
+
* Add compatibility for IE8 and lower
|
176 |
+
* @since 0.3
|
177 |
+
*/
|
178 |
+
function lgc_ie_compatibility() {
|
179 |
+
?>
|
180 |
+
<!--[if lt IE 9]>
|
181 |
+
<link rel="stylesheet" href="<?php echo plugins_url('/css/ie.min.css', __FILE__); ?>" />
|
182 |
+
<![endif]-->
|
183 |
+
<?php
|
184 |
+
}
|
185 |
}
|
|
readme.txt
CHANGED
@@ -2,9 +2,9 @@
|
|
2 |
Contributors: edge22
|
3 |
Donate link: https://generatepress.com/ongoing-development
|
4 |
Tags: columns, columns shortcode, grid columns
|
5 |
-
Requires at least: 4.
|
6 |
-
Tested up to: 4.
|
7 |
-
Stable tag: 0
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -55,20 +55,20 @@ Fair enough! Simply add the shortcode to your content.
|
|
55 |
For example, the below will output 4 columns on desktop, 2 columns on tablet and 1 column on mobile
|
56 |
|
57 |
[lgc_column grid="25" tablet_grid="50" mobile_grid="100"]Some content[/lgc_column]
|
58 |
-
|
59 |
[lgc_column grid="25" tablet_grid="50" mobile_grid="100"]Some content[/lgc_column]
|
60 |
-
|
61 |
[lgc_column grid="25" tablet_grid="50" mobile_grid="100"]Some content[/lgc_column]
|
62 |
-
|
63 |
[lgc_column grid="25" tablet_grid="50" mobile_grid="100" last="true"]Some content[/lgc_column]
|
64 |
-
|
65 |
Take note of our last column - see the last="true" part? Don't forget ;)
|
66 |
|
67 |
= What are my options for percentages? =
|
68 |
|
69 |
This is taken directly from (http://unsemantic.com):
|
70 |
|
71 |
-
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.
|
72 |
|
73 |
= Are there any other options I can use in the shortcode? =
|
74 |
|
@@ -77,13 +77,13 @@ Yes!
|
|
77 |
You can use:
|
78 |
|
79 |
= class =
|
80 |
-
|
81 |
[lgc_column grid="25" tablet_grid="50" mobile_grid="100" class="push-25"]Some content[/lgc_column]
|
82 |
|
83 |
= style =
|
84 |
|
85 |
[lgc_column grid="25" tablet_grid="50" mobile_grid="100" style="padding-left:0px;"]Some content[/lgc_column]
|
86 |
-
|
87 |
= equal_heights =
|
88 |
|
89 |
By default, JS equal heights are set to "true".
|
@@ -98,6 +98,10 @@ By default, JS equal heights are set to "true".
|
|
98 |
|
99 |
== Changelog ==
|
100 |
|
|
|
|
|
|
|
|
|
101 |
= 0.7 =
|
102 |
* Fix weird scroll behavior caused by transitions and matchHeight
|
103 |
* 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".
|
|
126 |
|
127 |
== Upgrade Notice ==
|
128 |
|
|
|
|
|
|
|
|
|
129 |
= 0.7 =
|
130 |
* Fix weird scroll behavior caused by transitions and matchHeight
|
131 |
* Only load matchHeight on pages where columns are present with it enabled
|
@@ -149,4 +157,4 @@ Add old IE compatibility
|
|
149 |
Allow line breaks inside your columns
|
150 |
|
151 |
= 0.1 =
|
152 |
-
* Initial release
|
2 |
Contributors: edge22
|
3 |
Donate link: https://generatepress.com/ongoing-development
|
4 |
Tags: columns, columns shortcode, grid columns
|
5 |
+
Requires at least: 4.5
|
6 |
+
Tested up to: 4.9
|
7 |
+
Stable tag: 1.0
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
55 |
For example, the below will output 4 columns on desktop, 2 columns on tablet and 1 column on mobile
|
56 |
|
57 |
[lgc_column grid="25" tablet_grid="50" mobile_grid="100"]Some content[/lgc_column]
|
58 |
+
|
59 |
[lgc_column grid="25" tablet_grid="50" mobile_grid="100"]Some content[/lgc_column]
|
60 |
+
|
61 |
[lgc_column grid="25" tablet_grid="50" mobile_grid="100"]Some content[/lgc_column]
|
62 |
+
|
63 |
[lgc_column grid="25" tablet_grid="50" mobile_grid="100" last="true"]Some content[/lgc_column]
|
64 |
+
|
65 |
Take note of our last column - see the last="true" part? Don't forget ;)
|
66 |
|
67 |
= What are my options for percentages? =
|
68 |
|
69 |
This is taken directly from (http://unsemantic.com):
|
70 |
|
71 |
+
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.
|
72 |
|
73 |
= Are there any other options I can use in the shortcode? =
|
74 |
|
77 |
You can use:
|
78 |
|
79 |
= class =
|
80 |
+
|
81 |
[lgc_column grid="25" tablet_grid="50" mobile_grid="100" class="push-25"]Some content[/lgc_column]
|
82 |
|
83 |
= style =
|
84 |
|
85 |
[lgc_column grid="25" tablet_grid="50" mobile_grid="100" style="padding-left:0px;"]Some content[/lgc_column]
|
86 |
+
|
87 |
= equal_heights =
|
88 |
|
89 |
By default, JS equal heights are set to "true".
|
98 |
|
99 |
== Changelog ==
|
100 |
|
101 |
+
= 1.0 =
|
102 |
+
* Move custom class value to the parent container
|
103 |
+
* Code cleanup
|
104 |
+
|
105 |
= 0.7 =
|
106 |
* Fix weird scroll behavior caused by transitions and matchHeight
|
107 |
* Only load matchHeight on pages where columns are present with it enabled
|
130 |
|
131 |
== Upgrade Notice ==
|
132 |
|
133 |
+
= 1.0 =
|
134 |
+
* Move custom class value to the parent container
|
135 |
+
* Code cleanup
|
136 |
+
|
137 |
= 0.7 =
|
138 |
* Fix weird scroll behavior caused by transitions and matchHeight
|
139 |
* Only load matchHeight on pages where columns are present with it enabled
|
157 |
Allow line breaks inside your columns
|
158 |
|
159 |
= 0.1 =
|
160 |
+
* Initial release
|