Version Description
- Fix: portfolio shortcode issue
- Fix: progress bar shortcode style option issue
- Tweak: add "Display Feature Image" option for Blog shortcode
Download this release
Release Info
Developer | hoosoft |
Plugin | Magee Shortcodes |
Version | 2.1.0 |
Comparing to | |
See all releases |
Code changes from version 2.0.9 to 2.1.0
- Includes/Classes/Config.class.php +8 -2
- Includes/Classes/Helper.class.php +1 -1
- Magee.php +1 -1
- readme.txt +7 -2
- shortcodes/class-blog.php +3 -2
- shortcodes/class-progress.php +2 -2
Includes/Classes/Config.class.php
CHANGED
@@ -20,7 +20,7 @@ class Config{
|
|
20 |
'jquery-classycountdown' => [MAGEE_SHORTCODES_URL. 'assets/jquery-countdown/jquery.classycountdown.css', '', '1.1.0', false ],
|
21 |
'chart' => [MAGEE_SHORTCODES_URL. 'assets/chart/chart'.$min_suffix.'.css', '', '2.9.4', false ],
|
22 |
'animate' => [MAGEE_SHORTCODES_URL. 'assets/css/animate'.$min_suffix.'.css', '', '', false ],
|
23 |
-
'magee-shortcodes' => [MAGEE_SHORTCODES_URL. 'assets/css/shortcodes'.$min_suffix.'.css', '', MAGEE_SHORTCODES_VER,
|
24 |
|
25 |
],
|
26 |
'scripts' => [
|
@@ -471,6 +471,12 @@ class Config{
|
|
471 |
'desc' => __( 'Choose to display the post title.','magee-shortcodes'),
|
472 |
'options' => $choices
|
473 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
474 |
'display_meta' => array(
|
475 |
'type' => 'choose',
|
476 |
'label' => __( 'Display Meta','magee-shortcodes'),
|
@@ -3275,7 +3281,7 @@ class Config{
|
|
3275 |
),
|
3276 |
'shortcode' => '[ms_menu menu="{{menu}}" class="{{class}}" id="{{id}}"]' ,
|
3277 |
'popup_title' => __( 'Menu Shortcode', 'magee-shortcodes'),
|
3278 |
-
);
|
3279 |
|
3280 |
/*-----------------------------------------------------------------------------------*/
|
3281 |
/* Magee Separator Config
|
20 |
'jquery-classycountdown' => [MAGEE_SHORTCODES_URL. 'assets/jquery-countdown/jquery.classycountdown.css', '', '1.1.0', false ],
|
21 |
'chart' => [MAGEE_SHORTCODES_URL. 'assets/chart/chart'.$min_suffix.'.css', '', '2.9.4', false ],
|
22 |
'animate' => [MAGEE_SHORTCODES_URL. 'assets/css/animate'.$min_suffix.'.css', '', '', false ],
|
23 |
+
'magee-shortcodes' => [MAGEE_SHORTCODES_URL. 'assets/css/shortcodes'.$min_suffix.'.css', '', MAGEE_SHORTCODES_VER, 'all' ],
|
24 |
|
25 |
],
|
26 |
'scripts' => [
|
471 |
'desc' => __( 'Choose to display the post title.','magee-shortcodes'),
|
472 |
'options' => $choices
|
473 |
),
|
474 |
+
'display_image' => array(
|
475 |
+
'type' => 'choose',
|
476 |
+
'label' => __( 'Display Feature Image','magee-shortcodes'),
|
477 |
+
'desc' => __( 'Choose to show feature image.','magee-shortcodes'),
|
478 |
+
'options' => $choices
|
479 |
+
),
|
480 |
'display_meta' => array(
|
481 |
'type' => 'choose',
|
482 |
'label' => __( 'Display Meta','magee-shortcodes'),
|
3281 |
),
|
3282 |
'shortcode' => '[ms_menu menu="{{menu}}" class="{{class}}" id="{{id}}"]' ,
|
3283 |
'popup_title' => __( 'Menu Shortcode', 'magee-shortcodes'),
|
3284 |
+
);
|
3285 |
|
3286 |
/*-----------------------------------------------------------------------------------*/
|
3287 |
/* Magee Separator Config
|
Includes/Classes/Helper.class.php
CHANGED
@@ -1597,7 +1597,7 @@ class Helper{
|
|
1597 |
/**
|
1598 |
* Display navigation to next/previous set of posts when applicable.
|
1599 |
*/
|
1600 |
-
function paging_nav($echo='echo', $wp_query='') {
|
1601 |
if (!$wp_query) {global $wp_query;}
|
1602 |
global $wp_rewrite;
|
1603 |
$wp_query->query_vars['paged'] > 1 ? $current = $wp_query->query_vars['paged'] : $current = 1;
|
1597 |
/**
|
1598 |
* Display navigation to next/previous set of posts when applicable.
|
1599 |
*/
|
1600 |
+
public static function paging_nav($echo='echo', $wp_query='') {
|
1601 |
if (!$wp_query) {global $wp_query;}
|
1602 |
global $wp_rewrite;
|
1603 |
$wp_query->query_vars['paged'] > 1 ? $current = $wp_query->query_vars['paged'] : $current = 1;
|
Magee.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Magee Shortcodes
|
4 |
Plugin URI: https://www.hoosoft.com/plugins/magee-shortcodes/
|
5 |
Description: Magee Shortcodes is WordPress plugin that provides a pack of shortcodes. With Magee Shortcodes, you can easily create accordion, buttons, boxes, columns, social and much more. They allow you to create so many different page layouts. You could quickly and easily built your own custom pages using all the various shortcodes that Magee Shortcodes includes.
|
6 |
-
Version: 2.0
|
7 |
Author: Hoosoft
|
8 |
Author URI: http://www.hoosoft.com
|
9 |
Text Domain: magee-shortcodes
|
3 |
Plugin Name: Magee Shortcodes
|
4 |
Plugin URI: https://www.hoosoft.com/plugins/magee-shortcodes/
|
5 |
Description: Magee Shortcodes is WordPress plugin that provides a pack of shortcodes. With Magee Shortcodes, you can easily create accordion, buttons, boxes, columns, social and much more. They allow you to create so many different page layouts. You could quickly and easily built your own custom pages using all the various shortcodes that Magee Shortcodes includes.
|
6 |
+
Version: 2.1.0
|
7 |
Author: Hoosoft
|
8 |
Author URI: http://www.hoosoft.com
|
9 |
Text Domain: magee-shortcodes
|
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
Contributors: hoosoft
|
3 |
Tags: shortcodes, shortcode, accordion, alert, button, column, custom box, countdowns, counter, divider, dropcap, feature box, flip box, highlight, list, modal, popover, tooltip, person, promo box, scocial, tab, testimonial, progress, piechart, timeline, panel, section, slider
|
4 |
Requires at least: 5.0
|
5 |
-
Tested up to: 5.
|
6 |
-
Stable tag: 2.0
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -126,6 +126,11 @@ Activate plugin at "Plugins" administration page.
|
|
126 |
|
127 |
== Changelog ==
|
128 |
|
|
|
|
|
|
|
|
|
|
|
129 |
= 2.0.9 =
|
130 |
* Fix: security issue
|
131 |
|
2 |
Contributors: hoosoft
|
3 |
Tags: shortcodes, shortcode, accordion, alert, button, column, custom box, countdowns, counter, divider, dropcap, feature box, flip box, highlight, list, modal, popover, tooltip, person, promo box, scocial, tab, testimonial, progress, piechart, timeline, panel, section, slider
|
4 |
Requires at least: 5.0
|
5 |
+
Tested up to: 5.9
|
6 |
+
Stable tag: 2.1.0
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
126 |
|
127 |
== Changelog ==
|
128 |
|
129 |
+
= 2.1.0 =
|
130 |
+
* Fix: portfolio shortcode issue
|
131 |
+
* Fix: progress bar shortcode style option issue
|
132 |
+
* Tweak: add "Display Feature Image" option for Blog shortcode
|
133 |
+
|
134 |
= 2.0.9 =
|
135 |
* Fix: security issue
|
136 |
|
shortcodes/class-blog.php
CHANGED
@@ -68,8 +68,9 @@ class Magee_Blog {
|
|
68 |
|
69 |
if( !is_numeric($column) || $column<=0 )
|
70 |
$column = 3;
|
71 |
-
|
72 |
-
$display_image = MAGEE_DISPLAY_IMAGE;
|
|
|
73 |
|
74 |
if( intval($offset) || intval($offset)>0):
|
75 |
$offset = intval($offset);
|
68 |
|
69 |
if( !is_numeric($column) || $column<=0 )
|
70 |
$column = 3;
|
71 |
+
|
72 |
+
if ( '' == $display_image ) $display_image = MAGEE_DISPLAY_IMAGE;
|
73 |
+
|
74 |
|
75 |
if( intval($offset) || intval($offset)>0):
|
76 |
$offset = intval($offset);
|
shortcodes/class-progress.php
CHANGED
@@ -121,9 +121,9 @@ class Magee_Progress {
|
|
121 |
}
|
122 |
|
123 |
if ($is_preview == "1"){
|
124 |
-
$html = sprintf( '<style type="text/css" scoped="scoped">%1$s</style>%2$s' , $
|
125 |
}else{
|
126 |
-
wp_add_inline_style('magee-shortcodes', $
|
127 |
}
|
128 |
|
129 |
return $html;
|
121 |
}
|
122 |
|
123 |
if ($is_preview == "1"){
|
124 |
+
$html = sprintf( '<style type="text/css" scoped="scoped">%1$s</style>%2$s' , $css_style, $html );
|
125 |
}else{
|
126 |
+
wp_add_inline_style('magee-shortcodes', $css_style);
|
127 |
}
|
128 |
|
129 |
return $html;
|