Version Description
Download this release
Release Info
Developer | kurudrive |
Plugin | Lightning Advanced Unit |
Version | 1.3.1 |
Comparing to | |
See all releases |
Code changes from version 1.3.0 to 1.3.1
- inc/sidebar-position.php +4 -6
- lightning_advanced_unit.php +1 -1
- readme.txt +1 -1
inc/sidebar-position.php
CHANGED
@@ -26,13 +26,11 @@ function lightning_adv_unit_customize_register_sidebar_position($wp_customize) {
|
|
26 |
/*-------------------------------------------*/
|
27 |
/* Position Change
|
28 |
/*-------------------------------------------*/
|
29 |
-
add_action( 'wp_head', 'lightning_adv_unit_sidebar_position_custom'
|
30 |
function lightning_adv_unit_sidebar_position_custom(){
|
31 |
-
$options = get_option('lightning_theme_options');
|
32 |
-
if (isset($options['sidebar_position']) && $options['sidebar_position']
|
33 |
$custom_css = "@media (min-width: 992px) { .subSection { float:left;margin-left:0; } .mainSection { float:right; } }";
|
34 |
-
|
35 |
-
echo $custom_css;
|
36 |
-
echo '</style>';
|
37 |
}
|
38 |
}
|
26 |
/*-------------------------------------------*/
|
27 |
/* Position Change
|
28 |
/*-------------------------------------------*/
|
29 |
+
add_action( 'wp_head', 'lightning_adv_unit_sidebar_position_custom', 2 );
|
30 |
function lightning_adv_unit_sidebar_position_custom(){
|
31 |
+
$options = get_option( 'lightning_theme_options' );
|
32 |
+
if ( isset($options['sidebar_position'] ) && $options['sidebar_position'] === "left" ){
|
33 |
$custom_css = "@media (min-width: 992px) { .subSection { float:left;margin-left:0; } .mainSection { float:right; } }";
|
34 |
+
wp_add_inline_style( 'lightning-design-style', $custom_css );
|
|
|
|
|
35 |
}
|
36 |
}
|
lightning_advanced_unit.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/**
|
3 |
* Plugin Name: Lightning Advanced Unit
|
4 |
* Plugin URI: http://lightning.vektor-inc.co.jp/
|
5 |
-
* Version: 1.3.
|
6 |
* Author: Vektor,Inc.
|
7 |
* Author URI: http://www.vektor-inc.co.jp
|
8 |
* Description: This is a plug-ins that extend the functionality of the theme "Lightning".
|
2 |
/**
|
3 |
* Plugin Name: Lightning Advanced Unit
|
4 |
* Plugin URI: http://lightning.vektor-inc.co.jp/
|
5 |
+
* Version: 1.3.1
|
6 |
* Author: Vektor,Inc.
|
7 |
* Author URI: http://www.vektor-inc.co.jp
|
8 |
* Description: This is a plug-ins that extend the functionality of the theme "Lightning".
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link:
|
|
4 |
Tags: Lightning,
|
5 |
Requires at least: 4.2
|
6 |
Tested up to: 4.6.0
|
7 |
-
Stable tag: 1.3.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
4 |
Tags: Lightning,
|
5 |
Requires at least: 4.2
|
6 |
Tested up to: 4.6.0
|
7 |
+
Stable tag: 1.3.1
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|