Version Description
Download this release
Release Info
Developer | cbaldelomar |
Plugin | Shortcodes by Angie Makes |
Version | 1.72 |
Comparing to | |
See all releases |
Code changes from version 1.71 to 1.72
- README.md +4 -0
- includes/js/posts-grid.js +57 -0
- includes/js/posts.js +2 -2
- includes/scripts.php +1 -0
- includes/shortcode-functions.php +4 -0
- includes/templates/nav-filtering.php +1 -1
- readme.txt +4 -0
- wc-shortcodes.php +2 -2
README.md
CHANGED
@@ -66,6 +66,10 @@ Use the shortcode manager in the TinyMCE text editor
|
|
66 |
|
67 |
## Changelog ##
|
68 |
|
|
|
|
|
|
|
|
|
69 |
### Version 1.71
|
70 |
|
71 |
* Fixed bug with responsive style for post grid layout
|
66 |
|
67 |
## Changelog ##
|
68 |
|
69 |
+
### Version 1.72
|
70 |
+
|
71 |
+
* Fixed bug with post filtering
|
72 |
+
|
73 |
### Version 1.71
|
74 |
|
75 |
* Fixed bug with responsive style for post grid layout
|
includes/js/posts-grid.js
ADDED
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
( function( $ ) {
|
2 |
+
"use strict";
|
3 |
+
|
4 |
+
$(document).ready(function(){
|
5 |
+
$('.wc-shortcodes-posts.wc-shortcodes-posts-layout-grid').each( function() {
|
6 |
+
var $container = $(this);
|
7 |
+
var $posts = $container.children('.wc-shortcodes-post-box');
|
8 |
+
|
9 |
+
$container.find(".wc-shortcodes-post-box .rslides").responsiveSlides({
|
10 |
+
auto: false, // Boolean: Animate automatically, true or false
|
11 |
+
speed: 500, // Integer: Speed of the transition, in milliseconds
|
12 |
+
timeout: 4000, // Integer: Time between slide transitions, in milliseconds
|
13 |
+
pager: false, // Boolean: Show pager, true or false
|
14 |
+
nav: true, // Boolean: Show navigation, true or false
|
15 |
+
random: false, // Boolean: Randomize the order of the slides, true or false
|
16 |
+
pause: false, // Boolean: Pause on hover, true or false
|
17 |
+
pauseControls: true, // Boolean: Pause when hovering controls, true or false
|
18 |
+
prevText: "", // String: Text for the "previous" button
|
19 |
+
nextText: "", // String: Text for the "next" button
|
20 |
+
maxwidth: "", // Integer: Max-width of the slideshow, in pixels
|
21 |
+
navContainer: "", // Selector: Where controls should be appended to, default is after the 'ul'
|
22 |
+
manualControls: "", // Selector: Declare custom pager navigation
|
23 |
+
namespace: "rslides", // String: Change the default namespace used
|
24 |
+
before: function(){}, // Function: Before callback
|
25 |
+
after: function(){}// Function: After callback
|
26 |
+
});
|
27 |
+
});
|
28 |
+
|
29 |
+
var $filterNav = $('.wc-shortcodes-filtering.wc-shortcodes-filtering-layout-grid');
|
30 |
+
var $term = $filterNav.find('.wc-shortcodes-term');
|
31 |
+
$term.click( function( event ) {
|
32 |
+
event.preventDefault();
|
33 |
+
|
34 |
+
$term.removeClass('wc-shortcodes-term-active');
|
35 |
+
$(this).addClass('wc-shortcodes-term-active');
|
36 |
+
|
37 |
+
var selector = $(this).attr('data-filter');
|
38 |
+
var target = $filterNav.data('target');
|
39 |
+
var $target = $(target);
|
40 |
+
$target.animate({opacity: 0}, 300, function() {
|
41 |
+
var $targetPosts = $target.children('.wc-shortcodes-post-box');
|
42 |
+
if ( '*' == selector ) {
|
43 |
+
$targetPosts.show();
|
44 |
+
}
|
45 |
+
else {
|
46 |
+
$targetPosts.hide();
|
47 |
+
$target.find(selector).show();
|
48 |
+
}
|
49 |
+
|
50 |
+
$target.animate({opacity: 1}, 300);
|
51 |
+
});
|
52 |
+
|
53 |
+
return false;
|
54 |
+
});
|
55 |
+
|
56 |
+
});
|
57 |
+
} )( jQuery );
|
includes/js/posts.js
CHANGED
@@ -114,7 +114,7 @@
|
|
114 |
});
|
115 |
});
|
116 |
|
117 |
-
var $filterNav = $('.wc-shortcodes-filtering');
|
118 |
var $term = $filterNav.find('.wc-shortcodes-term');
|
119 |
$term.click( function( event ) {
|
120 |
event.preventDefault();
|
@@ -126,7 +126,7 @@
|
|
126 |
var target = $filterNav.data('target');
|
127 |
var $target = $(target);
|
128 |
$target.animate({opacity: 0}, 300, function() {
|
129 |
-
var $targetPosts = $
|
130 |
if ( '*' == selector ) {
|
131 |
$targetPosts.show();
|
132 |
}
|
114 |
});
|
115 |
});
|
116 |
|
117 |
+
var $filterNav = $('.wc-shortcodes-filtering.wc-shortcodes-filtering-layout-masonry');
|
118 |
var $term = $filterNav.find('.wc-shortcodes-term');
|
119 |
$term.click( function( event ) {
|
120 |
event.preventDefault();
|
126 |
var target = $filterNav.data('target');
|
127 |
var $target = $(target);
|
128 |
$target.animate({opacity: 0}, 300, function() {
|
129 |
+
var $targetPosts = $target.children('.wc-shortcodes-post-box');
|
130 |
if ( '*' == selector ) {
|
131 |
$targetPosts.show();
|
132 |
}
|
includes/scripts.php
CHANGED
@@ -29,6 +29,7 @@ if( ! function_exists('wc_shortcodes_scripts') ) :
|
|
29 |
|
30 |
// posts
|
31 |
wp_register_script( 'wc-shortcodes-posts', plugin_dir_url( __FILE__ ) . 'js/posts.js', array ( 'jquery', 'wordpresscanvas-rslides', 'jquery-masonry', 'wordpresscanvas-imagesloaded' ), $ver, true );
|
|
|
32 |
|
33 |
// countdown
|
34 |
wp_register_script( 'wc-shortcodes-jquery-countdown-js', plugin_dir_url( __FILE__ ) . 'js/jquery.countdown.js', array ( 'jquery' ), $ver, true );
|
29 |
|
30 |
// posts
|
31 |
wp_register_script( 'wc-shortcodes-posts', plugin_dir_url( __FILE__ ) . 'js/posts.js', array ( 'jquery', 'wordpresscanvas-rslides', 'jquery-masonry', 'wordpresscanvas-imagesloaded' ), $ver, true );
|
32 |
+
wp_register_script( 'wc-shortcodes-posts-grid', plugin_dir_url( __FILE__ ) . 'js/posts-grid.js', array ( 'jquery', 'wordpresscanvas-rslides' ), $ver, true );
|
33 |
|
34 |
// countdown
|
35 |
wp_register_script( 'wc-shortcodes-jquery-countdown-js', plugin_dir_url( __FILE__ ) . 'js/jquery.countdown.js', array ( 'jquery' ), $ver, true );
|
includes/shortcode-functions.php
CHANGED
@@ -1158,10 +1158,14 @@ if( ! function_exists( 'wc_shortcodes_posts' ) ) {
|
|
1158 |
}
|
1159 |
|
1160 |
$is_masonry = 'masonry' == $atts['layout'] ? true : false;
|
|
|
1161 |
|
1162 |
if ( $is_masonry ) {
|
1163 |
wp_enqueue_script('wc-shortcodes-posts');
|
1164 |
}
|
|
|
|
|
|
|
1165 |
|
1166 |
$valid_templates = array( 'box', 'borderless' );
|
1167 |
if ( ! in_array( $atts['template'], $valid_templates ) ) {
|
1158 |
}
|
1159 |
|
1160 |
$is_masonry = 'masonry' == $atts['layout'] ? true : false;
|
1161 |
+
$is_grid = 'grid' == $atts['layout'] ? true : false;
|
1162 |
|
1163 |
if ( $is_masonry ) {
|
1164 |
wp_enqueue_script('wc-shortcodes-posts');
|
1165 |
}
|
1166 |
+
else if ( $is_grid ) {
|
1167 |
+
wp_enqueue_script('wc-shortcodes-posts-grid');
|
1168 |
+
}
|
1169 |
|
1170 |
$valid_templates = array( 'box', 'borderless' );
|
1171 |
if ( ! in_array( $atts['template'], $valid_templates ) ) {
|
includes/templates/nav-filtering.php
CHANGED
@@ -32,7 +32,7 @@ if ( ! empty( $taxonomy ) ) {
|
|
32 |
?>
|
33 |
|
34 |
<?php if ( sizeof( $links ) > 2 ) : ?>
|
35 |
-
<nav data-target="#wc-shortcodes-posts-<?php echo $instance; ?>" class="wc-shortcodes-filtering wc-shortcodes-nav-<?php echo $taxonomy; ?>">
|
36 |
<?php echo implode( "<span class='tag-divider'>/</span>", $links ); ?>
|
37 |
</nav>
|
38 |
<?php endif; ?>
|
32 |
?>
|
33 |
|
34 |
<?php if ( sizeof( $links ) > 2 ) : ?>
|
35 |
+
<nav data-target="#wc-shortcodes-posts-<?php echo $instance; ?>" class="wc-shortcodes-filtering wc-shortcodes-filtering-layout-<?php echo $atts['layout']; ?> wc-shortcodes-nav-<?php echo $taxonomy; ?>">
|
36 |
<?php echo implode( "<span class='tag-divider'>/</span>", $links ); ?>
|
37 |
</nav>
|
38 |
<?php endif; ?>
|
readme.txt
CHANGED
@@ -88,6 +88,10 @@ Use the shortcode manager in the TinyMCE text editor
|
|
88 |
|
89 |
== Changelog ==
|
90 |
|
|
|
|
|
|
|
|
|
91 |
= Version 1.71 =
|
92 |
|
93 |
* Fixed bug with responsive style for post grid layout
|
88 |
|
89 |
== Changelog ==
|
90 |
|
91 |
+
= Version 1.72 =
|
92 |
+
|
93 |
+
* Fixed bug with post filtering
|
94 |
+
|
95 |
= Version 1.71 =
|
96 |
|
97 |
* Fixed bug with responsive style for post grid layout
|
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: 1.
|
9 |
License: GPLv2 or later
|
10 |
*/
|
11 |
|
12 |
-
define( 'WC_SHORTCODES_VERSION', '1.
|
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: 1.72
|
9 |
License: GPLv2 or later
|
10 |
*/
|
11 |
|
12 |
+
define( 'WC_SHORTCODES_VERSION', '1.72' );
|
13 |
define( 'WC_SHORTCODES_PREFIX', 'wc_shortcodes_' );
|
14 |
define( '_WC_SHORTCODES_PREFIX', '_wc_shortcodes_' );
|
15 |
define( 'WC_SHORTCODES_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
|