Version Description
Download this release
Release Info
Developer | machothemes |
Plugin | Gallery – Photo Gallery – Image Gallery |
Version | 2.1.1 |
Comparing to | |
See all releases |
Code changes from version 2.1.0 to 2.1.1
- Modula.php +2 -2
- README.txt +9 -1
- assets/css/modula-cpt.css +7 -5
- assets/css/modula-cpt.min.css +1 -1
- assets/js/jquery-modula.js +11 -2
- assets/js/jquery-modula.min.js +1 -1
- assets/js/lightbox.js +20 -79
- assets/js/lightbox.min.js +1 -1
- assets/js/modula-elementor-preview.js +22 -0
- assets/js/modula-elementor-preview.min.js +1 -0
- assets/js/packery.js +12 -1
- assets/js/packery.min.js +1 -1
- changelog.txt +7 -0
- includes/admin/class-modula-cpt-fields-helper.php +2 -3
- includes/class-modula.php +4 -0
- includes/duplicator/class-modula-duplicator.php +30 -0
- includes/duplicator/modula-duplicator-functions.php +215 -0
- includes/elementor/class-modula-elementor-check.php +112 -0
- includes/elementor/class-modula-elementor-widget-activation.php +79 -0
- includes/elementor/widgets/class-modula-elementor.php +74 -0
- includes/public/templates/modula-gallery.php +1 -1
- languages/modula-best-grid-gallery.po +157 -110
Modula.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin URI: https://wp-modula.com/
|
5 |
* Description: Modula is the most powerful, user-friendly WordPress gallery plugin. Add galleries, masonry grids and more in a few clicks.
|
6 |
* Author: MachoThemes
|
7 |
-
* Version: 2.1.
|
8 |
* Author URI: https://www.machothemes.com/
|
9 |
* License: GPLv3 or later
|
10 |
* License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
@@ -43,7 +43,7 @@
|
|
43 |
*
|
44 |
* @since 2.0.2
|
45 |
*/
|
46 |
-
define( 'MODULA_LITE_VERSION', '2.1.
|
47 |
define( 'MODULA_PATH', plugin_dir_path( __FILE__ ) );
|
48 |
define( 'MODULA_URL', plugin_dir_url( __FILE__ ) );
|
49 |
defined( 'MODULA_PRO_STORE_URL' ) || define( 'MODULA_PRO_STORE_URL', 'https://wp-modula.com' );
|
4 |
* Plugin URI: https://wp-modula.com/
|
5 |
* Description: Modula is the most powerful, user-friendly WordPress gallery plugin. Add galleries, masonry grids and more in a few clicks.
|
6 |
* Author: MachoThemes
|
7 |
+
* Version: 2.1.1
|
8 |
* Author URI: https://www.machothemes.com/
|
9 |
* License: GPLv3 or later
|
10 |
* License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
43 |
*
|
44 |
* @since 2.0.2
|
45 |
*/
|
46 |
+
define( 'MODULA_LITE_VERSION', '2.1.1' );
|
47 |
define( 'MODULA_PATH', plugin_dir_path( __FILE__ ) );
|
48 |
define( 'MODULA_URL', plugin_dir_url( __FILE__ ) );
|
49 |
defined( 'MODULA_PRO_STORE_URL' ) || define( 'MODULA_PRO_STORE_URL', 'https://wp-modula.com' );
|
README.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: best gallery plugin, image gallery, photo gallery, responsive gallery, wor
|
|
4 |
Requires at least: 4.6
|
5 |
Tested up to: 5.2
|
6 |
Requires PHP: 5.6
|
7 |
-
Stable tag: 2.1.
|
8 |
License: GPLv3 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
@@ -152,6 +152,14 @@ Modula is the perfect WordPress photo gallery plugin if you're a wedding planner
|
|
152 |
|
153 |
*Be as proud of your wedding album as you are of your wedding.*
|
154 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
155 |
== Installation ==
|
156 |
= For automatic installation: =
|
157 |
|
4 |
Requires at least: 4.6
|
5 |
Tested up to: 5.2
|
6 |
Requires PHP: 5.6
|
7 |
+
Stable tag: 2.1.1
|
8 |
License: GPLv3 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
152 |
|
153 |
*Be as proud of your wedding album as you are of your wedding.*
|
154 |
|
155 |
+
== 3rd party or external service disclaimer ==
|
156 |
+
|
157 |
+
The plugin connects to our website through an API call (https://wp-modula.com/wp-json/mt/v1/get-all-extensions) in order to request a list of available extensions.
|
158 |
+
|
159 |
+
IT DOES NOT SEND ANY DATA NOR DO WE COLLECT INFORMATION FROM THE REQUEST
|
160 |
+
|
161 |
+
Our privacy policy can be found at this URL https://wp-modula.com/privacy-policy/
|
162 |
+
|
163 |
== Installation ==
|
164 |
= For automatic installation: =
|
165 |
|
assets/css/modula-cpt.css
CHANGED
@@ -150,16 +150,20 @@ tr label.th-label {
|
|
150 |
.modula-settings-container .slider-container {
|
151 |
position: relative;
|
152 |
height: 2px;
|
153 |
-
padding: 10px 0
|
154 |
width: 25em;
|
155 |
box-sizing: border-box;
|
156 |
margin-bottom: 10px;
|
|
|
|
|
|
|
|
|
157 |
}
|
158 |
.modula-settings-container .slider-container input[type="text"] {
|
159 |
border: none;
|
160 |
text-align: center;
|
161 |
padding: 2px;
|
162 |
-
margin: 0;
|
163 |
font-size: 12px;
|
164 |
color: #333;
|
165 |
border-radius: 10px;
|
@@ -169,9 +173,7 @@ tr label.th-label {
|
|
169 |
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.16);
|
170 |
width: 40px;
|
171 |
height: 22px;
|
172 |
-
|
173 |
-
left: 0;
|
174 |
-
top: 0;
|
175 |
}
|
176 |
.modula-settings-container .slider-container .ui-slider {
|
177 |
position: relative;
|
150 |
.modula-settings-container .slider-container {
|
151 |
position: relative;
|
152 |
height: 2px;
|
153 |
+
padding: 10px 0;
|
154 |
width: 25em;
|
155 |
box-sizing: border-box;
|
156 |
margin-bottom: 10px;
|
157 |
+
display: flex;
|
158 |
+
display: flex;
|
159 |
+
justify-content: space-between;
|
160 |
+
align-items: center;
|
161 |
}
|
162 |
.modula-settings-container .slider-container input[type="text"] {
|
163 |
border: none;
|
164 |
text-align: center;
|
165 |
padding: 2px;
|
166 |
+
margin: 0 20px 0 0;
|
167 |
font-size: 12px;
|
168 |
color: #333;
|
169 |
border-radius: 10px;
|
173 |
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.16);
|
174 |
width: 40px;
|
175 |
height: 22px;
|
176 |
+
cursor: default;
|
|
|
|
|
177 |
}
|
178 |
.modula-settings-container .slider-container .ui-slider {
|
179 |
position: relative;
|
assets/css/modula-cpt.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
#modula-settings .inside{padding:0;margin:0}.modula-settings-container{display:flex}.modula-settings-container .modula-tabs{background-color:#f8f8f8}.modula-settings-container .modula-tabs .modula-tab{margin:0 10px 0 0;padding:15px 0;color:#9c9c9c;cursor:pointer;width:161px;position:relative}.modula-settings-container .modula-tabs .modula-tab sup{margin-left:5px;padding:2px 5px;border-radius:5px;color:#fff;font-size:8px;background:#9c9c9c;display:inline-block;line-height:1;position:relative;top:-2px}.modula-settings-container .modula-tabs .modula-tab.active-tab sup,.modula-settings-container .modula-tabs .modula-tab:hover sup{background-color:#57a7c9}.modula-settings-container .modula-tabs .modula-tab.modula-responsive.active-tab sup,.modula-settings-container .modula-tabs .modula-tab.modula-responsive:hover sup{background:#dc3232}.modula-settings-container .modula-tabs .modula-tab>i{margin-right:10px;margin-left:15px}.modula-settings-container .modula-tabs .modula-tab:after{position:absolute;content:"";width:1px;height:100%;background-color:transparent;top:0;right:-1px}.modula-settings-container .modula-tabs .modula-tab.active-tab:first-child{border-top:0 none}.modula-settings-container .modula-tabs .modula-tab:hover{color:#333}.modula-settings-container .modula-tabs .modula-tab.active-tab{margin:0;padding:15px 10px 15px 0;background-color:#fff;border-bottom:1px solid #ddd;border-top:1px solid #ddd;color:#333}.modula-settings-container .modula-tabs .modula-tab.active-tab:before{content:"";position:absolute;left:0;top:0;width:3px;height:100%;background-color:#57a7c9}.modula-settings-container .modula-tabs .modula-tab.active-tab:after{background-color:#fff}tr label.th-label{color:#23282d;font-weight:600;margin-bottom:10px}.postbox .modula-settings-container table.form-table{margin:0}.postbox .modula-settings-container .form-table-wrapper{padding:0 0 0 20px;box-sizing:border-box}.modula-settings-container .modula-tabs-content{padding:10px 20px;border-left:1px solid #eee;flex-grow:1}.modula-tabs-content>div:not( .active-tab ){display:none}.modula-settings-container .modula-tabs-content .tab-content-header{width:100%;padding-bottom:12px;margin-bottom:10px;border-bottom:1px solid #eee;padding-left:20px;padding-right:0;box-sizing:border-box;display:flex;align-items:center;justify-content:space-between}.modula-settings-container .modula-tabs-content .tab-content-header .tab-content-header-actions{display:flex;align-items:center}.modula-settings-container .modula-tabs-content .tab-content-header .tab-content-header-actions>span{margin:0 10px;font-style:italic}.modula-settings-container .modula-tabs-content .tab-content-header .tab-content-header-actions a.button>span{height:auto;line-height:26px;margin-right:10px}#poststuff .modula-settings-container .modula-tabs-content .tab-content-header .tab-content-header-title>h2{font-weight:700;padding:0;display:inline-block}#poststuff .modula-settings-container .modula-tabs-content .tab-content-header .tab-header-description p{margin:0}.modula-settings-container .form-table td p.description{font-size:13px}.modula-settings-container .slider-container{position:relative;height:2px;padding:10px 0 10px 46px;width:25em;box-sizing:border-box;margin-bottom:10px}.modula-settings-container .slider-container input[type=text]{border:none;text-align:center;padding:2px;margin:0;font-size:12px;color:#333;border-radius:10px;background-color:#fff;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.16);-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,.16);box-shadow:inset 0 1px 1px rgba(0,0,0,.16);width:40px;height:22px;position:absolute;left:0;top:0}.modula-settings-container .slider-container .ui-slider{position:relative;text-align:left;height:2px;border-radius:3px;border:none;display:block;width:100%;background:#d6d6d6;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.modula-settings-container .slider-container .ui-slider .ui-slider-handle{position:absolute;z-index:2;top:-10px;cursor:default;-ms-touch-action:none;touch-action:none;width:18px;height:18px;-webkit-border-radius:9px;-moz-border-radius:9px;border-radius:9px;background-color:#fff;-webkit-box-shadow:0 1px 1px rgba(0,0,0,.1);-moz-box-shadow:0 1px 1px rgba(0,0,0,.1);box-shadow:0 1px 1px rgba(0,0,0,.1);border:1px solid #d7d7d7;transform:translateX(-50%)}.modula-settings-container .slider-container .ui-slider .ui-slider-range{position:absolute;z-index:1;font-size:.7em;display:block;border:0;background:#57a7c9;top:0;bottom:0}.modula-effects-preview{margin-top:20px}.modula-effects-preview .item{width:400px;height:267px;overflow:hidden;position:relative}.modula-effects-preview .item img{position:absolute}.modula-effects-preview .item .figc{display:flex;align-items:center;justify-content:center;color:#fff;font-size:11px;text-align:center;position:absolute;left:0;width:100%;height:100%;padding:0}.modula-effects-preview .item .figc h2{font-size:21px!important;color:#fff}.modula-effects-preview .item .figc p{color:#fff;font-size:15px;font-style:normal}.modula .items .item h2{margin:0}.modula .items .item p{margin:0;padding:0}.modula .figc{color:#000;text-align:center;position:absolute;left:0;width:100%;padding:2em}.modula .item .jtg-social a{text-decoration:none;color:#fff;display:inline-block;margin:0 10px 0 0;width:20px;padding:6px 4px;border:0;opacity:0;transition:opacity .3s}.modula .item .jtg-social svg{width:20px;height:16px}.modula .item:hover .jtg-social a{opacity:1}.modula .items .jtg-social{right:30px;position:absolute;bottom:20px;text-align:right;transition:all .3s;opacity:1}.modula .items .jtg-social a:last-of-type{margin-right:0}.modula .item.effect-pufrobo p.description{margin-bottom:2em}.modula .item.effect-pufrobo .figc{text-align:right}.modula .item.effect-pufrobo h2,.modula .item.effect-pufrobo p{position:absolute;right:30px;left:30px;padding:10px 0}.modula .item:hover img{opacity:.8}.modula .item{background-color:#000}.modula .item.effect-pufrobo p{bottom:20%;line-height:1.5;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0);letter-spacing:1px}.modula .item.effect-pufrobo h2{top:10%;-webkit-transition:-webkit-transform .35s;transition:transform .35s;-webkit-transform:translate3d(0,20px,0);transform:translate3d(0,20px,0)}.modula .item.effect-pufrobo:hover h2{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.modula .item.effect-pufrobo h2::after{position:absolute;top:80%;left:0;width:100%;height:4px;background:#fff;content:'';-webkit-transform:translate3d(0,40px,0);transform:translate3d(0,40px,0)}.modula .item.effect-pufrobo h2::after,.modula .item.effect-pufrobo p{opacity:0;-webkit-transition:opacity .35s,-webkit-transform .35s;transition:opacity .35s,transform .35s}.modula .item.effect-pufrobo:hover h2::after,.modula .item.effect-pufrobo:hover p{margin-top:10px;margin-bottom:5px;opacity:1;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.modula-upsell{background:#e5f3e2;border:1px solid #a8d69c;padding:20px;margin-top:30px}#poststuff .modula-upsell h2{margin:0 0 20px;font-size:16px;font-weight:700;padding:0}.modula-upsell p{margin:0}.modula-upsell p.modula-upsell-description{font-size:13px;line-height:1.5;color:#333;opacity:.8;margin-top:0;margin-bottom:10px}.modula-upsell .button{height:31px;line-height:31px;font-weight:700}.modula-upsell .button:first-child{margin-right:10px}.modula-upsell .button.button-primary{background-color:#52ad3a;border-color:#378c21;box-shadow:0 1px 0 #378c21;text-shadow:0 -1px 1px #378c21,1px 0 1px #378c21,0 1px 1px #378c21,-1px 0 1px #378c21}.modula-upsell .action-link,.modula-upsell .action-link:hover{background:#51AD31;border-color:#51AD31;color:#fff;font-weight:700}#modula-uploader-container{position:relative;padding-left:10px;padding-right:10px}#modula-uploader-container.modula-resizer-enabled{margin-bottom:20px}.modula-upload-actions{padding:15px 20px;background-color:#f8fcfd;border-bottom:1px solid #ecf6f9;margin-bottom:20px;display:flex;align-items:center;justify-content:space-between;width:100%;box-sizing:border-box}.modula-upload-actions .buttons{flex-shrink:0;width:275px;display:flex}.modula-sources-dropdown{position:relative;border-top:1px solid rgba(255,255,255,0);border-right:1px solid rgba(255,255,255,0);border-left:1px solid rgba(255,255,255,0)}.modula-sources-dropdown:hover{border-color:#ddd;background:#f5f5f5}.modula-sources-dropdown>span{width:28px;height:32px;text-align:center;line-height:28px;cursor:pointer;display:inline-block;font-size:25px;font-weight:700}.modula-sources-dropdown .modula-sources-dropdown-content{position:absolute;right:-1px;bottom:0;transform:translateY(100%);display:none;padding:15px;background-color:#f5f5f5;box-shadow:0 1px 1px rgba(0,0,0,.04);box-sizing:border-box;border:1px solid #ddd}.modula-sources-dropdown:hover .modula-sources-dropdown-content{display:block}.modula-sources-dropdown:hover .modula-sources-dropdown-content:before{content:"";height:1px;width:28px;background-color:#f5f5f5;position:absolute;top:-1px;right:0}.segrip.ui-resizable-se{width:30px;height:30px;background:url(../images/resize-se.svg) no-repeat;background-size:contain;display:none;z-index:100;opacity:1}.modula-resizer-enabled .segrip.ui-resizable-se{display:block}.modula-upload-actions #modula-uploader-browser{border-bottom-right-radius:0;border-top-right-radius:0}.modula-upload-actions #modula-wp-gallery{border-bottom-left-radius:0;border-top-left-radius:0}.wp-core-ui .modula-upload-actions>a{margin:0 5px}#modula-dropzone-container{position:absolute;top:0;left:0;right:0;bottom:0;background:rgba(0,86,132,.9);z-index:250000;display:none;text-align:center;opacity:0;transition:opacity 250ms}#modula-dropzone-container .modula-uploader-window-content{position:absolute;top:10px;left:10px;right:10px;bottom:10px;border:1px dashed #fff}#poststuff #modula-dropzone-container .modula-uploader-window-content h1{margin:-.5em 0 0;position:absolute;top:50%;left:0;right:0;-webkit-transform:translateY(-50%);transform:translateY(-50%);font-size:20px;line-height:28px;font-weight:400;color:#fff;padding:0}.modula-uploader-inline-content{position:relative;min-height:300px;width:100%}.modula-resizer-enabled .modula-uploader-inline-content{min-height:initial}.modula-uploader-inline-content h2{text-align:center;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}#poststuff .modula-upload-message{font-size:43px;line-height:1;font-weight:400;margin:0;display:none;color:#ebebeb}#poststuff .modula-upload-message .dashicons,#poststuff .modula-upload-message .dashicons-before:before{font-size:43px;width:43px;height:43px}.modula-uploader-inline p{font-size:12px;margin:.5em 0}#poststuff .modula-uploader-inline .modula-upload-instructions{font-size:14px;color:#444;font-weight:400;padding:0}.modula-uploader-footer .max-upload-size{float:left}.modula-uploader-footer .modula-upload-numbers{float:right;opacity:0}.modula-uploader-footer:after{display:block;content:"";clear:both}.upload-progress .modula-upload-numbers{margin:0;line-height:1.4em}.modula-progress-bar{width:100%;max-width:400px;position:relative;height:2px;margin:8px 0 0;border-radius:10px;background:#e5e5e5}.upload-info-container{position:relative;overflow:hidden;flex-grow:1}.upload-info-container .upload-info{padding:5px 0}.upload-info-container .upload-progress{position:absolute;background-color:#f8fcfd;height:100%;display:flex;top:0;left:0;width:100%;flex-direction:column;transition:transform .5s;transform:translateY(100%)}.modula-upload-actions.show-progress .upload-info-container .upload-progress{transform:translateY(0)}.modula-progress-bar .modula-progress-bar-inner{height:2px;min-width:20px;width:0;background:#0085ba;-webkit-transition:width .3s;-moz-transition:width .3s;-ms-transition:width .3s;-o-transition:width .3s;transition:width .3s;border-radius:5px}.modula-uploader-footer.show-progress .modula-progress-bar,.modula-uploader-footer.show-progress .modula-upload-numbers{opacity:1}.modula-uploader-inline-content .modula-single-image,.modula-uploader-inline-content .modula-single-image-placeholder{cursor:move;display:inline-block;padding:0 10px 20px 0;box-sizing:border-box;width:16.66%}.modula-uploader-inline-content .modula-single-image-placeholder:after{width:100%;height:100%;display:inline-block;content:"";position:relative;border:3px dashed #444;padding-top:calc(100% - 6px);box-sizing:border-box}.modula-uploader-inline-content .modula-single-image .modula-single-image-content{position:relative;border:1px solid #d6d6d6;box-sizing:border-box;background-position:center;background-size:cover}.modula-uploader-inline-content .modula-single-image .modula-single-image-content img{display:block;width:100%}#poststuff .modula-uploader-inline-content>.modula-upload-message:only-child{display:block}.modula-uploader-inline-content .modula-single-image .actions{position:absolute;z-index:99;font-size:0;width:100%;height:100%;top:0;left:0;background:rgba(0,0,0,.4);padding:5px;box-sizing:border-box;display:none}.modula-uploader-inline-content .modula-single-image:hover .actions{display:block}.modula-uploader-inline-content .modula-single-image .actions a{width:20px;height:20px;border-radius:100%;border:1px solid #000;background-color:rgba(255,255,255,.8);color:#000;display:block;text-decoration:none;text-align:center;line-height:20px;margin-bottom:5px}.modula-uploader-inline-content .modula-single-image .actions a:hover{background-color:#000;color:#fff}.modula-uploader-inline-content .modula-single-image .actions a span{font-size:16px;width:20px;height:20px;line-height:20px}.modula-uploader-inline-content .modula-single-image .actions a.modula-delete-image{color:#a00a00}.modula-uploader-inline-content .modula-single-image .actions a.modula-delete-image:hover{background-color:#a00a00;color:#fff}.modula-uploader-inline-content:after{content:"";display:block;clear:both}.media-modal .modula-edit-popup.edit-attachment-frame .edit-media-header button.right{border-right:1px solid #ddd}.media-modal .modula-edit-popup .attachment-details .attachment-info .settings .setting{margin:0 0 20px;padding:0 0 20px;border-bottom:1px solid #ddd}.media-modal .modula-edit-popup .attachment-details .attachment-info .settings .setting span.name{display:block;width:100%;min-width:100%;margin:0;padding:0;text-align:left;font-weight:700;font-size:14px}.media-modal .modula-edit-popup .attachment-details .attachment-info .settings .setting input[type=text],.media-modal .modula-edit-popup .attachment-details .attachment-info .settings .setting textarea{display:block;width:100%;min-width:100%;margin:0}.media-modal .modula-edit-popup .attachment-details .attachment-info .settings .setting div.description{clear:both;float:left;margin:5px 0 0;text-align:left;font-size:13px;font-style:italic;color:#666}.media-modal .modula-edit-popup .attachment-details .attachment-info .settings{margin:0;padding:0;border:none}.media-modal .attachment-info .actions a{display:inline-block}.inline-input{display:inline}.ui-draggable.ui-resizable>.segrip{width:10px;height:10px;background:red;position:absolute;bottom:0;right:0}.ui-draggable.ui-resizable .modula-single-image-content img{display:none}.ui-draggable.ui-resizable .modula-single-image-content{width:100%;height:100%}.ui-draggable.ui-resizable.modula-single-image{padding:0}.packery-drop-placeholder{outline:#444 dashed 3px;outline-offset:-6px;-webkit-transition:-webkit-transform .2s;transition:transform .2s}.ui-resizable-helper{border:3px dashed #444;box-sizing:border-box}#poststuff #modula-preview-gallery h2.hndle,#poststuff #modula-settings h2.hndle{padding-left:20px}#poststuff #modula-preview-gallery .inside{margin-top:0;padding:0}.modula-edit-popup .attachment-details .setting span.description>span{display:inline-block;float:none;width:auto;min-width:unset;line-height:16px;min-height:16px;margin-top:8px;padding:0;vertical-align:middle;margin-right:0}.modula-edit-popup .attachment-details .setting span.description{text-align:left;vertical-align:middle}.modula-media-modal .attachments-browser .media-toolbar .media-toolbar-secondary{width:100%}.modula-error-container{display:block}.modula-error-container.hide{display:none}.modula-error-container .modula-error{padding:12px;margin-bottom:12px;background:#dc3232;border-left:4px solid #dc3232;box-shadow:0 0 4px 0 rgba(0,0,0,.1);font-weight:600;margin-top:5px;position:relative;color:#fff}.modula-error-container .modula-error a{color:#fff}.modula-error-container .modula-error .upload-dismiss-errors{position:absolute;top:50%;right:-5px;padding:10px;transition:none;display:block;text-decoration:none;margin-top:-18px}.modula-error-container .modula-error .upload-dismiss-errors:before{content:"\f153";display:block;font:400 16px/1 dashicons;color:#fff}a.modula-tab-link{text-decoration:none}.modula-tab-link span.dashicons{width:16px;height:16px;line-height:16px;margin-right:3px;vertical-align:text-bottom;font-size:16px;text-decoration:none}#modula-grid{height:100%;position:absolute;overflow:hidden;top:0;left:0;width:100%}#modula-grid .modula-grid-item{background-color:#FAFAFA;float:left}#modula-grid .modula-grid-item:nth-child( 12n ){margin-right:0!important}#modula-grid:after{content:"";display:block;clear:both}.modula-tooltip{position:relative;display:inline-block}.modula-tooltip>span{cursor:pointer;color:#0073aa;text-decoration:underline;margin-left:5px}.modula-tooltip .modula-tooltip-content{display:none;position:absolute;top:50%;right:-10px;transform:translate(100% ,-50%);width:300px;background:#000;color:#fff;padding:10px;box-sizing:border-box;z-index:99}.modula-tooltip .modula-tooltip-content:before{content:'';width:0;height:0;border-style:solid;border-width:8px 8px 8px 0;border-color:transparent #000 transparent transparent;display:block;position:absolute;top:50%;left:-8px;transform:translateY(-50%)}.modula-tooltip:hover .modula-tooltip-content{display:block}.modula-helper-guidelines-container{padding:15px 20px;background-color:#f8fcfd;display:flex;align-items:center;border-top:1px solid #ecf6f9}.modula-helper-guidelines-container .onoffswitch{margin-top:0}.modula-helper-guidelines-wrapper .modula-helper-guidelines-label{margin-left:5px}.modula-creative-gallery.modula-uploader-inline-content .modula-single-image .modula-single-image-content{background:#eee!important;position:relative;overflow:hidden}.modula-creative-gallery.modula-uploader-inline-content .modula-single-image-content:before{content:"";display:block;padding-top:100%}.modula-creative-gallery.modula-uploader-inline-content .modula-single-image-content img{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.modula-toggle,.modula-toggle__items{position:relative;display:inline-block}.modula-creative-gallery.modula-uploader-inline-content .modula-single-image-content.landscape img{max-height:100%}.modula-creative-gallery.modula-uploader-inline-content .modula-single-image-content.portrait img{max-width:100%}.modula-toggle{user-select:none}.modula-toggle__items{box-sizing:border-box}.modula-toggle__items>*{box-sizing:inherit}.modula-toggle__input[type=checkbox]{border-radius:2px;border:2px solid #6c7781;transition:none;height:100%;left:0;top:0;margin:0;padding:0;opacity:0;position:absolute;width:100%;z-index:1}.modula-toggle__track{background-color:#fff;border:2px solid #6c7781;border-radius:9px;display:inline-block;height:18px;width:36px;vertical-align:top;transition:background .2s ease}.modula-toggle__thumb{background-color:#6c7781;border:5px solid #6c7781;border-radius:50%;display:block;height:10px;width:10px;position:absolute;left:4px;top:4px;transition:transform .2s ease}.modula-toggle__off{position:absolute;right:6px;top:6px;color:#6c7781;fill:currentColor}.modula-toggle__on{position:absolute;top:6px;left:8px;border:1px solid #fff;outline:transparent solid 1px;outline-offset:-1px;display:none}.modula-toggle__input[type=checkbox]:checked+.modula-toggle__items .modula-toggle__track{background-color:#11a0d2;border:9px solid transparent}.modula-toggle__input[type=checkbox]:checked+.modula-toggle__items .modula-toggle__thumb{background-color:#fff;border-width:0;transform:translateX(18px)}.modula-toggle__input[type=checkbox]:checked+.modula-toggle__items .modula-toggle__off{display:none}.modula-toggle__input[type=checkbox]:checked+.modula-toggle__items .modula-toggle__on{display:inline-block}
|
1 |
+
#modula-settings .inside{padding:0;margin:0}.modula-settings-container{display:flex}.modula-settings-container .modula-tabs{background-color:#f8f8f8}.modula-settings-container .modula-tabs .modula-tab{margin:0 10px 0 0;padding:15px 0;color:#9c9c9c;cursor:pointer;width:161px;position:relative}.modula-settings-container .modula-tabs .modula-tab sup{margin-left:5px;padding:2px 5px;border-radius:5px;color:#fff;font-size:8px;background:#9c9c9c;display:inline-block;line-height:1;position:relative;top:-2px}.modula-settings-container .modula-tabs .modula-tab.active-tab sup,.modula-settings-container .modula-tabs .modula-tab:hover sup{background-color:#57a7c9}.modula-settings-container .modula-tabs .modula-tab.modula-responsive.active-tab sup,.modula-settings-container .modula-tabs .modula-tab.modula-responsive:hover sup{background:#dc3232}.modula-settings-container .modula-tabs .modula-tab>i{margin-right:10px;margin-left:15px}.modula-settings-container .modula-tabs .modula-tab:after{position:absolute;content:"";width:1px;height:100%;background-color:transparent;top:0;right:-1px}.modula-settings-container .modula-tabs .modula-tab.active-tab:first-child{border-top:0 none}.modula-settings-container .modula-tabs .modula-tab:hover{color:#333}.modula-settings-container .modula-tabs .modula-tab.active-tab{margin:0;padding:15px 10px 15px 0;background-color:#fff;border-bottom:1px solid #ddd;border-top:1px solid #ddd;color:#333}.modula-settings-container .modula-tabs .modula-tab.active-tab:before{content:"";position:absolute;left:0;top:0;width:3px;height:100%;background-color:#57a7c9}.modula-settings-container .modula-tabs .modula-tab.active-tab:after{background-color:#fff}tr label.th-label{color:#23282d;font-weight:600;margin-bottom:10px}.postbox .modula-settings-container table.form-table{margin:0}.postbox .modula-settings-container .form-table-wrapper{padding:0 0 0 20px;box-sizing:border-box}.modula-settings-container .modula-tabs-content{padding:10px 20px;border-left:1px solid #eee;flex-grow:1}.modula-tabs-content>div:not( .active-tab ){display:none}.modula-settings-container .modula-tabs-content .tab-content-header{width:100%;padding-bottom:12px;margin-bottom:10px;border-bottom:1px solid #eee;padding-left:20px;padding-right:0;box-sizing:border-box;display:flex;align-items:center;justify-content:space-between}.modula-settings-container .modula-tabs-content .tab-content-header .tab-content-header-actions{display:flex;align-items:center}.modula-settings-container .modula-tabs-content .tab-content-header .tab-content-header-actions>span{margin:0 10px;font-style:italic}.modula-settings-container .modula-tabs-content .tab-content-header .tab-content-header-actions a.button>span{height:auto;line-height:26px;margin-right:10px}#poststuff .modula-settings-container .modula-tabs-content .tab-content-header .tab-content-header-title>h2{font-weight:700;padding:0;display:inline-block}#poststuff .modula-settings-container .modula-tabs-content .tab-content-header .tab-header-description p{margin:0}.modula-settings-container .form-table td p.description{font-size:13px}.modula-settings-container .slider-container{position:relative;height:2px;padding:10px 0;width:25em;box-sizing:border-box;margin-bottom:10px;display:flex;justify-content:space-between;align-items:center}.modula-settings-container .slider-container input[type=text]{border:none;text-align:center;padding:2px;margin:0 20px 0 0;font-size:12px;color:#333;border-radius:10px;background-color:#fff;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.16);-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,.16);box-shadow:inset 0 1px 1px rgba(0,0,0,.16);width:40px;height:22px;cursor:default}.modula-settings-container .slider-container .ui-slider{position:relative;text-align:left;height:2px;border-radius:3px;border:none;display:block;width:100%;background:#d6d6d6;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.modula-settings-container .slider-container .ui-slider .ui-slider-handle{position:absolute;z-index:2;top:-10px;cursor:default;-ms-touch-action:none;touch-action:none;width:18px;height:18px;-webkit-border-radius:9px;-moz-border-radius:9px;border-radius:9px;background-color:#fff;-webkit-box-shadow:0 1px 1px rgba(0,0,0,.1);-moz-box-shadow:0 1px 1px rgba(0,0,0,.1);box-shadow:0 1px 1px rgba(0,0,0,.1);border:1px solid #d7d7d7;transform:translateX(-50%)}.modula-settings-container .slider-container .ui-slider .ui-slider-range{position:absolute;z-index:1;font-size:.7em;display:block;border:0;background:#57a7c9;top:0;bottom:0}.modula-effects-preview{margin-top:20px}.modula-effects-preview .item{width:400px;height:267px;overflow:hidden;position:relative}.modula-effects-preview .item img{position:absolute}.modula-effects-preview .item .figc{display:flex;align-items:center;justify-content:center;color:#fff;font-size:11px;text-align:center;position:absolute;left:0;width:100%;height:100%;padding:0}.modula-effects-preview .item .figc h2{font-size:21px!important;color:#fff}.modula-effects-preview .item .figc p{color:#fff;font-size:15px;font-style:normal}.modula .items .item h2{margin:0}.modula .items .item p{margin:0;padding:0}.modula .figc{color:#000;text-align:center;position:absolute;left:0;width:100%;padding:2em}.modula .item .jtg-social a{text-decoration:none;color:#fff;display:inline-block;margin:0 10px 0 0;width:20px;padding:6px 4px;border:0;opacity:0;transition:opacity .3s}.modula .item .jtg-social svg{width:20px;height:16px}.modula .item:hover .jtg-social a{opacity:1}.modula .items .jtg-social{right:30px;position:absolute;bottom:20px;text-align:right;transition:all .3s;opacity:1}.modula .items .jtg-social a:last-of-type{margin-right:0}.modula .item.effect-pufrobo p.description{margin-bottom:2em}.modula .item.effect-pufrobo .figc{text-align:right}.modula .item.effect-pufrobo h2,.modula .item.effect-pufrobo p{position:absolute;right:30px;left:30px;padding:10px 0}.modula .item:hover img{opacity:.8}.modula .item{background-color:#000}.modula .item.effect-pufrobo p{bottom:20%;line-height:1.5;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0);letter-spacing:1px}.modula .item.effect-pufrobo h2{top:10%;-webkit-transition:-webkit-transform .35s;transition:transform .35s;-webkit-transform:translate3d(0,20px,0);transform:translate3d(0,20px,0)}.modula .item.effect-pufrobo:hover h2{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.modula .item.effect-pufrobo h2::after{position:absolute;top:80%;left:0;width:100%;height:4px;background:#fff;content:'';-webkit-transform:translate3d(0,40px,0);transform:translate3d(0,40px,0)}.modula .item.effect-pufrobo h2::after,.modula .item.effect-pufrobo p{opacity:0;-webkit-transition:opacity .35s,-webkit-transform .35s;transition:opacity .35s,transform .35s}.modula .item.effect-pufrobo:hover h2::after,.modula .item.effect-pufrobo:hover p{margin-top:10px;margin-bottom:5px;opacity:1;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.modula-upsell{background:#e5f3e2;border:1px solid #a8d69c;padding:20px;margin-top:30px}#poststuff .modula-upsell h2{margin:0 0 20px;font-size:16px;font-weight:700;padding:0}.modula-upsell p{margin:0}.modula-upsell p.modula-upsell-description{font-size:13px;line-height:1.5;color:#333;opacity:.8;margin-top:0;margin-bottom:10px}.modula-upsell .button{height:31px;line-height:31px;font-weight:700}.modula-upsell .button:first-child{margin-right:10px}.modula-upsell .button.button-primary{background-color:#52ad3a;border-color:#378c21;box-shadow:0 1px 0 #378c21;text-shadow:0 -1px 1px #378c21,1px 0 1px #378c21,0 1px 1px #378c21,-1px 0 1px #378c21}.modula-upsell .action-link,.modula-upsell .action-link:hover{background:#51AD31;border-color:#51AD31;color:#fff;font-weight:700}#modula-uploader-container{position:relative;padding-left:10px;padding-right:10px}#modula-uploader-container.modula-resizer-enabled{margin-bottom:20px}.modula-upload-actions{padding:15px 20px;background-color:#f8fcfd;border-bottom:1px solid #ecf6f9;margin-bottom:20px;display:flex;align-items:center;justify-content:space-between;width:100%;box-sizing:border-box}.modula-upload-actions .buttons{flex-shrink:0;width:275px;display:flex}.modula-sources-dropdown{position:relative;border-top:1px solid rgba(255,255,255,0);border-right:1px solid rgba(255,255,255,0);border-left:1px solid rgba(255,255,255,0)}.modula-sources-dropdown:hover{border-color:#ddd;background:#f5f5f5}.modula-sources-dropdown>span{width:28px;height:32px;text-align:center;line-height:28px;cursor:pointer;display:inline-block;font-size:25px;font-weight:700}.modula-sources-dropdown .modula-sources-dropdown-content{position:absolute;right:-1px;bottom:0;transform:translateY(100%);display:none;padding:15px;background-color:#f5f5f5;box-shadow:0 1px 1px rgba(0,0,0,.04);box-sizing:border-box;border:1px solid #ddd}.modula-sources-dropdown:hover .modula-sources-dropdown-content{display:block}.modula-sources-dropdown:hover .modula-sources-dropdown-content:before{content:"";height:1px;width:28px;background-color:#f5f5f5;position:absolute;top:-1px;right:0}.segrip.ui-resizable-se{width:30px;height:30px;background:url(../images/resize-se.svg) no-repeat;background-size:contain;display:none;z-index:100;opacity:1}.modula-resizer-enabled .segrip.ui-resizable-se{display:block}.modula-upload-actions #modula-uploader-browser{border-bottom-right-radius:0;border-top-right-radius:0}.modula-upload-actions #modula-wp-gallery{border-bottom-left-radius:0;border-top-left-radius:0}.wp-core-ui .modula-upload-actions>a{margin:0 5px}#modula-dropzone-container{position:absolute;top:0;left:0;right:0;bottom:0;background:rgba(0,86,132,.9);z-index:250000;display:none;text-align:center;opacity:0;transition:opacity 250ms}#modula-dropzone-container .modula-uploader-window-content{position:absolute;top:10px;left:10px;right:10px;bottom:10px;border:1px dashed #fff}#poststuff #modula-dropzone-container .modula-uploader-window-content h1{margin:-.5em 0 0;position:absolute;top:50%;left:0;right:0;-webkit-transform:translateY(-50%);transform:translateY(-50%);font-size:20px;line-height:28px;font-weight:400;color:#fff;padding:0}.modula-uploader-inline-content{position:relative;min-height:300px;width:100%}.modula-resizer-enabled .modula-uploader-inline-content{min-height:initial}.modula-uploader-inline-content h2{text-align:center;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}#poststuff .modula-upload-message{font-size:43px;line-height:1;font-weight:400;margin:0;display:none;color:#ebebeb}#poststuff .modula-upload-message .dashicons,#poststuff .modula-upload-message .dashicons-before:before{font-size:43px;width:43px;height:43px}.modula-uploader-inline p{font-size:12px;margin:.5em 0}#poststuff .modula-uploader-inline .modula-upload-instructions{font-size:14px;color:#444;font-weight:400;padding:0}.modula-uploader-footer .max-upload-size{float:left}.modula-uploader-footer .modula-upload-numbers{float:right;opacity:0}.modula-uploader-footer:after{display:block;content:"";clear:both}.upload-progress .modula-upload-numbers{margin:0;line-height:1.4em}.modula-progress-bar{width:100%;max-width:400px;position:relative;height:2px;margin:8px 0 0;border-radius:10px;background:#e5e5e5}.upload-info-container{position:relative;overflow:hidden;flex-grow:1}.upload-info-container .upload-info{padding:5px 0}.upload-info-container .upload-progress{position:absolute;background-color:#f8fcfd;height:100%;display:flex;top:0;left:0;width:100%;flex-direction:column;transition:transform .5s;transform:translateY(100%)}.modula-upload-actions.show-progress .upload-info-container .upload-progress{transform:translateY(0)}.modula-progress-bar .modula-progress-bar-inner{height:2px;min-width:20px;width:0;background:#0085ba;-webkit-transition:width .3s;-moz-transition:width .3s;-ms-transition:width .3s;-o-transition:width .3s;transition:width .3s;border-radius:5px}.modula-uploader-footer.show-progress .modula-progress-bar,.modula-uploader-footer.show-progress .modula-upload-numbers{opacity:1}.modula-uploader-inline-content .modula-single-image,.modula-uploader-inline-content .modula-single-image-placeholder{cursor:move;display:inline-block;padding:0 10px 20px 0;box-sizing:border-box;width:16.66%}.modula-uploader-inline-content .modula-single-image-placeholder:after{width:100%;height:100%;display:inline-block;content:"";position:relative;border:3px dashed #444;padding-top:calc(100% - 6px);box-sizing:border-box}.modula-uploader-inline-content .modula-single-image .modula-single-image-content{position:relative;border:1px solid #d6d6d6;box-sizing:border-box;background-position:center;background-size:cover}.modula-uploader-inline-content .modula-single-image .modula-single-image-content img{display:block;width:100%}#poststuff .modula-uploader-inline-content>.modula-upload-message:only-child{display:block}.modula-uploader-inline-content .modula-single-image .actions{position:absolute;z-index:99;font-size:0;width:100%;height:100%;top:0;left:0;background:rgba(0,0,0,.4);padding:5px;box-sizing:border-box;display:none}.modula-uploader-inline-content .modula-single-image:hover .actions{display:block}.modula-uploader-inline-content .modula-single-image .actions a{width:20px;height:20px;border-radius:100%;border:1px solid #000;background-color:rgba(255,255,255,.8);color:#000;display:block;text-decoration:none;text-align:center;line-height:20px;margin-bottom:5px}.modula-uploader-inline-content .modula-single-image .actions a:hover{background-color:#000;color:#fff}.modula-uploader-inline-content .modula-single-image .actions a span{font-size:16px;width:20px;height:20px;line-height:20px}.modula-uploader-inline-content .modula-single-image .actions a.modula-delete-image{color:#a00a00}.modula-uploader-inline-content .modula-single-image .actions a.modula-delete-image:hover{background-color:#a00a00;color:#fff}.modula-uploader-inline-content:after{content:"";display:block;clear:both}.media-modal .modula-edit-popup.edit-attachment-frame .edit-media-header button.right{border-right:1px solid #ddd}.media-modal .modula-edit-popup .attachment-details .attachment-info .settings .setting{margin:0 0 20px;padding:0 0 20px;border-bottom:1px solid #ddd}.media-modal .modula-edit-popup .attachment-details .attachment-info .settings .setting span.name{display:block;width:100%;min-width:100%;margin:0;padding:0;text-align:left;font-weight:700;font-size:14px}.media-modal .modula-edit-popup .attachment-details .attachment-info .settings .setting input[type=text],.media-modal .modula-edit-popup .attachment-details .attachment-info .settings .setting textarea{display:block;width:100%;min-width:100%;margin:0}.media-modal .modula-edit-popup .attachment-details .attachment-info .settings .setting div.description{clear:both;float:left;margin:5px 0 0;text-align:left;font-size:13px;font-style:italic;color:#666}.media-modal .modula-edit-popup .attachment-details .attachment-info .settings{margin:0;padding:0;border:none}.media-modal .attachment-info .actions a{display:inline-block}.inline-input{display:inline}.ui-draggable.ui-resizable>.segrip{width:10px;height:10px;background:red;position:absolute;bottom:0;right:0}.ui-draggable.ui-resizable .modula-single-image-content img{display:none}.ui-draggable.ui-resizable .modula-single-image-content{width:100%;height:100%}.ui-draggable.ui-resizable.modula-single-image{padding:0}.packery-drop-placeholder{outline:#444 dashed 3px;outline-offset:-6px;-webkit-transition:-webkit-transform .2s;transition:transform .2s}.ui-resizable-helper{border:3px dashed #444;box-sizing:border-box}#poststuff #modula-preview-gallery h2.hndle,#poststuff #modula-settings h2.hndle{padding-left:20px}#poststuff #modula-preview-gallery .inside{margin-top:0;padding:0}.modula-edit-popup .attachment-details .setting span.description>span{display:inline-block;float:none;width:auto;min-width:unset;line-height:16px;min-height:16px;margin-top:8px;padding:0;vertical-align:middle;margin-right:0}.modula-edit-popup .attachment-details .setting span.description{text-align:left;vertical-align:middle}.modula-media-modal .attachments-browser .media-toolbar .media-toolbar-secondary{width:100%}.modula-error-container{display:block}.modula-error-container.hide{display:none}.modula-error-container .modula-error{padding:12px;margin-bottom:12px;background:#dc3232;border-left:4px solid #dc3232;box-shadow:0 0 4px 0 rgba(0,0,0,.1);font-weight:600;margin-top:5px;position:relative;color:#fff}.modula-error-container .modula-error a{color:#fff}.modula-error-container .modula-error .upload-dismiss-errors{position:absolute;top:50%;right:-5px;padding:10px;transition:none;display:block;text-decoration:none;margin-top:-18px}.modula-error-container .modula-error .upload-dismiss-errors:before{content:"\f153";display:block;font:400 16px/1 dashicons;color:#fff}a.modula-tab-link{text-decoration:none}.modula-tab-link span.dashicons{width:16px;height:16px;line-height:16px;margin-right:3px;vertical-align:text-bottom;font-size:16px;text-decoration:none}#modula-grid{height:100%;position:absolute;overflow:hidden;top:0;left:0;width:100%}#modula-grid .modula-grid-item{background-color:#FAFAFA;float:left}#modula-grid .modula-grid-item:nth-child( 12n ){margin-right:0!important}#modula-grid:after{content:"";display:block;clear:both}.modula-tooltip{position:relative;display:inline-block}.modula-tooltip>span{cursor:pointer;color:#0073aa;text-decoration:underline;margin-left:5px}.modula-tooltip .modula-tooltip-content{display:none;position:absolute;top:50%;right:-10px;transform:translate(100% ,-50%);width:300px;background:#000;color:#fff;padding:10px;box-sizing:border-box;z-index:99}.modula-tooltip .modula-tooltip-content:before{content:'';width:0;height:0;border-style:solid;border-width:8px 8px 8px 0;border-color:transparent #000 transparent transparent;display:block;position:absolute;top:50%;left:-8px;transform:translateY(-50%)}.modula-tooltip:hover .modula-tooltip-content{display:block}.modula-helper-guidelines-container{padding:15px 20px;background-color:#f8fcfd;display:flex;align-items:center;border-top:1px solid #ecf6f9}.modula-helper-guidelines-container .onoffswitch{margin-top:0}.modula-helper-guidelines-wrapper .modula-helper-guidelines-label{margin-left:5px}.modula-creative-gallery.modula-uploader-inline-content .modula-single-image .modula-single-image-content{background:#eee!important;position:relative;overflow:hidden}.modula-creative-gallery.modula-uploader-inline-content .modula-single-image-content:before{content:"";display:block;padding-top:100%}.modula-creative-gallery.modula-uploader-inline-content .modula-single-image-content img{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.modula-toggle,.modula-toggle__items{position:relative;display:inline-block}.modula-creative-gallery.modula-uploader-inline-content .modula-single-image-content.landscape img{max-height:100%}.modula-creative-gallery.modula-uploader-inline-content .modula-single-image-content.portrait img{max-width:100%}.modula-toggle{user-select:none}.modula-toggle__items{box-sizing:border-box}.modula-toggle__items>*{box-sizing:inherit}.modula-toggle__input[type=checkbox]{border-radius:2px;border:2px solid #6c7781;transition:none;height:100%;left:0;top:0;margin:0;padding:0;opacity:0;position:absolute;width:100%;z-index:1}.modula-toggle__track{background-color:#fff;border:2px solid #6c7781;border-radius:9px;display:inline-block;height:18px;width:36px;vertical-align:top;transition:background .2s ease}.modula-toggle__thumb{background-color:#6c7781;border:5px solid #6c7781;border-radius:50%;display:block;height:10px;width:10px;position:absolute;left:4px;top:4px;transition:transform .2s ease}.modula-toggle__off{position:absolute;right:6px;top:6px;color:#6c7781;fill:currentColor}.modula-toggle__on{position:absolute;top:6px;left:8px;border:1px solid #fff;outline:transparent solid 1px;outline-offset:-1px;display:none}.modula-toggle__input[type=checkbox]:checked+.modula-toggle__items .modula-toggle__track{background-color:#11a0d2;border:9px solid transparent}.modula-toggle__input[type=checkbox]:checked+.modula-toggle__items .modula-toggle__thumb{background-color:#fff;border-width:0;transform:translateX(18px)}.modula-toggle__input[type=checkbox]:checked+.modula-toggle__items .modula-toggle__off{display:none}.modula-toggle__input[type=checkbox]:checked+.modula-toggle__items .modula-toggle__on{display:inline-block}
|
assets/js/jquery-modula.js
CHANGED
@@ -669,7 +669,8 @@ jQuery(document).on( 'vc-full-width-row-single vc-full-width-row', function( eve
|
|
669 |
|
670 |
this.$itemsCnt.css({
|
671 |
position: 'relative',
|
672 |
-
zIndex: 1
|
|
|
673 |
});
|
674 |
|
675 |
this.$items.addClass("tile");
|
@@ -740,6 +741,15 @@ jQuery(document).on( 'vc-full-width-row-single vc-full-width-row', function( eve
|
|
740 |
}
|
741 |
}
|
742 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
743 |
//credits James Padolsey http://james.padolsey.com/
|
744 |
var qualifyURL = function (url) {
|
745 |
var img = document.createElement('img');
|
@@ -823,7 +833,6 @@ jQuery(document).on( 'vc-full-width-row-single vc-full-width-row', function( eve
|
|
823 |
|
824 |
if (options === undefined || typeof options === 'object') {
|
825 |
return this.each(function () {
|
826 |
-
|
827 |
if (!$.data(this, 'plugin_' + pluginName)) {
|
828 |
$.data(this, 'plugin_' + pluginName, new Plugin(this, options));
|
829 |
}
|
669 |
|
670 |
this.$itemsCnt.css({
|
671 |
position: 'relative',
|
672 |
+
zIndex: 1,
|
673 |
+
'min-height': '10px'
|
674 |
});
|
675 |
|
676 |
this.$items.addClass("tile");
|
741 |
}
|
742 |
}
|
743 |
|
744 |
+
Plugin.prototype.destroy = function () {
|
745 |
+
|
746 |
+
if ( this.isPackeryActive ) {
|
747 |
+
this.$itemsCnt.packery( 'destroy' );
|
748 |
+
this.isPackeryActive = false;
|
749 |
+
}
|
750 |
+
|
751 |
+
}
|
752 |
+
|
753 |
//credits James Padolsey http://james.padolsey.com/
|
754 |
var qualifyURL = function (url) {
|
755 |
var img = document.createElement('img');
|
833 |
|
834 |
if (options === undefined || typeof options === 'object') {
|
835 |
return this.each(function () {
|
|
|
836 |
if (!$.data(this, 'plugin_' + pluginName)) {
|
837 |
$.data(this, 'plugin_' + pluginName, new Plugin(this, options));
|
838 |
}
|
assets/js/jquery-modula.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
function tg_getURLParameter(t){return decodeURIComponent((new RegExp("[?|&]"+t+"=([^&;]+?)(&|#|;|$)").exec(location.search)||[,""])[1].replace(/\+/g,"%20"))||null}!function(t,e){"function"==typeof define&&define.amd?define(e):"object"==typeof exports?module.exports=e():t.ResizeSensor=e()}("undefined"!=typeof window?window:this,function(){if("undefined"==typeof window)return null;var v=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||function(t){return window.setTimeout(t,20)};function n(t,e){var i=Object.prototype.toString.call(t),n="[object Array]"===i||"[object NodeList]"===i||"[object HTMLCollection]"===i||"[object Object]"===i||"undefined"!=typeof jQuery&&t instanceof jQuery||"undefined"!=typeof Elements&&t instanceof Elements,o=0,s=t.length;if(n)for(;o<s;o++)e(t[o]);else e(t)}function y(t){if(!t.getBoundingClientRect)return{width:t.offsetWidth,height:t.offsetHeight};var e=t.getBoundingClientRect();return{width:Math.round(e.width),height:Math.round(e.height)}}var o=function(e,i){function w(){var i,n,o=[];this.add=function(t){o.push(t)},this.call=function(){for(i=0,n=o.length;i<n;i++)o[i].call()},this.remove=function(t){var e=[];for(i=0,n=o.length;i<n;i++)o[i]!==t&&e.push(o[i]);o=e},this.length=function(){return o.length}}n(e,function(t){!function(n,t){if(n)if(n.resizedAttached)n.resizedAttached.add(t);else{n.resizedAttached=new w,n.resizedAttached.add(t),n.resizeSensor=document.createElement("div"),n.resizeSensor.dir="ltr",n.resizeSensor.className="resize-sensor";var e="position: absolute; left: -10px; top: -10px; right: 0; bottom: 0; overflow: hidden; z-index: -1; visibility: hidden;",i="position: absolute; left: 0; top: 0; transition: 0s;";n.resizeSensor.style.cssText=e,n.resizeSensor.innerHTML='<div class="resize-sensor-expand" style="'+e+'"><div style="'+i+'"></div></div><div class="resize-sensor-shrink" style="'+e+'"><div style="'+i+' width: 200%; height: 200%"></div></div>',n.appendChild(n.resizeSensor);var o=window.getComputedStyle(n).getPropertyPriority("position");"absolute"!==o&&"relative"!==o&&"fixed"!==o&&(n.style.position="relative");var s,h,r=n.resizeSensor.childNodes[0],a=r.childNodes[0],d=n.resizeSensor.childNodes[1],l=y(n),c=l.width,u=l.height,p=function(){var t=0===n.offsetWidth&&0===n.offsetHeight;if(t){var e=n.style.display;n.style.display="block"}a.style.width="100000px",a.style.height="100000px",r.scrollLeft=1e5,r.scrollTop=1e5,d.scrollLeft=1e5,d.scrollTop=1e5,t&&(n.style.display=e)};n.resizeSensor.resetSensor=p;var f=function(){h=0,s&&(u=c=void 0,n.resizedAttached&&n.resizedAttached.call())},g=function(){var t=y(n),e=t.width,i=t.height;(s=e!=c||i!=u)&&!h&&(h=v(f)),p()},m=function(t,e,i){t.attachEvent?t.attachEvent("on"+e,i):t.addEventListener(e,i)};m(r,"scroll",g),m(d,"scroll",g),v(p)}}(t,i)}),this.detach=function(t){o.detach(e,t)},this.reset=function(){e.resizeSensor.resetSensor()}};return o.reset=function(t,e){n(t,function(t){t.resizeSensor.resetSensor()})},o.detach=function(t,e){n(t,function(t){t&&(t.resizedAttached&&"function"==typeof e&&(t.resizedAttached.remove(e),t.resizedAttached.length())||t.resizeSensor&&(t.contains(t.resizeSensor)&&t.removeChild(t.resizeSensor),delete t.resizeSensor,delete t.resizedAttached))})},o}),jQuery(document).on("vc-full-width-row-single vc-full-width-row",function(t,e){0<jQuery("body").find(".modula").length&&jQuery(window).trigger("modula-update")}),function(l,h,c,t){var o="modulaGallery",i={resizer:"/",margin:10,keepArea:!0,type:"creative-gallery",columns:12,gutter:10,enableTwitter:!1,enableFacebook:!1,enableGplus:!1,enablePinterest:!1,enableLinkedin:!1,lazyLoad:0};function s(t,e){this.element=t,this.$element=l(t),this.$itemsCnt=this.$element.find(".items"),this.$items=this.$itemsCnt.find(".item"),this.options=l.extend({},i,e),this._defaults=i,this._name=o,this.tiles=[],this.$tilesCnt=null,this.completed=!1,this.lastWidth=0,this.resizeTO=0,this.isPackeryActive=!1,this.init()}s.prototype.trunc=function(t){return Math.trunc?Math.trunc(t):(t=+t,isFinite(t)?t-t%1||(t<0?-0:0===t?t:0):t)},s.prototype.createCustomGallery=function(){var r,t=this.$element.width(),a=this,d=this.options.columns,e=c.documentElement.clientWidth;"1"==this.options.enableResponsive&&(e<=568?d=this.options.mobileColumns:e<=768&&(d=this.options.tabletColumns)),r=0<this.options.gutter?(t-this.options.gutter*(d-1))/d:Math.floor(t/d),this.$items.not(".jtg-hidden").each(function(t,e){var i,n,o,s,h={};i=l(e).data("width"),n=l(e).data("height"),12<i&&(i=12),"1"==a.options.enableResponsive&&(o=i,s=n,1==d?n=(i=1)*s/o:((i=Math.round(d*o/12))<1&&(i=1),(n=Math.round(i*s/o))<1&&(n=1))),h.width=r*i+a.options.gutter*(i-1),h.height=r*n+a.options.gutter*(n-1),l(e).data("size",h).addClass("tiled").addClass(h.width>h.height?"tile-h":"tile-v").data("position"),l(e).css(l(e).data("size")),l(e).find(".figc").css({width:l(e).data("size").width,height:l(e).data("size").height})}),this.isPackeryActive&&this.$itemsCnt.packery("destroy"),this.$itemsCnt.packery({itemSelector:".item",gutter:parseInt(a.options.gutter),columnWidth:r,resize:!1}),this.isPackeryActive=!0},s.prototype.createGrid=function(){var n=this;this.options.width&&this.$itemsCnt.width(this.options.width),this.options.height&&this.$itemsCnt.height(this.options.height),this.$itemsCnt.data("area",this.$itemsCnt.width()*this.$itemsCnt.height()),this.lastWidth=this.$itemsCnt.width();for(var t=0;t<this.$items.not(".jtg-hidden").length;t++)this.tiles.push(n.getSlot());this.tiles.sort(function(t,e){return t.position-e.position}),this.$items.not(".jtg-hidden").each(function(t,e){var i=n.tiles[t];l(e).data("size",i).addClass("tiled").addClass(i.width>i.height?"tile-h":"tile-v").data("position")}),this.$items.each(function(t,e){l(e).css(l(e).data("size")),l(e).find(".figc").css({width:l(e).data("size").width,height:l(e).data("size").height})}),this.completed=!0},s.prototype.getSlot=function(){if(0==this.tiles.length)return i={top:0,left:0,width:this.$itemsCnt.width(),height:this.$itemsCnt.height(),area:this.$itemsCnt.width()*this.$itemsCnt.height(),position:0};for(var t=0,e=0;e<this.tiles.length;e++){(i=this.tiles[e]).area>this.tiles[t].area&&(t=e)}var i={},n=this.tiles[t];if(n.width>n.height){var o=n.width/2*this.options.randomFactor;n.prevWidth=n.width,n.width=Math.floor(n.width/2+o*(Math.random()-.5)),i={top:n.top,left:n.left+n.width+this.options.margin,width:n.prevWidth-n.width-this.options.margin,height:n.height}}else{o=n.height/2*this.options.randomFactor;n.prevHeight=n.height,n.height=Math.floor(n.height/2+o*(Math.random()-.5)),i={left:n.left,top:n.top+n.height+this.options.margin,width:n.width,height:n.prevHeight-n.height-this.options.margin}}return i.area=i.width*i.height,i.position=1e3*i.top+i.left,n.position=1e3*n.top+n.left,this.tiles[t]=n,this.tiles[t].area=n.width*n.height,i},s.prototype.reset=function(){var i=this;i.tiles=[],"custom-grid"===i.options.type?(i.createCustomGallery(),i.$itemsCnt.packery()):i.createGrid(),i.$itemsCnt.find(".pic").each(function(t,e){i.placeImage(t)}),i.lastWidth=i.$itemsCnt.width()},s.prototype.onResize=function(e){e.lastWidth!=e.$itemsCnt.width()&&(clearTimeout(e.resizeTO),e.resizeTO=setTimeout(function(){if(e.options.keepArea){var t=e.$itemsCnt.data("area");e.$itemsCnt.height(t/e.$itemsCnt.width())}e.reset()},100))},s.prototype.placeImage=function(t){var e=this.$items.eq(t),i=e.find(".pic"),n=e.data("size"),o=i.data("size");if(void 0!==n&&void 0!==o){var s=n.width/n.height,h=o.width/o.height,r=i.data("valign")?i.data("valign"):"middle",a=i.data("halign")?i.data("halign"):"center",d={top:"auto",bottom:"auto",left:"auto",right:"auto",width:"auto",height:"auto",margin:"0",maxWidth:"999em"};if(h<s)switch(d.width=n.width,d.left=0,r){case"top":d.top=0;break;case"middle":d.top=0-(n.width*(1/h)-n.height)/2;break;case"bottom":d.bottom=0}else switch(d.height=n.height,d.top=0,a){case"left":d.left=0;break;case"center":d.left=0-(n.height*h-n.width)/2;break;case"right":d.right=0}i.css(d)}},s.prototype.loadImage=function(t){var e=this,i=e.$items.eq(t).find(".pic"),n=new Image;n.onerror=function(){console.log("error loading image ["+t+"] : "+this.src),t+1<e.$items.length&&e.loadImage(t+1)},n.onload=function(){i.data("size",{width:this.width,height:this.height}),e.placeImage(t),e.$items.eq(t).addClass("tg-loaded"),t+1<e.$items.length&&e.loadImage(t+1)};var o=i.data("src");n.src=o,i.attr("src",o)},s.prototype.init=function(){var o=this;l(c).trigger("modula_api_before_init",[o]),this.$itemsCnt.css({position:"relative",zIndex:1}),this.$items.addClass("tile"),this.$items.find(".pic").removeAttr("src"),"custom-grid"===this.options.type?this.createCustomGallery():this.createGrid(),"1"!=o.options.lazyLoad&&this.loadImage(0),l(h).resize(function(){o.onResize(o)}),l(h).on("modula-update",function(){o.onResize(o)}),l(c).on("lazyloaded",function(t){var e,i,n=l(t.target);"modula"==n.data("source")&&(n.data("size",{width:n.width(),height:n.height()}),(e=n.parents(".item")).addClass("tg-loaded"),i=o.$items.index(e),o.placeImage(i))}),new ResizeSensor(o.$element,function(){o.onResize(o)}),this.setupSocial(),this.options.onComplete&&this.options.onComplete(),l(c).trigger("modula_api_after_init",[o])},s.prototype.setupSocial=function(){this.options.enableTwitter&&e(this.$items,this),this.options.enableFacebook&&n(this.$items,this),this.options.enablePinterest&&r(this.$items,this),this.options.enableLinkedin&&a(this.$items,this)};var e=function(t,n){t.find(".modula-icon-twitter").click(function(t){t.preventDefault();var e=l(this).parents(".tile:first").find(".caption"),i=n.options.twitterText||c.title;return!n.options.twitterText&&1==e.length&&0<e.text().length&&(i=l.trim(e.text())),h.open("https://twitter.com/intent/tweet?url="+encodeURI(location.href.split("#")[0])+"&text="+encodeURI(i),"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},n=function(t,o){t.find(".modula-icon-facebook").click(function(t){t.preventDefault();var e=l(this).parents(".tile:first").find(".pic"),i=l(this).parents(".tile:first").find(".caption");o.options.facebookText||c.title;!o.options.facebookText&&1==i.length&&0<i.text().length&&l.trim(i.text());e.attr("src");var n="//www.facebook.com/sharer.php?u="+location.href;return h.open(n,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},r=function(t,s){t.find(".modula-icon-pinterest").click(function(t){t.preventDefault();var e=l(this).parents(".tile:first").find(".pic"),i=l(this).parents(".tile:first").find(".caption"),n=s.options.facebookText||c.title;!s.options.facebookText&&1==i.length&&0<i.text().length&&(n=l.trim(i.text()));var o="http://pinterest.com/pin/create/button/?url="+encodeURI(location.href)+"&description="+encodeURI(n);1==e.length&&(o+="&media="+function(t){var e=c.createElement("img");return e.src=t,t=e.src,e.src=null,t}(e.attr("src")));return h.open(o,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},a=function(t,e){t.find(".modula-icon-linkedin").click(function(t){t.preventDefault();var e="//linkedin.com/shareArticle?mini=true&url="+ +encodeURI(location.href);return h.open(e,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})};l.fn[o]=function(e){var i,n=arguments;return void 0===e||"object"==typeof e?this.each(function(){l.data(this,"plugin_"+o)||l.data(this,"plugin_"+o,new s(this,e))}):"string"==typeof e&&"_"!==e[0]&&"init"!==e?(this.each(function(){var t=l.data(this,"plugin_"+o);t instanceof s&&"function"==typeof t[e]&&(i=t[e].apply(t,Array.prototype.slice.call(n,1))),"destroy"===e&&l.data(this,"plugin_"+o,null)}),void 0!==i?i:this):void 0}}(jQuery,window,document),jQuery(document).ready(function(i){var t=i(".modula-gallery");i.each(t,function(){var t=i(this).attr("id"),e=i(this).data("config");i("#"+t).modulaGallery(e)})});
|
1 |
+
function tg_getURLParameter(t){return decodeURIComponent((new RegExp("[?|&]"+t+"=([^&;]+?)(&|#|;|$)").exec(location.search)||[,""])[1].replace(/\+/g,"%20"))||null}!function(t,e){"function"==typeof define&&define.amd?define(e):"object"==typeof exports?module.exports=e():t.ResizeSensor=e()}("undefined"!=typeof window?window:this,function(){if("undefined"==typeof window)return null;var v=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||function(t){return window.setTimeout(t,20)};function n(t,e){var i=Object.prototype.toString.call(t),n="[object Array]"===i||"[object NodeList]"===i||"[object HTMLCollection]"===i||"[object Object]"===i||"undefined"!=typeof jQuery&&t instanceof jQuery||"undefined"!=typeof Elements&&t instanceof Elements,o=0,s=t.length;if(n)for(;o<s;o++)e(t[o]);else e(t)}function y(t){if(!t.getBoundingClientRect)return{width:t.offsetWidth,height:t.offsetHeight};var e=t.getBoundingClientRect();return{width:Math.round(e.width),height:Math.round(e.height)}}var o=function(e,i){function w(){var i,n,o=[];this.add=function(t){o.push(t)},this.call=function(){for(i=0,n=o.length;i<n;i++)o[i].call()},this.remove=function(t){var e=[];for(i=0,n=o.length;i<n;i++)o[i]!==t&&e.push(o[i]);o=e},this.length=function(){return o.length}}n(e,function(t){!function(n,t){if(n)if(n.resizedAttached)n.resizedAttached.add(t);else{n.resizedAttached=new w,n.resizedAttached.add(t),n.resizeSensor=document.createElement("div"),n.resizeSensor.dir="ltr",n.resizeSensor.className="resize-sensor";var e="position: absolute; left: -10px; top: -10px; right: 0; bottom: 0; overflow: hidden; z-index: -1; visibility: hidden;",i="position: absolute; left: 0; top: 0; transition: 0s;";n.resizeSensor.style.cssText=e,n.resizeSensor.innerHTML='<div class="resize-sensor-expand" style="'+e+'"><div style="'+i+'"></div></div><div class="resize-sensor-shrink" style="'+e+'"><div style="'+i+' width: 200%; height: 200%"></div></div>',n.appendChild(n.resizeSensor);var o=window.getComputedStyle(n).getPropertyPriority("position");"absolute"!==o&&"relative"!==o&&"fixed"!==o&&(n.style.position="relative");var s,h,r=n.resizeSensor.childNodes[0],a=r.childNodes[0],d=n.resizeSensor.childNodes[1],l=y(n),c=l.width,p=l.height,u=function(){var t=0===n.offsetWidth&&0===n.offsetHeight;if(t){var e=n.style.display;n.style.display="block"}a.style.width="100000px",a.style.height="100000px",r.scrollLeft=1e5,r.scrollTop=1e5,d.scrollLeft=1e5,d.scrollTop=1e5,t&&(n.style.display=e)};n.resizeSensor.resetSensor=u;var f=function(){h=0,s&&(p=c=void 0,n.resizedAttached&&n.resizedAttached.call())},g=function(){var t=y(n),e=t.width,i=t.height;(s=e!=c||i!=p)&&!h&&(h=v(f)),u()},m=function(t,e,i){t.attachEvent?t.attachEvent("on"+e,i):t.addEventListener(e,i)};m(r,"scroll",g),m(d,"scroll",g),v(u)}}(t,i)}),this.detach=function(t){o.detach(e,t)},this.reset=function(){e.resizeSensor.resetSensor()}};return o.reset=function(t,e){n(t,function(t){t.resizeSensor.resetSensor()})},o.detach=function(t,e){n(t,function(t){t&&(t.resizedAttached&&"function"==typeof e&&(t.resizedAttached.remove(e),t.resizedAttached.length())||t.resizeSensor&&(t.contains(t.resizeSensor)&&t.removeChild(t.resizeSensor),delete t.resizeSensor,delete t.resizedAttached))})},o}),jQuery(document).on("vc-full-width-row-single vc-full-width-row",function(t,e){0<jQuery("body").find(".modula").length&&jQuery(window).trigger("modula-update")}),function(l,h,c,t){var o="modulaGallery",i={resizer:"/",margin:10,keepArea:!0,type:"creative-gallery",columns:12,gutter:10,enableTwitter:!1,enableFacebook:!1,enableGplus:!1,enablePinterest:!1,enableLinkedin:!1,lazyLoad:0};function s(t,e){this.element=t,this.$element=l(t),this.$itemsCnt=this.$element.find(".items"),this.$items=this.$itemsCnt.find(".item"),this.options=l.extend({},i,e),this._defaults=i,this._name=o,this.tiles=[],this.$tilesCnt=null,this.completed=!1,this.lastWidth=0,this.resizeTO=0,this.isPackeryActive=!1,this.init()}s.prototype.trunc=function(t){return Math.trunc?Math.trunc(t):(t=+t,isFinite(t)?t-t%1||(t<0?-0:0===t?t:0):t)},s.prototype.createCustomGallery=function(){var r,t=this.$element.width(),a=this,d=this.options.columns,e=c.documentElement.clientWidth;"1"==this.options.enableResponsive&&(e<=568?d=this.options.mobileColumns:e<=768&&(d=this.options.tabletColumns)),r=0<this.options.gutter?(t-this.options.gutter*(d-1))/d:Math.floor(t/d),this.$items.not(".jtg-hidden").each(function(t,e){var i,n,o,s,h={};i=l(e).data("width"),n=l(e).data("height"),12<i&&(i=12),"1"==a.options.enableResponsive&&(o=i,s=n,1==d?n=(i=1)*s/o:((i=Math.round(d*o/12))<1&&(i=1),(n=Math.round(i*s/o))<1&&(n=1))),h.width=r*i+a.options.gutter*(i-1),h.height=r*n+a.options.gutter*(n-1),l(e).data("size",h).addClass("tiled").addClass(h.width>h.height?"tile-h":"tile-v").data("position"),l(e).css(l(e).data("size")),l(e).find(".figc").css({width:l(e).data("size").width,height:l(e).data("size").height})}),this.isPackeryActive&&this.$itemsCnt.packery("destroy"),this.$itemsCnt.packery({itemSelector:".item",gutter:parseInt(a.options.gutter),columnWidth:r,resize:!1}),this.isPackeryActive=!0},s.prototype.createGrid=function(){var n=this;this.options.width&&this.$itemsCnt.width(this.options.width),this.options.height&&this.$itemsCnt.height(this.options.height),this.$itemsCnt.data("area",this.$itemsCnt.width()*this.$itemsCnt.height()),this.lastWidth=this.$itemsCnt.width();for(var t=0;t<this.$items.not(".jtg-hidden").length;t++)this.tiles.push(n.getSlot());this.tiles.sort(function(t,e){return t.position-e.position}),this.$items.not(".jtg-hidden").each(function(t,e){var i=n.tiles[t];l(e).data("size",i).addClass("tiled").addClass(i.width>i.height?"tile-h":"tile-v").data("position")}),this.$items.each(function(t,e){l(e).css(l(e).data("size")),l(e).find(".figc").css({width:l(e).data("size").width,height:l(e).data("size").height})}),this.completed=!0},s.prototype.getSlot=function(){if(0==this.tiles.length)return i={top:0,left:0,width:this.$itemsCnt.width(),height:this.$itemsCnt.height(),area:this.$itemsCnt.width()*this.$itemsCnt.height(),position:0};for(var t=0,e=0;e<this.tiles.length;e++){(i=this.tiles[e]).area>this.tiles[t].area&&(t=e)}var i={},n=this.tiles[t];if(n.width>n.height){var o=n.width/2*this.options.randomFactor;n.prevWidth=n.width,n.width=Math.floor(n.width/2+o*(Math.random()-.5)),i={top:n.top,left:n.left+n.width+this.options.margin,width:n.prevWidth-n.width-this.options.margin,height:n.height}}else{o=n.height/2*this.options.randomFactor;n.prevHeight=n.height,n.height=Math.floor(n.height/2+o*(Math.random()-.5)),i={left:n.left,top:n.top+n.height+this.options.margin,width:n.width,height:n.prevHeight-n.height-this.options.margin}}return i.area=i.width*i.height,i.position=1e3*i.top+i.left,n.position=1e3*n.top+n.left,this.tiles[t]=n,this.tiles[t].area=n.width*n.height,i},s.prototype.reset=function(){var i=this;i.tiles=[],"custom-grid"===i.options.type?(i.createCustomGallery(),i.$itemsCnt.packery()):i.createGrid(),i.$itemsCnt.find(".pic").each(function(t,e){i.placeImage(t)}),i.lastWidth=i.$itemsCnt.width()},s.prototype.onResize=function(e){e.lastWidth!=e.$itemsCnt.width()&&(clearTimeout(e.resizeTO),e.resizeTO=setTimeout(function(){if(e.options.keepArea){var t=e.$itemsCnt.data("area");e.$itemsCnt.height(t/e.$itemsCnt.width())}e.reset()},100))},s.prototype.placeImage=function(t){var e=this.$items.eq(t),i=e.find(".pic"),n=e.data("size"),o=i.data("size");if(void 0!==n&&void 0!==o){var s=n.width/n.height,h=o.width/o.height,r=i.data("valign")?i.data("valign"):"middle",a=i.data("halign")?i.data("halign"):"center",d={top:"auto",bottom:"auto",left:"auto",right:"auto",width:"auto",height:"auto",margin:"0",maxWidth:"999em"};if(h<s)switch(d.width=n.width,d.left=0,r){case"top":d.top=0;break;case"middle":d.top=0-(n.width*(1/h)-n.height)/2;break;case"bottom":d.bottom=0}else switch(d.height=n.height,d.top=0,a){case"left":d.left=0;break;case"center":d.left=0-(n.height*h-n.width)/2;break;case"right":d.right=0}i.css(d)}},s.prototype.loadImage=function(t){var e=this,i=e.$items.eq(t).find(".pic"),n=new Image;n.onerror=function(){console.log("error loading image ["+t+"] : "+this.src),t+1<e.$items.length&&e.loadImage(t+1)},n.onload=function(){i.data("size",{width:this.width,height:this.height}),e.placeImage(t),e.$items.eq(t).addClass("tg-loaded"),t+1<e.$items.length&&e.loadImage(t+1)};var o=i.data("src");n.src=o,i.attr("src",o)},s.prototype.init=function(){var o=this;l(c).trigger("modula_api_before_init",[o]),this.$itemsCnt.css({position:"relative",zIndex:1,"min-height":"10px"}),this.$items.addClass("tile"),this.$items.find(".pic").removeAttr("src"),"custom-grid"===this.options.type?this.createCustomGallery():this.createGrid(),"1"!=o.options.lazyLoad&&this.loadImage(0),l(h).resize(function(){o.onResize(o)}),l(h).on("modula-update",function(){o.onResize(o)}),l(c).on("lazyloaded",function(t){var e,i,n=l(t.target);"modula"==n.data("source")&&(n.data("size",{width:n.width(),height:n.height()}),(e=n.parents(".item")).addClass("tg-loaded"),i=o.$items.index(e),o.placeImage(i))}),new ResizeSensor(o.$element,function(){o.onResize(o)}),this.setupSocial(),this.options.onComplete&&this.options.onComplete(),l(c).trigger("modula_api_after_init",[o])},s.prototype.setupSocial=function(){this.options.enableTwitter&&e(this.$items,this),this.options.enableFacebook&&n(this.$items,this),this.options.enablePinterest&&r(this.$items,this),this.options.enableLinkedin&&a(this.$items,this)},s.prototype.destroy=function(){this.isPackeryActive&&(this.$itemsCnt.packery("destroy"),this.isPackeryActive=!1)};var e=function(t,n){t.find(".modula-icon-twitter").click(function(t){t.preventDefault();var e=l(this).parents(".tile:first").find(".caption"),i=n.options.twitterText||c.title;return!n.options.twitterText&&1==e.length&&0<e.text().length&&(i=l.trim(e.text())),h.open("https://twitter.com/intent/tweet?url="+encodeURI(location.href.split("#")[0])+"&text="+encodeURI(i),"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},n=function(t,o){t.find(".modula-icon-facebook").click(function(t){t.preventDefault();var e=l(this).parents(".tile:first").find(".pic"),i=l(this).parents(".tile:first").find(".caption");o.options.facebookText||c.title;!o.options.facebookText&&1==i.length&&0<i.text().length&&l.trim(i.text());e.attr("src");var n="//www.facebook.com/sharer.php?u="+location.href;return h.open(n,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},r=function(t,s){t.find(".modula-icon-pinterest").click(function(t){t.preventDefault();var e=l(this).parents(".tile:first").find(".pic"),i=l(this).parents(".tile:first").find(".caption"),n=s.options.facebookText||c.title;!s.options.facebookText&&1==i.length&&0<i.text().length&&(n=l.trim(i.text()));var o="http://pinterest.com/pin/create/button/?url="+encodeURI(location.href)+"&description="+encodeURI(n);1==e.length&&(o+="&media="+function(t){var e=c.createElement("img");return e.src=t,t=e.src,e.src=null,t}(e.attr("src")));return h.open(o,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},a=function(t,e){t.find(".modula-icon-linkedin").click(function(t){t.preventDefault();var e="//linkedin.com/shareArticle?mini=true&url="+ +encodeURI(location.href);return h.open(e,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})};l.fn[o]=function(e){var i,n=arguments;return void 0===e||"object"==typeof e?this.each(function(){l.data(this,"plugin_"+o)||l.data(this,"plugin_"+o,new s(this,e))}):"string"==typeof e&&"_"!==e[0]&&"init"!==e?(this.each(function(){var t=l.data(this,"plugin_"+o);t instanceof s&&"function"==typeof t[e]&&(i=t[e].apply(t,Array.prototype.slice.call(n,1))),"destroy"===e&&l.data(this,"plugin_"+o,null)}),void 0!==i?i:this):void 0}}(jQuery,window,document),jQuery(document).ready(function(i){var t=i(".modula-gallery");i.each(t,function(){var t=i(this).attr("id"),e=i(this).data("config");i("#"+t).modulaGallery(e)})});
|
assets/js/lightbox.js
CHANGED
@@ -212,92 +212,25 @@
|
|
212 |
});
|
213 |
|
214 |
this.$lightbox.find('.lb-prev').on('click', function () {
|
215 |
-
/**
|
216 |
-
* @TODO for George, part that was modified by Razvan. Please compare to original
|
217 |
-
*/
|
218 |
-
var cycle_filter = self.album[self.currentImageIndex].cycleFilter;
|
219 |
-
|
220 |
-
if (undefined == cycle_filter || cycle_filter == 'default') {
|
221 |
-
if (self.currentImageIndex === 0) {
|
222 |
-
self.changeImage(self.album.length - 1);
|
223 |
-
} else {
|
224 |
-
self.changeImage(self.currentImageIndex - 1);
|
225 |
-
}
|
226 |
-
} else if (cycle_filter == 'show' && self.currentImageIndex <= self.album.length - 1) {
|
227 |
-
// group shown items in array
|
228 |
-
var items = self.album;
|
229 |
-
var show_cycle_filter = [];
|
230 |
-
$.each(items,function(key,value){
|
231 |
-
if ('show' == value.cycleFilter) {
|
232 |
-
show_cycle_filter.push(key);
|
233 |
-
}
|
234 |
-
});
|
235 |
-
|
236 |
-
// invert the array so that we can compare values from large to small
|
237 |
-
show_cycle_filter.sort(function(a, b){return b-a});
|
238 |
-
|
239 |
-
if (self.currentImageIndex === 0) {
|
240 |
-
//in our case show_cycle_filter[0] being the larges value
|
241 |
-
self.changeImage(show_cycle_filter[0]);
|
242 |
-
} else {
|
243 |
-
|
244 |
-
var i = self.currentImageIndex;
|
245 |
-
|
246 |
-
// cycle only the images that are shown
|
247 |
-
$.each(show_cycle_filter, function (key,value) {
|
248 |
-
if (i > value) {
|
249 |
-
self.changeImage(value);
|
250 |
-
return false;
|
251 |
-
} else {
|
252 |
-
self.changeImage(show_cycle_filter[show_cycle_filter.length-1]);
|
253 |
-
}
|
254 |
-
});
|
255 |
-
}
|
256 |
|
|
|
|
|
|
|
|
|
257 |
}
|
|
|
258 |
setTimeout(function(){jQuery(document).trigger('modula_lightbox2_lightbox_prev',[self,self.currentImageIndex])},600);
|
259 |
return false;
|
260 |
});
|
261 |
|
262 |
this.$lightbox.find('.lb-next').on('click', function () {
|
263 |
-
/**
|
264 |
-
* @TODO for George, part that was modified by Razvan. Please compare to original
|
265 |
-
*/
|
266 |
-
var cycle_filter = self.album[self.currentImageIndex].cycleFilter;
|
267 |
-
|
268 |
-
if (undefined == cycle_filter || cycle_filter == 'default') {
|
269 |
-
if (self.currentImageIndex === self.album.length - 1) {
|
270 |
-
self.changeImage(0);
|
271 |
-
} else {
|
272 |
-
self.changeImage(self.currentImageIndex + 1);
|
273 |
-
}
|
274 |
-
} else if (cycle_filter == 'show' && self.currentImageIndex <= self.album.length - 1) {
|
275 |
-
// group shown items in array
|
276 |
-
var items = self.album;
|
277 |
-
var show_cycle_filter = [];
|
278 |
-
$.each(items,function(key,value){
|
279 |
-
if ('show' == value.cycleFilter) {
|
280 |
-
show_cycle_filter.push(key);
|
281 |
-
}
|
282 |
-
});
|
283 |
-
if (self.currentImageIndex === self.album.length - 1) {
|
284 |
-
self.changeImage(show_cycle_filter[0]);
|
285 |
-
} else {
|
286 |
-
var i = self.currentImageIndex;
|
287 |
-
|
288 |
-
|
289 |
-
// cycle only the images that are shown
|
290 |
-
$.each(show_cycle_filter, function (key,value) {
|
291 |
-
if (i < value) {
|
292 |
-
self.changeImage(value);
|
293 |
-
return false;
|
294 |
-
} else {
|
295 |
-
self.changeImage(show_cycle_filter[0]);
|
296 |
-
}
|
297 |
-
});
|
298 |
-
}
|
299 |
|
|
|
|
|
|
|
|
|
300 |
}
|
|
|
301 |
setTimeout(function(){jQuery(document).trigger('modula_lightbox2_lightbox_next',[self,self.currentImageIndex])},600);
|
302 |
return false;
|
303 |
});
|
@@ -377,16 +310,20 @@
|
|
377 |
alt: $link.attr('data-alt'),
|
378 |
link: $link.attr('href'),
|
379 |
title: $link.attr('data-title') || $link.attr('title'),
|
380 |
-
cycleFilter: $link.attr('data-cyclefilter')
|
381 |
});
|
382 |
}
|
383 |
|
384 |
// Support both data-lightbox attribute and rel attribute implementations
|
385 |
var dataLightboxValue = $link.attr('data-lightbox');
|
386 |
-
var $links;
|
387 |
|
388 |
if (dataLightboxValue) {
|
389 |
$links = $($link.prop('tagName') + '[data-lightbox="' + dataLightboxValue + '"]');
|
|
|
|
|
|
|
|
|
|
|
390 |
for (var i = 0; i < $links.length; i = ++i) {
|
391 |
addToAlbum($($links[i]));
|
392 |
if ($links[i] === $link[0]) {
|
@@ -400,6 +337,10 @@
|
|
400 |
} else {
|
401 |
// If image is part of a set
|
402 |
$links = $($link.prop('tagName') + '[rel="' + $link.attr('rel') + '"]');
|
|
|
|
|
|
|
|
|
403 |
for (var j = 0; j < $links.length; j = ++j) {
|
404 |
addToAlbum($($links[j]));
|
405 |
if ($links[j] === $link[0]) {
|
212 |
});
|
213 |
|
214 |
this.$lightbox.find('.lb-prev').on('click', function () {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
215 |
|
216 |
+
if (self.currentImageIndex === 0) {
|
217 |
+
self.changeImage(self.album.length - 1);
|
218 |
+
} else {
|
219 |
+
self.changeImage(self.currentImageIndex - 1);
|
220 |
}
|
221 |
+
|
222 |
setTimeout(function(){jQuery(document).trigger('modula_lightbox2_lightbox_prev',[self,self.currentImageIndex])},600);
|
223 |
return false;
|
224 |
});
|
225 |
|
226 |
this.$lightbox.find('.lb-next').on('click', function () {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
227 |
|
228 |
+
if (self.currentImageIndex === self.album.length - 1) {
|
229 |
+
self.changeImage(0);
|
230 |
+
} else {
|
231 |
+
self.changeImage(self.currentImageIndex + 1);
|
232 |
}
|
233 |
+
|
234 |
setTimeout(function(){jQuery(document).trigger('modula_lightbox2_lightbox_next',[self,self.currentImageIndex])},600);
|
235 |
return false;
|
236 |
});
|
310 |
alt: $link.attr('data-alt'),
|
311 |
link: $link.attr('href'),
|
312 |
title: $link.attr('data-title') || $link.attr('title'),
|
|
|
313 |
});
|
314 |
}
|
315 |
|
316 |
// Support both data-lightbox attribute and rel attribute implementations
|
317 |
var dataLightboxValue = $link.attr('data-lightbox');
|
318 |
+
var $links, $filteredLinks;
|
319 |
|
320 |
if (dataLightboxValue) {
|
321 |
$links = $($link.prop('tagName') + '[data-lightbox="' + dataLightboxValue + '"]');
|
322 |
+
$filteredLinks = $links.filter( '[data-cyclefilter=show]' );
|
323 |
+
if ( $filteredLinks.length > 0 && $filteredLinks.length != $links.length ) {
|
324 |
+
$links = $filteredLinks;
|
325 |
+
}
|
326 |
+
|
327 |
for (var i = 0; i < $links.length; i = ++i) {
|
328 |
addToAlbum($($links[i]));
|
329 |
if ($links[i] === $link[0]) {
|
337 |
} else {
|
338 |
// If image is part of a set
|
339 |
$links = $($link.prop('tagName') + '[rel="' + $link.attr('rel') + '"]');
|
340 |
+
$filteredLinks = $links.filter( '[data-cyclefilter=show]' );
|
341 |
+
if ( $filteredLinks.length > 0 && $filteredLinks.length != $links.length ) {
|
342 |
+
$links = $filteredLinks;
|
343 |
+
}
|
344 |
for (var j = 0; j < $links.length; j = ++j) {
|
345 |
addToAlbum($($links[j]));
|
346 |
if ($links[j] === $link[0]) {
|
assets/js/lightbox.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(t,e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?module.exports=e(require("jquery")):t.lightbox=e(t.jQuery)}(this,function(c){function t(t){this.album=[],this.currentImageIndex=void 0,this.init(),this.options=c.extend({},this.constructor.defaults),this.option(t)}return t.defaults={albumLabel:"Image %1 of %2",showNavigation:!0,showNavigationOnMobile:!1,fadeDuration:600,fitImagesInViewport:!0,imageFadeDuration:600,positionFromTop:50,resizeDuration:700,showImageNumberLabel:!0,wrapAround:!1,disableScrolling:!1,enableSwipeOnTouchDevices:!0,sanitizeTitle:!1},t.prototype.option=function(t){c.extend(this.options,t)},t.prototype.imageCountLabel=function(t,e){return this.options.albumLabel.replace(/%1/g,t).replace(/%2/g,e)},t.prototype.mobilecheck=function(){var t,e=!1;return t=navigator.userAgent||navigator.vendor||window.opera,(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(t.substr(0,4)))&&(e=!0),e},t.prototype.init=function(){var t=this;c(document).ready(function(){t.enable(),t.build()})},t.prototype.enable=function(){var e=this;c("body").on("click","a[rel^=lightbox], area[rel^=lightbox], a[data-lightbox], area[data-lightbox]",function(t){return e.start(c(t.currentTarget)),!1})},t.prototype.swipedetect=function(t,e){var n,a,o,r,s,h,i=t,l=e||function(t){};i.addEventListener("touchstart",function(t){var e=t.changedTouches[0];n="none",dist=0,a=e.pageX,o=e.pageY,h=(new Date).getTime(),t.preventDefault()},!1),i.addEventListener("touchmove",function(t){t.preventDefault()},!1),i.addEventListener("touchend",function(t){var e=t.changedTouches[0];if(r=e.pageX-a,s=e.pageY-o,(new Date).getTime()-h<=300&&(1<=Math.abs(r)&&Math.abs(s)<=100?n=r<0?"left":"right":1<=Math.abs(s)&&Math.abs(r)<=100&&(n=s<0?"up":"down")),"none"==n){var i=c(t.target);i.hasClass("lb-prev")?n="left":i.hasClass("lb-next")&&(n="right")}l(n),t.preventDefault()},!1)},t.prototype.build=function(){if(!(0<c("#lightbox").length)){var a=this;c('<div id="lightboxOverlay" class="lightboxOverlay"></div><div id="lightbox" class="lightbox"><div class="lb-outerContainer"><div class="lb-container"><img class="lb-image" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==" /><div class="lb-nav"><a class="lb-prev" href="" ></a><a class="lb-next" href="" ></a></div><div class="lb-loader"><a class="lb-cancel"></a></div></div></div><div class="lb-dataContainer"><div class="lb-data"><div class="lb-details"><span class="lb-caption"></span><span class="lb-number"></span></div><div class="lb-closeContainer"><a class="lb-close"></a></div></div></div></div>').appendTo(c("body")),this.$lightbox=c("#lightbox"),this.$overlay=c("#lightboxOverlay"),this.$outerContainer=this.$lightbox.find(".lb-outerContainer"),this.$container=this.$lightbox.find(".lb-container"),this.$image=this.$lightbox.find(".lb-image"),this.$nav=this.$lightbox.find(".lb-nav"),this.containerPadding={top:parseInt(this.$container.css("padding-top"),10),right:parseInt(this.$container.css("padding-right"),10),bottom:parseInt(this.$container.css("padding-bottom"),10),left:parseInt(this.$container.css("padding-left"),10)},this.imageBorderWidth={top:parseInt(this.$image.css("border-top-width"),10),right:parseInt(this.$image.css("border-right-width"),10),bottom:parseInt(this.$image.css("border-bottom-width"),10),left:parseInt(this.$image.css("border-left-width"),10)},this.$overlay.hide().on("click",function(){return a.end(),!1}),this.$lightbox.hide().on("click",function(t){return"lightbox"===c(t.target).attr("id")&&(a.end(),jQuery(document).trigger("modula_lightbox2_lightbox_close")),!1}),this.$outerContainer.on("click",function(t){return"lightbox"===c(t.target).attr("id")&&a.end(),!1}),this.$lightbox.find(".lb-prev").on("click",function(){var t=a.album[a.currentImageIndex].cycleFilter;if(null==t||"default"==t)0===a.currentImageIndex?a.changeImage(a.album.length-1):a.changeImage(a.currentImageIndex-1);else if("show"==t&&a.currentImageIndex<=a.album.length-1){var e=a.album,i=[];if(c.each(e,function(t,e){"show"==e.cycleFilter&&i.push(t)}),i.sort(function(t,e){return e-t}),0===a.currentImageIndex)a.changeImage(i[0]);else{var n=a.currentImageIndex;c.each(i,function(t,e){if(e<n)return a.changeImage(e),!1;a.changeImage(i[i.length-1])})}}return setTimeout(function(){jQuery(document).trigger("modula_lightbox2_lightbox_prev",[a,a.currentImageIndex])},600),!1}),this.$lightbox.find(".lb-next").on("click",function(){var t=a.album[a.currentImageIndex].cycleFilter;if(null==t||"default"==t)a.currentImageIndex===a.album.length-1?a.changeImage(0):a.changeImage(a.currentImageIndex+1);else if("show"==t&&a.currentImageIndex<=a.album.length-1){var e=a.album,i=[];if(c.each(e,function(t,e){"show"==e.cycleFilter&&i.push(t)}),a.currentImageIndex===a.album.length-1)a.changeImage(i[0]);else{var n=a.currentImageIndex;c.each(i,function(t,e){if(n<e)return a.changeImage(e),!1;a.changeImage(i[0])})}}return setTimeout(function(){jQuery(document).trigger("modula_lightbox2_lightbox_next",[a,a.currentImageIndex])},600),!1});var t=this.$lightbox.find(".lb-container")[0];a.swipedetect(t,function(t){"left"==t?0===a.currentImageIndex?a.changeImage(a.album.length-1):a.changeImage(a.currentImageIndex-1):"right"==t&&(a.currentImageIndex===a.album.length-1?a.changeImage(0):a.changeImage(a.currentImageIndex+1))}),this.$nav.on("mousedown",function(t){3===t.which&&(a.$nav.css("pointer-events","none"),a.$lightbox.one("contextmenu",function(){setTimeout(function(){this.$nav.css("pointer-events","auto")}.bind(a),0)}))}),this.$lightbox.find(".lb-loader, .lb-close").on("click",function(){return a.end(),!1})}},t.prototype.start=function(t){var e=this,i=c(window);i.on("resize",c.proxy(this.sizeOverlay,this)),c("select, object, embed").css({visibility:"hidden"}),this.sizeOverlay(),this.album=[];var n=0;function a(t){e.album.push({alt:t.attr("data-alt"),link:t.attr("href"),title:t.attr("data-title")||t.attr("title"),cycleFilter:t.attr("data-cyclefilter")})}var o,r=t.attr("data-lightbox");if(r){o=c(t.prop("tagName")+'[data-lightbox="'+r+'"]');for(var s=0;s<o.length;s=++s)a(c(o[s])),o[s]===t[0]&&(n=s)}else if("lightbox"===t.attr("rel"))a(t);else{o=c(t.prop("tagName")+'[rel="'+t.attr("rel")+'"]');for(var h=0;h<o.length;h=++h)a(c(o[h])),o[h]===t[0]&&(n=h)}var l=i.scrollTop()+this.options.positionFromTop,d=i.scrollLeft();this.$lightbox.css({top:l+"px",left:d+"px"}).fadeIn(this.options.fadeDuration),this.options.disableScrolling&&c("html").addClass("lb-disable-scrolling"),this.changeImage(n),setTimeout(function(){jQuery(document).trigger("modula_lightbox2_lightbox_open",[e,t])},600)},t.prototype.changeImage=function(r){var s=this;this.disableKeyboardNav();var h=this.$lightbox.find(".lb-image");this.$overlay.fadeIn(this.options.fadeDuration),c(".lb-loader").fadeIn("slow"),this.$lightbox.find(".lb-image, .lb-nav, .lb-prev, .lb-next, .lb-dataContainer, .lb-numbers, .lb-caption").hide(),this.$outerContainer.addClass("animating");var l=new Image;l.onload=function(){var t,e,i,n,a,o;h.attr({alt:s.album[r].alt,src:s.album[r].link}),c(l),h.width(l.width),h.height(l.height),s.options.fitImagesInViewport&&(o=c(window).width(),a=c(window).height(),n=o-s.containerPadding.left-s.containerPadding.right-s.imageBorderWidth.left-s.imageBorderWidth.right-20,i=a-s.containerPadding.top-s.containerPadding.bottom-s.imageBorderWidth.top-s.imageBorderWidth.bottom-120,s.options.maxWidth&&s.options.maxWidth<n&&(n=s.options.maxWidth),s.options.maxHeight&&s.options.maxHeight<n&&(i=s.options.maxHeight),(l.width>n||l.height>i)&&(l.width/n>l.height/i?(e=n,t=parseInt(l.height/(l.width/e),10)):(t=i,e=parseInt(l.width/(l.height/t),10)),h.width(e),h.height(t))),s.sizeContainer(h.width(),h.height())},l.src=this.album[r].link,this.currentImageIndex=r},t.prototype.sizeOverlay=function(){this.$overlay.width(c(document).width()).height(c(document).height())},t.prototype.sizeContainer=function(t,e){var i=this,n=this.$outerContainer.outerWidth(),a=this.$outerContainer.outerHeight(),o=t+this.containerPadding.left+this.containerPadding.right+this.imageBorderWidth.left+this.imageBorderWidth.right,r=e+this.containerPadding.top+this.containerPadding.bottom+this.imageBorderWidth.top+this.imageBorderWidth.bottom;function s(){i.$lightbox.find(".lb-dataContainer").width(o),i.$lightbox.find(".lb-prevLink").height(r),i.$lightbox.find(".lb-nextLink").height(r),i.showImage()}n!==o||a!==r?this.$outerContainer.animate({width:o,height:r},this.options.resizeDuration,"swing",function(){s()}):s()},t.prototype.showImage=function(){this.$lightbox.find(".lb-loader").stop(!0).hide(),this.$lightbox.find(".lb-image").fadeIn(this.options.imageFadeDuration),this.updateNav(),this.updateDetails(),this.preloadNeighboringImages(),this.enableKeyboardNav()},t.prototype.updateNav=function(){var t=!!this.options.showNavigation,e=!1;try{document.createEvent("TouchEvent"),!!this.options.enableSwipeOnTouchDevices,e=!0}catch(t){}this.mobilecheck()&&(t=!!this.options.showNavigationOnMobile),t?(this.$lightbox.find(".lb-nav").show(),1<this.album.length&&(this.options.wrapAround?(e&&this.$lightbox.find(".lb-prev, .lb-next").css("opacity","1"),this.$lightbox.find(".lb-prev, .lb-next").show()):(0<this.currentImageIndex&&(this.$lightbox.find(".lb-prev").show(),e&&this.$lightbox.find(".lb-prev").css("opacity","1")),this.currentImageIndex<this.album.length-1&&(this.$lightbox.find(".lb-next").show(),e&&this.$lightbox.find(".lb-next").css("opacity","1"))))):this.$lightbox.find(".lb-nav").hide()},t.prototype.updateDetails=function(){var t=this;if(void 0!==this.album[this.currentImageIndex].title&&""!==this.album[this.currentImageIndex].title){var e=this.$lightbox.find(".lb-caption");this.options.sanitizeTitle?e.text(this.album[this.currentImageIndex].title):e.html(this.album[this.currentImageIndex].title),e.fadeIn("fast").find("a").on("click",function(t){void 0!==c(this).attr("target")?window.open(c(this).attr("href"),c(this).attr("target")):location.href=c(this).attr("href")})}if(1<this.album.length&&this.options.showImageNumberLabel){var i=this.imageCountLabel(this.currentImageIndex+1,this.album.length);this.$lightbox.find(".lb-number").text(i).fadeIn("fast")}else this.$lightbox.find(".lb-number").hide();this.$outerContainer.removeClass("animating"),this.$lightbox.find(".lb-dataContainer").fadeIn(this.options.resizeDuration,function(){return t.sizeOverlay()})},t.prototype.preloadNeighboringImages=function(){this.album.length>this.currentImageIndex+1&&((new Image).src=this.album[this.currentImageIndex+1].link);0<this.currentImageIndex&&((new Image).src=this.album[this.currentImageIndex-1].link)},t.prototype.enableKeyboardNav=function(){c(document).on("keyup.keyboard",c.proxy(this.keyboardAction,this))},t.prototype.disableKeyboardNav=function(){c(document).off(".keyboard")},t.prototype.keyboardAction=function(t){var e=t.keyCode,i=String.fromCharCode(e).toLowerCase();27===e||i.match(/x|o|c/)?this.end():"p"===i||37===e?0!==this.currentImageIndex?this.changeImage(this.currentImageIndex-1):this.options.wrapAround&&1<this.album.length&&this.changeImage(this.album.length-1):"n"!==i&&39!==e||(this.currentImageIndex!==this.album.length-1?this.changeImage(this.currentImageIndex+1):this.options.wrapAround&&1<this.album.length&&this.changeImage(0))},t.prototype.end=function(){this.disableKeyboardNav(),c(window).off("resize",this.sizeOverlay),this.$lightbox.fadeOut(this.options.fadeDuration),this.$overlay.fadeOut(this.options.fadeDuration),c("select, object, embed").css({visibility:"visible"}),this.options.disableScrolling&&c("html").removeClass("lb-disable-scrolling")},new t});
|
1 |
+
!function(t,i){"function"==typeof define&&define.amd?define(["jquery"],i):"object"==typeof exports?module.exports=i(require("jquery")):t.lightbox=i(t.jQuery)}(this,function(c){function t(t){this.album=[],this.currentImageIndex=void 0,this.init(),this.options=c.extend({},this.constructor.defaults),this.option(t)}return t.defaults={albumLabel:"Image %1 of %2",showNavigation:!0,showNavigationOnMobile:!1,fadeDuration:600,fitImagesInViewport:!0,imageFadeDuration:600,positionFromTop:50,resizeDuration:700,showImageNumberLabel:!0,wrapAround:!1,disableScrolling:!1,enableSwipeOnTouchDevices:!0,sanitizeTitle:!1},t.prototype.option=function(t){c.extend(this.options,t)},t.prototype.imageCountLabel=function(t,i){return this.options.albumLabel.replace(/%1/g,t).replace(/%2/g,i)},t.prototype.mobilecheck=function(){var t,i=!1;return t=navigator.userAgent||navigator.vendor||window.opera,(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(t.substr(0,4)))&&(i=!0),i},t.prototype.init=function(){var t=this;c(document).ready(function(){t.enable(),t.build()})},t.prototype.enable=function(){var i=this;c("body").on("click","a[rel^=lightbox], area[rel^=lightbox], a[data-lightbox], area[data-lightbox]",function(t){return i.start(c(t.currentTarget)),!1})},t.prototype.swipedetect=function(t,i){var n,a,o,r,s,h,e=t,l=i||function(t){};e.addEventListener("touchstart",function(t){var i=t.changedTouches[0];n="none",dist=0,a=i.pageX,o=i.pageY,h=(new Date).getTime(),t.preventDefault()},!1),e.addEventListener("touchmove",function(t){t.preventDefault()},!1),e.addEventListener("touchend",function(t){var i=t.changedTouches[0];if(r=i.pageX-a,s=i.pageY-o,(new Date).getTime()-h<=300&&(1<=Math.abs(r)&&Math.abs(s)<=100?n=r<0?"left":"right":1<=Math.abs(s)&&Math.abs(r)<=100&&(n=s<0?"up":"down")),"none"==n){var e=c(t.target);e.hasClass("lb-prev")?n="left":e.hasClass("lb-next")&&(n="right")}l(n),t.preventDefault()},!1)},t.prototype.build=function(){if(!(0<c("#lightbox").length)){var i=this;c('<div id="lightboxOverlay" class="lightboxOverlay"></div><div id="lightbox" class="lightbox"><div class="lb-outerContainer"><div class="lb-container"><img class="lb-image" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==" /><div class="lb-nav"><a class="lb-prev" href="" ></a><a class="lb-next" href="" ></a></div><div class="lb-loader"><a class="lb-cancel"></a></div></div></div><div class="lb-dataContainer"><div class="lb-data"><div class="lb-details"><span class="lb-caption"></span><span class="lb-number"></span></div><div class="lb-closeContainer"><a class="lb-close"></a></div></div></div></div>').appendTo(c("body")),this.$lightbox=c("#lightbox"),this.$overlay=c("#lightboxOverlay"),this.$outerContainer=this.$lightbox.find(".lb-outerContainer"),this.$container=this.$lightbox.find(".lb-container"),this.$image=this.$lightbox.find(".lb-image"),this.$nav=this.$lightbox.find(".lb-nav"),this.containerPadding={top:parseInt(this.$container.css("padding-top"),10),right:parseInt(this.$container.css("padding-right"),10),bottom:parseInt(this.$container.css("padding-bottom"),10),left:parseInt(this.$container.css("padding-left"),10)},this.imageBorderWidth={top:parseInt(this.$image.css("border-top-width"),10),right:parseInt(this.$image.css("border-right-width"),10),bottom:parseInt(this.$image.css("border-bottom-width"),10),left:parseInt(this.$image.css("border-left-width"),10)},this.$overlay.hide().on("click",function(){return i.end(),!1}),this.$lightbox.hide().on("click",function(t){return"lightbox"===c(t.target).attr("id")&&(i.end(),jQuery(document).trigger("modula_lightbox2_lightbox_close")),!1}),this.$outerContainer.on("click",function(t){return"lightbox"===c(t.target).attr("id")&&i.end(),!1}),this.$lightbox.find(".lb-prev").on("click",function(){return 0===i.currentImageIndex?i.changeImage(i.album.length-1):i.changeImage(i.currentImageIndex-1),setTimeout(function(){jQuery(document).trigger("modula_lightbox2_lightbox_prev",[i,i.currentImageIndex])},600),!1}),this.$lightbox.find(".lb-next").on("click",function(){return i.currentImageIndex===i.album.length-1?i.changeImage(0):i.changeImage(i.currentImageIndex+1),setTimeout(function(){jQuery(document).trigger("modula_lightbox2_lightbox_next",[i,i.currentImageIndex])},600),!1});var t=this.$lightbox.find(".lb-container")[0];i.swipedetect(t,function(t){"left"==t?0===i.currentImageIndex?i.changeImage(i.album.length-1):i.changeImage(i.currentImageIndex-1):"right"==t&&(i.currentImageIndex===i.album.length-1?i.changeImage(0):i.changeImage(i.currentImageIndex+1))}),this.$nav.on("mousedown",function(t){3===t.which&&(i.$nav.css("pointer-events","none"),i.$lightbox.one("contextmenu",function(){setTimeout(function(){this.$nav.css("pointer-events","auto")}.bind(i),0)}))}),this.$lightbox.find(".lb-loader, .lb-close").on("click",function(){return i.end(),!1})}},t.prototype.start=function(t){var i=this,e=c(window);e.on("resize",c.proxy(this.sizeOverlay,this)),c("select, object, embed").css({visibility:"hidden"}),this.sizeOverlay(),this.album=[];var n=0;function a(t){i.album.push({alt:t.attr("data-alt"),link:t.attr("href"),title:t.attr("data-title")||t.attr("title")})}var o,r,s=t.attr("data-lightbox");if(s){0<(r=(o=c(t.prop("tagName")+'[data-lightbox="'+s+'"]')).filter("[data-cyclefilter=show]")).length&&r.length!=o.length&&(o=r);for(var h=0;h<o.length;h=++h)a(c(o[h])),o[h]===t[0]&&(n=h)}else if("lightbox"===t.attr("rel"))a(t);else{0<(r=(o=c(t.prop("tagName")+'[rel="'+t.attr("rel")+'"]')).filter("[data-cyclefilter=show]")).length&&r.length!=o.length&&(o=r);for(var l=0;l<o.length;l=++l)a(c(o[l])),o[l]===t[0]&&(n=l)}var d=e.scrollTop()+this.options.positionFromTop,g=e.scrollLeft();this.$lightbox.css({top:d+"px",left:g+"px"}).fadeIn(this.options.fadeDuration),this.options.disableScrolling&&c("html").addClass("lb-disable-scrolling"),this.changeImage(n),setTimeout(function(){jQuery(document).trigger("modula_lightbox2_lightbox_open",[i,t])},600)},t.prototype.changeImage=function(r){var s=this;this.disableKeyboardNav();var h=this.$lightbox.find(".lb-image");this.$overlay.fadeIn(this.options.fadeDuration),c(".lb-loader").fadeIn("slow"),this.$lightbox.find(".lb-image, .lb-nav, .lb-prev, .lb-next, .lb-dataContainer, .lb-numbers, .lb-caption").hide(),this.$outerContainer.addClass("animating");var l=new Image;l.onload=function(){var t,i,e,n,a,o;h.attr({alt:s.album[r].alt,src:s.album[r].link}),c(l),h.width(l.width),h.height(l.height),s.options.fitImagesInViewport&&(o=c(window).width(),a=c(window).height(),n=o-s.containerPadding.left-s.containerPadding.right-s.imageBorderWidth.left-s.imageBorderWidth.right-20,e=a-s.containerPadding.top-s.containerPadding.bottom-s.imageBorderWidth.top-s.imageBorderWidth.bottom-120,s.options.maxWidth&&s.options.maxWidth<n&&(n=s.options.maxWidth),s.options.maxHeight&&s.options.maxHeight<n&&(e=s.options.maxHeight),(l.width>n||l.height>e)&&(l.width/n>l.height/e?(i=n,t=parseInt(l.height/(l.width/i),10)):(t=e,i=parseInt(l.width/(l.height/t),10)),h.width(i),h.height(t))),s.sizeContainer(h.width(),h.height())},l.src=this.album[r].link,this.currentImageIndex=r},t.prototype.sizeOverlay=function(){this.$overlay.width(c(document).width()).height(c(document).height())},t.prototype.sizeContainer=function(t,i){var e=this,n=this.$outerContainer.outerWidth(),a=this.$outerContainer.outerHeight(),o=t+this.containerPadding.left+this.containerPadding.right+this.imageBorderWidth.left+this.imageBorderWidth.right,r=i+this.containerPadding.top+this.containerPadding.bottom+this.imageBorderWidth.top+this.imageBorderWidth.bottom;function s(){e.$lightbox.find(".lb-dataContainer").width(o),e.$lightbox.find(".lb-prevLink").height(r),e.$lightbox.find(".lb-nextLink").height(r),e.showImage()}n!==o||a!==r?this.$outerContainer.animate({width:o,height:r},this.options.resizeDuration,"swing",function(){s()}):s()},t.prototype.showImage=function(){this.$lightbox.find(".lb-loader").stop(!0).hide(),this.$lightbox.find(".lb-image").fadeIn(this.options.imageFadeDuration),this.updateNav(),this.updateDetails(),this.preloadNeighboringImages(),this.enableKeyboardNav()},t.prototype.updateNav=function(){var t=!!this.options.showNavigation,i=!1;try{document.createEvent("TouchEvent"),!!this.options.enableSwipeOnTouchDevices,i=!0}catch(t){}this.mobilecheck()&&(t=!!this.options.showNavigationOnMobile),t?(this.$lightbox.find(".lb-nav").show(),1<this.album.length&&(this.options.wrapAround?(i&&this.$lightbox.find(".lb-prev, .lb-next").css("opacity","1"),this.$lightbox.find(".lb-prev, .lb-next").show()):(0<this.currentImageIndex&&(this.$lightbox.find(".lb-prev").show(),i&&this.$lightbox.find(".lb-prev").css("opacity","1")),this.currentImageIndex<this.album.length-1&&(this.$lightbox.find(".lb-next").show(),i&&this.$lightbox.find(".lb-next").css("opacity","1"))))):this.$lightbox.find(".lb-nav").hide()},t.prototype.updateDetails=function(){var t=this;if(void 0!==this.album[this.currentImageIndex].title&&""!==this.album[this.currentImageIndex].title){var i=this.$lightbox.find(".lb-caption");this.options.sanitizeTitle?i.text(this.album[this.currentImageIndex].title):i.html(this.album[this.currentImageIndex].title),i.fadeIn("fast").find("a").on("click",function(t){void 0!==c(this).attr("target")?window.open(c(this).attr("href"),c(this).attr("target")):location.href=c(this).attr("href")})}if(1<this.album.length&&this.options.showImageNumberLabel){var e=this.imageCountLabel(this.currentImageIndex+1,this.album.length);this.$lightbox.find(".lb-number").text(e).fadeIn("fast")}else this.$lightbox.find(".lb-number").hide();this.$outerContainer.removeClass("animating"),this.$lightbox.find(".lb-dataContainer").fadeIn(this.options.resizeDuration,function(){return t.sizeOverlay()})},t.prototype.preloadNeighboringImages=function(){this.album.length>this.currentImageIndex+1&&((new Image).src=this.album[this.currentImageIndex+1].link);0<this.currentImageIndex&&((new Image).src=this.album[this.currentImageIndex-1].link)},t.prototype.enableKeyboardNav=function(){c(document).on("keyup.keyboard",c.proxy(this.keyboardAction,this))},t.prototype.disableKeyboardNav=function(){c(document).off(".keyboard")},t.prototype.keyboardAction=function(t){var i=t.keyCode,e=String.fromCharCode(i).toLowerCase();27===i||e.match(/x|o|c/)?this.end():"p"===e||37===i?0!==this.currentImageIndex?this.changeImage(this.currentImageIndex-1):this.options.wrapAround&&1<this.album.length&&this.changeImage(this.album.length-1):"n"!==e&&39!==i||(this.currentImageIndex!==this.album.length-1?this.changeImage(this.currentImageIndex+1):this.options.wrapAround&&1<this.album.length&&this.changeImage(0))},t.prototype.end=function(){this.disableKeyboardNav(),c(window).off("resize",this.sizeOverlay),this.$lightbox.fadeOut(this.options.fadeDuration),this.$overlay.fadeOut(this.options.fadeDuration),c("select, object, embed").css({visibility:"visible"}),this.options.disableScrolling&&c("html").removeClass("lb-disable-scrolling")},new t});
|
assets/js/modula-elementor-preview.js
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
jQuery(function ($) {
|
2 |
+
|
3 |
+
elementorFrontend.hooks.addAction( 'frontend/element_ready/modula_elementor_gallery.default', function( $scope ) {
|
4 |
+
|
5 |
+
var $gallery = $scope.find( '.modula-gallery' );
|
6 |
+
if ( $gallery.length > 0 ) {
|
7 |
+
var galleryID = $gallery.attr( 'id' ),
|
8 |
+
modulaSettings = $gallery.data( 'config' ),
|
9 |
+
modulaInstance = jQuery( '#' + galleryID ).data( 'plugin_modulaGallery' );
|
10 |
+
|
11 |
+
if ( modulaInstance ) {
|
12 |
+
modulaInstance.destroy();
|
13 |
+
jQuery( '#' + galleryID ).data( 'plugin_modulaGallery', null );
|
14 |
+
}
|
15 |
+
|
16 |
+
$( '#' + galleryID ).modulaGallery( modulaSettings );
|
17 |
+
|
18 |
+
}
|
19 |
+
|
20 |
+
} );
|
21 |
+
|
22 |
+
});
|
assets/js/modula-elementor-preview.min.js
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
jQuery(function(r){elementorFrontend.hooks.addAction("frontend/element_ready/modula_elementor_gallery.default",function(l){var e=l.find(".modula-gallery");if(0<e.length){var a=e.attr("id"),n=e.data("config"),d=jQuery("#"+a).data("plugin_modulaGallery");d&&(d.destroy(),jQuery("#"+a).data("plugin_modulaGallery",null)),r("#"+a).modulaGallery(n)}})});
|
assets/js/packery.js
CHANGED
@@ -644,21 +644,32 @@ utils.handleEvent = function( event ) {
|
|
644 |
|
645 |
// ----- filterFindElements ----- //
|
646 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
647 |
utils.filterFindElements = function( elems, selector ) {
|
648 |
// make array of elems
|
649 |
elems = utils.makeArray( elems );
|
650 |
var ffElems = [];
|
651 |
|
|
|
652 |
elems.forEach( function( elem ) {
|
|
|
653 |
// check that elem is an actual element
|
654 |
-
if (
|
655 |
return;
|
656 |
}
|
|
|
657 |
// add elem if no selector
|
658 |
if ( !selector ) {
|
659 |
ffElems.push( elem );
|
660 |
return;
|
661 |
}
|
|
|
662 |
// filter & find items if we have a selector
|
663 |
// filter
|
664 |
if ( matchesSelector( elem, selector ) ) {
|
644 |
|
645 |
// ----- filterFindElements ----- //
|
646 |
|
647 |
+
utils.isElement = function(o){
|
648 |
+
return (
|
649 |
+
typeof HTMLElement === "object" ? o instanceof HTMLElement : //DOM2
|
650 |
+
o && typeof o === "object" && o !== null && o.nodeType === 1 && typeof o.nodeName === "string"
|
651 |
+
);
|
652 |
+
}
|
653 |
+
|
654 |
utils.filterFindElements = function( elems, selector ) {
|
655 |
// make array of elems
|
656 |
elems = utils.makeArray( elems );
|
657 |
var ffElems = [];
|
658 |
|
659 |
+
|
660 |
elems.forEach( function( elem ) {
|
661 |
+
|
662 |
// check that elem is an actual element
|
663 |
+
if (!utils.isElement(elem)) {
|
664 |
return;
|
665 |
}
|
666 |
+
|
667 |
// add elem if no selector
|
668 |
if ( !selector ) {
|
669 |
ffElems.push( elem );
|
670 |
return;
|
671 |
}
|
672 |
+
|
673 |
// filter & find items if we have a selector
|
674 |
// filter
|
675 |
if ( matchesSelector( elem, selector ) ) {
|
assets/js/packery.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(e,i){"use strict";"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(t){i(e,t)}):"object"==typeof module&&module.exports?module.exports=i(e,require("jquery")):e.jQueryBridget=i(e,e.jQuery)}(window,function(t,e){"use strict";var i=Array.prototype.slice,n=t.console,d=void 0===n?function(){}:function(t){n.error(t)};function o(u,o,c){(c=c||e||t.jQuery)&&(o.prototype.option||(o.prototype.option=function(t){c.isPlainObject(t)&&(this.options=c.extend(!0,this.options,t))}),c.fn[u]=function(t){return"string"==typeof t?function(t,s,r){var a,h="$()."+u+'("'+s+'")';return t.each(function(t,e){var i=c.data(e,u);if(i){var n=i[s];if(n&&"_"!=s.charAt(0)){var o=n.apply(i,r);a=void 0===a?o:a}else d(h+" is not a valid method")}else d(u+" not initialized. Cannot call methods, i.e. "+h)}),void 0!==a?a:t}(this,t,i.call(arguments,1)):(function(t,n){t.each(function(t,e){var i=c.data(e,u);i?(i.option(n),i._init()):(i=new o(e,n),c.data(e,u,i))})}(this,t),this)},s(c))}function s(t){!t||t&&t.bridget||(t.bridget=o)}return s(e||t.jQuery),o}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("get-size/get-size",[],function(){return e()}):"object"==typeof module&&module.exports?module.exports=e():t.getSize=e()}(window,function(){"use strict";function y(t){var e=parseFloat(t);return-1==t.indexOf("%")&&!isNaN(e)&&e}var i="undefined"==typeof console?function(){}:function(t){console.error(t)},v=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],_=v.length;function x(t){var e=getComputedStyle(t);return e||i("Style returned "+e+". Are you running this code in a hidden iframe on Firefox? See http://bit.ly/getsizebug1"),e}var b,E=!1;function T(t){if(function(){if(!E){E=!0;var t=document.createElement("div");t.style.width="200px",t.style.padding="1px 2px 3px 4px",t.style.borderStyle="solid",t.style.borderWidth="1px 2px 3px 4px",t.style.boxSizing="border-box";var e=document.body||document.documentElement;e.appendChild(t);var i=x(t);T.isBoxSizeOuter=b=200==y(i.width),e.removeChild(t)}}(),"string"==typeof t&&(t=document.querySelector(t)),t&&"object"==typeof t&&t.nodeType){var e=x(t);if("none"==e.display)return function(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},e=0;e<_;e++)t[v[e]]=0;return t}();var i={};i.width=t.offsetWidth,i.height=t.offsetHeight;for(var n=i.isBorderBox="border-box"==e.boxSizing,o=0;o<_;o++){var s=v[o],r=e[s],a=parseFloat(r);i[s]=isNaN(a)?0:a}var h=i.paddingLeft+i.paddingRight,u=i.paddingTop+i.paddingBottom,c=i.marginLeft+i.marginRight,d=i.marginTop+i.marginBottom,l=i.borderLeftWidth+i.borderRightWidth,f=i.borderTopWidth+i.borderBottomWidth,p=n&&b,g=y(e.width);!1!==g&&(i.width=g+(p?0:h+l));var m=y(e.height);return!1!==m&&(i.height=m+(p?0:u+f)),i.innerWidth=i.width-(h+l),i.innerHeight=i.height-(u+f),i.outerWidth=i.width+c,i.outerHeight=i.height+d,i}}return T}),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||{};return(i[t]=i[t]||{})[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 s=this._onceEvents&&this._onceEvents[t];o;){var r=s&&s[o];r&&(this.off(t,o),delete s[o]),o.apply(this,e),o=i[n+=r?0:1]}return this}},t}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("desandro-matches-selector/matches-selector",e):"object"==typeof module&&module.exports?module.exports=e():t.matchesSelector=e()}(window,function(){"use strict";var i=function(){var t=Element.prototype;if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";for(var e=["webkit","moz","ms","o"],i=0;i<e.length;i++){var n=e[i]+"MatchesSelector";if(t[n])return n}}();return function(t,e){return t[i](e)}}),function(e,i){"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["desandro-matches-selector/matches-selector"],function(t){return i(e,t)}):"object"==typeof module&&module.exports?module.exports=i(e,require("desandro-matches-selector")):e.fizzyUIUtils=i(e,e.matchesSelector)}(window,function(u,s){var c={extend:function(t,e){for(var i in e)t[i]=e[i];return t},modulo:function(t,e){return(t%e+e)%e},makeArray:function(t){var e=[];if(Array.isArray(t))e=t;else if(t&&"number"==typeof t.length)for(var i=0;i<t.length;i++)e.push(t[i]);else e.push(t);return e},removeFrom:function(t,e){var i=t.indexOf(e);-1!=i&&t.splice(i,1)},getParent:function(t,e){for(;t!=document.body;)if(t=t.parentNode,s(t,e))return t},getQueryElement:function(t){return"string"==typeof t?document.querySelector(t):t},handleEvent:function(t){var e="on"+t.type;this[e]&&this[e](t)},filterFindElements:function(t,n){t=c.makeArray(t);var o=[];return t.forEach(function(t){if(t instanceof HTMLElement)if(n){s(t,n)&&o.push(t);for(var e=t.querySelectorAll(n),i=0;i<e.length;i++)o.push(e[i])}else o.push(t)}),o},debounceMethod:function(t,e,n){var o=t.prototype[e],s=e+"Timeout";t.prototype[e]=function(){var t=this[s];t&&clearTimeout(t);var e=arguments,i=this;this[s]=setTimeout(function(){o.apply(i,e),delete i[s]},n||100)}},docReady:function(t){"complete"==document.readyState?t():document.addEventListener("DOMContentLoaded",t)},toDashed:function(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+"-"+i}).toLowerCase()}},d=u.console;return c.htmlInit=function(a,h){c.docReady(function(){var t=c.toDashed(h),o="data-"+t,e=document.querySelectorAll("["+o+"]"),i=document.querySelectorAll(".js-"+t),n=c.makeArray(e).concat(c.makeArray(i)),s=o+"-options",r=u.jQuery;n.forEach(function(e){var t,i=e.getAttribute(o)||e.getAttribute(s);try{t=i&&JSON.parse(i)}catch(t){return void(d&&d.error("Error parsing "+o+" on "+e.className+": "+t))}var n=new a(e,t);r&&r.data(e,h,n)})})},c}),function(t,e){"function"==typeof define&&define.amd?define("outlayer/item",["ev-emitter/ev-emitter","get-size/get-size"],e):"object"==typeof module&&module.exports?module.exports=e(require("ev-emitter"),require("get-size")):(t.Outlayer={},t.Outlayer.Item=e(t.EvEmitter,t.getSize))}(window,function(t,e){"use strict";var i=document.documentElement.style,n="string"==typeof i.transition?"transition":"WebkitTransition",o="string"==typeof i.transform?"transform":"WebkitTransform",s={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[n],r={transform:o,transition:n,transitionDuration:n+"Duration",transitionProperty:n+"Property",transitionDelay:n+"Delay"};function a(t,e){t&&(this.element=t,this.layout=e,this.position={x:0,y:0},this._create())}var h=a.prototype=Object.create(t.prototype);h.constructor=a,h._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},h.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},h.getSize=function(){this.size=e(this.element)},h.css=function(t){var e=this.element.style;for(var i in t){e[r[i]||i]=t[i]}},h.getPosition=function(){var t=getComputedStyle(this.element),e=this.layout._getOption("originLeft"),i=this.layout._getOption("originTop"),n=t[e?"left":"right"],o=t[i?"top":"bottom"],s=this.layout.size,r=-1!=n.indexOf("%")?parseFloat(n)/100*s.width:parseInt(n,10),a=-1!=o.indexOf("%")?parseFloat(o)/100*s.height:parseInt(o,10);r=isNaN(r)?0:r,a=isNaN(a)?0:a,r-=e?s.paddingLeft:s.paddingRight,a-=i?s.paddingTop:s.paddingBottom,this.position.x=r,this.position.y=a},h.layoutPosition=function(){var t=this.layout.size,e={},i=this.layout._getOption("originLeft"),n=this.layout._getOption("originTop"),o=i?"paddingLeft":"paddingRight",s=i?"left":"right",r=i?"right":"left",a=this.position.x+t[o];e[s]=this.getXValue(a),e[r]="";var h=n?"paddingTop":"paddingBottom",u=n?"top":"bottom",c=n?"bottom":"top",d=this.position.y+t[h];e[u]=this.getYValue(d),e[c]="",this.css(e),this.emitEvent("layout",[this])},h.getXValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!e?t/this.layout.size.width*100+"%":t+"px"},h.getYValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&e?t/this.layout.size.height*100+"%":t+"px"},h._transitionTo=function(t,e){this.getPosition();var i=this.position.x,n=this.position.y,o=parseInt(t,10),s=parseInt(e,10),r=o===this.position.x&&s===this.position.y;if(this.setPosition(t,e),!r||this.isTransitioning){var a=t-i,h=e-n,u={};u.transform=this.getTranslate(a,h),this.transition({to:u,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})}else this.layoutPosition()},h.getTranslate=function(t,e){return"translate3d("+(t=this.layout._getOption("originLeft")?t:-t)+"px, "+(e=this.layout._getOption("originTop")?e:-e)+"px, 0)"},h.goTo=function(t,e){this.setPosition(t,e),this.layoutPosition()},h.moveTo=h._transitionTo,h.setPosition=function(t,e){this.position.x=parseInt(t,10),this.position.y=parseInt(e,10)},h._nonTransition=function(t){for(var e in this.css(t.to),t.isCleaning&&this._removeStyles(t.to),t.onTransitionEnd)t.onTransitionEnd[e].call(this)},h.transition=function(t){if(parseFloat(this.layout.options.transitionDuration)){var e=this._transn;for(var i in t.onTransitionEnd)e.onEnd[i]=t.onTransitionEnd[i];for(i in t.to)e.ingProperties[i]=!0,t.isCleaning&&(e.clean[i]=!0);if(t.from){this.css(t.from);this.element.offsetHeight;null}this.enableTransition(t.to),this.css(t.to),this.isTransitioning=!0}else this._nonTransition(t)};var u="opacity,"+o.replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()});h.enableTransition=function(){if(!this.isTransitioning){var t=this.layout.options.transitionDuration;t="number"==typeof t?t+"ms":t,this.css({transitionProperty:u,transitionDuration:t,transitionDelay:this.staggerDelay||0}),this.element.addEventListener(s,this,!1)}},h.onwebkitTransitionEnd=function(t){this.ontransitionend(t)},h.onotransitionend=function(t){this.ontransitionend(t)};var c={"-webkit-transform":"transform"};h.ontransitionend=function(t){if(t.target===this.element){var e=this._transn,i=c[t.propertyName]||t.propertyName;if(delete e.ingProperties[i],function(t){for(var e in t)return!1;return!0}(e.ingProperties)&&this.disableTransition(),i in e.clean&&(this.element.style[t.propertyName]="",delete e.clean[i]),i in e.onEnd)e.onEnd[i].call(this),delete e.onEnd[i];this.emitEvent("transitionEnd",[this])}},h.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(s,this,!1),this.isTransitioning=!1},h._removeStyles=function(t){var e={};for(var i in t)e[i]="";this.css(e)};var d={transitionProperty:"",transitionDuration:"",transitionDelay:""};return h.removeTransitionStyles=function(){this.css(d)},h.stagger=function(t){t=isNaN(t)?0:t,this.staggerDelay=t+"ms"},h.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},h.remove=function(){n&&parseFloat(this.layout.options.transitionDuration)?(this.once("transitionEnd",function(){this.removeElem()}),this.hide()):this.removeElem()},h.reveal=function(){delete this.isHidden,this.css({display:""});var t=this.layout.options,e={};e[this.getHideRevealTransitionEndProperty("visibleStyle")]=this.onRevealTransitionEnd,this.transition({from:t.hiddenStyle,to:t.visibleStyle,isCleaning:!0,onTransitionEnd:e})},h.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},h.getHideRevealTransitionEndProperty=function(t){var e=this.layout.options[t];if(e.opacity)return"opacity";for(var i in e)return i},h.hide=function(){this.isHidden=!0,this.css({display:""});var t=this.layout.options,e={};e[this.getHideRevealTransitionEndProperty("hiddenStyle")]=this.onHideTransitionEnd,this.transition({from:t.visibleStyle,to:t.hiddenStyle,isCleaning:!0,onTransitionEnd:e})},h.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},h.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},a}),function(o,s){"use strict";"function"==typeof define&&define.amd?define("outlayer/outlayer",["ev-emitter/ev-emitter","get-size/get-size","fizzy-ui-utils/utils","./item"],function(t,e,i,n){return s(o,t,e,i,n)}):"object"==typeof module&&module.exports?module.exports=s(o,require("ev-emitter"),require("get-size"),require("fizzy-ui-utils"),require("./item")):o.Outlayer=s(o,o.EvEmitter,o.getSize,o.fizzyUIUtils,o.Outlayer.Item)}(window,function(t,e,o,s,n){"use strict";var r=t.console,a=t.jQuery,i=function(){},h=0,u={};function c(t,e){var i=s.getQueryElement(t);if(i){this.element=i,a&&(this.$element=a(this.element)),this.options=s.extend({},this.constructor.defaults),this.option(e);var n=++h;this.element.outlayerGUID=n,(u[n]=this)._create(),this._getOption("initLayout")&&this.layout()}else r&&r.error("Bad element for "+this.constructor.namespace+": "+(i||t))}c.namespace="outlayer",c.Item=n,c.defaults={containerStyle:{position:"relative"},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}};var d=c.prototype;function l(t){function e(){t.apply(this,arguments)}return(e.prototype=Object.create(t.prototype)).constructor=e}s.extend(d,e.prototype),d.option=function(t){s.extend(this.options,t)},d._getOption=function(t){var e=this.constructor.compatOptions[t];return e&&void 0!==this.options[e]?this.options[e]:this.options[t]},c.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},d._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),s.extend(this.element.style,this.options.containerStyle),this._getOption("resize")&&this.bindResize()},d.reloadItems=function(){this.items=this._itemize(this.element.children)},d._itemize=function(t){for(var e=this._filterFindItemElements(t),i=this.constructor.Item,n=[],o=0;o<e.length;o++){var s=new i(e[o],this);n.push(s)}return n},d._filterFindItemElements=function(t){return s.filterFindElements(t,this.options.itemSelector)},d.getItemElements=function(){return this.items.map(function(t){return t.element})},d.layout=function(){this._resetLayout(),this._manageStamps();var t=this._getOption("layoutInstant"),e=void 0!==t?t:!this._isLayoutInited;this.layoutItems(this.items,e),this._isLayoutInited=!0},d._init=d.layout,d._resetLayout=function(){this.getSize()},d.getSize=function(){this.size=o(this.element)},d._getMeasurement=function(t,e){var i,n=this.options[t];n?("string"==typeof n?i=this.element.querySelector(n):n instanceof HTMLElement&&(i=n),this[t]=i?o(i)[e]:n):this[t]=0},d.layoutItems=function(t,e){t=this._getItemsForLayout(t),this._layoutItems(t,e),this._postLayout()},d._getItemsForLayout=function(t){return t.filter(function(t){return!t.isIgnored})},d._layoutItems=function(t,i){if(this._emitCompleteOnItems("layout",t),t&&t.length){var n=[];t.forEach(function(t){var e=this._getItemLayoutPosition(t);e.item=t,e.isInstant=i||t.isLayoutInstant,n.push(e)},this),this._processLayoutQueue(n)}},d._getItemLayoutPosition=function(){return{x:0,y:0}},d._processLayoutQueue=function(t){this.updateStagger(),t.forEach(function(t,e){this._positionItem(t.item,t.x,t.y,t.isInstant,e)},this)},d.updateStagger=function(){var t=this.options.stagger;if(null!=t)return this.stagger=function(t){if("number"==typeof t)return t;var e=t.match(/(^\d*\.?\d*)(\w*)/),i=e&&e[1],n=e&&e[2];if(!i.length)return 0;i=parseFloat(i);var o=f[n]||1;return i*o}(t),this.stagger;this.stagger=0},d._positionItem=function(t,e,i,n,o){n?t.goTo(e,i):(t.stagger(o*this.stagger),t.moveTo(e,i))},d._postLayout=function(){this.resizeContainer()},d.resizeContainer=function(){if(this._getOption("resizeContainer")){var t=this._getContainerSize();t&&(this._setContainerMeasure(t.width,!0),this._setContainerMeasure(t.height,!1))}},d._getContainerSize=i,d._setContainerMeasure=function(t,e){if(void 0!==t){var i=this.size;i.isBorderBox&&(t+=e?i.paddingLeft+i.paddingRight+i.borderLeftWidth+i.borderRightWidth:i.paddingBottom+i.paddingTop+i.borderTopWidth+i.borderBottomWidth),t=Math.max(t,0),this.element.style[e?"width":"height"]=t+"px"}},d._emitCompleteOnItems=function(e,t){var i=this;function n(){i.dispatchEvent(e+"Complete",null,[t])}var o=t.length;if(t&&o){var s=0;t.forEach(function(t){t.once(e,r)})}else n();function r(){++s==o&&n()}},d.dispatchEvent=function(t,e,i){var n=e?[e].concat(i):i;if(this.emitEvent(t,n),a)if(this.$element=this.$element||a(this.element),e){var o=a.Event(e);o.type=t,this.$element.trigger(o,i)}else this.$element.trigger(t,i)},d.ignore=function(t){var e=this.getItem(t);e&&(e.isIgnored=!0)},d.unignore=function(t){var e=this.getItem(t);e&&delete e.isIgnored},d.stamp=function(t){(t=this._find(t))&&(this.stamps=this.stamps.concat(t),t.forEach(this.ignore,this))},d.unstamp=function(t){(t=this._find(t))&&t.forEach(function(t){s.removeFrom(this.stamps,t),this.unignore(t)},this)},d._find=function(t){if(t)return"string"==typeof t&&(t=this.element.querySelectorAll(t)),t=s.makeArray(t)},d._manageStamps=function(){this.stamps&&this.stamps.length&&(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},d._getBoundingRect=function(){var t=this.element.getBoundingClientRect(),e=this.size;this._boundingRect={left:t.left+e.paddingLeft+e.borderLeftWidth,top:t.top+e.paddingTop+e.borderTopWidth,right:t.right-(e.paddingRight+e.borderRightWidth),bottom:t.bottom-(e.paddingBottom+e.borderBottomWidth)}},d._manageStamp=i,d._getElementOffset=function(t){var e=t.getBoundingClientRect(),i=this._boundingRect,n=o(t);return{left:e.left-i.left-n.marginLeft,top:e.top-i.top-n.marginTop,right:i.right-e.right-n.marginRight,bottom:i.bottom-e.bottom-n.marginBottom}},d.handleEvent=s.handleEvent,d.bindResize=function(){t.addEventListener("resize",this),this.isResizeBound=!0},d.unbindResize=function(){t.removeEventListener("resize",this),this.isResizeBound=!1},d.onresize=function(){this.resize()},s.debounceMethod(c,"onresize",100),d.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},d.needsResizeLayout=function(){var t=o(this.element);return this.size&&t&&t.innerWidth!==this.size.innerWidth},d.addItems=function(t){var e=this._itemize(t);return e.length&&(this.items=this.items.concat(e)),e},d.appended=function(t){var e=this.addItems(t);e.length&&(this.layoutItems(e,!0),this.reveal(e))},d.prepended=function(t){var e=this._itemize(t);if(e.length){var i=this.items.slice(0);this.items=e.concat(i),this._resetLayout(),this._manageStamps(),this.layoutItems(e,!0),this.reveal(e),this.layoutItems(i)}},d.reveal=function(t){if(this._emitCompleteOnItems("reveal",t),t&&t.length){var i=this.updateStagger();t.forEach(function(t,e){t.stagger(e*i),t.reveal()})}},d.hide=function(t){if(this._emitCompleteOnItems("hide",t),t&&t.length){var i=this.updateStagger();t.forEach(function(t,e){t.stagger(e*i),t.hide()})}},d.revealItemElements=function(t){var e=this.getItems(t);this.reveal(e)},d.hideItemElements=function(t){var e=this.getItems(t);this.hide(e)},d.getItem=function(t){for(var e=0;e<this.items.length;e++){var i=this.items[e];if(i.element==t)return i}},d.getItems=function(t){t=s.makeArray(t);var i=[];return t.forEach(function(t){var e=this.getItem(t);e&&i.push(e)},this),i},d.remove=function(t){var e=this.getItems(t);this._emitCompleteOnItems("remove",e),e&&e.length&&e.forEach(function(t){t.remove(),s.removeFrom(this.items,t)},this)},d.destroy=function(){var t=this.element.style;t.height="",t.position="",t.width="",this.items.forEach(function(t){t.destroy()}),this.unbindResize();var e=this.element.outlayerGUID;delete u[e],delete this.element.outlayerGUID,a&&a.removeData(this.element,this.constructor.namespace)},c.data=function(t){var e=(t=s.getQueryElement(t))&&t.outlayerGUID;return e&&u[e]},c.create=function(t,e){var i=l(c);return i.defaults=s.extend({},c.defaults),s.extend(i.defaults,e),i.compatOptions=s.extend({},c.compatOptions),i.namespace=t,i.data=c.data,i.Item=l(n),s.htmlInit(i,t),a&&a.bridget&&a.bridget(t,i),i};var f={ms:1,s:1e3};return c.Item=n,c}),function(t,e){"function"==typeof define&&define.amd?define("packery/js/rect",e):"object"==typeof module&&module.exports?module.exports=e():(t.Packery=t.Packery||{},t.Packery.Rect=e())}(window,function(){"use strict";function a(t){for(var e in a.defaults)this[e]=a.defaults[e];for(e in t)this[e]=t[e]}a.defaults={x:0,y:0,width:0,height:0};var t=a.prototype;return t.contains=function(t){var e=t.width||0,i=t.height||0;return this.x<=t.x&&this.y<=t.y&&this.x+this.width>=t.x+e&&this.y+this.height>=t.y+i},t.overlaps=function(t){var e=this.x+this.width,i=this.y+this.height,n=t.x+t.width,o=t.y+t.height;return this.x<n&&e>t.x&&this.y<o&&i>t.y},t.getMaximalFreeRects=function(t){if(!this.overlaps(t))return!1;var e,i=[],n=this.x+this.width,o=this.y+this.height,s=t.x+t.width,r=t.y+t.height;return this.y<t.y&&(e=new a({x:this.x,y:this.y,width:this.width,height:t.y-this.y}),i.push(e)),s<n&&(e=new a({x:s,y:this.y,width:n-s,height:this.height}),i.push(e)),r<o&&(e=new a({x:this.x,y:r,width:this.width,height:o-r}),i.push(e)),this.x<t.x&&(e=new a({x:this.x,y:this.y,width:t.x-this.x,height:this.height}),i.push(e)),i},t.canFit=function(t){return this.width>=t.width&&this.height>=t.height},a}),function(t,e){if("function"==typeof define&&define.amd)define("packery/js/packer",["./rect"],e);else if("object"==typeof module&&module.exports)module.exports=e(require("./rect"));else{var i=t.Packery=t.Packery||{};i.Packer=e(i.Rect)}}(window,function(e){"use strict";function t(t,e,i){this.width=t||0,this.height=e||0,this.sortDirection=i||"downwardLeftToRight",this.reset()}var i=t.prototype;i.reset=function(){this.spaces=[];var t=new e({x:0,y:0,width:this.width,height:this.height});this.spaces.push(t),this.sorter=n[this.sortDirection]||n.downwardLeftToRight},i.pack=function(t){for(var e=0;e<this.spaces.length;e++){var i=this.spaces[e];if(i.canFit(t)){this.placeInSpace(t,i);break}}},i.columnPack=function(t){for(var e=0;e<this.spaces.length;e++){var i=this.spaces[e];if(i.x<=t.x&&i.x+i.width>=t.x+t.width&&i.height>=t.height-.01){t.y=i.y,this.placed(t);break}}},i.rowPack=function(t){for(var e=0;e<this.spaces.length;e++){var i=this.spaces[e];if(i.y<=t.y&&i.y+i.height>=t.y+t.height&&i.width>=t.width-.01){t.x=i.x,this.placed(t);break}}},i.placeInSpace=function(t,e){t.x=e.x,t.y=e.y,this.placed(t)},i.placed=function(t){for(var e=[],i=0;i<this.spaces.length;i++){var n=this.spaces[i],o=n.getMaximalFreeRects(t);o?e.push.apply(e,o):e.push(n)}this.spaces=e,this.mergeSortSpaces()},i.mergeSortSpaces=function(){t.mergeRects(this.spaces),this.spaces.sort(this.sorter)},i.addSpace=function(t){this.spaces.push(t),this.mergeSortSpaces()},t.mergeRects=function(t){var e=0,i=t[e];t:for(;i;){for(var n=0,o=t[e+n];o;){if(o==i)n++;else{if(o.contains(i)){t.splice(e,1),i=t[e];continue t}i.contains(o)?t.splice(e+n,1):n++}o=t[e+n]}i=t[++e]}return t};var n={downwardLeftToRight:function(t,e){return t.y-e.y||t.x-e.x},rightwardTopToBottom:function(t,e){return t.x-e.x||t.y-e.y}};return t}),function(t,e){"function"==typeof define&&define.amd?define("packery/js/item",["outlayer/outlayer","./rect"],e):"object"==typeof module&&module.exports?module.exports=e(require("outlayer"),require("./rect")):t.Packery.Item=e(t.Outlayer,t.Packery.Rect)}(window,function(t,e){"use strict";var i="string"==typeof document.documentElement.style.transform?"transform":"WebkitTransform",n=function(){t.Item.apply(this,arguments)},o=n.prototype=Object.create(t.Item.prototype),s=o._create;o._create=function(){s.call(this),this.rect=new e};var r=o.moveTo;return o.moveTo=function(t,e){var i=Math.abs(this.position.x-t),n=Math.abs(this.position.y-e);this.layout.dragItemCount&&!this.isPlacing&&!this.isTransitioning&&i<1&&n<1?this.goTo(t,e):r.apply(this,arguments)},o.enablePlacing=function(){this.removeTransitionStyles(),this.isTransitioning&&i&&(this.element.style[i]="none"),this.isTransitioning=!1,this.getSize(),this.layout._setRectSize(this.element,this.rect),this.isPlacing=!0},o.disablePlacing=function(){this.isPlacing=!1},o.removeElem=function(){this.element.parentNode.removeChild(this.element),this.layout.packer.addSpace(this.rect),this.emitEvent("remove",[this])},o.showDropPlaceholder=function(){var t=this.dropPlaceholder;t||((t=this.dropPlaceholder=document.createElement("div")).className="packery-drop-placeholder",t.style.position="absolute"),t.style.width=this.size.width+"px",t.style.height=this.size.height+"px",this.positionDropPlaceholder(),this.layout.element.appendChild(t)},o.positionDropPlaceholder=function(){this.dropPlaceholder.style[i]="translate("+this.rect.x+"px, "+this.rect.y+"px)"},o.hideDropPlaceholder=function(){var t=this.dropPlaceholder.parentNode;t&&t.removeChild(this.dropPlaceholder)},n}),function(t,e){"function"==typeof define&&define.amd?define(["get-size/get-size","outlayer/outlayer","packery/js/rect","packery/js/packer","packery/js/item"],e):"object"==typeof module&&module.exports?module.exports=e(require("get-size"),require("outlayer"),require("./rect"),require("./packer"),require("./item")):t.Packery=e(t.getSize,t.Outlayer,t.Packery.Rect,t.Packery.Packer,t.Packery.Item)}(window,function(c,t,g,e,i){"use strict";g.prototype.canFit=function(t){return this.width>=t.width-1&&this.height>=t.height-1};var n=t.create("packery");n.Item=i;var o=n.prototype;function s(t,e){return t.position.y-e.position.y||t.position.x-e.position.x}function r(t,e){return t.position.x-e.position.x||t.position.y-e.position.y}o._create=function(){t.prototype._create.call(this),this.packer=new e,this.shiftPacker=new e,this.isEnabled=!0,this.dragItemCount=0;var i=this;this.handleDraggabilly={dragStart:function(){i.itemDragStart(this.element)},dragMove:function(){i.itemDragMove(this.element,this.position.x,this.position.y)},dragEnd:function(){i.itemDragEnd(this.element)}},this.handleUIDraggable={start:function(t,e){e&&i.itemDragStart(t.currentTarget)},drag:function(t,e){e&&i.itemDragMove(t.currentTarget,e.position.left,e.position.top)},stop:function(t,e){e&&i.itemDragEnd(t.currentTarget)}}},o._resetLayout=function(){var t,e,i;this.getSize(),this._getMeasurements(),i=this._getOption("horizontal")?(t=1/0,e=this.size.innerHeight+this.gutter,"rightwardTopToBottom"):(t=this.size.innerWidth+this.gutter,e=1/0,"downwardLeftToRight"),this.packer.width=this.shiftPacker.width=t,this.packer.height=this.shiftPacker.height=e,this.packer.sortDirection=this.shiftPacker.sortDirection=i,this.packer.reset(),this.maxY=0,this.maxX=0},o._getMeasurements=function(){this._getMeasurement("columnWidth","width"),this._getMeasurement("rowHeight","height"),this._getMeasurement("gutter","width")},o._getItemLayoutPosition=function(t){if(this._setRectSize(t.element,t.rect),this.isShifting||0<this.dragItemCount){var e=this._getPackMethod();this.packer[e](t.rect)}else this.packer.pack(t.rect);return this._setMaxXY(t.rect),t.rect},o.shiftLayout=function(){this.isShifting=!0,this.layout(),delete this.isShifting},o._getPackMethod=function(){return this._getOption("horizontal")?"rowPack":"columnPack"},o._setMaxXY=function(t){this.maxX=Math.max(t.x+t.width,this.maxX),this.maxY=Math.max(t.y+t.height,this.maxY)},o._setRectSize=function(t,e){var i=c(t),n=i.outerWidth,o=i.outerHeight;(n||o)&&(n=this._applyGridGutter(n,this.columnWidth),o=this._applyGridGutter(o,this.rowHeight)),e.width=Math.min(n,this.packer.width),e.height=Math.min(o,this.packer.height)},o._applyGridGutter=function(t,e){if(!e)return t+this.gutter;var i=t%(e+=this.gutter);return t=Math[i&&i<1?"round":"ceil"](t/e)*e},o._getContainerSize=function(){return this._getOption("horizontal")?{width:this.maxX-this.gutter}:{height:this.maxY-this.gutter}},o._manageStamp=function(t){var e,i=this.getItem(t);if(i&&i.isPlacing)e=i.rect;else{var n=this._getElementOffset(t);e=new g({x:this._getOption("originLeft")?n.left:n.right,y:this._getOption("originTop")?n.top:n.bottom})}this._setRectSize(t,e),this.packer.placed(e),this._setMaxXY(e)},o.sortItemsByPosition=function(){var t=this._getOption("horizontal")?r:s;this.items.sort(t)},o.fit=function(t,e,i){var n=this.getItem(t);n&&(this.stamp(n.element),n.enablePlacing(),this.updateShiftTargets(n),e=void 0===e?n.rect.x:e,i=void 0===i?n.rect.y:i,this.shift(n,e,i),this._bindFitEvents(n),n.moveTo(n.rect.x,n.rect.y),this.shiftLayout(),this.unstamp(n.element),this.sortItemsByPosition(),n.disablePlacing())},o._bindFitEvents=function(t){var e=this,i=0;function n(){2==++i&&e.dispatchEvent("fitComplete",null,[t])}t.once("layout",n),this.once("layoutComplete",n)},o.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&(this.options.shiftPercentResize?this.resizeShiftPercentLayout():this.layout())},o.needsResizeLayout=function(){var t=c(this.element),e=this._getOption("horizontal")?"innerHeight":"innerWidth";return t[e]!=this.size[e]},o.resizeShiftPercentLayout=function(){var t=this._getItemsForLayout(this.items),e=this._getOption("horizontal"),i=e?"y":"x",n=e?"height":"width",o=e?"rowHeight":"columnWidth",s=e?"innerHeight":"innerWidth",r=this[o];if(r=r&&r+this.gutter){this._getMeasurements();var a=this[o]+this.gutter;t.forEach(function(t){var e=Math.round(t.rect[i]/r);t.rect[i]=e*a})}else{var h=c(this.element)[s]+this.gutter,u=this.packer[n];t.forEach(function(t){t.rect[i]=t.rect[i]/u*h})}this.shiftLayout()},o.itemDragStart=function(t){if(this.isEnabled){this.stamp(t);var e=this.getItem(t);e&&(e.enablePlacing(),e.showDropPlaceholder(),this.dragItemCount++,this.updateShiftTargets(e))}},o.updateShiftTargets=function(t){this.shiftPacker.reset(),this._getBoundingRect();var o=this._getOption("originLeft"),s=this._getOption("originTop");this.stamps.forEach(function(t){var e=this.getItem(t);if(!e||!e.isPlacing){var i=this._getElementOffset(t),n=new g({x:o?i.left:i.right,y:s?i.top:i.bottom});this._setRectSize(t,n),this.shiftPacker.placed(n)}},this);var h,u=this._getOption("horizontal"),e=u?"rowHeight":"columnWidth",c=u?"height":"width";this.shiftTargetKeys=[],this.shiftTargets=[];var d=this[e];if(d=d&&d+this.gutter){var i=Math.ceil(t.rect[c]/d),n=Math.floor((this.shiftPacker[c]+this.gutter)/d);h=(n-i)*d;for(var r=0;r<n;r++){var a=u?0:r*d,l=u?r*d:0;this._addShiftTarget(a,l,h)}}else h=this.shiftPacker[c]+this.gutter-t.rect[c],this._addShiftTarget(0,0,h);var f=this._getItemsForLayout(this.items),p=this._getPackMethod();f.forEach(function(t){var e=t.rect;this._setRectSize(t.element,e),this.shiftPacker[p](e),this._addShiftTarget(e.x,e.y,h);var i=u?e.x+e.width:e.x,n=u?e.y:e.y+e.height;if(this._addShiftTarget(i,n,h),d)for(var o=Math.round(e[c]/d),s=1;s<o;s++){var r=u?i:e.x+d*s,a=u?e.y+d*s:n;this._addShiftTarget(r,a,h)}},this)},o._addShiftTarget=function(t,e,i){var n=this._getOption("horizontal")?e:t;if(!(0!==n&&i<n)){var o=t+","+e;-1!=this.shiftTargetKeys.indexOf(o)||(this.shiftTargetKeys.push(o),this.shiftTargets.push({x:t,y:e}))}},o.shift=function(t,e,i){var n,o=1/0,s={x:e,y:i};this.shiftTargets.forEach(function(t){var e=function(t,e){var i=e.x-t.x,n=e.y-t.y;return Math.sqrt(i*i+n*n)}(t,s);e<o&&(n=t,o=e)}),t.rect.x=n.x,t.rect.y=n.y};o.itemDragMove=function(t,e,i){var n=this.isEnabled&&this.getItem(t);if(n){e-=this.size.paddingLeft,i-=this.size.paddingTop;var o=this,s=new Date;this._itemDragTime&&s-this._itemDragTime<120?(clearTimeout(this.dragTimeout),this.dragTimeout=setTimeout(r,120)):(r(),this._itemDragTime=s)}function r(){o.shift(n,e,i),n.positionDropPlaceholder(),o.layout()}},o.itemDragEnd=function(t){var e=this.isEnabled&&this.getItem(t);if(e){clearTimeout(this.dragTimeout),e.element.classList.add("is-positioning-post-drag");var i=0,n=this;e.once("layout",o),this.once("layoutComplete",o),e.moveTo(e.rect.x,e.rect.y),this.layout(),this.dragItemCount=Math.max(0,this.dragItemCount-1),this.sortItemsByPosition(),e.disablePlacing(),this.unstamp(e.element)}function o(){2==++i&&(e.element.classList.remove("is-positioning-post-drag"),e.hideDropPlaceholder(),n.dispatchEvent("dragItemPositioned",null,[e]))}},o.bindDraggabillyEvents=function(t){this._bindDraggabillyEvents(t,"on")},o.unbindDraggabillyEvents=function(t){this._bindDraggabillyEvents(t,"off")},o._bindDraggabillyEvents=function(t,e){var i=this.handleDraggabilly;t[e]("dragStart",i.dragStart),t[e]("dragMove",i.dragMove),t[e]("dragEnd",i.dragEnd)},o.bindUIDraggableEvents=function(t){this._bindUIDraggableEvents(t,"on")},o.unbindUIDraggableEvents=function(t){this._bindUIDraggableEvents(t,"off")},o._bindUIDraggableEvents=function(t,e){var i=this.handleUIDraggable;t[e]("dragstart",i.start)[e]("drag",i.drag)[e]("dragstop",i.stop)};var a=o.destroy;return o.destroy=function(){a.apply(this,arguments),this.isEnabled=!1},n.Rect=g,n.Packer=e,n});
|
1 |
+
!function(e,i){"use strict";"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(t){i(e,t)}):"object"==typeof module&&module.exports?module.exports=i(e,require("jquery")):e.jQueryBridget=i(e,e.jQuery)}(window,function(t,e){"use strict";var i=Array.prototype.slice,n=t.console,d=void 0===n?function(){}:function(t){n.error(t)};function o(u,o,c){(c=c||e||t.jQuery)&&(o.prototype.option||(o.prototype.option=function(t){c.isPlainObject(t)&&(this.options=c.extend(!0,this.options,t))}),c.fn[u]=function(t){return"string"==typeof t?function(t,s,r){var a,h="$()."+u+'("'+s+'")';return t.each(function(t,e){var i=c.data(e,u);if(i){var n=i[s];if(n&&"_"!=s.charAt(0)){var o=n.apply(i,r);a=void 0===a?o:a}else d(h+" is not a valid method")}else d(u+" not initialized. Cannot call methods, i.e. "+h)}),void 0!==a?a:t}(this,t,i.call(arguments,1)):(function(t,n){t.each(function(t,e){var i=c.data(e,u);i?(i.option(n),i._init()):(i=new o(e,n),c.data(e,u,i))})}(this,t),this)},s(c))}function s(t){!t||t&&t.bridget||(t.bridget=o)}return s(e||t.jQuery),o}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("get-size/get-size",[],function(){return e()}):"object"==typeof module&&module.exports?module.exports=e():t.getSize=e()}(window,function(){"use strict";function y(t){var e=parseFloat(t);return-1==t.indexOf("%")&&!isNaN(e)&&e}var i="undefined"==typeof console?function(){}:function(t){console.error(t)},v=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],_=v.length;function x(t){var e=getComputedStyle(t);return e||i("Style returned "+e+". Are you running this code in a hidden iframe on Firefox? See http://bit.ly/getsizebug1"),e}var b,E=!1;function T(t){if(function(){if(!E){E=!0;var t=document.createElement("div");t.style.width="200px",t.style.padding="1px 2px 3px 4px",t.style.borderStyle="solid",t.style.borderWidth="1px 2px 3px 4px",t.style.boxSizing="border-box";var e=document.body||document.documentElement;e.appendChild(t);var i=x(t);T.isBoxSizeOuter=b=200==y(i.width),e.removeChild(t)}}(),"string"==typeof t&&(t=document.querySelector(t)),t&&"object"==typeof t&&t.nodeType){var e=x(t);if("none"==e.display)return function(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},e=0;e<_;e++)t[v[e]]=0;return t}();var i={};i.width=t.offsetWidth,i.height=t.offsetHeight;for(var n=i.isBorderBox="border-box"==e.boxSizing,o=0;o<_;o++){var s=v[o],r=e[s],a=parseFloat(r);i[s]=isNaN(a)?0:a}var h=i.paddingLeft+i.paddingRight,u=i.paddingTop+i.paddingBottom,c=i.marginLeft+i.marginRight,d=i.marginTop+i.marginBottom,l=i.borderLeftWidth+i.borderRightWidth,f=i.borderTopWidth+i.borderBottomWidth,p=n&&b,g=y(e.width);!1!==g&&(i.width=g+(p?0:h+l));var m=y(e.height);return!1!==m&&(i.height=m+(p?0:u+f)),i.innerWidth=i.width-(h+l),i.innerHeight=i.height-(u+f),i.outerWidth=i.width+c,i.outerHeight=i.height+d,i}}return T}),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||{};return(i[t]=i[t]||{})[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 s=this._onceEvents&&this._onceEvents[t];o;){var r=s&&s[o];r&&(this.off(t,o),delete s[o]),o.apply(this,e),o=i[n+=r?0:1]}return this}},t}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("desandro-matches-selector/matches-selector",e):"object"==typeof module&&module.exports?module.exports=e():t.matchesSelector=e()}(window,function(){"use strict";var i=function(){var t=Element.prototype;if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";for(var e=["webkit","moz","ms","o"],i=0;i<e.length;i++){var n=e[i]+"MatchesSelector";if(t[n])return n}}();return function(t,e){return t[i](e)}}),function(e,i){"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["desandro-matches-selector/matches-selector"],function(t){return i(e,t)}):"object"==typeof module&&module.exports?module.exports=i(e,require("desandro-matches-selector")):e.fizzyUIUtils=i(e,e.matchesSelector)}(window,function(u,s){var c={extend:function(t,e){for(var i in e)t[i]=e[i];return t},modulo:function(t,e){return(t%e+e)%e},makeArray:function(t){var e=[];if(Array.isArray(t))e=t;else if(t&&"number"==typeof t.length)for(var i=0;i<t.length;i++)e.push(t[i]);else e.push(t);return e},removeFrom:function(t,e){var i=t.indexOf(e);-1!=i&&t.splice(i,1)},getParent:function(t,e){for(;t!=document.body;)if(t=t.parentNode,s(t,e))return t},getQueryElement:function(t){return"string"==typeof t?document.querySelector(t):t},handleEvent:function(t){var e="on"+t.type;this[e]&&this[e](t)},isElement:function(t){return"object"==typeof HTMLElement?t instanceof HTMLElement:t&&"object"==typeof t&&null!==t&&1===t.nodeType&&"string"==typeof t.nodeName},filterFindElements:function(t,n){t=c.makeArray(t);var o=[];return t.forEach(function(t){if(c.isElement(t))if(n){s(t,n)&&o.push(t);for(var e=t.querySelectorAll(n),i=0;i<e.length;i++)o.push(e[i])}else o.push(t)}),o},debounceMethod:function(t,e,n){var o=t.prototype[e],s=e+"Timeout";t.prototype[e]=function(){var t=this[s];t&&clearTimeout(t);var e=arguments,i=this;this[s]=setTimeout(function(){o.apply(i,e),delete i[s]},n||100)}},docReady:function(t){"complete"==document.readyState?t():document.addEventListener("DOMContentLoaded",t)},toDashed:function(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+"-"+i}).toLowerCase()}},d=u.console;return c.htmlInit=function(a,h){c.docReady(function(){var t=c.toDashed(h),o="data-"+t,e=document.querySelectorAll("["+o+"]"),i=document.querySelectorAll(".js-"+t),n=c.makeArray(e).concat(c.makeArray(i)),s=o+"-options",r=u.jQuery;n.forEach(function(e){var t,i=e.getAttribute(o)||e.getAttribute(s);try{t=i&&JSON.parse(i)}catch(t){return void(d&&d.error("Error parsing "+o+" on "+e.className+": "+t))}var n=new a(e,t);r&&r.data(e,h,n)})})},c}),function(t,e){"function"==typeof define&&define.amd?define("outlayer/item",["ev-emitter/ev-emitter","get-size/get-size"],e):"object"==typeof module&&module.exports?module.exports=e(require("ev-emitter"),require("get-size")):(t.Outlayer={},t.Outlayer.Item=e(t.EvEmitter,t.getSize))}(window,function(t,e){"use strict";var i=document.documentElement.style,n="string"==typeof i.transition?"transition":"WebkitTransition",o="string"==typeof i.transform?"transform":"WebkitTransform",s={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[n],r={transform:o,transition:n,transitionDuration:n+"Duration",transitionProperty:n+"Property",transitionDelay:n+"Delay"};function a(t,e){t&&(this.element=t,this.layout=e,this.position={x:0,y:0},this._create())}var h=a.prototype=Object.create(t.prototype);h.constructor=a,h._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},h.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},h.getSize=function(){this.size=e(this.element)},h.css=function(t){var e=this.element.style;for(var i in t){e[r[i]||i]=t[i]}},h.getPosition=function(){var t=getComputedStyle(this.element),e=this.layout._getOption("originLeft"),i=this.layout._getOption("originTop"),n=t[e?"left":"right"],o=t[i?"top":"bottom"],s=this.layout.size,r=-1!=n.indexOf("%")?parseFloat(n)/100*s.width:parseInt(n,10),a=-1!=o.indexOf("%")?parseFloat(o)/100*s.height:parseInt(o,10);r=isNaN(r)?0:r,a=isNaN(a)?0:a,r-=e?s.paddingLeft:s.paddingRight,a-=i?s.paddingTop:s.paddingBottom,this.position.x=r,this.position.y=a},h.layoutPosition=function(){var t=this.layout.size,e={},i=this.layout._getOption("originLeft"),n=this.layout._getOption("originTop"),o=i?"paddingLeft":"paddingRight",s=i?"left":"right",r=i?"right":"left",a=this.position.x+t[o];e[s]=this.getXValue(a),e[r]="";var h=n?"paddingTop":"paddingBottom",u=n?"top":"bottom",c=n?"bottom":"top",d=this.position.y+t[h];e[u]=this.getYValue(d),e[c]="",this.css(e),this.emitEvent("layout",[this])},h.getXValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!e?t/this.layout.size.width*100+"%":t+"px"},h.getYValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&e?t/this.layout.size.height*100+"%":t+"px"},h._transitionTo=function(t,e){this.getPosition();var i=this.position.x,n=this.position.y,o=parseInt(t,10),s=parseInt(e,10),r=o===this.position.x&&s===this.position.y;if(this.setPosition(t,e),!r||this.isTransitioning){var a=t-i,h=e-n,u={};u.transform=this.getTranslate(a,h),this.transition({to:u,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})}else this.layoutPosition()},h.getTranslate=function(t,e){return"translate3d("+(t=this.layout._getOption("originLeft")?t:-t)+"px, "+(e=this.layout._getOption("originTop")?e:-e)+"px, 0)"},h.goTo=function(t,e){this.setPosition(t,e),this.layoutPosition()},h.moveTo=h._transitionTo,h.setPosition=function(t,e){this.position.x=parseInt(t,10),this.position.y=parseInt(e,10)},h._nonTransition=function(t){for(var e in this.css(t.to),t.isCleaning&&this._removeStyles(t.to),t.onTransitionEnd)t.onTransitionEnd[e].call(this)},h.transition=function(t){if(parseFloat(this.layout.options.transitionDuration)){var e=this._transn;for(var i in t.onTransitionEnd)e.onEnd[i]=t.onTransitionEnd[i];for(i in t.to)e.ingProperties[i]=!0,t.isCleaning&&(e.clean[i]=!0);if(t.from){this.css(t.from);this.element.offsetHeight;null}this.enableTransition(t.to),this.css(t.to),this.isTransitioning=!0}else this._nonTransition(t)};var u="opacity,"+o.replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()});h.enableTransition=function(){if(!this.isTransitioning){var t=this.layout.options.transitionDuration;t="number"==typeof t?t+"ms":t,this.css({transitionProperty:u,transitionDuration:t,transitionDelay:this.staggerDelay||0}),this.element.addEventListener(s,this,!1)}},h.onwebkitTransitionEnd=function(t){this.ontransitionend(t)},h.onotransitionend=function(t){this.ontransitionend(t)};var c={"-webkit-transform":"transform"};h.ontransitionend=function(t){if(t.target===this.element){var e=this._transn,i=c[t.propertyName]||t.propertyName;if(delete e.ingProperties[i],function(t){for(var e in t)return!1;return!0}(e.ingProperties)&&this.disableTransition(),i in e.clean&&(this.element.style[t.propertyName]="",delete e.clean[i]),i in e.onEnd)e.onEnd[i].call(this),delete e.onEnd[i];this.emitEvent("transitionEnd",[this])}},h.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(s,this,!1),this.isTransitioning=!1},h._removeStyles=function(t){var e={};for(var i in t)e[i]="";this.css(e)};var d={transitionProperty:"",transitionDuration:"",transitionDelay:""};return h.removeTransitionStyles=function(){this.css(d)},h.stagger=function(t){t=isNaN(t)?0:t,this.staggerDelay=t+"ms"},h.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},h.remove=function(){n&&parseFloat(this.layout.options.transitionDuration)?(this.once("transitionEnd",function(){this.removeElem()}),this.hide()):this.removeElem()},h.reveal=function(){delete this.isHidden,this.css({display:""});var t=this.layout.options,e={};e[this.getHideRevealTransitionEndProperty("visibleStyle")]=this.onRevealTransitionEnd,this.transition({from:t.hiddenStyle,to:t.visibleStyle,isCleaning:!0,onTransitionEnd:e})},h.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},h.getHideRevealTransitionEndProperty=function(t){var e=this.layout.options[t];if(e.opacity)return"opacity";for(var i in e)return i},h.hide=function(){this.isHidden=!0,this.css({display:""});var t=this.layout.options,e={};e[this.getHideRevealTransitionEndProperty("hiddenStyle")]=this.onHideTransitionEnd,this.transition({from:t.visibleStyle,to:t.hiddenStyle,isCleaning:!0,onTransitionEnd:e})},h.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},h.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},a}),function(o,s){"use strict";"function"==typeof define&&define.amd?define("outlayer/outlayer",["ev-emitter/ev-emitter","get-size/get-size","fizzy-ui-utils/utils","./item"],function(t,e,i,n){return s(o,t,e,i,n)}):"object"==typeof module&&module.exports?module.exports=s(o,require("ev-emitter"),require("get-size"),require("fizzy-ui-utils"),require("./item")):o.Outlayer=s(o,o.EvEmitter,o.getSize,o.fizzyUIUtils,o.Outlayer.Item)}(window,function(t,e,o,s,n){"use strict";var r=t.console,a=t.jQuery,i=function(){},h=0,u={};function c(t,e){var i=s.getQueryElement(t);if(i){this.element=i,a&&(this.$element=a(this.element)),this.options=s.extend({},this.constructor.defaults),this.option(e);var n=++h;this.element.outlayerGUID=n,(u[n]=this)._create(),this._getOption("initLayout")&&this.layout()}else r&&r.error("Bad element for "+this.constructor.namespace+": "+(i||t))}c.namespace="outlayer",c.Item=n,c.defaults={containerStyle:{position:"relative"},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}};var d=c.prototype;function l(t){function e(){t.apply(this,arguments)}return(e.prototype=Object.create(t.prototype)).constructor=e}s.extend(d,e.prototype),d.option=function(t){s.extend(this.options,t)},d._getOption=function(t){var e=this.constructor.compatOptions[t];return e&&void 0!==this.options[e]?this.options[e]:this.options[t]},c.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},d._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),s.extend(this.element.style,this.options.containerStyle),this._getOption("resize")&&this.bindResize()},d.reloadItems=function(){this.items=this._itemize(this.element.children)},d._itemize=function(t){for(var e=this._filterFindItemElements(t),i=this.constructor.Item,n=[],o=0;o<e.length;o++){var s=new i(e[o],this);n.push(s)}return n},d._filterFindItemElements=function(t){return s.filterFindElements(t,this.options.itemSelector)},d.getItemElements=function(){return this.items.map(function(t){return t.element})},d.layout=function(){this._resetLayout(),this._manageStamps();var t=this._getOption("layoutInstant"),e=void 0!==t?t:!this._isLayoutInited;this.layoutItems(this.items,e),this._isLayoutInited=!0},d._init=d.layout,d._resetLayout=function(){this.getSize()},d.getSize=function(){this.size=o(this.element)},d._getMeasurement=function(t,e){var i,n=this.options[t];n?("string"==typeof n?i=this.element.querySelector(n):n instanceof HTMLElement&&(i=n),this[t]=i?o(i)[e]:n):this[t]=0},d.layoutItems=function(t,e){t=this._getItemsForLayout(t),this._layoutItems(t,e),this._postLayout()},d._getItemsForLayout=function(t){return t.filter(function(t){return!t.isIgnored})},d._layoutItems=function(t,i){if(this._emitCompleteOnItems("layout",t),t&&t.length){var n=[];t.forEach(function(t){var e=this._getItemLayoutPosition(t);e.item=t,e.isInstant=i||t.isLayoutInstant,n.push(e)},this),this._processLayoutQueue(n)}},d._getItemLayoutPosition=function(){return{x:0,y:0}},d._processLayoutQueue=function(t){this.updateStagger(),t.forEach(function(t,e){this._positionItem(t.item,t.x,t.y,t.isInstant,e)},this)},d.updateStagger=function(){var t=this.options.stagger;if(null!=t)return this.stagger=function(t){if("number"==typeof t)return t;var e=t.match(/(^\d*\.?\d*)(\w*)/),i=e&&e[1],n=e&&e[2];if(!i.length)return 0;i=parseFloat(i);var o=f[n]||1;return i*o}(t),this.stagger;this.stagger=0},d._positionItem=function(t,e,i,n,o){n?t.goTo(e,i):(t.stagger(o*this.stagger),t.moveTo(e,i))},d._postLayout=function(){this.resizeContainer()},d.resizeContainer=function(){if(this._getOption("resizeContainer")){var t=this._getContainerSize();t&&(this._setContainerMeasure(t.width,!0),this._setContainerMeasure(t.height,!1))}},d._getContainerSize=i,d._setContainerMeasure=function(t,e){if(void 0!==t){var i=this.size;i.isBorderBox&&(t+=e?i.paddingLeft+i.paddingRight+i.borderLeftWidth+i.borderRightWidth:i.paddingBottom+i.paddingTop+i.borderTopWidth+i.borderBottomWidth),t=Math.max(t,0),this.element.style[e?"width":"height"]=t+"px"}},d._emitCompleteOnItems=function(e,t){var i=this;function n(){i.dispatchEvent(e+"Complete",null,[t])}var o=t.length;if(t&&o){var s=0;t.forEach(function(t){t.once(e,r)})}else n();function r(){++s==o&&n()}},d.dispatchEvent=function(t,e,i){var n=e?[e].concat(i):i;if(this.emitEvent(t,n),a)if(this.$element=this.$element||a(this.element),e){var o=a.Event(e);o.type=t,this.$element.trigger(o,i)}else this.$element.trigger(t,i)},d.ignore=function(t){var e=this.getItem(t);e&&(e.isIgnored=!0)},d.unignore=function(t){var e=this.getItem(t);e&&delete e.isIgnored},d.stamp=function(t){(t=this._find(t))&&(this.stamps=this.stamps.concat(t),t.forEach(this.ignore,this))},d.unstamp=function(t){(t=this._find(t))&&t.forEach(function(t){s.removeFrom(this.stamps,t),this.unignore(t)},this)},d._find=function(t){if(t)return"string"==typeof t&&(t=this.element.querySelectorAll(t)),t=s.makeArray(t)},d._manageStamps=function(){this.stamps&&this.stamps.length&&(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},d._getBoundingRect=function(){var t=this.element.getBoundingClientRect(),e=this.size;this._boundingRect={left:t.left+e.paddingLeft+e.borderLeftWidth,top:t.top+e.paddingTop+e.borderTopWidth,right:t.right-(e.paddingRight+e.borderRightWidth),bottom:t.bottom-(e.paddingBottom+e.borderBottomWidth)}},d._manageStamp=i,d._getElementOffset=function(t){var e=t.getBoundingClientRect(),i=this._boundingRect,n=o(t);return{left:e.left-i.left-n.marginLeft,top:e.top-i.top-n.marginTop,right:i.right-e.right-n.marginRight,bottom:i.bottom-e.bottom-n.marginBottom}},d.handleEvent=s.handleEvent,d.bindResize=function(){t.addEventListener("resize",this),this.isResizeBound=!0},d.unbindResize=function(){t.removeEventListener("resize",this),this.isResizeBound=!1},d.onresize=function(){this.resize()},s.debounceMethod(c,"onresize",100),d.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},d.needsResizeLayout=function(){var t=o(this.element);return this.size&&t&&t.innerWidth!==this.size.innerWidth},d.addItems=function(t){var e=this._itemize(t);return e.length&&(this.items=this.items.concat(e)),e},d.appended=function(t){var e=this.addItems(t);e.length&&(this.layoutItems(e,!0),this.reveal(e))},d.prepended=function(t){var e=this._itemize(t);if(e.length){var i=this.items.slice(0);this.items=e.concat(i),this._resetLayout(),this._manageStamps(),this.layoutItems(e,!0),this.reveal(e),this.layoutItems(i)}},d.reveal=function(t){if(this._emitCompleteOnItems("reveal",t),t&&t.length){var i=this.updateStagger();t.forEach(function(t,e){t.stagger(e*i),t.reveal()})}},d.hide=function(t){if(this._emitCompleteOnItems("hide",t),t&&t.length){var i=this.updateStagger();t.forEach(function(t,e){t.stagger(e*i),t.hide()})}},d.revealItemElements=function(t){var e=this.getItems(t);this.reveal(e)},d.hideItemElements=function(t){var e=this.getItems(t);this.hide(e)},d.getItem=function(t){for(var e=0;e<this.items.length;e++){var i=this.items[e];if(i.element==t)return i}},d.getItems=function(t){t=s.makeArray(t);var i=[];return t.forEach(function(t){var e=this.getItem(t);e&&i.push(e)},this),i},d.remove=function(t){var e=this.getItems(t);this._emitCompleteOnItems("remove",e),e&&e.length&&e.forEach(function(t){t.remove(),s.removeFrom(this.items,t)},this)},d.destroy=function(){var t=this.element.style;t.height="",t.position="",t.width="",this.items.forEach(function(t){t.destroy()}),this.unbindResize();var e=this.element.outlayerGUID;delete u[e],delete this.element.outlayerGUID,a&&a.removeData(this.element,this.constructor.namespace)},c.data=function(t){var e=(t=s.getQueryElement(t))&&t.outlayerGUID;return e&&u[e]},c.create=function(t,e){var i=l(c);return i.defaults=s.extend({},c.defaults),s.extend(i.defaults,e),i.compatOptions=s.extend({},c.compatOptions),i.namespace=t,i.data=c.data,i.Item=l(n),s.htmlInit(i,t),a&&a.bridget&&a.bridget(t,i),i};var f={ms:1,s:1e3};return c.Item=n,c}),function(t,e){"function"==typeof define&&define.amd?define("packery/js/rect",e):"object"==typeof module&&module.exports?module.exports=e():(t.Packery=t.Packery||{},t.Packery.Rect=e())}(window,function(){"use strict";function a(t){for(var e in a.defaults)this[e]=a.defaults[e];for(e in t)this[e]=t[e]}a.defaults={x:0,y:0,width:0,height:0};var t=a.prototype;return t.contains=function(t){var e=t.width||0,i=t.height||0;return this.x<=t.x&&this.y<=t.y&&this.x+this.width>=t.x+e&&this.y+this.height>=t.y+i},t.overlaps=function(t){var e=this.x+this.width,i=this.y+this.height,n=t.x+t.width,o=t.y+t.height;return this.x<n&&e>t.x&&this.y<o&&i>t.y},t.getMaximalFreeRects=function(t){if(!this.overlaps(t))return!1;var e,i=[],n=this.x+this.width,o=this.y+this.height,s=t.x+t.width,r=t.y+t.height;return this.y<t.y&&(e=new a({x:this.x,y:this.y,width:this.width,height:t.y-this.y}),i.push(e)),s<n&&(e=new a({x:s,y:this.y,width:n-s,height:this.height}),i.push(e)),r<o&&(e=new a({x:this.x,y:r,width:this.width,height:o-r}),i.push(e)),this.x<t.x&&(e=new a({x:this.x,y:this.y,width:t.x-this.x,height:this.height}),i.push(e)),i},t.canFit=function(t){return this.width>=t.width&&this.height>=t.height},a}),function(t,e){if("function"==typeof define&&define.amd)define("packery/js/packer",["./rect"],e);else if("object"==typeof module&&module.exports)module.exports=e(require("./rect"));else{var i=t.Packery=t.Packery||{};i.Packer=e(i.Rect)}}(window,function(e){"use strict";function t(t,e,i){this.width=t||0,this.height=e||0,this.sortDirection=i||"downwardLeftToRight",this.reset()}var i=t.prototype;i.reset=function(){this.spaces=[];var t=new e({x:0,y:0,width:this.width,height:this.height});this.spaces.push(t),this.sorter=n[this.sortDirection]||n.downwardLeftToRight},i.pack=function(t){for(var e=0;e<this.spaces.length;e++){var i=this.spaces[e];if(i.canFit(t)){this.placeInSpace(t,i);break}}},i.columnPack=function(t){for(var e=0;e<this.spaces.length;e++){var i=this.spaces[e];if(i.x<=t.x&&i.x+i.width>=t.x+t.width&&i.height>=t.height-.01){t.y=i.y,this.placed(t);break}}},i.rowPack=function(t){for(var e=0;e<this.spaces.length;e++){var i=this.spaces[e];if(i.y<=t.y&&i.y+i.height>=t.y+t.height&&i.width>=t.width-.01){t.x=i.x,this.placed(t);break}}},i.placeInSpace=function(t,e){t.x=e.x,t.y=e.y,this.placed(t)},i.placed=function(t){for(var e=[],i=0;i<this.spaces.length;i++){var n=this.spaces[i],o=n.getMaximalFreeRects(t);o?e.push.apply(e,o):e.push(n)}this.spaces=e,this.mergeSortSpaces()},i.mergeSortSpaces=function(){t.mergeRects(this.spaces),this.spaces.sort(this.sorter)},i.addSpace=function(t){this.spaces.push(t),this.mergeSortSpaces()},t.mergeRects=function(t){var e=0,i=t[e];t:for(;i;){for(var n=0,o=t[e+n];o;){if(o==i)n++;else{if(o.contains(i)){t.splice(e,1),i=t[e];continue t}i.contains(o)?t.splice(e+n,1):n++}o=t[e+n]}i=t[++e]}return t};var n={downwardLeftToRight:function(t,e){return t.y-e.y||t.x-e.x},rightwardTopToBottom:function(t,e){return t.x-e.x||t.y-e.y}};return t}),function(t,e){"function"==typeof define&&define.amd?define("packery/js/item",["outlayer/outlayer","./rect"],e):"object"==typeof module&&module.exports?module.exports=e(require("outlayer"),require("./rect")):t.Packery.Item=e(t.Outlayer,t.Packery.Rect)}(window,function(t,e){"use strict";var i="string"==typeof document.documentElement.style.transform?"transform":"WebkitTransform",n=function(){t.Item.apply(this,arguments)},o=n.prototype=Object.create(t.Item.prototype),s=o._create;o._create=function(){s.call(this),this.rect=new e};var r=o.moveTo;return o.moveTo=function(t,e){var i=Math.abs(this.position.x-t),n=Math.abs(this.position.y-e);this.layout.dragItemCount&&!this.isPlacing&&!this.isTransitioning&&i<1&&n<1?this.goTo(t,e):r.apply(this,arguments)},o.enablePlacing=function(){this.removeTransitionStyles(),this.isTransitioning&&i&&(this.element.style[i]="none"),this.isTransitioning=!1,this.getSize(),this.layout._setRectSize(this.element,this.rect),this.isPlacing=!0},o.disablePlacing=function(){this.isPlacing=!1},o.removeElem=function(){this.element.parentNode.removeChild(this.element),this.layout.packer.addSpace(this.rect),this.emitEvent("remove",[this])},o.showDropPlaceholder=function(){var t=this.dropPlaceholder;t||((t=this.dropPlaceholder=document.createElement("div")).className="packery-drop-placeholder",t.style.position="absolute"),t.style.width=this.size.width+"px",t.style.height=this.size.height+"px",this.positionDropPlaceholder(),this.layout.element.appendChild(t)},o.positionDropPlaceholder=function(){this.dropPlaceholder.style[i]="translate("+this.rect.x+"px, "+this.rect.y+"px)"},o.hideDropPlaceholder=function(){var t=this.dropPlaceholder.parentNode;t&&t.removeChild(this.dropPlaceholder)},n}),function(t,e){"function"==typeof define&&define.amd?define(["get-size/get-size","outlayer/outlayer","packery/js/rect","packery/js/packer","packery/js/item"],e):"object"==typeof module&&module.exports?module.exports=e(require("get-size"),require("outlayer"),require("./rect"),require("./packer"),require("./item")):t.Packery=e(t.getSize,t.Outlayer,t.Packery.Rect,t.Packery.Packer,t.Packery.Item)}(window,function(c,t,g,e,i){"use strict";g.prototype.canFit=function(t){return this.width>=t.width-1&&this.height>=t.height-1};var n=t.create("packery");n.Item=i;var o=n.prototype;function s(t,e){return t.position.y-e.position.y||t.position.x-e.position.x}function r(t,e){return t.position.x-e.position.x||t.position.y-e.position.y}o._create=function(){t.prototype._create.call(this),this.packer=new e,this.shiftPacker=new e,this.isEnabled=!0,this.dragItemCount=0;var i=this;this.handleDraggabilly={dragStart:function(){i.itemDragStart(this.element)},dragMove:function(){i.itemDragMove(this.element,this.position.x,this.position.y)},dragEnd:function(){i.itemDragEnd(this.element)}},this.handleUIDraggable={start:function(t,e){e&&i.itemDragStart(t.currentTarget)},drag:function(t,e){e&&i.itemDragMove(t.currentTarget,e.position.left,e.position.top)},stop:function(t,e){e&&i.itemDragEnd(t.currentTarget)}}},o._resetLayout=function(){var t,e,i;this.getSize(),this._getMeasurements(),i=this._getOption("horizontal")?(t=1/0,e=this.size.innerHeight+this.gutter,"rightwardTopToBottom"):(t=this.size.innerWidth+this.gutter,e=1/0,"downwardLeftToRight"),this.packer.width=this.shiftPacker.width=t,this.packer.height=this.shiftPacker.height=e,this.packer.sortDirection=this.shiftPacker.sortDirection=i,this.packer.reset(),this.maxY=0,this.maxX=0},o._getMeasurements=function(){this._getMeasurement("columnWidth","width"),this._getMeasurement("rowHeight","height"),this._getMeasurement("gutter","width")},o._getItemLayoutPosition=function(t){if(this._setRectSize(t.element,t.rect),this.isShifting||0<this.dragItemCount){var e=this._getPackMethod();this.packer[e](t.rect)}else this.packer.pack(t.rect);return this._setMaxXY(t.rect),t.rect},o.shiftLayout=function(){this.isShifting=!0,this.layout(),delete this.isShifting},o._getPackMethod=function(){return this._getOption("horizontal")?"rowPack":"columnPack"},o._setMaxXY=function(t){this.maxX=Math.max(t.x+t.width,this.maxX),this.maxY=Math.max(t.y+t.height,this.maxY)},o._setRectSize=function(t,e){var i=c(t),n=i.outerWidth,o=i.outerHeight;(n||o)&&(n=this._applyGridGutter(n,this.columnWidth),o=this._applyGridGutter(o,this.rowHeight)),e.width=Math.min(n,this.packer.width),e.height=Math.min(o,this.packer.height)},o._applyGridGutter=function(t,e){if(!e)return t+this.gutter;var i=t%(e+=this.gutter);return t=Math[i&&i<1?"round":"ceil"](t/e)*e},o._getContainerSize=function(){return this._getOption("horizontal")?{width:this.maxX-this.gutter}:{height:this.maxY-this.gutter}},o._manageStamp=function(t){var e,i=this.getItem(t);if(i&&i.isPlacing)e=i.rect;else{var n=this._getElementOffset(t);e=new g({x:this._getOption("originLeft")?n.left:n.right,y:this._getOption("originTop")?n.top:n.bottom})}this._setRectSize(t,e),this.packer.placed(e),this._setMaxXY(e)},o.sortItemsByPosition=function(){var t=this._getOption("horizontal")?r:s;this.items.sort(t)},o.fit=function(t,e,i){var n=this.getItem(t);n&&(this.stamp(n.element),n.enablePlacing(),this.updateShiftTargets(n),e=void 0===e?n.rect.x:e,i=void 0===i?n.rect.y:i,this.shift(n,e,i),this._bindFitEvents(n),n.moveTo(n.rect.x,n.rect.y),this.shiftLayout(),this.unstamp(n.element),this.sortItemsByPosition(),n.disablePlacing())},o._bindFitEvents=function(t){var e=this,i=0;function n(){2==++i&&e.dispatchEvent("fitComplete",null,[t])}t.once("layout",n),this.once("layoutComplete",n)},o.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&(this.options.shiftPercentResize?this.resizeShiftPercentLayout():this.layout())},o.needsResizeLayout=function(){var t=c(this.element),e=this._getOption("horizontal")?"innerHeight":"innerWidth";return t[e]!=this.size[e]},o.resizeShiftPercentLayout=function(){var t=this._getItemsForLayout(this.items),e=this._getOption("horizontal"),i=e?"y":"x",n=e?"height":"width",o=e?"rowHeight":"columnWidth",s=e?"innerHeight":"innerWidth",r=this[o];if(r=r&&r+this.gutter){this._getMeasurements();var a=this[o]+this.gutter;t.forEach(function(t){var e=Math.round(t.rect[i]/r);t.rect[i]=e*a})}else{var h=c(this.element)[s]+this.gutter,u=this.packer[n];t.forEach(function(t){t.rect[i]=t.rect[i]/u*h})}this.shiftLayout()},o.itemDragStart=function(t){if(this.isEnabled){this.stamp(t);var e=this.getItem(t);e&&(e.enablePlacing(),e.showDropPlaceholder(),this.dragItemCount++,this.updateShiftTargets(e))}},o.updateShiftTargets=function(t){this.shiftPacker.reset(),this._getBoundingRect();var o=this._getOption("originLeft"),s=this._getOption("originTop");this.stamps.forEach(function(t){var e=this.getItem(t);if(!e||!e.isPlacing){var i=this._getElementOffset(t),n=new g({x:o?i.left:i.right,y:s?i.top:i.bottom});this._setRectSize(t,n),this.shiftPacker.placed(n)}},this);var h,u=this._getOption("horizontal"),e=u?"rowHeight":"columnWidth",c=u?"height":"width";this.shiftTargetKeys=[],this.shiftTargets=[];var d=this[e];if(d=d&&d+this.gutter){var i=Math.ceil(t.rect[c]/d),n=Math.floor((this.shiftPacker[c]+this.gutter)/d);h=(n-i)*d;for(var r=0;r<n;r++){var a=u?0:r*d,l=u?r*d:0;this._addShiftTarget(a,l,h)}}else h=this.shiftPacker[c]+this.gutter-t.rect[c],this._addShiftTarget(0,0,h);var f=this._getItemsForLayout(this.items),p=this._getPackMethod();f.forEach(function(t){var e=t.rect;this._setRectSize(t.element,e),this.shiftPacker[p](e),this._addShiftTarget(e.x,e.y,h);var i=u?e.x+e.width:e.x,n=u?e.y:e.y+e.height;if(this._addShiftTarget(i,n,h),d)for(var o=Math.round(e[c]/d),s=1;s<o;s++){var r=u?i:e.x+d*s,a=u?e.y+d*s:n;this._addShiftTarget(r,a,h)}},this)},o._addShiftTarget=function(t,e,i){var n=this._getOption("horizontal")?e:t;if(!(0!==n&&i<n)){var o=t+","+e;-1!=this.shiftTargetKeys.indexOf(o)||(this.shiftTargetKeys.push(o),this.shiftTargets.push({x:t,y:e}))}},o.shift=function(t,e,i){var n,o=1/0,s={x:e,y:i};this.shiftTargets.forEach(function(t){var e=function(t,e){var i=e.x-t.x,n=e.y-t.y;return Math.sqrt(i*i+n*n)}(t,s);e<o&&(n=t,o=e)}),t.rect.x=n.x,t.rect.y=n.y};o.itemDragMove=function(t,e,i){var n=this.isEnabled&&this.getItem(t);if(n){e-=this.size.paddingLeft,i-=this.size.paddingTop;var o=this,s=new Date;this._itemDragTime&&s-this._itemDragTime<120?(clearTimeout(this.dragTimeout),this.dragTimeout=setTimeout(r,120)):(r(),this._itemDragTime=s)}function r(){o.shift(n,e,i),n.positionDropPlaceholder(),o.layout()}},o.itemDragEnd=function(t){var e=this.isEnabled&&this.getItem(t);if(e){clearTimeout(this.dragTimeout),e.element.classList.add("is-positioning-post-drag");var i=0,n=this;e.once("layout",o),this.once("layoutComplete",o),e.moveTo(e.rect.x,e.rect.y),this.layout(),this.dragItemCount=Math.max(0,this.dragItemCount-1),this.sortItemsByPosition(),e.disablePlacing(),this.unstamp(e.element)}function o(){2==++i&&(e.element.classList.remove("is-positioning-post-drag"),e.hideDropPlaceholder(),n.dispatchEvent("dragItemPositioned",null,[e]))}},o.bindDraggabillyEvents=function(t){this._bindDraggabillyEvents(t,"on")},o.unbindDraggabillyEvents=function(t){this._bindDraggabillyEvents(t,"off")},o._bindDraggabillyEvents=function(t,e){var i=this.handleDraggabilly;t[e]("dragStart",i.dragStart),t[e]("dragMove",i.dragMove),t[e]("dragEnd",i.dragEnd)},o.bindUIDraggableEvents=function(t){this._bindUIDraggableEvents(t,"on")},o.unbindUIDraggableEvents=function(t){this._bindUIDraggableEvents(t,"off")},o._bindUIDraggableEvents=function(t,e){var i=this.handleUIDraggable;t[e]("dragstart",i.start)[e]("drag",i.drag)[e]("dragstop",i.stop)};var a=o.destroy;return o.destroy=function(){a.apply(this,arguments),this.isEnabled=!1},n.Rect=g,n.Packer=e,n});
|
changelog.txt
CHANGED
@@ -1,3 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
= 2.1.0 - 03.06.2019 =
|
2 |
* Admin design improvements
|
3 |
* Fixed missing image
|
1 |
+
= 2.1.1 - 25.06.2019 =
|
2 |
+
* Added Elementor Widget
|
3 |
+
* Added option to duplicate gallery
|
4 |
+
* Fixed issue with lightbox ( https://github.com/MachoThemes/modula-lite/issues/193 )
|
5 |
+
* Fixed Range Slider UI ( https://github.com/MachoThemes/modula-lite/issues/179 )
|
6 |
+
* Minor Dashboard UI improvements ( https://github.com/MachoThemes/modula-lite/issues/176 , https://github.com/MachoThemes/modula-lite/issues/178 )
|
7 |
+
|
8 |
= 2.1.0 - 03.06.2019 =
|
9 |
* Admin design improvements
|
10 |
* Fixed missing image
|
includes/admin/class-modula-cpt-fields-helper.php
CHANGED
@@ -81,7 +81,6 @@ class Modula_CPT_Fields_Helper {
|
|
81 |
'label' => esc_html__( 'Speed Up', 'modula-best-grid-gallery' ),
|
82 |
'title' => esc_html__( 'Optimize your images', 'modula-best-grid-gallery' ),
|
83 |
"icon" => "dashicons dashicons-dashboard",
|
84 |
-
'badge' => esc_html__( 'PRO', 'modula-best-grid-gallery' ),
|
85 |
'priority' => 80,
|
86 |
),
|
87 |
'responsive' => array(
|
@@ -91,8 +90,8 @@ class Modula_CPT_Fields_Helper {
|
|
91 |
'priority' => 90,
|
92 |
),
|
93 |
'customizations' => array(
|
94 |
-
'label' => esc_html__( '
|
95 |
-
'title' => esc_html__( '
|
96 |
'description' => $customizations_description,
|
97 |
"icon" => "dashicons dashicons-admin-tools",
|
98 |
'priority' => 90,
|
81 |
'label' => esc_html__( 'Speed Up', 'modula-best-grid-gallery' ),
|
82 |
'title' => esc_html__( 'Optimize your images', 'modula-best-grid-gallery' ),
|
83 |
"icon" => "dashicons dashicons-dashboard",
|
|
|
84 |
'priority' => 80,
|
85 |
),
|
86 |
'responsive' => array(
|
90 |
'priority' => 90,
|
91 |
),
|
92 |
'customizations' => array(
|
93 |
+
'label' => esc_html__( 'Custom CSS', 'modula-best-grid-gallery' ),
|
94 |
+
'title' => esc_html__( 'Custom CSS', 'modula-best-grid-gallery' ),
|
95 |
'description' => $customizations_description,
|
96 |
"icon" => "dashicons dashicons-admin-tools",
|
97 |
'priority' => 90,
|
includes/class-modula.php
CHANGED
@@ -43,6 +43,10 @@ class Modula {
|
|
43 |
require_once MODULA_PATH . 'includes/public/class-modula-shortcode.php';
|
44 |
require_once MODULA_PATH . 'includes/class-modula-gutenberg.php';
|
45 |
|
|
|
|
|
|
|
|
|
46 |
if ( is_admin() ) {
|
47 |
|
48 |
require_once MODULA_PATH . 'includes/admin/class-modula-importer-exporter.php';
|
43 |
require_once MODULA_PATH . 'includes/public/class-modula-shortcode.php';
|
44 |
require_once MODULA_PATH . 'includes/class-modula-gutenberg.php';
|
45 |
|
46 |
+
require_once MODULA_PATH . 'includes/elementor/class-modula-elementor-check.php';
|
47 |
+
|
48 |
+
require_once MODULA_PATH . 'includes/duplicator/class-modula-duplicator.php';
|
49 |
+
|
50 |
if ( is_admin() ) {
|
51 |
|
52 |
require_once MODULA_PATH . 'includes/admin/class-modula-importer-exporter.php';
|
includes/duplicator/class-modula-duplicator.php
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Modula_Duplicator {
|
4 |
+
|
5 |
+
public function __construct() {
|
6 |
+
$this->load_dependencies();
|
7 |
+
$this->define_admin_hooks();
|
8 |
+
}
|
9 |
+
|
10 |
+
private function define_admin_hooks() {
|
11 |
+
add_filter( 'post_row_actions', array( $this, 'duplicate_gallery_link' ), 10, 2 );
|
12 |
+
add_action( 'admin_action_modula_duplicate_gallery_save_as_new_post', 'modula_duplicate_gallery_save_as_new_post' );
|
13 |
+
add_action( 'modula_duplicate_gallery', 'modula_duplicate_gallery_copy_post_meta_info', 10, 2 );
|
14 |
+
}
|
15 |
+
|
16 |
+
private function load_dependencies() {
|
17 |
+
require_once MODULA_PATH . 'includes/duplicator/modula-duplicator-functions.php';
|
18 |
+
}
|
19 |
+
|
20 |
+
/**
|
21 |
+
* Add the link to action list for post_row_actions
|
22 |
+
*/
|
23 |
+
public function duplicate_gallery_link( $actions, $post ) {
|
24 |
+
$actions['duplicate_modula'] = '<a href="' . modula_duplicate_gallery_get_clone_post_link( $post->ID, 'display', false ) . '" title="' . esc_attr__( "Duplicate this gallery", 'modula-best-grid-gallery' ) . '">' . esc_html__( 'Duplicate gallery', 'modula-best-grid-gallery' ) . '</a>';
|
25 |
+
|
26 |
+
return $actions;
|
27 |
+
}
|
28 |
+
}
|
29 |
+
|
30 |
+
new Modula_Duplicator();
|
includes/duplicator/modula-duplicator-functions.php
ADDED
@@ -0,0 +1,215 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
function modula_duplicate_gallery_save_as_new_post( $status = '' ) {
|
4 |
+
|
5 |
+
if ( ! ( isset( $_GET['post'] ) || isset( $_POST['post'] ) || ( isset( $_REQUEST['action'] ) && 'modula_duplicate_gallery_save_as_new_post' == $_REQUEST['action'] ) ) ) {
|
6 |
+
wp_die( esc_html__( 'No gallery to duplicate has been supplied!', 'modula-best-grid-gallery' ) );
|
7 |
+
}
|
8 |
+
|
9 |
+
// Get the original post
|
10 |
+
$id = ( isset( $_GET['post'] ) ? $_GET['post'] : $_POST['post'] );
|
11 |
+
|
12 |
+
check_admin_referer( 'duplicate-gallery_' . $id );
|
13 |
+
|
14 |
+
$post = get_post( $id );
|
15 |
+
|
16 |
+
// Copy the post and insert it
|
17 |
+
if ( isset( $post ) && $post != null ) {
|
18 |
+
$new_id = modula_duplicate_gallery_create_duplicate( $post, $status );
|
19 |
+
|
20 |
+
if ( $status == '' ) {
|
21 |
+
$sendback = wp_get_referer();
|
22 |
+
if ( ! $sendback ||
|
23 |
+
strpos( $sendback, 'post.php' ) !== false ||
|
24 |
+
strpos( $sendback, 'post-new.php' ) !== false ) {
|
25 |
+
if ( 'attachment' == $post_type ) {
|
26 |
+
$sendback = admin_url( 'upload.php' );
|
27 |
+
} else {
|
28 |
+
$sendback = admin_url( 'edit.php' );
|
29 |
+
if ( ! empty( $post_type ) ) {
|
30 |
+
$sendback = add_query_arg( 'post_type', $post_type, $sendback );
|
31 |
+
}
|
32 |
+
}
|
33 |
+
} else {
|
34 |
+
$sendback = remove_query_arg( array( 'trashed', 'untrashed', 'deleted', 'cloned', 'ids' ), $sendback );
|
35 |
+
}
|
36 |
+
// Redirect to the post list screen
|
37 |
+
wp_redirect( add_query_arg( array( 'cloned' => 1, 'ids' => $post->ID ), $sendback ) );
|
38 |
+
} else {
|
39 |
+
// Redirect to the edit screen for the new draft post
|
40 |
+
wp_redirect( add_query_arg( array(
|
41 |
+
'cloned' => 1,
|
42 |
+
'ids' => $post->ID
|
43 |
+
), admin_url( 'post.php?action=edit&post=' . $new_id ) ) );
|
44 |
+
}
|
45 |
+
exit;
|
46 |
+
|
47 |
+
} else {
|
48 |
+
wp_die( esc_html__( 'Copy creation failed, could not find original:', 'modula-best-grid-gallery' ) . ' ' . htmlspecialchars( $id ) );
|
49 |
+
}
|
50 |
+
}
|
51 |
+
|
52 |
+
|
53 |
+
function modula_duplicate_gallery_get_clone_post_link( $id = 0, $context = 'display', $draft = true ) {
|
54 |
+
|
55 |
+
if ( ! $post = get_post( $id ) ) {
|
56 |
+
return;
|
57 |
+
}
|
58 |
+
|
59 |
+
$action_name = "modula_duplicate_gallery_save_as_new_post";
|
60 |
+
|
61 |
+
if ( 'display' == $context ) {
|
62 |
+
$action = '?action=' . $action_name . '&post=' . $post->ID;
|
63 |
+
} else {
|
64 |
+
$action = '?action=' . $action_name . '&post=' . $post->ID;
|
65 |
+
}
|
66 |
+
|
67 |
+
$post_type_object = get_post_type_object( $post->post_type );
|
68 |
+
if ( ! $post_type_object ) {
|
69 |
+
return;
|
70 |
+
}
|
71 |
+
|
72 |
+
return wp_nonce_url( apply_filters( 'modula_duplicate_gallery_get_clone_post_link', admin_url( "admin.php" . $action ), $post->ID, $context ), 'duplicate-gallery_' . $post->ID );
|
73 |
+
}
|
74 |
+
|
75 |
+
|
76 |
+
/**
|
77 |
+
* Display duplicate gallery link for gallery.
|
78 |
+
*
|
79 |
+
* @param string $link Optional. Anchor text.
|
80 |
+
* @param string $before Optional. Display before edit link.
|
81 |
+
* @param string $after Optional. Display after edit link.
|
82 |
+
* @param int $id Optional. Post ID.
|
83 |
+
*/
|
84 |
+
function modula_duplicate_gallery_clone_post_link( $link = null, $before = '', $after = '', $id = 0 ) {
|
85 |
+
if ( ! $post = get_post( $id ) ) {
|
86 |
+
return;
|
87 |
+
}
|
88 |
+
|
89 |
+
if ( ! $url = modula_duplicate_gallery_get_clone_post_link( $post->ID ) ) {
|
90 |
+
return;
|
91 |
+
}
|
92 |
+
|
93 |
+
echo $before . apply_filters( 'modula_duplicate_gallery_clone_post_link', $link, $post->ID ) . $after;
|
94 |
+
}
|
95 |
+
|
96 |
+
/**
|
97 |
+
* Create a duplicate from gallery
|
98 |
+
*/
|
99 |
+
function modula_duplicate_gallery_create_duplicate( $post, $status = '', $parent_id = '' ) {
|
100 |
+
|
101 |
+
do_action( 'modula_duplicate_gallery_pre_copy' );
|
102 |
+
|
103 |
+
$new_post_status = ( empty( $status ) ) ? $post->post_status : $status;
|
104 |
+
|
105 |
+
if ( $post->post_type != 'attachment' ) {
|
106 |
+
|
107 |
+
$title = $post->post_title;
|
108 |
+
|
109 |
+
if ( $title == '' ) {
|
110 |
+
// empty title
|
111 |
+
$title = __( 'Untitled', 'modula-best-grid-gallery' );
|
112 |
+
}else{
|
113 |
+
$title = esc_html__( 'Copy of ', 'modula-best-grid-gallery' ) . $title;
|
114 |
+
}
|
115 |
+
|
116 |
+
if ( 'publish' == $new_post_status || 'future' == $new_post_status ) {
|
117 |
+
// check if the user has the right capability
|
118 |
+
if ( is_post_type_hierarchical( $post->post_type ) ) {
|
119 |
+
if ( ! current_user_can( 'publish_pages' ) ) {
|
120 |
+
$new_post_status = 'pending';
|
121 |
+
}
|
122 |
+
} else {
|
123 |
+
if ( ! current_user_can( 'publish_posts' ) ) {
|
124 |
+
$new_post_status = 'pending';
|
125 |
+
}
|
126 |
+
}
|
127 |
+
}
|
128 |
+
}
|
129 |
+
|
130 |
+
$new_post_author = wp_get_current_user();
|
131 |
+
$new_post_author_id = $new_post_author->ID;
|
132 |
+
// check if the user has the right capability
|
133 |
+
if ( is_post_type_hierarchical( $post->post_type ) ) {
|
134 |
+
if ( current_user_can( 'edit_others_pages' ) ) {
|
135 |
+
$new_post_author_id = $post->post_author;
|
136 |
+
}
|
137 |
+
} else {
|
138 |
+
if ( current_user_can( 'edit_others_posts' ) ) {
|
139 |
+
$new_post_author_id = $post->post_author;
|
140 |
+
}
|
141 |
+
}
|
142 |
+
|
143 |
+
$menu_order = $post->menu_order;
|
144 |
+
$post_name = $post->post_name;
|
145 |
+
|
146 |
+
$new_post = array(
|
147 |
+
'menu_order' => $menu_order,
|
148 |
+
'comment_status' => $post->comment_status,
|
149 |
+
'ping_status' => $post->ping_status,
|
150 |
+
'post_author' => $new_post_author_id,
|
151 |
+
'post_content' => $post->post_content,
|
152 |
+
'post_content_filtered' => $post->post_content_filtered,
|
153 |
+
'post_excerpt' => $post->post_excerpt,
|
154 |
+
'post_mime_type' => $post->post_mime_type,
|
155 |
+
'post_parent' => $new_post_parent = empty( $parent_id ) ? $post->post_parent : $parent_id,
|
156 |
+
'post_password' => $post->post_password,
|
157 |
+
'post_status' => $new_post_status,
|
158 |
+
'post_title' => $title,
|
159 |
+
'post_type' => $post->post_type,
|
160 |
+
'post_name' => $post_name,
|
161 |
+
);
|
162 |
+
|
163 |
+
$new_post_id = wp_insert_post( wp_slash( $new_post ) );
|
164 |
+
|
165 |
+
if ( $new_post_id !== 0 && ! is_wp_error( $new_post_id ) ) {
|
166 |
+
|
167 |
+
do_action( 'modula_duplicate_gallery', $new_post_id, $post, $status );
|
168 |
+
|
169 |
+
delete_post_meta( $new_post_id, '_modula_original' );
|
170 |
+
add_post_meta( $new_post_id, '_modula_original', $post->ID );
|
171 |
+
|
172 |
+
do_action( 'modula_duplicate_gallery_post_copy' );
|
173 |
+
|
174 |
+
}
|
175 |
+
|
176 |
+
return $new_post_id;
|
177 |
+
}
|
178 |
+
|
179 |
+
|
180 |
+
/**
|
181 |
+
* Copy the meta information of a gallery to another gallery
|
182 |
+
*/
|
183 |
+
function modula_duplicate_gallery_copy_post_meta_info( $new_id, $post ) {
|
184 |
+
$post_meta_keys = get_post_custom_keys( $post->ID );
|
185 |
+
|
186 |
+
$post_meta_keys = apply_filters( 'modula_duplicate_gallery_meta_keys_filter', $post_meta_keys );
|
187 |
+
|
188 |
+
foreach ( $post_meta_keys as $meta_key ) {
|
189 |
+
$meta_values = get_post_custom_values( $meta_key, $post->ID );
|
190 |
+
foreach ( $meta_values as $meta_value ) {
|
191 |
+
$meta_value = maybe_unserialize( $meta_value );
|
192 |
+
add_post_meta( $new_id, $meta_key, modula_duplicate_gallery_wp_slash( $meta_value ) );
|
193 |
+
}
|
194 |
+
}
|
195 |
+
}
|
196 |
+
|
197 |
+
function modula_duplicate_gallery_wp_slash( $value ) {
|
198 |
+
return modula_duplicate_gallery_addslashes_deep( $value );
|
199 |
+
}
|
200 |
+
|
201 |
+
/*
|
202 |
+
* Workaround for inconsistent wp_slash.
|
203 |
+
* Works only with WP 4.4+ (map_deep)
|
204 |
+
*/
|
205 |
+
function modula_duplicate_gallery_addslashes_deep( $value ) {
|
206 |
+
if ( function_exists( 'map_deep' ) ) {
|
207 |
+
return map_deep( $value, 'modula_duplicate_gallery_addslashes_to_strings_only' );
|
208 |
+
} else {
|
209 |
+
return wp_slash( $value );
|
210 |
+
}
|
211 |
+
}
|
212 |
+
|
213 |
+
function modula_duplicate_gallery_addslashes_to_strings_only( $value ) {
|
214 |
+
return is_string( $value ) ? addslashes( $value ) : $value;
|
215 |
+
}
|
includes/elementor/class-modula-elementor-check.php
ADDED
@@ -0,0 +1,112 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
if (!defined('ABSPATH'))
|
3 |
+
exit; // Exit if accessed directly
|
4 |
+
|
5 |
+
final class Modula_Elementor_Check {
|
6 |
+
|
7 |
+
/**
|
8 |
+
* Plugin Version
|
9 |
+
*
|
10 |
+
* @since 1.2.0
|
11 |
+
* @var string The plugin version.
|
12 |
+
*/
|
13 |
+
const VERSION = '2.1.0';
|
14 |
+
|
15 |
+
/**
|
16 |
+
* Minimum Elementor Version
|
17 |
+
*
|
18 |
+
* @since 1.2.0
|
19 |
+
* @var string Minimum Elementor version required to run the elementor block.
|
20 |
+
*/
|
21 |
+
const MINIMUM_ELEMENTOR_VERSION = '2.4.5';
|
22 |
+
|
23 |
+
/**
|
24 |
+
* Minimum PHP Version
|
25 |
+
*
|
26 |
+
* @since 1.2.0
|
27 |
+
* @var string Minimum PHP version required to run the elementor block.
|
28 |
+
*/
|
29 |
+
const MINIMUM_PHP_VERSION = '7.0';
|
30 |
+
|
31 |
+
/**
|
32 |
+
* Constructor
|
33 |
+
*
|
34 |
+
* @since 1.0.0
|
35 |
+
* @access public
|
36 |
+
*/
|
37 |
+
public function __construct() {
|
38 |
+
|
39 |
+
// Init Plugin
|
40 |
+
add_action('plugins_loaded', array($this, 'init'));
|
41 |
+
}
|
42 |
+
|
43 |
+
public function init() {
|
44 |
+
|
45 |
+
if ( ! did_action( 'elementor/loaded' ) ) {
|
46 |
+
return;
|
47 |
+
}
|
48 |
+
|
49 |
+
// Check for required Elementor version
|
50 |
+
if (!version_compare(ELEMENTOR_VERSION, self::MINIMUM_ELEMENTOR_VERSION, '>=')) {
|
51 |
+
add_action('admin_notices', array($this, 'admin_notice_minimum_elementor_version'));
|
52 |
+
return;
|
53 |
+
}
|
54 |
+
|
55 |
+
// Check for required PHP version
|
56 |
+
if (version_compare(PHP_VERSION, self::MINIMUM_PHP_VERSION, '<')) {
|
57 |
+
add_action('admin_notices', array($this, 'admin_notice_minimum_php_version'));
|
58 |
+
return;
|
59 |
+
}
|
60 |
+
// Once we get here, We have passed all validation checks so we can safely include our elementor block activation
|
61 |
+
require_once(MODULA_PATH.'includes/elementor/class-modula-elementor-widget-activation.php');
|
62 |
+
}
|
63 |
+
|
64 |
+
|
65 |
+
/**
|
66 |
+
* Admin notice
|
67 |
+
*
|
68 |
+
* Warning when the site doesn't have a minimum required Elementor version.
|
69 |
+
*
|
70 |
+
* @since 1.0.0
|
71 |
+
* @access public
|
72 |
+
*/
|
73 |
+
public function admin_notice_minimum_elementor_version() {
|
74 |
+
if (isset($_GET['activate'])) {
|
75 |
+
unset($_GET['activate']);
|
76 |
+
}
|
77 |
+
|
78 |
+
$message = sprintf(
|
79 |
+
esc_html__('"%1$s" requires "%2$s" version %3$s or greater.', 'modula-best-grid-gallery'),
|
80 |
+
'<strong>' . esc_html__('Modula Elementor widget', 'modula-best-grid-gallery') . '</strong>',
|
81 |
+
'<strong>' . esc_html__('Elementor', 'modula-best-grid-gallery') . '</strong>',
|
82 |
+
self::MINIMUM_ELEMENTOR_VERSION
|
83 |
+
);
|
84 |
+
|
85 |
+
printf('<div class="notice notice-warning is-dismissible"><p>%1$s</p></div>', $message);
|
86 |
+
}
|
87 |
+
|
88 |
+
/**
|
89 |
+
* Admin notice
|
90 |
+
*
|
91 |
+
* Warning when the site doesn't have a minimum required PHP version.
|
92 |
+
*
|
93 |
+
* @since 1.0.0
|
94 |
+
* @access public
|
95 |
+
*/
|
96 |
+
public function admin_notice_minimum_php_version() {
|
97 |
+
if (isset($_GET['activate'])) {
|
98 |
+
unset($_GET['activate']);
|
99 |
+
}
|
100 |
+
|
101 |
+
$message = sprintf(
|
102 |
+
esc_html__('"%1$s" requires "%2$s" version %3$s or greater.', 'modula-best-grid-gallery'),
|
103 |
+
'<strong>' . esc_html__('Modula Elementor widget', 'modula-best-grid-gallery') . '</strong>',
|
104 |
+
'<strong>' . esc_html__('PHP', 'modula-best-grid-gallery') . '</strong>',
|
105 |
+
self::MINIMUM_PHP_VERSION
|
106 |
+
);
|
107 |
+
|
108 |
+
printf('<div class="notice notice-warning is-dismissible"><p>%1$s</p></div>', $message);
|
109 |
+
}
|
110 |
+
}
|
111 |
+
|
112 |
+
new Modula_Elementor_Check();
|
includes/elementor/class-modula-elementor-widget-activation.php
ADDED
@@ -0,0 +1,79 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
namespace ElementorModula;
|
4 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
5 |
+
exit;
|
6 |
+
} // Exit if accessed directly
|
7 |
+
|
8 |
+
class Modula_Elementor_Widget_Activation {
|
9 |
+
|
10 |
+
private static $_instance = null;
|
11 |
+
|
12 |
+
public static function instance() {
|
13 |
+
if ( is_null( self::$_instance ) ) {
|
14 |
+
self::$_instance = new self();
|
15 |
+
}
|
16 |
+
|
17 |
+
return self::$_instance;
|
18 |
+
}
|
19 |
+
|
20 |
+
private function include_widgets_files() {
|
21 |
+
require_once( MODULA_PATH . 'includes/elementor/widgets/class-modula-elementor.php' );
|
22 |
+
}
|
23 |
+
|
24 |
+
/**
|
25 |
+
* Register Widgets
|
26 |
+
*
|
27 |
+
* Register new Elementor widgets.
|
28 |
+
*
|
29 |
+
* @since 1.2.0
|
30 |
+
* @access public
|
31 |
+
*/
|
32 |
+
public function register_widgets() {
|
33 |
+
$this->include_widgets_files();
|
34 |
+
// Register Widgets
|
35 |
+
\Elementor\Plugin::instance()->widgets_manager->register_widget_type( new Widgets\Modula_Elementor_Widget() );
|
36 |
+
}
|
37 |
+
|
38 |
+
public function __construct() {
|
39 |
+
|
40 |
+
// Register widgets
|
41 |
+
add_action( 'elementor/widgets/widgets_registered', array( $this, 'register_widgets' ) );
|
42 |
+
|
43 |
+
// Enqueue needed scripts and styles in Elementor preview
|
44 |
+
add_action( 'elementor/preview/enqueue_scripts', array( $this, 'modula_elementor_enqueue_scripts' ) );
|
45 |
+
add_action( 'elementor/preview/enqueue_styles', array( $this, 'modula_elementor_enqueue_styles' ) );
|
46 |
+
|
47 |
+
}
|
48 |
+
|
49 |
+
|
50 |
+
/**
|
51 |
+
* Enqueue scripts in Elementor preview
|
52 |
+
*/
|
53 |
+
public function modula_elementor_enqueue_scripts() {
|
54 |
+
|
55 |
+
do_action( 'modula_elementor_before_enqueue_scripts' );
|
56 |
+
|
57 |
+
wp_enqueue_script( 'packery' );
|
58 |
+
wp_enqueue_script( 'modula-lazysizes' );
|
59 |
+
wp_enqueue_script( 'modula' );
|
60 |
+
|
61 |
+
do_action( 'modula_elementor_before_enqueue_elementor-preview' );
|
62 |
+
|
63 |
+
wp_enqueue_script( 'modula-elementor-preview', MODULA_URL . 'assets/js/modula-elementor-preview.js', null, MODULA_LITE_VERSION, true );
|
64 |
+
|
65 |
+
do_action( 'modula_elementor_after_enqueue_scripts' );
|
66 |
+
}
|
67 |
+
|
68 |
+
/**
|
69 |
+
* Enqueue styles in Elementor preview
|
70 |
+
*/
|
71 |
+
public function modula_elementor_enqueue_styles() {
|
72 |
+
do_action( 'modula_elementor_before_enqueue_styles' );
|
73 |
+
wp_enqueue_style( 'modula' );
|
74 |
+
do_action( 'modula_elementor_after_enqueue_styles' );
|
75 |
+
}
|
76 |
+
}
|
77 |
+
|
78 |
+
// Instantiate Plugin Class
|
79 |
+
Modula_Elementor_Widget_Activation::instance();
|
includes/elementor/widgets/class-modula-elementor.php
ADDED
@@ -0,0 +1,74 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
namespace ElementorModula\Widgets;
|
4 |
+
|
5 |
+
use Elementor\Widget_Base;
|
6 |
+
use Elementor\Controls_Manager;
|
7 |
+
|
8 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
9 |
+
exit; // Exit if accessed directly.
|
10 |
+
}
|
11 |
+
|
12 |
+
class Modula_Elementor_Widget extends \Elementor\Widget_Base {
|
13 |
+
|
14 |
+
public function get_name() {
|
15 |
+
return 'modula_elementor_gallery';
|
16 |
+
}
|
17 |
+
|
18 |
+
public function get_title() {
|
19 |
+
return esc_html__( 'Modula', 'modula-best-grid-gallery' );
|
20 |
+
}
|
21 |
+
|
22 |
+
public function get_icon() {
|
23 |
+
return 'eicon-elementor-square';
|
24 |
+
}
|
25 |
+
|
26 |
+
public function get_categories() {
|
27 |
+
return array( 'general' );
|
28 |
+
|
29 |
+
}
|
30 |
+
|
31 |
+
protected function _register_controls() {
|
32 |
+
$this->start_controls_section(
|
33 |
+
'content_section',
|
34 |
+
array(
|
35 |
+
'label' => esc_html__( 'Content', 'modula-best-grid-gallery' ),
|
36 |
+
'tab' => \Elementor\Controls_Manager::TAB_CONTENT,
|
37 |
+
)
|
38 |
+
);
|
39 |
+
|
40 |
+
$this->add_control(
|
41 |
+
'modula_gallery_select',
|
42 |
+
array(
|
43 |
+
'label' => esc_html__( 'Select Gallery', 'modula-best-grid-gallery' ),
|
44 |
+
'type' => \Elementor\Controls_Manager::SELECT,
|
45 |
+
'options' => $this->get_galleries(),
|
46 |
+
'default' => 'none',
|
47 |
+
)
|
48 |
+
);
|
49 |
+
|
50 |
+
$this->end_controls_section();
|
51 |
+
}
|
52 |
+
|
53 |
+
protected function render() {
|
54 |
+
$settings = $this->get_settings_for_display();
|
55 |
+
$gallery_id = $settings['modula_gallery_select'];
|
56 |
+
if ( 'none' != $gallery_id ) {
|
57 |
+
echo do_shortcode( '[Modula id="' . esc_attr( $gallery_id ) . '"]' );
|
58 |
+
}
|
59 |
+
|
60 |
+
}
|
61 |
+
|
62 |
+
|
63 |
+
public function get_galleries() {
|
64 |
+
|
65 |
+
$galleries = get_posts( array( 'post_type' => 'modula-gallery' ) );
|
66 |
+
$gallery_array = array( 'none' => esc_html__( 'None', 'modula-best-grid-gallery' ) );
|
67 |
+
foreach ( $galleries as $gallery ) {
|
68 |
+
$gallery_array[ $gallery->ID ] = esc_html( $gallery->post_title );
|
69 |
+
}
|
70 |
+
|
71 |
+
return $gallery_array;
|
72 |
+
}
|
73 |
+
|
74 |
+
}
|
includes/public/templates/modula-gallery.php
CHANGED
@@ -56,7 +56,7 @@ $classes = apply_filters( 'modula_gallery_extra_classes', 'modula modula-gallery
|
|
56 |
* @hooked modula_check_hover_effect - 20
|
57 |
* @hooked modula_check_custom_grid - 25
|
58 |
*/
|
59 |
-
$item_data = apply_filters( 'modula_shortcode_item_data', $item_data, $image, $data->settings );
|
60 |
|
61 |
do_action( 'modula_shortcode_before_item', $data->settings, $item_data );
|
62 |
$data->loader->set_template_data( $item_data );
|
56 |
* @hooked modula_check_hover_effect - 20
|
57 |
* @hooked modula_check_custom_grid - 25
|
58 |
*/
|
59 |
+
$item_data = apply_filters( 'modula_shortcode_item_data', $item_data, $image, $data->settings, $data->images );
|
60 |
|
61 |
do_action( 'modula_shortcode_before_item', $data->settings, $item_data );
|
62 |
$data->loader->set_template_data( $item_data );
|
languages/modula-best-grid-gallery.po
CHANGED
@@ -2,10 +2,10 @@
|
|
2 |
# This file is distributed under the GPLv3 or later.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Modula 2.
|
6 |
"Report-Msgid-Bugs-To: "
|
7 |
"https://wordpress.org/support/plugin/modula-best-grid-gallery\n"
|
8 |
-
"POT-Creation-Date: 2019-
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=utf-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
@@ -118,7 +118,6 @@ msgstr ""
|
|
118 |
|
119 |
#: includes/admin/class-modula-cpt-fields-helper.php:35
|
120 |
#: includes/admin/class-modula-cpt-fields-helper.php:70
|
121 |
-
#: includes/admin/class-modula-cpt-fields-helper.php:84
|
122 |
msgid "PRO"
|
123 |
msgstr ""
|
124 |
|
@@ -147,7 +146,7 @@ msgid "Loading Effects Settings"
|
|
147 |
msgstr ""
|
148 |
|
149 |
#: includes/admin/class-modula-cpt-fields-helper.php:60
|
150 |
-
#: includes/admin/class-modula-cpt-fields-helper.php:
|
151 |
msgid "Hover effect"
|
152 |
msgstr ""
|
153 |
|
@@ -179,378 +178,375 @@ msgstr ""
|
|
179 |
msgid "Optimize your images"
|
180 |
msgstr ""
|
181 |
|
182 |
-
#: includes/admin/class-modula-cpt-fields-helper.php:
|
183 |
msgid "Responsive"
|
184 |
msgstr ""
|
185 |
|
186 |
-
#: includes/admin/class-modula-cpt-fields-helper.php:
|
187 |
msgid "Responsive Settings"
|
188 |
msgstr ""
|
189 |
|
|
|
190 |
#: includes/admin/class-modula-cpt-fields-helper.php:94
|
191 |
-
msgid "
|
192 |
-
msgstr ""
|
193 |
-
|
194 |
-
#: includes/admin/class-modula-cpt-fields-helper.php:95
|
195 |
-
msgid "Customization Settings"
|
196 |
msgstr ""
|
197 |
|
198 |
-
#: includes/admin/class-modula-cpt-fields-helper.php:
|
199 |
msgid "Still stuck ?"
|
200 |
msgstr ""
|
201 |
|
202 |
-
#: includes/admin/class-modula-cpt-fields-helper.php:
|
203 |
msgid "Explore our documentation"
|
204 |
msgstr ""
|
205 |
|
206 |
-
#: includes/admin/class-modula-cpt-fields-helper.php:
|
207 |
msgid "Contact our support team."
|
208 |
msgstr ""
|
209 |
|
210 |
-
#: includes/admin/class-modula-cpt-fields-helper.php:
|
211 |
msgid "Gallery Type"
|
212 |
msgstr ""
|
213 |
|
214 |
-
#: includes/admin/class-modula-cpt-fields-helper.php:
|
215 |
msgid "Choose the type of gallery you want to use."
|
216 |
msgstr ""
|
217 |
|
218 |
-
#: includes/admin/class-modula-cpt-fields-helper.php:
|
219 |
msgid "Creative Gallery"
|
220 |
msgstr ""
|
221 |
|
222 |
-
#: includes/admin/class-modula-cpt-fields-helper.php:
|
223 |
msgid "Custom Grid"
|
224 |
msgstr ""
|
225 |
|
226 |
-
#: includes/admin/class-modula-cpt-fields-helper.php:
|
227 |
msgid "Gutter"
|
228 |
msgstr ""
|
229 |
|
230 |
-
#: includes/admin/class-modula-cpt-fields-helper.php:
|
231 |
msgid "Use this slider to adjust the spacing of images in your gallery."
|
232 |
msgstr ""
|
233 |
|
234 |
-
#: includes/admin/class-modula-cpt-fields-helper.php:
|
235 |
msgid "Width"
|
236 |
msgstr ""
|
237 |
|
238 |
-
#: includes/admin/class-modula-cpt-fields-helper.php:
|
239 |
msgid "Width of the gallery. Can be in % or pixels."
|
240 |
msgstr ""
|
241 |
|
242 |
-
#: includes/admin/class-modula-cpt-fields-helper.php:
|
243 |
msgid "Height"
|
244 |
msgstr ""
|
245 |
|
246 |
-
#: includes/admin/class-modula-cpt-fields-helper.php:
|
247 |
msgid "Set the height of the gallery in pixels."
|
248 |
msgstr ""
|
249 |
|
250 |
-
#: includes/admin/class-modula-cpt-fields-helper.php:
|
251 |
msgid "Thumbnail Size"
|
252 |
msgstr ""
|
253 |
|
254 |
-
#: includes/admin/class-modula-cpt-fields-helper.php:
|
255 |
msgid "Set the minimum width or height of the thumbnails in pixels."
|
256 |
msgstr ""
|
257 |
|
258 |
-
#: includes/admin/class-modula-cpt-fields-helper.php:
|
259 |
msgid "Margin"
|
260 |
msgstr ""
|
261 |
|
262 |
-
#: includes/admin/class-modula-cpt-fields-helper.php:
|
263 |
msgid "Set the margin between images in pixels."
|
264 |
msgstr ""
|
265 |
|
266 |
-
#: includes/admin/class-modula-cpt-fields-helper.php:
|
267 |
msgid "Random factor"
|
268 |
msgstr ""
|
269 |
|
270 |
-
#: includes/admin/class-modula-cpt-fields-helper.php:
|
271 |
msgid ""
|
272 |
"Toggle this to 0 to tune down the randomising factor on Modula's grid "
|
273 |
"algorithm."
|
274 |
msgstr ""
|
275 |
|
276 |
-
#: includes/admin/class-modula-cpt-fields-helper.php:
|
277 |
msgid "Lightbox & Links"
|
278 |
msgstr ""
|
279 |
|
280 |
-
#: includes/admin/class-modula-cpt-fields-helper.php:
|
281 |
msgid ""
|
282 |
"Choose your preferred lightbox style. Some styles, such as LightGallery, "
|
283 |
"allow for image downloads."
|
284 |
msgstr ""
|
285 |
|
286 |
-
#: includes/admin/class-modula-cpt-fields-helper.php:
|
287 |
msgid "Link"
|
288 |
msgstr ""
|
289 |
|
290 |
-
#: includes/admin/class-modula-cpt-fields-helper.php:
|
291 |
msgid "No link"
|
292 |
msgstr ""
|
293 |
|
294 |
-
#: includes/admin/class-modula-cpt-fields-helper.php:
|
295 |
msgid "Direct link to image"
|
296 |
msgstr ""
|
297 |
|
298 |
-
#: includes/admin/class-modula-cpt-fields-helper.php:
|
299 |
msgid "Attachment page"
|
300 |
msgstr ""
|
301 |
|
302 |
-
#: includes/admin/class-modula-cpt-fields-helper.php:
|
303 |
msgid "Lightboxes"
|
304 |
msgstr ""
|
305 |
|
306 |
-
#: includes/admin/class-modula-cpt-fields-helper.php:
|
307 |
msgid "Lightbox2"
|
308 |
msgstr ""
|
309 |
|
310 |
-
#: includes/admin/class-modula-cpt-fields-helper.php:
|
311 |
msgid "Lightboxes with PRO license"
|
312 |
msgstr ""
|
313 |
|
314 |
-
#: includes/admin/class-modula-cpt-fields-helper.php:
|
315 |
msgid "Magnific popup"
|
316 |
msgstr ""
|
317 |
|
318 |
-
#: includes/admin/class-modula-cpt-fields-helper.php:
|
319 |
msgid "PrettyPhoto"
|
320 |
msgstr ""
|
321 |
|
322 |
-
#: includes/admin/class-modula-cpt-fields-helper.php:
|
323 |
msgid "FancyBox"
|
324 |
msgstr ""
|
325 |
|
326 |
-
#: includes/admin/class-modula-cpt-fields-helper.php:
|
327 |
msgid "SwipeBox"
|
328 |
msgstr ""
|
329 |
|
330 |
-
#: includes/admin/class-modula-cpt-fields-helper.php:
|
331 |
msgid "LightGallery"
|
332 |
msgstr ""
|
333 |
|
334 |
-
#: includes/admin/class-modula-cpt-fields-helper.php:
|
335 |
msgid "Show lightbox navigation"
|
336 |
msgstr ""
|
337 |
|
338 |
-
#: includes/admin/class-modula-cpt-fields-helper.php:
|
339 |
msgid "Show lightbox navigation on mobile"
|
340 |
msgstr ""
|
341 |
|
342 |
-
#: includes/admin/class-modula-cpt-fields-helper.php:
|
343 |
msgid "Shuffle images"
|
344 |
msgstr ""
|
345 |
|
346 |
-
#: includes/admin/class-modula-cpt-fields-helper.php:
|
347 |
msgid "Toggle this to ON to have the gallery shuffle on each page load"
|
348 |
msgstr ""
|
349 |
|
350 |
-
#: includes/admin/class-modula-cpt-fields-helper.php:
|
351 |
msgid "Title Color"
|
352 |
msgstr ""
|
353 |
|
354 |
-
#: includes/admin/class-modula-cpt-fields-helper.php:
|
355 |
msgid "Set the color of title."
|
356 |
msgstr ""
|
357 |
|
358 |
-
#: includes/admin/class-modula-cpt-fields-helper.php:
|
359 |
msgid "Caption Color"
|
360 |
msgstr ""
|
361 |
|
362 |
-
#: includes/admin/class-modula-cpt-fields-helper.php:
|
363 |
msgid "Set the color of captions."
|
364 |
msgstr ""
|
365 |
|
366 |
-
#: includes/admin/class-modula-cpt-fields-helper.php:
|
367 |
msgid "Default Title"
|
368 |
msgstr ""
|
369 |
|
370 |
-
#: includes/admin/class-modula-cpt-fields-helper.php:
|
371 |
msgid ""
|
372 |
"If you leave the title blank Modula will get the title from WordPress image "
|
373 |
"by default."
|
374 |
msgstr ""
|
375 |
|
376 |
-
#: includes/admin/class-modula-cpt-fields-helper.php:
|
377 |
-
#: includes/admin/class-modula-cpt-fields-helper.php:
|
378 |
msgid "No default"
|
379 |
msgstr ""
|
380 |
|
381 |
-
#: includes/admin/class-modula-cpt-fields-helper.php:
|
382 |
-
#: includes/admin/class-modula-cpt-fields-helper.php:
|
383 |
msgid "WP Image title"
|
384 |
msgstr ""
|
385 |
|
386 |
-
#: includes/admin/class-modula-cpt-fields-helper.php:
|
387 |
-
#: includes/admin/class-modula-cpt-fields-helper.php:
|
388 |
msgid "WP Image description"
|
389 |
msgstr ""
|
390 |
|
391 |
-
#: includes/admin/class-modula-cpt-fields-helper.php:
|
392 |
msgid "Default Caption"
|
393 |
msgstr ""
|
394 |
|
395 |
-
#: includes/admin/class-modula-cpt-fields-helper.php:
|
396 |
msgid ""
|
397 |
"If you leave the caption blank Modula will get the title from WordPress "
|
398 |
"image by default."
|
399 |
msgstr ""
|
400 |
|
401 |
-
#: includes/admin/class-modula-cpt-fields-helper.php:
|
402 |
msgid "WP Image caption"
|
403 |
msgstr ""
|
404 |
|
405 |
-
#: includes/admin/class-modula-cpt-fields-helper.php:
|
406 |
msgid "Hide Title"
|
407 |
msgstr ""
|
408 |
|
409 |
-
#: includes/admin/class-modula-cpt-fields-helper.php:
|
410 |
msgid "Hide image titles from your gallery."
|
411 |
msgstr ""
|
412 |
|
413 |
-
#: includes/admin/class-modula-cpt-fields-helper.php:
|
414 |
msgid "Hide Caption"
|
415 |
msgstr ""
|
416 |
|
417 |
-
#: includes/admin/class-modula-cpt-fields-helper.php:
|
418 |
msgid "Hide image captions from your gallery."
|
419 |
msgstr ""
|
420 |
|
421 |
-
#: includes/admin/class-modula-cpt-fields-helper.php:
|
422 |
msgid "Title Font Size"
|
423 |
msgstr ""
|
424 |
|
425 |
-
#: includes/admin/class-modula-cpt-fields-helper.php:
|
426 |
msgid "The title font size in pixels (set to 0 to use the theme defaults)."
|
427 |
msgstr ""
|
428 |
|
429 |
-
#: includes/admin/class-modula-cpt-fields-helper.php:
|
430 |
msgid "Caption Font Size"
|
431 |
msgstr ""
|
432 |
|
433 |
-
#: includes/admin/class-modula-cpt-fields-helper.php:
|
434 |
msgid "The caption font size in pixels (set to 0 to use theme defaults)."
|
435 |
msgstr ""
|
436 |
|
437 |
-
#: includes/admin/class-modula-cpt-fields-helper.php:
|
438 |
msgid "Add Twitter Icon"
|
439 |
msgstr ""
|
440 |
|
441 |
-
#: includes/admin/class-modula-cpt-fields-helper.php:
|
442 |
msgid "Add Facebook Icon"
|
443 |
msgstr ""
|
444 |
|
445 |
-
#: includes/admin/class-modula-cpt-fields-helper.php:
|
446 |
msgid "Add LinkedIn Icon"
|
447 |
msgstr ""
|
448 |
|
449 |
-
#: includes/admin/class-modula-cpt-fields-helper.php:
|
450 |
msgid "Add Pinterest Icon"
|
451 |
msgstr ""
|
452 |
|
453 |
-
#: includes/admin/class-modula-cpt-fields-helper.php:
|
454 |
msgid "Color of social sharing icons"
|
455 |
msgstr ""
|
456 |
|
457 |
-
#: includes/admin/class-modula-cpt-fields-helper.php:
|
458 |
msgid "Scale"
|
459 |
msgstr ""
|
460 |
|
461 |
-
#: includes/admin/class-modula-cpt-fields-helper.php:
|
462 |
msgid ""
|
463 |
"Choose a value below 100% for a zoom-in effect. Choose a value over 100% "
|
464 |
"for a zoom-out effect"
|
465 |
msgstr ""
|
466 |
|
467 |
-
#: includes/admin/class-modula-cpt-fields-helper.php:
|
468 |
msgid "Select your preferred hover effect"
|
469 |
msgstr ""
|
470 |
|
471 |
-
#: includes/admin/class-modula-cpt-fields-helper.php:
|
472 |
msgid "Border Size"
|
473 |
msgstr ""
|
474 |
|
475 |
-
#: includes/admin/class-modula-cpt-fields-helper.php:
|
476 |
msgid "Set the border size of images in your gallrey."
|
477 |
msgstr ""
|
478 |
|
479 |
-
#: includes/admin/class-modula-cpt-fields-helper.php:
|
480 |
msgid "Border Radius"
|
481 |
msgstr ""
|
482 |
|
483 |
-
#: includes/admin/class-modula-cpt-fields-helper.php:
|
484 |
msgid "Set the radius of the image borders in this gallery."
|
485 |
msgstr ""
|
486 |
|
487 |
-
#: includes/admin/class-modula-cpt-fields-helper.php:
|
488 |
msgid "Border Color"
|
489 |
msgstr ""
|
490 |
|
491 |
-
#: includes/admin/class-modula-cpt-fields-helper.php:
|
492 |
msgid "Set the color of your image borders in this gallery."
|
493 |
msgstr ""
|
494 |
|
495 |
-
#: includes/admin/class-modula-cpt-fields-helper.php:
|
496 |
msgid "Shadow Size"
|
497 |
msgstr ""
|
498 |
|
499 |
-
#: includes/admin/class-modula-cpt-fields-helper.php:
|
500 |
msgid "Set the size of image shadows in this gallery."
|
501 |
msgstr ""
|
502 |
|
503 |
-
#: includes/admin/class-modula-cpt-fields-helper.php:
|
504 |
msgid "Shadow Color"
|
505 |
msgstr ""
|
506 |
|
507 |
-
#: includes/admin/class-modula-cpt-fields-helper.php:
|
508 |
msgid "Set the color of image shadows in this gallery"
|
509 |
msgstr ""
|
510 |
|
511 |
-
#: includes/admin/class-modula-cpt-fields-helper.php:
|
512 |
-
#: includes/admin/class-modula-cpt-fields-helper.php:
|
513 |
msgid "Lazy Load"
|
514 |
msgstr ""
|
515 |
|
516 |
-
#: includes/admin/class-modula-cpt-fields-helper.php:
|
517 |
-
#: includes/admin/class-modula-cpt-fields-helper.php:
|
518 |
msgid "Enable/Disable lazy load"
|
519 |
msgstr ""
|
520 |
|
521 |
-
#: includes/admin/class-modula-cpt-fields-helper.php:
|
522 |
msgid "Custom responsiveness"
|
523 |
msgstr ""
|
524 |
|
525 |
-
#: includes/admin/class-modula-cpt-fields-helper.php:
|
526 |
msgid ""
|
527 |
"Force the gallery to show a certain number of column on tablet/mobile "
|
528 |
"devices"
|
529 |
msgstr ""
|
530 |
|
531 |
-
#: includes/admin/class-modula-cpt-fields-helper.php:
|
532 |
msgid "Tablet Columns"
|
533 |
msgstr ""
|
534 |
|
535 |
-
#: includes/admin/class-modula-cpt-fields-helper.php:
|
536 |
msgid "Use this slider to adjust the number of columns for gallery on tablets."
|
537 |
msgstr ""
|
538 |
|
539 |
-
#: includes/admin/class-modula-cpt-fields-helper.php:
|
540 |
msgid "Mobile Columns"
|
541 |
msgstr ""
|
542 |
|
543 |
-
#: includes/admin/class-modula-cpt-fields-helper.php:
|
544 |
msgid ""
|
545 |
"Use this slider to adjust the number of columns for gallery on mobile "
|
546 |
"devices."
|
547 |
msgstr ""
|
548 |
|
549 |
-
#: includes/admin/class-modula-cpt-fields-helper.php:
|
550 |
msgid "Custom css"
|
551 |
msgstr ""
|
552 |
|
553 |
-
#: includes/admin/class-modula-cpt-fields-helper.php:
|
554 |
msgid "Just write the code without using the <style></style> tags"
|
555 |
msgstr ""
|
556 |
|
@@ -725,6 +721,7 @@ msgid "Get in touch"
|
|
725 |
msgstr ""
|
726 |
|
727 |
#: includes/admin/class-modula-field-builder.php:331
|
|
|
728 |
msgid "None"
|
729 |
msgstr ""
|
730 |
|
@@ -1073,31 +1070,81 @@ msgstr ""
|
|
1073 |
msgid "All Done!"
|
1074 |
msgstr ""
|
1075 |
|
1076 |
-
#: includes/class-modula.php:
|
1077 |
msgid ""
|
1078 |
"Hey, I noticed you have created %s galleries - that's awesome! Could you "
|
1079 |
"please do me a BIG favor and give it a 5-star rating on WordPress? Just to "
|
1080 |
"help us spread the word and boost our motivation."
|
1081 |
msgstr ""
|
1082 |
|
1083 |
-
#: includes/class-modula.php:
|
1084 |
msgid "Ok, you deserve it"
|
1085 |
msgstr ""
|
1086 |
|
1087 |
-
#: includes/class-modula.php:
|
1088 |
msgid "I already did"
|
1089 |
msgstr ""
|
1090 |
|
1091 |
-
#: includes/class-modula.php:
|
1092 |
msgid "No, not good enough"
|
1093 |
msgstr ""
|
1094 |
|
1095 |
-
#: includes/class-modula.php:
|
1096 |
msgid ""
|
1097 |
"You excedeed the limit of 20 photos. You can remove an image or %supgrade "
|
1098 |
"to pro%s"
|
1099 |
msgstr ""
|
1100 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1101 |
#: includes/libraries/class-modula-review.php:22
|
1102 |
msgid ""
|
1103 |
"Hey, I noticed you have installed our plugin for %s day - that's awesome! "
|
@@ -1105,13 +1152,13 @@ msgid ""
|
|
1105 |
"WordPress? Just to help us spread the word and boost our motivation."
|
1106 |
msgstr ""
|
1107 |
|
1108 |
-
#: includes/public/class-modula-shortcode.php:
|
1109 |
-
#: includes/public/class-modula-shortcode.php:
|
1110 |
-
#: includes/public/class-modula-shortcode.php:
|
1111 |
msgid "Gallery not found."
|
1112 |
msgstr ""
|
1113 |
|
1114 |
-
#: includes/public/class-modula-shortcode.php:
|
1115 |
msgid "Image %1 of %2"
|
1116 |
msgstr ""
|
1117 |
|
2 |
# This file is distributed under the GPLv3 or later.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Modula 2.1.1\n"
|
6 |
"Report-Msgid-Bugs-To: "
|
7 |
"https://wordpress.org/support/plugin/modula-best-grid-gallery\n"
|
8 |
+
"POT-Creation-Date: 2019-06-25 13:39:31+00:00\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=utf-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
118 |
|
119 |
#: includes/admin/class-modula-cpt-fields-helper.php:35
|
120 |
#: includes/admin/class-modula-cpt-fields-helper.php:70
|
|
|
121 |
msgid "PRO"
|
122 |
msgstr ""
|
123 |
|
146 |
msgstr ""
|
147 |
|
148 |
#: includes/admin/class-modula-cpt-fields-helper.php:60
|
149 |
+
#: includes/admin/class-modula-cpt-fields-helper.php:341
|
150 |
msgid "Hover effect"
|
151 |
msgstr ""
|
152 |
|
178 |
msgid "Optimize your images"
|
179 |
msgstr ""
|
180 |
|
181 |
+
#: includes/admin/class-modula-cpt-fields-helper.php:87
|
182 |
msgid "Responsive"
|
183 |
msgstr ""
|
184 |
|
185 |
+
#: includes/admin/class-modula-cpt-fields-helper.php:88
|
186 |
msgid "Responsive Settings"
|
187 |
msgstr ""
|
188 |
|
189 |
+
#: includes/admin/class-modula-cpt-fields-helper.php:93
|
190 |
#: includes/admin/class-modula-cpt-fields-helper.php:94
|
191 |
+
msgid "Custom CSS"
|
|
|
|
|
|
|
|
|
192 |
msgstr ""
|
193 |
|
194 |
+
#: includes/admin/class-modula-cpt-fields-helper.php:105
|
195 |
msgid "Still stuck ?"
|
196 |
msgstr ""
|
197 |
|
198 |
+
#: includes/admin/class-modula-cpt-fields-helper.php:105
|
199 |
msgid "Explore our documentation"
|
200 |
msgstr ""
|
201 |
|
202 |
+
#: includes/admin/class-modula-cpt-fields-helper.php:105
|
203 |
msgid "Contact our support team."
|
204 |
msgstr ""
|
205 |
|
206 |
+
#: includes/admin/class-modula-cpt-fields-helper.php:116
|
207 |
msgid "Gallery Type"
|
208 |
msgstr ""
|
209 |
|
210 |
+
#: includes/admin/class-modula-cpt-fields-helper.php:118
|
211 |
msgid "Choose the type of gallery you want to use."
|
212 |
msgstr ""
|
213 |
|
214 |
+
#: includes/admin/class-modula-cpt-fields-helper.php:121
|
215 |
msgid "Creative Gallery"
|
216 |
msgstr ""
|
217 |
|
218 |
+
#: includes/admin/class-modula-cpt-fields-helper.php:122
|
219 |
msgid "Custom Grid"
|
220 |
msgstr ""
|
221 |
|
222 |
+
#: includes/admin/class-modula-cpt-fields-helper.php:127
|
223 |
msgid "Gutter"
|
224 |
msgstr ""
|
225 |
|
226 |
+
#: includes/admin/class-modula-cpt-fields-helper.php:129
|
227 |
msgid "Use this slider to adjust the spacing of images in your gallery."
|
228 |
msgstr ""
|
229 |
|
230 |
+
#: includes/admin/class-modula-cpt-fields-helper.php:137
|
231 |
msgid "Width"
|
232 |
msgstr ""
|
233 |
|
234 |
+
#: includes/admin/class-modula-cpt-fields-helper.php:139
|
235 |
msgid "Width of the gallery. Can be in % or pixels."
|
236 |
msgstr ""
|
237 |
|
238 |
+
#: includes/admin/class-modula-cpt-fields-helper.php:144
|
239 |
msgid "Height"
|
240 |
msgstr ""
|
241 |
|
242 |
+
#: includes/admin/class-modula-cpt-fields-helper.php:146
|
243 |
msgid "Set the height of the gallery in pixels."
|
244 |
msgstr ""
|
245 |
|
246 |
+
#: includes/admin/class-modula-cpt-fields-helper.php:151
|
247 |
msgid "Thumbnail Size"
|
248 |
msgstr ""
|
249 |
|
250 |
+
#: includes/admin/class-modula-cpt-fields-helper.php:154
|
251 |
msgid "Set the minimum width or height of the thumbnails in pixels."
|
252 |
msgstr ""
|
253 |
|
254 |
+
#: includes/admin/class-modula-cpt-fields-helper.php:158
|
255 |
msgid "Margin"
|
256 |
msgstr ""
|
257 |
|
258 |
+
#: includes/admin/class-modula-cpt-fields-helper.php:161
|
259 |
msgid "Set the margin between images in pixels."
|
260 |
msgstr ""
|
261 |
|
262 |
+
#: includes/admin/class-modula-cpt-fields-helper.php:165
|
263 |
msgid "Random factor"
|
264 |
msgstr ""
|
265 |
|
266 |
+
#: includes/admin/class-modula-cpt-fields-helper.php:167
|
267 |
msgid ""
|
268 |
"Toggle this to 0 to tune down the randomising factor on Modula's grid "
|
269 |
"algorithm."
|
270 |
msgstr ""
|
271 |
|
272 |
+
#: includes/admin/class-modula-cpt-fields-helper.php:175
|
273 |
msgid "Lightbox & Links"
|
274 |
msgstr ""
|
275 |
|
276 |
+
#: includes/admin/class-modula-cpt-fields-helper.php:177
|
277 |
msgid ""
|
278 |
"Choose your preferred lightbox style. Some styles, such as LightGallery, "
|
279 |
"allow for image downloads."
|
280 |
msgstr ""
|
281 |
|
282 |
+
#: includes/admin/class-modula-cpt-fields-helper.php:180
|
283 |
msgid "Link"
|
284 |
msgstr ""
|
285 |
|
286 |
+
#: includes/admin/class-modula-cpt-fields-helper.php:181
|
287 |
msgid "No link"
|
288 |
msgstr ""
|
289 |
|
290 |
+
#: includes/admin/class-modula-cpt-fields-helper.php:182
|
291 |
msgid "Direct link to image"
|
292 |
msgstr ""
|
293 |
|
294 |
+
#: includes/admin/class-modula-cpt-fields-helper.php:183
|
295 |
msgid "Attachment page"
|
296 |
msgstr ""
|
297 |
|
298 |
+
#: includes/admin/class-modula-cpt-fields-helper.php:185
|
299 |
msgid "Lightboxes"
|
300 |
msgstr ""
|
301 |
|
302 |
+
#: includes/admin/class-modula-cpt-fields-helper.php:186
|
303 |
msgid "Lightbox2"
|
304 |
msgstr ""
|
305 |
|
306 |
+
#: includes/admin/class-modula-cpt-fields-helper.php:190
|
307 |
msgid "Lightboxes with PRO license"
|
308 |
msgstr ""
|
309 |
|
310 |
+
#: includes/admin/class-modula-cpt-fields-helper.php:192
|
311 |
msgid "Magnific popup"
|
312 |
msgstr ""
|
313 |
|
314 |
+
#: includes/admin/class-modula-cpt-fields-helper.php:193
|
315 |
msgid "PrettyPhoto"
|
316 |
msgstr ""
|
317 |
|
318 |
+
#: includes/admin/class-modula-cpt-fields-helper.php:194
|
319 |
msgid "FancyBox"
|
320 |
msgstr ""
|
321 |
|
322 |
+
#: includes/admin/class-modula-cpt-fields-helper.php:195
|
323 |
msgid "SwipeBox"
|
324 |
msgstr ""
|
325 |
|
326 |
+
#: includes/admin/class-modula-cpt-fields-helper.php:196
|
327 |
msgid "LightGallery"
|
328 |
msgstr ""
|
329 |
|
330 |
+
#: includes/admin/class-modula-cpt-fields-helper.php:202
|
331 |
msgid "Show lightbox navigation"
|
332 |
msgstr ""
|
333 |
|
334 |
+
#: includes/admin/class-modula-cpt-fields-helper.php:208
|
335 |
msgid "Show lightbox navigation on mobile"
|
336 |
msgstr ""
|
337 |
|
338 |
+
#: includes/admin/class-modula-cpt-fields-helper.php:214
|
339 |
msgid "Shuffle images"
|
340 |
msgstr ""
|
341 |
|
342 |
+
#: includes/admin/class-modula-cpt-fields-helper.php:217
|
343 |
msgid "Toggle this to ON to have the gallery shuffle on each page load"
|
344 |
msgstr ""
|
345 |
|
346 |
+
#: includes/admin/class-modula-cpt-fields-helper.php:223
|
347 |
msgid "Title Color"
|
348 |
msgstr ""
|
349 |
|
350 |
+
#: includes/admin/class-modula-cpt-fields-helper.php:225
|
351 |
msgid "Set the color of title."
|
352 |
msgstr ""
|
353 |
|
354 |
+
#: includes/admin/class-modula-cpt-fields-helper.php:230
|
355 |
msgid "Caption Color"
|
356 |
msgstr ""
|
357 |
|
358 |
+
#: includes/admin/class-modula-cpt-fields-helper.php:232
|
359 |
msgid "Set the color of captions."
|
360 |
msgstr ""
|
361 |
|
362 |
+
#: includes/admin/class-modula-cpt-fields-helper.php:237
|
363 |
msgid "Default Title"
|
364 |
msgstr ""
|
365 |
|
366 |
+
#: includes/admin/class-modula-cpt-fields-helper.php:239
|
367 |
msgid ""
|
368 |
"If you leave the title blank Modula will get the title from WordPress image "
|
369 |
"by default."
|
370 |
msgstr ""
|
371 |
|
372 |
+
#: includes/admin/class-modula-cpt-fields-helper.php:241
|
373 |
+
#: includes/admin/class-modula-cpt-fields-helper.php:252
|
374 |
msgid "No default"
|
375 |
msgstr ""
|
376 |
|
377 |
+
#: includes/admin/class-modula-cpt-fields-helper.php:242
|
378 |
+
#: includes/admin/class-modula-cpt-fields-helper.php:253
|
379 |
msgid "WP Image title"
|
380 |
msgstr ""
|
381 |
|
382 |
+
#: includes/admin/class-modula-cpt-fields-helper.php:243
|
383 |
+
#: includes/admin/class-modula-cpt-fields-helper.php:255
|
384 |
msgid "WP Image description"
|
385 |
msgstr ""
|
386 |
|
387 |
+
#: includes/admin/class-modula-cpt-fields-helper.php:248
|
388 |
msgid "Default Caption"
|
389 |
msgstr ""
|
390 |
|
391 |
+
#: includes/admin/class-modula-cpt-fields-helper.php:250
|
392 |
msgid ""
|
393 |
"If you leave the caption blank Modula will get the title from WordPress "
|
394 |
"image by default."
|
395 |
msgstr ""
|
396 |
|
397 |
+
#: includes/admin/class-modula-cpt-fields-helper.php:254
|
398 |
msgid "WP Image caption"
|
399 |
msgstr ""
|
400 |
|
401 |
+
#: includes/admin/class-modula-cpt-fields-helper.php:260
|
402 |
msgid "Hide Title"
|
403 |
msgstr ""
|
404 |
|
405 |
+
#: includes/admin/class-modula-cpt-fields-helper.php:263
|
406 |
msgid "Hide image titles from your gallery."
|
407 |
msgstr ""
|
408 |
|
409 |
+
#: includes/admin/class-modula-cpt-fields-helper.php:267
|
410 |
msgid "Hide Caption"
|
411 |
msgstr ""
|
412 |
|
413 |
+
#: includes/admin/class-modula-cpt-fields-helper.php:270
|
414 |
msgid "Hide image captions from your gallery."
|
415 |
msgstr ""
|
416 |
|
417 |
+
#: includes/admin/class-modula-cpt-fields-helper.php:274
|
418 |
msgid "Title Font Size"
|
419 |
msgstr ""
|
420 |
|
421 |
+
#: includes/admin/class-modula-cpt-fields-helper.php:279
|
422 |
msgid "The title font size in pixels (set to 0 to use the theme defaults)."
|
423 |
msgstr ""
|
424 |
|
425 |
+
#: includes/admin/class-modula-cpt-fields-helper.php:283
|
426 |
msgid "Caption Font Size"
|
427 |
msgstr ""
|
428 |
|
429 |
+
#: includes/admin/class-modula-cpt-fields-helper.php:288
|
430 |
msgid "The caption font size in pixels (set to 0 to use theme defaults)."
|
431 |
msgstr ""
|
432 |
|
433 |
+
#: includes/admin/class-modula-cpt-fields-helper.php:294
|
434 |
msgid "Add Twitter Icon"
|
435 |
msgstr ""
|
436 |
|
437 |
+
#: includes/admin/class-modula-cpt-fields-helper.php:301
|
438 |
msgid "Add Facebook Icon"
|
439 |
msgstr ""
|
440 |
|
441 |
+
#: includes/admin/class-modula-cpt-fields-helper.php:308
|
442 |
msgid "Add LinkedIn Icon"
|
443 |
msgstr ""
|
444 |
|
445 |
+
#: includes/admin/class-modula-cpt-fields-helper.php:315
|
446 |
msgid "Add Pinterest Icon"
|
447 |
msgstr ""
|
448 |
|
449 |
+
#: includes/admin/class-modula-cpt-fields-helper.php:321
|
450 |
msgid "Color of social sharing icons"
|
451 |
msgstr ""
|
452 |
|
453 |
+
#: includes/admin/class-modula-cpt-fields-helper.php:330
|
454 |
msgid "Scale"
|
455 |
msgstr ""
|
456 |
|
457 |
+
#: includes/admin/class-modula-cpt-fields-helper.php:331
|
458 |
msgid ""
|
459 |
"Choose a value below 100% for a zoom-in effect. Choose a value over 100% "
|
460 |
"for a zoom-out effect"
|
461 |
msgstr ""
|
462 |
|
463 |
+
#: includes/admin/class-modula-cpt-fields-helper.php:342
|
464 |
msgid "Select your preferred hover effect"
|
465 |
msgstr ""
|
466 |
|
467 |
+
#: includes/admin/class-modula-cpt-fields-helper.php:350
|
468 |
msgid "Border Size"
|
469 |
msgstr ""
|
470 |
|
471 |
+
#: includes/admin/class-modula-cpt-fields-helper.php:352
|
472 |
msgid "Set the border size of images in your gallrey."
|
473 |
msgstr ""
|
474 |
|
475 |
+
#: includes/admin/class-modula-cpt-fields-helper.php:359
|
476 |
msgid "Border Radius"
|
477 |
msgstr ""
|
478 |
|
479 |
+
#: includes/admin/class-modula-cpt-fields-helper.php:361
|
480 |
msgid "Set the radius of the image borders in this gallery."
|
481 |
msgstr ""
|
482 |
|
483 |
+
#: includes/admin/class-modula-cpt-fields-helper.php:368
|
484 |
msgid "Border Color"
|
485 |
msgstr ""
|
486 |
|
487 |
+
#: includes/admin/class-modula-cpt-fields-helper.php:370
|
488 |
msgid "Set the color of your image borders in this gallery."
|
489 |
msgstr ""
|
490 |
|
491 |
+
#: includes/admin/class-modula-cpt-fields-helper.php:375
|
492 |
msgid "Shadow Size"
|
493 |
msgstr ""
|
494 |
|
495 |
+
#: includes/admin/class-modula-cpt-fields-helper.php:377
|
496 |
msgid "Set the size of image shadows in this gallery."
|
497 |
msgstr ""
|
498 |
|
499 |
+
#: includes/admin/class-modula-cpt-fields-helper.php:384
|
500 |
msgid "Shadow Color"
|
501 |
msgstr ""
|
502 |
|
503 |
+
#: includes/admin/class-modula-cpt-fields-helper.php:386
|
504 |
msgid "Set the color of image shadows in this gallery"
|
505 |
msgstr ""
|
506 |
|
507 |
+
#: includes/admin/class-modula-cpt-fields-helper.php:393
|
508 |
+
#: includes/admin/class-modula-cpt-fields-helper.php:442
|
509 |
msgid "Lazy Load"
|
510 |
msgstr ""
|
511 |
|
512 |
+
#: includes/admin/class-modula-cpt-fields-helper.php:394
|
513 |
+
#: includes/admin/class-modula-cpt-fields-helper.php:443
|
514 |
msgid "Enable/Disable lazy load"
|
515 |
msgstr ""
|
516 |
|
517 |
+
#: includes/admin/class-modula-cpt-fields-helper.php:402
|
518 |
msgid "Custom responsiveness"
|
519 |
msgstr ""
|
520 |
|
521 |
+
#: includes/admin/class-modula-cpt-fields-helper.php:403
|
522 |
msgid ""
|
523 |
"Force the gallery to show a certain number of column on tablet/mobile "
|
524 |
"devices"
|
525 |
msgstr ""
|
526 |
|
527 |
+
#: includes/admin/class-modula-cpt-fields-helper.php:409
|
528 |
msgid "Tablet Columns"
|
529 |
msgstr ""
|
530 |
|
531 |
+
#: includes/admin/class-modula-cpt-fields-helper.php:411
|
532 |
msgid "Use this slider to adjust the number of columns for gallery on tablets."
|
533 |
msgstr ""
|
534 |
|
535 |
+
#: includes/admin/class-modula-cpt-fields-helper.php:419
|
536 |
msgid "Mobile Columns"
|
537 |
msgstr ""
|
538 |
|
539 |
+
#: includes/admin/class-modula-cpt-fields-helper.php:421
|
540 |
msgid ""
|
541 |
"Use this slider to adjust the number of columns for gallery on mobile "
|
542 |
"devices."
|
543 |
msgstr ""
|
544 |
|
545 |
+
#: includes/admin/class-modula-cpt-fields-helper.php:431
|
546 |
msgid "Custom css"
|
547 |
msgstr ""
|
548 |
|
549 |
+
#: includes/admin/class-modula-cpt-fields-helper.php:434
|
550 |
msgid "Just write the code without using the <style></style> tags"
|
551 |
msgstr ""
|
552 |
|
721 |
msgstr ""
|
722 |
|
723 |
#: includes/admin/class-modula-field-builder.php:331
|
724 |
+
#: includes/elementor/widgets/class-modula-elementor.php:66
|
725 |
msgid "None"
|
726 |
msgstr ""
|
727 |
|
1070 |
msgid "All Done!"
|
1071 |
msgstr ""
|
1072 |
|
1073 |
+
#: includes/class-modula.php:63
|
1074 |
msgid ""
|
1075 |
"Hey, I noticed you have created %s galleries - that's awesome! Could you "
|
1076 |
"please do me a BIG favor and give it a 5-star rating on WordPress? Just to "
|
1077 |
"help us spread the word and boost our motivation."
|
1078 |
msgstr ""
|
1079 |
|
1080 |
+
#: includes/class-modula.php:64 includes/libraries/class-modula-review.php:23
|
1081 |
msgid "Ok, you deserve it"
|
1082 |
msgstr ""
|
1083 |
|
1084 |
+
#: includes/class-modula.php:65 includes/libraries/class-modula-review.php:24
|
1085 |
msgid "I already did"
|
1086 |
msgstr ""
|
1087 |
|
1088 |
+
#: includes/class-modula.php:66 includes/libraries/class-modula-review.php:25
|
1089 |
msgid "No, not good enough"
|
1090 |
msgstr ""
|
1091 |
|
1092 |
+
#: includes/class-modula.php:139
|
1093 |
msgid ""
|
1094 |
"You excedeed the limit of 20 photos. You can remove an image or %supgrade "
|
1095 |
"to pro%s"
|
1096 |
msgstr ""
|
1097 |
|
1098 |
+
#: includes/duplicator/class-modula-duplicator.php:24
|
1099 |
+
msgid "Duplicate this gallery"
|
1100 |
+
msgstr ""
|
1101 |
+
|
1102 |
+
#: includes/duplicator/class-modula-duplicator.php:24
|
1103 |
+
msgid "Duplicate gallery"
|
1104 |
+
msgstr ""
|
1105 |
+
|
1106 |
+
#: includes/duplicator/modula-duplicator-functions.php:6
|
1107 |
+
msgid "No gallery to duplicate has been supplied!"
|
1108 |
+
msgstr ""
|
1109 |
+
|
1110 |
+
#: includes/duplicator/modula-duplicator-functions.php:48
|
1111 |
+
msgid "Copy creation failed, could not find original:"
|
1112 |
+
msgstr ""
|
1113 |
+
|
1114 |
+
#: includes/duplicator/modula-duplicator-functions.php:111
|
1115 |
+
msgid "Untitled"
|
1116 |
+
msgstr ""
|
1117 |
+
|
1118 |
+
#: includes/duplicator/modula-duplicator-functions.php:113
|
1119 |
+
msgid "Copy of "
|
1120 |
+
msgstr ""
|
1121 |
+
|
1122 |
+
#: includes/elementor/class-modula-elementor-check.php:79
|
1123 |
+
#: includes/elementor/class-modula-elementor-check.php:102
|
1124 |
+
msgid "\"%1$s\" requires \"%2$s\" version %3$s or greater."
|
1125 |
+
msgstr ""
|
1126 |
+
|
1127 |
+
#: includes/elementor/class-modula-elementor-check.php:80
|
1128 |
+
#: includes/elementor/class-modula-elementor-check.php:103
|
1129 |
+
msgid "Modula Elementor widget"
|
1130 |
+
msgstr ""
|
1131 |
+
|
1132 |
+
#: includes/elementor/class-modula-elementor-check.php:81
|
1133 |
+
msgid "Elementor"
|
1134 |
+
msgstr ""
|
1135 |
+
|
1136 |
+
#: includes/elementor/class-modula-elementor-check.php:104
|
1137 |
+
msgid "PHP"
|
1138 |
+
msgstr ""
|
1139 |
+
|
1140 |
+
#: includes/elementor/widgets/class-modula-elementor.php:35
|
1141 |
+
msgid "Content"
|
1142 |
+
msgstr ""
|
1143 |
+
|
1144 |
+
#: includes/elementor/widgets/class-modula-elementor.php:43
|
1145 |
+
msgid "Select Gallery"
|
1146 |
+
msgstr ""
|
1147 |
+
|
1148 |
#: includes/libraries/class-modula-review.php:22
|
1149 |
msgid ""
|
1150 |
"Hey, I noticed you have installed our plugin for %s day - that's awesome! "
|
1152 |
"WordPress? Just to help us spread the word and boost our motivation."
|
1153 |
msgstr ""
|
1154 |
|
1155 |
+
#: includes/public/class-modula-shortcode.php:51
|
1156 |
+
#: includes/public/class-modula-shortcode.php:73
|
1157 |
+
#: includes/public/class-modula-shortcode.php:100
|
1158 |
msgid "Gallery not found."
|
1159 |
msgstr ""
|
1160 |
|
1161 |
+
#: includes/public/class-modula-shortcode.php:116
|
1162 |
msgid "Image %1 of %2"
|
1163 |
msgstr ""
|
1164 |
|