Shortcodes by Angie Makes - Version 3.24

Version Description

Download this release

Release Info

Developer cbaldelomar
Plugin Icon wp plugin Shortcodes by Angie Makes
Version 3.24
Comparing to
See all releases

Code changes from version 3.23 to 3.24

README.md CHANGED
@@ -106,6 +106,11 @@ See our help article on [how to manually upload a plugin](http://knowledgebase.a
106
 
107
  ## Changelog ##
108
 
 
 
 
 
 
109
  ### Version 3.23 ###
110
 
111
  * added attributes for fullwidth shortcoded
106
 
107
  ## Changelog ##
108
 
109
+ ### Version 3.24 ###
110
+
111
+ * smoother masonry loading
112
+ * updated images loaded to 4.1.1
113
+
114
  ### Version 3.23 ###
115
 
116
  * added attributes for fullwidth shortcoded
public/assets/css/style.css CHANGED
@@ -2037,3 +2037,17 @@ pre.pre-wrap {
2037
  padding-bottom: 10px;
2038
  background-color: #ffffff;
2039
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2037
  padding-bottom: 10px;
2038
  background-color: #ffffff;
2039
  }
2040
+ /* Loading */
2041
+ .wc-shortcodes-loading::after {
2042
+ content: " ";
2043
+ background: url('../img/ring-alt.svg');
2044
+ background-position: center center;
2045
+ background-repeat: no-repeat;
2046
+ position: absolute;
2047
+ top: 0;
2048
+ left: 0;
2049
+ right: 0;
2050
+ bottom: 0;
2051
+ background-color: #f7f7f7;
2052
+ visibility: visible;
2053
+ }
public/assets/img/ring-alt.svg ADDED
@@ -0,0 +1 @@
 
1
+ <?xml version="1.0" encoding="utf-8"?><svg width='20px' height='20px' xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid" class="uil-ring-alt"><rect x="0" y="0" width="100" height="100" fill="none" class="bk"></rect><circle cx="50" cy="50" r="40" stroke="rgba(0,0,0,0.209)" fill="none" stroke-width="10" stroke-linecap="round"></circle><circle cx="50" cy="50" r="40" stroke="#000000" fill="none" stroke-width="6" stroke-linecap="round"><animate attributeName="stroke-dashoffset" dur="2s" repeatCount="indefinite" from="0" to="502"></animate><animate attributeName="stroke-dasharray" dur="2s" repeatCount="indefinite" values="150.6 100.4;1 250;150.6 100.4"></animate></circle></svg>
public/assets/js/imagesloaded.pkgd.min.js CHANGED
@@ -1,7 +1,7 @@
1
  /*!
2
- * imagesLoaded PACKAGED v4.1.0
3
  * JavaScript is all like "You images are done yet or what?"
4
  * MIT License
5
  */
6
 
7
- !function(t,e){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",e):"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}(this,function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var i=this._events=this._events||{},n=i[t]=i[t]||[];return-1==n.indexOf(e)&&n.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{},n=i[t]=i[t]||[];return n[e]=!0,this}},e.off=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=i.indexOf(e);return-1!=n&&i.splice(n,1),this}},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=0,o=i[n];e=e||[];for(var r=this._onceEvents&&this._onceEvents[t];o;){var s=r&&r[o];s&&(this.off(t,o),delete r[o]),o.apply(this,e),n+=s?0:1,o=i[n]}return this}},t}),function(t,e){"use strict";"function"==typeof define&&define.amd?define(["ev-emitter/ev-emitter"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter")):t.imagesLoaded=e(t,t.EvEmitter)}(window,function(t,e){function i(t,e){for(var i in e)t[i]=e[i];return t}function n(t){var e=[];if(Array.isArray(t))e=t;else if("number"==typeof t.length)for(var i=0;i<t.length;i++)e.push(t[i]);else e.push(t);return e}function o(t,e,r){return this instanceof o?("string"==typeof t&&(t=document.querySelectorAll(t)),this.elements=n(t),this.options=i({},this.options),"function"==typeof e?r=e:i(this.options,e),r&&this.on("always",r),this.getImages(),h&&(this.jqDeferred=new h.Deferred),void setTimeout(function(){this.check()}.bind(this))):new o(t,e,r)}function r(t){this.img=t}function s(t,e){this.url=t,this.element=e,this.img=new Image}var h=t.jQuery,a=t.console;o.prototype=Object.create(e.prototype),o.prototype.options={},o.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},o.prototype.addElementImages=function(t){"IMG"==t.nodeName&&this.addImage(t),this.options.background===!0&&this.addElementBackgroundImages(t);var e=t.nodeType;if(e&&d[e]){for(var i=t.querySelectorAll("img"),n=0;n<i.length;n++){var o=i[n];this.addImage(o)}if("string"==typeof this.options.background){var r=t.querySelectorAll(this.options.background);for(n=0;n<r.length;n++){var s=r[n];this.addElementBackgroundImages(s)}}}};var d={1:!0,9:!0,11:!0};return o.prototype.addElementBackgroundImages=function(t){var e=getComputedStyle(t);if(e)for(var i=/url\((['"])?(.*?)\1\)/gi,n=i.exec(e.backgroundImage);null!==n;){var o=n&&n[2];o&&this.addBackground(o,t),n=i.exec(e.backgroundImage)}},o.prototype.addImage=function(t){var e=new r(t);this.images.push(e)},o.prototype.addBackground=function(t,e){var i=new s(t,e);this.images.push(i)},o.prototype.check=function(){function t(t,i,n){setTimeout(function(){e.progress(t,i,n)})}var e=this;return this.progressedCount=0,this.hasAnyBroken=!1,this.images.length?void this.images.forEach(function(e){e.once("progress",t),e.check()}):void this.complete()},o.prototype.progress=function(t,e,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded,this.emitEvent("progress",[this,t,e]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,t),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&a&&a.log("progress: "+i,t,e)},o.prototype.complete=function(){var t=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred){var e=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[e](this)}},r.prototype=Object.create(e.prototype),r.prototype.check=function(){var t=this.getIsImageComplete();return t?void this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),void(this.proxyImage.src=this.img.src))},r.prototype.getIsImageComplete=function(){return this.img.complete&&void 0!==this.img.naturalWidth},r.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.img,e])},r.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},r.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},r.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},r.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},s.prototype=Object.create(r.prototype),s.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url;var t=this.getIsImageComplete();t&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},s.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},s.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.element,e])},o.makeJQueryPlugin=function(e){e=e||t.jQuery,e&&(h=e,h.fn.imagesLoaded=function(t,e){var i=new o(this,t,e);return i.jqDeferred.promise(h(this))})},o.makeJQueryPlugin(),o});
1
  /*!
2
+ * imagesLoaded PACKAGED v4.1.1
3
  * JavaScript is all like "You images are done yet or what?"
4
  * MIT License
5
  */
6
 
7
+ !function(t,e){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",e):"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var i=this._events=this._events||{},n=i[t]=i[t]||[];return-1==n.indexOf(e)&&n.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{},n=i[t]=i[t]||{};return n[e]=!0,this}},e.off=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=i.indexOf(e);return-1!=n&&i.splice(n,1),this}},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=0,o=i[n];e=e||[];for(var r=this._onceEvents&&this._onceEvents[t];o;){var s=r&&r[o];s&&(this.off(t,o),delete r[o]),o.apply(this,e),n+=s?0:1,o=i[n]}return this}},t}),function(t,e){"use strict";"function"==typeof define&&define.amd?define(["ev-emitter/ev-emitter"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter")):t.imagesLoaded=e(t,t.EvEmitter)}(window,function(t,e){function i(t,e){for(var i in e)t[i]=e[i];return t}function n(t){var e=[];if(Array.isArray(t))e=t;else if("number"==typeof t.length)for(var i=0;i<t.length;i++)e.push(t[i]);else e.push(t);return e}function o(t,e,r){return this instanceof o?("string"==typeof t&&(t=document.querySelectorAll(t)),this.elements=n(t),this.options=i({},this.options),"function"==typeof e?r=e:i(this.options,e),r&&this.on("always",r),this.getImages(),h&&(this.jqDeferred=new h.Deferred),void setTimeout(function(){this.check()}.bind(this))):new o(t,e,r)}function r(t){this.img=t}function s(t,e){this.url=t,this.element=e,this.img=new Image}var h=t.jQuery,a=t.console;o.prototype=Object.create(e.prototype),o.prototype.options={},o.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},o.prototype.addElementImages=function(t){"IMG"==t.nodeName&&this.addImage(t),this.options.background===!0&&this.addElementBackgroundImages(t);var e=t.nodeType;if(e&&d[e]){for(var i=t.querySelectorAll("img"),n=0;n<i.length;n++){var o=i[n];this.addImage(o)}if("string"==typeof this.options.background){var r=t.querySelectorAll(this.options.background);for(n=0;n<r.length;n++){var s=r[n];this.addElementBackgroundImages(s)}}}};var d={1:!0,9:!0,11:!0};return o.prototype.addElementBackgroundImages=function(t){var e=getComputedStyle(t);if(e)for(var i=/url\((['"])?(.*?)\1\)/gi,n=i.exec(e.backgroundImage);null!==n;){var o=n&&n[2];o&&this.addBackground(o,t),n=i.exec(e.backgroundImage)}},o.prototype.addImage=function(t){var e=new r(t);this.images.push(e)},o.prototype.addBackground=function(t,e){var i=new s(t,e);this.images.push(i)},o.prototype.check=function(){function t(t,i,n){setTimeout(function(){e.progress(t,i,n)})}var e=this;return this.progressedCount=0,this.hasAnyBroken=!1,this.images.length?void this.images.forEach(function(e){e.once("progress",t),e.check()}):void this.complete()},o.prototype.progress=function(t,e,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded,this.emitEvent("progress",[this,t,e]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,t),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&a&&a.log("progress: "+i,t,e)},o.prototype.complete=function(){var t=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred){var e=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[e](this)}},r.prototype=Object.create(e.prototype),r.prototype.check=function(){var t=this.getIsImageComplete();return t?void this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),void(this.proxyImage.src=this.img.src))},r.prototype.getIsImageComplete=function(){return this.img.complete&&void 0!==this.img.naturalWidth},r.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.img,e])},r.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},r.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},r.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},r.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},s.prototype=Object.create(r.prototype),s.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url;var t=this.getIsImageComplete();t&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},s.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},s.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.element,e])},o.makeJQueryPlugin=function(e){e=e||t.jQuery,e&&(h=e,h.fn.imagesLoaded=function(t,e){var i=new o(this,t,e);return i.jqDeferred.promise(h(this))})},o.makeJQueryPlugin(),o});
public/assets/js/posts-grid.js CHANGED
@@ -1,57 +1,55 @@
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-dynamic.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
- var $targetPosts = $target.children('.wc-shortcodes-post-box');
41
- $target.animate({opacity: 0}, 300, function() {
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 );
1
  ( function( $ ) {
2
  "use strict";
3
 
4
+ $('.wc-shortcodes-posts.wc-shortcodes-posts-layout-grid').each( function() {
5
+ var $container = $(this);
6
+ var $posts = $container.children('.wc-shortcodes-post-box');
7
+
8
+ $container.find(".wc-shortcodes-post-box .rslides").responsiveSlides({
9
+ auto: false, // Boolean: Animate automatically, true or false
10
+ speed: 500, // Integer: Speed of the transition, in milliseconds
11
+ timeout: 4000, // Integer: Time between slide transitions, in milliseconds
12
+ pager: false, // Boolean: Show pager, true or false
13
+ nav: true, // Boolean: Show navigation, true or false
14
+ random: false, // Boolean: Randomize the order of the slides, true or false
15
+ pause: false, // Boolean: Pause on hover, true or false
16
+ pauseControls: true, // Boolean: Pause when hovering controls, true or false
17
+ prevText: "", // String: Text for the "previous" button
18
+ nextText: "", // String: Text for the "next" button
19
+ maxwidth: "", // Integer: Max-width of the slideshow, in pixels
20
+ navContainer: "", // Selector: Where controls should be appended to, default is after the 'ul'
21
+ manualControls: "", // Selector: Declare custom pager navigation
22
+ namespace: "rslides", // String: Change the default namespace used
23
+ before: function(){}, // Function: Before callback
24
+ after: function(){}// Function: After callback
 
 
25
  });
26
+ });
27
 
28
+ var $filterNav = $('.wc-shortcodes-filtering.wc-shortcodes-filtering-dynamic.wc-shortcodes-filtering-layout-grid');
29
+ var $term = $filterNav.find('.wc-shortcodes-term');
30
+ $term.click( function( event ) {
31
+ event.preventDefault();
32
+
33
+ $term.removeClass('wc-shortcodes-term-active');
34
+ $(this).addClass('wc-shortcodes-term-active');
35
+
36
+ var selector = $(this).attr('data-filter');
37
+ var target = $filterNav.data('target');
38
+ var $target = $(target);
39
+ var $targetPosts = $target.children('.wc-shortcodes-post-box');
40
+ $target.animate({opacity: 0}, 300, function() {
41
+ if ( '*' == selector ) {
42
+ $targetPosts.show();
43
+ }
44
+ else {
45
+ $targetPosts.hide();
46
+ $target.find(selector).show();
47
+ }
48
+
49
+ $target.animate({opacity: 1}, 300);
 
 
 
50
  });
51
 
52
+ return false;
53
  });
54
+
55
  } )( jQuery );
public/assets/js/posts.js CHANGED
@@ -86,90 +86,95 @@
86
  }
87
  }
88
 
89
- $(document).ready(function(){
90
- $('.wc-shortcodes-posts').each( function() {
91
- var $container = $(this);
92
- var $posts = $container.children('.wc-shortcodes-post-box');
93
 
94
- // remove posts from element
95
- // $container.css('height',0);
96
 
97
- $(document).ready(function(){
98
- // we are going to append masonry items as the images load
99
- runMasonry(0, $container, $posts, 'masonry');
100
 
101
- $container.imagesLoaded().always( function( instance ) {
102
- // masonry does its thing
103
- runMasonry(0, $container, $posts, 'layout');
104
- });
105
- });
106
-
107
- $(window).resize(function() {
108
- runMasonry(0, $container, $posts, 'masonry');
109
- });
110
-
111
- // $(window).load(function() {
112
- // });
113
-
114
- if (window.twttr !== undefined) {
115
- twttr.ready(function (twttr) {
116
- twttr.events.bind('loaded', function (event) {
117
- //DO A MASONRY RELAYOUT HERE
118
  runMasonry(0, $container, $posts, 'layout');
119
  });
120
- });
121
  }
 
 
 
 
 
 
 
 
 
 
122
 
123
- $container.find(".wc-shortcodes-post-box .rslides").responsiveSlides({
124
- auto: false, // Boolean: Animate automatically, true or false
125
- speed: 500, // Integer: Speed of the transition, in milliseconds
126
- timeout: 4000, // Integer: Time between slide transitions, in milliseconds
127
- pager: false, // Boolean: Show pager, true or false
128
- nav: true, // Boolean: Show navigation, true or false
129
- random: false, // Boolean: Randomize the order of the slides, true or false
130
- pause: false, // Boolean: Pause on hover, true or false
131
- pauseControls: true, // Boolean: Pause when hovering controls, true or false
132
- prevText: "", // String: Text for the "previous" button
133
- nextText: "", // String: Text for the "next" button
134
- maxwidth: "", // Integer: Max-width of the slideshow, in pixels
135
- navContainer: "", // Selector: Where controls should be appended to, default is after the 'ul'
136
- manualControls: "", // Selector: Declare custom pager navigation
137
- namespace: "rslides", // String: Change the default namespace used
138
- before: function(){}, // Function: Before callback
139
- after: function(){
140
  runMasonry(0, $container, $posts, 'layout');
141
- }// Function: After callback
142
  });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
143
  });
 
144
 
145
- var $filterNav = $('.wc-shortcodes-filtering.wc-shortcodes-filtering-dynamic.wc-shortcodes-filtering-layout-masonry');
146
- var $term = $filterNav.find('.wc-shortcodes-term');
147
- $term.click( function( event ) {
148
- event.preventDefault();
149
-
150
- $term.removeClass('wc-shortcodes-term-active');
151
- $(this).addClass('wc-shortcodes-term-active');
152
-
153
- var selector = $(this).attr('data-filter');
154
- var target = $filterNav.data('target');
155
- var $target = $(target);
156
- $target.animate({opacity: 0}, 300, function() {
157
- var $targetPosts = $target.children('.wc-shortcodes-post-box');
158
- if ( '*' == selector ) {
159
- $targetPosts.show();
160
- }
161
- else {
162
- $targetPosts.hide();
163
- $target.find(selector).show();
164
- }
165
-
166
- runMasonry(0, $target, $targetPosts, 'layout');
167
-
168
- $target.animate({opacity: 1}, 300);
169
- });
170
 
171
- return false;
 
 
172
  });
173
 
 
174
  });
 
175
  } )( jQuery );
86
  }
87
  }
88
 
89
+ $('.wc-shortcodes-posts').each( function() {
90
+ var $container = $(this);
91
+ var $posts = $container.children('.wc-shortcodes-post-box');
 
92
 
93
+ $posts.css({'visibility':'hidden','position':'relative'}).addClass('wc-shortcodes-loading');
 
94
 
95
+ $.each( $posts, function( index, value ) {
96
+ var $post = $(this);
97
+ var $imgs = $post.find('img');
98
 
99
+ if ( $imgs.length ) {
100
+ $post.imagesLoaded()
101
+ .always( function( instance ) {
102
+ $post.css('visibility', 'visible').removeClass('wc-shortcodes-loading');
 
 
 
 
 
 
 
 
 
 
 
 
 
103
  runMasonry(0, $container, $posts, 'layout');
104
  });
 
105
  }
106
+ else {
107
+ $post.css('visibility', 'visible').removeClass('wc-shortcodes-loading');
108
+ }
109
+ });
110
+
111
+ runMasonry(0, $container, $posts, 'masonry');
112
+
113
+ $(window).resize(function() {
114
+ runMasonry(0, $container, $posts, 'masonry');
115
+ });
116
 
117
+ // $(window).load(function() {
118
+ // });
119
+
120
+ if (window.twttr !== undefined) {
121
+ twttr.ready(function (twttr) {
122
+ twttr.events.bind('loaded', function (event) {
123
+ //DO A MASONRY RELAYOUT HERE
 
 
 
 
 
 
 
 
 
 
124
  runMasonry(0, $container, $posts, 'layout');
125
+ });
126
  });
127
+ }
128
+
129
+ $container.find(".wc-shortcodes-post-box .rslides").responsiveSlides({
130
+ auto: false, // Boolean: Animate automatically, true or false
131
+ speed: 500, // Integer: Speed of the transition, in milliseconds
132
+ timeout: 4000, // Integer: Time between slide transitions, in milliseconds
133
+ pager: false, // Boolean: Show pager, true or false
134
+ nav: true, // Boolean: Show navigation, true or false
135
+ random: false, // Boolean: Randomize the order of the slides, true or false
136
+ pause: false, // Boolean: Pause on hover, true or false
137
+ pauseControls: true, // Boolean: Pause when hovering controls, true or false
138
+ prevText: "", // String: Text for the "previous" button
139
+ nextText: "", // String: Text for the "next" button
140
+ maxwidth: "", // Integer: Max-width of the slideshow, in pixels
141
+ navContainer: "", // Selector: Where controls should be appended to, default is after the 'ul'
142
+ manualControls: "", // Selector: Declare custom pager navigation
143
+ namespace: "rslides", // String: Change the default namespace used
144
+ before: function(){}, // Function: Before callback
145
+ after: function(){
146
+ runMasonry(0, $container, $posts, 'layout');
147
+ }// Function: After callback
148
  });
149
+ });
150
 
151
+ var $filterNav = $('.wc-shortcodes-filtering.wc-shortcodes-filtering-dynamic.wc-shortcodes-filtering-layout-masonry');
152
+ var $term = $filterNav.find('.wc-shortcodes-term');
153
+ $term.click( function( event ) {
154
+ event.preventDefault();
155
+
156
+ $term.removeClass('wc-shortcodes-term-active');
157
+ $(this).addClass('wc-shortcodes-term-active');
158
+
159
+ var selector = $(this).attr('data-filter');
160
+ var target = $filterNav.data('target');
161
+ var $target = $(target);
162
+ $target.animate({opacity: 0}, 300, function() {
163
+ var $targetPosts = $target.children('.wc-shortcodes-post-box');
164
+ if ( '*' == selector ) {
165
+ $targetPosts.show();
166
+ }
167
+ else {
168
+ $targetPosts.hide();
169
+ $target.find(selector).show();
170
+ }
 
 
 
 
 
171
 
172
+ runMasonry(0, $target, $targetPosts, 'layout');
173
+
174
+ $target.animate({opacity: 1}, 300);
175
  });
176
 
177
+ return false;
178
  });
179
+
180
  } )( jQuery );
public/class-public.php CHANGED
@@ -110,7 +110,7 @@ class WPC_Shortcodes_Public extends WPC_Shortcodes_Vars {
110
  wp_enqueue_script( 'jquery-masonry' );
111
 
112
  // images loaded
113
- wp_register_script( 'wordpresscanvas-imagesloaded', WC_SHORTCODES_PLUGIN_URL . 'public/assets/js/imagesloaded.pkgd.min.js', array (), '4.1.0', true );
114
 
115
  // slider
116
  wp_register_script( 'wordpresscanvas-rslides', WC_SHORTCODES_PLUGIN_URL . 'public/assets/js/responsiveslides.min.js', array ( 'jquery' ), '1.54', true );
110
  wp_enqueue_script( 'jquery-masonry' );
111
 
112
  // images loaded
113
+ wp_register_script( 'wordpresscanvas-imagesloaded', WC_SHORTCODES_PLUGIN_URL . 'public/assets/js/imagesloaded.pkgd.min.js', array (), '4.1.1', true );
114
 
115
  // slider
116
  wp_register_script( 'wordpresscanvas-rslides', WC_SHORTCODES_PLUGIN_URL . 'public/assets/js/responsiveslides.min.js', array ( 'jquery' ), '1.54', true );
public/class-vars.php CHANGED
@@ -8,7 +8,7 @@ class WPC_Shortcodes_Vars {
8
  *
9
  * @var string
10
  */
11
- const VERSION = '3.23';
12
  const DB_VERSION = '1.0';
13
 
14
  /**
8
  *
9
  * @var string
10
  */
11
+ const VERSION = '3.24';
12
  const DB_VERSION = '1.0';
13
 
14
  /**
readme.txt CHANGED
@@ -113,6 +113,11 @@ See our help article on [how to manually upload a plugin](http://knowledgebase.a
113
 
114
  == Changelog ==
115
 
 
 
 
 
 
116
  = Version 3.23 =
117
 
118
  * added attributes for fullwidth shortcoded
113
 
114
  == Changelog ==
115
 
116
+ = Version 3.24 =
117
+
118
+ * smoother masonry loading
119
+ * updated images loaded to 4.1.1
120
+
121
  = Version 3.23 =
122
 
123
  * added attributes for fullwidth shortcoded
wc-shortcodes.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://angiemakes.com/feminine-wordpress-blog-themes-women/
5
  Description: A plugin that adds a useful family of shortcodes to your WordPress theme.
6
  Author: Chris Baldelomar
7
  Author URI: http://angiemakes.com/
8
- Version: 3.23
9
  License: GPLv2 or later
10
  */
11
 
5
  Description: A plugin that adds a useful family of shortcodes to your WordPress theme.
6
  Author: Chris Baldelomar
7
  Author URI: http://angiemakes.com/
8
+ Version: 3.24
9
  License: GPLv2 or later
10
  */
11