Version Description
Download this release
Release Info
Developer | nko |
Plugin | Visual Portfolio, Photo Gallery & Post Grid |
Version | 1.8.2 |
Comparing to | |
See all releases |
Code changes from version 1.8.1 to 1.8.2
- assets/admin/css/style.min.css +1 -1
- assets/admin/js/mce-dropdown.min.js +1 -1
- assets/admin/js/script.min.js +1 -1
- assets/admin/js/vc-frontend.min.js +1 -1
- assets/css/style.min.css +1 -1
- assets/js/script-preview.min.js +1 -1
- assets/js/script.min.js +1 -1
- assets/vendor/conditionize/conditionize.min.js +2 -2
- assets/vendor/conditionize/conditionize.min.js.map +1 -1
- class-visual-portfolio.php +3 -3
- classes/class-admin.php +11 -3
- languages/visual-portfolio.pot +125 -125
- readme.md +6 -1
assets/admin/css/style.min.css
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
/*!
|
2 |
* Name : Visual Portfolio
|
3 |
-
* Version : 1.8.
|
4 |
* Author : nK https://nkdev.info
|
5 |
*/.dashicons-visual-portfolio,.dashicons-visual-portfolio-gray,.mce-widget .mce-i-visual-portfolio{background-image:url("../images/icon.svg");background-repeat:no-repeat;background-position:center center;background-size:15px;opacity:.6}.mce-widget .mce-i-visual-portfolio{background-image:url("../images/icon-mce.svg");opacity:1}.menu-top.current .dashicons-visual-portfolio,.menu-top:hover .dashicons-visual-portfolio,.wp-has-current-submenu .dashicons-visual-portfolio{opacity:1}.dashicons-visual-portfolio-gray,.mce-i-visual-portfolio-gray{background-image:url("../images/icon-gray.svg")}.vc_element-icon[data-is-container="true"].icon-visual-portfolio,.vc_element-icon.icon-visual-portfolio{background-position:50% 50%}.vc_element-icon.icon-visual-portfolio,.vc_control-visual-portfolio{position:relative;overflow:hidden;background-image:url("../images/icon-vc.png");background-position:50% 50%;background-size:cover;border-radius:3px}.vc_add-element-container .icon-visual-portfolio{position:absolute}.vc_control-visual-portfolio{display:inline-block;width:18px;height:18px;margin:0 2px;cursor:pointer}.vc_controls-row .vc_control-visual-portfolio{float:right;margin:4px}.vc_control-visual-portfolio-overlay{position:absolute;top:0;right:0;bottom:0;left:0;z-index:2}.vp-row{display:flex;flex:0 1 auto;flex-direction:row;flex-wrap:wrap;box-sizing:border-box;margin-right:-15px;margin-left:-15px}.vp-col-1,.vp-col-2,.vp-col-3,.vp-col-4,.vp-col-5,.vp-col-6,.vp-col-7,.vp-col-8,.vp-col-9,.vp-col-10,.vp-col-11,.vp-col-12{flex:0 0 auto;box-sizing:border-box;padding-right:15px;padding-left:15px}.vp-col-1{flex-basis:8.33333%;max-width:8.33333%}.vp-col-2{flex-basis:16.66667%;max-width:16.66667%}.vp-col-3{flex-basis:25%;max-width:25%}.vp-col-4{flex-basis:33.33333%;max-width:33.33333%}.vp-col-5{flex-basis:41.66667%;max-width:41.66667%}.vp-col-6{flex-basis:50%;max-width:50%}.vp-col-7{flex-basis:58.33333%;max-width:58.33333%}.vp-col-8{flex-basis:66.66667%;max-width:66.66667%}.vp-col-9{flex-basis:75%;max-width:75%}.vp-col-10{flex-basis:83.33333%;max-width:83.33333%}.vp-col-11{flex-basis:91.66667%;max-width:91.66667%}.vp-col-12{flex-basis:100%;max-width:100%}.vp-col-clearfix{flex-basis:100%;max-width:100%}.vp-col-clearfix .vp-control-html{margin-bottom:0}.post-type-vp_lists.post-php,.post-type-vp_lists.post-new-php{background-color:#edeff0}.post-type-vp_lists.post-php #wpcontent,.post-type-vp_lists.post-new-php #wpcontent{padding-left:0}.post-type-vp_lists.post-php .wrap,.post-type-vp_lists.post-new-php .wrap{margin:0}.post-type-vp_lists.post-php #poststuff,.post-type-vp_lists.post-new-php #poststuff{padding-top:0}.post-type-vp_lists.post-php #wpfooter,.post-type-vp_lists.post-new-php #wpfooter{display:none}.post-type-vp_lists.post-php #wpbody-content,.post-type-vp_lists.post-new-php #wpbody-content{padding-bottom:0}.post-type-vp_lists.post-php #post-body.columns-2 #postbox-container-1,.post-type-vp_lists.post-new-php #post-body.columns-2 #postbox-container-1{position:fixed;top:0;right:300px;bottom:0;width:300px;overflow:auto;-webkit-overflow-scrolling:touch}html.wp-toolbar .post-type-vp_lists.post-php #post-body.columns-2 #postbox-container-1,html.wp-toolbar .post-type-vp_lists.post-new-php #post-body.columns-2 #postbox-container-1{top:32px}@media only screen and (max-width: 850px){.post-type-vp_lists.post-php #post-body.columns-2 #postbox-container-1,.post-type-vp_lists.post-new-php #post-body.columns-2 #postbox-container-1{position:relative;top:auto;right:auto;bottom:auto;width:100%;margin-right:0}}.post-type-vp_lists.post-php #postbox-container-2,.post-type-vp_lists.post-new-php #postbox-container-2{position:absolute;top:0;right:0;bottom:0;left:0;width:calc(100% - 300px);min-height:calc(100vh - 32px);overflow:auto;-webkit-overflow-scrolling:touch}@media only screen and (max-width: 850px){.post-type-vp_lists.post-php #postbox-container-2,.post-type-vp_lists.post-new-php #postbox-container-2{right:0;bottom:auto;width:100%}}.post-type-vp_lists.post-php .columns-2 #side-sortables,.post-type-vp_lists.post-new-php .columns-2 #side-sortables{width:auto}.post-type-vp_lists.post-php .notice,.post-type-vp_lists.post-new-php .notice{margin:0;margin-right:300px;margin-bottom:1px}@media only screen and (max-width: 850px){.post-type-vp_lists.post-php .notice,.post-type-vp_lists.post-new-php .notice{margin-right:0}}.post-type-vp_lists.post-php #poststuff .postbox,.post-type-vp_lists.post-new-php #poststuff .postbox{margin-bottom:0;border-color:#e2e4e7;border-top:0;border-right:0}.post-type-vp_lists.post-php #poststuff .postbox>h2,.post-type-vp_lists.post-new-php #poststuff .postbox>h2{padding:15px;border-bottom:none}.post-type-vp_lists.post-php #poststuff .postbox>.handlediv,.post-type-vp_lists.post-new-php #poststuff .postbox>.handlediv{height:50px}.post-type-vp_lists.post-php #poststuff .postbox>.inside,.post-type-vp_lists.post-new-php #poststuff .postbox>.inside{padding:15px;padding-top:0}.vp-control{display:flex;flex-wrap:wrap;align-items:center;margin-bottom:19px}.vp-control>label{width:100%;margin-bottom:5px}.vp-control>.vp-control-description{width:100%;margin:2px 0 5px;font-size:13px;font-style:italic;color:#666}.vp-control.vp-control-checkbox,.vp-control.vp-control-toggle{flex-wrap:nowrap}.vp-control.vp-control-checkbox>label,.vp-control.vp-control-toggle>label{margin-bottom:0}.vp-control.vp-control-textarea textarea{width:100%}.vp-image-picker{display:none}.vp-image-picker,.vp-image-picker *{box-sizing:border-box}.vp-image-picker+ul.thumbnails.image_picker_selector li{margin:0 10px 10px 0}.vp-image-picker+ul.thumbnails.image_picker_selector li .thumbnail{padding:0;cursor:pointer;border:none}.vp-image-picker+ul.thumbnails.image_picker_selector li .thumbnail img{display:block;border:2px solid transparent}.vp-image-picker+ul.thumbnails.image_picker_selector li .thumbnail.selected{background-color:transparent}.vp-image-picker+ul.thumbnails.image_picker_selector li .thumbnail.selected img{border-color:#0073aa}.vp-image-picker+ul.thumbnails.image_picker_selector .group_title{padding-top:5px;padding-left:5px;font-weight:500}.vp-control-range [type="number"]{width:50px;margin-left:10px}.vp-control-range [type="range"]{flex:1;width:100%;padding:0;background:transparent;-webkit-appearance:none;-moz-appearance:none;appearance:none}.vp-control-range [type="range"]::-webkit-slider-thumb{box-sizing:border-box;width:18px;height:18px;margin-top:-7px;cursor:pointer;background:#555d66;background-clip:padding-box;border:4px solid transparent;border-radius:50%;-webkit-appearance:none;appearance:none}.vp-control-range [type="range"]::-moz-range-thumb{box-sizing:border-box;width:18px;height:18px;cursor:pointer;background:#555d66;background-clip:padding-box;border:4px solid transparent;border-radius:50%}.vp-control-range [type="range"]::-ms-thumb{box-sizing:border-box;width:14px;height:14px;margin-top:0;cursor:pointer;background:#555d66;background-clip:padding-box;border:2px solid transparent;border-radius:50%}.vp-control-range [type="range"]:focus{outline:none}.vp-control-range [type="range"]:focus::-webkit-slider-thumb{color:#191e23;background-color:#fff;outline:2px solid transparent;outline-offset:-2px;box-shadow:inset 0 0 0 1px #6c7781, inset 0 0 0 2px #fff}.vp-control-range [type="range"]:focus::-moz-range-thumb{color:#191e23;background-color:#fff;outline:2px solid transparent;outline-offset:-2px;box-shadow:inset 0 0 0 1px #6c7781, inset 0 0 0 2px #fff}.vp-control-range [type="range"]:focus::-ms-thumb{color:#191e23;background-color:#fff;outline:2px solid transparent;outline-offset:-2px;box-shadow:inset 0 0 0 1px #6c7781, inset 0 0 0 2px #fff}.vp-control-range [type="range"]::-webkit-slider-runnable-track{height:3px;margin-top:-4px;cursor:pointer;background:#e2e4e7;border-radius:1.5px}.vp-control-range [type="range"]::-moz-range-track{height:3px;cursor:pointer;background:#e2e4e7;border-radius:1.5px}.vp-control-range [type="range"]::-ms-track{height:3px;margin-top:-4px;color:transparent;cursor:pointer;background:#e2e4e7;border-color:transparent;border-radius:1.5px}.vp-control-toggle,.vp-control-toggle *{box-sizing:border-box}.vp-control-toggle .vp-toggle{position:relative}.vp-control-toggle .vp-toggle .vp-toggle__track{content:"";display:inline-block;box-sizing:border-box;width:36px;height:18px;vertical-align:top;background-color:#fff;border:2px solid #6c7781;border-radius:9px;transition:background .2s ease}.vp-control-toggle .vp-toggle .vp-toggle__track::after{content:"";position:absolute;display:block;top:50%;right:5px;width:3px;height:3px;margin-top:-3px;border:1.5px solid #6c7781;border-radius:3px}.vp-control-toggle .vp-toggle:hover .vp-toggle__track{background-color:#e2e4e7}.vp-control-toggle .vp-toggle [type="checkbox"]:checked ~ .vp-toggle__track{background-color:#33b3db;border:2px solid #33b3db}.vp-control-toggle .vp-toggle [type="checkbox"]:checked ~ .vp-toggle__track::after{top:50%;right:auto;left:8px;width:0;height:5px;margin-top:-3px;border:0;border-right:2px solid #fff;border-radius:0}.vp-control-toggle .vp-toggle .vp-toggle__thumb{position:absolute;display:block;top:4px;left:4px;width:10px;height:10px;background-color:#6c7781;border:5px solid #6c7781;border-radius:50%;transition:-webkit-transform .1s ease;transition:transform .1s ease;transition:transform .1s ease, -webkit-transform .1s ease}.vp-control-toggle .vp-toggle [type="checkbox"]:focus ~ .vp-toggle__track{box-shadow:0 0 0 2px #fff, 0 0 0 3px #6c7781}.vp-control-toggle .vp-toggle [type="checkbox"]:checked ~ .vp-toggle__thumb{background-color:#fff;border-width:0;-webkit-transform:translateX(18px);transform:translateX(18px)}.vp-control-toggle .vp-toggle [type="checkbox"]{position:absolute;top:0;left:0;width:100%;height:100%;padding:0;margin:0;opacity:0;z-index:1}.vp-control-image-dropdown{position:relative;display:flex;align-items:center;width:100%;padding:5px 7px;cursor:pointer;background-color:#fff;border:1px solid #ddd;box-shadow:inset 0 1px 2px rgba(0,0,0,0.07)}.vp-control-image-dropdown,.vp-control-image-dropdown *{box-sizing:border-box}.vp-control-image-dropdown::before{content:"";position:absolute;display:block;top:50%;right:6px;width:0;height:0;margin-top:-2px;border-color:#888 transparent transparent transparent;border-style:solid;border-width:5px 4px 0 4px}.vp-control-image-dropdown.active::before{border-color:transparent transparent #888 transparent;border-width:0 4px 5px 4px}.vp-control-image-dropdown .vp-control-image-dropdown__preview{display:block;flex:0 0 auto;width:32px}.vp-control-image-dropdown .vp-control-image-dropdown__preview img{display:block;width:100%;height:auto}.vp-control-image-dropdown .vp-control-image-dropdown__title{flex:1;padding-left:10px}.vp-control-image-dropdown .vp-control-image-dropdown__content{position:absolute;display:none;top:100%;left:0;width:100%;max-width:285px;margin-top:7px;margin-left:-1px;cursor:default;background-color:#fff;border:1px solid #e5e5e5;box-shadow:0 1px 1px rgba(0,0,0,0.04);z-index:1}.vp-control-image-dropdown .vp-control-image-dropdown__content>div{width:100%;max-height:250px;padding:4px;overflow:auto}.vp-control-image-dropdown .vp-control-image-dropdown__content::before{content:"";position:absolute;display:block;top:-5px;left:10px;width:0;height:0;border-right:5px solid transparent;border-bottom:5px solid #e5e5e5;border-left:5px solid transparent}.vp-control-image-dropdown .vp-control-image-dropdown__content::after{content:"";position:absolute;display:block;top:-7px;right:0;left:0;height:7px}.vp-control-image-dropdown .vp-control-image-dropdown__content .vp-image-picker+ul.thumbnails.image_picker_selector,.vp-control-image-dropdown .vp-control-image-dropdown__content .vp-image-picker+ul.thumbnails.image_picker_selector .group>ul{display:flex;flex-wrap:wrap}.vp-control-image-dropdown .vp-control-image-dropdown__content .vp-image-picker+ul.thumbnails.image_picker_selector li{display:block;flex:0 0 25%;float:none;max-width:25%;margin:0}.vp-control-image-dropdown .vp-control-image-dropdown__content .vp-image-picker+ul.thumbnails.image_picker_selector li.group,.vp-control-image-dropdown .vp-control-image-dropdown__content .vp-image-picker+ul.thumbnails.image_picker_selector li.group_title{flex:0 0 100%;max-width:100%}.vp-control-image-dropdown .vp-control-image-dropdown__content .vp-image-picker+ul.thumbnails.image_picker_selector li .thumbnail{padding:3px}.vp-control-image-dropdown .vp-control-image-dropdown__content .vp-image-picker+ul.thumbnails.image_picker_selector li img{width:100%;height:auto}.vp-control-image-dropdown.active .vp-control-image-dropdown__content{display:block}.vp-oembed-preview{position:relative;width:100%;padding-top:56.25%;color:#a2a2a2;background-color:#f1f1f1;border:1px solid #e8e8e8}.vp-oembed-preview::after{content:"\f126";position:absolute;display:block;top:50%;left:50%;width:20px;height:20px;margin-top:-10px;margin-left:-10px;font-family:dashicons;font-size:20px;font-style:normal;font-weight:400;line-height:1;text-align:center;text-decoration:inherit;vertical-align:top;z-index:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.vp-oembed-preview>iframe{position:absolute;top:0;left:0;width:100%;height:100%;z-index:2}.vp-portfolio__thumbnail{position:relative;display:block;max-width:70px;padding-top:100%;overflow:hidden;border-radius:3px}.vp-portfolio__thumbnail img{position:absolute;display:block;top:0;left:0;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.vp-portfolio__thumbnail:empty{background-color:#f1f1f1;border:1px solid #e8e8e8}.vp-portfolio__thumbnail:empty,.vp-portfolio__thumbnail:empty:hover,.vp-portfolio__thumbnail:empty:active,.vp-portfolio__thumbnail:empty:focus{color:#a2a2a2}.vp-portfolio__thumbnail:empty::after{content:"\f128";position:absolute;display:block;top:50%;left:50%;width:20px;height:20px;margin-top:-10px;margin-left:-10px;font-family:dashicons;font-size:20px;font-style:normal;font-weight:400;line-height:1;text-align:center;text-decoration:inherit;vertical-align:top;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.wp-list-table th.column-portfolio_post_thumbs{width:70px}.wp-list-table th.column-vp_lists_post_shortcode{width:250px}@media screen and (max-width: 782px){.wp-list-table th.column-portfolio_post_thumbs{display:none}.wp-list-table tr:not(.inline-edit-row):not(.no-items) td.column-portfolio_post_thumbs{float:left;width:70px !important;min-width:70px}.wp-list-table tr:not(.inline-edit-row):not(.no-items) td.column-portfolio_post_thumbs::before{content:none}.wp-list-table tr:not(.inline-edit-row):not(.no-items) td.column-title{overflow:hidden;clear:right}}.vp-portfolio-list .vp-portfolio-list__icon span{display:block;width:120px;height:120px;margin:0 auto;margin-top:60px;background-size:105px}.vp-portfolio-list .vp-portfolio-list__text{text-align:center}.vp-portfolio-list .vp-portfolio-list__text p{margin-top:30px;margin-bottom:30px;font-size:15px;font-weight:500;color:#8e8e8e}.vp-portfolio-list .vp-portfolio-list__text .button-hero{display:inline-block}.vp_list_preview{padding:0 12px;margin-right:-12px;margin-left:-12px}.vp_list_preview iframe{width:100%;min-height:120px;transition:height .3s}.vp-content-source{display:flex;flex-wrap:wrap;padding-right:9px;padding-left:9px;margin-right:-15px;margin-left:-15px}.vp-content-source .vp-content-source__item{position:relative;width:70px;height:50px;padding:12px;margin:0 5px;color:#6c7781;text-align:center;cursor:pointer;border:1px solid transparent;border-radius:3px}.vp-content-source .vp-content-source__item.active,.vp-content-source .vp-content-source__item:hover{color:#555;background-color:#ecf0f4}.vp-content-source .vp-content-source__item.active{color:#fff;background-color:#6c7781;border-color:#6c7781}.vp-content-source .vp-content-source__item .vp-content-source__item-icon>span{width:24px;height:24px;margin-top:2px;font-size:24px}.vp-content-source .vp-content-source__item .vp-content-source__item-title{position:absolute;top:58%;right:8px;left:8px;font-weight:500}.vp-content-source .vp-content-source__item-content{flex:1;min-width:100%}.vp-content-source .vp-content-source__item-content>div{position:relative;display:none;padding:0 15px;padding-bottom:1px;margin-top:12px;margin-right:-9px;margin-bottom:-14px;margin-left:-9px;overflow:hidden;background-color:#f9f9fa;border-top:1px solid #eee}.vp-content-source .vp-content-source__item-content>div:empty{display:none !important}.vp-content-source .vp-content-source__item-content>div.active{display:block}.vp-select2{width:100%}.vp-select2+.select2{width:100%}.post-attributes-label+.vp-select2+.select2{margin-top:5px}.vp-select2+.select2 ul,.vp-select2+.select2 li{margin-bottom:0}.vp-select2+.select2 .select2-selection{border:1px solid #ddd;border-radius:0;box-shadow:inset 0 1px 2px rgba(0,0,0,0.07)}.vp-select2+.select2.select2-container--open .select2-selection{outline:none}.vp-select2+.select2 .select2-selection--multiple{min-height:27px}.vp-select2+.select2 .select2-selection--multiple .select2-selection__choice{padding:3px 8px;margin-top:3px;color:#fff;background-color:#6c7781;border-color:#6c7781}.vp-select2+.select2 .select2-selection--multiple .select2-selection__choice__remove{float:right;margin-right:0;margin-left:3px;color:inherit;opacity:.5}.select2-vp-container ul,.select2-vp-container li{margin-bottom:0}.select2-vp-container .select2-dropdown{border-color:#ddd}.select2-vp-container .select2-search--dropdown .select2-search__field{padding:3px 4px;border:1px solid #ddd;outline:none;box-shadow:none}.select2-vp-container .select2-results__option[aria-selected="true"]{background-color:#efeeee}.select2-vp-container .select2-results__option--highlighted[aria-selected]{background-color:#33b3db}.vp-select2-ajax__result{display:flex;flex:0 1 auto;flex-direction:row;flex-wrap:wrap}.vp-select2-ajax__result .vp-select2-ajax__result-img{position:relative;flex:0 0 35px;background-color:rgba(0,0,0,0.1);background-position:center center;background-size:cover;border-radius:3px}.vp-select2-ajax__result .vp-select2-ajax__result-img::after{content:"";display:block;width:100%;padding-top:100%}.vp-select2-ajax__result .vp-select2-ajax__result-data{padding-left:10px}.vp-select2-ajax__result .vp-select2-ajax__result-title{font-size:16px;font-weight:500;line-height:1}.vp-select2-ajax__result .vp-select2-ajax__result-post-type{font-size:12px;opacity:.5}.vp-control-gallery .vp-control-gallery-additional-data{position:absolute;box-sizing:border-box;top:0;right:-350px;bottom:0;width:350px;padding:15px 13px;overflow:auto;background-color:#fff;border-left:1px solid #eaeaea;transition:.15s right}.vp-control-gallery .vp-control-gallery-additional-data.active{right:0}.vp-control-gallery .vp-control-gallery-additional-data.active+.vp-control-gallery-items{margin-right:335px}@media (max-width: 910px){.vp-control-gallery .vp-control-gallery-additional-data{position:relative;display:none;right:0;width:120%;height:auto;margin-bottom:30px;border:1px solid #eaeaea}.vp-control-gallery .vp-control-gallery-additional-data.active{display:block}.vp-control-gallery .vp-control-gallery-additional-data.active+.vp-control-gallery-items{margin-right:-15px}}.vp-control-gallery .vp-control-gallery-additional-data .vp-control-gallery-additional-data-preview{display:flex;padding:15px 13px;margin:-15px -13px;margin-bottom:15px;border-bottom:1px solid #eaeaea}.vp-control-gallery .vp-control-gallery-additional-data .vp-control-gallery-additional-data-preview .vp-control-gallery-additional-data-preview-image{margin-right:15px}.vp-control-gallery .vp-control-gallery-additional-data .vp-control-gallery-additional-data-preview .vp-control-gallery-additional-data-preview-image img{display:block;width:70px;border-radius:3px;box-shadow:0 0 0 1px #fff, 0 0 0 2px #eaeaea}.vp-control-gallery .vp-control-gallery-additional-data .vp-control-gallery-additional-data-preview .vp-control-gallery-additional-data-preview-size{color:#8f9498}.vp-control-gallery .vp-control-gallery-items{display:flex;flex-wrap:wrap;align-content:flex-start;width:120%;height:325px;padding:7px;margin:-12px;margin-bottom:-25px;overflow:auto;transition:.15s margin-right}.vp-control-gallery .vp-control-gallery-items::after{content:"";display:block;width:100%}.vp-control-gallery .vp-control-gallery-items>div{position:relative;display:block;width:calc(12.5% - 10px);margin:5px;cursor:move;cursor:-webkit-grab;cursor:grab;border-radius:3px}@media (max-width: 1350px){.vp-control-gallery .vp-control-gallery-items>div{width:calc(14.22% - 10px)}}@media (max-width: 1250px){.vp-control-gallery .vp-control-gallery-items>div{width:calc(16.66% - 10px)}}@media (max-width: 1100px){.vp-control-gallery .vp-control-gallery-items>div{width:calc(25% - 10px)}}.vp-control-gallery .vp-control-gallery-items>div::after{content:"";display:block;padding-top:100%}.vp-control-gallery .vp-control-gallery-items>div.sortable-ghost{opacity:.4}.vp-control-gallery .vp-control-gallery-items>div img{position:absolute;display:block;top:0;left:0;width:100%;height:100%;-o-object-fit:cover;object-fit:cover;border-radius:3px}.vp-control-gallery .vp-control-gallery-items>.vp-control-gallery-items-img .vp-control-gallery-items-remove{position:absolute;top:-5px;right:-5px;width:20px;height:20px;color:#fff;cursor:pointer;visibility:hidden;background-color:#dc3232;border-radius:50%;opacity:0;transition:.15s visibility, .15s opacity}.vp-control-gallery .vp-control-gallery-items>.vp-control-gallery-items-img .vp-control-gallery-items-remove span{width:20px;height:20px;font-size:10px;line-height:20px}.vp-control-gallery .vp-control-gallery-items>.vp-control-gallery-items-img:hover .vp-control-gallery-items-remove{visibility:visible;opacity:1}.vp-control-gallery .vp-control-gallery-items>.vp-control-gallery-items-img.active{box-shadow:0 0 0 1px #fff, 0 0 0 4px #33b3db}.vp-control-gallery .vp-control-gallery-items>.vp-control-gallery-items-add{display:flex;align-items:center;justify-content:center;box-sizing:border-box;color:#6c7781;text-align:center;cursor:pointer;background-color:#fff;border:1px solid #ccd3da;border-radius:3px}.vp-control-gallery .vp-control-gallery-items>.vp-control-gallery-items-add>span{position:absolute;top:50%;left:50%;width:24px;height:24px;margin-top:-12px;margin-left:-12px;line-height:24px}.vp-control-gallery .vp-control-gallery-items>.vp-control-gallery-items-add:hover{color:#555;background-color:#f7f7f7}.vp-input{width:100%}.post-type-vp_lists .CodeMirror{width:100%;text-align:left;border:1px solid #ddd}.post-type-vp_lists .CodeMirror .CodeMirror-matchingbracket{color:inherit;background:rgba(255,150,0,0.3)}.post-type-vp_lists [class*="CodeMirror-lint-message"],.post-type-vp_lists .CodeMirror-lint-marker-multiple,.post-type-vp_lists [class*="CodeMirror-lint-marker"]{background-image:none}.post-type-vp_lists .CodeMirror-lint-marker-error,.post-type-vp_lists .CodeMirror-lint-marker-warning{cursor:help}.post-type-vp_lists .CodeMirror-lint-marker-multiple{position:absolute;top:0}.post-type-vp_lists [class*="CodeMirror-lint-marker"]::before{position:relative;top:-2px;font:400 18px/1 dashicons}.post-type-vp_lists [class*="CodeMirror-lint-message"]::before{position:absolute;left:16px;font:400 16px/1 dashicons}.post-type-vp_lists .CodeMirror-lint-message-error,.post-type-vp_lists .CodeMirror-lint-message-warning{padding:3px 12px 3px 28px;margin:5px 0 2px;box-shadow:0 1px 1px 0 rgba(0,0,0,0.1)}.post-type-vp_lists .CodeMirror-lint-message-warning{background-color:#fff8e5;border-left:4px solid #ffb900}.post-type-vp_lists .CodeMirror-lint-message-warning::before,.post-type-vp_lists .CodeMirror-lint-marker-warning::before{content:"\f534";color:#f6a306}.post-type-vp_lists .CodeMirror-lint-message-error{background-color:#fbeaea;border-left:4px solid #dc3232}.post-type-vp_lists .CodeMirror-lint-message-error::before,.post-type-vp_lists .CodeMirror-lint-marker-error::before{content:"\f153";color:#dc3232}.post-type-vp_lists .CodeMirror-lint-tooltip{background:0 0;border:none;border-radius:0;direction:ltr}.post-type-vp_lists .CodeMirror-resizer{display:none;display:flex;align-items:center;justify-content:center;width:100%;height:20px;margin-top:-2px;font-size:13px;cursor:row-resize;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-color:#fbfbfb}.post-type-vp_lists .CodeMirror-resizer::before{content:"\2261";position:absolute;left:50%;color:#999}.post-type-vp_lists .CodeMirror-resizer:hover{background:#f7f7f7}.post-type-vp_lists .CodeMirror-resizer:hover::before{color:#000}.post-type-vp_lists .CodeMirror ~ .CodeMirror-resizer{display:block}@media (max-width: 850px){.vp-steps__right,.vp-steps__step{float:none;width:100%}}.post-type-vp_lists #slugdiv,.post-type-vp_lists #postcustom{display:none}
|
1 |
/*!
|
2 |
* Name : Visual Portfolio
|
3 |
+
* Version : 1.8.2
|
4 |
* Author : nK https://nkdev.info
|
5 |
*/.dashicons-visual-portfolio,.dashicons-visual-portfolio-gray,.mce-widget .mce-i-visual-portfolio{background-image:url("../images/icon.svg");background-repeat:no-repeat;background-position:center center;background-size:15px;opacity:.6}.mce-widget .mce-i-visual-portfolio{background-image:url("../images/icon-mce.svg");opacity:1}.menu-top.current .dashicons-visual-portfolio,.menu-top:hover .dashicons-visual-portfolio,.wp-has-current-submenu .dashicons-visual-portfolio{opacity:1}.dashicons-visual-portfolio-gray,.mce-i-visual-portfolio-gray{background-image:url("../images/icon-gray.svg")}.vc_element-icon[data-is-container="true"].icon-visual-portfolio,.vc_element-icon.icon-visual-portfolio{background-position:50% 50%}.vc_element-icon.icon-visual-portfolio,.vc_control-visual-portfolio{position:relative;overflow:hidden;background-image:url("../images/icon-vc.png");background-position:50% 50%;background-size:cover;border-radius:3px}.vc_add-element-container .icon-visual-portfolio{position:absolute}.vc_control-visual-portfolio{display:inline-block;width:18px;height:18px;margin:0 2px;cursor:pointer}.vc_controls-row .vc_control-visual-portfolio{float:right;margin:4px}.vc_control-visual-portfolio-overlay{position:absolute;top:0;right:0;bottom:0;left:0;z-index:2}.vp-row{display:flex;flex:0 1 auto;flex-direction:row;flex-wrap:wrap;box-sizing:border-box;margin-right:-15px;margin-left:-15px}.vp-col-1,.vp-col-2,.vp-col-3,.vp-col-4,.vp-col-5,.vp-col-6,.vp-col-7,.vp-col-8,.vp-col-9,.vp-col-10,.vp-col-11,.vp-col-12{flex:0 0 auto;box-sizing:border-box;padding-right:15px;padding-left:15px}.vp-col-1{flex-basis:8.33333%;max-width:8.33333%}.vp-col-2{flex-basis:16.66667%;max-width:16.66667%}.vp-col-3{flex-basis:25%;max-width:25%}.vp-col-4{flex-basis:33.33333%;max-width:33.33333%}.vp-col-5{flex-basis:41.66667%;max-width:41.66667%}.vp-col-6{flex-basis:50%;max-width:50%}.vp-col-7{flex-basis:58.33333%;max-width:58.33333%}.vp-col-8{flex-basis:66.66667%;max-width:66.66667%}.vp-col-9{flex-basis:75%;max-width:75%}.vp-col-10{flex-basis:83.33333%;max-width:83.33333%}.vp-col-11{flex-basis:91.66667%;max-width:91.66667%}.vp-col-12{flex-basis:100%;max-width:100%}.vp-col-clearfix{flex-basis:100%;max-width:100%}.vp-col-clearfix .vp-control-html{margin-bottom:0}.post-type-vp_lists.post-php,.post-type-vp_lists.post-new-php{background-color:#edeff0}.post-type-vp_lists.post-php #wpcontent,.post-type-vp_lists.post-new-php #wpcontent{padding-left:0}.post-type-vp_lists.post-php .wrap,.post-type-vp_lists.post-new-php .wrap{margin:0}.post-type-vp_lists.post-php #poststuff,.post-type-vp_lists.post-new-php #poststuff{padding-top:0}.post-type-vp_lists.post-php #wpfooter,.post-type-vp_lists.post-new-php #wpfooter{display:none}.post-type-vp_lists.post-php #wpbody-content,.post-type-vp_lists.post-new-php #wpbody-content{padding-bottom:0}.post-type-vp_lists.post-php #post-body.columns-2 #postbox-container-1,.post-type-vp_lists.post-new-php #post-body.columns-2 #postbox-container-1{position:fixed;top:0;right:300px;bottom:0;width:300px;overflow:auto;-webkit-overflow-scrolling:touch}html.wp-toolbar .post-type-vp_lists.post-php #post-body.columns-2 #postbox-container-1,html.wp-toolbar .post-type-vp_lists.post-new-php #post-body.columns-2 #postbox-container-1{top:32px}@media only screen and (max-width: 850px){.post-type-vp_lists.post-php #post-body.columns-2 #postbox-container-1,.post-type-vp_lists.post-new-php #post-body.columns-2 #postbox-container-1{position:relative;top:auto;right:auto;bottom:auto;width:100%;margin-right:0}}.post-type-vp_lists.post-php #postbox-container-2,.post-type-vp_lists.post-new-php #postbox-container-2{position:absolute;top:0;right:0;bottom:0;left:0;width:calc(100% - 300px);min-height:calc(100vh - 32px);overflow:auto;-webkit-overflow-scrolling:touch}@media only screen and (max-width: 850px){.post-type-vp_lists.post-php #postbox-container-2,.post-type-vp_lists.post-new-php #postbox-container-2{right:0;bottom:auto;width:100%}}.post-type-vp_lists.post-php .columns-2 #side-sortables,.post-type-vp_lists.post-new-php .columns-2 #side-sortables{width:auto}.post-type-vp_lists.post-php .notice,.post-type-vp_lists.post-new-php .notice{margin:0;margin-right:300px;margin-bottom:1px}@media only screen and (max-width: 850px){.post-type-vp_lists.post-php .notice,.post-type-vp_lists.post-new-php .notice{margin-right:0}}.post-type-vp_lists.post-php #poststuff .postbox,.post-type-vp_lists.post-new-php #poststuff .postbox{margin-bottom:0;border-color:#e2e4e7;border-top:0;border-right:0}.post-type-vp_lists.post-php #poststuff .postbox>h2,.post-type-vp_lists.post-new-php #poststuff .postbox>h2{padding:15px;border-bottom:none}.post-type-vp_lists.post-php #poststuff .postbox>.handlediv,.post-type-vp_lists.post-new-php #poststuff .postbox>.handlediv{height:50px}.post-type-vp_lists.post-php #poststuff .postbox>.inside,.post-type-vp_lists.post-new-php #poststuff .postbox>.inside{padding:15px;padding-top:0}.vp-control{display:flex;flex-wrap:wrap;align-items:center;margin-bottom:19px}.vp-control>label{width:100%;margin-bottom:5px}.vp-control>.vp-control-description{width:100%;margin:2px 0 5px;font-size:13px;font-style:italic;color:#666}.vp-control.vp-control-checkbox,.vp-control.vp-control-toggle{flex-wrap:nowrap}.vp-control.vp-control-checkbox>label,.vp-control.vp-control-toggle>label{margin-bottom:0}.vp-control.vp-control-textarea textarea{width:100%}.vp-image-picker{display:none}.vp-image-picker,.vp-image-picker *{box-sizing:border-box}.vp-image-picker+ul.thumbnails.image_picker_selector li{margin:0 10px 10px 0}.vp-image-picker+ul.thumbnails.image_picker_selector li .thumbnail{padding:0;cursor:pointer;border:none}.vp-image-picker+ul.thumbnails.image_picker_selector li .thumbnail img{display:block;border:2px solid transparent}.vp-image-picker+ul.thumbnails.image_picker_selector li .thumbnail.selected{background-color:transparent}.vp-image-picker+ul.thumbnails.image_picker_selector li .thumbnail.selected img{border-color:#0073aa}.vp-image-picker+ul.thumbnails.image_picker_selector .group_title{padding-top:5px;padding-left:5px;font-weight:500}.vp-control-range [type="number"]{width:50px;margin-left:10px}.vp-control-range [type="range"]{flex:1;width:100%;padding:0;background:transparent;-webkit-appearance:none;-moz-appearance:none;appearance:none}.vp-control-range [type="range"]::-webkit-slider-thumb{box-sizing:border-box;width:18px;height:18px;margin-top:-7px;cursor:pointer;background:#555d66;background-clip:padding-box;border:4px solid transparent;border-radius:50%;-webkit-appearance:none;appearance:none}.vp-control-range [type="range"]::-moz-range-thumb{box-sizing:border-box;width:18px;height:18px;cursor:pointer;background:#555d66;background-clip:padding-box;border:4px solid transparent;border-radius:50%}.vp-control-range [type="range"]::-ms-thumb{box-sizing:border-box;width:14px;height:14px;margin-top:0;cursor:pointer;background:#555d66;background-clip:padding-box;border:2px solid transparent;border-radius:50%}.vp-control-range [type="range"]:focus{outline:none}.vp-control-range [type="range"]:focus::-webkit-slider-thumb{color:#191e23;background-color:#fff;outline:2px solid transparent;outline-offset:-2px;box-shadow:inset 0 0 0 1px #6c7781, inset 0 0 0 2px #fff}.vp-control-range [type="range"]:focus::-moz-range-thumb{color:#191e23;background-color:#fff;outline:2px solid transparent;outline-offset:-2px;box-shadow:inset 0 0 0 1px #6c7781, inset 0 0 0 2px #fff}.vp-control-range [type="range"]:focus::-ms-thumb{color:#191e23;background-color:#fff;outline:2px solid transparent;outline-offset:-2px;box-shadow:inset 0 0 0 1px #6c7781, inset 0 0 0 2px #fff}.vp-control-range [type="range"]::-webkit-slider-runnable-track{height:3px;margin-top:-4px;cursor:pointer;background:#e2e4e7;border-radius:1.5px}.vp-control-range [type="range"]::-moz-range-track{height:3px;cursor:pointer;background:#e2e4e7;border-radius:1.5px}.vp-control-range [type="range"]::-ms-track{height:3px;margin-top:-4px;color:transparent;cursor:pointer;background:#e2e4e7;border-color:transparent;border-radius:1.5px}.vp-control-toggle,.vp-control-toggle *{box-sizing:border-box}.vp-control-toggle .vp-toggle{position:relative}.vp-control-toggle .vp-toggle .vp-toggle__track{content:"";display:inline-block;box-sizing:border-box;width:36px;height:18px;vertical-align:top;background-color:#fff;border:2px solid #6c7781;border-radius:9px;transition:background .2s ease}.vp-control-toggle .vp-toggle .vp-toggle__track::after{content:"";position:absolute;display:block;top:50%;right:5px;width:3px;height:3px;margin-top:-3px;border:1.5px solid #6c7781;border-radius:3px}.vp-control-toggle .vp-toggle:hover .vp-toggle__track{background-color:#e2e4e7}.vp-control-toggle .vp-toggle [type="checkbox"]:checked ~ .vp-toggle__track{background-color:#33b3db;border:2px solid #33b3db}.vp-control-toggle .vp-toggle [type="checkbox"]:checked ~ .vp-toggle__track::after{top:50%;right:auto;left:8px;width:0;height:5px;margin-top:-3px;border:0;border-right:2px solid #fff;border-radius:0}.vp-control-toggle .vp-toggle .vp-toggle__thumb{position:absolute;display:block;top:4px;left:4px;width:10px;height:10px;background-color:#6c7781;border:5px solid #6c7781;border-radius:50%;transition:-webkit-transform .1s ease;transition:transform .1s ease;transition:transform .1s ease, -webkit-transform .1s ease}.vp-control-toggle .vp-toggle [type="checkbox"]:focus ~ .vp-toggle__track{box-shadow:0 0 0 2px #fff, 0 0 0 3px #6c7781}.vp-control-toggle .vp-toggle [type="checkbox"]:checked ~ .vp-toggle__thumb{background-color:#fff;border-width:0;-webkit-transform:translateX(18px);transform:translateX(18px)}.vp-control-toggle .vp-toggle [type="checkbox"]{position:absolute;top:0;left:0;width:100%;height:100%;padding:0;margin:0;opacity:0;z-index:1}.vp-control-image-dropdown{position:relative;display:flex;align-items:center;width:100%;padding:5px 7px;cursor:pointer;background-color:#fff;border:1px solid #ddd;box-shadow:inset 0 1px 2px rgba(0,0,0,0.07)}.vp-control-image-dropdown,.vp-control-image-dropdown *{box-sizing:border-box}.vp-control-image-dropdown::before{content:"";position:absolute;display:block;top:50%;right:6px;width:0;height:0;margin-top:-2px;border-color:#888 transparent transparent transparent;border-style:solid;border-width:5px 4px 0 4px}.vp-control-image-dropdown.active::before{border-color:transparent transparent #888 transparent;border-width:0 4px 5px 4px}.vp-control-image-dropdown .vp-control-image-dropdown__preview{display:block;flex:0 0 auto;width:32px}.vp-control-image-dropdown .vp-control-image-dropdown__preview img{display:block;width:100%;height:auto}.vp-control-image-dropdown .vp-control-image-dropdown__title{flex:1;padding-left:10px}.vp-control-image-dropdown .vp-control-image-dropdown__content{position:absolute;display:none;top:100%;left:0;width:100%;max-width:285px;margin-top:7px;margin-left:-1px;cursor:default;background-color:#fff;border:1px solid #e5e5e5;box-shadow:0 1px 1px rgba(0,0,0,0.04);z-index:1}.vp-control-image-dropdown .vp-control-image-dropdown__content>div{width:100%;max-height:250px;padding:4px;overflow:auto}.vp-control-image-dropdown .vp-control-image-dropdown__content::before{content:"";position:absolute;display:block;top:-5px;left:10px;width:0;height:0;border-right:5px solid transparent;border-bottom:5px solid #e5e5e5;border-left:5px solid transparent}.vp-control-image-dropdown .vp-control-image-dropdown__content::after{content:"";position:absolute;display:block;top:-7px;right:0;left:0;height:7px}.vp-control-image-dropdown .vp-control-image-dropdown__content .vp-image-picker+ul.thumbnails.image_picker_selector,.vp-control-image-dropdown .vp-control-image-dropdown__content .vp-image-picker+ul.thumbnails.image_picker_selector .group>ul{display:flex;flex-wrap:wrap}.vp-control-image-dropdown .vp-control-image-dropdown__content .vp-image-picker+ul.thumbnails.image_picker_selector li{display:block;flex:0 0 25%;float:none;max-width:25%;margin:0}.vp-control-image-dropdown .vp-control-image-dropdown__content .vp-image-picker+ul.thumbnails.image_picker_selector li.group,.vp-control-image-dropdown .vp-control-image-dropdown__content .vp-image-picker+ul.thumbnails.image_picker_selector li.group_title{flex:0 0 100%;max-width:100%}.vp-control-image-dropdown .vp-control-image-dropdown__content .vp-image-picker+ul.thumbnails.image_picker_selector li .thumbnail{padding:3px}.vp-control-image-dropdown .vp-control-image-dropdown__content .vp-image-picker+ul.thumbnails.image_picker_selector li img{width:100%;height:auto}.vp-control-image-dropdown.active .vp-control-image-dropdown__content{display:block}.vp-oembed-preview{position:relative;width:100%;padding-top:56.25%;color:#a2a2a2;background-color:#f1f1f1;border:1px solid #e8e8e8}.vp-oembed-preview::after{content:"\f126";position:absolute;display:block;top:50%;left:50%;width:20px;height:20px;margin-top:-10px;margin-left:-10px;font-family:dashicons;font-size:20px;font-style:normal;font-weight:400;line-height:1;text-align:center;text-decoration:inherit;vertical-align:top;z-index:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.vp-oembed-preview>iframe{position:absolute;top:0;left:0;width:100%;height:100%;z-index:2}.vp-portfolio__thumbnail{position:relative;display:block;max-width:70px;padding-top:100%;overflow:hidden;border-radius:3px}.vp-portfolio__thumbnail img{position:absolute;display:block;top:0;left:0;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.vp-portfolio__thumbnail:empty{background-color:#f1f1f1;border:1px solid #e8e8e8}.vp-portfolio__thumbnail:empty,.vp-portfolio__thumbnail:empty:hover,.vp-portfolio__thumbnail:empty:active,.vp-portfolio__thumbnail:empty:focus{color:#a2a2a2}.vp-portfolio__thumbnail:empty::after{content:"\f128";position:absolute;display:block;top:50%;left:50%;width:20px;height:20px;margin-top:-10px;margin-left:-10px;font-family:dashicons;font-size:20px;font-style:normal;font-weight:400;line-height:1;text-align:center;text-decoration:inherit;vertical-align:top;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.wp-list-table th.column-portfolio_post_thumbs{width:70px}.wp-list-table th.column-vp_lists_post_shortcode{width:250px}@media screen and (max-width: 782px){.wp-list-table th.column-portfolio_post_thumbs{display:none}.wp-list-table tr:not(.inline-edit-row):not(.no-items) td.column-portfolio_post_thumbs{float:left;width:70px !important;min-width:70px}.wp-list-table tr:not(.inline-edit-row):not(.no-items) td.column-portfolio_post_thumbs::before{content:none}.wp-list-table tr:not(.inline-edit-row):not(.no-items) td.column-title{overflow:hidden;clear:right}}.vp-portfolio-list .vp-portfolio-list__icon span{display:block;width:120px;height:120px;margin:0 auto;margin-top:60px;background-size:105px}.vp-portfolio-list .vp-portfolio-list__text{text-align:center}.vp-portfolio-list .vp-portfolio-list__text p{margin-top:30px;margin-bottom:30px;font-size:15px;font-weight:500;color:#8e8e8e}.vp-portfolio-list .vp-portfolio-list__text .button-hero{display:inline-block}.vp_list_preview{padding:0 12px;margin-right:-12px;margin-left:-12px}.vp_list_preview iframe{width:100%;min-height:120px;transition:height .3s}.vp-content-source{display:flex;flex-wrap:wrap;padding-right:9px;padding-left:9px;margin-right:-15px;margin-left:-15px}.vp-content-source .vp-content-source__item{position:relative;width:70px;height:50px;padding:12px;margin:0 5px;color:#6c7781;text-align:center;cursor:pointer;border:1px solid transparent;border-radius:3px}.vp-content-source .vp-content-source__item.active,.vp-content-source .vp-content-source__item:hover{color:#555;background-color:#ecf0f4}.vp-content-source .vp-content-source__item.active{color:#fff;background-color:#6c7781;border-color:#6c7781}.vp-content-source .vp-content-source__item .vp-content-source__item-icon>span{width:24px;height:24px;margin-top:2px;font-size:24px}.vp-content-source .vp-content-source__item .vp-content-source__item-title{position:absolute;top:58%;right:8px;left:8px;font-weight:500}.vp-content-source .vp-content-source__item-content{flex:1;min-width:100%}.vp-content-source .vp-content-source__item-content>div{position:relative;display:none;padding:0 15px;padding-bottom:1px;margin-top:12px;margin-right:-9px;margin-bottom:-14px;margin-left:-9px;overflow:hidden;background-color:#f9f9fa;border-top:1px solid #eee}.vp-content-source .vp-content-source__item-content>div:empty{display:none !important}.vp-content-source .vp-content-source__item-content>div.active{display:block}.vp-select2{width:100%}.vp-select2+.select2{width:100%}.post-attributes-label+.vp-select2+.select2{margin-top:5px}.vp-select2+.select2 ul,.vp-select2+.select2 li{margin-bottom:0}.vp-select2+.select2 .select2-selection{border:1px solid #ddd;border-radius:0;box-shadow:inset 0 1px 2px rgba(0,0,0,0.07)}.vp-select2+.select2.select2-container--open .select2-selection{outline:none}.vp-select2+.select2 .select2-selection--multiple{min-height:27px}.vp-select2+.select2 .select2-selection--multiple .select2-selection__choice{padding:3px 8px;margin-top:3px;color:#fff;background-color:#6c7781;border-color:#6c7781}.vp-select2+.select2 .select2-selection--multiple .select2-selection__choice__remove{float:right;margin-right:0;margin-left:3px;color:inherit;opacity:.5}.select2-vp-container ul,.select2-vp-container li{margin-bottom:0}.select2-vp-container .select2-dropdown{border-color:#ddd}.select2-vp-container .select2-search--dropdown .select2-search__field{padding:3px 4px;border:1px solid #ddd;outline:none;box-shadow:none}.select2-vp-container .select2-results__option[aria-selected="true"]{background-color:#efeeee}.select2-vp-container .select2-results__option--highlighted[aria-selected]{background-color:#33b3db}.vp-select2-ajax__result{display:flex;flex:0 1 auto;flex-direction:row;flex-wrap:wrap}.vp-select2-ajax__result .vp-select2-ajax__result-img{position:relative;flex:0 0 35px;background-color:rgba(0,0,0,0.1);background-position:center center;background-size:cover;border-radius:3px}.vp-select2-ajax__result .vp-select2-ajax__result-img::after{content:"";display:block;width:100%;padding-top:100%}.vp-select2-ajax__result .vp-select2-ajax__result-data{padding-left:10px}.vp-select2-ajax__result .vp-select2-ajax__result-title{font-size:16px;font-weight:500;line-height:1}.vp-select2-ajax__result .vp-select2-ajax__result-post-type{font-size:12px;opacity:.5}.vp-control-gallery .vp-control-gallery-additional-data{position:absolute;box-sizing:border-box;top:0;right:-350px;bottom:0;width:350px;padding:15px 13px;overflow:auto;background-color:#fff;border-left:1px solid #eaeaea;transition:.15s right}.vp-control-gallery .vp-control-gallery-additional-data.active{right:0}.vp-control-gallery .vp-control-gallery-additional-data.active+.vp-control-gallery-items{margin-right:335px}@media (max-width: 910px){.vp-control-gallery .vp-control-gallery-additional-data{position:relative;display:none;right:0;width:120%;height:auto;margin-bottom:30px;border:1px solid #eaeaea}.vp-control-gallery .vp-control-gallery-additional-data.active{display:block}.vp-control-gallery .vp-control-gallery-additional-data.active+.vp-control-gallery-items{margin-right:-15px}}.vp-control-gallery .vp-control-gallery-additional-data .vp-control-gallery-additional-data-preview{display:flex;padding:15px 13px;margin:-15px -13px;margin-bottom:15px;border-bottom:1px solid #eaeaea}.vp-control-gallery .vp-control-gallery-additional-data .vp-control-gallery-additional-data-preview .vp-control-gallery-additional-data-preview-image{margin-right:15px}.vp-control-gallery .vp-control-gallery-additional-data .vp-control-gallery-additional-data-preview .vp-control-gallery-additional-data-preview-image img{display:block;width:70px;border-radius:3px;box-shadow:0 0 0 1px #fff, 0 0 0 2px #eaeaea}.vp-control-gallery .vp-control-gallery-additional-data .vp-control-gallery-additional-data-preview .vp-control-gallery-additional-data-preview-size{color:#8f9498}.vp-control-gallery .vp-control-gallery-items{display:flex;flex-wrap:wrap;align-content:flex-start;width:120%;height:325px;padding:7px;margin:-12px;margin-bottom:-25px;overflow:auto;transition:.15s margin-right}.vp-control-gallery .vp-control-gallery-items::after{content:"";display:block;width:100%}.vp-control-gallery .vp-control-gallery-items>div{position:relative;display:block;width:calc(12.5% - 10px);margin:5px;cursor:move;cursor:-webkit-grab;cursor:grab;border-radius:3px}@media (max-width: 1350px){.vp-control-gallery .vp-control-gallery-items>div{width:calc(14.22% - 10px)}}@media (max-width: 1250px){.vp-control-gallery .vp-control-gallery-items>div{width:calc(16.66% - 10px)}}@media (max-width: 1100px){.vp-control-gallery .vp-control-gallery-items>div{width:calc(25% - 10px)}}.vp-control-gallery .vp-control-gallery-items>div::after{content:"";display:block;padding-top:100%}.vp-control-gallery .vp-control-gallery-items>div.sortable-ghost{opacity:.4}.vp-control-gallery .vp-control-gallery-items>div img{position:absolute;display:block;top:0;left:0;width:100%;height:100%;-o-object-fit:cover;object-fit:cover;border-radius:3px}.vp-control-gallery .vp-control-gallery-items>.vp-control-gallery-items-img .vp-control-gallery-items-remove{position:absolute;top:-5px;right:-5px;width:20px;height:20px;color:#fff;cursor:pointer;visibility:hidden;background-color:#dc3232;border-radius:50%;opacity:0;transition:.15s visibility, .15s opacity}.vp-control-gallery .vp-control-gallery-items>.vp-control-gallery-items-img .vp-control-gallery-items-remove span{width:20px;height:20px;font-size:10px;line-height:20px}.vp-control-gallery .vp-control-gallery-items>.vp-control-gallery-items-img:hover .vp-control-gallery-items-remove{visibility:visible;opacity:1}.vp-control-gallery .vp-control-gallery-items>.vp-control-gallery-items-img.active{box-shadow:0 0 0 1px #fff, 0 0 0 4px #33b3db}.vp-control-gallery .vp-control-gallery-items>.vp-control-gallery-items-add{display:flex;align-items:center;justify-content:center;box-sizing:border-box;color:#6c7781;text-align:center;cursor:pointer;background-color:#fff;border:1px solid #ccd3da;border-radius:3px}.vp-control-gallery .vp-control-gallery-items>.vp-control-gallery-items-add>span{position:absolute;top:50%;left:50%;width:24px;height:24px;margin-top:-12px;margin-left:-12px;line-height:24px}.vp-control-gallery .vp-control-gallery-items>.vp-control-gallery-items-add:hover{color:#555;background-color:#f7f7f7}.vp-input{width:100%}.post-type-vp_lists .CodeMirror{width:100%;text-align:left;border:1px solid #ddd}.post-type-vp_lists .CodeMirror .CodeMirror-matchingbracket{color:inherit;background:rgba(255,150,0,0.3)}.post-type-vp_lists [class*="CodeMirror-lint-message"],.post-type-vp_lists .CodeMirror-lint-marker-multiple,.post-type-vp_lists [class*="CodeMirror-lint-marker"]{background-image:none}.post-type-vp_lists .CodeMirror-lint-marker-error,.post-type-vp_lists .CodeMirror-lint-marker-warning{cursor:help}.post-type-vp_lists .CodeMirror-lint-marker-multiple{position:absolute;top:0}.post-type-vp_lists [class*="CodeMirror-lint-marker"]::before{position:relative;top:-2px;font:400 18px/1 dashicons}.post-type-vp_lists [class*="CodeMirror-lint-message"]::before{position:absolute;left:16px;font:400 16px/1 dashicons}.post-type-vp_lists .CodeMirror-lint-message-error,.post-type-vp_lists .CodeMirror-lint-message-warning{padding:3px 12px 3px 28px;margin:5px 0 2px;box-shadow:0 1px 1px 0 rgba(0,0,0,0.1)}.post-type-vp_lists .CodeMirror-lint-message-warning{background-color:#fff8e5;border-left:4px solid #ffb900}.post-type-vp_lists .CodeMirror-lint-message-warning::before,.post-type-vp_lists .CodeMirror-lint-marker-warning::before{content:"\f534";color:#f6a306}.post-type-vp_lists .CodeMirror-lint-message-error{background-color:#fbeaea;border-left:4px solid #dc3232}.post-type-vp_lists .CodeMirror-lint-message-error::before,.post-type-vp_lists .CodeMirror-lint-marker-error::before{content:"\f153";color:#dc3232}.post-type-vp_lists .CodeMirror-lint-tooltip{background:0 0;border:none;border-radius:0;direction:ltr}.post-type-vp_lists .CodeMirror-resizer{display:none;display:flex;align-items:center;justify-content:center;width:100%;height:20px;margin-top:-2px;font-size:13px;cursor:row-resize;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-color:#fbfbfb}.post-type-vp_lists .CodeMirror-resizer::before{content:"\2261";position:absolute;left:50%;color:#999}.post-type-vp_lists .CodeMirror-resizer:hover{background:#f7f7f7}.post-type-vp_lists .CodeMirror-resizer:hover::before{color:#000}.post-type-vp_lists .CodeMirror ~ .CodeMirror-resizer{display:block}@media (max-width: 850px){.vp-steps__right,.vp-steps__step{float:none;width:100%}}.post-type-vp_lists #slugdiv,.post-type-vp_lists #postcustom{display:none}
|
assets/admin/js/mce-dropdown.min.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
!function(t){var e={};function n(o){if(e[o])return e[o].exports;var i=e[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(o,i,function(e){return t[e]}.bind(null,i));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=165)}({165:function(t,e,n){t.exports=n(166)},166:function(t,e){
|
2 |
/*!
|
3 |
* Name : Visual Portfolio
|
4 |
-
* Version : 1.8.
|
5 |
* Author : nK https://nkdev.info
|
6 |
*/
|
7 |
var n=window,o=n.tinymce,i=n.VPTinyMCEOptions;if(void 0!==i&&i.length){var r=[{text:"",value:""}];Object.keys(i).forEach(function(t){r.push({text:i[t].title,value:i[t].id})}),o.create("tinymce.plugins.visual_portfolio",{init:function(t){t.addButton("visual_portfolio",{type:"listbox",title:"Visual Portfolio",icon:"visual-portfolio",classes:"visual-portfolio-btn",onclick:function(){this.menu&&this.menu.$el.find(".mce-first").hide()},onselect:function(){this.value()&&t.insertContent('[visual_portfolio id="'.concat(this.value(),'"]')),this.value("")},values:r,value:""})}}),o.PluginManager.add("visual_portfolio",o.plugins.visual_portfolio)}}});
|
1 |
!function(t){var e={};function n(o){if(e[o])return e[o].exports;var i=e[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(o,i,function(e){return t[e]}.bind(null,i));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=165)}({165:function(t,e,n){t.exports=n(166)},166:function(t,e){
|
2 |
/*!
|
3 |
* Name : Visual Portfolio
|
4 |
+
* Version : 1.8.2
|
5 |
* Author : nK https://nkdev.info
|
6 |
*/
|
7 |
var n=window,o=n.tinymce,i=n.VPTinyMCEOptions;if(void 0!==i&&i.length){var r=[{text:"",value:""}];Object.keys(i).forEach(function(t){r.push({text:i[t].title,value:i[t].id})}),o.create("tinymce.plugins.visual_portfolio",{init:function(t){t.addButton("visual_portfolio",{type:"listbox",title:"Visual Portfolio",icon:"visual-portfolio",classes:"visual-portfolio-btn",onclick:function(){this.menu&&this.menu.$el.find(".mce-first").hide()},onselect:function(){this.value()&&t.insertContent('[visual_portfolio id="'.concat(this.value(),'"]')),this.value("")},values:r,value:""})}}),o.PluginManager.add("visual_portfolio",o.plugins.visual_portfolio)}}});
|
assets/admin/js/script.min.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
!function(e){var t={};function n(a){if(t[a])return t[a].exports;var i=t[a]={i:a,l:!1,exports:{}};return e[a].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,a){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(a,i,function(t){return e[t]}.bind(null,i));return a},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=169)}({169:function(e,t,n){e.exports=n(170)},170:function(e,t,n){"use strict";n.r(t);var a=n(30);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}
|
2 |
/*!
|
3 |
* Name : Visual Portfolio
|
4 |
-
* Version : 1.8.
|
5 |
* Author : nK https://nkdev.info
|
6 |
*/(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var r=jQuery,l=window,c=l.ajaxurl,s=l.VPAdminVariables,d=l.Tooltip,p=l.CodeMirror,v=l.emmetCodeMirror,u=r("body"),f=r(window),m=r('form[name="post"]'),g=r('[name="post_type"]'),h=r("#postID, #post_ID").eq(0).val();u.on("focus",'[name="vp_list_shortcode"], [name="vp_filter_shortcode"]',function(){this.select()}),u.on("click",".vp-onclick-selection",function(){window.getSelection().selectAllChildren(this)});var _=r("#vp_format_video"),y=r("#post-format-video");function b(){_[y.is(":checked")?"show":"hide"]()}_.length&&y.length&&(b(),u.on("change","[name=post_format]",function(){b()}));var w=null;function k(e){w=r.ajax({url:c,method:"GET",dataType:"json",data:{action:"vp_find_oembed",q:e.val(),nonce:s.nonce},complete:function(t){var n=t.responseJSON;n&&void 0!==n.html&&e.next(".vp-oembed-preview").html(n.html)}})}function C(){var e=r('[name="vp_popup_gallery[show_caption]"]');e.closest("tbody").find("tr.caption_title, tr.caption_description")[e.is(":checked")?"show":"hide"]()}k=Object(a.a)(300,k),u.on("change input",'.vp-input[name="video_url"]',function(){null!==w&&w.abort();var e=r(this);e.next(".vp-oembed-preview").html(""),k(e)}),void 0!==d&&r('[data-hint]:not([data-hint=""]):not([data-hint="false"])').each(function(){var e=r(this);new d(this,{placement:e.attr("data-hint-place")||"top",title:e.attr("data-hint"),container:r("body")[0],boundariesElement:"viewport"})}),function(){if("vp_lists"===g.val()&&m.length){var e=r(".vp-content-source"),t=e.find('[name="vp_content_source"]');e.on("click",".vp-content-source__item",function(){var n=r(this).attr("data-content");e.find('[data-content="'.concat(n,'"]')).addClass("active").siblings().removeClass("active"),t.val(n).change()}),e.children('[data-content="'.concat(t.val(),'"]')).click(),r.fn.conditionize&&m.conditionize(),r(".vp-control-range").each(function(){var e=r(this).find("input"),t=e.filter('[type="hidden"]');e.on("change input",function(n){e.val(r(this).val()),t.trigger("vp-fake-".concat(n.type))})}),r.fn.wpColorPicker&&r(".vp-color-picker").each(function(){r(this).data("change",Object(a.a)(300,function(e){r(e.target).change()})).wpColorPicker()}),r.fn.imagepicker&&r(".vp-image-picker").imagepicker();var n=r(".vp_list_preview iframe"),l=!1,d=!1,_=r('<form target="vp_list_preview_iframe" method="post" style="display: none">').attr("action",n.attr("src")).insertAfter(m);r.fn.iFrameResize&&n.iFrameResize({interval:10}),I=Object(a.a)(400,I),m.on("change input vp-fake-change vp-fake-input",'[name*="vp_"]',function(e){var t=r(this);if(!t.closest(".vp-no-reload").length)if(r('[name="'.concat(t.attr("name"),'__style[]"]')).length)D();else{var n={name:t.attr("name"),value:t.is("[type=checkbox], [type=radio]")?t.is(":checked"):t.val(),reload:"change"===e.type||"vp-fake-change"===e.type,jQuery:d,$portfolio:l},a=_.find('[name="'.concat(n.name,'"]'));a.length||(a=r('<input type="hidden" name="'.concat(n.name,'" />')).appendTo(_)),a.attr("value",n.value),f.trigger("vp-preview-change",n),n.reload||D(),!n.reload&&l||I()}}),n.on("load",function(){d=this.contentWindow.jQuery,l=d(".vp-portfolio"),D()}),f.on("vp-preview-change",function(e,t){if(t.$portfolio)switch(t.name){case"vp_layout":case"vp_tiles_type":case"vp_masonry_columns":case"vp_justified_row_height":case"vp_justified_row_height_tolerance":case"vp_slider_effect":case"vp_slider_speed":case"vp_slider_autoplay":case"vp_slider_centered_slides":case"vp_slider_loop":case"vp_slider_free_mode":case"vp_slider_arrows":case"vp_slider_arrows_icon_prev":case"vp_slider_arrows_icon_next":case"vp_slider_bullets":case"vp_slider_bullets_dynamic":case"vp_items_gap":var n=t.name;n=(n=n.substring(3)).replace(/_/g,"-"),t.$portfolio.attr("data-vp-".concat(n),t.value),t.$portfolio.vpf("init"),t.reload=!1;break;case"vp_filter_align":t.$portfolio.find(".vp-filter").removeClass("vp-filter__align-center vp-filter__align-left vp-filter__align-right").addClass("vp-filter__align-".concat(t.value)),t.reload=!1;break;case"vp_pagination_align":t.$portfolio.find(".vp-pagination").removeClass("vp-pagination__align-center vp-pagination__align-left vp-pagination__align-right").addClass("vp-pagination__align-".concat(t.value)),t.reload=!1;break;case"vp_controls_styles":var a=t.$portfolio.closest("html"),i="vp-controls-styles-".concat(h,"-inline-css"),o=a.find("#".concat(i));o.length||(o=t.jQuery('<style id="'.concat(i,'">')),a.find("body").prepend(o)),o.html(t.value),t.reload=!1;break;case"vp_custom_css":var r=t.$portfolio.closest("html"),l="vp-custom-css-".concat(h,"-inline-css"),c=r.find("#".concat(l));c.length||(c=t.jQuery('<style id="'.concat(l,'">')),r.find("body").prepend(c)),c.html(t.value),t.reload=!1;break;case"vp_list_name":case"vp_stretch":t.reload=!1}}),u.on("click",".vp-control-image-dropdown",function(e){r(e.target).closest(".vp-control-image-dropdown__content").length||r(this).toggleClass("active")}),u.on("mousedown",function(e){var t=r(e.target).closest(".vp-control-image-dropdown");r(".vp-control-image-dropdown.active").each(function(){this!==t[0]&&r(this).removeClass("active")})}),u.on("change",".vp-control-image-dropdown .vp-image-picker",function(){var e=r(this),t=e.data("picker");if(t){var n=t.select.find('option[value="'.concat(t.select.val(),'"]')),a=n.parent("optgroup"),i=e.closest(".vp-control-image-dropdown"),o=n.attr("data-img-src");i.length&&(i.children(".vp-control-image-dropdown__preview").html('<img src="'.concat(o,'" alt="">')),a.length&&i.children(".vp-control-image-dropdown__title").html(a.attr("label")))}});var y=r('[name="vp_list_name"]'),b=r('[name="post_title"]');y.length&&b.length&&(y.on("input",function(){b.val()!==y.val()&&b.val(y.val()).change()}),b.on("input",function(){y.val(b.val())})),r.fn.select2&&r(".vp-select2").each(function(){var e=r(this),t={width:"100%",minimumResultsForSearch:e.hasClass("vp-select2-nosearch")?-1:1,tags:e.hasClass("vp-select2-tags")},n=!!e.attr("data-post-type")&&r(e.attr("data-post-type"));e.closest(".vp-select2-posts-ajax").length&&(t=r.extend({minimumInputLength:1,ajax:{url:c,dataType:"json",delay:250,data:function(e){return{action:"vp_find_posts",q:e.term,post_type:!!n&&n.val(),nonce:s.nonce}},processResults:function(e){return{results:!(!e||!e.length)&&e}},cache:!0},escapeMarkup:function(e){return e},templateResult:function(e){if(e.loading)return e.text;var t="";e.title&&(t=e.title);var n="";e.post_type&&(n=e.post_type);var a="";return e.img&&(a="style=\"background-image: url('".concat(e.img,"');\"")),"".concat('<div class="vp-select2-ajax__result"><div class="vp-select2-ajax__result-img" ').concat(a,"></div>")+'<div class="vp-select2-ajax__result-data">'+'<div class="vp-select2-ajax__result-title">'.concat(t,"</div>")+'<div class="vp-select2-ajax__result-post-type">'.concat(n,"</div>")+"</div></div>"},templateSelection:function(e){return e.title||e.text}},t)),e.closest(".vp-select2-taxonomies-ajax").length&&(t=r.extend({minimumInputLength:1,ajax:{url:c,dataType:"json",delay:250,data:function(e){return{action:"vp_find_taxonomies",q:e.term,post_type:!!n&&n.val(),nonce:s.nonce}},processResults:function(e){var t=[];return e&&Object.keys(e).forEach(function(n){t.push({text:n,children:e[n]})}),{results:t}},cache:!0}},t)),e.select2(t).data("select2").$dropdown.addClass("select2-vp-container")});var w=r(".vp-control-gallery"),k=0;if(r.fn.sortable&&(w.each(function(){var e=r(this),t=e.children(".vp-control-gallery-items-default");e.children(".vp-control-gallery-items").sortable({animation:150,draggable:".vp-control-gallery-items-img",onUpdate:function(){U(e)}}),e.on("click",".vp-control-gallery-items-remove",function(t){t.preventDefault(),r(this).parent().remove(),U(e)}),e.on("click",".vp-control-gallery-items-add",function(n){n.preventDefault();var a=e.data("wp-frame");a?a.open():wp.media?(a=wp.media({title:"Select or Upload Images",button:{text:"Use this images"},multiple:!0,library:{type:"image"}}),e.data("wp-frame",a),a.on("select",function(){var n=a.state().get("selection").models;n&&n.length&&(n.forEach(function(n){var a=n.changed.url;n.changed.sizes&&n.changed.sizes.thumbnail&&(a=n.changed.sizes.thumbnail.url);var i=t.children().clone();i.attr("data-image-id",n.id),i.children("img").attr("src",a),i.find('[data-meta="width"]').html(n.changed.width),i.find('[data-meta="height"]').html(n.changed.height),i.find('[data-meta="filename"]').html(n.changed.filename),i.find('[data-meta="editLink"]').html(n.changed.editLink),i.find('[data-meta="filesizeHumanReadable"]').html(n.changed.filesizeHumanReadable),e.find(".vp-control-gallery-items-add").before(i)}),U(e))}),a.open()):console.error("Can't access wp.media object.")}),e.on("click",".vp-control-gallery-items-img",function(t){t.preventDefault(),Q(e,r(this).attr("data-image-id"))}),e.on("change input",".vp-control-gallery-additional-data [name]",Object(a.a)(200,function(){var t=e.children(".vp-control-gallery-additional-data"),n=e.children("textarea").attr("name"),a=e.children(".vp-control-gallery-items").find(".vp-control-gallery-items-img.active").attr("data-image-id");if(a){var o=e.children(".vp-control-gallery-items").find('[data-image-id="'+a+'"]');t.find('[name*="'+n+'_additional_"]').each(function(){var e=r(this).attr("name").replace(n+"_additional_","").replace("[]",""),t=r(this).val()||"";"object"===i(t)&&(t=JSON.stringify(t)),o.find('[data-additional="'+e+'"]').html(t||"")}),U(e)}}))}),w.length)){var C=w.children(".vp-control-gallery-additional-data");r(document).on("mousedown",function(e){if(k){var t=e.target;r(t).closest(".vp-control-gallery-additional-data, .vp-control-gallery-items-img, .select2-vp-container").length||(C.removeClass("active"),w.children(".vp-control-gallery-items").find(".vp-control-gallery-items-img.active").removeClass("active"),k=w.find(".vp-control-gallery-additional-data.active").length)}})}var x=r('[name="vp_custom_css"]'),j=!1,S=!0;if(void 0!==p&&x.length){var O=function(e){$.css("height",Math.max(200,A+e.originalEvent.y-M)),z.setSize(null,Math.max(200,A+e.y-M)+"px")},E=function e(){u.off("mousemove",O),u.off("mouseup",e)};if(s&&s.classnames){var T=p.hint.css;p.hint.css=function(e){var t=e.getCursor(),n=T(e)||{from:t,to:e.getCursor(),list:[]},a=e.getTokenAt(t);return"top"===a.state.state&&0===a.string.indexOf(".")&&(n={from:p.Pos(t.line,a.start),to:p.Pos(t.line,a.end),list:[]},s.classnames.forEach(function(e){-1!==e.indexOf(a.string)&&n.list.push(e)})),n}}var z=p.fromTextArea(x[0],{mode:"css",theme:"eclipse",indentUnit:4,autoCloseTags:!0,autoCloseBrackets:!0,matchBrackets:!0,foldGutter:!0,lint:{options:{errors:!0,"box-model":!0,"display-property-grouping":!0,"duplicate-properties":!0,"known-properties":!0,"outline-none":!0},onUpdateLinting:function(e,t,n){var a=[];e.forEach(function(e){"error"===e.severity&&a.push(e)}),n.vcLintErrors=a,j||q(n.vcLintErrors,!0)}},lineNumbers:!0,lineWrapping:!0,scrollPastEnd:!0,emmet_active:!0,emmet:!0,styleActiveLine:!0,continueComments:!0,scrollbarStyle:"simple",extraKeys:{"Ctrl-Space":"autocomplete","Ctrl-/":"toggleComment","Cmd-/":"toggleComment","Alt-F":"findPersistent"},gutters:["CodeMirror-lint-markers","CodeMirror-linenumbers","CodeMirror-foldgutter"]});v(z),x.data("CodeMirrorInstance",z),z.on("change",function(){z.save(),x.change()}),z.on("keyup",function(e,t){var n=/^[a-zA-Z]$/.test(t.key);if(!e.state.completionActive||!n){var a=e.getTokenAt(e.getCursor());if("string"!==a.type&&"comment"!==a.type){var i=e.doc.getLine(e.doc.getCursor().line).substr(0,e.doc.getCursor().ch);(n||":"===t.key||" "===t.key&&/:\s+$/.test(i))&&e.showHint({completeSingle:!1})}}});var M,A,L=r(".CodeMirror-resizer").after(x),$=L.prev(".CodeMirror");L.on("mousedown",function(e){M=e.originalEvent.y,A=$.height(),u.on("mousemove",O),u.on("mouseup",E)})}var P=!1;u.on("click","#publish:not(.disabled)",function(e){if(P=!0,!j){var t=r(this),n=x.length&&x.data("CodeMirrorInstance");n&&n.vcLintErrors&&n.vcLintErrors.length&&(e.preventDefault(),t.addClass("disabled button-disabled button-primary-disabled"),setTimeout(function(){t.removeClass("disabled button-disabled button-primary-disabled")},1500),q(n.vcLintErrors,!1),r("html,body").animate({scrollTop:r("#vp_custom_css").offset().top-100},300),n.focus(),n.setCursor(n.vcLintErrors[0].from.line))}});var R=m.serialize();r(window).on("beforeunload",function(){if(!P)return R!==m.serialize()||void 0;P=!1}),u.on("change","#vp_custom_css_notice_prevent",function(){j=!0,r(this).closest(".notice").slideUp()})}function D(){var e="",t=r('[name="vp_controls_styles"]'),n=".vp-id-".concat(h),a=t.val();r('.vp-control-style [type="hidden"]').each(function(){var t=r(this),a=t.closest(".vp-control");if("none"!==a.css("display")){var i=(t.attr("data-style-mask")||"$").replace("$",a.find(t.attr("data-style-from")).val()),o=n+" "+t.attr("data-style-element"),l=t.attr("data-style-property");e&&(e+=" "),e+="".concat(o," { ").concat(l,": ").concat(i,"; }")}}),a!==e&&t.val(e).trigger("vp-fake-change")}function I(){d=!1,l=!1,_.submit()}function N(e,t){var n={id:t};return e.find('[data-image-id="'+t+'"]').find("[data-additional]").each(function(){var e=r(this),t=e.attr("data-additional");if(n[t]=e.html(),"true"===e.attr("data-to-json"))try{n[t]=JSON.parse(n[t])}catch(e){n[t]=""}}),n}function U(e){var t=[];e.children(".vp-control-gallery-items").find(".vp-control-gallery-items-img").each(function(){t.push(N(e,r(this).attr("data-image-id")))});var n=JSON.stringify(t),a=e.children("textarea");n!==a.val()&&a.val(n).change()}function Q(e,t){var n=e.children("textarea").attr("name"),a=e.children(".vp-control-gallery-additional-data"),i=a.children(".vp-control-gallery-additional-data-preview"),l=e.children(".vp-control-gallery-items").find('.vp-control-gallery-items-img[data-image-id="'+t+'"]'),c=N(e,t),s=function(e,t){var n={};return e.find('[data-image-id="'+t+'"]').find("[data-meta]").each(function(){n[r(this).attr("data-meta")]=r(this).html()}),n}(e,t);c&&Object.keys(c).forEach(function(t){var i=a.find('[name="'+n+"_additional_"+t+'"], [name="'+n+"_additional_"+t+'[]"]').val(c[t]||"");if(i.hasClass("vp-select2")){if(i.hasClass("vp-select2-tags")){var l=[],s=[];e.children(".vp-control-gallery-items").find(".vp-control-gallery-items-img").each(function(){var n=N(e,r(this).attr("data-image-id"));n&&void 0!==n[t]&&n[t]&&(l=o(new Set(o(l).concat(o(n[t])))))}),l.forEach(function(e){s.push(new window.Option(e,e,!1,!1))}),i.html(s.length?s:""),i.val(void 0!==c[t]&&c[t]?c[t]:"")}i.trigger("change")}}),i.find(".vp-control-gallery-additional-data-preview-image img").attr("src",l.children("img").attr("src")||""),i.find(".vp-control-gallery-additional-data-preview-name").html(s.filename),i.find(".vp-control-gallery-additional-data-preview-size").html(s.width+"x"+s.height+" ("+s.filesizeHumanReadable+")"),i.find(".vp-control-gallery-additional-data-preview-edit a").attr("href",s.editLink.replace("&","&")),l.siblings().removeClass("active"),l.addClass("active"),a.addClass("active"),k=w.find(".vp-control-gallery-additional-data.active").length}function q(e,t){if(S&&(t=!1,S=!1),s&&s.css_editor_error_notice){var n=!1;if(1===e.length?n=s.css_editor_error_notice.singular.replace("%d","1"):e.length>1&&(n=s.css_editor_error_notice.plural.replace("%d",String(e.length))),n){var a=x.prev("#vp_custom_css_notice");if(a.length||t||(a=r('<div class="notice notice-error inline" id="vp_custom_css_notice"></div>'),x.before(a)),!a.length)return;var i='<p class="notification-message">'.concat(n,"</p>")+'<p><input id="vp_custom_css_notice_prevent" type="checkbox">'+'<label for="vp_custom_css_notice_prevent">'.concat(s.css_editor_error_checkbox,"</label>")+"</p>";a.html(i)}else x.prev("#vp_custom_css_notice").remove()}}}(),u.hasClass("portfolio_page_visual-portfolio-settings")&&(u.on("change",'[name="vp_popup_gallery[show_caption]"]',C),f.on("ready",C),C())},30:function(e,t,n){"use strict";function a(e,t,n,a){var i,o=0;return"boolean"!=typeof t&&(a=n,n=t,t=void 0),function(){var r=this,l=Number(new Date)-o,c=arguments;function s(){o=Number(new Date),n.apply(r,c)}a&&!i&&s(),i&&clearTimeout(i),void 0===a&&l>e?s():!0!==t&&(i=setTimeout(a?function(){i=void 0}:s,void 0===a?e-l:e))}}function i(e,t,n){return void 0===n?a(e,t,!1):a(e,n,!1!==t)}n.d(t,"b",function(){return a}),n.d(t,"a",function(){return i})}});
|
1 |
!function(e){var t={};function n(a){if(t[a])return t[a].exports;var i=t[a]={i:a,l:!1,exports:{}};return e[a].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,a){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(a,i,function(t){return e[t]}.bind(null,i));return a},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=169)}({169:function(e,t,n){e.exports=n(170)},170:function(e,t,n){"use strict";n.r(t);var a=n(30);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}
|
2 |
/*!
|
3 |
* Name : Visual Portfolio
|
4 |
+
* Version : 1.8.2
|
5 |
* Author : nK https://nkdev.info
|
6 |
*/(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var r=jQuery,l=window,c=l.ajaxurl,s=l.VPAdminVariables,d=l.Tooltip,p=l.CodeMirror,v=l.emmetCodeMirror,u=r("body"),f=r(window),m=r('form[name="post"]'),g=r('[name="post_type"]'),h=r("#postID, #post_ID").eq(0).val();u.on("focus",'[name="vp_list_shortcode"], [name="vp_filter_shortcode"]',function(){this.select()}),u.on("click",".vp-onclick-selection",function(){window.getSelection().selectAllChildren(this)});var _=r("#vp_format_video"),y=r("#post-format-video");function b(){_[y.is(":checked")?"show":"hide"]()}_.length&&y.length&&(b(),u.on("change","[name=post_format]",function(){b()}));var w=null;function k(e){w=r.ajax({url:c,method:"GET",dataType:"json",data:{action:"vp_find_oembed",q:e.val(),nonce:s.nonce},complete:function(t){var n=t.responseJSON;n&&void 0!==n.html&&e.next(".vp-oembed-preview").html(n.html)}})}function C(){var e=r('[name="vp_popup_gallery[show_caption]"]');e.closest("tbody").find("tr.caption_title, tr.caption_description")[e.is(":checked")?"show":"hide"]()}k=Object(a.a)(300,k),u.on("change input",'.vp-input[name="video_url"]',function(){null!==w&&w.abort();var e=r(this);e.next(".vp-oembed-preview").html(""),k(e)}),void 0!==d&&r('[data-hint]:not([data-hint=""]):not([data-hint="false"])').each(function(){var e=r(this);new d(this,{placement:e.attr("data-hint-place")||"top",title:e.attr("data-hint"),container:r("body")[0],boundariesElement:"viewport"})}),function(){if("vp_lists"===g.val()&&m.length){var e=r(".vp-content-source"),t=e.find('[name="vp_content_source"]');e.on("click",".vp-content-source__item",function(){var n=r(this).attr("data-content");e.find('[data-content="'.concat(n,'"]')).addClass("active").siblings().removeClass("active"),t.val(n).change()}),e.children('[data-content="'.concat(t.val(),'"]')).click(),r.fn.conditionize&&m.conditionize(),r(".vp-control-range").each(function(){var e=r(this).find("input"),t=e.filter('[type="hidden"]');e.on("change input",function(n){e.val(r(this).val()),t.trigger("vp-fake-".concat(n.type))})}),r.fn.wpColorPicker&&r(".vp-color-picker").each(function(){r(this).data("change",Object(a.a)(300,function(e){r(e.target).change()})).wpColorPicker()}),r.fn.imagepicker&&r(".vp-image-picker").imagepicker();var n=r(".vp_list_preview iframe"),l=!1,d=!1,_=r('<form target="vp_list_preview_iframe" method="post" style="display: none">').attr("action",n.attr("src")).insertAfter(m);r.fn.iFrameResize&&n.iFrameResize({interval:10}),I=Object(a.a)(400,I),m.on("change input vp-fake-change vp-fake-input",'[name*="vp_"]',function(e){var t=r(this);if(!t.closest(".vp-no-reload").length)if(r('[name="'.concat(t.attr("name"),'__style[]"]')).length)D();else{var n={name:t.attr("name"),value:t.is("[type=checkbox], [type=radio]")?t.is(":checked"):t.val(),reload:"change"===e.type||"vp-fake-change"===e.type,jQuery:d,$portfolio:l},a=_.find('[name="'.concat(n.name,'"]'));a.length||(a=r('<input type="hidden" name="'.concat(n.name,'" />')).appendTo(_)),a.attr("value",n.value),f.trigger("vp-preview-change",n),n.reload||D(),!n.reload&&l||I()}}),n.on("load",function(){d=this.contentWindow.jQuery,l=d(".vp-portfolio"),D()}),f.on("vp-preview-change",function(e,t){if(t.$portfolio)switch(t.name){case"vp_layout":case"vp_tiles_type":case"vp_masonry_columns":case"vp_justified_row_height":case"vp_justified_row_height_tolerance":case"vp_slider_effect":case"vp_slider_speed":case"vp_slider_autoplay":case"vp_slider_centered_slides":case"vp_slider_loop":case"vp_slider_free_mode":case"vp_slider_arrows":case"vp_slider_arrows_icon_prev":case"vp_slider_arrows_icon_next":case"vp_slider_bullets":case"vp_slider_bullets_dynamic":case"vp_items_gap":var n=t.name;n=(n=n.substring(3)).replace(/_/g,"-"),t.$portfolio.attr("data-vp-".concat(n),t.value),t.$portfolio.vpf("init"),t.reload=!1;break;case"vp_filter_align":t.$portfolio.find(".vp-filter").removeClass("vp-filter__align-center vp-filter__align-left vp-filter__align-right").addClass("vp-filter__align-".concat(t.value)),t.reload=!1;break;case"vp_pagination_align":t.$portfolio.find(".vp-pagination").removeClass("vp-pagination__align-center vp-pagination__align-left vp-pagination__align-right").addClass("vp-pagination__align-".concat(t.value)),t.reload=!1;break;case"vp_controls_styles":var a=t.$portfolio.closest("html"),i="vp-controls-styles-".concat(h,"-inline-css"),o=a.find("#".concat(i));o.length||(o=t.jQuery('<style id="'.concat(i,'">')),a.find("body").prepend(o)),o.html(t.value),t.reload=!1;break;case"vp_custom_css":var r=t.$portfolio.closest("html"),l="vp-custom-css-".concat(h,"-inline-css"),c=r.find("#".concat(l));c.length||(c=t.jQuery('<style id="'.concat(l,'">')),r.find("body").prepend(c)),c.html(t.value),t.reload=!1;break;case"vp_list_name":case"vp_stretch":t.reload=!1}}),u.on("click",".vp-control-image-dropdown",function(e){r(e.target).closest(".vp-control-image-dropdown__content").length||r(this).toggleClass("active")}),u.on("mousedown",function(e){var t=r(e.target).closest(".vp-control-image-dropdown");r(".vp-control-image-dropdown.active").each(function(){this!==t[0]&&r(this).removeClass("active")})}),u.on("change",".vp-control-image-dropdown .vp-image-picker",function(){var e=r(this),t=e.data("picker");if(t){var n=t.select.find('option[value="'.concat(t.select.val(),'"]')),a=n.parent("optgroup"),i=e.closest(".vp-control-image-dropdown"),o=n.attr("data-img-src");i.length&&(i.children(".vp-control-image-dropdown__preview").html('<img src="'.concat(o,'" alt="">')),a.length&&i.children(".vp-control-image-dropdown__title").html(a.attr("label")))}});var y=r('[name="vp_list_name"]'),b=r('[name="post_title"]');y.length&&b.length&&(y.on("input",function(){b.val()!==y.val()&&b.val(y.val()).change()}),b.on("input",function(){y.val(b.val())})),r.fn.select2&&r(".vp-select2").each(function(){var e=r(this),t={width:"100%",minimumResultsForSearch:e.hasClass("vp-select2-nosearch")?-1:1,tags:e.hasClass("vp-select2-tags")},n=!!e.attr("data-post-type")&&r(e.attr("data-post-type"));e.closest(".vp-select2-posts-ajax").length&&(t=r.extend({minimumInputLength:1,ajax:{url:c,dataType:"json",delay:250,data:function(e){return{action:"vp_find_posts",q:e.term,post_type:!!n&&n.val(),nonce:s.nonce}},processResults:function(e){return{results:!(!e||!e.length)&&e}},cache:!0},escapeMarkup:function(e){return e},templateResult:function(e){if(e.loading)return e.text;var t="";e.title&&(t=e.title);var n="";e.post_type&&(n=e.post_type);var a="";return e.img&&(a="style=\"background-image: url('".concat(e.img,"');\"")),"".concat('<div class="vp-select2-ajax__result"><div class="vp-select2-ajax__result-img" ').concat(a,"></div>")+'<div class="vp-select2-ajax__result-data">'+'<div class="vp-select2-ajax__result-title">'.concat(t,"</div>")+'<div class="vp-select2-ajax__result-post-type">'.concat(n,"</div>")+"</div></div>"},templateSelection:function(e){return e.title||e.text}},t)),e.closest(".vp-select2-taxonomies-ajax").length&&(t=r.extend({minimumInputLength:1,ajax:{url:c,dataType:"json",delay:250,data:function(e){return{action:"vp_find_taxonomies",q:e.term,post_type:!!n&&n.val(),nonce:s.nonce}},processResults:function(e){var t=[];return e&&Object.keys(e).forEach(function(n){t.push({text:n,children:e[n]})}),{results:t}},cache:!0}},t)),e.select2(t).data("select2").$dropdown.addClass("select2-vp-container")});var w=r(".vp-control-gallery"),k=0;if(r.fn.sortable&&(w.each(function(){var e=r(this),t=e.children(".vp-control-gallery-items-default");e.children(".vp-control-gallery-items").sortable({animation:150,draggable:".vp-control-gallery-items-img",onUpdate:function(){U(e)}}),e.on("click",".vp-control-gallery-items-remove",function(t){t.preventDefault(),r(this).parent().remove(),U(e)}),e.on("click",".vp-control-gallery-items-add",function(n){n.preventDefault();var a=e.data("wp-frame");a?a.open():wp.media?(a=wp.media({title:"Select or Upload Images",button:{text:"Use this images"},multiple:!0,library:{type:"image"}}),e.data("wp-frame",a),a.on("select",function(){var n=a.state().get("selection").models;n&&n.length&&(n.forEach(function(n){var a=n.changed.url;n.changed.sizes&&n.changed.sizes.thumbnail&&(a=n.changed.sizes.thumbnail.url);var i=t.children().clone();i.attr("data-image-id",n.id),i.children("img").attr("src",a),i.find('[data-meta="width"]').html(n.changed.width),i.find('[data-meta="height"]').html(n.changed.height),i.find('[data-meta="filename"]').html(n.changed.filename),i.find('[data-meta="editLink"]').html(n.changed.editLink),i.find('[data-meta="filesizeHumanReadable"]').html(n.changed.filesizeHumanReadable),e.find(".vp-control-gallery-items-add").before(i)}),U(e))}),a.open()):console.error("Can't access wp.media object.")}),e.on("click",".vp-control-gallery-items-img",function(t){t.preventDefault(),Q(e,r(this).attr("data-image-id"))}),e.on("change input",".vp-control-gallery-additional-data [name]",Object(a.a)(200,function(){var t=e.children(".vp-control-gallery-additional-data"),n=e.children("textarea").attr("name"),a=e.children(".vp-control-gallery-items").find(".vp-control-gallery-items-img.active").attr("data-image-id");if(a){var o=e.children(".vp-control-gallery-items").find('[data-image-id="'+a+'"]');t.find('[name*="'+n+'_additional_"]').each(function(){var e=r(this).attr("name").replace(n+"_additional_","").replace("[]",""),t=r(this).val()||"";"object"===i(t)&&(t=JSON.stringify(t)),o.find('[data-additional="'+e+'"]').html(t||"")}),U(e)}}))}),w.length)){var C=w.children(".vp-control-gallery-additional-data");r(document).on("mousedown",function(e){if(k){var t=e.target;r(t).closest(".vp-control-gallery-additional-data, .vp-control-gallery-items-img, .select2-vp-container").length||(C.removeClass("active"),w.children(".vp-control-gallery-items").find(".vp-control-gallery-items-img.active").removeClass("active"),k=w.find(".vp-control-gallery-additional-data.active").length)}})}var x=r('[name="vp_custom_css"]'),j=!1,S=!0;if(void 0!==p&&x.length){var O=function(e){$.css("height",Math.max(200,A+e.originalEvent.y-M)),z.setSize(null,Math.max(200,A+e.y-M)+"px")},E=function e(){u.off("mousemove",O),u.off("mouseup",e)};if(s&&s.classnames){var T=p.hint.css;p.hint.css=function(e){var t=e.getCursor(),n=T(e)||{from:t,to:e.getCursor(),list:[]},a=e.getTokenAt(t);return"top"===a.state.state&&0===a.string.indexOf(".")&&(n={from:p.Pos(t.line,a.start),to:p.Pos(t.line,a.end),list:[]},s.classnames.forEach(function(e){-1!==e.indexOf(a.string)&&n.list.push(e)})),n}}var z=p.fromTextArea(x[0],{mode:"css",theme:"eclipse",indentUnit:4,autoCloseTags:!0,autoCloseBrackets:!0,matchBrackets:!0,foldGutter:!0,lint:{options:{errors:!0,"box-model":!0,"display-property-grouping":!0,"duplicate-properties":!0,"known-properties":!0,"outline-none":!0},onUpdateLinting:function(e,t,n){var a=[];e.forEach(function(e){"error"===e.severity&&a.push(e)}),n.vcLintErrors=a,j||q(n.vcLintErrors,!0)}},lineNumbers:!0,lineWrapping:!0,scrollPastEnd:!0,emmet_active:!0,emmet:!0,styleActiveLine:!0,continueComments:!0,scrollbarStyle:"simple",extraKeys:{"Ctrl-Space":"autocomplete","Ctrl-/":"toggleComment","Cmd-/":"toggleComment","Alt-F":"findPersistent"},gutters:["CodeMirror-lint-markers","CodeMirror-linenumbers","CodeMirror-foldgutter"]});v(z),x.data("CodeMirrorInstance",z),z.on("change",function(){z.save(),x.change()}),z.on("keyup",function(e,t){var n=/^[a-zA-Z]$/.test(t.key);if(!e.state.completionActive||!n){var a=e.getTokenAt(e.getCursor());if("string"!==a.type&&"comment"!==a.type){var i=e.doc.getLine(e.doc.getCursor().line).substr(0,e.doc.getCursor().ch);(n||":"===t.key||" "===t.key&&/:\s+$/.test(i))&&e.showHint({completeSingle:!1})}}});var M,A,L=r(".CodeMirror-resizer").after(x),$=L.prev(".CodeMirror");L.on("mousedown",function(e){M=e.originalEvent.y,A=$.height(),u.on("mousemove",O),u.on("mouseup",E)})}var P=!1;u.on("click","#publish:not(.disabled)",function(e){if(P=!0,!j){var t=r(this),n=x.length&&x.data("CodeMirrorInstance");n&&n.vcLintErrors&&n.vcLintErrors.length&&(e.preventDefault(),t.addClass("disabled button-disabled button-primary-disabled"),setTimeout(function(){t.removeClass("disabled button-disabled button-primary-disabled")},1500),q(n.vcLintErrors,!1),r("html,body").animate({scrollTop:r("#vp_custom_css").offset().top-100},300),n.focus(),n.setCursor(n.vcLintErrors[0].from.line))}});var R=m.serialize();r(window).on("beforeunload",function(){if(!P)return R!==m.serialize()||void 0;P=!1}),u.on("change","#vp_custom_css_notice_prevent",function(){j=!0,r(this).closest(".notice").slideUp()})}function D(){var e="",t=r('[name="vp_controls_styles"]'),n=".vp-id-".concat(h),a=t.val();r('.vp-control-style [type="hidden"]').each(function(){var t=r(this),a=t.closest(".vp-control");if("none"!==a.css("display")){var i=(t.attr("data-style-mask")||"$").replace("$",a.find(t.attr("data-style-from")).val()),o=n+" "+t.attr("data-style-element"),l=t.attr("data-style-property");e&&(e+=" "),e+="".concat(o," { ").concat(l,": ").concat(i,"; }")}}),a!==e&&t.val(e).trigger("vp-fake-change")}function I(){d=!1,l=!1,_.submit()}function N(e,t){var n={id:t};return e.find('[data-image-id="'+t+'"]').find("[data-additional]").each(function(){var e=r(this),t=e.attr("data-additional");if(n[t]=e.html(),"true"===e.attr("data-to-json"))try{n[t]=JSON.parse(n[t])}catch(e){n[t]=""}}),n}function U(e){var t=[];e.children(".vp-control-gallery-items").find(".vp-control-gallery-items-img").each(function(){t.push(N(e,r(this).attr("data-image-id")))});var n=JSON.stringify(t),a=e.children("textarea");n!==a.val()&&a.val(n).change()}function Q(e,t){var n=e.children("textarea").attr("name"),a=e.children(".vp-control-gallery-additional-data"),i=a.children(".vp-control-gallery-additional-data-preview"),l=e.children(".vp-control-gallery-items").find('.vp-control-gallery-items-img[data-image-id="'+t+'"]'),c=N(e,t),s=function(e,t){var n={};return e.find('[data-image-id="'+t+'"]').find("[data-meta]").each(function(){n[r(this).attr("data-meta")]=r(this).html()}),n}(e,t);c&&Object.keys(c).forEach(function(t){var i=a.find('[name="'+n+"_additional_"+t+'"], [name="'+n+"_additional_"+t+'[]"]').val(c[t]||"");if(i.hasClass("vp-select2")){if(i.hasClass("vp-select2-tags")){var l=[],s=[];e.children(".vp-control-gallery-items").find(".vp-control-gallery-items-img").each(function(){var n=N(e,r(this).attr("data-image-id"));n&&void 0!==n[t]&&n[t]&&(l=o(new Set(o(l).concat(o(n[t])))))}),l.forEach(function(e){s.push(new window.Option(e,e,!1,!1))}),i.html(s.length?s:""),i.val(void 0!==c[t]&&c[t]?c[t]:"")}i.trigger("change")}}),i.find(".vp-control-gallery-additional-data-preview-image img").attr("src",l.children("img").attr("src")||""),i.find(".vp-control-gallery-additional-data-preview-name").html(s.filename),i.find(".vp-control-gallery-additional-data-preview-size").html(s.width+"x"+s.height+" ("+s.filesizeHumanReadable+")"),i.find(".vp-control-gallery-additional-data-preview-edit a").attr("href",s.editLink.replace("&","&")),l.siblings().removeClass("active"),l.addClass("active"),a.addClass("active"),k=w.find(".vp-control-gallery-additional-data.active").length}function q(e,t){if(S&&(t=!1,S=!1),s&&s.css_editor_error_notice){var n=!1;if(1===e.length?n=s.css_editor_error_notice.singular.replace("%d","1"):e.length>1&&(n=s.css_editor_error_notice.plural.replace("%d",String(e.length))),n){var a=x.prev("#vp_custom_css_notice");if(a.length||t||(a=r('<div class="notice notice-error inline" id="vp_custom_css_notice"></div>'),x.before(a)),!a.length)return;var i='<p class="notification-message">'.concat(n,"</p>")+'<p><input id="vp_custom_css_notice_prevent" type="checkbox">'+'<label for="vp_custom_css_notice_prevent">'.concat(s.css_editor_error_checkbox,"</label>")+"</p>";a.html(i)}else x.prev("#vp_custom_css_notice").remove()}}}(),u.hasClass("portfolio_page_visual-portfolio-settings")&&(u.on("change",'[name="vp_popup_gallery[show_caption]"]',C),f.on("ready",C),C())},30:function(e,t,n){"use strict";function a(e,t,n,a){var i,o=0;return"boolean"!=typeof t&&(a=n,n=t,t=void 0),function(){var r=this,l=Number(new Date)-o,c=arguments;function s(){o=Number(new Date),n.apply(r,c)}a&&!i&&s(),i&&clearTimeout(i),void 0===a&&l>e?s():!0!==t&&(i=setTimeout(a?function(){i=void 0}:s,void 0===a?e-l:e))}}function i(e,t,n){return void 0===n?a(e,t,!1):a(e,n,!1!==t)}n.d(t,"b",function(){return a}),n.d(t,"a",function(){return i})}});
|
assets/admin/js/vc-frontend.min.js
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Additional js for frontend VC
|
4 |
*
|
5 |
* Name : Visual Portfolio
|
6 |
-
* Version : 1.8.
|
7 |
* Author : nK https://nkdev.info
|
8 |
*/
|
9 |
var n=window.vc;jQuery(function(){void 0!==n&&n.events.on("shortcodes:add shortcodeView:updated",function(e){if("visual_portfolio"===e.settings.base){var t=n.$frame[0].contentWindow,r=!!t&&t.jQuery;if(r){var o=r(e.view.el).children(".vp-portfolio");o.length&&void 0!==o.vpf&&o.vpf()}}})})}});
|
3 |
* Additional js for frontend VC
|
4 |
*
|
5 |
* Name : Visual Portfolio
|
6 |
+
* Version : 1.8.2
|
7 |
* Author : nK https://nkdev.info
|
8 |
*/
|
9 |
var n=window.vc;jQuery(function(){void 0!==n&&n.events.on("shortcodes:add shortcodeView:updated",function(e){if("visual_portfolio"===e.settings.base){var t=n.$frame[0].contentWindow,r=!!t&&t.jQuery;if(r){var o=r(e.view.el).children(".vp-portfolio");o.length&&void 0!==o.vpf&&o.vpf()}}})})}});
|
assets/css/style.min.css
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
/*!
|
2 |
* Name : Visual Portfolio
|
3 |
-
* Version : 1.8.
|
4 |
* Author : nK https://nkdev.info
|
5 |
*/.vp-portfolio{position:relative;min-height:114px}.vp-portfolio,.vp-portfolio *{box-sizing:border-box}.vp-portfolio__items{transition:.3s height ease-in-out, .3s transform ease-in-out;will-change:height, transform}.vp-portfolio::after,.vp-portfolio__items::after{content:"";display:block;clear:both}.vp-portfolio__items-wrap,.vp-portfolio__filter-wrap,.vp-portfolio__pagination-wrap,.vp-portfolio__item{position:relative;overflow:hidden}.vp-portfolio__items-wrap,.vp-portfolio__filter-wrap,.vp-portfolio__pagination-wrap{visibility:hidden;opacity:0;transition:.3s opacity, .3s visibility;will-change:opacity, visibility}.vp-portfolio__item-wrap{position:relative;float:left;width:33.333%}.vp-portfolio__item .vp-portfolio__item-img img,.vp-portfolio__item .vp-portfolio__item-img a{display:block;width:100%;height:auto}.vp-portfolio__item-img{position:relative}.vp-portfolio__preloader-wrap{visibility:visible;opacity:1;transition:.3s opacity, .3s visibility;will-change:opacity, visibility}.vp-portfolio__preloader{position:absolute;left:50%;width:23px;height:24px;margin-top:45px;margin-left:-11px;-webkit-animation:vp-preloader 2s linear infinite;animation:vp-preloader 2s linear infinite}.vp-portfolio__preloader span{position:absolute;display:block;top:0;left:0;width:10px;height:7px;background-color:#8a8a8a}.vp-portfolio__preloader span:nth-of-type(1){height:14px}.vp-portfolio__preloader span:nth-of-type(2){left:12px}.vp-portfolio__preloader span:nth-of-type(3){top:16px}.vp-portfolio__preloader span:nth-of-type(4){top:9px;left:12px;height:14px}@-webkit-keyframes vp-preloader{0%,100%{opacity:.5}40%,60%{opacity:1}}@keyframes vp-preloader{0%,100%{opacity:.5}40%,60%{opacity:1}}[data-vp-layout="tiles"] .vp-portfolio__item-img img,[data-vp-layout="tiles"] .vp-portfolio__item-img{position:absolute;top:0;right:0;bottom:0;left:0}[data-vp-layout="tiles"] .vp-portfolio__item-img-wrap{position:relative;display:block;overflow:hidden}[data-vp-layout="tiles"] .vp-portfolio__item-img-wrap::before{content:"";display:block;margin-top:56%}[data-vp-layout="tiles"] .vp-portfolio__item-img img{width:100%;height:100%;-o-object-fit:cover;object-fit:cover;-o-object-position:50% 50%;object-position:50% 50%;font-family:"object-fit: cover; object-position: 50% 50%;"}[data-vp-layout="justified"] .vp-portfolio__items{transition:.2s height ease-in-out;will-change:height}[data-vp-layout="justified"] .vp-portfolio__item-wrap{float:left;top:0;left:0;transition:.2s transform ease-in-out, .2s width ease-in-out, .2s height ease-in-out;will-change:transform, width, height}[data-vp-layout="slider"] .vp-portfolio__item-wrap{float:none;width:auto}[data-vp-layout="slider"] .vp-portfolio__item-img-wrap{position:relative;display:block;overflow:hidden}[data-vp-layout="slider"] .vp-portfolio__item-img-wrap::before{content:"";display:block}[data-vp-layout="slider"] .vp-portfolio__item-img img{-o-object-fit:cover;object-fit:cover;-o-object-position:50% 50%;object-position:50% 50%;font-family:"object-fit: cover; object-position: 50% 50%;"}[data-vp-layout="slider"] .vp-portfolio__items-arrow{position:absolute;display:flex;align-items:center;justify-content:center;top:50%;width:40px;height:40px;margin-top:-20px;color:#6c7781;cursor:pointer;background-color:#fff;border-radius:50%;box-shadow:0 0 7px 2px rgba(0,0,0,0.04);opacity:.5;transition:.2s opacity ease-in-out, .2s box-shadow ease-in-out;will-change:opacity, box-shadow;z-index:1}[data-vp-layout="slider"] .vp-portfolio__items-arrow::after{content:"";position:absolute;display:block;top:-10px;right:-10px;bottom:-10px;left:-10px}[data-vp-layout="slider"] .vp-portfolio__items-arrow:hover{box-shadow:0 2px 15px 2px rgba(0,0,0,0.04);opacity:1}[data-vp-layout="slider"] .vp-portfolio__items-arrow-prev{left:10px}[data-vp-layout="slider"] .vp-portfolio__items-arrow-next{right:10px}[data-vp-layout="slider"][data-vp-slider-bullets="true"] .vp-portfolio__items-wrap{padding-bottom:25px}[data-vp-layout="slider"][data-vp-slider-bullets="true"] .vp-portfolio__items-wrap .vp-portfolio__items-arrow{margin-top:-32.5px}[data-vp-layout="slider"] .vp-portfolio__items-bullets{position:absolute;margin-bottom:-15px;text-align:center;z-index:1}[data-vp-layout="slider"] .vp-portfolio__items-bullets.swiper-pagination-bullets-dynamic{margin-bottom:-7px}[data-vp-layout="slider"] .vp-portfolio__items-bullets>span{position:relative;cursor:pointer;background-color:#6c7781;opacity:.2;transition:.15s opacity ease-in-out;will-change:opacity}[data-vp-layout="slider"] .vp-portfolio__items-bullets>span:hover{opacity:.5}[data-vp-layout="slider"] .vp-portfolio__items-bullets>span.swiper-pagination-bullet-active{opacity:1}[data-vp-layout="slider"] .vp-portfolio__items-bullets>span::after{content:"";position:absolute;display:block;top:-4px;right:-4px;bottom:-4px;left:-4px}.vp-portfolio.vp-portfolio__ready{min-height:initial}.vp-portfolio.vp-portfolio__ready .vp-portfolio__items-wrap,.vp-portfolio.vp-portfolio__ready .vp-portfolio__filter-wrap,.vp-portfolio.vp-portfolio__ready .vp-portfolio__pagination-wrap{visibility:visible;opacity:1}.vp-portfolio.vp-portfolio__ready .vp-portfolio__preloader-wrap{visibility:hidden;opacity:0}.vp-portfolio.vp-portfolio__ready .vp-portfolio__preloader-wrap .vp-portfolio__preloader{-webkit-animation:none;animation:none}.vp-single-filter.vp-single-filter__ready .vp-portfolio__filter-wrap{visibility:visible;opacity:1}.vp-portfolio.vp-portfolio__loading::before{content:"";position:absolute;display:block;top:0;right:0;bottom:0;left:0;z-index:1}.vp-portfolio.vp-portfolio__loading .vp-portfolio__items-wrap,.vp-portfolio.vp-portfolio__loading .vp-portfolio__filter-wrap,.vp-portfolio.vp-portfolio__loading .vp-portfolio__pagination-wrap{opacity:.5}.vp-portfolio__item-popup{display:none}.vp-pswp{z-index:1500}.vp-pswp .pswp__caption{background-color:rgba(0,0,0,0.75)}.vp-pswp .pswp__caption>div{max-width:600px;font-size:12px;color:#fff}.vp-pswp .pswp__caption h3{color:inherit}.vp-pswp .pswp__caption a{color:inherit}.vp-pswp .pswp__caption a:hover{opacity:.8}.vp-pswp .pswp__caption .vp-portfolio__item-meta-title{margin-top:0;margin-bottom:3px;font-size:14px;color:inherit}.vp-pswp .pswp__caption .vp-portfolio__item-meta-title a{text-decoration:none}.vp-pswp .pswp__preloader{position:absolute;right:0;bottom:0;z-index:1}.vp-pswp .vp-pswp-video{position:relative;display:flex;align-items:center;width:100%;max-width:1920px;height:100%;margin:0 auto;line-height:0;text-align:left;vertical-align:middle;z-index:1045}.vp-pswp .vp-pswp-video>div{position:relative;width:100%;height:0;padding-bottom:56.25%}.vp-pswp .vp-pswp-video>div iframe{position:absolute;top:0;left:0;width:100%;height:100%;margin:0}.vp-pswp .vp-pswp-video>div video{width:100% !important;height:auto !important;margin:0}img.visual-portfolio-lazyload:not(.lazyloaded){background-color:rgba(132,136,177,0.05)}.vp-portfolio__item-img-lazyloading::after{content:"";position:absolute;top:0;right:0;bottom:0;left:50%;width:500%;margin-left:-250%;background:linear-gradient(-70deg, rgba(255,255,255,0) 42%, rgba(255,255,255,0.85) 50%, rgba(255,255,255,0) 58%) 50% 50%;-webkit-animation:vp-lazyload-placeholder 3s linear infinite;animation:vp-lazyload-placeholder 3s linear infinite}@-webkit-keyframes vp-lazyload-placeholder{0%,80%{-webkit-transform:translate3d(-30%, 0, 0);transform:translate3d(-30%, 0, 0)}100%{-webkit-transform:translate3d(30%, 0, 0);transform:translate3d(30%, 0, 0)}}@keyframes vp-lazyload-placeholder{0%,80%{-webkit-transform:translate3d(-30%, 0, 0);transform:translate3d(-30%, 0, 0)}100%{-webkit-transform:translate3d(30%, 0, 0);transform:translate3d(30%, 0, 0)}}
|
1 |
/*!
|
2 |
* Name : Visual Portfolio
|
3 |
+
* Version : 1.8.2
|
4 |
* Author : nK https://nkdev.info
|
5 |
*/.vp-portfolio{position:relative;min-height:114px}.vp-portfolio,.vp-portfolio *{box-sizing:border-box}.vp-portfolio__items{transition:.3s height ease-in-out, .3s transform ease-in-out;will-change:height, transform}.vp-portfolio::after,.vp-portfolio__items::after{content:"";display:block;clear:both}.vp-portfolio__items-wrap,.vp-portfolio__filter-wrap,.vp-portfolio__pagination-wrap,.vp-portfolio__item{position:relative;overflow:hidden}.vp-portfolio__items-wrap,.vp-portfolio__filter-wrap,.vp-portfolio__pagination-wrap{visibility:hidden;opacity:0;transition:.3s opacity, .3s visibility;will-change:opacity, visibility}.vp-portfolio__item-wrap{position:relative;float:left;width:33.333%}.vp-portfolio__item .vp-portfolio__item-img img,.vp-portfolio__item .vp-portfolio__item-img a{display:block;width:100%;height:auto}.vp-portfolio__item-img{position:relative}.vp-portfolio__preloader-wrap{visibility:visible;opacity:1;transition:.3s opacity, .3s visibility;will-change:opacity, visibility}.vp-portfolio__preloader{position:absolute;left:50%;width:23px;height:24px;margin-top:45px;margin-left:-11px;-webkit-animation:vp-preloader 2s linear infinite;animation:vp-preloader 2s linear infinite}.vp-portfolio__preloader span{position:absolute;display:block;top:0;left:0;width:10px;height:7px;background-color:#8a8a8a}.vp-portfolio__preloader span:nth-of-type(1){height:14px}.vp-portfolio__preloader span:nth-of-type(2){left:12px}.vp-portfolio__preloader span:nth-of-type(3){top:16px}.vp-portfolio__preloader span:nth-of-type(4){top:9px;left:12px;height:14px}@-webkit-keyframes vp-preloader{0%,100%{opacity:.5}40%,60%{opacity:1}}@keyframes vp-preloader{0%,100%{opacity:.5}40%,60%{opacity:1}}[data-vp-layout="tiles"] .vp-portfolio__item-img img,[data-vp-layout="tiles"] .vp-portfolio__item-img{position:absolute;top:0;right:0;bottom:0;left:0}[data-vp-layout="tiles"] .vp-portfolio__item-img-wrap{position:relative;display:block;overflow:hidden}[data-vp-layout="tiles"] .vp-portfolio__item-img-wrap::before{content:"";display:block;margin-top:56%}[data-vp-layout="tiles"] .vp-portfolio__item-img img{width:100%;height:100%;-o-object-fit:cover;object-fit:cover;-o-object-position:50% 50%;object-position:50% 50%;font-family:"object-fit: cover; object-position: 50% 50%;"}[data-vp-layout="justified"] .vp-portfolio__items{transition:.2s height ease-in-out;will-change:height}[data-vp-layout="justified"] .vp-portfolio__item-wrap{float:left;top:0;left:0;transition:.2s transform ease-in-out, .2s width ease-in-out, .2s height ease-in-out;will-change:transform, width, height}[data-vp-layout="slider"] .vp-portfolio__item-wrap{float:none;width:auto}[data-vp-layout="slider"] .vp-portfolio__item-img-wrap{position:relative;display:block;overflow:hidden}[data-vp-layout="slider"] .vp-portfolio__item-img-wrap::before{content:"";display:block}[data-vp-layout="slider"] .vp-portfolio__item-img img{-o-object-fit:cover;object-fit:cover;-o-object-position:50% 50%;object-position:50% 50%;font-family:"object-fit: cover; object-position: 50% 50%;"}[data-vp-layout="slider"] .vp-portfolio__items-arrow{position:absolute;display:flex;align-items:center;justify-content:center;top:50%;width:40px;height:40px;margin-top:-20px;color:#6c7781;cursor:pointer;background-color:#fff;border-radius:50%;box-shadow:0 0 7px 2px rgba(0,0,0,0.04);opacity:.5;transition:.2s opacity ease-in-out, .2s box-shadow ease-in-out;will-change:opacity, box-shadow;z-index:1}[data-vp-layout="slider"] .vp-portfolio__items-arrow::after{content:"";position:absolute;display:block;top:-10px;right:-10px;bottom:-10px;left:-10px}[data-vp-layout="slider"] .vp-portfolio__items-arrow:hover{box-shadow:0 2px 15px 2px rgba(0,0,0,0.04);opacity:1}[data-vp-layout="slider"] .vp-portfolio__items-arrow-prev{left:10px}[data-vp-layout="slider"] .vp-portfolio__items-arrow-next{right:10px}[data-vp-layout="slider"][data-vp-slider-bullets="true"] .vp-portfolio__items-wrap{padding-bottom:25px}[data-vp-layout="slider"][data-vp-slider-bullets="true"] .vp-portfolio__items-wrap .vp-portfolio__items-arrow{margin-top:-32.5px}[data-vp-layout="slider"] .vp-portfolio__items-bullets{position:absolute;margin-bottom:-15px;text-align:center;z-index:1}[data-vp-layout="slider"] .vp-portfolio__items-bullets.swiper-pagination-bullets-dynamic{margin-bottom:-7px}[data-vp-layout="slider"] .vp-portfolio__items-bullets>span{position:relative;cursor:pointer;background-color:#6c7781;opacity:.2;transition:.15s opacity ease-in-out;will-change:opacity}[data-vp-layout="slider"] .vp-portfolio__items-bullets>span:hover{opacity:.5}[data-vp-layout="slider"] .vp-portfolio__items-bullets>span.swiper-pagination-bullet-active{opacity:1}[data-vp-layout="slider"] .vp-portfolio__items-bullets>span::after{content:"";position:absolute;display:block;top:-4px;right:-4px;bottom:-4px;left:-4px}.vp-portfolio.vp-portfolio__ready{min-height:initial}.vp-portfolio.vp-portfolio__ready .vp-portfolio__items-wrap,.vp-portfolio.vp-portfolio__ready .vp-portfolio__filter-wrap,.vp-portfolio.vp-portfolio__ready .vp-portfolio__pagination-wrap{visibility:visible;opacity:1}.vp-portfolio.vp-portfolio__ready .vp-portfolio__preloader-wrap{visibility:hidden;opacity:0}.vp-portfolio.vp-portfolio__ready .vp-portfolio__preloader-wrap .vp-portfolio__preloader{-webkit-animation:none;animation:none}.vp-single-filter.vp-single-filter__ready .vp-portfolio__filter-wrap{visibility:visible;opacity:1}.vp-portfolio.vp-portfolio__loading::before{content:"";position:absolute;display:block;top:0;right:0;bottom:0;left:0;z-index:1}.vp-portfolio.vp-portfolio__loading .vp-portfolio__items-wrap,.vp-portfolio.vp-portfolio__loading .vp-portfolio__filter-wrap,.vp-portfolio.vp-portfolio__loading .vp-portfolio__pagination-wrap{opacity:.5}.vp-portfolio__item-popup{display:none}.vp-pswp{z-index:1500}.vp-pswp .pswp__caption{background-color:rgba(0,0,0,0.75)}.vp-pswp .pswp__caption>div{max-width:600px;font-size:12px;color:#fff}.vp-pswp .pswp__caption h3{color:inherit}.vp-pswp .pswp__caption a{color:inherit}.vp-pswp .pswp__caption a:hover{opacity:.8}.vp-pswp .pswp__caption .vp-portfolio__item-meta-title{margin-top:0;margin-bottom:3px;font-size:14px;color:inherit}.vp-pswp .pswp__caption .vp-portfolio__item-meta-title a{text-decoration:none}.vp-pswp .pswp__preloader{position:absolute;right:0;bottom:0;z-index:1}.vp-pswp .vp-pswp-video{position:relative;display:flex;align-items:center;width:100%;max-width:1920px;height:100%;margin:0 auto;line-height:0;text-align:left;vertical-align:middle;z-index:1045}.vp-pswp .vp-pswp-video>div{position:relative;width:100%;height:0;padding-bottom:56.25%}.vp-pswp .vp-pswp-video>div iframe{position:absolute;top:0;left:0;width:100%;height:100%;margin:0}.vp-pswp .vp-pswp-video>div video{width:100% !important;height:auto !important;margin:0}img.visual-portfolio-lazyload:not(.lazyloaded){background-color:rgba(132,136,177,0.05)}.vp-portfolio__item-img-lazyloading::after{content:"";position:absolute;top:0;right:0;bottom:0;left:50%;width:500%;margin-left:-250%;background:linear-gradient(-70deg, rgba(255,255,255,0) 42%, rgba(255,255,255,0.85) 50%, rgba(255,255,255,0) 58%) 50% 50%;-webkit-animation:vp-lazyload-placeholder 3s linear infinite;animation:vp-lazyload-placeholder 3s linear infinite}@-webkit-keyframes vp-lazyload-placeholder{0%,80%{-webkit-transform:translate3d(-30%, 0, 0);transform:translate3d(-30%, 0, 0)}100%{-webkit-transform:translate3d(30%, 0, 0);transform:translate3d(30%, 0, 0)}}@keyframes vp-lazyload-placeholder{0%,80%{-webkit-transform:translate3d(-30%, 0, 0);transform:translate3d(-30%, 0, 0)}100%{-webkit-transform:translate3d(30%, 0, 0);transform:translate3d(30%, 0, 0)}}
|
assets/js/script-preview.min.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
!function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=160)}({160:function(e,t,r){e.exports=r(161)},161:function(e,t){
|
2 |
/*!
|
3 |
* Name : Visual Portfolio
|
4 |
-
* Version : 1.8.
|
5 |
* Author : nK https://nkdev.info
|
6 |
*/
|
7 |
!function(e){var t=jQuery("#vp_preview > .vp-portfolio");t.on("click",".vp-portfolio__item, .vp-portfolio__item a",function(e){e.preventDefault(),e.stopPropagation()}),window.iFrameResizer={heightCalculationMethod:function(){return t.outerHeight(!0)}}}()}});
|
1 |
!function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=160)}({160:function(e,t,r){e.exports=r(161)},161:function(e,t){
|
2 |
/*!
|
3 |
* Name : Visual Portfolio
|
4 |
+
* Version : 1.8.2
|
5 |
* Author : nK https://nkdev.info
|
6 |
*/
|
7 |
!function(e){var t=jQuery("#vp_preview > .vp-portfolio");t.on("click",".vp-portfolio__item, .vp-portfolio__item a",function(e){e.preventDefault(),e.stopPropagation()}),window.iFrameResizer={heightCalculationMethod:function(){return t.outerHeight(!0)}}}()}});
|
assets/js/script.min.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
!function(t){var i={};function e(o){if(i[o])return i[o].exports;var s=i[o]={i:o,l:!1,exports:{}};return t[o].call(s.exports,s,s.exports,e),s.l=!0,s.exports}e.m=t,e.c=i,e.d=function(t,i,o){e.o(t,i)||Object.defineProperty(t,i,{enumerable:!0,get:o})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,i){if(1&i&&(t=e(t)),8&i)return t;if(4&i&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(e.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&i&&"string"!=typeof t)for(var s in t)e.d(o,s,function(i){return t[i]}.bind(null,s));return o},e.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,i){return Object.prototype.hasOwnProperty.call(t,i)},e.p="",e(e.s=162)}({155:function(t,i,e){var o=e(164),s=o.requestAnimationFrame||o.webkitRequestAnimationFrame||o.mozRequestAnimationFrame||function(t){var i=+new Date,e=Math.max(0,16-(i-n)),o=setTimeout(t,e);return n=i,o},n=+new Date;var a=o.cancelAnimationFrame||o.webkitCancelAnimationFrame||o.mozCancelAnimationFrame||clearTimeout;Function.prototype.bind&&(s=s.bind(o),a=a.bind(o)),(t.exports=s).cancel=a},162:function(t,i,e){t.exports=e(163)},163:function(t,i,e){"use strict";e.r(i);var o=e(30),s=e(155),n=e.n(s);function a(t){return function(t){if(Array.isArray(t)){for(var i=0,e=new Array(t.length);i<t.length;i++)e[i]=t[i];return e}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function p(t,i){for(var e=0;e<i.length;e++){var o=i[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}
|
2 |
/*!
|
3 |
* Name : Visual Portfolio
|
4 |
-
* Version : 1.8.
|
5 |
* Author : nK https://nkdev.info
|
6 |
*/
|
7 |
var l=jQuery,d=window,c=d.VPData,f=d.objectFitImages,v=d.PhotoSwipe,h=d.PhotoSwipeUI_Default,u=c.__,m=c.settingsPopupGallery,_=l(window),y=0,w=0;function g(){y=_.width(),w=_.height()}g(),_.on("resize load orientationchange",g);var b=[320,576,768,992,1200];void 0!==f&&(f(".vp-portfolio img:not(.visual-portfolio-lazyload)"),l(document).on("lazybeforeunveil",function(t){var i=l(t.target);i.hasClass("visual-portfolio-lazyload")&&i.one("load",function(){f(i[0])})}));var x=function(){function t(i,e){!function(t,i){if(!(t instanceof i))throw new TypeError("Cannot call a class as a function")}(this,t);this.$item=i;for(var o=i[0].className.split(/\s+/),s=0;s<o.length;s++)o[s]&&/^vp-uid-/.test(o[s])&&(this.uid=o[s].replace(/^vp-uid-/,"")),o[s]&&/^vp-id-/.test(o[s])&&(this.id=o[s].replace(/^vp-id-/,""));this.uid?(this.$items_wrap=i.find(".vp-portfolio__items"),this.$pagination=i.find(".vp-portfolio__pagination-wrap"),this.$filter=i.find(".vp-portfolio__filter-wrap"),this.id&&(this.$filter=this.$filter.add(".vp-single-filter.vp-id-".concat(this.id," .vp-portfolio__filter-wrap"))),this.userOptions=e,this.firstRun=!0,this.init()):console.error(u.couldnt_retrieve_vp)}return function(t,i,e){i&&p(t.prototype,i),e&&p(t,e)}(t,[{key:"emitEvent",value:function(t,i){i=i?[this].concat(i):[this],this.$item.trigger("".concat(t,".vpf"),i),this.$item.trigger("".concat(t,".vpf-uid-").concat(this.uid),i)}},{key:"init",value:function(){this.firstRun||this.destroy(),this.destroyed=!1,this.initOptions(),this.initEvents(),this.prepareLazyLoad(),this.initLayout(),this.initCustomColors(),this.initPhotoswipe(),this.emitEvent("init"),this.$item.addClass("vp-portfolio__ready"),this.id&&l(".vp-single-filter.vp-id-".concat(this.id)).addClass("vp-single-filter__ready"),this.initIsotope(),this.initFjGallery(),this.initSwiper(),this.resized(),this.firstRun=!1}},{key:"resized",value:function(){if("function"==typeof window.Event)window.dispatchEvent(new window.Event("resize"));else{var t=window.document.createEvent("UIEvents");t.initUIEvent("resize",!0,!1,window,0),window.dispatchEvent(t)}this.emitEvent("resized")}},{key:"destroy",value:function(){this.$item.removeClass("vp-portfolio__ready"),this.id&&l(".vp-single-filter.vp-id-".concat(this.id)).removeClass("vp-single-filter__ready"),this.destroyEvents(),this.removeStyle(),this.renderStyle(),this.destroyPhotoswipe(),this.destroyIsotope(),this.destroyFjGallery(),this.destroySwiper(),this.emitEvent("destroy"),this.destroyed=!0}},{key:"addStyle",value:function(t,i,e){e=e||"";var o=this.uid;this.stylesList||(this.stylesList={}),void 0===this.stylesList[o]&&(this.stylesList[o]={}),void 0===this.stylesList[o][e]&&(this.stylesList[o][e]={}),void 0===this.stylesList[o][e][t]&&(this.stylesList[o][e][t]={}),this.stylesList[o][e][t]=l.extend(this.stylesList[o][e][t],i),this.emitEvent("addStyle",[t,i,e,this.stylesList])}},{key:"removeStyle",value:function(t,i,e){e=e||"";var o=this.uid;this.stylesList||(this.stylesList={}),void 0===this.stylesList[o]||t||(this.stylesList[o]={}),void 0!==this.stylesList[o]&&void 0!==this.stylesList[o][e]&&void 0!==this.stylesList[o][e][t]&&t&&delete this.stylesList[o][e][t],this.emitEvent("removeStyle",[t,i,this.stylesList])}},{key:"renderStyle",value:function(){var t=this,i=t.uid,e="";t.stylesList||(t.stylesList={}),void 0!==t.stylesList[i]&&Object.keys(t.stylesList[i]).forEach(function(o){o&&(e+="@media ".concat(o," {")),Object.keys(t.stylesList[i][o]).forEach(function(s){e+=".vp-uid-".concat(i," ").concat(s," {"),Object.keys(t.stylesList[i][o][s]).forEach(function(n){e+="".concat(n,":").concat(t.stylesList[i][o][s][n],";")}),e+="}"}),o&&(e+="}")});var o=l("#vp-style-".concat(i));o.length||(o=l("<style>").attr("id","vp-style-".concat(i)).appendTo("head")),o.html(e),t.emitEvent("renderStyle",[e,t.stylesList,o])}},{key:"firstToLowerCase",value:function(t){return t.substr(0,1).toLowerCase()+t.substr(1)}},{key:"initOptions",value:function(t){var i=this;i.defaults={layout:"tile",itemsGap:0,tilesType:"3|1,1|",masonryColumns:3,justifiedRowHeight:250,justifiedRowHeightTolerance:.25,pagination:"load-more"},t&&(i.userOptions=t);var e=i.$item[0].dataset,o={};Object.keys(e).forEach(function(t){t&&"vp"===t.substring(0,2)&&(o[i.firstToLowerCase(t.substring(2))]=e[t])}),i.options=l.extend({},i.defaults,o,i.userOptions),i.emitEvent("initOptions")}},{key:"isCrossLine",value:function(t,i,e,o){var s=(o.x-e.x)*(t.y-e.y)-(o.y-e.y)*(t.x-e.x),n=(o.x-e.x)*(i.y-e.y)-(o.y-e.y)*(i.x-e.x),a=(i.x-t.x)*(e.y-t.y)-(i.y-t.y)*(e.x-t.x),r=(i.x-t.x)*(o.y-t.y)-(i.y-t.y)*(o.x-t.x);return s*n<=0&&a*r<=0}},{key:"initEvents",value:function(){var t,i=this,e=".vpf-uid-".concat(i.uid);function o(){var t=i.$item[0].getBoundingClientRect(),e=t.left,o=y-t.right,s=parseFloat(i.$item.css("margin-left")||0),n=parseFloat(i.$item.css("margin-right")||0);i.$item.css({"margin-left":s-e,"margin-right":n-o})}if(i.$item.hasClass("vp-portfolio__stretch")&&(_.on("load".concat(e," resize").concat(e," orientationchange").concat(e),function(){o()}),o()),"fly"===i.options.itemsStyle){var s={};_.on("mousemove".concat(e),function(t){s={x:t.clientX,y:t.clientY}}),i.$item.on("mouseenter".concat(e," mouseleave").concat(e),".vp-portfolio__item",function(t){var e=l(this),o=e[0].getBoundingClientRect(),n=e.find(".vp-portfolio__item-overlay"),a="mouseenter"===t.type,r="0%",p="0%",d={x:t.clientX,y:t.clientY},c=i.isCrossLine({x:o.left,y:o.top},{x:o.left+o.width,y:o.top},d,s),f=i.isCrossLine({x:o.left,y:o.top+o.height},{x:o.left+o.width,y:o.top+o.height},d,s),v=i.isCrossLine({x:o.left,y:o.top},{x:o.left,y:o.top+o.height},d,s),h=i.isCrossLine({x:o.left+o.width,y:o.top},{x:o.left+o.width,y:o.top+o.height},d,s);if(!(c||f||v||h)){var u=(o.width/2-d.x+o.left)/(o.width/2),m=(o.height/2-d.y+o.top)/(o.height/2);Math.abs(u)>Math.abs(m)?u>0?v=!0:h=!0:m>0?c=!0:f=!0}c?p="-10".concat(p):f?p="10".concat(p):v?r="-10".concat(r):h&&(r="10".concat(r)),a&&(n.css({transition:"none",transform:"translateX(".concat(r,") translateY(").concat(p,") translateZ(0)")}),n[0].offsetHeight),n.css({transition:".2s transform ease-in-out",transform:"translateX(".concat(a?"0%":r,") translateY(").concat(a?"0%":p,") translateZ(0)")})})}i.$filter.on("click".concat(e),".vp-filter .vp-filter__item a",function(t){t.preventDefault();var e=l(this);i.loading||e.closest(".vp-filter__item").addClass("vp-filter__item-active").siblings().removeClass("vp-filter__item-active"),i.loadNewItems(e.attr("href"),!0)}),i.$item.on("click".concat(e),".vp-pagination .vp-pagination__item a",function(t){t.preventDefault();var e=l(this);e.hasClass("vp-pagination__no-more")&&"paged"!==i.options.pagination||i.loadNewItems(e.attr("href"),"paged"===i.options.pagination)}),i.$item.on("click".concat(e),".vp-portfolio__items .vp-portfolio__item-meta-category a",function(t){t.preventDefault(),t.stopPropagation(),i.loadNewItems(l(this).attr("href"),!0)});var n=250;function a(){var t=i.$item[0].getBoundingClientRect();t.bottom>0&&t.bottom-n<=w&&i.loadNewItems(i.options.nextPageUrl,!1,function(){a()})}"infinite"===i.options.pagination&&(_.on("load".concat(e," scroll").concat(e," resize").concat(e," orientationchange").concat(e),function(){clearTimeout(t),t=setTimeout(function(){a()},60)}),a()),i.$item.on("transitionend".concat(e),".vp-portfolio__items",function(t){t.currentTarget===t.target&&i.resized()}),i.emitEvent("initEvents")}},{key:"destroyEvents",value:function(){var t=".vpf-uid-".concat(this.uid);this.$item.off(t),this.$filter.off(t),_.off(t),this.emitEvent("destroyEvents")}},{key:"prepareLazyLoad",value:function(){var t=window.lazySizesConfig;if(t){var i={"data-vpf-src":t.srcAttr,"data-vpf-sizes":t.sizesAttr,"data-vpf-srcset":t.srcsetAttr};this.$items_wrap.find(".visual-portfolio-lazyload:not(.".concat(t.lazyClass,")")).each(function(){var e=l(this);Object.keys(i).forEach(function(t){i[t]&&t!==i[t]&&e.attr(t)&&(e.attr(i[t],e.attr(t)),e.removeAttr(t))}),e.addClass(t.lazyClass)})}}},{key:"getTilesSettings",value:function(){var t=this.options.tilesType.split(/[:|]/);return void 0===t[t.length-1]||t[t.length-1]||t.pop(),t}},{key:"initLayout",value:function(){if(this.options.layout)switch(this.options.layout){case"tiles":var t=this.getTilesSettings(),i=parseInt(t[0],10)||1;if(t.shift(),this.addStyle(".vp-portfolio__item-wrap",{width:"".concat(100/i,"%")}),t&&t.length)for(var e=0;e<t.length;e++){var o=t[e].split(","),s=parseFloat(o[0])||1,n=parseFloat(o[1])||1,a=".vp-portfolio__item-wrap";t.length>1&&(a+=":nth-of-type(".concat(t.length,"n+").concat(e+1,")")),s&&1!==s&&this.addStyle(a,{width:"".concat(100*s/i,"%")}),this.addStyle("".concat(a," .vp-portfolio__item-img-wrap::before"),{"margin-top":"".concat(100*n,"%")})}for(var r=i-1,p=Math.min(b.length-1,r);p>=0;p--)r>0&&void 0!==b[p]&&(this.addStyle(".vp-portfolio__item-wrap",{width:"".concat(100/r,"%")},"screen and (max-width: ".concat(b[p],"px)")),this.addStyle(".vp-portfolio__item-wrap:nth-of-type(n)",{width:"".concat(100/r,"%")},"screen and (max-width: ".concat(b[p],"px)"))),r-=1;break;case"masonry":this.addStyle(".vp-portfolio__item-wrap",{width:"".concat(100/this.options.masonryColumns,"%")});for(var l=this.options.masonryColumns-1,d=Math.min(b.length-1,l);d>=0;d--)l>0&&void 0!==b[d]&&this.addStyle(".vp-portfolio__item-wrap",{width:"".concat(100/l,"%")},"screen and (max-width: ".concat(b[d],"px)")),l-=1;case"justified":break;case"slider":"auto"!==this.options.sliderItemsHeight&&("auto"===this.options.sliderSlidesPerView?this.options.sliderItemsHeight.indexOf("%")===this.options.sliderItemsHeight.length-1?(this.addStyle(".vp-portfolio__items-wrap::before",{content:'""',display:"block",width:"100%","margin-top":isNaN(this.options.sliderItemsHeight)?this.options.sliderItemsHeight:"".concat(this.options.sliderItemsHeight,"px")}),this.addStyle(".vp-portfolio__items",{position:"absolute",top:0,left:0,right:0,bottom:0}),this.addStyle(".vp-portfolio__item-wrap",{height:"true"===this.options.sliderBullets?"calc( 100% - 25px )":"100%"}),this.addStyle(".vp-portfolio__item, .vp-portfolio__item-img-wrap, .vp-portfolio__item-img, .vp-portfolio__item-wrap .vp-portfolio__item .vp-portfolio__item-img a, .vp-portfolio__item-wrap .vp-portfolio__item .vp-portfolio__item-img img",{width:"auto",height:"100%"})):this.addStyle(".vp-portfolio__item .vp-portfolio__item-img img",{width:"auto",height:isNaN(this.options.sliderItemsHeight)?this.options.sliderItemsHeight:"".concat(this.options.sliderItemsHeight,"px")}):(this.addStyle(".vp-portfolio__item-img-wrap::before",{"margin-top":isNaN(this.options.sliderItemsHeight)?this.options.sliderItemsHeight:"".concat(this.options.sliderItemsHeight,"px")}),this.addStyle(".vp-portfolio__item-img img",{position:"absolute",top:0,right:0,bottom:0,left:0}),this.addStyle(".vp-portfolio__item-img",{position:"absolute",top:0,right:0,bottom:0,left:0}),this.addStyle(".vp-portfolio__item .vp-portfolio__item-img img",{width:"100%",height:"100%"})))}var c=parseInt(this.options.itemsGap,10);if(c&&("tiles"===this.options.layout||"masonry"===this.options.layout)){this.addStyle(".vp-portfolio__items",{"margin-left":"-".concat(c,"px"),"margin-top":"-".concat(c,"px")});var f="".concat(c,"px");this.addStyle(".vp-portfolio__item-wrap .vp-portfolio__item",{"margin-left":f,"margin-top":f}),"tiles"===this.options.layout&&(this.addStyle(".vp-portfolio__item-wrap .vp-portfolio__item-img-wrap",{"margin-left":"-".concat(f),"margin-top":"-".concat(f)}),this.addStyle(".vp-portfolio__item-wrap .vp-portfolio__item-img",{left:f,top:f}))}this.renderStyle(),this.emitEvent("initLayout")}},{key:"initCustomColors",value:function(){var t=this;t.$item.find("[data-vp-bg-color]").each(function(){var i=l(this).attr("data-vp-bg-color");t.addStyle('[data-vp-bg-color="'.concat(i,'"]'),{"background-color":"".concat(i," !important")})}),t.$item.find("[data-vp-text-color]").each(function(){var i=l(this).attr("data-vp-text-color");t.addStyle('[data-vp-text-color="'.concat(i,'"]'),{color:"".concat(i," !important")})}),t.renderStyle(),t.emitEvent("initCustomColors")}},{key:"initIsotope",value:function(t){!this.$items_wrap.isotope||"tiles"!==this.options.layout&&"masonry"!==this.options.layout||(this.$items_wrap.isotope(t||{itemSelector:".vp-portfolio__item-wrap",layoutMode:"masonry",transitionDuration:"0.3s",percentPosition:!0}),this.emitEvent("initIsotope",[t]))}},{key:"destroyIsotope",value:function(){this.$items_wrap.data("isotope")&&(this.$items_wrap.isotope("destroy"),this.emitEvent("destroyIsotope"))}},{key:"initFjGallery",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.$items_wrap.fjGallery&&"justified"===this.options.layout&&(this.$items_wrap.fjGallery(!1!==t?t:{gutter:parseFloat(this.options.itemsGap)||0,rowHeight:parseFloat(this.options.justifiedRowHeight)||200,rowHeightTolerance:parseFloat(this.options.justifiedRowHeightTolerance)||0,itemSelector:".vp-portfolio__item-wrap",imageSelector:".vp-portfolio__item-img img"},i),this.emitEvent("initFjGallery",[t]))}},{key:"destroyFjGallery",value:function(){this.$items_wrap.data("fjGallery")&&(this.$items_wrap.fjGallery("destroy"),this.emitEvent("destroyFjGallery"))}},{key:"initSwiper",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if("slider"===this.options.layout&&void 0!==window.Swiper){var i=this.$items_wrap.parent();i.addClass("swiper-container"),this.$items_wrap.addClass("swiper-wrapper"),this.$items_wrap.children().addClass("swiper-slide"),"true"!==this.options.sliderArrows||i.find(".vp-portfolio__items-arrow").length||i.append('\n <div class="vp-portfolio__items-arrow vp-portfolio__items-arrow-prev"><span class="'.concat(this.options.sliderArrowsIconPrev,'"></span></div>\n <div class="vp-portfolio__items-arrow vp-portfolio__items-arrow-next"><span class="').concat(this.options.sliderArrowsIconNext,'"></span></div>\n ')),"true"!==this.options.sliderBullets||i.find(".vp-portfolio__items-bullets").length||i.append('<div class="vp-portfolio__items-bullets"></div>');var e=this.options.sliderSlidesPerView||3,o={};if(!isNaN(e))for(var s=e-1,n=Math.min(b.length-1,s);n>=0;n--)s>0&&void 0!==b[n]&&(o[b[n]]={slidesPerView:s}),s-=1;new window.Swiper(i[0],t||{speed:1e3*(parseFloat(this.options.sliderSpeed)||0),autoHeight:"auto"===this.options.sliderItemsHeight,effect:this.options.sliderEffect||"slide",spaceBetween:parseFloat(this.options.itemsGap)||0,centeredSlides:"true"===this.options.sliderCenteredSlides,freeMode:"true"===this.options.sliderFreeMode,loop:"true"===this.options.sliderLoop,autoplay:parseFloat(this.options.sliderAutoplay)>0&&{delay:1e3*parseFloat(this.options.sliderAutoplay),disableOnInteraction:!1},navigation:"true"===this.options.sliderArrows&&{nextEl:".vp-portfolio__items-arrow-next",prevEl:".vp-portfolio__items-arrow-prev"},pagination:"true"===this.options.sliderBullets&&{el:".vp-portfolio__items-bullets",clickable:!0,dynamicBullets:"true"===this.options.sliderBulletsDynamic,renderBullet:function(t,i){return'<span class="'.concat(i,'" data-bullet-index="').concat(t,'" data-bullet-number="').concat(t+1,'"></span>')}},slidesPerView:e,breakpoints:o,keyboard:!0,grabCursor:!0}),this.emitEvent("initSwiper",[t])}}},{key:"destroySwiper",value:function(){var t=this.$items_wrap.parent(),i=t[0].swiper;i&&(i.destroy(),t.removeClass("swiper-container"),this.$items_wrap.removeClass("swiper-wrapper"),this.$items_wrap.children().removeClass("swiper-slide"),t.find(".vp-portfolio__items-arrow, .vp-portfolio__items-bullets").remove(),this.emitEvent("destroySwiper"))}},{key:"initPhotoswipe",value:function(){var t=this;if(void 0!==v&&t.options.itemsClickAction&&"popup_gallery"===t.options.itemsClickAction&&!t.$item.closest("#vp_preview").length){if(!l(".vp-pswp").length){var i="\n <div class=\"pswp vp-pswp vp-pswp-uid-'}".concat(t.uid,'" tabindex="-1" role="dialog" aria-hidden="true">\n <div class="pswp__bg"></div>\n <div class="pswp__scroll-wrap">\n <div class="pswp__container">\n <div class="pswp__item"></div>\n <div class="pswp__item"></div>\n <div class="pswp__item"></div>\n </div>\n <div class="pswp__ui pswp__ui--hidden">\n <div class="pswp__top-bar">\n <div class="pswp__counter"></div>\n <a class="pswp__button pswp__button--close" title="').concat(u.pswp_close,'"></a>\n <a class="pswp__button pswp__button--share" title="').concat(u.pswp_share,'"></a>\n <a class="pswp__button pswp__button--fs" title="').concat(u.pswp_fs,'"></a>\n <a class="pswp__button pswp__button--zoom" title="').concat(u.pswp_zoom,'"></a>\n </div>\n <div class="pswp__preloader">\n <div class="pswp__preloader__icn">\n <div class="pswp__preloader__cut">\n <div class="pswp__preloader__donut"></div>\n </div>\n </div>\n </div>\n <div class="pswp__share-modal pswp__share-modal--hidden pswp__single-tap">\n <div class="pswp__share-tooltip"></div>\n </div>\n <a class="pswp__button pswp__button--arrow--left" title="').concat(u.pswp_prev,'"></a>\n <a class="pswp__button pswp__button--arrow--right" title="').concat(u.pswp_next,'"></a>\n <div class="pswp__caption">\n <div class="pswp__caption__center"></div>\n </div>\n </div>\n </div>\n </div>\n ');l("body").append(i)}var e=function(i,e,o,n){var a=l(".vp-pswp")[0],r=function(t){var i,e,o,s,n,a=[];return l(t).find(".vp-portfolio__item-wrap").each(function(){if(i=l(this).find(".vp-portfolio__item-popup"),e=(i.attr("data-vp-popup-img-size")||"1920x1080").split("x"),o=(i.attr("data-vp-popup-video-size")||"1920x1080").split("x"),n=i.attr("data-vp-popup-video"))s={html:n,vw:parseInt(o[0],10),vh:parseInt(o[1],10)};else{s={src:i.attr("data-vp-popup-img"),w:parseInt(e[0],10),h:parseInt(e[1],10)};var t=i.html();t&&(s.title=t),s.el=this;var r=i.attr("data-vp-popup-md-img")||s.src;r&&(e=(i.attr("data-vp-popup-md-img-size")||i.attr("data-vp-popup-img-size")||"1920x1080").split("x"),s.m={src:r,w:parseInt(e[0],10),h:parseInt(e[1],10)}),s.o={src:s.src,w:s.w,h:s.h}}a.push(s)}),a}(e),p={captionAndToolbarShowEmptyCaptions:!1,closeEl:m.show_close_button,captionEl:m.show_caption,fullscreenEl:m.show_fullscreen_button,zoomEl:m.show_zoom_button,shareEl:m.show_share_button,counterEl:m.show_counter,arrowEl:m.show_arrows,shareButtons:[{id:"facebook",label:u.pswp_share_fb,url:"https://www.facebook.com/sharer/sharer.php?u={{url}}"},{id:"twitter",label:u.pswp_share_tw,url:"https://twitter.com/intent/tweet?text={{text}}&url={{url}}"},{id:"pinterest",label:u.pswp_share_pin,url:"https://www.pinterest.com/pin/create/button/?url={{url}}&media={{image_url}}&description={{text}}"}],bgOpacity:1,tapToClose:!0,tapToToggleControls:!1,showHideOpacity:!0,galleryUID:t.uid};if(n)if(p.galleryPIDs){for(var d=0;d<r.length;d++)if(r[d].pid===i){p.index=d;break}}else p.index=parseInt(i,10)-1;else p.index=parseInt(i,10);if(!isNaN(p.index)){o&&(p.showAnimationDuration=0);var c,f,_=new v(a,h,r,p),y=!1,w=!0;_.listen("beforeResize",function(){c=_.viewportSize.x*window.devicePixelRatio,y&&c<1e3?(y=!1,f=!0):!y&&c>=1e3&&(y=!0,f=!0),f&&!w&&_.invalidateCurrItems(),w&&(w=!1),f=!1}),_.listen("gettingData",function(t,i){i.html||(y?(i.src=i.o.src,i.w=i.o.w,i.h=i.o.h):(i.src=i.m.src,i.w=i.m.w,i.h=i.m.h))}),_.listen("resize",function(){s(this)}),_.listen("afterChange",function(){s(this)}),_.listen("beforeChange",function(){if(this&&this.itemHolders.length){var t=this.getCurrentIndex();this.itemHolders.forEach(function(i){if(i.el&&i.index!==t){var e=l(i.el).find(".vp-pswp-video iframe");e.length&&e.attr("src",e.attr("src"))}})}}),_.listen("destroy",function(){this&&this.itemHolders.length&&this.itemHolders.forEach(function(t){t.el&&l(t.el).find(".vp-pswp-video").remove()})}),_.init()}};t.$item.on("click.vpf-uid-".concat(t.uid),".vp-portfolio__item",function(i){i.preventDefault();var o=0,s=this;t.$item.find(".vp-portfolio__item").each(function(t){return this!==s||(o=t,!1)}),e(o,t.$item[0])});var o=function(){var t=window.location.hash.substring(1),i={};if(t.length<5)return i;for(var e=t.split("&"),o=0;o<e.length;o++)if(e[o]){var s=e[o].split("=");s.length<2||(i[s[0]]=s[1])}return i}();o.pid&&o.gid===t.uid&&e(o.pid,t.$item[0],!0,!0)}function s(t,i){if(void 0!==i){var e,o=t.viewportSize.x,n=t.viewportSize.y,a=i.vw/i.vh,r=l(i.container),p=t.options.barsSize,d=0,c=0;p&&(d=p.top&&"auto"!==p.top?p.top:0,c=p.bottom&&"auto"!==p.bottom?p.bottom:0),e=a>o/(n-=d+c)?o:n*a,r.find(".vp-pswp-video").css("max-width",e),r.css({top:d,bottom:c})}else t&&t.itemHolders.length&&t.itemHolders.forEach(function(i){i.item&&i.item.html&&s(t,i.item)})}}},{key:"destroyPhotoswipe",value:function(){this.$item.off("click.vpf-uid-".concat(this.uid)),l(".vp-pswp-uid-".concat(this.uid)).remove()}},{key:"addItems",value:function(t,i){var e=this,o=e.$items_wrap.data("isotope"),s=e.$items_wrap.data("fjGallery"),n=e.$items_wrap.parent()[0].swiper;if(o){if(i){var a=e.$items_wrap.find(".vp-portfolio__item-wrap");e.$items_wrap.isotope("remove",a),e.$items_wrap.prepend(t).isotope("prepended",t)}else e.$items_wrap.append(t).isotope("appended",t);setTimeout(function(){e.initIsotope("layout")},0)}else if(s)i?(e.destroyFjGallery(),e.$items_wrap.find(".vp-portfolio__item-wrap").remove(),e.$items_wrap.prepend(t),e.initFjGallery()):(e.$items_wrap.append(t),e.initFjGallery("appendImages",t));else if(n){i&&n.removeAllSlides();var r=[];t.addClass("swiper-slide").each(function(){r.push(this)}),n.appendSlide(r)}e.emitEvent("addItems",[t,i])}},{key:"removeItems",value:function(t){this.$items_wrap.data("isotope")&&this.$items_wrap.isotope("remove",t),this.emitEvent("removeItems",[t])}},{key:"loadNewItems",value:function(t,i,e){var o=this;!o.loading&&t&&(o.loading=!0,o.$item.addClass("vp-portfolio__loading"),o.emitEvent("startLoadingNewItems",[t]),l.get(t,{},function(t){t=t.replace("<body",'<body><div id="vp-infinite-load-body"').replace("</body>","</div></body>");var s=l(t).filter("#vp-infinite-load-body"),n=s.find(".vp-portfolio.vp-uid-".concat(o.uid));if(n.length){var a=n.find(".vp-portfolio__items").html();o.$filter.length&&o.$filter.each(function(){var t=l(this),i="";i=t.parent().hasClass("vp-single-filter")?s.find('[class="'.concat(t.parent().attr("class").replace(" vp-single-filter__ready",""),'"] .vp-portfolio__filter-wrap')).html():n.find(".vp-portfolio__filter-wrap").html(),t.html(i)}),o.$pagination.length&&o.$pagination.html(n.find(".vp-portfolio__pagination-wrap").html()),o.addItems(l(a),i),o.emitEvent("loadedNewItems",[n,n,t])}var r=n.attr("data-vp-next-page-url");o.options.nextPageUrl=r,o.$item.attr("data-vp-next-page-url",r),o.$item.removeClass("vp-portfolio__loading"),o.loading=!1,o.emitEvent("endLoadingNewItems"),o.prepareLazyLoad(),o.initCustomColors(),e&&e()}))}}]),t}();l(document).on("lazybeforeunveil",function(t){var i=l(t.target);i.hasClass("visual-portfolio-lazyload")&&i.closest(".vp-portfolio__item-img").addClass("vp-portfolio__item-img-lazyloading")}),l(document).on("lazyloaded",function(t){var i=l(t.target);i.hasClass("visual-portfolio-lazyload")&&i.closest(".vp-portfolio__item-img-lazyloading").removeClass("vp-portfolio__item-img-lazyloading")});var S=function(t){var i,e=Array.prototype.slice.call(arguments,1);return this.each(function(){if(void 0===i)if("object"===r(t)||void 0===t)this.vpf||(this.vpf=new x(l(this),t));else if(this.vpf){var o;i=(o=this.vpf)[t].apply(o,a(e))}}),void 0!==i?i:this};S.constructor=x;var $=jQuery.fn.vpf;jQuery.fn.vpf=S,jQuery.fn.vpf.noConflict=function(){return jQuery.fn.vpf=$,this},l(".vp-portfolio").vpf(),l(function(){l(".vp-portfolio").vpf()});var C=Object(o.b)(200,function(){n()(function(){l(".vp-portfolio:not(.vp-portfolio__ready)").vpf()})});window.MutationObserver?new window.MutationObserver(C).observe(document.documentElement,{childList:!0,subtree:!0}):l(document).on("DOMContentLoaded DOMNodeInserted load",function(){C()})},164:function(t,i,e){(function(i){var e;e="undefined"!=typeof window?window:void 0!==i?i:"undefined"!=typeof self?self:{},t.exports=e}).call(this,e(59))},30:function(t,i,e){"use strict";function o(t,i,e,o){var s,n=0;return"boolean"!=typeof i&&(o=e,e=i,i=void 0),function(){var a=this,r=Number(new Date)-n,p=arguments;function l(){n=Number(new Date),e.apply(a,p)}o&&!s&&l(),s&&clearTimeout(s),void 0===o&&r>t?l():!0!==i&&(s=setTimeout(o?function(){s=void 0}:l,void 0===o?t-r:t))}}function s(t,i,e){return void 0===e?o(t,i,!1):o(t,e,!1!==i)}e.d(i,"b",function(){return o}),e.d(i,"a",function(){return s})},59:function(t,i){var e;e=function(){return this}();try{e=e||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(e=window)}t.exports=e}});
|
1 |
!function(t){var i={};function e(o){if(i[o])return i[o].exports;var s=i[o]={i:o,l:!1,exports:{}};return t[o].call(s.exports,s,s.exports,e),s.l=!0,s.exports}e.m=t,e.c=i,e.d=function(t,i,o){e.o(t,i)||Object.defineProperty(t,i,{enumerable:!0,get:o})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,i){if(1&i&&(t=e(t)),8&i)return t;if(4&i&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(e.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&i&&"string"!=typeof t)for(var s in t)e.d(o,s,function(i){return t[i]}.bind(null,s));return o},e.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,i){return Object.prototype.hasOwnProperty.call(t,i)},e.p="",e(e.s=162)}({155:function(t,i,e){var o=e(164),s=o.requestAnimationFrame||o.webkitRequestAnimationFrame||o.mozRequestAnimationFrame||function(t){var i=+new Date,e=Math.max(0,16-(i-n)),o=setTimeout(t,e);return n=i,o},n=+new Date;var a=o.cancelAnimationFrame||o.webkitCancelAnimationFrame||o.mozCancelAnimationFrame||clearTimeout;Function.prototype.bind&&(s=s.bind(o),a=a.bind(o)),(t.exports=s).cancel=a},162:function(t,i,e){t.exports=e(163)},163:function(t,i,e){"use strict";e.r(i);var o=e(30),s=e(155),n=e.n(s);function a(t){return function(t){if(Array.isArray(t)){for(var i=0,e=new Array(t.length);i<t.length;i++)e[i]=t[i];return e}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function p(t,i){for(var e=0;e<i.length;e++){var o=i[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}
|
2 |
/*!
|
3 |
* Name : Visual Portfolio
|
4 |
+
* Version : 1.8.2
|
5 |
* Author : nK https://nkdev.info
|
6 |
*/
|
7 |
var l=jQuery,d=window,c=d.VPData,f=d.objectFitImages,v=d.PhotoSwipe,h=d.PhotoSwipeUI_Default,u=c.__,m=c.settingsPopupGallery,_=l(window),y=0,w=0;function g(){y=_.width(),w=_.height()}g(),_.on("resize load orientationchange",g);var b=[320,576,768,992,1200];void 0!==f&&(f(".vp-portfolio img:not(.visual-portfolio-lazyload)"),l(document).on("lazybeforeunveil",function(t){var i=l(t.target);i.hasClass("visual-portfolio-lazyload")&&i.one("load",function(){f(i[0])})}));var x=function(){function t(i,e){!function(t,i){if(!(t instanceof i))throw new TypeError("Cannot call a class as a function")}(this,t);this.$item=i;for(var o=i[0].className.split(/\s+/),s=0;s<o.length;s++)o[s]&&/^vp-uid-/.test(o[s])&&(this.uid=o[s].replace(/^vp-uid-/,"")),o[s]&&/^vp-id-/.test(o[s])&&(this.id=o[s].replace(/^vp-id-/,""));this.uid?(this.$items_wrap=i.find(".vp-portfolio__items"),this.$pagination=i.find(".vp-portfolio__pagination-wrap"),this.$filter=i.find(".vp-portfolio__filter-wrap"),this.id&&(this.$filter=this.$filter.add(".vp-single-filter.vp-id-".concat(this.id," .vp-portfolio__filter-wrap"))),this.userOptions=e,this.firstRun=!0,this.init()):console.error(u.couldnt_retrieve_vp)}return function(t,i,e){i&&p(t.prototype,i),e&&p(t,e)}(t,[{key:"emitEvent",value:function(t,i){i=i?[this].concat(i):[this],this.$item.trigger("".concat(t,".vpf"),i),this.$item.trigger("".concat(t,".vpf-uid-").concat(this.uid),i)}},{key:"init",value:function(){this.firstRun||this.destroy(),this.destroyed=!1,this.initOptions(),this.initEvents(),this.prepareLazyLoad(),this.initLayout(),this.initCustomColors(),this.initPhotoswipe(),this.emitEvent("init"),this.$item.addClass("vp-portfolio__ready"),this.id&&l(".vp-single-filter.vp-id-".concat(this.id)).addClass("vp-single-filter__ready"),this.initIsotope(),this.initFjGallery(),this.initSwiper(),this.resized(),this.firstRun=!1}},{key:"resized",value:function(){if("function"==typeof window.Event)window.dispatchEvent(new window.Event("resize"));else{var t=window.document.createEvent("UIEvents");t.initUIEvent("resize",!0,!1,window,0),window.dispatchEvent(t)}this.emitEvent("resized")}},{key:"destroy",value:function(){this.$item.removeClass("vp-portfolio__ready"),this.id&&l(".vp-single-filter.vp-id-".concat(this.id)).removeClass("vp-single-filter__ready"),this.destroyEvents(),this.removeStyle(),this.renderStyle(),this.destroyPhotoswipe(),this.destroyIsotope(),this.destroyFjGallery(),this.destroySwiper(),this.emitEvent("destroy"),this.destroyed=!0}},{key:"addStyle",value:function(t,i,e){e=e||"";var o=this.uid;this.stylesList||(this.stylesList={}),void 0===this.stylesList[o]&&(this.stylesList[o]={}),void 0===this.stylesList[o][e]&&(this.stylesList[o][e]={}),void 0===this.stylesList[o][e][t]&&(this.stylesList[o][e][t]={}),this.stylesList[o][e][t]=l.extend(this.stylesList[o][e][t],i),this.emitEvent("addStyle",[t,i,e,this.stylesList])}},{key:"removeStyle",value:function(t,i,e){e=e||"";var o=this.uid;this.stylesList||(this.stylesList={}),void 0===this.stylesList[o]||t||(this.stylesList[o]={}),void 0!==this.stylesList[o]&&void 0!==this.stylesList[o][e]&&void 0!==this.stylesList[o][e][t]&&t&&delete this.stylesList[o][e][t],this.emitEvent("removeStyle",[t,i,this.stylesList])}},{key:"renderStyle",value:function(){var t=this,i=t.uid,e="";t.stylesList||(t.stylesList={}),void 0!==t.stylesList[i]&&Object.keys(t.stylesList[i]).forEach(function(o){o&&(e+="@media ".concat(o," {")),Object.keys(t.stylesList[i][o]).forEach(function(s){e+=".vp-uid-".concat(i," ").concat(s," {"),Object.keys(t.stylesList[i][o][s]).forEach(function(n){e+="".concat(n,":").concat(t.stylesList[i][o][s][n],";")}),e+="}"}),o&&(e+="}")});var o=l("#vp-style-".concat(i));o.length||(o=l("<style>").attr("id","vp-style-".concat(i)).appendTo("head")),o.html(e),t.emitEvent("renderStyle",[e,t.stylesList,o])}},{key:"firstToLowerCase",value:function(t){return t.substr(0,1).toLowerCase()+t.substr(1)}},{key:"initOptions",value:function(t){var i=this;i.defaults={layout:"tile",itemsGap:0,tilesType:"3|1,1|",masonryColumns:3,justifiedRowHeight:250,justifiedRowHeightTolerance:.25,pagination:"load-more"},t&&(i.userOptions=t);var e=i.$item[0].dataset,o={};Object.keys(e).forEach(function(t){t&&"vp"===t.substring(0,2)&&(o[i.firstToLowerCase(t.substring(2))]=e[t])}),i.options=l.extend({},i.defaults,o,i.userOptions),i.emitEvent("initOptions")}},{key:"isCrossLine",value:function(t,i,e,o){var s=(o.x-e.x)*(t.y-e.y)-(o.y-e.y)*(t.x-e.x),n=(o.x-e.x)*(i.y-e.y)-(o.y-e.y)*(i.x-e.x),a=(i.x-t.x)*(e.y-t.y)-(i.y-t.y)*(e.x-t.x),r=(i.x-t.x)*(o.y-t.y)-(i.y-t.y)*(o.x-t.x);return s*n<=0&&a*r<=0}},{key:"initEvents",value:function(){var t,i=this,e=".vpf-uid-".concat(i.uid);function o(){var t=i.$item[0].getBoundingClientRect(),e=t.left,o=y-t.right,s=parseFloat(i.$item.css("margin-left")||0),n=parseFloat(i.$item.css("margin-right")||0);i.$item.css({"margin-left":s-e,"margin-right":n-o})}if(i.$item.hasClass("vp-portfolio__stretch")&&(_.on("load".concat(e," resize").concat(e," orientationchange").concat(e),function(){o()}),o()),"fly"===i.options.itemsStyle){var s={};_.on("mousemove".concat(e),function(t){s={x:t.clientX,y:t.clientY}}),i.$item.on("mouseenter".concat(e," mouseleave").concat(e),".vp-portfolio__item",function(t){var e=l(this),o=e[0].getBoundingClientRect(),n=e.find(".vp-portfolio__item-overlay"),a="mouseenter"===t.type,r="0%",p="0%",d={x:t.clientX,y:t.clientY},c=i.isCrossLine({x:o.left,y:o.top},{x:o.left+o.width,y:o.top},d,s),f=i.isCrossLine({x:o.left,y:o.top+o.height},{x:o.left+o.width,y:o.top+o.height},d,s),v=i.isCrossLine({x:o.left,y:o.top},{x:o.left,y:o.top+o.height},d,s),h=i.isCrossLine({x:o.left+o.width,y:o.top},{x:o.left+o.width,y:o.top+o.height},d,s);if(!(c||f||v||h)){var u=(o.width/2-d.x+o.left)/(o.width/2),m=(o.height/2-d.y+o.top)/(o.height/2);Math.abs(u)>Math.abs(m)?u>0?v=!0:h=!0:m>0?c=!0:f=!0}c?p="-10".concat(p):f?p="10".concat(p):v?r="-10".concat(r):h&&(r="10".concat(r)),a&&(n.css({transition:"none",transform:"translateX(".concat(r,") translateY(").concat(p,") translateZ(0)")}),n[0].offsetHeight),n.css({transition:".2s transform ease-in-out",transform:"translateX(".concat(a?"0%":r,") translateY(").concat(a?"0%":p,") translateZ(0)")})})}i.$filter.on("click".concat(e),".vp-filter .vp-filter__item a",function(t){t.preventDefault();var e=l(this);i.loading||e.closest(".vp-filter__item").addClass("vp-filter__item-active").siblings().removeClass("vp-filter__item-active"),i.loadNewItems(e.attr("href"),!0)}),i.$item.on("click".concat(e),".vp-pagination .vp-pagination__item a",function(t){t.preventDefault();var e=l(this);e.hasClass("vp-pagination__no-more")&&"paged"!==i.options.pagination||i.loadNewItems(e.attr("href"),"paged"===i.options.pagination)}),i.$item.on("click".concat(e),".vp-portfolio__items .vp-portfolio__item-meta-category a",function(t){t.preventDefault(),t.stopPropagation(),i.loadNewItems(l(this).attr("href"),!0)});var n=250;function a(){var t=i.$item[0].getBoundingClientRect();t.bottom>0&&t.bottom-n<=w&&i.loadNewItems(i.options.nextPageUrl,!1,function(){a()})}"infinite"===i.options.pagination&&(_.on("load".concat(e," scroll").concat(e," resize").concat(e," orientationchange").concat(e),function(){clearTimeout(t),t=setTimeout(function(){a()},60)}),a()),i.$item.on("transitionend".concat(e),".vp-portfolio__items",function(t){t.currentTarget===t.target&&i.resized()}),i.emitEvent("initEvents")}},{key:"destroyEvents",value:function(){var t=".vpf-uid-".concat(this.uid);this.$item.off(t),this.$filter.off(t),_.off(t),this.emitEvent("destroyEvents")}},{key:"prepareLazyLoad",value:function(){var t=window.lazySizesConfig;if(t){var i={"data-vpf-src":t.srcAttr,"data-vpf-sizes":t.sizesAttr,"data-vpf-srcset":t.srcsetAttr};this.$items_wrap.find(".visual-portfolio-lazyload:not(.".concat(t.lazyClass,")")).each(function(){var e=l(this);Object.keys(i).forEach(function(t){i[t]&&t!==i[t]&&e.attr(t)&&(e.attr(i[t],e.attr(t)),e.removeAttr(t))}),e.addClass(t.lazyClass)})}}},{key:"getTilesSettings",value:function(){var t=this.options.tilesType.split(/[:|]/);return void 0===t[t.length-1]||t[t.length-1]||t.pop(),t}},{key:"initLayout",value:function(){if(this.options.layout)switch(this.options.layout){case"tiles":var t=this.getTilesSettings(),i=parseInt(t[0],10)||1;if(t.shift(),this.addStyle(".vp-portfolio__item-wrap",{width:"".concat(100/i,"%")}),t&&t.length)for(var e=0;e<t.length;e++){var o=t[e].split(","),s=parseFloat(o[0])||1,n=parseFloat(o[1])||1,a=".vp-portfolio__item-wrap";t.length>1&&(a+=":nth-of-type(".concat(t.length,"n+").concat(e+1,")")),s&&1!==s&&this.addStyle(a,{width:"".concat(100*s/i,"%")}),this.addStyle("".concat(a," .vp-portfolio__item-img-wrap::before"),{"margin-top":"".concat(100*n,"%")})}for(var r=i-1,p=Math.min(b.length-1,r);p>=0;p--)r>0&&void 0!==b[p]&&(this.addStyle(".vp-portfolio__item-wrap",{width:"".concat(100/r,"%")},"screen and (max-width: ".concat(b[p],"px)")),this.addStyle(".vp-portfolio__item-wrap:nth-of-type(n)",{width:"".concat(100/r,"%")},"screen and (max-width: ".concat(b[p],"px)"))),r-=1;break;case"masonry":this.addStyle(".vp-portfolio__item-wrap",{width:"".concat(100/this.options.masonryColumns,"%")});for(var l=this.options.masonryColumns-1,d=Math.min(b.length-1,l);d>=0;d--)l>0&&void 0!==b[d]&&this.addStyle(".vp-portfolio__item-wrap",{width:"".concat(100/l,"%")},"screen and (max-width: ".concat(b[d],"px)")),l-=1;case"justified":break;case"slider":"auto"!==this.options.sliderItemsHeight&&("auto"===this.options.sliderSlidesPerView?this.options.sliderItemsHeight.indexOf("%")===this.options.sliderItemsHeight.length-1?(this.addStyle(".vp-portfolio__items-wrap::before",{content:'""',display:"block",width:"100%","margin-top":isNaN(this.options.sliderItemsHeight)?this.options.sliderItemsHeight:"".concat(this.options.sliderItemsHeight,"px")}),this.addStyle(".vp-portfolio__items",{position:"absolute",top:0,left:0,right:0,bottom:0}),this.addStyle(".vp-portfolio__item-wrap",{height:"true"===this.options.sliderBullets?"calc( 100% - 25px )":"100%"}),this.addStyle(".vp-portfolio__item, .vp-portfolio__item-img-wrap, .vp-portfolio__item-img, .vp-portfolio__item-wrap .vp-portfolio__item .vp-portfolio__item-img a, .vp-portfolio__item-wrap .vp-portfolio__item .vp-portfolio__item-img img",{width:"auto",height:"100%"})):this.addStyle(".vp-portfolio__item .vp-portfolio__item-img img",{width:"auto",height:isNaN(this.options.sliderItemsHeight)?this.options.sliderItemsHeight:"".concat(this.options.sliderItemsHeight,"px")}):(this.addStyle(".vp-portfolio__item-img-wrap::before",{"margin-top":isNaN(this.options.sliderItemsHeight)?this.options.sliderItemsHeight:"".concat(this.options.sliderItemsHeight,"px")}),this.addStyle(".vp-portfolio__item-img img",{position:"absolute",top:0,right:0,bottom:0,left:0}),this.addStyle(".vp-portfolio__item-img",{position:"absolute",top:0,right:0,bottom:0,left:0}),this.addStyle(".vp-portfolio__item .vp-portfolio__item-img img",{width:"100%",height:"100%"})))}var c=parseInt(this.options.itemsGap,10);if(c&&("tiles"===this.options.layout||"masonry"===this.options.layout)){this.addStyle(".vp-portfolio__items",{"margin-left":"-".concat(c,"px"),"margin-top":"-".concat(c,"px")});var f="".concat(c,"px");this.addStyle(".vp-portfolio__item-wrap .vp-portfolio__item",{"margin-left":f,"margin-top":f}),"tiles"===this.options.layout&&(this.addStyle(".vp-portfolio__item-wrap .vp-portfolio__item-img-wrap",{"margin-left":"-".concat(f),"margin-top":"-".concat(f)}),this.addStyle(".vp-portfolio__item-wrap .vp-portfolio__item-img",{left:f,top:f}))}this.renderStyle(),this.emitEvent("initLayout")}},{key:"initCustomColors",value:function(){var t=this;t.$item.find("[data-vp-bg-color]").each(function(){var i=l(this).attr("data-vp-bg-color");t.addStyle('[data-vp-bg-color="'.concat(i,'"]'),{"background-color":"".concat(i," !important")})}),t.$item.find("[data-vp-text-color]").each(function(){var i=l(this).attr("data-vp-text-color");t.addStyle('[data-vp-text-color="'.concat(i,'"]'),{color:"".concat(i," !important")})}),t.renderStyle(),t.emitEvent("initCustomColors")}},{key:"initIsotope",value:function(t){!this.$items_wrap.isotope||"tiles"!==this.options.layout&&"masonry"!==this.options.layout||(this.$items_wrap.isotope(t||{itemSelector:".vp-portfolio__item-wrap",layoutMode:"masonry",transitionDuration:"0.3s",percentPosition:!0}),this.emitEvent("initIsotope",[t]))}},{key:"destroyIsotope",value:function(){this.$items_wrap.data("isotope")&&(this.$items_wrap.isotope("destroy"),this.emitEvent("destroyIsotope"))}},{key:"initFjGallery",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.$items_wrap.fjGallery&&"justified"===this.options.layout&&(this.$items_wrap.fjGallery(!1!==t?t:{gutter:parseFloat(this.options.itemsGap)||0,rowHeight:parseFloat(this.options.justifiedRowHeight)||200,rowHeightTolerance:parseFloat(this.options.justifiedRowHeightTolerance)||0,itemSelector:".vp-portfolio__item-wrap",imageSelector:".vp-portfolio__item-img img"},i),this.emitEvent("initFjGallery",[t]))}},{key:"destroyFjGallery",value:function(){this.$items_wrap.data("fjGallery")&&(this.$items_wrap.fjGallery("destroy"),this.emitEvent("destroyFjGallery"))}},{key:"initSwiper",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if("slider"===this.options.layout&&void 0!==window.Swiper){var i=this.$items_wrap.parent();i.addClass("swiper-container"),this.$items_wrap.addClass("swiper-wrapper"),this.$items_wrap.children().addClass("swiper-slide"),"true"!==this.options.sliderArrows||i.find(".vp-portfolio__items-arrow").length||i.append('\n <div class="vp-portfolio__items-arrow vp-portfolio__items-arrow-prev"><span class="'.concat(this.options.sliderArrowsIconPrev,'"></span></div>\n <div class="vp-portfolio__items-arrow vp-portfolio__items-arrow-next"><span class="').concat(this.options.sliderArrowsIconNext,'"></span></div>\n ')),"true"!==this.options.sliderBullets||i.find(".vp-portfolio__items-bullets").length||i.append('<div class="vp-portfolio__items-bullets"></div>');var e=this.options.sliderSlidesPerView||3,o={};if(!isNaN(e))for(var s=e-1,n=Math.min(b.length-1,s);n>=0;n--)s>0&&void 0!==b[n]&&(o[b[n]]={slidesPerView:s}),s-=1;new window.Swiper(i[0],t||{speed:1e3*(parseFloat(this.options.sliderSpeed)||0),autoHeight:"auto"===this.options.sliderItemsHeight,effect:this.options.sliderEffect||"slide",spaceBetween:parseFloat(this.options.itemsGap)||0,centeredSlides:"true"===this.options.sliderCenteredSlides,freeMode:"true"===this.options.sliderFreeMode,loop:"true"===this.options.sliderLoop,autoplay:parseFloat(this.options.sliderAutoplay)>0&&{delay:1e3*parseFloat(this.options.sliderAutoplay),disableOnInteraction:!1},navigation:"true"===this.options.sliderArrows&&{nextEl:".vp-portfolio__items-arrow-next",prevEl:".vp-portfolio__items-arrow-prev"},pagination:"true"===this.options.sliderBullets&&{el:".vp-portfolio__items-bullets",clickable:!0,dynamicBullets:"true"===this.options.sliderBulletsDynamic,renderBullet:function(t,i){return'<span class="'.concat(i,'" data-bullet-index="').concat(t,'" data-bullet-number="').concat(t+1,'"></span>')}},slidesPerView:e,breakpoints:o,keyboard:!0,grabCursor:!0}),this.emitEvent("initSwiper",[t])}}},{key:"destroySwiper",value:function(){var t=this.$items_wrap.parent(),i=t[0].swiper;i&&(i.destroy(),t.removeClass("swiper-container"),this.$items_wrap.removeClass("swiper-wrapper"),this.$items_wrap.children().removeClass("swiper-slide"),t.find(".vp-portfolio__items-arrow, .vp-portfolio__items-bullets").remove(),this.emitEvent("destroySwiper"))}},{key:"initPhotoswipe",value:function(){var t=this;if(void 0!==v&&t.options.itemsClickAction&&"popup_gallery"===t.options.itemsClickAction&&!t.$item.closest("#vp_preview").length){if(!l(".vp-pswp").length){var i="\n <div class=\"pswp vp-pswp vp-pswp-uid-'}".concat(t.uid,'" tabindex="-1" role="dialog" aria-hidden="true">\n <div class="pswp__bg"></div>\n <div class="pswp__scroll-wrap">\n <div class="pswp__container">\n <div class="pswp__item"></div>\n <div class="pswp__item"></div>\n <div class="pswp__item"></div>\n </div>\n <div class="pswp__ui pswp__ui--hidden">\n <div class="pswp__top-bar">\n <div class="pswp__counter"></div>\n <a class="pswp__button pswp__button--close" title="').concat(u.pswp_close,'"></a>\n <a class="pswp__button pswp__button--share" title="').concat(u.pswp_share,'"></a>\n <a class="pswp__button pswp__button--fs" title="').concat(u.pswp_fs,'"></a>\n <a class="pswp__button pswp__button--zoom" title="').concat(u.pswp_zoom,'"></a>\n </div>\n <div class="pswp__preloader">\n <div class="pswp__preloader__icn">\n <div class="pswp__preloader__cut">\n <div class="pswp__preloader__donut"></div>\n </div>\n </div>\n </div>\n <div class="pswp__share-modal pswp__share-modal--hidden pswp__single-tap">\n <div class="pswp__share-tooltip"></div>\n </div>\n <a class="pswp__button pswp__button--arrow--left" title="').concat(u.pswp_prev,'"></a>\n <a class="pswp__button pswp__button--arrow--right" title="').concat(u.pswp_next,'"></a>\n <div class="pswp__caption">\n <div class="pswp__caption__center"></div>\n </div>\n </div>\n </div>\n </div>\n ');l("body").append(i)}var e=function(i,e,o,n){var a=l(".vp-pswp")[0],r=function(t){var i,e,o,s,n,a=[];return l(t).find(".vp-portfolio__item-wrap").each(function(){if(i=l(this).find(".vp-portfolio__item-popup"),e=(i.attr("data-vp-popup-img-size")||"1920x1080").split("x"),o=(i.attr("data-vp-popup-video-size")||"1920x1080").split("x"),n=i.attr("data-vp-popup-video"))s={html:n,vw:parseInt(o[0],10),vh:parseInt(o[1],10)};else{s={src:i.attr("data-vp-popup-img"),w:parseInt(e[0],10),h:parseInt(e[1],10)};var t=i.html();t&&(s.title=t),s.el=this;var r=i.attr("data-vp-popup-md-img")||s.src;r&&(e=(i.attr("data-vp-popup-md-img-size")||i.attr("data-vp-popup-img-size")||"1920x1080").split("x"),s.m={src:r,w:parseInt(e[0],10),h:parseInt(e[1],10)}),s.o={src:s.src,w:s.w,h:s.h}}a.push(s)}),a}(e),p={captionAndToolbarShowEmptyCaptions:!1,closeEl:m.show_close_button,captionEl:m.show_caption,fullscreenEl:m.show_fullscreen_button,zoomEl:m.show_zoom_button,shareEl:m.show_share_button,counterEl:m.show_counter,arrowEl:m.show_arrows,shareButtons:[{id:"facebook",label:u.pswp_share_fb,url:"https://www.facebook.com/sharer/sharer.php?u={{url}}"},{id:"twitter",label:u.pswp_share_tw,url:"https://twitter.com/intent/tweet?text={{text}}&url={{url}}"},{id:"pinterest",label:u.pswp_share_pin,url:"https://www.pinterest.com/pin/create/button/?url={{url}}&media={{image_url}}&description={{text}}"}],bgOpacity:1,tapToClose:!0,tapToToggleControls:!1,showHideOpacity:!0,galleryUID:t.uid};if(n)if(p.galleryPIDs){for(var d=0;d<r.length;d++)if(r[d].pid===i){p.index=d;break}}else p.index=parseInt(i,10)-1;else p.index=parseInt(i,10);if(!isNaN(p.index)){o&&(p.showAnimationDuration=0);var c,f,_=new v(a,h,r,p),y=!1,w=!0;_.listen("beforeResize",function(){c=_.viewportSize.x*window.devicePixelRatio,y&&c<1e3?(y=!1,f=!0):!y&&c>=1e3&&(y=!0,f=!0),f&&!w&&_.invalidateCurrItems(),w&&(w=!1),f=!1}),_.listen("gettingData",function(t,i){i.html||(y?(i.src=i.o.src,i.w=i.o.w,i.h=i.o.h):(i.src=i.m.src,i.w=i.m.w,i.h=i.m.h))}),_.listen("resize",function(){s(this)}),_.listen("afterChange",function(){s(this)}),_.listen("beforeChange",function(){if(this&&this.itemHolders.length){var t=this.getCurrentIndex();this.itemHolders.forEach(function(i){if(i.el&&i.index!==t){var e=l(i.el).find(".vp-pswp-video iframe");e.length&&e.attr("src",e.attr("src"))}})}}),_.listen("destroy",function(){this&&this.itemHolders.length&&this.itemHolders.forEach(function(t){t.el&&l(t.el).find(".vp-pswp-video").remove()})}),_.init()}};t.$item.on("click.vpf-uid-".concat(t.uid),".vp-portfolio__item",function(i){i.preventDefault();var o=0,s=this;t.$item.find(".vp-portfolio__item").each(function(t){return this!==s||(o=t,!1)}),e(o,t.$item[0])});var o=function(){var t=window.location.hash.substring(1),i={};if(t.length<5)return i;for(var e=t.split("&"),o=0;o<e.length;o++)if(e[o]){var s=e[o].split("=");s.length<2||(i[s[0]]=s[1])}return i}();o.pid&&o.gid===t.uid&&e(o.pid,t.$item[0],!0,!0)}function s(t,i){if(void 0!==i){var e,o=t.viewportSize.x,n=t.viewportSize.y,a=i.vw/i.vh,r=l(i.container),p=t.options.barsSize,d=0,c=0;p&&(d=p.top&&"auto"!==p.top?p.top:0,c=p.bottom&&"auto"!==p.bottom?p.bottom:0),e=a>o/(n-=d+c)?o:n*a,r.find(".vp-pswp-video").css("max-width",e),r.css({top:d,bottom:c})}else t&&t.itemHolders.length&&t.itemHolders.forEach(function(i){i.item&&i.item.html&&s(t,i.item)})}}},{key:"destroyPhotoswipe",value:function(){this.$item.off("click.vpf-uid-".concat(this.uid)),l(".vp-pswp-uid-".concat(this.uid)).remove()}},{key:"addItems",value:function(t,i){var e=this,o=e.$items_wrap.data("isotope"),s=e.$items_wrap.data("fjGallery"),n=e.$items_wrap.parent()[0].swiper;if(o){if(i){var a=e.$items_wrap.find(".vp-portfolio__item-wrap");e.$items_wrap.isotope("remove",a),e.$items_wrap.prepend(t).isotope("prepended",t)}else e.$items_wrap.append(t).isotope("appended",t);setTimeout(function(){e.initIsotope("layout")},0)}else if(s)i?(e.destroyFjGallery(),e.$items_wrap.find(".vp-portfolio__item-wrap").remove(),e.$items_wrap.prepend(t),e.initFjGallery()):(e.$items_wrap.append(t),e.initFjGallery("appendImages",t));else if(n){i&&n.removeAllSlides();var r=[];t.addClass("swiper-slide").each(function(){r.push(this)}),n.appendSlide(r)}e.emitEvent("addItems",[t,i])}},{key:"removeItems",value:function(t){this.$items_wrap.data("isotope")&&this.$items_wrap.isotope("remove",t),this.emitEvent("removeItems",[t])}},{key:"loadNewItems",value:function(t,i,e){var o=this;!o.loading&&t&&(o.loading=!0,o.$item.addClass("vp-portfolio__loading"),o.emitEvent("startLoadingNewItems",[t]),l.get(t,{},function(t){t=t.replace("<body",'<body><div id="vp-infinite-load-body"').replace("</body>","</div></body>");var s=l(t).filter("#vp-infinite-load-body"),n=s.find(".vp-portfolio.vp-uid-".concat(o.uid));if(n.length){var a=n.find(".vp-portfolio__items").html();o.$filter.length&&o.$filter.each(function(){var t=l(this),i="";i=t.parent().hasClass("vp-single-filter")?s.find('[class="'.concat(t.parent().attr("class").replace(" vp-single-filter__ready",""),'"] .vp-portfolio__filter-wrap')).html():n.find(".vp-portfolio__filter-wrap").html(),t.html(i)}),o.$pagination.length&&o.$pagination.html(n.find(".vp-portfolio__pagination-wrap").html()),o.addItems(l(a),i),o.emitEvent("loadedNewItems",[n,n,t])}var r=n.attr("data-vp-next-page-url");o.options.nextPageUrl=r,o.$item.attr("data-vp-next-page-url",r),o.$item.removeClass("vp-portfolio__loading"),o.loading=!1,o.emitEvent("endLoadingNewItems"),o.prepareLazyLoad(),o.initCustomColors(),e&&e()}))}}]),t}();l(document).on("lazybeforeunveil",function(t){var i=l(t.target);i.hasClass("visual-portfolio-lazyload")&&i.closest(".vp-portfolio__item-img").addClass("vp-portfolio__item-img-lazyloading")}),l(document).on("lazyloaded",function(t){var i=l(t.target);i.hasClass("visual-portfolio-lazyload")&&i.closest(".vp-portfolio__item-img-lazyloading").removeClass("vp-portfolio__item-img-lazyloading")});var S=function(t){var i,e=Array.prototype.slice.call(arguments,1);return this.each(function(){if(void 0===i)if("object"===r(t)||void 0===t)this.vpf||(this.vpf=new x(l(this),t));else if(this.vpf){var o;i=(o=this.vpf)[t].apply(o,a(e))}}),void 0!==i?i:this};S.constructor=x;var $=jQuery.fn.vpf;jQuery.fn.vpf=S,jQuery.fn.vpf.noConflict=function(){return jQuery.fn.vpf=$,this},l(".vp-portfolio").vpf(),l(function(){l(".vp-portfolio").vpf()});var C=Object(o.b)(200,function(){n()(function(){l(".vp-portfolio:not(.vp-portfolio__ready)").vpf()})});window.MutationObserver?new window.MutationObserver(C).observe(document.documentElement,{childList:!0,subtree:!0}):l(document).on("DOMContentLoaded DOMNodeInserted load",function(){C()})},164:function(t,i,e){(function(i){var e;e="undefined"!=typeof window?window:void 0!==i?i:"undefined"!=typeof self?self:{},t.exports=e}).call(this,e(59))},30:function(t,i,e){"use strict";function o(t,i,e,o){var s,n=0;return"boolean"!=typeof i&&(o=e,e=i,i=void 0),function(){var a=this,r=Number(new Date)-n,p=arguments;function l(){n=Number(new Date),e.apply(a,p)}o&&!s&&l(),s&&clearTimeout(s),void 0===o&&r>t?l():!0!==i&&(s=setTimeout(o?function(){s=void 0}:l,void 0===o?t-r:t))}}function s(t,i,e){return void 0===e?o(t,i,!1):o(t,e,!1!==i)}e.d(i,"b",function(){return o}),e.d(i,"a",function(){return s})},59:function(t,i){var e;e=function(){return this}();try{e=e||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(e=window)}t.exports=e}});
|
assets/vendor/conditionize/conditionize.min.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
/*!
|
2 |
* Name : Conditionize - jQuery conditions for forms
|
3 |
-
* Version : 1.0.
|
4 |
* Author : nK <https://nkdev.info>
|
5 |
* GitHub : https://github.com/nk-o/conditionize
|
6 |
-
*/!function(
|
7 |
//# sourceMappingURL=conditionize.min.js.map
|
1 |
/*!
|
2 |
* Name : Conditionize - jQuery conditions for forms
|
3 |
+
* Version : 1.0.1
|
4 |
* Author : nK <https://nkdev.info>
|
5 |
* GitHub : https://github.com/nk-o/conditionize
|
6 |
+
*/!function(e){var o={};function i(n){if(o[n])return o[n].exports;var t=o[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,i),t.l=!0,t.exports}i.m=e,i.c=o,i.d=function(n,t,e){i.o(n,t)||Object.defineProperty(n,t,{configurable:!1,enumerable:!0,get:e})},i.n=function(n){var t=n&&n.__esModule?function(){return n.default}:function(){return n};return i.d(t,"a",t),t},i.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},i.p="",i(i.s=1)}([function(e,n,t){"use strict";(function(n){var t;t="undefined"!=typeof window?window:void 0!==n?n:"undefined"!=typeof self?self:{},e.exports=t}).call(n,t(5))},function(n,t,e){n.exports=e(2)},function(n,t,e){"use strict";var o,c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},i=function(){function o(n,t){for(var e=0;e<t.length;e++){var o=t[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(n,o.key,o)}}return function(n,t,e){return t&&o(n.prototype,t),e&&o(n,e),n}}(),r=e(3),u=e(4),a=(o=u)&&o.__esModule?o:{default:o},s=e(0);var f=s.window.jQuery,l=0;function d(n){this.table=n}d.prototype.parse=function(n){for(var t=n.length,e=this.table,o=[],i=[],r=0;r<t;){switch(f=n[r++]){case"(":i.unshift(f);break;case")":for(;i.length;){if("("===(f=i.shift()))break;o.push(f)}if("("!==f)throw new Error("Mismatched parentheses.");break;default:if(e.hasOwnProperty(f)){for(;i.length;){var c=i[0];if("("===c)break;var u=e[f],a=u.precedence,s=e[c].precedence;if(s<a||a===s&&"right"===u.associativity)break;o.push(i.shift())}i.unshift(f)}else o.push(f)}}for(;i.length;){var f;if("("===(f=i.shift()))throw new Error("Mismatched parentheses.");o.push(f)}return o};var p={precedence:3,associativity:"left"},h={precedence:2,associativity:"left"},y={"==":{eval:function(n,t){return n==t},sort:h},"!=":{eval:function(n,t){return n!=t},sort:h},"===":{eval:function(n,t){return n===t},sort:h},"!==":{eval:function(n,t){return n!==t},sort:h},"*=":{eval:function(n,t){return-1!==n.indexOf(t)},sort:h},"<=":{eval:function(n,t){return n<=t},sort:p},">=":{eval:function(n,t){return t<=n},sort:p},"<":{eval:function(n,t){return n<t},sort:p},">":{eval:function(n,t){return t<n},sort:p},"&&":{eval:function(n,t){return n&&t},sort:{precedence:1,associativity:"right"}},"||":{eval:function(n,t){return n||t},sort:{precedence:0,associativity:"right"}}},v=function(){function o(n,t){!function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o);var e=this;e.instanceID=l++,e.$container=f(n),e.defaults={selector:"[data-cond]",conditionAttr:"data-cond",checkDebounce:150,customToggle:null,onInit:null,onDestroy:null,onCheck:null},e.options=Object.assign({},e.defaults,t),e.runCheck=(0,r.debounce)(e.options.checkDebounce,e.runCheck),e.init()}return i(o,[{key:"init",value:function(){var n=this;n.options.customToggle?n.options.customToggle.call(n,n.$container.find(n.options.selector),!1):n.$container.find(n.options.selector).hide(),n.$container.on("change.conditionize","input, select, textarea",function(){n.runCheck(n.$container.find(n.options.selector))}),n.runCheck(n.$container.find(n.options.selector)),n.options.onInit&&n.options.onInit.call(n)}},{key:"runCheck",value:function(n){var o=this;(0,a.default)(function(){n.each(function(){var n=f(this),t=n.attr(o.options.conditionAttr).toString(),e=o.checkCondition(t);o.options.customToggle?o.options.customToggle.call(o,n,e):n[e?"show":"hide"](),o.options.onCheck&&o.options.onCheck(n,e)})})}},{key:"checkCondition",value:function(n){var t=n.match(/[^\s]+/g),e=void 0,o={};Object.keys(y).forEach(function(n){o[n]=y[n].sort}),t=new d(o).parse(t);for(var i=[],r=0;r<t.length;)if((e=t[r++])in y){var c=i.pop(),u=i.pop();i.push([u,e,c])}else i.push(e);return this.compare(i.length&&i[0])}},{key:"isValidSelector",value:function(n){if("string"!=typeof n||f.isNumeric(n)||"false"===n||"true"===n||0==n||1==n)return!1;try{f(n)}catch(n){return!1}return!0}},{key:"condition",value:function(n,t,e){return t in y&&("false"===n?n=!1:"true"===n&&(n=!0),"false"===e?e=!1:"true"===e&&(e=!0),y[t].eval(n,e))}},{key:"compare",value:function(n){var t=this;if(n instanceof Array)return 3===n.length?(n[0]=t.compare(n[0]),n[2]instanceof Array&&(n[2]=t.compare(n[2])),t.condition(n[0],n[1],n[2])):1===n.length&&t.compare(n[0]);if(t.isValidSelector(n)){var e=f(n),o=!1;return e.is("[type=radio], [type=checkbox]")?o=e.is(":checked"):e.is("textarea, select, input")&&(o=e.val()),o}return n}},{key:"destroy",value:function(){var n=this;n.options.onDestroy&&n.options.onDestroy.call(n),n.$container.off("change.conditionize"),n.options.customToggle?n.options.customToggle.call(n,n.$container.find(n.options.selector),!0):n.$container.find(n.options.selector).show(),delete n.$container.Conditionize}}]),o}(),m=function(n){("object"===("undefined"==typeof HTMLElement?"undefined":c(HTMLElement))?n instanceof HTMLElement:n&&"object"===(void 0===n?"undefined":c(n))&&null!==n&&1===n.nodeType&&"string"==typeof n.nodeName)&&(n=[n]);for(var t=arguments[1],e=Array.prototype.slice.call(arguments,2),o=n.length,i=0,r=void 0;i<o;i++)if("object"===(void 0===t?"undefined":c(t))||void 0===t?n[i].Conditionize||(n[i].Conditionize=new v(n[i],t)):n[i].Conditionize&&(r=n[i].Conditionize[t].apply(n[i].Conditionize,e)),void 0!==r)return r;return n};m.constructor=v,s.window.Conditionize=v;var b=function(){var n=arguments||[];Array.prototype.unshift.call(n,this);var t=m.apply(s.window,n);return"object"!==(void 0===t?"undefined":c(t))?t:this};b.constructor=m.constructor;var g=f.fn.conditionize;f.fn.conditionize=b,f.fn.conditionize.noConflict=function(){return f.fn.conditionize=g,this}},function(n,t,e){"use strict";function o(i,r,c,u){var a,s=0;return"boolean"!=typeof r&&(u=c,c=r,r=void 0),function(){var n=this,t=Number(new Date)-s,e=arguments;function o(){s=Number(new Date),c.apply(n,e)}u&&!a&&o(),a&&clearTimeout(a),void 0===u&&i<t?o():!0!==r&&(a=setTimeout(u?function(){a=void 0}:o,void 0===u?i-t:i))}}Object.defineProperty(t,"__esModule",{value:!0}),t.throttle=o,t.debounce=function(n,t,e){return void 0===e?o(n,t,!1):o(n,e,!1!==t)}},function(n,t,e){"use strict";var o=e(0),i=o.requestAnimationFrame||o.webkitRequestAnimationFrame||o.mozRequestAnimationFrame||function(n){var t=+new Date,e=Math.max(0,16-(t-r)),o=setTimeout(n,e);return r=t,o},r=+new Date;var c=o.cancelAnimationFrame||o.webkitCancelAnimationFrame||o.mozCancelAnimationFrame||clearTimeout;Function.prototype.bind&&(i=i.bind(o),c=c.bind(o)),(n.exports=i).cancel=c},function(n,t,e){"use strict";var o,i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n};o=function(){return this}();try{o=o||Function("return this")()||(0,eval)("this")}catch(n){"object"===("undefined"==typeof window?"undefined":i(window))&&(o=window)}n.exports=o}]);
|
7 |
//# sourceMappingURL=conditionize.min.js.map
|
assets/vendor/conditionize/conditionize.min.js.map
CHANGED
@@ -1 +1 @@
|
|
1 |
-
{"version":3,"sources":["conditionize.js"],"names":["modules","installedModules","__webpack_require__","moduleId","exports","module","i","l","call","m","c","d","name","getter","o","Object","defineProperty","configurable","enumerable","get","n","__esModule","object","property","prototype","hasOwnProperty","p","s","global","win","window","self","obj","_typeof","Symbol","iterator","constructor","_createClass","defineProperties","target","props","length","descriptor","writable","key","Constructor","protoProps","staticProps","_throttleDebounce","_rafl","_rafl2","default","_global","instanceID","Parser","e","this","table","parse","r","t","a","h","unshift","shift","push","Error","f","precedence","associativity","sortRelational","sortEquality","relations","==","eval","b","sort","!=","===","!==","*=","indexOf","<=",">=","<",">","&&","||","Conditionize","container","userOptions","instance","TypeError","_classCallCheck","$container","$","defaults","selector","conditionAttr","checkDebounce","customToggle","onInit","onDestroy","onCheck","options","assign","runCheck","debounce","init","value","find","hide","on","$items","each","$this","conditionString","attr","toString","conditionResult","checkCondition","str","tokens","match","token","parserRelations","keys","forEach","k","stack","index","pop","compare","isNumeric","error","operator","arr","Array","condition","isValidSelector","$listenTo","result","is","val","off","show","plugin","items","HTMLElement","nodeType","nodeName","arguments","args","slice","len","ret","apply","jQuery","jQueryPlugin","res","oldJqPlugin","fn","conditionize","noConflict","throttle","delay","noTrailing","callback","debounceMode","timeoutID","lastExec","undefined","elapsed","Number","Date","exec","clearTimeout","setTimeout","atBegin","request","requestAnimationFrame","webkitRequestAnimationFrame","mozRequestAnimationFrame","curr","ms","Math","max","prev","req","cancel","cancelAnimationFrame","webkitCancelAnimationFrame","mozCancelAnimationFrame","Function","bind","g"],"mappings":"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","file":"conditionize.min.js","sourcesContent":["/*!\n * Name : Conditionize - jQuery conditions for forms\n * Version : 1.0.0\n * Author : nK <https://nkdev.info>\n * GitHub : https://github.com/nk-o/conditionize\n */\n/******/ (function(modules) { // webpackBootstrap\n/******/ \t// The module cache\n/******/ \tvar installedModules = {};\n/******/\n/******/ \t// The require function\n/******/ \tfunction __webpack_require__(moduleId) {\n/******/\n/******/ \t\t// Check if module is in cache\n/******/ \t\tif(installedModules[moduleId]) {\n/******/ \t\t\treturn installedModules[moduleId].exports;\n/******/ \t\t}\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = installedModules[moduleId] = {\n/******/ \t\t\ti: moduleId,\n/******/ \t\t\tl: false,\n/******/ \t\t\texports: {}\n/******/ \t\t};\n/******/\n/******/ \t\t// Execute the module function\n/******/ \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n/******/\n/******/ \t\t// Flag the module as loaded\n/******/ \t\tmodule.l = true;\n/******/\n/******/ \t\t// Return the exports of the module\n/******/ \t\treturn module.exports;\n/******/ \t}\n/******/\n/******/\n/******/ \t// expose the modules object (__webpack_modules__)\n/******/ \t__webpack_require__.m = modules;\n/******/\n/******/ \t// expose the module cache\n/******/ \t__webpack_require__.c = installedModules;\n/******/\n/******/ \t// define getter function for harmony exports\n/******/ \t__webpack_require__.d = function(exports, name, getter) {\n/******/ \t\tif(!__webpack_require__.o(exports, name)) {\n/******/ \t\t\tObject.defineProperty(exports, name, {\n/******/ \t\t\t\tconfigurable: false,\n/******/ \t\t\t\tenumerable: true,\n/******/ \t\t\t\tget: getter\n/******/ \t\t\t});\n/******/ \t\t}\n/******/ \t};\n/******/\n/******/ \t// getDefaultExport function for compatibility with non-harmony modules\n/******/ \t__webpack_require__.n = function(module) {\n/******/ \t\tvar getter = module && module.__esModule ?\n/******/ \t\t\tfunction getDefault() { return module['default']; } :\n/******/ \t\t\tfunction getModuleExports() { return module; };\n/******/ \t\t__webpack_require__.d(getter, 'a', getter);\n/******/ \t\treturn getter;\n/******/ \t};\n/******/\n/******/ \t// Object.prototype.hasOwnProperty.call\n/******/ \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n/******/\n/******/ \t// __webpack_public_path__\n/******/ \t__webpack_require__.p = \"\";\n/******/\n/******/ \t// Load entry module and return exports\n/******/ \treturn __webpack_require__(__webpack_require__.s = 1);\n/******/ })\n/************************************************************************/\n/******/ ([\n/* 0 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n/* WEBPACK VAR INJECTION */(function(global) {\n\nvar win;\n\nif (typeof window !== \"undefined\") {\n win = window;\n} else if (typeof global !== \"undefined\") {\n win = global;\n} else if (typeof self !== \"undefined\") {\n win = self;\n} else {\n win = {};\n}\n\nmodule.exports = win;\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5)))\n\n/***/ }),\n/* 1 */\n/***/ (function(module, exports, __webpack_require__) {\n\nmodule.exports = __webpack_require__(2);\n\n\n/***/ }),\n/* 2 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _throttleDebounce = __webpack_require__(3);\n\nvar _rafl = __webpack_require__(4);\n\nvar _rafl2 = _interopRequireDefault(_rafl);\n\nvar _global = __webpack_require__(0);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nvar instanceID = 0;\n\n// https://gist.github.com/aaditmshah/6683499\n/* eslint-disable */\nfunction Parser(e) {\n this.table = e;\n}Parser.prototype.parse = function (e) {\n for (var r = e.length, t = this.table, s = [], a = [], h = 0; r > h;) {\n var i = e[h++];switch (i) {case \"(\":\n a.unshift(i);break;case \")\":\n for (; a.length;) {\n var i = a.shift();if (\"(\" === i) break;s.push(i);\n }if (\"(\" !== i) throw new Error(\"Mismatched parentheses.\");break;default:\n if (t.hasOwnProperty(i)) {\n for (; a.length;) {\n var f = a[0];if (\"(\" === f) break;var n = t[i],\n o = n.precedence,\n c = t[f].precedence;if (o > c || o === c && \"right\" === n.associativity) break;s.push(a.shift());\n }a.unshift(i);\n } else s.push(i);}\n }for (; a.length;) {\n var i = a.shift();if (\"(\" === i) throw new Error(\"Mismatched parentheses.\");s.push(i);\n }return s;\n};\n/* eslint-enable */\n\nvar sortRelational = {\n precedence: 3,\n associativity: 'left'\n};\nvar sortEquality = {\n precedence: 2,\n associativity: 'left'\n};\n\n// available relations\nvar relations = {\n '==': {\n eval: function _eval(a, b) {\n return a == b; // eslint-disable-line\n },\n\n sort: sortEquality\n },\n '!=': {\n eval: function _eval(a, b) {\n return a != b; // eslint-disable-line\n },\n\n sort: sortEquality\n },\n '===': {\n eval: function _eval(a, b) {\n return a === b;\n },\n\n sort: sortEquality\n },\n '!==': {\n eval: function _eval(a, b) {\n return a !== b;\n },\n\n sort: sortEquality\n },\n '*=': {\n eval: function _eval(a, b) {\n return a.indexOf(b) !== -1;\n },\n\n sort: sortEquality\n },\n '<=': {\n eval: function _eval(a, b) {\n return a <= b;\n },\n\n sort: sortRelational\n },\n '>=': {\n eval: function _eval(a, b) {\n return a >= b;\n },\n\n sort: sortRelational\n },\n '<': {\n eval: function _eval(a, b) {\n return a < b;\n },\n\n sort: sortRelational\n },\n '>': {\n eval: function _eval(a, b) {\n return a > b;\n },\n\n sort: sortRelational\n },\n '&&': {\n eval: function _eval(a, b) {\n return a && b;\n },\n\n sort: {\n precedence: 1,\n associativity: 'right'\n }\n },\n '||': {\n eval: function _eval(a, b) {\n return a || b;\n },\n\n sort: {\n precedence: 0,\n associativity: 'right'\n }\n }\n};\n\n// Conditionize class\n\nvar Conditionize = function () {\n function Conditionize(container, userOptions) {\n _classCallCheck(this, Conditionize);\n\n var self = this;\n\n self.instanceID = instanceID++;\n\n self.$container = $(container);\n\n self.defaults = {\n selector: '[data-cond]',\n conditionAttr: 'data-cond',\n checkDebounce: 150,\n\n // custom toggle function\n customToggle: null, // function( $item, show ) { $item[ show ? 'show' : 'hide' ](); }\n\n // events\n onInit: null, // function() {}\n onDestroy: null, // function() {}\n onCheck: null // function( $item, show ) {}\n };\n\n self.options = Object.assign({}, self.defaults, userOptions);\n\n self.runCheck = (0, _throttleDebounce.debounce)(self.options.checkDebounce, self.runCheck);\n\n self.init();\n }\n\n _createClass(Conditionize, [{\n key: 'init',\n value: function init() {\n var self = this;\n\n // hide all controls by default\n if (self.options.customToggle) {\n self.options.customToggle.call(self, self.$container.find(self.options.selector), false);\n } else {\n self.$container.find(self.options.selector).hide();\n }\n\n // event listener\n self.$container.on('change.conditionize', 'input, select, textarea', function () {\n self.runCheck(self.$container.find(self.options.selector));\n });\n\n self.runCheck(self.$container.find(self.options.selector));\n\n // call onInit event\n if (self.options.onInit) {\n self.options.onInit.call(self);\n }\n }\n }, {\n key: 'runCheck',\n value: function runCheck($items) {\n var self = this;\n\n (0, _rafl2.default)(function () {\n $items.each(function () {\n var $this = $(this);\n var conditionString = $this.attr(self.options.conditionAttr).toString();\n var conditionResult = self.checkCondition(conditionString);\n\n if (self.options.customToggle) {\n self.options.customToggle.call(self, $this, conditionResult);\n } else {\n $this[conditionResult ? 'show' : 'hide']();\n }\n\n if (self.options.onCheck) {\n self.options.onCheck($this, conditionResult);\n }\n });\n });\n }\n\n // parse condition\n\n }, {\n key: 'checkCondition',\n value: function checkCondition(str) {\n var self = this;\n var tokens = str.match(/[^\\s]+/g);\n var token = void 0;\n var parserRelations = {};\n\n Object.keys(relations).forEach(function (k) {\n parserRelations[k] = relations[k].sort;\n });\n\n var parser = new Parser(parserRelations);\n\n tokens = parser.parse(tokens);\n\n var stack = [];\n var index = 0;\n\n while (index < tokens.length) {\n token = tokens[index++];\n\n if (token in relations) {\n var b = stack.pop();\n var a = stack.pop();\n stack.push([a, token, b]);\n } else {\n stack.push(token);\n }\n }\n\n return self.compare(stack.length && stack[0]);\n }\n\n // check if is valid jquery selector\n\n }, {\n key: 'isValidSelector',\n value: function isValidSelector(selector) {\n if (typeof selector !== 'string' || $.isNumeric(selector) || selector === 'false' || selector === 'true' || selector == false // eslint-disable-line\n || selector == true // eslint-disable-line\n ) {\n return false;\n }\n try {\n $(selector);\n } catch (error) {\n return false;\n }\n return true;\n }\n\n // eval\n\n }, {\n key: 'condition',\n value: function condition(a, operator, b) {\n if (operator in relations) {\n if (a === 'false') {\n a = false;\n } else if (a === 'true') {\n a = true;\n }\n\n if (b === 'false') {\n b = false;\n } else if (b === 'true') {\n b = true;\n }\n\n return relations[operator].eval(a, b);\n }\n return false;\n }\n\n // compare items\n\n }, {\n key: 'compare',\n value: function compare(arr) {\n var self = this;\n\n if (arr instanceof Array) {\n if (arr.length === 3) {\n arr[0] = self.compare(arr[0]);\n if (arr[2] instanceof Array) {\n arr[2] = self.compare(arr[2]);\n }\n\n return self.condition(arr[0], arr[1], arr[2]);\n } else if (arr.length === 1) {\n return self.compare(arr[0]);\n }\n return false;\n } else if (self.isValidSelector(arr)) {\n var $listenTo = $(arr);\n var result = false;\n\n if ($listenTo.is('[type=radio], [type=checkbox]')) {\n result = $listenTo.is(':checked');\n } else if ($listenTo.is('textarea, select, input')) {\n result = $listenTo.val();\n }\n\n return result;\n }\n return arr;\n }\n }, {\n key: 'destroy',\n value: function destroy() {\n var self = this;\n\n // call onDestroy event\n if (self.options.onDestroy) {\n self.options.onDestroy.call(self);\n }\n\n // disable event.\n self.$container.off('change.conditionize');\n\n // show all controls\n if (self.options.customToggle) {\n self.options.customToggle.call(self, self.$container.find(self.options.selector), true);\n } else {\n self.$container.find(self.options.selector).show();\n }\n\n // delete Conditionize instance from container\n delete self.$container.Conditionize;\n }\n }]);\n\n return Conditionize;\n}();\n\n// global definition\n\n\nvar plugin = function plugin(items) {\n // check for dom element\n // thanks: http://stackoverflow.com/questions/384286/javascript-isdom-how-do-you-check-if-a-javascript-object-is-a-dom-object\n if ((typeof HTMLElement === 'undefined' ? 'undefined' : _typeof(HTMLElement)) === 'object' ? items instanceof HTMLElement : items && (typeof items === 'undefined' ? 'undefined' : _typeof(items)) === 'object' && items !== null && items.nodeType === 1 && typeof items.nodeName === 'string') {\n items = [items];\n }\n\n var options = arguments[1];\n var args = Array.prototype.slice.call(arguments, 2);\n var len = items.length;\n var k = 0;\n var ret = void 0;\n\n for (k; k < len; k++) {\n if ((typeof options === 'undefined' ? 'undefined' : _typeof(options)) === 'object' || typeof options === 'undefined') {\n if (!items[k].Conditionize) {\n // eslint-disable-next-line new-cap\n items[k].Conditionize = new Conditionize(items[k], options);\n }\n } else if (items[k].Conditionize) {\n // eslint-disable-next-line prefer-spread\n ret = items[k].Conditionize[options].apply(items[k].Conditionize, args);\n }\n if (typeof ret !== 'undefined') {\n return ret;\n }\n }\n\n return items;\n};\nplugin.constructor = Conditionize;\n\n_global.window.Conditionize = Conditionize;\n\nif (typeof jQuery !== 'undefined') {\n var jQueryPlugin = function jQueryPlugin() {\n var args = arguments || [];\n Array.prototype.unshift.call(args, this);\n var res = plugin.apply(_global.window, args);\n return (typeof res === 'undefined' ? 'undefined' : _typeof(res)) !== 'object' ? res : this;\n };\n jQueryPlugin.constructor = plugin.constructor;\n\n // no conflict\n var oldJqPlugin = jQuery.fn.conditionize;\n jQuery.fn.conditionize = jQueryPlugin;\n jQuery.fn.conditionize.noConflict = function () {\n jQuery.fn.conditionize = oldJqPlugin;\n return this;\n };\n}\n\n/***/ }),\n/* 3 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n\tvalue: true\n});\n/* eslint-disable no-undefined,no-param-reassign,no-shadow */\n\n/**\n * Throttle execution of a function. Especially useful for rate limiting\n * execution of handlers on events like resize and scroll.\n *\n * @param {Number} delay A zero-or-greater delay in milliseconds. For event callbacks, values around 100 or 250 (or even higher) are most useful.\n * @param {Boolean} [noTrailing] Optional, defaults to false. If noTrailing is true, callback will only execute every `delay` milliseconds while the\n * throttled-function is being called. If noTrailing is false or unspecified, callback will be executed one final time\n * after the last throttled-function call. (After the throttled-function has not been called for `delay` milliseconds,\n * the internal counter is reset)\n * @param {Function} callback A function to be executed after delay milliseconds. The `this` context and all arguments are passed through, as-is,\n * to `callback` when the throttled-function is executed.\n * @param {Boolean} [debounceMode] If `debounceMode` is true (at begin), schedule `clear` to execute after `delay` ms. If `debounceMode` is false (at end),\n * schedule `callback` to execute after `delay` ms.\n *\n * @return {Function} A new, throttled, function.\n */\nfunction throttle(delay, noTrailing, callback, debounceMode) {\n\n\t/*\n * After wrapper has stopped being called, this timeout ensures that\n * `callback` is executed at the proper times in `throttle` and `end`\n * debounce modes.\n */\n\tvar timeoutID;\n\n\t// Keep track of the last time `callback` was executed.\n\tvar lastExec = 0;\n\n\t// `noTrailing` defaults to falsy.\n\tif (typeof noTrailing !== 'boolean') {\n\t\tdebounceMode = callback;\n\t\tcallback = noTrailing;\n\t\tnoTrailing = undefined;\n\t}\n\n\t/*\n * The `wrapper` function encapsulates all of the throttling / debouncing\n * functionality and when executed will limit the rate at which `callback`\n * is executed.\n */\n\tfunction wrapper() {\n\n\t\tvar self = this;\n\t\tvar elapsed = Number(new Date()) - lastExec;\n\t\tvar args = arguments;\n\n\t\t// Execute `callback` and update the `lastExec` timestamp.\n\t\tfunction exec() {\n\t\t\tlastExec = Number(new Date());\n\t\t\tcallback.apply(self, args);\n\t\t}\n\n\t\t/*\n * If `debounceMode` is true (at begin) this is used to clear the flag\n * to allow future `callback` executions.\n */\n\t\tfunction clear() {\n\t\t\ttimeoutID = undefined;\n\t\t}\n\n\t\tif (debounceMode && !timeoutID) {\n\t\t\t/*\n * Since `wrapper` is being called for the first time and\n * `debounceMode` is true (at begin), execute `callback`.\n */\n\t\t\texec();\n\t\t}\n\n\t\t// Clear any existing timeout.\n\t\tif (timeoutID) {\n\t\t\tclearTimeout(timeoutID);\n\t\t}\n\n\t\tif (debounceMode === undefined && elapsed > delay) {\n\t\t\t/*\n * In throttle mode, if `delay` time has been exceeded, execute\n * `callback`.\n */\n\t\t\texec();\n\t\t} else if (noTrailing !== true) {\n\t\t\t/*\n * In trailing throttle mode, since `delay` time has not been\n * exceeded, schedule `callback` to execute `delay` ms after most\n * recent execution.\n *\n * If `debounceMode` is true (at begin), schedule `clear` to execute\n * after `delay` ms.\n *\n * If `debounceMode` is false (at end), schedule `callback` to\n * execute after `delay` ms.\n */\n\t\t\ttimeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay);\n\t\t}\n\t}\n\n\t// Return the wrapper function.\n\treturn wrapper;\n}\n\n/* eslint-disable no-undefined */\n\n/**\n * Debounce execution of a function. Debouncing, unlike throttling,\n * guarantees that a function is only executed a single time, either at the\n * very beginning of a series of calls, or at the very end.\n *\n * @param {Number} delay A zero-or-greater delay in milliseconds. For event callbacks, values around 100 or 250 (or even higher) are most useful.\n * @param {Boolean} [atBegin] Optional, defaults to false. If atBegin is false or unspecified, callback will only be executed `delay` milliseconds\n * after the last debounced-function call. If atBegin is true, callback will be executed only at the first debounced-function call.\n * (After the throttled-function has not been called for `delay` milliseconds, the internal counter is reset).\n * @param {Function} callback A function to be executed after delay milliseconds. The `this` context and all arguments are passed through, as-is,\n * to `callback` when the debounced-function is executed.\n *\n * @return {Function} A new, debounced function.\n */\nfunction debounce(delay, atBegin, callback) {\n\treturn callback === undefined ? throttle(delay, atBegin, false) : throttle(delay, callback, atBegin !== false);\n}\n\nexports.throttle = throttle;\nexports.debounce = debounce;\n\n/***/ }),\n/* 4 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar global = __webpack_require__(0);\n\n/**\n * `requestAnimationFrame()`\n */\n\nvar request = global.requestAnimationFrame || global.webkitRequestAnimationFrame || global.mozRequestAnimationFrame || fallback;\n\nvar prev = +new Date();\nfunction fallback(fn) {\n var curr = +new Date();\n var ms = Math.max(0, 16 - (curr - prev));\n var req = setTimeout(fn, ms);\n return prev = curr, req;\n}\n\n/**\n * `cancelAnimationFrame()`\n */\n\nvar cancel = global.cancelAnimationFrame || global.webkitCancelAnimationFrame || global.mozCancelAnimationFrame || clearTimeout;\n\nif (Function.prototype.bind) {\n request = request.bind(global);\n cancel = cancel.bind(global);\n}\n\nexports = module.exports = request;\nexports.cancel = cancel;\n\n/***/ }),\n/* 5 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\n\nvar g;\n\n// This works in non-strict mode\ng = function () {\n\treturn this;\n}();\n\ntry {\n\t// This works if eval is allowed (see CSP)\n\tg = g || Function(\"return this\")() || (1, eval)(\"this\");\n} catch (e) {\n\t// This works if the window reference is available\n\tif ((typeof window === \"undefined\" ? \"undefined\" : _typeof(window)) === \"object\") g = window;\n}\n\n// g can still be undefined, but nothing to do about it...\n// We return undefined, instead of nothing here, so it's\n// easier to handle this case. if(!global) { ...}\n\nmodule.exports = g;\n\n/***/ })\n/******/ ]);"]}
|
1 |
+
{"version":3,"sources":["conditionize.js"],"names":["modules","installedModules","__webpack_require__","moduleId","exports","module","i","l","call","m","c","d","name","getter","o","Object","defineProperty","configurable","enumerable","get","n","__esModule","object","property","prototype","hasOwnProperty","p","s","global","win","window","self","obj","_typeof","Symbol","iterator","constructor","_createClass","defineProperties","target","props","length","descriptor","writable","key","Constructor","protoProps","staticProps","_throttleDebounce","_rafl","_rafl2","default","_global","$","jQuery","instanceID","Parser","e","this","table","parse","r","t","a","h","unshift","shift","push","Error","f","precedence","associativity","sortRelational","sortEquality","relations","==","eval","b","sort","!=","===","!==","*=","indexOf","<=",">=","<",">","&&","||","Conditionize","container","userOptions","instance","TypeError","_classCallCheck","$container","defaults","selector","conditionAttr","checkDebounce","customToggle","onInit","onDestroy","onCheck","options","assign","runCheck","debounce","init","value","find","hide","on","$items","each","$this","conditionString","attr","toString","conditionResult","checkCondition","str","tokens","match","token","parserRelations","keys","forEach","k","stack","index","pop","compare","isNumeric","error","operator","arr","Array","condition","isValidSelector","$listenTo","result","is","val","off","show","plugin","items","HTMLElement","nodeType","nodeName","arguments","args","slice","len","ret","apply","jQueryPlugin","res","oldJqPlugin","fn","conditionize","noConflict","throttle","delay","noTrailing","callback","debounceMode","timeoutID","lastExec","undefined","elapsed","Number","Date","exec","clearTimeout","setTimeout","atBegin","request","requestAnimationFrame","webkitRequestAnimationFrame","mozRequestAnimationFrame","curr","ms","Math","max","prev","req","cancel","cancelAnimationFrame","webkitCancelAnimationFrame","mozCancelAnimationFrame","Function","bind","g"],"mappings":"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","file":"conditionize.min.js","sourcesContent":["/*!\n * Name : Conditionize - jQuery conditions for forms\n * Version : 1.0.1\n * Author : nK <https://nkdev.info>\n * GitHub : https://github.com/nk-o/conditionize\n */\n/******/ (function(modules) { // webpackBootstrap\n/******/ \t// The module cache\n/******/ \tvar installedModules = {};\n/******/\n/******/ \t// The require function\n/******/ \tfunction __webpack_require__(moduleId) {\n/******/\n/******/ \t\t// Check if module is in cache\n/******/ \t\tif(installedModules[moduleId]) {\n/******/ \t\t\treturn installedModules[moduleId].exports;\n/******/ \t\t}\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = installedModules[moduleId] = {\n/******/ \t\t\ti: moduleId,\n/******/ \t\t\tl: false,\n/******/ \t\t\texports: {}\n/******/ \t\t};\n/******/\n/******/ \t\t// Execute the module function\n/******/ \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n/******/\n/******/ \t\t// Flag the module as loaded\n/******/ \t\tmodule.l = true;\n/******/\n/******/ \t\t// Return the exports of the module\n/******/ \t\treturn module.exports;\n/******/ \t}\n/******/\n/******/\n/******/ \t// expose the modules object (__webpack_modules__)\n/******/ \t__webpack_require__.m = modules;\n/******/\n/******/ \t// expose the module cache\n/******/ \t__webpack_require__.c = installedModules;\n/******/\n/******/ \t// define getter function for harmony exports\n/******/ \t__webpack_require__.d = function(exports, name, getter) {\n/******/ \t\tif(!__webpack_require__.o(exports, name)) {\n/******/ \t\t\tObject.defineProperty(exports, name, {\n/******/ \t\t\t\tconfigurable: false,\n/******/ \t\t\t\tenumerable: true,\n/******/ \t\t\t\tget: getter\n/******/ \t\t\t});\n/******/ \t\t}\n/******/ \t};\n/******/\n/******/ \t// getDefaultExport function for compatibility with non-harmony modules\n/******/ \t__webpack_require__.n = function(module) {\n/******/ \t\tvar getter = module && module.__esModule ?\n/******/ \t\t\tfunction getDefault() { return module['default']; } :\n/******/ \t\t\tfunction getModuleExports() { return module; };\n/******/ \t\t__webpack_require__.d(getter, 'a', getter);\n/******/ \t\treturn getter;\n/******/ \t};\n/******/\n/******/ \t// Object.prototype.hasOwnProperty.call\n/******/ \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n/******/\n/******/ \t// __webpack_public_path__\n/******/ \t__webpack_require__.p = \"\";\n/******/\n/******/ \t// Load entry module and return exports\n/******/ \treturn __webpack_require__(__webpack_require__.s = 1);\n/******/ })\n/************************************************************************/\n/******/ ([\n/* 0 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n/* WEBPACK VAR INJECTION */(function(global) {\n\nvar win;\n\nif (typeof window !== \"undefined\") {\n win = window;\n} else if (typeof global !== \"undefined\") {\n win = global;\n} else if (typeof self !== \"undefined\") {\n win = self;\n} else {\n win = {};\n}\n\nmodule.exports = win;\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5)))\n\n/***/ }),\n/* 1 */\n/***/ (function(module, exports, __webpack_require__) {\n\nmodule.exports = __webpack_require__(2);\n\n\n/***/ }),\n/* 2 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _throttleDebounce = __webpack_require__(3);\n\nvar _rafl = __webpack_require__(4);\n\nvar _rafl2 = _interopRequireDefault(_rafl);\n\nvar _global = __webpack_require__(0);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nvar $ = _global.window.jQuery;\nvar instanceID = 0;\n\n// https://gist.github.com/aaditmshah/6683499\n/* eslint-disable */\nfunction Parser(e) {\n this.table = e;\n}Parser.prototype.parse = function (e) {\n for (var r = e.length, t = this.table, s = [], a = [], h = 0; r > h;) {\n var i = e[h++];switch (i) {case \"(\":\n a.unshift(i);break;case \")\":\n for (; a.length;) {\n var i = a.shift();if (\"(\" === i) break;s.push(i);\n }if (\"(\" !== i) throw new Error(\"Mismatched parentheses.\");break;default:\n if (t.hasOwnProperty(i)) {\n for (; a.length;) {\n var f = a[0];if (\"(\" === f) break;var n = t[i],\n o = n.precedence,\n c = t[f].precedence;if (o > c || o === c && \"right\" === n.associativity) break;s.push(a.shift());\n }a.unshift(i);\n } else s.push(i);}\n }for (; a.length;) {\n var i = a.shift();if (\"(\" === i) throw new Error(\"Mismatched parentheses.\");s.push(i);\n }return s;\n};\n/* eslint-enable */\n\nvar sortRelational = {\n precedence: 3,\n associativity: 'left'\n};\nvar sortEquality = {\n precedence: 2,\n associativity: 'left'\n};\n\n// available relations\nvar relations = {\n '==': {\n eval: function _eval(a, b) {\n return a == b; // eslint-disable-line\n },\n\n sort: sortEquality\n },\n '!=': {\n eval: function _eval(a, b) {\n return a != b; // eslint-disable-line\n },\n\n sort: sortEquality\n },\n '===': {\n eval: function _eval(a, b) {\n return a === b;\n },\n\n sort: sortEquality\n },\n '!==': {\n eval: function _eval(a, b) {\n return a !== b;\n },\n\n sort: sortEquality\n },\n '*=': {\n eval: function _eval(a, b) {\n return a.indexOf(b) !== -1;\n },\n\n sort: sortEquality\n },\n '<=': {\n eval: function _eval(a, b) {\n return a <= b;\n },\n\n sort: sortRelational\n },\n '>=': {\n eval: function _eval(a, b) {\n return a >= b;\n },\n\n sort: sortRelational\n },\n '<': {\n eval: function _eval(a, b) {\n return a < b;\n },\n\n sort: sortRelational\n },\n '>': {\n eval: function _eval(a, b) {\n return a > b;\n },\n\n sort: sortRelational\n },\n '&&': {\n eval: function _eval(a, b) {\n return a && b;\n },\n\n sort: {\n precedence: 1,\n associativity: 'right'\n }\n },\n '||': {\n eval: function _eval(a, b) {\n return a || b;\n },\n\n sort: {\n precedence: 0,\n associativity: 'right'\n }\n }\n};\n\n// Conditionize class\n\nvar Conditionize = function () {\n function Conditionize(container, userOptions) {\n _classCallCheck(this, Conditionize);\n\n var self = this;\n\n self.instanceID = instanceID++;\n\n self.$container = $(container);\n\n self.defaults = {\n selector: '[data-cond]',\n conditionAttr: 'data-cond',\n checkDebounce: 150,\n\n // custom toggle function\n customToggle: null, // function( $item, show ) { $item[ show ? 'show' : 'hide' ](); }\n\n // events\n onInit: null, // function() {}\n onDestroy: null, // function() {}\n onCheck: null // function( $item, show ) {}\n };\n\n self.options = Object.assign({}, self.defaults, userOptions);\n\n self.runCheck = (0, _throttleDebounce.debounce)(self.options.checkDebounce, self.runCheck);\n\n self.init();\n }\n\n _createClass(Conditionize, [{\n key: 'init',\n value: function init() {\n var self = this;\n\n // hide all controls by default\n if (self.options.customToggle) {\n self.options.customToggle.call(self, self.$container.find(self.options.selector), false);\n } else {\n self.$container.find(self.options.selector).hide();\n }\n\n // event listener\n self.$container.on('change.conditionize', 'input, select, textarea', function () {\n self.runCheck(self.$container.find(self.options.selector));\n });\n\n self.runCheck(self.$container.find(self.options.selector));\n\n // call onInit event\n if (self.options.onInit) {\n self.options.onInit.call(self);\n }\n }\n }, {\n key: 'runCheck',\n value: function runCheck($items) {\n var self = this;\n\n (0, _rafl2.default)(function () {\n $items.each(function () {\n var $this = $(this);\n var conditionString = $this.attr(self.options.conditionAttr).toString();\n var conditionResult = self.checkCondition(conditionString);\n\n if (self.options.customToggle) {\n self.options.customToggle.call(self, $this, conditionResult);\n } else {\n $this[conditionResult ? 'show' : 'hide']();\n }\n\n if (self.options.onCheck) {\n self.options.onCheck($this, conditionResult);\n }\n });\n });\n }\n\n // parse condition\n\n }, {\n key: 'checkCondition',\n value: function checkCondition(str) {\n var self = this;\n var tokens = str.match(/[^\\s]+/g);\n var token = void 0;\n var parserRelations = {};\n\n Object.keys(relations).forEach(function (k) {\n parserRelations[k] = relations[k].sort;\n });\n\n var parser = new Parser(parserRelations);\n\n tokens = parser.parse(tokens);\n\n var stack = [];\n var index = 0;\n\n while (index < tokens.length) {\n token = tokens[index++];\n\n if (token in relations) {\n var b = stack.pop();\n var a = stack.pop();\n stack.push([a, token, b]);\n } else {\n stack.push(token);\n }\n }\n\n return self.compare(stack.length && stack[0]);\n }\n\n // check if is valid jquery selector\n\n }, {\n key: 'isValidSelector',\n value: function isValidSelector(selector) {\n if (typeof selector !== 'string' || $.isNumeric(selector) || selector === 'false' || selector === 'true' || selector == false // eslint-disable-line\n || selector == true // eslint-disable-line\n ) {\n return false;\n }\n try {\n $(selector);\n } catch (error) {\n return false;\n }\n return true;\n }\n\n // eval\n\n }, {\n key: 'condition',\n value: function condition(a, operator, b) {\n if (operator in relations) {\n if (a === 'false') {\n a = false;\n } else if (a === 'true') {\n a = true;\n }\n\n if (b === 'false') {\n b = false;\n } else if (b === 'true') {\n b = true;\n }\n\n return relations[operator].eval(a, b);\n }\n return false;\n }\n\n // compare items\n\n }, {\n key: 'compare',\n value: function compare(arr) {\n var self = this;\n\n if (arr instanceof Array) {\n if (arr.length === 3) {\n arr[0] = self.compare(arr[0]);\n if (arr[2] instanceof Array) {\n arr[2] = self.compare(arr[2]);\n }\n\n return self.condition(arr[0], arr[1], arr[2]);\n } else if (arr.length === 1) {\n return self.compare(arr[0]);\n }\n return false;\n } else if (self.isValidSelector(arr)) {\n var $listenTo = $(arr);\n var result = false;\n\n if ($listenTo.is('[type=radio], [type=checkbox]')) {\n result = $listenTo.is(':checked');\n } else if ($listenTo.is('textarea, select, input')) {\n result = $listenTo.val();\n }\n\n return result;\n }\n return arr;\n }\n }, {\n key: 'destroy',\n value: function destroy() {\n var self = this;\n\n // call onDestroy event\n if (self.options.onDestroy) {\n self.options.onDestroy.call(self);\n }\n\n // disable event.\n self.$container.off('change.conditionize');\n\n // show all controls\n if (self.options.customToggle) {\n self.options.customToggle.call(self, self.$container.find(self.options.selector), true);\n } else {\n self.$container.find(self.options.selector).show();\n }\n\n // delete Conditionize instance from container\n delete self.$container.Conditionize;\n }\n }]);\n\n return Conditionize;\n}();\n\n// global definition\n\n\nvar plugin = function plugin(items) {\n // check for dom element\n // thanks: http://stackoverflow.com/questions/384286/javascript-isdom-how-do-you-check-if-a-javascript-object-is-a-dom-object\n if ((typeof HTMLElement === 'undefined' ? 'undefined' : _typeof(HTMLElement)) === 'object' ? items instanceof HTMLElement : items && (typeof items === 'undefined' ? 'undefined' : _typeof(items)) === 'object' && items !== null && items.nodeType === 1 && typeof items.nodeName === 'string') {\n items = [items];\n }\n\n var options = arguments[1];\n var args = Array.prototype.slice.call(arguments, 2);\n var len = items.length;\n var k = 0;\n var ret = void 0;\n\n for (k; k < len; k++) {\n if ((typeof options === 'undefined' ? 'undefined' : _typeof(options)) === 'object' || typeof options === 'undefined') {\n if (!items[k].Conditionize) {\n // eslint-disable-next-line new-cap\n items[k].Conditionize = new Conditionize(items[k], options);\n }\n } else if (items[k].Conditionize) {\n // eslint-disable-next-line prefer-spread\n ret = items[k].Conditionize[options].apply(items[k].Conditionize, args);\n }\n if (typeof ret !== 'undefined') {\n return ret;\n }\n }\n\n return items;\n};\nplugin.constructor = Conditionize;\n\n_global.window.Conditionize = Conditionize;\n\nvar jQueryPlugin = function jQueryPlugin() {\n var args = arguments || [];\n Array.prototype.unshift.call(args, this);\n var res = plugin.apply(_global.window, args);\n return (typeof res === 'undefined' ? 'undefined' : _typeof(res)) !== 'object' ? res : this;\n};\njQueryPlugin.constructor = plugin.constructor;\n\n// no conflict\nvar oldJqPlugin = $.fn.conditionize;\n$.fn.conditionize = jQueryPlugin;\n$.fn.conditionize.noConflict = function () {\n $.fn.conditionize = oldJqPlugin;\n return this;\n};\n\n/***/ }),\n/* 3 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n\tvalue: true\n});\n/* eslint-disable no-undefined,no-param-reassign,no-shadow */\n\n/**\n * Throttle execution of a function. Especially useful for rate limiting\n * execution of handlers on events like resize and scroll.\n *\n * @param {Number} delay A zero-or-greater delay in milliseconds. For event callbacks, values around 100 or 250 (or even higher) are most useful.\n * @param {Boolean} [noTrailing] Optional, defaults to false. If noTrailing is true, callback will only execute every `delay` milliseconds while the\n * throttled-function is being called. If noTrailing is false or unspecified, callback will be executed one final time\n * after the last throttled-function call. (After the throttled-function has not been called for `delay` milliseconds,\n * the internal counter is reset)\n * @param {Function} callback A function to be executed after delay milliseconds. The `this` context and all arguments are passed through, as-is,\n * to `callback` when the throttled-function is executed.\n * @param {Boolean} [debounceMode] If `debounceMode` is true (at begin), schedule `clear` to execute after `delay` ms. If `debounceMode` is false (at end),\n * schedule `callback` to execute after `delay` ms.\n *\n * @return {Function} A new, throttled, function.\n */\nfunction throttle(delay, noTrailing, callback, debounceMode) {\n\n\t/*\n * After wrapper has stopped being called, this timeout ensures that\n * `callback` is executed at the proper times in `throttle` and `end`\n * debounce modes.\n */\n\tvar timeoutID;\n\n\t// Keep track of the last time `callback` was executed.\n\tvar lastExec = 0;\n\n\t// `noTrailing` defaults to falsy.\n\tif (typeof noTrailing !== 'boolean') {\n\t\tdebounceMode = callback;\n\t\tcallback = noTrailing;\n\t\tnoTrailing = undefined;\n\t}\n\n\t/*\n * The `wrapper` function encapsulates all of the throttling / debouncing\n * functionality and when executed will limit the rate at which `callback`\n * is executed.\n */\n\tfunction wrapper() {\n\n\t\tvar self = this;\n\t\tvar elapsed = Number(new Date()) - lastExec;\n\t\tvar args = arguments;\n\n\t\t// Execute `callback` and update the `lastExec` timestamp.\n\t\tfunction exec() {\n\t\t\tlastExec = Number(new Date());\n\t\t\tcallback.apply(self, args);\n\t\t}\n\n\t\t/*\n * If `debounceMode` is true (at begin) this is used to clear the flag\n * to allow future `callback` executions.\n */\n\t\tfunction clear() {\n\t\t\ttimeoutID = undefined;\n\t\t}\n\n\t\tif (debounceMode && !timeoutID) {\n\t\t\t/*\n * Since `wrapper` is being called for the first time and\n * `debounceMode` is true (at begin), execute `callback`.\n */\n\t\t\texec();\n\t\t}\n\n\t\t// Clear any existing timeout.\n\t\tif (timeoutID) {\n\t\t\tclearTimeout(timeoutID);\n\t\t}\n\n\t\tif (debounceMode === undefined && elapsed > delay) {\n\t\t\t/*\n * In throttle mode, if `delay` time has been exceeded, execute\n * `callback`.\n */\n\t\t\texec();\n\t\t} else if (noTrailing !== true) {\n\t\t\t/*\n * In trailing throttle mode, since `delay` time has not been\n * exceeded, schedule `callback` to execute `delay` ms after most\n * recent execution.\n *\n * If `debounceMode` is true (at begin), schedule `clear` to execute\n * after `delay` ms.\n *\n * If `debounceMode` is false (at end), schedule `callback` to\n * execute after `delay` ms.\n */\n\t\t\ttimeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay);\n\t\t}\n\t}\n\n\t// Return the wrapper function.\n\treturn wrapper;\n}\n\n/* eslint-disable no-undefined */\n\n/**\n * Debounce execution of a function. Debouncing, unlike throttling,\n * guarantees that a function is only executed a single time, either at the\n * very beginning of a series of calls, or at the very end.\n *\n * @param {Number} delay A zero-or-greater delay in milliseconds. For event callbacks, values around 100 or 250 (or even higher) are most useful.\n * @param {Boolean} [atBegin] Optional, defaults to false. If atBegin is false or unspecified, callback will only be executed `delay` milliseconds\n * after the last debounced-function call. If atBegin is true, callback will be executed only at the first debounced-function call.\n * (After the throttled-function has not been called for `delay` milliseconds, the internal counter is reset).\n * @param {Function} callback A function to be executed after delay milliseconds. The `this` context and all arguments are passed through, as-is,\n * to `callback` when the debounced-function is executed.\n *\n * @return {Function} A new, debounced function.\n */\nfunction debounce(delay, atBegin, callback) {\n\treturn callback === undefined ? throttle(delay, atBegin, false) : throttle(delay, callback, atBegin !== false);\n}\n\nexports.throttle = throttle;\nexports.debounce = debounce;\n\n/***/ }),\n/* 4 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar global = __webpack_require__(0);\n\n/**\n * `requestAnimationFrame()`\n */\n\nvar request = global.requestAnimationFrame || global.webkitRequestAnimationFrame || global.mozRequestAnimationFrame || fallback;\n\nvar prev = +new Date();\nfunction fallback(fn) {\n var curr = +new Date();\n var ms = Math.max(0, 16 - (curr - prev));\n var req = setTimeout(fn, ms);\n return prev = curr, req;\n}\n\n/**\n * `cancelAnimationFrame()`\n */\n\nvar cancel = global.cancelAnimationFrame || global.webkitCancelAnimationFrame || global.mozCancelAnimationFrame || clearTimeout;\n\nif (Function.prototype.bind) {\n request = request.bind(global);\n cancel = cancel.bind(global);\n}\n\nexports = module.exports = request;\nexports.cancel = cancel;\n\n/***/ }),\n/* 5 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\n\nvar g;\n\n// This works in non-strict mode\ng = function () {\n\treturn this;\n}();\n\ntry {\n\t// This works if eval is allowed (see CSP)\n\tg = g || Function(\"return this\")() || (1, eval)(\"this\");\n} catch (e) {\n\t// This works if the window reference is available\n\tif ((typeof window === \"undefined\" ? \"undefined\" : _typeof(window)) === \"object\") g = window;\n}\n\n// g can still be undefined, but nothing to do about it...\n// We return undefined, instead of nothing here, so it's\n// easier to handle this case. if(!global) { ...}\n\nmodule.exports = g;\n\n/***/ })\n/******/ ]);"]}
|
class-visual-portfolio.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/**
|
3 |
* Plugin Name: Visual Portfolio
|
4 |
* Description: Portfolio post type with visual editor
|
5 |
-
* Version: 1.8.
|
6 |
* Author: nK
|
7 |
* Author URI: https://nkdev.info
|
8 |
* License: GPLv2 or later
|
@@ -207,8 +207,8 @@ class Visual_Portfolio {
|
|
207 |
}
|
208 |
|
209 |
// Visual Portfolio.
|
210 |
-
wp_register_script( 'visual-portfolio', visual_portfolio()->plugin_url . 'assets/js/script.min.js', $vp_deps, '1.8.
|
211 |
-
wp_register_style( 'visual-portfolio', visual_portfolio()->plugin_url . 'assets/css/style.min.css', $vp_style_deps, '1.8.
|
212 |
|
213 |
// Visual Portfolio data.
|
214 |
$data_init = array(
|
2 |
/**
|
3 |
* Plugin Name: Visual Portfolio
|
4 |
* Description: Portfolio post type with visual editor
|
5 |
+
* Version: 1.8.2
|
6 |
* Author: nK
|
7 |
* Author URI: https://nkdev.info
|
8 |
* License: GPLv2 or later
|
207 |
}
|
208 |
|
209 |
// Visual Portfolio.
|
210 |
+
wp_register_script( 'visual-portfolio', visual_portfolio()->plugin_url . 'assets/js/script.min.js', $vp_deps, '1.8.2', true );
|
211 |
+
wp_register_style( 'visual-portfolio', visual_portfolio()->plugin_url . 'assets/css/style.min.css', $vp_style_deps, '1.8.2' );
|
212 |
|
213 |
// Visual Portfolio data.
|
214 |
$data_init = array(
|
classes/class-admin.php
CHANGED
@@ -113,7 +113,7 @@ class Visual_Portfolio_Admin {
|
|
113 |
wp_enqueue_script( 'sortablejs', visual_portfolio()->plugin_url . 'assets/vendor/sortable/Sortable.min.js', array( 'jquery' ), '1.6.0', true );
|
114 |
wp_enqueue_script( 'sortablejs-jquery', visual_portfolio()->plugin_url . 'assets/vendor/sortable/jquery.binding.js', array( 'sortablejs' ), '1.6.0', true );
|
115 |
|
116 |
-
wp_enqueue_script( 'conditionize', visual_portfolio()->plugin_url . 'assets/vendor/conditionize/conditionize.min.js', array( 'jquery' ), '1.0.
|
117 |
|
118 |
$codemirror_version = '5.38.0';
|
119 |
wp_enqueue_script( 'codemirror', visual_portfolio()->plugin_url . 'assets/vendor/codemirror/codemirror.js', '', $codemirror_version, true );
|
@@ -152,8 +152,8 @@ class Visual_Portfolio_Admin {
|
|
152 |
wp_enqueue_script( 'tooltip.js', visual_portfolio()->plugin_url . 'assets/vendor/popper.js/tooltip.min.js', array( 'popper.js' ), '1.14.3', true );
|
153 |
wp_enqueue_style( 'popper.js', visual_portfolio()->plugin_url . 'assets/vendor/popper.js/popper.css', '', '1.14.3' );
|
154 |
|
155 |
-
wp_enqueue_script( 'visual-portfolio-admin', visual_portfolio()->plugin_url . 'assets/admin/js/script.min.js', array( 'jquery' ), '1.8.
|
156 |
-
wp_enqueue_style( 'visual-portfolio-admin', visual_portfolio()->plugin_url . 'assets/admin/css/style.min.css', '', '1.8.
|
157 |
wp_localize_script( 'visual-portfolio-admin', 'VPAdminVariables', $data_init );
|
158 |
}
|
159 |
|
@@ -693,6 +693,8 @@ class Visual_Portfolio_Admin {
|
|
693 |
* Register control fields for the metaboxes.
|
694 |
*/
|
695 |
public function register_controls() {
|
|
|
|
|
696 |
/**
|
697 |
* Layouts.
|
698 |
*/
|
@@ -2304,12 +2306,16 @@ class Visual_Portfolio_Admin {
|
|
2304 |
),
|
2305 |
)
|
2306 |
);
|
|
|
|
|
2307 |
}
|
2308 |
|
2309 |
/**
|
2310 |
* Add metaboxes
|
2311 |
*/
|
2312 |
public function add_meta_boxes() {
|
|
|
|
|
2313 |
add_meta_box(
|
2314 |
'vp_name',
|
2315 |
esc_html__( 'Name & Shortcode', 'visual-portfolio' ),
|
@@ -2383,6 +2389,8 @@ class Visual_Portfolio_Admin {
|
|
2383 |
'normal',
|
2384 |
'high'
|
2385 |
);
|
|
|
|
|
2386 |
}
|
2387 |
|
2388 |
/**
|
113 |
wp_enqueue_script( 'sortablejs', visual_portfolio()->plugin_url . 'assets/vendor/sortable/Sortable.min.js', array( 'jquery' ), '1.6.0', true );
|
114 |
wp_enqueue_script( 'sortablejs-jquery', visual_portfolio()->plugin_url . 'assets/vendor/sortable/jquery.binding.js', array( 'sortablejs' ), '1.6.0', true );
|
115 |
|
116 |
+
wp_enqueue_script( 'conditionize', visual_portfolio()->plugin_url . 'assets/vendor/conditionize/conditionize.min.js', array( 'jquery' ), '1.0.1', true );
|
117 |
|
118 |
$codemirror_version = '5.38.0';
|
119 |
wp_enqueue_script( 'codemirror', visual_portfolio()->plugin_url . 'assets/vendor/codemirror/codemirror.js', '', $codemirror_version, true );
|
152 |
wp_enqueue_script( 'tooltip.js', visual_portfolio()->plugin_url . 'assets/vendor/popper.js/tooltip.min.js', array( 'popper.js' ), '1.14.3', true );
|
153 |
wp_enqueue_style( 'popper.js', visual_portfolio()->plugin_url . 'assets/vendor/popper.js/popper.css', '', '1.14.3' );
|
154 |
|
155 |
+
wp_enqueue_script( 'visual-portfolio-admin', visual_portfolio()->plugin_url . 'assets/admin/js/script.min.js', array( 'jquery' ), '1.8.2', true );
|
156 |
+
wp_enqueue_style( 'visual-portfolio-admin', visual_portfolio()->plugin_url . 'assets/admin/css/style.min.css', '', '1.8.2' );
|
157 |
wp_localize_script( 'visual-portfolio-admin', 'VPAdminVariables', $data_init );
|
158 |
}
|
159 |
|
693 |
* Register control fields for the metaboxes.
|
694 |
*/
|
695 |
public function register_controls() {
|
696 |
+
do_action( 'vpf_before_register_controls' );
|
697 |
+
|
698 |
/**
|
699 |
* Layouts.
|
700 |
*/
|
2306 |
),
|
2307 |
)
|
2308 |
);
|
2309 |
+
|
2310 |
+
do_action( 'vpf_after_register_controls' );
|
2311 |
}
|
2312 |
|
2313 |
/**
|
2314 |
* Add metaboxes
|
2315 |
*/
|
2316 |
public function add_meta_boxes() {
|
2317 |
+
do_action( 'vpf_before_add_meta_boxes' );
|
2318 |
+
|
2319 |
add_meta_box(
|
2320 |
'vp_name',
|
2321 |
esc_html__( 'Name & Shortcode', 'visual-portfolio' ),
|
2389 |
'normal',
|
2390 |
'high'
|
2391 |
);
|
2392 |
+
|
2393 |
+
do_action( 'vpf_after_add_meta_boxes' );
|
2394 |
}
|
2395 |
|
2396 |
/**
|
languages/visual-portfolio.pot
CHANGED
@@ -167,7 +167,7 @@ msgstr ""
|
|
167 |
msgid "Thumbnail"
|
168 |
msgstr ""
|
169 |
|
170 |
-
#: dist/visual-portfolio/classes/class-admin.php:592, dist/visual-portfolio/classes/class-admin.php:
|
171 |
msgid "Shortcode"
|
172 |
msgstr ""
|
173 |
|
@@ -175,503 +175,503 @@ msgstr ""
|
|
175 |
msgid "Documentation"
|
176 |
msgstr ""
|
177 |
|
178 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
179 |
msgid "Tiles"
|
180 |
msgstr ""
|
181 |
|
182 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
183 |
msgid "Type"
|
184 |
msgstr ""
|
185 |
|
186 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
187 |
msgid "Select tiles type"
|
188 |
msgstr ""
|
189 |
|
190 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
191 |
msgid "Masonry"
|
192 |
msgstr ""
|
193 |
|
194 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
195 |
msgid "Columns"
|
196 |
msgstr ""
|
197 |
|
198 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
199 |
msgid "Justified"
|
200 |
msgstr ""
|
201 |
|
202 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
203 |
msgid "Row height"
|
204 |
msgstr ""
|
205 |
|
206 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
207 |
msgid "Row height tolerance"
|
208 |
msgstr ""
|
209 |
|
210 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
211 |
msgid "Slider"
|
212 |
msgstr ""
|
213 |
|
214 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
215 |
msgid "Effect"
|
216 |
msgstr ""
|
217 |
|
218 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
219 |
msgid "Slide"
|
220 |
msgstr ""
|
221 |
|
222 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
223 |
msgid "Coverflow"
|
224 |
msgstr ""
|
225 |
|
226 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
227 |
msgid "Fade"
|
228 |
msgstr ""
|
229 |
|
230 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
231 |
msgid "Speed (seconds)"
|
232 |
msgstr ""
|
233 |
|
234 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
235 |
msgid "Autoplay (seconds)"
|
236 |
msgstr ""
|
237 |
|
238 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
239 |
msgid "Items height"
|
240 |
msgstr ""
|
241 |
|
242 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
243 |
msgid "Auto"
|
244 |
msgstr ""
|
245 |
|
246 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
247 |
msgid "Static (px)"
|
248 |
msgstr ""
|
249 |
|
250 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
251 |
msgid "Dynamic (%)"
|
252 |
msgstr ""
|
253 |
|
254 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
255 |
msgid "Slides per view"
|
256 |
msgstr ""
|
257 |
|
258 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
259 |
msgid "Custom"
|
260 |
msgstr ""
|
261 |
|
262 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
263 |
msgid "Centered slides"
|
264 |
msgstr ""
|
265 |
|
266 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
267 |
msgid "Loop"
|
268 |
msgstr ""
|
269 |
|
270 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
271 |
msgid "Free scroll"
|
272 |
msgstr ""
|
273 |
|
274 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
275 |
msgid "Show arrows"
|
276 |
msgstr ""
|
277 |
|
278 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
279 |
msgid "Prev arrow icon"
|
280 |
msgstr ""
|
281 |
|
282 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
283 |
msgid "Next arrow icon"
|
284 |
msgstr ""
|
285 |
|
286 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
287 |
msgid "Show bullets"
|
288 |
msgstr ""
|
289 |
|
290 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
291 |
msgid "Dynamic bullets"
|
292 |
msgstr ""
|
293 |
|
294 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
295 |
msgid "Gap"
|
296 |
msgstr ""
|
297 |
|
298 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
299 |
msgid "Items per page"
|
300 |
msgstr ""
|
301 |
|
302 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
303 |
msgid "Stretch"
|
304 |
msgstr ""
|
305 |
|
306 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
307 |
msgid "Break container and display it wide"
|
308 |
msgstr ""
|
309 |
|
310 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
311 |
msgid "Default"
|
312 |
msgstr ""
|
313 |
|
314 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
315 |
msgid "Show Read more button"
|
316 |
msgstr ""
|
317 |
|
318 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
319 |
msgid "False"
|
320 |
msgstr ""
|
321 |
|
322 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
323 |
msgid "Always show"
|
324 |
msgstr ""
|
325 |
|
326 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
327 |
msgid "Show when used \"More tag\" in the post"
|
328 |
msgstr ""
|
329 |
|
330 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
331 |
msgid "Read more button label"
|
332 |
msgstr ""
|
333 |
|
334 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
335 |
msgid "Fly"
|
336 |
msgstr ""
|
337 |
|
338 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
339 |
msgid "Overlay background color"
|
340 |
msgstr ""
|
341 |
|
342 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
343 |
msgid "Overlay text color"
|
344 |
msgstr ""
|
345 |
|
346 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
347 |
msgid "Emerge"
|
348 |
msgstr ""
|
349 |
|
350 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
351 |
msgid "Show title"
|
352 |
msgstr ""
|
353 |
|
354 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
355 |
msgid "Show categories"
|
356 |
msgstr ""
|
357 |
|
358 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
359 |
msgid "Categories count"
|
360 |
msgstr ""
|
361 |
|
362 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
363 |
msgid "Show date"
|
364 |
msgstr ""
|
365 |
|
366 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
367 |
msgid "Show"
|
368 |
msgstr ""
|
369 |
|
370 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
371 |
msgid "Human Format"
|
372 |
msgstr ""
|
373 |
|
374 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
375 |
msgid ""
|
376 |
"Date format
|
377 |
" Example: F j, Y"
|
378 |
msgstr ""
|
379 |
|
380 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
381 |
msgid "Show excerpt"
|
382 |
msgstr ""
|
383 |
|
384 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
385 |
msgid "Excerpt words count"
|
386 |
msgstr ""
|
387 |
|
388 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
389 |
msgid "Show icon"
|
390 |
msgstr ""
|
391 |
|
392 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
393 |
msgid "Standard icon"
|
394 |
msgstr ""
|
395 |
|
396 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
397 |
msgid "Video icon"
|
398 |
msgstr ""
|
399 |
|
400 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
401 |
msgid "Caption align"
|
402 |
msgstr ""
|
403 |
|
404 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
405 |
msgid "Disabled"
|
406 |
msgstr ""
|
407 |
|
408 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
409 |
msgid "URL"
|
410 |
msgstr ""
|
411 |
|
412 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
413 |
msgid "Popup Gallery"
|
414 |
msgstr ""
|
415 |
|
416 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
417 |
msgid "Target"
|
418 |
msgstr ""
|
419 |
|
420 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
421 |
msgid "New tab (_blank)"
|
422 |
msgstr ""
|
423 |
|
424 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
425 |
msgid "Top frame (_top)"
|
426 |
msgstr ""
|
427 |
|
428 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
429 |
msgid "Align"
|
430 |
msgstr ""
|
431 |
|
432 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
433 |
msgid "Center"
|
434 |
msgstr ""
|
435 |
|
436 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
437 |
msgid "Left"
|
438 |
msgstr ""
|
439 |
|
440 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
441 |
msgid "Right"
|
442 |
msgstr ""
|
443 |
|
444 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
445 |
msgid "Show count"
|
446 |
msgstr ""
|
447 |
|
448 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
449 |
msgid "All button text"
|
450 |
msgstr ""
|
451 |
|
452 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
453 |
msgid "All"
|
454 |
msgstr ""
|
455 |
|
456 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
457 |
msgid "Paged"
|
458 |
msgstr ""
|
459 |
|
460 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
461 |
msgid "Load More"
|
462 |
msgstr ""
|
463 |
|
464 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
465 |
msgid "Infinite"
|
466 |
msgstr ""
|
467 |
|
468 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
469 |
msgid "Note: you will see the \"Load More\" pagination in the preview. \"Infinite\" pagination will be visible on the site."
|
470 |
msgstr ""
|
471 |
|
472 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
473 |
msgid "Texts"
|
474 |
msgstr ""
|
475 |
|
476 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
477 |
msgid "Load more"
|
478 |
msgstr ""
|
479 |
|
480 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
481 |
msgid "Load more button label"
|
482 |
msgstr ""
|
483 |
|
484 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
485 |
msgid "Loading more..."
|
486 |
msgstr ""
|
487 |
|
488 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
489 |
msgid "Loading more button label"
|
490 |
msgstr ""
|
491 |
|
492 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
493 |
msgid "You’ve reached the end of the list"
|
494 |
msgstr ""
|
495 |
|
496 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
497 |
msgid "End of the list text"
|
498 |
msgstr ""
|
499 |
|
500 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
501 |
msgid "Show numbers"
|
502 |
msgstr ""
|
503 |
|
504 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
505 |
msgid "Data source"
|
506 |
msgstr ""
|
507 |
|
508 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
509 |
msgid "Specific posts"
|
510 |
msgstr ""
|
511 |
|
512 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
513 |
msgid "Excluded posts"
|
514 |
msgstr ""
|
515 |
|
516 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
517 |
msgid "Custom query"
|
518 |
msgstr ""
|
519 |
|
520 |
#. translators: %1$s - escaped url.
|
521 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
522 |
msgid "Build custom query according to <a href=\"%1$s\">WordPress Codex</a>."
|
523 |
msgstr ""
|
524 |
|
525 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
526 |
msgid "Taxonomies"
|
527 |
msgstr ""
|
528 |
|
529 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
530 |
msgid "Taxonomies relation"
|
531 |
msgstr ""
|
532 |
|
533 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
534 |
msgid "OR"
|
535 |
msgstr ""
|
536 |
|
537 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
538 |
msgid "AND"
|
539 |
msgstr ""
|
540 |
|
541 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
542 |
msgid "Order by"
|
543 |
msgstr ""
|
544 |
|
545 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
546 |
msgid "Date"
|
547 |
msgstr ""
|
548 |
|
549 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
550 |
msgid "Title"
|
551 |
msgstr ""
|
552 |
|
553 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
554 |
msgid "ID"
|
555 |
msgstr ""
|
556 |
|
557 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
558 |
msgid "Menu Order"
|
559 |
msgstr ""
|
560 |
|
561 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
562 |
msgid "Random"
|
563 |
msgstr ""
|
564 |
|
565 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
566 |
msgid "Order direction"
|
567 |
msgstr ""
|
568 |
|
569 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
570 |
msgid "DESC"
|
571 |
msgstr ""
|
572 |
|
573 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
574 |
msgid "ASC"
|
575 |
msgstr ""
|
576 |
|
577 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
578 |
msgid "Name & Shortcode"
|
579 |
msgstr ""
|
580 |
|
581 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
582 |
msgid "Layout"
|
583 |
msgstr ""
|
584 |
|
585 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
586 |
msgid "Items Style"
|
587 |
msgstr ""
|
588 |
|
589 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
590 |
msgid "Items Click Action"
|
591 |
msgstr ""
|
592 |
|
593 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
594 |
msgid "Filter"
|
595 |
msgstr ""
|
596 |
|
597 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
598 |
msgid "Pagination"
|
599 |
msgstr ""
|
600 |
|
601 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
602 |
msgid "Preview"
|
603 |
msgstr ""
|
604 |
|
605 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
606 |
msgid "Content Source"
|
607 |
msgstr ""
|
608 |
|
609 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
610 |
msgid "Custom CSS"
|
611 |
msgstr ""
|
612 |
|
613 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
614 |
msgid "Name"
|
615 |
msgstr ""
|
616 |
|
617 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
618 |
msgid "Place the shortcode where you want to show the portfolio list."
|
619 |
msgstr ""
|
620 |
|
621 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
622 |
msgid "Filter Shortcode"
|
623 |
msgstr ""
|
624 |
|
625 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
626 |
msgid "Place the shortcode where you want to show the filter."
|
627 |
msgstr ""
|
628 |
|
629 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
630 |
msgid "Portfolio"
|
631 |
msgstr ""
|
632 |
|
633 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
634 |
msgid "Post-Based"
|
635 |
msgstr ""
|
636 |
|
637 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
638 |
msgid "Images"
|
639 |
msgstr ""
|
640 |
|
641 |
#. translators: %1$s - escaped url.
|
642 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
643 |
msgid "Portfolio items list from <a href=\"%1$s\" target=\"_blank\">%2$s</a>"
|
644 |
msgstr ""
|
645 |
|
646 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
647 |
msgid "Available classes:"
|
648 |
msgstr ""
|
649 |
|
650 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
651 |
msgid " - use this classname for each styles you added. It is the main Visual Portfolio wrapper."
|
652 |
msgstr ""
|
653 |
|
654 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
655 |
msgid " - items wrapper."
|
656 |
msgstr ""
|
657 |
|
658 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
659 |
msgid " - single item wrapper."
|
660 |
msgstr ""
|
661 |
|
662 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
663 |
msgid " - filter wrapper."
|
664 |
msgstr ""
|
665 |
|
666 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
667 |
msgid " - pagination wrapper."
|
668 |
msgstr ""
|
669 |
|
670 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
671 |
msgid "Specific Posts"
|
672 |
msgstr ""
|
673 |
|
674 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
675 |
msgid "Custom Query"
|
676 |
msgstr ""
|
677 |
|
167 |
msgid "Thumbnail"
|
168 |
msgstr ""
|
169 |
|
170 |
+
#: dist/visual-portfolio/classes/class-admin.php:592, dist/visual-portfolio/classes/class-admin.php:2416
|
171 |
msgid "Shortcode"
|
172 |
msgstr ""
|
173 |
|
175 |
msgid "Documentation"
|
176 |
msgstr ""
|
177 |
|
178 |
+
#: dist/visual-portfolio/classes/class-admin.php:704
|
179 |
msgid "Tiles"
|
180 |
msgstr ""
|
181 |
|
182 |
+
#: dist/visual-portfolio/classes/class-admin.php:719, dist/visual-portfolio/classes/class-admin.php:1738
|
183 |
msgid "Type"
|
184 |
msgstr ""
|
185 |
|
186 |
+
#: dist/visual-portfolio/classes/class-admin.php:720
|
187 |
msgid "Select tiles type"
|
188 |
msgstr ""
|
189 |
|
190 |
+
#: dist/visual-portfolio/classes/class-admin.php:839
|
191 |
msgid "Masonry"
|
192 |
msgstr ""
|
193 |
|
194 |
+
#: dist/visual-portfolio/classes/class-admin.php:843
|
195 |
msgid "Columns"
|
196 |
msgstr ""
|
197 |
|
198 |
+
#: dist/visual-portfolio/classes/class-admin.php:854
|
199 |
msgid "Justified"
|
200 |
msgstr ""
|
201 |
|
202 |
+
#: dist/visual-portfolio/classes/class-admin.php:858
|
203 |
msgid "Row height"
|
204 |
msgstr ""
|
205 |
|
206 |
+
#: dist/visual-portfolio/classes/class-admin.php:866
|
207 |
msgid "Row height tolerance"
|
208 |
msgstr ""
|
209 |
|
210 |
+
#: dist/visual-portfolio/classes/class-admin.php:878
|
211 |
msgid "Slider"
|
212 |
msgstr ""
|
213 |
|
214 |
+
#: dist/visual-portfolio/classes/class-admin.php:882
|
215 |
msgid "Effect"
|
216 |
msgstr ""
|
217 |
|
218 |
+
#: dist/visual-portfolio/classes/class-admin.php:886
|
219 |
msgid "Slide"
|
220 |
msgstr ""
|
221 |
|
222 |
+
#: dist/visual-portfolio/classes/class-admin.php:887
|
223 |
msgid "Coverflow"
|
224 |
msgstr ""
|
225 |
|
226 |
+
#: dist/visual-portfolio/classes/class-admin.php:888, dist/visual-portfolio/classes/class-admin.php:1280
|
227 |
msgid "Fade"
|
228 |
msgstr ""
|
229 |
|
230 |
+
#: dist/visual-portfolio/classes/class-admin.php:893
|
231 |
msgid "Speed (seconds)"
|
232 |
msgstr ""
|
233 |
|
234 |
+
#: dist/visual-portfolio/classes/class-admin.php:902
|
235 |
msgid "Autoplay (seconds)"
|
236 |
msgstr ""
|
237 |
|
238 |
+
#: dist/visual-portfolio/classes/class-admin.php:911
|
239 |
msgid "Items height"
|
240 |
msgstr ""
|
241 |
|
242 |
+
#: dist/visual-portfolio/classes/class-admin.php:915, dist/visual-portfolio/classes/class-admin.php:954
|
243 |
msgid "Auto"
|
244 |
msgstr ""
|
245 |
|
246 |
+
#: dist/visual-portfolio/classes/class-admin.php:916
|
247 |
msgid "Static (px)"
|
248 |
msgstr ""
|
249 |
|
250 |
+
#: dist/visual-portfolio/classes/class-admin.php:917
|
251 |
msgid "Dynamic (%)"
|
252 |
msgstr ""
|
253 |
|
254 |
+
#: dist/visual-portfolio/classes/class-admin.php:950
|
255 |
msgid "Slides per view"
|
256 |
msgstr ""
|
257 |
|
258 |
+
#: dist/visual-portfolio/classes/class-admin.php:955
|
259 |
msgid "Custom"
|
260 |
msgstr ""
|
261 |
|
262 |
+
#: dist/visual-portfolio/classes/class-admin.php:986
|
263 |
msgid "Centered slides"
|
264 |
msgstr ""
|
265 |
|
266 |
+
#: dist/visual-portfolio/classes/class-admin.php:999
|
267 |
msgid "Loop"
|
268 |
msgstr ""
|
269 |
|
270 |
+
#: dist/visual-portfolio/classes/class-admin.php:1005
|
271 |
msgid "Free scroll"
|
272 |
msgstr ""
|
273 |
|
274 |
+
#: dist/visual-portfolio/classes/class-admin.php:1011, dist/visual-portfolio/classes/class-admin.php:1984, dist/visual-portfolio/classes/class-settings.php:146
|
275 |
msgid "Show arrows"
|
276 |
msgstr ""
|
277 |
|
278 |
+
#: dist/visual-portfolio/classes/class-admin.php:1019, dist/visual-portfolio/classes/class-admin.php:1020, dist/visual-portfolio/classes/class-admin.php:2006, dist/visual-portfolio/classes/class-admin.php:2007
|
279 |
msgid "Prev arrow icon"
|
280 |
msgstr ""
|
281 |
|
282 |
+
#: dist/visual-portfolio/classes/class-admin.php:1032, dist/visual-portfolio/classes/class-admin.php:1033, dist/visual-portfolio/classes/class-admin.php:2031, dist/visual-portfolio/classes/class-admin.php:2032
|
283 |
msgid "Next arrow icon"
|
284 |
msgstr ""
|
285 |
|
286 |
+
#: dist/visual-portfolio/classes/class-admin.php:1043
|
287 |
msgid "Show bullets"
|
288 |
msgstr ""
|
289 |
|
290 |
+
#: dist/visual-portfolio/classes/class-admin.php:1049
|
291 |
msgid "Dynamic bullets"
|
292 |
msgstr ""
|
293 |
|
294 |
+
#: dist/visual-portfolio/classes/class-admin.php:1119
|
295 |
msgid "Gap"
|
296 |
msgstr ""
|
297 |
|
298 |
+
#: dist/visual-portfolio/classes/class-admin.php:1131
|
299 |
msgid "Items per page"
|
300 |
msgstr ""
|
301 |
|
302 |
+
#: dist/visual-portfolio/classes/class-admin.php:1143
|
303 |
msgid "Stretch"
|
304 |
msgstr ""
|
305 |
|
306 |
+
#: dist/visual-portfolio/classes/class-admin.php:1146
|
307 |
msgid "Break container and display it wide"
|
308 |
msgstr ""
|
309 |
|
310 |
+
#: dist/visual-portfolio/classes/class-admin.php:1157, dist/visual-portfolio/classes/class-admin.php:1529, dist/visual-portfolio/classes/class-admin.php:1553, dist/visual-portfolio/classes/class-admin.php:1677
|
311 |
msgid "Default"
|
312 |
msgstr ""
|
313 |
|
314 |
+
#: dist/visual-portfolio/classes/class-admin.php:1169
|
315 |
msgid "Show Read more button"
|
316 |
msgstr ""
|
317 |
|
318 |
+
#: dist/visual-portfolio/classes/class-admin.php:1173, dist/visual-portfolio/classes/class-admin.php:1387
|
319 |
msgid "False"
|
320 |
msgstr ""
|
321 |
|
322 |
+
#: dist/visual-portfolio/classes/class-admin.php:1174
|
323 |
msgid "Always show"
|
324 |
msgstr ""
|
325 |
|
326 |
+
#: dist/visual-portfolio/classes/class-admin.php:1175
|
327 |
msgid "Show when used \"More tag\" in the post"
|
328 |
msgstr ""
|
329 |
|
330 |
+
#: dist/visual-portfolio/classes/class-admin.php:1183
|
331 |
msgid "Read more button label"
|
332 |
msgstr ""
|
333 |
|
334 |
+
#: dist/visual-portfolio/classes/class-admin.php:1198
|
335 |
msgid "Fly"
|
336 |
msgstr ""
|
337 |
|
338 |
+
#: dist/visual-portfolio/classes/class-admin.php:1210, dist/visual-portfolio/classes/class-admin.php:1251, dist/visual-portfolio/classes/class-admin.php:1292
|
339 |
msgid "Overlay background color"
|
340 |
msgstr ""
|
341 |
|
342 |
+
#: dist/visual-portfolio/classes/class-admin.php:1223, dist/visual-portfolio/classes/class-admin.php:1264, dist/visual-portfolio/classes/class-admin.php:1305
|
343 |
msgid "Overlay text color"
|
344 |
msgstr ""
|
345 |
|
346 |
+
#: dist/visual-portfolio/classes/class-admin.php:1239
|
347 |
msgid "Emerge"
|
348 |
msgstr ""
|
349 |
|
350 |
+
#: dist/visual-portfolio/classes/class-admin.php:1354
|
351 |
msgid "Show title"
|
352 |
msgstr ""
|
353 |
|
354 |
+
#: dist/visual-portfolio/classes/class-admin.php:1362
|
355 |
msgid "Show categories"
|
356 |
msgstr ""
|
357 |
|
358 |
+
#: dist/visual-portfolio/classes/class-admin.php:1368
|
359 |
msgid "Categories count"
|
360 |
msgstr ""
|
361 |
|
362 |
+
#: dist/visual-portfolio/classes/class-admin.php:1383
|
363 |
msgid "Show date"
|
364 |
msgstr ""
|
365 |
|
366 |
+
#: dist/visual-portfolio/classes/class-admin.php:1388
|
367 |
msgid "Show"
|
368 |
msgstr ""
|
369 |
|
370 |
+
#: dist/visual-portfolio/classes/class-admin.php:1389
|
371 |
msgid "Human Format"
|
372 |
msgstr ""
|
373 |
|
374 |
+
#: dist/visual-portfolio/classes/class-admin.php:1397
|
375 |
msgid ""
|
376 |
"Date format
|
377 |
" Example: F j, Y"
|
378 |
msgstr ""
|
379 |
|
380 |
+
#: dist/visual-portfolio/classes/class-admin.php:1409
|
381 |
msgid "Show excerpt"
|
382 |
msgstr ""
|
383 |
|
384 |
+
#: dist/visual-portfolio/classes/class-admin.php:1415
|
385 |
msgid "Excerpt words count"
|
386 |
msgstr ""
|
387 |
|
388 |
+
#: dist/visual-portfolio/classes/class-admin.php:1430
|
389 |
msgid "Show icon"
|
390 |
msgstr ""
|
391 |
|
392 |
+
#: dist/visual-portfolio/classes/class-admin.php:1438, dist/visual-portfolio/classes/class-admin.php:1439
|
393 |
msgid "Standard icon"
|
394 |
msgstr ""
|
395 |
|
396 |
+
#: dist/visual-portfolio/classes/class-admin.php:1451, dist/visual-portfolio/classes/class-admin.php:1452
|
397 |
msgid "Video icon"
|
398 |
msgstr ""
|
399 |
|
400 |
+
#: dist/visual-portfolio/classes/class-admin.php:1464
|
401 |
msgid "Caption align"
|
402 |
msgstr ""
|
403 |
|
404 |
+
#: dist/visual-portfolio/classes/class-admin.php:1517, dist/visual-portfolio/classes/class-admin.php:1547, dist/visual-portfolio/classes/class-admin.php:1671
|
405 |
msgid "Disabled"
|
406 |
msgstr ""
|
407 |
|
408 |
+
#: dist/visual-portfolio/classes/class-admin.php:1518, dist/visual-portfolio/classes/class-controls.php:625
|
409 |
msgid "URL"
|
410 |
msgstr ""
|
411 |
|
412 |
+
#: dist/visual-portfolio/classes/class-admin.php:1519, dist/visual-portfolio/classes/class-settings.php:104
|
413 |
msgid "Popup Gallery"
|
414 |
msgstr ""
|
415 |
|
416 |
+
#: dist/visual-portfolio/classes/class-admin.php:1525
|
417 |
msgid "Target"
|
418 |
msgstr ""
|
419 |
|
420 |
+
#: dist/visual-portfolio/classes/class-admin.php:1530
|
421 |
msgid "New tab (_blank)"
|
422 |
msgstr ""
|
423 |
|
424 |
+
#: dist/visual-portfolio/classes/class-admin.php:1531
|
425 |
msgid "Top frame (_top)"
|
426 |
msgstr ""
|
427 |
|
428 |
+
#: dist/visual-portfolio/classes/class-admin.php:1615, dist/visual-portfolio/classes/class-admin.php:1780
|
429 |
msgid "Align"
|
430 |
msgstr ""
|
431 |
|
432 |
+
#: dist/visual-portfolio/classes/class-admin.php:1619, dist/visual-portfolio/classes/class-admin.php:1784, dist/visual-portfolio/classes/class-controls.php:535, dist/visual-portfolio/classes/class-controls.php:544, dist/visual-portfolio/classes/class-controls.php:548, dist/visual-portfolio/classes/class-controls.php:561
|
433 |
msgid "Center"
|
434 |
msgstr ""
|
435 |
|
436 |
+
#: dist/visual-portfolio/classes/class-admin.php:1620, dist/visual-portfolio/classes/class-admin.php:1785, dist/visual-portfolio/classes/class-controls.php:538, dist/visual-portfolio/classes/class-controls.php:551, dist/visual-portfolio/classes/class-controls.php:564
|
437 |
msgid "Left"
|
438 |
msgstr ""
|
439 |
|
440 |
+
#: dist/visual-portfolio/classes/class-admin.php:1621, dist/visual-portfolio/classes/class-admin.php:1786, dist/visual-portfolio/classes/class-controls.php:541, dist/visual-portfolio/classes/class-controls.php:554, dist/visual-portfolio/classes/class-controls.php:567
|
441 |
msgid "Right"
|
442 |
msgstr ""
|
443 |
|
444 |
+
#: dist/visual-portfolio/classes/class-admin.php:1636
|
445 |
msgid "Show count"
|
446 |
msgstr ""
|
447 |
|
448 |
+
#: dist/visual-portfolio/classes/class-admin.php:1652
|
449 |
msgid "All button text"
|
450 |
msgstr ""
|
451 |
|
452 |
+
#: dist/visual-portfolio/classes/class-admin.php:1654
|
453 |
msgid "All"
|
454 |
msgstr ""
|
455 |
|
456 |
+
#: dist/visual-portfolio/classes/class-admin.php:1743
|
457 |
msgid "Paged"
|
458 |
msgstr ""
|
459 |
|
460 |
+
#: dist/visual-portfolio/classes/class-admin.php:1744
|
461 |
msgid "Load More"
|
462 |
msgstr ""
|
463 |
|
464 |
+
#: dist/visual-portfolio/classes/class-admin.php:1745
|
465 |
msgid "Infinite"
|
466 |
msgstr ""
|
467 |
|
468 |
+
#: dist/visual-portfolio/classes/class-admin.php:1760
|
469 |
msgid "Note: you will see the \"Load More\" pagination in the preview. \"Infinite\" pagination will be visible on the site."
|
470 |
msgstr ""
|
471 |
|
472 |
+
#: dist/visual-portfolio/classes/class-admin.php:1806, dist/visual-portfolio/classes/class-admin.php:1826
|
473 |
msgid "Texts"
|
474 |
msgstr ""
|
475 |
|
476 |
+
#: dist/visual-portfolio/classes/class-admin.php:1847, dist/visual-portfolio/classes/class-admin.php:1916
|
477 |
msgid "Load more"
|
478 |
msgstr ""
|
479 |
|
480 |
+
#: dist/visual-portfolio/classes/class-admin.php:1848, dist/visual-portfolio/classes/class-admin.php:1849, dist/visual-portfolio/classes/class-admin.php:1917, dist/visual-portfolio/classes/class-admin.php:1918
|
481 |
msgid "Load more button label"
|
482 |
msgstr ""
|
483 |
|
484 |
+
#: dist/visual-portfolio/classes/class-admin.php:1870, dist/visual-portfolio/classes/class-admin.php:1939
|
485 |
msgid "Loading more..."
|
486 |
msgstr ""
|
487 |
|
488 |
+
#: dist/visual-portfolio/classes/class-admin.php:1871, dist/visual-portfolio/classes/class-admin.php:1872, dist/visual-portfolio/classes/class-admin.php:1940, dist/visual-portfolio/classes/class-admin.php:1941
|
489 |
msgid "Loading more button label"
|
490 |
msgstr ""
|
491 |
|
492 |
+
#: dist/visual-portfolio/classes/class-admin.php:1893, dist/visual-portfolio/classes/class-admin.php:1962
|
493 |
msgid "You’ve reached the end of the list"
|
494 |
msgstr ""
|
495 |
|
496 |
+
#: dist/visual-portfolio/classes/class-admin.php:1894, dist/visual-portfolio/classes/class-admin.php:1895, dist/visual-portfolio/classes/class-admin.php:1963, dist/visual-portfolio/classes/class-admin.php:1964
|
497 |
msgid "End of the list text"
|
498 |
msgstr ""
|
499 |
|
500 |
+
#: dist/visual-portfolio/classes/class-admin.php:2054
|
501 |
msgid "Show numbers"
|
502 |
msgstr ""
|
503 |
|
504 |
+
#: dist/visual-portfolio/classes/class-admin.php:2118
|
505 |
msgid "Data source"
|
506 |
msgstr ""
|
507 |
|
508 |
+
#: dist/visual-portfolio/classes/class-admin.php:2130
|
509 |
msgid "Specific posts"
|
510 |
msgstr ""
|
511 |
|
512 |
+
#: dist/visual-portfolio/classes/class-admin.php:2151
|
513 |
msgid "Excluded posts"
|
514 |
msgstr ""
|
515 |
|
516 |
+
#: dist/visual-portfolio/classes/class-admin.php:2179
|
517 |
msgid "Custom query"
|
518 |
msgstr ""
|
519 |
|
520 |
#. translators: %1$s - escaped url.
|
521 |
+
#: dist/visual-portfolio/classes/class-admin.php:2181
|
522 |
msgid "Build custom query according to <a href=\"%1$s\">WordPress Codex</a>."
|
523 |
msgstr ""
|
524 |
|
525 |
+
#: dist/visual-portfolio/classes/class-admin.php:2207
|
526 |
msgid "Taxonomies"
|
527 |
msgstr ""
|
528 |
|
529 |
+
#: dist/visual-portfolio/classes/class-admin.php:2234
|
530 |
msgid "Taxonomies relation"
|
531 |
msgstr ""
|
532 |
|
533 |
+
#: dist/visual-portfolio/classes/class-admin.php:2238
|
534 |
msgid "OR"
|
535 |
msgstr ""
|
536 |
|
537 |
+
#: dist/visual-portfolio/classes/class-admin.php:2239
|
538 |
msgid "AND"
|
539 |
msgstr ""
|
540 |
|
541 |
+
#: dist/visual-portfolio/classes/class-admin.php:2260
|
542 |
msgid "Order by"
|
543 |
msgstr ""
|
544 |
|
545 |
+
#: dist/visual-portfolio/classes/class-admin.php:2264
|
546 |
msgid "Date"
|
547 |
msgstr ""
|
548 |
|
549 |
+
#: dist/visual-portfolio/classes/class-admin.php:2265, dist/visual-portfolio/classes/class-controls.php:586
|
550 |
msgid "Title"
|
551 |
msgstr ""
|
552 |
|
553 |
+
#: dist/visual-portfolio/classes/class-admin.php:2266
|
554 |
msgid "ID"
|
555 |
msgstr ""
|
556 |
|
557 |
+
#: dist/visual-portfolio/classes/class-admin.php:2267
|
558 |
msgid "Menu Order"
|
559 |
msgstr ""
|
560 |
|
561 |
+
#: dist/visual-portfolio/classes/class-admin.php:2268
|
562 |
msgid "Random"
|
563 |
msgstr ""
|
564 |
|
565 |
+
#: dist/visual-portfolio/classes/class-admin.php:2277
|
566 |
msgid "Order direction"
|
567 |
msgstr ""
|
568 |
|
569 |
+
#: dist/visual-portfolio/classes/class-admin.php:2281
|
570 |
msgid "DESC"
|
571 |
msgstr ""
|
572 |
|
573 |
+
#: dist/visual-portfolio/classes/class-admin.php:2282
|
574 |
msgid "ASC"
|
575 |
msgstr ""
|
576 |
|
577 |
+
#: dist/visual-portfolio/classes/class-admin.php:2321
|
578 |
msgid "Name & Shortcode"
|
579 |
msgstr ""
|
580 |
|
581 |
+
#: dist/visual-portfolio/classes/class-admin.php:2329
|
582 |
msgid "Layout"
|
583 |
msgstr ""
|
584 |
|
585 |
+
#: dist/visual-portfolio/classes/class-admin.php:2337
|
586 |
msgid "Items Style"
|
587 |
msgstr ""
|
588 |
|
589 |
+
#: dist/visual-portfolio/classes/class-admin.php:2345
|
590 |
msgid "Items Click Action"
|
591 |
msgstr ""
|
592 |
|
593 |
+
#: dist/visual-portfolio/classes/class-admin.php:2353
|
594 |
msgid "Filter"
|
595 |
msgstr ""
|
596 |
|
597 |
+
#: dist/visual-portfolio/classes/class-admin.php:2361
|
598 |
msgid "Pagination"
|
599 |
msgstr ""
|
600 |
|
601 |
+
#: dist/visual-portfolio/classes/class-admin.php:2370
|
602 |
msgid "Preview"
|
603 |
msgstr ""
|
604 |
|
605 |
+
#: dist/visual-portfolio/classes/class-admin.php:2378
|
606 |
msgid "Content Source"
|
607 |
msgstr ""
|
608 |
|
609 |
+
#: dist/visual-portfolio/classes/class-admin.php:2386
|
610 |
msgid "Custom CSS"
|
611 |
msgstr ""
|
612 |
|
613 |
+
#: dist/visual-portfolio/classes/class-admin.php:2407
|
614 |
msgid "Name"
|
615 |
msgstr ""
|
616 |
|
617 |
+
#: dist/visual-portfolio/classes/class-admin.php:2417
|
618 |
msgid "Place the shortcode where you want to show the portfolio list."
|
619 |
msgstr ""
|
620 |
|
621 |
+
#: dist/visual-portfolio/classes/class-admin.php:2483
|
622 |
msgid "Filter Shortcode"
|
623 |
msgstr ""
|
624 |
|
625 |
+
#: dist/visual-portfolio/classes/class-admin.php:2484
|
626 |
msgid "Place the shortcode where you want to show the filter."
|
627 |
msgstr ""
|
628 |
|
629 |
+
#: dist/visual-portfolio/classes/class-admin.php:2551
|
630 |
msgid "Portfolio"
|
631 |
msgstr ""
|
632 |
|
633 |
+
#: dist/visual-portfolio/classes/class-admin.php:2557
|
634 |
msgid "Post-Based"
|
635 |
msgstr ""
|
636 |
|
637 |
+
#: dist/visual-portfolio/classes/class-admin.php:2563
|
638 |
msgid "Images"
|
639 |
msgstr ""
|
640 |
|
641 |
#. translators: %1$s - escaped url.
|
642 |
+
#: dist/visual-portfolio/classes/class-admin.php:2582
|
643 |
msgid "Portfolio items list from <a href=\"%1$s\" target=\"_blank\">%2$s</a>"
|
644 |
msgstr ""
|
645 |
|
646 |
+
#: dist/visual-portfolio/classes/class-admin.php:2618
|
647 |
msgid "Available classes:"
|
648 |
msgstr ""
|
649 |
|
650 |
+
#: dist/visual-portfolio/classes/class-admin.php:2621
|
651 |
msgid " - use this classname for each styles you added. It is the main Visual Portfolio wrapper."
|
652 |
msgstr ""
|
653 |
|
654 |
+
#: dist/visual-portfolio/classes/class-admin.php:2622
|
655 |
msgid " - items wrapper."
|
656 |
msgstr ""
|
657 |
|
658 |
+
#: dist/visual-portfolio/classes/class-admin.php:2623
|
659 |
msgid " - single item wrapper."
|
660 |
msgstr ""
|
661 |
|
662 |
+
#: dist/visual-portfolio/classes/class-admin.php:2624
|
663 |
msgid " - filter wrapper."
|
664 |
msgstr ""
|
665 |
|
666 |
+
#: dist/visual-portfolio/classes/class-admin.php:2625
|
667 |
msgid " - pagination wrapper."
|
668 |
msgstr ""
|
669 |
|
670 |
+
#: dist/visual-portfolio/classes/class-admin.php:2686
|
671 |
msgid "Specific Posts"
|
672 |
msgstr ""
|
673 |
|
674 |
+
#: dist/visual-portfolio/classes/class-admin.php:2687
|
675 |
msgid "Custom Query"
|
676 |
msgstr ""
|
677 |
|
readme.md
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* Requires at least: 4.0.0
|
6 |
* Tested up to: 4.9
|
7 |
* Requires PHP: 5.4
|
8 |
-
* Stable tag: 1.8.
|
9 |
* License: GPLv2 or later
|
10 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -119,6 +119,11 @@ The manual installation method involves downloading our Visual Portfolio plugin
|
|
119 |
|
120 |
## Changelog ##
|
121 |
|
|
|
|
|
|
|
|
|
|
|
122 |
= 1.8.1 =
|
123 |
|
124 |
* fixed Click Action Target default value
|
5 |
* Requires at least: 4.0.0
|
6 |
* Tested up to: 4.9
|
7 |
* Requires PHP: 5.4
|
8 |
+
* Stable tag: 1.8.2
|
9 |
* License: GPLv2 or later
|
10 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
119 |
|
120 |
## Changelog ##
|
121 |
|
122 |
+
= 1.8.2 =
|
123 |
+
|
124 |
+
* added wp actions in registering controls and metaboxes
|
125 |
+
* updated Conditionize script
|
126 |
+
|
127 |
= 1.8.1 =
|
128 |
|
129 |
* fixed Click Action Target default value
|