Version Description
Download this release
Release Info
Developer | cbaldelomar |
Plugin | Shortcodes by Angie Makes |
Version | 2.03 |
Comparing to | |
See all releases |
Code changes from version 2.02 to 2.03
- README.md +1 -1
- includes/shortcode-functions.php +4 -4
- includes/widgets.php +3 -3
- readme.txt +1 -1
- wc-shortcodes.php +2 -2
README.md
CHANGED
@@ -66,7 +66,7 @@ Use the shortcode manager in the TinyMCE text editor
|
|
66 |
|
67 |
## Changelog ##
|
68 |
|
69 |
-
### Version 2.
|
70 |
|
71 |
* fixed bug with post_slider shortcode
|
72 |
|
66 |
|
67 |
## Changelog ##
|
68 |
|
69 |
+
### Version 2.03
|
70 |
|
71 |
* fixed bug with post_slider shortcode
|
72 |
|
includes/shortcode-functions.php
CHANGED
@@ -1354,7 +1354,7 @@ if( ! function_exists( 'wc_shortcodes_post_slider' ) ) {
|
|
1354 |
'post_type' => 'post', // post, page, wc_portfolio_item, etc
|
1355 |
'posts_per_page' => 10, //number of post to show per page
|
1356 |
'nopaging' => true, //show all posts or use pagination. Default value is 'false', use paging.
|
1357 |
-
'ignore_sticky_posts' =>
|
1358 |
|
1359 |
'taxonomy' => '', // category, post_tag, wc_portfolio_tag, etc
|
1360 |
'field' => 'slug', // slug or id
|
@@ -1364,7 +1364,7 @@ if( ! function_exists( 'wc_shortcodes_post_slider' ) ) {
|
|
1364 |
'show_title' => 1, // show heading?
|
1365 |
'show_content' => 1, // show main content?
|
1366 |
'readmore' => 'Continue Reading', // show main content?
|
1367 |
-
'button_class' => 'button', // show main content?
|
1368 |
|
1369 |
'size' => 'full', // default thumbnail size
|
1370 |
|
@@ -1372,9 +1372,9 @@ if( ! function_exists( 'wc_shortcodes_post_slider' ) ) {
|
|
1372 |
'heading_size' => 30,
|
1373 |
'mobile_heading_size' => 24,
|
1374 |
'layout' => 'bxslider', // blog layout
|
1375 |
-
'template' => '
|
1376 |
'excerpt_length' => 55,
|
1377 |
-
'desktop_height' =>
|
1378 |
'laptop_height' => 500,
|
1379 |
'mobile_height' => 350,
|
1380 |
|
1354 |
'post_type' => 'post', // post, page, wc_portfolio_item, etc
|
1355 |
'posts_per_page' => 10, //number of post to show per page
|
1356 |
'nopaging' => true, //show all posts or use pagination. Default value is 'false', use paging.
|
1357 |
+
'ignore_sticky_posts' => 1,
|
1358 |
|
1359 |
'taxonomy' => '', // category, post_tag, wc_portfolio_tag, etc
|
1360 |
'field' => 'slug', // slug or id
|
1364 |
'show_title' => 1, // show heading?
|
1365 |
'show_content' => 1, // show main content?
|
1366 |
'readmore' => 'Continue Reading', // show main content?
|
1367 |
+
'button_class' => 'button secondary-button', // show main content?
|
1368 |
|
1369 |
'size' => 'full', // default thumbnail size
|
1370 |
|
1372 |
'heading_size' => 30,
|
1373 |
'mobile_heading_size' => 24,
|
1374 |
'layout' => 'bxslider', // blog layout
|
1375 |
+
'template' => 'slider2',
|
1376 |
'excerpt_length' => 55,
|
1377 |
+
'desktop_height' => 600,
|
1378 |
'laptop_height' => 500,
|
1379 |
'mobile_height' => 350,
|
1380 |
|
includes/widgets.php
CHANGED
@@ -259,8 +259,8 @@ class WC_Shortcodes_Post_Slider_Widget extends WP_Widget {
|
|
259 |
global $wc_shortcodes_widget_ops;
|
260 |
|
261 |
$pids = isset( $instance['pids'] ) ? $instance['pids'] : '';
|
262 |
-
$order = isset( $instance['order'] ) ? $instance['order'] : '';
|
263 |
-
$orderby = isset( $instance['orderby'] ) ? $instance['orderby'] : '
|
264 |
$post_type = isset( $instance['post_type'] ) ? $instance['post_type'] : 'post';
|
265 |
$posts_per_page = isset( $instance['posts_per_page'] ) ? $instance['posts_per_page'] : 10;
|
266 |
$ignore_sticky_posts = isset( $instance['ignore_sticky_posts'] ) ? $instance['ignore_sticky_posts'] : 1;
|
@@ -273,7 +273,7 @@ class WC_Shortcodes_Post_Slider_Widget extends WP_Widget {
|
|
273 |
$button_class = isset( $instance['button_class'] ) ? $instance['button_class'] : 'button secondary-button';
|
274 |
$size = isset( $instance['size'] ) ? $instance['size'] : 'full';
|
275 |
$heading_type = isset( $instance['heading_type'] ) ? $instance['heading_type'] : 'h2';
|
276 |
-
$heading_size = isset( $instance['heading_size'] ) ? $instance['heading_size'] :
|
277 |
$mobile_heading_size = isset( $instance['mobile_heading_size'] ) ? $instance['mobile_heading_size'] : 24;
|
278 |
$excerpt_length = isset( $instance['excerpt_length'] ) ? $instance['excerpt_length'] : 30;
|
279 |
$desktop_height = isset( $instance['desktop_height'] ) ? $instance['desktop_height'] : 600;
|
259 |
global $wc_shortcodes_widget_ops;
|
260 |
|
261 |
$pids = isset( $instance['pids'] ) ? $instance['pids'] : '';
|
262 |
+
$order = isset( $instance['order'] ) ? $instance['order'] : 'DESC';
|
263 |
+
$orderby = isset( $instance['orderby'] ) ? $instance['orderby'] : 'date';
|
264 |
$post_type = isset( $instance['post_type'] ) ? $instance['post_type'] : 'post';
|
265 |
$posts_per_page = isset( $instance['posts_per_page'] ) ? $instance['posts_per_page'] : 10;
|
266 |
$ignore_sticky_posts = isset( $instance['ignore_sticky_posts'] ) ? $instance['ignore_sticky_posts'] : 1;
|
273 |
$button_class = isset( $instance['button_class'] ) ? $instance['button_class'] : 'button secondary-button';
|
274 |
$size = isset( $instance['size'] ) ? $instance['size'] : 'full';
|
275 |
$heading_type = isset( $instance['heading_type'] ) ? $instance['heading_type'] : 'h2';
|
276 |
+
$heading_size = isset( $instance['heading_size'] ) ? $instance['heading_size'] : 30;
|
277 |
$mobile_heading_size = isset( $instance['mobile_heading_size'] ) ? $instance['mobile_heading_size'] : 24;
|
278 |
$excerpt_length = isset( $instance['excerpt_length'] ) ? $instance['excerpt_length'] : 30;
|
279 |
$desktop_height = isset( $instance['desktop_height'] ) ? $instance['desktop_height'] : 600;
|
readme.txt
CHANGED
@@ -88,7 +88,7 @@ Use the shortcode manager in the TinyMCE text editor
|
|
88 |
|
89 |
== Changelog ==
|
90 |
|
91 |
-
= Version 2.
|
92 |
|
93 |
* fixed bug with post_slider shortcode
|
94 |
|
88 |
|
89 |
== Changelog ==
|
90 |
|
91 |
+
= Version 2.03 =
|
92 |
|
93 |
* fixed bug with post_slider shortcode
|
94 |
|
wc-shortcodes.php
CHANGED
@@ -5,11 +5,11 @@ Plugin URI: http://webplantmedia.com/starter-themes/wordpresscanvas/features/sho
|
|
5 |
Description: A family of shortcodes to enhance site functionality.
|
6 |
Author: Chris Baldelomar
|
7 |
Author URI: http://webplantmedia.com/
|
8 |
-
Version: 2.
|
9 |
License: GPLv2 or later
|
10 |
*/
|
11 |
|
12 |
-
define( 'WC_SHORTCODES_VERSION', '2.
|
13 |
define( 'WC_SHORTCODES_PREFIX', 'wc_shortcodes_' );
|
14 |
define( '_WC_SHORTCODES_PREFIX', '_wc_shortcodes_' );
|
15 |
define( 'WC_SHORTCODES_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
|
5 |
Description: A family of shortcodes to enhance site functionality.
|
6 |
Author: Chris Baldelomar
|
7 |
Author URI: http://webplantmedia.com/
|
8 |
+
Version: 2.03
|
9 |
License: GPLv2 or later
|
10 |
*/
|
11 |
|
12 |
+
define( 'WC_SHORTCODES_VERSION', '2.03' );
|
13 |
define( 'WC_SHORTCODES_PREFIX', 'wc_shortcodes_' );
|
14 |
define( '_WC_SHORTCODES_PREFIX', '_wc_shortcodes_' );
|
15 |
define( 'WC_SHORTCODES_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
|