Version Description
Download this release
Release Info
Developer | kurudrive |
Plugin | Lightning Advanced Unit |
Version | 1.0.0 |
Comparing to | |
See all releases |
Code changes from version 0.0.1 to 1.0.0
- config.rb +0 -1
- css/lightning_adv_admin.css +0 -0
- css/lightning_adv_style.css +0 -1
- css/pluginName_admin.css +0 -0
- css/pluginName_style.css +0 -1
- lightning_advanced_unit.php +1 -38
- plugins/navigation/config.rb +0 -1
- plugins/navigation/js/navigation.js +2 -0
- plugins/navigation/js/navigation.min.js +1 -1
- plugins/widgets/widget-new-posts.php +1 -0
- readme.txt +1 -1
config.rb
CHANGED
@@ -6,5 +6,4 @@ javascripts_dir = "js"
|
|
6 |
# output_style = :compact
|
7 |
output_style = :compressed
|
8 |
line_comments = false
|
9 |
-
cache = false
|
10 |
# sass_options = {:debug_info => false}
|
6 |
# output_style = :compact
|
7 |
output_style = :compressed
|
8 |
line_comments = false
|
|
|
9 |
# sass_options = {:debug_info => false}
|
css/lightning_adv_admin.css
DELETED
File without changes
|
css/lightning_adv_style.css
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
body{color:red !important}
|
|
css/pluginName_admin.css
DELETED
File without changes
|
css/pluginName_style.css
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
|
|
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: 0.0
|
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".
|
@@ -20,8 +20,6 @@ define( 'LIGHTNING_ADVANCED_URL', plugin_dir_url( __FILE__ ) );
|
|
20 |
define( 'LIGHTNING_ADVANCED_DIR', plugin_dir_path( __FILE__ ) );
|
21 |
define( 'LIGHTNING_ADVANCED_SHORT_NAME', 'LTG' );
|
22 |
|
23 |
-
// require_once( ltg_adv_DIR . 'class.lightning_adv-common.php' );
|
24 |
-
|
25 |
require_once( LIGHTNING_ADVANCED_DIR . 'plugins/navigation/navigation.php' );
|
26 |
require_once( LIGHTNING_ADVANCED_DIR . 'plugins/widgets/widget-new-posts.php' );
|
27 |
require_once( LIGHTNING_ADVANCED_DIR . 'plugins/menu-btn-position.php' );
|
@@ -33,38 +31,3 @@ function lightning_adv_unit_textdomain() {
|
|
33 |
load_plugin_textdomain( LIGHTNING_ADVANCED_TEXTDOMAIN, false, dirname(plugin_basename(__FILE__)).'/languages/' );
|
34 |
}
|
35 |
add_action( 'plugins_loaded', 'lightning_adv_unit_textdomain' );
|
36 |
-
|
37 |
-
|
38 |
-
/*-------------------------------------------*/
|
39 |
-
/* Load lightning_adv js
|
40 |
-
/*-------------------------------------------*/
|
41 |
-
// add_action( 'wp_head','ltg_adv_addJs' );
|
42 |
-
// function ltg_adv_addJs() {
|
43 |
-
// wp_register_script( 'ltg_adv_js' , LIGHTNING_ADVANCED_URL.'js/lightning_adv.min.js', array( 'jquery' ), LIGHTNING_ADVANCED_VERSION );
|
44 |
-
// wp_enqueue_script( 'ltg_adv_js' );
|
45 |
-
// }
|
46 |
-
|
47 |
-
/*-------------------------------------------*/
|
48 |
-
/* Load lightning_adv admin js
|
49 |
-
/*-------------------------------------------*/
|
50 |
-
// add_action( 'admin_print_scripts-ltg_adv_****', 'ltg_adv_admin_add_js' );
|
51 |
-
// function ltg_adv_admin_add_js( $hook_suffix ) {
|
52 |
-
// wp_register_script( 'ltg_adv_admin_js', LIGHTNING_ADVANCED_URL.'js/ltg_adv_admin.min.js', array( 'jquery' ), LIGHTNING_ADVANCED_VERSION );
|
53 |
-
// wp_enqueue_script( 'ltg_adv_admin_js' );
|
54 |
-
// }
|
55 |
-
|
56 |
-
/*-------------------------------------------*/
|
57 |
-
/* Load lightning_adv css
|
58 |
-
/*-------------------------------------------*/
|
59 |
-
// add_action( 'wp_enqueue_scripts', 'ltg_adv_style_enq' );
|
60 |
-
// function ltg_adv_style_enq() {
|
61 |
-
// wp_enqueue_style( 'ltg_adv_style_css', LIGHTNING_ADVANCED_URL.'css/ltg_adv_style.css', array(), LIGHTNING_ADVANCED_VERSION, 'all' );
|
62 |
-
// }
|
63 |
-
|
64 |
-
/*-------------------------------------------*/
|
65 |
-
/* Load lightning_adv admin css
|
66 |
-
/*-------------------------------------------*/
|
67 |
-
// add_action( 'admin_print_styles-ltg_adv_****', 'ltg_adv_style_admin_enq' );
|
68 |
-
// function ltg_adv_style_admin_enq() {
|
69 |
-
// wp_enqueue_style( 'ltg_adv_admin_css', LIGHTNING_ADVANCED_URL.'css/ltg_adv_admin.css', array(), LIGHTNING_ADVANCED_VERSION, 'all' );
|
70 |
-
// }
|
2 |
/**
|
3 |
* Plugin Name: Lightning Advanced Unit
|
4 |
* Plugin URI: http://lightning.vektor-inc.co.jp/
|
5 |
+
* Version: 1.0.0
|
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".
|
20 |
define( 'LIGHTNING_ADVANCED_DIR', plugin_dir_path( __FILE__ ) );
|
21 |
define( 'LIGHTNING_ADVANCED_SHORT_NAME', 'LTG' );
|
22 |
|
|
|
|
|
23 |
require_once( LIGHTNING_ADVANCED_DIR . 'plugins/navigation/navigation.php' );
|
24 |
require_once( LIGHTNING_ADVANCED_DIR . 'plugins/widgets/widget-new-posts.php' );
|
25 |
require_once( LIGHTNING_ADVANCED_DIR . 'plugins/menu-btn-position.php' );
|
31 |
load_plugin_textdomain( LIGHTNING_ADVANCED_TEXTDOMAIN, false, dirname(plugin_basename(__FILE__)).'/languages/' );
|
32 |
}
|
33 |
add_action( 'plugins_loaded', 'lightning_adv_unit_textdomain' );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugins/navigation/config.rb
CHANGED
@@ -6,5 +6,4 @@ javascripts_dir = "js"
|
|
6 |
# output_style = :compact
|
7 |
output_style = :compressed
|
8 |
line_comments = false
|
9 |
-
cache = false
|
10 |
# sass_options = {:debug_info => false}
|
6 |
# output_style = :compact
|
7 |
output_style = :compressed
|
8 |
line_comments = false
|
|
|
9 |
# sass_options = {:debug_info => false}
|
plugins/navigation/js/navigation.js
CHANGED
@@ -102,6 +102,8 @@ function menuClose_common(){
|
|
102 |
jQuery('#navSection').removeClass('navSection_open_left');
|
103 |
jQuery('#gMenu_outer').insertAfter('.navbar-header');
|
104 |
jQuery('#navSection').css({"right":"","left":""});
|
|
|
|
|
105 |
}
|
106 |
function run_menuResize(){
|
107 |
var wrap_width = jQuery('body').width();
|
102 |
jQuery('#navSection').removeClass('navSection_open_left');
|
103 |
jQuery('#gMenu_outer').insertAfter('.navbar-header');
|
104 |
jQuery('#navSection').css({"right":"","left":""});
|
105 |
+
jQuery('#bodyInner').css({"width":""});
|
106 |
+
jQuery('#wrap').css({"width":""});
|
107 |
}
|
108 |
function run_menuResize(){
|
109 |
var wrap_width = jQuery('body').width();
|
plugins/navigation/js/navigation.min.js
CHANGED
@@ -4,5 +4,5 @@ if(jQuery(this).hasClass('menuOpen')){slide_menu_open(menuPosition);}else{slide_
|
|
4 |
function slide_menu_open(menuPosition){var navSection_open_position='navSection_open_'+menuPosition;jQuery('#navSection').addClass(navSection_open_position);var wrap_width=jQuery('body').width();jQuery('#bodyInner').css({"width":wrap_width});jQuery('#wrap').css({"width":wrap_width});var menu_width=wrap_width-60+'px';jQuery('#gMenu_outer').appendTo('#navSection');if(menuPosition=='right'){jQuery('#wrap').stop().animate({"margin-left":"-"+menu_width,},200);jQuery('header.siteHeader').stop().animate({"left":"-"+menu_width,},200);jQuery('#navSection').css({"display":"block","width":menu_width,"right":"-"+menu_width}).stop().animate({"right":0,},200);}else if(menuPosition=='left'){jQuery('#wrap').stop().animate({"margin-left":menu_width,},200);jQuery('header.siteHeader').stop().animate({"left":menu_width,},200);jQuery('#navSection').css({"display":"block","width":menu_width,"left":"-"+menu_width}).stop().animate({"left":0,},200,function(){});}}
|
5 |
function slide_menu_close(menuPosition){if(!menuPosition){if(jQuery('#navSection').hasClass('navSection_open_right')){menuPosition='right';}else{menuPosition='left';}}
|
6 |
var wrap_width=jQuery('body').width();jQuery('#bodyInner').css({"width":wrap_width});jQuery('#wrap').css({"width":wrap_width});var menu_width=wrap_width-60+'px';jQuery('#wrap').stop().animate({"margin-left":"0"},200);jQuery('header.siteHeader').stop().animate({"left":"0"},200);if(menuPosition=='right'){jQuery('header.siteHeader').stop().animate({"left":"0"},200);jQuery('#navSection').stop().animate({"right":"-"+menu_width},200,function(){menuClose_common();});}else if(menuPosition=='left'){jQuery('#navSection').stop().animate({"left":"-"+menu_width},200,function(){menuClose_common();});}}
|
7 |
-
function menuClose_common(){jQuery('#navSection').removeClass('navSection_open_right');jQuery('#navSection').removeClass('navSection_open_left');jQuery('#gMenu_outer').insertAfter('.navbar-header');jQuery('#navSection').css({"right":"","left":""});}
|
8 |
function run_menuResize(){var wrap_width=jQuery('body').width();jQuery('#bodyInner').css({"width":wrap_width});var headerHeight=jQuery('header.siteHeader').height;jQuery('#top__fullcarousel').css({"margin-top":headerHeight});if(wrap_width>767){slide_menu_close();}}
|
4 |
function slide_menu_open(menuPosition){var navSection_open_position='navSection_open_'+menuPosition;jQuery('#navSection').addClass(navSection_open_position);var wrap_width=jQuery('body').width();jQuery('#bodyInner').css({"width":wrap_width});jQuery('#wrap').css({"width":wrap_width});var menu_width=wrap_width-60+'px';jQuery('#gMenu_outer').appendTo('#navSection');if(menuPosition=='right'){jQuery('#wrap').stop().animate({"margin-left":"-"+menu_width,},200);jQuery('header.siteHeader').stop().animate({"left":"-"+menu_width,},200);jQuery('#navSection').css({"display":"block","width":menu_width,"right":"-"+menu_width}).stop().animate({"right":0,},200);}else if(menuPosition=='left'){jQuery('#wrap').stop().animate({"margin-left":menu_width,},200);jQuery('header.siteHeader').stop().animate({"left":menu_width,},200);jQuery('#navSection').css({"display":"block","width":menu_width,"left":"-"+menu_width}).stop().animate({"left":0,},200,function(){});}}
|
5 |
function slide_menu_close(menuPosition){if(!menuPosition){if(jQuery('#navSection').hasClass('navSection_open_right')){menuPosition='right';}else{menuPosition='left';}}
|
6 |
var wrap_width=jQuery('body').width();jQuery('#bodyInner').css({"width":wrap_width});jQuery('#wrap').css({"width":wrap_width});var menu_width=wrap_width-60+'px';jQuery('#wrap').stop().animate({"margin-left":"0"},200);jQuery('header.siteHeader').stop().animate({"left":"0"},200);if(menuPosition=='right'){jQuery('header.siteHeader').stop().animate({"left":"0"},200);jQuery('#navSection').stop().animate({"right":"-"+menu_width},200,function(){menuClose_common();});}else if(menuPosition=='left'){jQuery('#navSection').stop().animate({"left":"-"+menu_width},200,function(){menuClose_common();});}}
|
7 |
+
function menuClose_common(){jQuery('#navSection').removeClass('navSection_open_right');jQuery('#navSection').removeClass('navSection_open_left');jQuery('#gMenu_outer').insertAfter('.navbar-header');jQuery('#navSection').css({"right":"","left":""});jQuery('#bodyInner').css({"width":""});jQuery('#wrap').css({"width":""});}
|
8 |
function run_menuResize(){var wrap_width=jQuery('body').width();jQuery('#bodyInner').css({"width":wrap_width});var headerHeight=jQuery('header.siteHeader').height;jQuery('#top__fullcarousel').css({"margin-top":headerHeight});if(wrap_width>767){slide_menu_close();}}
|
plugins/widgets/widget-new-posts.php
CHANGED
@@ -243,6 +243,7 @@ class WP_Widget_ltg_adv_post_list extends WP_Widget {
|
|
243 |
</li>
|
244 |
</ul>
|
245 |
<br/>
|
|
|
246 |
<label for="<?php echo $this->get_field_id( 'label' ); ?>"><?php _e( 'Title:' ); ?></label><br/>
|
247 |
<input type="text" id="<?php echo $this->get_field_id( 'label' ); ?>-title" name="<?php echo $this->get_field_name( 'label' ); ?>" value="<?php echo $instance['label']; ?>" />
|
248 |
<br/><br />
|
243 |
</li>
|
244 |
</ul>
|
245 |
<br/>
|
246 |
+
<?php //タイトル ?>
|
247 |
<label for="<?php echo $this->get_field_id( 'label' ); ?>"><?php _e( 'Title:' ); ?></label><br/>
|
248 |
<input type="text" id="<?php echo $this->get_field_id( 'label' ); ?>-title" name="<?php echo $this->get_field_name( 'label' ); ?>" value="<?php echo $instance['label']; ?>" />
|
249 |
<br/><br />
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link:
|
|
4 |
Tags: Lightning,
|
5 |
Requires at least: 4.2
|
6 |
Tested up to: 4.5.2
|
7 |
-
Stable tag: 0.0
|
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.5.2
|
7 |
+
Stable tag: 1.0.0
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|