Version Description
(December 28th, 2020) =
* New - Multilanguage compatibility for the "read more" text. The shortcode [advanced_excerpt_text] is used. Example [advanced_excerpt_text lang="en_US"]English[/advanced_excerpt_text][advanced_excerpt_text lang="de_DE"]German[/advanced_excerpt_text]
Download this release
Release Info
Developer | wpkube |
Plugin | Advanced Excerpt |
Version | 4.3.8 |
Comparing to | |
See all releases |
Code changes from version 4.3.7 to 4.3.8
- advanced-excerpt.php +3 -2
- asset/css/styles.css +1 -0
- class/advanced-excerpt.php +1 -1
- functions/functions.php +18 -1
- readme.txt +5 -2
advanced-excerpt.php
CHANGED
@@ -3,12 +3,13 @@
|
|
3 |
Plugin Name: Advanced Excerpt
|
4 |
Plugin URI: http://wordpress.org/plugins/advanced-excerpt/
|
5 |
Description: Control the appearance of WordPress post excerpts
|
6 |
-
Version: 4.3.
|
7 |
Author: WPKube
|
8 |
Author URI: https://wpkube.com
|
|
|
9 |
*/
|
10 |
|
11 |
-
$GLOBALS['advanced_excerpt_version'] = '4.3.
|
12 |
|
13 |
function advanced_excerpt_load_textdomain() {
|
14 |
load_plugin_textdomain( 'advanced-excerpt', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
|
3 |
Plugin Name: Advanced Excerpt
|
4 |
Plugin URI: http://wordpress.org/plugins/advanced-excerpt/
|
5 |
Description: Control the appearance of WordPress post excerpts
|
6 |
+
Version: 4.3.8
|
7 |
Author: WPKube
|
8 |
Author URI: https://wpkube.com
|
9 |
+
Text Domain: advanced-excerpt
|
10 |
*/
|
11 |
|
12 |
+
$GLOBALS['advanced_excerpt_version'] = '4.3.8';
|
13 |
|
14 |
function advanced_excerpt_load_textdomain() {
|
15 |
load_plugin_textdomain( 'advanced-excerpt', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
|
asset/css/styles.css
CHANGED
@@ -16,6 +16,7 @@
|
|
16 |
}
|
17 |
.advanced-excerpt #read-more {
|
18 |
margin-top: 7px;
|
|
|
19 |
}
|
20 |
.advanced-excerpt .monospaced {
|
21 |
font-family: Consolas,Monaco,monospace;
|
16 |
}
|
17 |
.advanced-excerpt #read-more {
|
18 |
margin-top: 7px;
|
19 |
+
width: 100%;
|
20 |
}
|
21 |
.advanced-excerpt .monospaced {
|
22 |
font-family: Consolas,Monaco,monospace;
|
class/advanced-excerpt.php
CHANGED
@@ -240,7 +240,7 @@ class Advanced_Excerpt {
|
|
240 |
function filter( $content ) {
|
241 |
|
242 |
extract( wp_parse_args( $this->options, $this->default_options ), EXTR_SKIP );
|
243 |
-
|
244 |
if ( true === apply_filters( 'advanced_excerpt_skip_excerpt_filtering', false ) ) {
|
245 |
return $content;
|
246 |
}
|
240 |
function filter( $content ) {
|
241 |
|
242 |
extract( wp_parse_args( $this->options, $this->default_options ), EXTR_SKIP );
|
243 |
+
|
244 |
if ( true === apply_filters( 'advanced_excerpt_skip_excerpt_filtering', false ) ) {
|
245 |
return $content;
|
246 |
}
|
functions/functions.php
CHANGED
@@ -76,4 +76,21 @@ function the_advanced_excerpt( $args = '', $get = false ) {
|
|
76 |
|
77 |
// Reset the options back to their original state
|
78 |
$advanced_excerpt->load_options();
|
79 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
76 |
|
77 |
// Reset the options back to their original state
|
78 |
$advanced_excerpt->load_options();
|
79 |
+
}
|
80 |
+
|
81 |
+
function the_advanced_excerpt_lang( $atts, $content = '' ) {
|
82 |
+
|
83 |
+
$settings = shortcode_atts( array(
|
84 |
+
'lang' => 'en_us',
|
85 |
+
), $atts );
|
86 |
+
|
87 |
+
$settings['lang'] = strtolower( $settings['lang'] );
|
88 |
+
$locale = strtolower( get_locale() );
|
89 |
+
|
90 |
+
if ( $locale == $settings['lang'] ) {
|
91 |
+
return $content;
|
92 |
+
}
|
93 |
+
|
94 |
+
return;
|
95 |
+
|
96 |
+
} add_shortcode( 'advanced_excerpt_text', 'the_advanced_excerpt_lang' );
|
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
Contributors: fancythemes, WPKube
|
3 |
Tags: post excerpt, excerpt, post, content, formatting
|
4 |
Requires at least: 3.2
|
5 |
-
Tested up to: 5.
|
6 |
-
Stable tag: 4.3.
|
7 |
License: GPLv3
|
8 |
|
9 |
Control the appearance of WordPress post excerpts
|
@@ -95,6 +95,9 @@ However, you can [start The Loop manually](http://codex.wordpress.org/The_Loop#M
|
|
95 |
2. An example of an excerpt generated by the plugin
|
96 |
|
97 |
== Changelog ==
|
|
|
|
|
|
|
98 |
= 4.3.7 ( July 10th, 2020 ) =
|
99 |
* New - Option to link the whole excerpt to the single post page
|
100 |
* Fix - Issue with "sentence finish" when there is a number with decimal points
|
2 |
Contributors: fancythemes, WPKube
|
3 |
Tags: post excerpt, excerpt, post, content, formatting
|
4 |
Requires at least: 3.2
|
5 |
+
Tested up to: 5.7
|
6 |
+
Stable tag: 4.3.8
|
7 |
License: GPLv3
|
8 |
|
9 |
Control the appearance of WordPress post excerpts
|
95 |
2. An example of an excerpt generated by the plugin
|
96 |
|
97 |
== Changelog ==
|
98 |
+
= 4.3.8 (December 28th, 2020) =
|
99 |
+
* New - Multilanguage compatibility for the "read more" text. The shortcode [advanced_excerpt_text] is used. Example `[advanced_excerpt_text lang="en_US"]English[/advanced_excerpt_text][advanced_excerpt_text lang="de_DE"]German[/advanced_excerpt_text]`
|
100 |
+
|
101 |
= 4.3.7 ( July 10th, 2020 ) =
|
102 |
* New - Option to link the whole excerpt to the single post page
|
103 |
* Fix - Issue with "sentence finish" when there is a number with decimal points
|