Version Description
- [ Specification change ] When active Origin Pro or Variety that, labal color active.
Download this release
Release Info
Developer | kurudrive |
Plugin | Lightning Advanced Unit |
Version | 2.2.0 |
Comparing to | |
See all releases |
Code changes from version 2.1.1 to 2.2.0
- inc/widgets/widget-new-posts.php +9 -35
- lightning_advanced_unit.php +1 -1
- readme.txt +4 -1
inc/widgets/widget-new-posts.php
CHANGED
@@ -82,7 +82,7 @@ class WP_Widget_ltg_adv_post_list extends WP_Widget {
|
|
82 |
} // widget($args, $instance)
|
83 |
|
84 |
/*-------------------------------------------*/
|
85 |
-
/* display_pattern_0
|
86 |
/*-------------------------------------------*/
|
87 |
function display_pattern_0() { ?>
|
88 |
<article class="media">
|
@@ -97,42 +97,12 @@ class WP_Widget_ltg_adv_post_list extends WP_Widget {
|
|
97 |
</div>
|
98 |
<?php endif; ?>
|
99 |
<div class="media-body">
|
100 |
-
|
101 |
-
<div class="entry-meta">
|
102 |
-
<span class="published entry-meta_items"><?php echo esc_html( get_the_date() ); ?></span>
|
103 |
-
|
104 |
-
<?php global $lightning_theme_options; ?>
|
105 |
-
|
106 |
-
<?php
|
107 |
-
// Post update
|
108 |
-
$meta_hidden_update = ( isset($lightning_theme_options['postUpdate_hidden']) && $lightning_theme_options['postUpdate_hidden'] ) ? ' entry-meta_hidden' : ''; ?>
|
109 |
-
|
110 |
-
<span class="entry-meta_items entry-meta_updated<?php echo $meta_hidden_update;?>">/ <?php _e('Last updated','lightning'); ?> : <span class="updated"><?php the_modified_date('') ?></span></span>
|
111 |
-
|
112 |
-
<?php
|
113 |
-
// Post author
|
114 |
-
$meta_hidden_author = ( isset($lightning_theme_options['postAuthor_hidden']) && $lightning_theme_options['postAuthor_hidden'] ) ? ' entry-meta_hidden' : ''; ?>
|
115 |
-
|
116 |
-
<span class="vcard author entry-meta_items entry-meta_items_author<?php echo $meta_hidden_author;?>"><span class="fn"><?php the_author(); ?></span></span>
|
117 |
-
|
118 |
-
<?php
|
119 |
-
$taxonomies = get_the_taxonomies();
|
120 |
-
if ($taxonomies):
|
121 |
-
// get $taxonomy name
|
122 |
-
$taxonomy = key( $taxonomies );
|
123 |
-
$terms = get_the_terms( get_the_ID(),$taxonomy );
|
124 |
-
$term_url = esc_url(get_term_link( $terms[0]->term_id,$taxonomy));
|
125 |
-
$term_name = esc_html($terms[0]->name);
|
126 |
-
echo '<span class="entry-meta_items entry-meta_items_term"><a href="'.$term_url.'" class="btn btn-xs btn-primary">'.$term_name.'</a></span>';
|
127 |
-
endif;
|
128 |
-
?>
|
129 |
-
|
130 |
-
</div>
|
131 |
<h1 class="media-heading entry-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h1>
|
132 |
<a href="<?php the_permalink(); ?>" class="media-body_excerpt"><?php the_excerpt(); ?></a>
|
133 |
<!--
|
134 |
<div><a href="<?php the_permalink(); ?>" class="btn btn-default btn-sm"><?php _e('Read more', 'lightning'); ?></a></div>
|
135 |
-
-->
|
136 |
</div>
|
137 |
</div>
|
138 |
</article><?php
|
@@ -140,7 +110,7 @@ class WP_Widget_ltg_adv_post_list extends WP_Widget {
|
|
140 |
|
141 |
|
142 |
/*-------------------------------------------*/
|
143 |
-
/* display_pattern_1
|
144 |
/*-------------------------------------------*/
|
145 |
function display_pattern_1() {
|
146 |
global $post;
|
@@ -157,7 +127,11 @@ class WP_Widget_ltg_adv_post_list extends WP_Widget {
|
|
157 |
<?php
|
158 |
$lightning_adv_more_btn_txt = '<span class="btn btn-default btn-block">'. __('Read more', LIGHTNING_ADVANCED_TEXTDOMAIN ). '</span>';
|
159 |
$more_btn = apply_filters( 'lightning-adv-more-btn-txt' ,$lightning_adv_more_btn_txt);
|
160 |
-
|
|
|
|
|
|
|
|
|
161 |
</div><!-- [ /.entry-body ] -->
|
162 |
|
163 |
<div class="entry-footer">
|
82 |
} // widget($args, $instance)
|
83 |
|
84 |
/*-------------------------------------------*/
|
85 |
+
/* display_pattern_0 Lighjnting standard
|
86 |
/*-------------------------------------------*/
|
87 |
function display_pattern_0() { ?>
|
88 |
<article class="media">
|
97 |
</div>
|
98 |
<?php endif; ?>
|
99 |
<div class="media-body">
|
100 |
+
<?php get_template_part('module_loop_post_meta');?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
101 |
<h1 class="media-heading entry-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h1>
|
102 |
<a href="<?php the_permalink(); ?>" class="media-body_excerpt"><?php the_excerpt(); ?></a>
|
103 |
<!--
|
104 |
<div><a href="<?php the_permalink(); ?>" class="btn btn-default btn-sm"><?php _e('Read more', 'lightning'); ?></a></div>
|
105 |
+
-->
|
106 |
</div>
|
107 |
</div>
|
108 |
</article><?php
|
110 |
|
111 |
|
112 |
/*-------------------------------------------*/
|
113 |
+
/* display_pattern_1 Cointent Body
|
114 |
/*-------------------------------------------*/
|
115 |
function display_pattern_1() {
|
116 |
global $post;
|
127 |
<?php
|
128 |
$lightning_adv_more_btn_txt = '<span class="btn btn-default btn-block">'. __('Read more', LIGHTNING_ADVANCED_TEXTDOMAIN ). '</span>';
|
129 |
$more_btn = apply_filters( 'lightning-adv-more-btn-txt' ,$lightning_adv_more_btn_txt);
|
130 |
+
global $is_pagewidget;
|
131 |
+
$is_pagewidget = true;
|
132 |
+
the_content( $more_btn );
|
133 |
+
$is_pagewidget = false;
|
134 |
+
?>
|
135 |
</div><!-- [ /.entry-body ] -->
|
136 |
|
137 |
<div class="entry-footer">
|
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: 2.
|
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: 2.2.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".
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link:
|
|
4 |
Tags: Lightning,
|
5 |
Requires at least: 4.2
|
6 |
Tested up to: 4.7.0
|
7 |
-
Stable tag: 2.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -43,6 +43,9 @@ e.g.
|
|
43 |
|
44 |
== Changelog ==
|
45 |
|
|
|
|
|
|
|
46 |
= 2.0.0 =
|
47 |
* [ Specification change ] Change mobile menu break point
|
48 |
|
4 |
Tags: Lightning,
|
5 |
Requires at least: 4.2
|
6 |
Tested up to: 4.7.0
|
7 |
+
Stable tag: 2.2.0
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
43 |
|
44 |
== Changelog ==
|
45 |
|
46 |
+
= 2.2.0 =
|
47 |
+
* [ Specification change ] When active Origin Pro or Variety that, labal color active.
|
48 |
+
|
49 |
= 2.0.0 =
|
50 |
* [ Specification change ] Change mobile menu break point
|
51 |
|