Version Description
Download this release
Release Info
Developer | nko |
Plugin | Visual Portfolio, Photo Gallery & Post Grid |
Version | 1.12.0 |
Comparing to | |
See all releases |
Code changes from version 1.11.1 to 1.12.0
- 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/noscript.min.css +1 -1
- assets/css/style.min.css +1 -1
- assets/js/script-preview.min.js +1 -1
- assets/js/script.min.js +2 -2
- class-visual-portfolio.php +16 -4
- classes/class-admin.php +8 -26
- classes/class-get-portfolio.php +4 -19
- languages/visual-portfolio.pot +166 -166
- readme.md +9 -1
- templates/items-list/items-style/fade/meta.php +15 -14
- templates/items-list/items-style/fade/style.css +1 -1
- templates/items-list/items-style/fade/style.scss +1 -1
- templates/items-list/items-style/fly/meta.php +15 -14
- templates/items-list/items-style/fly/style.css +1 -1
- templates/items-list/items-style/fly/style.scss +1 -1
assets/admin/css/style.min.css
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
/*!
|
2 |
* Name : Visual Portfolio
|
3 |
-
* Version : 1.
|
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}.post-type-vp_lists.post-php.rtl #post-body.columns-2 #postbox-container-1,.post-type-vp_lists.post-new-php.rtl #post-body.columns-2 #postbox-container-1{right:auto;left:300px}.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{position:relative;border-bottom:1px solid #eaeaea}.vp-control-gallery .vp-control-gallery-additional-data{position:absolute;box-sizing:border-box;top:-15px;right:-365px;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:-15px}.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.12.0
|
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}.post-type-vp_lists.post-php.rtl #post-body.columns-2 #postbox-container-1,.post-type-vp_lists.post-new-php.rtl #post-body.columns-2 #postbox-container-1{right:auto;left:300px}.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{position:relative;border-bottom:1px solid #eaeaea}.vp-control-gallery .vp-control-gallery-additional-data{position:absolute;box-sizing:border-box;top:-15px;right:-365px;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:-15px}.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=171)}({171:function(t,e,n){t.exports=n(172)},172:function(t,e){
|
2 |
/*!
|
3 |
* Name : Visual Portfolio
|
4 |
-
* Version : 1.
|
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=171)}({171:function(t,e,n){t.exports=n(172)},172:function(t,e){
|
2 |
/*!
|
3 |
* Name : Visual Portfolio
|
4 |
+
* Version : 1.12.0
|
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(t){var e={};function a(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,a),i.l=!0,i.exports}a.m=t,a.c=e,a.d=function(t,e,n){a.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},a.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},a.t=function(t,e){if(1&e&&(t=a(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)a.d(n,i,function(e){return t[e]}.bind(null,i));return n},a.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return a.d(e,"a",e),e},a.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},a.p="",a(a.s=175)}({175:function(t,e,a){t.exports=a(176)},176:function(t,e,a){"use strict";a.r(e);var n=a(30);function i(t){return(i="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 o(t){return function(t){if(Array.isArray(t)){for(var e=0,a=new Array(t.length);e<t.length;e++)a[e]=t[e];return a}}
|
2 |
/*!
|
3 |
* Name : Visual Portfolio
|
4 |
-
* Version : 1.
|
5 |
* Author : nK https://nkdev.info
|
6 |
*/(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")}()}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"], [name="vp_sort_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(t){w=r.ajax({url:c,method:"GET",dataType:"json",data:{action:"vp_find_oembed",q:t.val(),nonce:s.nonce},complete:function(e){var a=e.responseJSON;a&&void 0!==a.html&&t.next(".vp-oembed-preview").html(a.html)}})}k=Object(n.a)(300,k),u.on("change input",'.vp-input[name="video_url"]',function(){null!==w&&w.abort();var t=r(this);t.next(".vp-oembed-preview").html(""),k(t)}),void 0!==d&&r('[data-hint]:not([data-hint=""]):not([data-hint="false"])').each(function(){var t=r(this);new d(this,{placement:t.attr("data-hint-place")||"top",title:t.attr("data-hint"),container:r("body")[0],boundariesElement:"viewport"})}),function(){if("vp_lists"===g.val()&&m.length){var t=r(".vp-content-source"),e=t.find('[name="vp_content_source"]');t.on("click",".vp-content-source__item",function(){var a=r(this).attr("data-content");t.find('[data-content="'.concat(a,'"]')).addClass("active").siblings().removeClass("active"),e.val(a).change()}),t.children('[data-content="'.concat(e.val(),'"]')).click(),r.fn.conditionize&&m.conditionize(),r(".vp-control-range").each(function(){var t=r(this).find("input"),e=t.filter('[type="hidden"]');t.on("change input",function(a){t.val(r(this).val()),e.trigger("vp-fake-".concat(a.type))})}),r.fn.wpColorPicker&&r(".vp-color-picker").each(function(){r(this).data("change",Object(n.a)(300,function(t){r(t.target).change()})).wpColorPicker()}),r.fn.imagepicker&&r(".vp-image-picker").imagepicker();var a=r(".vp_list_preview iframe"),l=!1,d=!1,_=r('<form target="vp_list_preview_iframe" method="post" style="display: none">').attr("action",a.attr("src")).insertAfter(m);r.fn.iFrameResize&&a.iFrameResize({interval:10}),I=Object(n.a)(400,I),m.on("change input vp-fake-change vp-fake-input",'[name*="vp_"]',function(t){var e=r(this);if(!e.closest(".vp-no-reload").length)if(r('[name="'.concat(e.attr("name"),'__style[]"]')).length)D();else{var a={name:e.attr("name"),value:e.is("[type=checkbox], [type=radio]")?e.is(":checked"):e.val(),reload:"change"===t.type||"vp-fake-change"===t.type,jQuery:d,$portfolio:l},n=_.find('[name="'.concat(a.name,'"]'));n.length||(n=r('<input type="hidden" name="'.concat(a.name,'" />')).appendTo(_)),n.attr("value",a.value),f.trigger("vp-preview-change",a),a.reload||D(),!a.reload&&l||I()}}),a.on("load",function(){d=this.contentWindow.jQuery,l=d(".vp-portfolio"),D()}),f.on("vp-preview-change",function(t,e){if(e.$portfolio)switch(e.name){case"vp_layout":case"vp_tiles_type":case"vp_masonry_columns":case"vp_grid_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_autoplay_hover_pause":case"vp_slider_centered_slides":case"vp_slider_loop":case"vp_slider_free_mode":case"vp_slider_free_mode_sticky":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 a=e.name;a=(a=a.substring(3)).replace(/_/g,"-"),e.$portfolio.attr("data-vp-".concat(a),e.value),e.$portfolio.vpf("init"),e.reload=!1;break;case"vp_filter_align":e.$portfolio.find(".vp-filter").removeClass("vp-filter__align-center vp-filter__align-left vp-filter__align-right").addClass("vp-filter__align-".concat(e.value)),e.reload=!1;break;case"vp_sort_align":e.$portfolio.find(".vp-sort").removeClass("vp-sort__align-center vp-sort__align-left vp-sort__align-right").addClass("vp-sort__align-".concat(e.value)),e.reload=!1;break;case"vp_pagination_align":e.$portfolio.find(".vp-pagination").removeClass("vp-pagination__align-center vp-pagination__align-left vp-pagination__align-right").addClass("vp-pagination__align-".concat(e.value)),e.reload=!1;break;case"vp_controls_styles":var n=e.$portfolio.closest("html"),i="vp-controls-styles-".concat(h,"-inline-css"),o=n.find("#".concat(i));o.length||(o=e.jQuery('<style id="'.concat(i,'">')),n.find("body").prepend(o)),o.html(e.value),e.reload=!1;break;case"vp_custom_css":var r=e.$portfolio.closest("html"),l="vp-custom-css-".concat(h,"-inline-css"),c=r.find("#".concat(l));c.length||(c=e.jQuery('<style id="'.concat(l,'">')),r.find("body").prepend(c)),c.html(e.value),e.reload=!1;break;case"vp_list_name":case"vp_stretch":e.reload=!1}}),u.on("click",".vp-control-image-dropdown",function(t){r(t.target).closest(".vp-control-image-dropdown__content").length||r(this).toggleClass("active")}),u.on("mousedown",function(t){var e=r(t.target).closest(".vp-control-image-dropdown");r(".vp-control-image-dropdown.active").each(function(){this!==e[0]&&r(this).removeClass("active")})}),u.on("change",".vp-control-image-dropdown .vp-image-picker",function(){var t=r(this),e=t.data("picker");if(e){var a=e.select.find('option[value="'.concat(e.select.val(),'"]')),n=a.parent("optgroup"),i=t.closest(".vp-control-image-dropdown"),o=a.attr("data-img-src");i.length&&(i.children(".vp-control-image-dropdown__preview").html('<img src="'.concat(o,'" alt="">')),n.length&&i.children(".vp-control-image-dropdown__title").html(n.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 t=r(this),e={width:"100%",minimumResultsForSearch:t.hasClass("vp-select2-nosearch")?-1:1,tags:t.hasClass("vp-select2-tags")},a=!!t.attr("data-post-type")&&r(t.attr("data-post-type"));t.closest(".vp-select2-posts-ajax").length&&(e=r.extend({minimumInputLength:1,ajax:{url:c,dataType:"json",delay:250,data:function(t){return{action:"vp_find_posts",q:t.term,post_type:!!a&&a.val(),nonce:s.nonce}},processResults:function(t){return{results:!(!t||!t.length)&&t}},cache:!0},escapeMarkup:function(t){return t},templateResult:function(t){if(t.loading)return t.text;var e="";t.title&&(e=t.title);var a="";t.post_type&&(a=t.post_type);var n="";return t.img&&(n="style=\"background-image: url('".concat(t.img,"');\"")),"".concat('<div class="vp-select2-ajax__result"><div class="vp-select2-ajax__result-img" ').concat(n,"></div>")+'<div class="vp-select2-ajax__result-data">'+'<div class="vp-select2-ajax__result-title">'.concat(e,"</div>")+'<div class="vp-select2-ajax__result-post-type">'.concat(a,"</div>")+"</div></div>"},templateSelection:function(t){return t.title||t.text}},e)),t.closest(".vp-select2-taxonomies-ajax").length&&(e=r.extend({minimumInputLength:1,ajax:{url:c,dataType:"json",delay:250,data:function(t){return{action:"vp_find_taxonomies",q:t.term,post_type:!!a&&a.val(),nonce:s.nonce}},processResults:function(t){var e=[];return t&&Object.keys(t).forEach(function(a){e.push({text:a,children:t[a]})}),{results:e}},cache:!0}},e)),t.select2(e).data("select2").$dropdown.addClass("select2-vp-container")});var w=r(".vp-control-gallery"),k=0;if(r.fn.sortable&&(w.each(function(){var t=r(this),e=t.children(".vp-control-gallery-items-default");t.children(".vp-control-gallery-items").sortable({animation:150,draggable:".vp-control-gallery-items-img",onUpdate:function(){Q(t)}}),t.on("click",".vp-control-gallery-items-remove",function(e){e.preventDefault(),r(this).parent().remove(),Q(t)}),t.on("click",".vp-control-gallery-items-add",function(a){a.preventDefault();var n=t.data("wp-frame");n?n.open():wp.media?(n=wp.media({title:"Select or Upload Images",button:{text:"Add images"},multiple:!0,library:{type:"image"}}),t.data("wp-frame",n),n.on("select",function(){var a=n.state().get("selection").models;a&&a.length&&(a.forEach(function(a){var n=a.attributes.url;a.attributes.sizes&&a.attributes.sizes.thumbnail&&(n=a.attributes.sizes.thumbnail.url);var i=e.children().clone();i.attr("data-image-id",a.id),i.children("img").attr("src",n),i.find('[data-meta="width"]').html(a.attributes.width),i.find('[data-meta="height"]').html(a.attributes.height),i.find('[data-meta="filename"]').html(a.attributes.filename),i.find('[data-meta="editLink"]').html(a.attributes.editLink),i.find('[data-meta="filesizeHumanReadable"]').html(a.attributes.filesizeHumanReadable),a.attributes.title&&i.find('[data-additional="title"]').html(a.attributes.title),a.attributes.description&&i.find('[data-additional="description"]').html(a.attributes.description),t.find(".vp-control-gallery-items-add").before(i)}),Q(t))}),n.open()):console.error("Can't access wp.media object.")}),t.on("click",".vp-control-gallery-items-img",function(e){e.preventDefault(),U(t,r(this).attr("data-image-id"))}),t.on("change input",".vp-control-gallery-additional-data [name]",Object(n.a)(200,function(){var e=t.children(".vp-control-gallery-additional-data"),a=t.children("textarea").attr("name"),n=t.children(".vp-control-gallery-items").find(".vp-control-gallery-items-img.active").attr("data-image-id");if(n){var o=t.children(".vp-control-gallery-items").find('[data-image-id="'+n+'"]');e.find('[name*="'+a+'_additional_"]').each(function(){var t=r(this).attr("name").replace(a+"_additional_","").replace("[]",""),e=r(this).val()||"";"object"===i(e)&&(e=JSON.stringify(e)),o.find('[data-additional="'+t+'"]').html(e||"")}),Q(t)}}))}),w.length)){var C=w.children(".vp-control-gallery-additional-data");r(document).on("mousedown",function(t){if(k){var e=t.target;r(e).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(t){$.css("height",Math.max(200,M+t.originalEvent.y-A)),z.setSize(null,Math.max(200,M+t.y-A)+"px")},E=function t(){u.off("mousemove",O),u.off("mouseup",t)};if(s&&s.classnames){var T=p.hint.css;p.hint.css=function(t){var e=t.getCursor(),a=T(t)||{from:e,to:t.getCursor(),list:[]},n=t.getTokenAt(e);return"top"===n.state.state&&0===n.string.indexOf(".")&&(a={from:p.Pos(e.line,n.start),to:p.Pos(e.line,n.end),list:[]},s.classnames.forEach(function(t){-1!==t.indexOf(n.string)&&a.list.push(t)})),a}}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(t,e,a){var n=[];t.forEach(function(t){"error"===t.severity&&n.push(t)}),a.vcLintErrors=n,j||q(a.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(t,e){var a=/^[a-zA-Z]$/.test(e.key);if(!t.state.completionActive||!a){var n=t.getTokenAt(t.getCursor());if("string"!==n.type&&"comment"!==n.type){var i=t.doc.getLine(t.doc.getCursor().line).substr(0,t.doc.getCursor().ch);(a||":"===e.key||" "===e.key&&/:\s+$/.test(i))&&t.showHint({completeSingle:!1})}}});var A,M,L=r(".CodeMirror-resizer").after(x),$=L.prev(".CodeMirror");L.on("mousedown",function(t){A=t.originalEvent.y,M=$.height(),u.on("mousemove",O),u.on("mouseup",E)})}var P=!1;u.on("click","#publish:not(.disabled)",function(t){if(P=!0,!j){var e=r(this),a=x.length&&x.data("CodeMirrorInstance");a&&a.vcLintErrors&&a.vcLintErrors.length&&(t.preventDefault(),e.addClass("disabled button-disabled button-primary-disabled"),setTimeout(function(){e.removeClass("disabled button-disabled button-primary-disabled")},1500),q(a.vcLintErrors,!1),r("html,body").animate({scrollTop:r("#vp_custom_css").offset().top-100},300),a.focus(),a.setCursor(a.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 t="",e=r('[name="vp_controls_styles"]'),a=".vp-id-".concat(h),n=e.val();r('.vp-control-style [type="hidden"]').each(function(){var e=r(this),n=e.closest(".vp-control");if("none"!==n.css("display")){var i=(e.attr("data-style-mask")||"$").replace("$",n.find(e.attr("data-style-from")).val()),o=a+" "+e.attr("data-style-element"),l=e.attr("data-style-property");t&&(t+=" "),t+="".concat(o," { ").concat(l,": ").concat(i,"; }")}}),n!==t&&e.val(t).trigger("vp-fake-change")}function I(){d=!1,l=!1,_.submit()}function N(t,e){var a=t.find('[data-image-id="'+e+'"]'),n={id:e};return a.find("[data-additional]").each(function(){var t=r(this),e=t.attr("data-additional");if(n[e]=t.html(),"true"===t.attr("data-to-json"))try{n[e]=JSON.parse(n[e])}catch(t){n[e]=""}}),n}function Q(t){var e=[];t.children(".vp-control-gallery-items").find(".vp-control-gallery-items-img").each(function(){e.push(N(t,r(this).attr("data-image-id")))});var a=JSON.stringify(e),n=t.children("textarea");a!==n.val()&&n.val(a).change()}function U(t,e){var a=t.children("textarea").attr("name"),n=t.children(".vp-control-gallery-additional-data"),i=n.children(".vp-control-gallery-additional-data-preview"),l=t.children(".vp-control-gallery-items").find('.vp-control-gallery-items-img[data-image-id="'+e+'"]'),c=N(t,e),s=function(t,e){var a=t.find('[data-image-id="'+e+'"]'),n={};return a.find("[data-meta]").each(function(){n[r(this).attr("data-meta")]=r(this).html()}),n}(t,e);c&&Object.keys(c).forEach(function(e){var i=n.find('[name="'+a+"_additional_"+e+'"], [name="'+a+"_additional_"+e+'[]"]').val(c[e]||"");if(i.hasClass("vp-select2")){if(i.hasClass("vp-select2-tags")){var l=[],s=[];t.children(".vp-control-gallery-items").find(".vp-control-gallery-items-img").each(function(){var a=N(t,r(this).attr("data-image-id"));a&&void 0!==a[e]&&a[e]&&(l=o(new Set([].concat(o(l),o(a[e])))))}),l.forEach(function(t){s.push(new window.Option(t,t,!1,!1))}),i.html(s.length?s:""),i.val(void 0!==c[e]&&c[e]?c[e]:"")}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"),n.addClass("active"),k=w.find(".vp-control-gallery-additional-data.active").length}function q(t,e){if(S&&(e=!1,S=!1),s&&s.css_editor_error_notice){var a=!1;if(1===t.length?a=s.css_editor_error_notice.singular.replace("%d","1"):t.length>1&&(a=s.css_editor_error_notice.plural.replace("%d",String(t.length))),a){var n=x.prev("#vp_custom_css_notice");if(n.length||e||(n=r('<div class="notice notice-error inline" id="vp_custom_css_notice"></div>'),x.before(n)),!n.length)return;var i='<p class="notification-message">'.concat(a,"</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>";n.html(i)}else x.prev("#vp_custom_css_notice").remove()}}}()},30:function(t,e,a){"use strict";function n(t,e,a,n){var i,o=!1,r=0;function l(){i&&clearTimeout(i)}function c(){var c=this,s=Date.now()-r,d=arguments;function p(){r=Date.now(),a.apply(c,d)}o||(n&&!i&&p(),l(),void 0===n&&s>t?p():!0!==e&&(i=setTimeout(n?function(){i=void 0}:p,void 0===n?t-s:t)))}return"boolean"!=typeof e&&(n=a,a=e,e=void 0),c.cancel=function(){l(),o=!0},c}function i(t,e,a){return void 0===a?n(t,e,!1):n(t,a,!1!==e)}a.d(e,"b",function(){return n}),a.d(e,"a",function(){return i})}});
|
1 |
!function(t){var e={};function a(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,a),i.l=!0,i.exports}a.m=t,a.c=e,a.d=function(t,e,n){a.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},a.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},a.t=function(t,e){if(1&e&&(t=a(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)a.d(n,i,function(e){return t[e]}.bind(null,i));return n},a.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return a.d(e,"a",e),e},a.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},a.p="",a(a.s=175)}({175:function(t,e,a){t.exports=a(176)},176:function(t,e,a){"use strict";a.r(e);var n=a(30);function i(t){return(i="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 o(t){return function(t){if(Array.isArray(t)){for(var e=0,a=new Array(t.length);e<t.length;e++)a[e]=t[e];return a}}
|
2 |
/*!
|
3 |
* Name : Visual Portfolio
|
4 |
+
* Version : 1.12.0
|
5 |
* Author : nK https://nkdev.info
|
6 |
*/(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")}()}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"], [name="vp_sort_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(t){w=r.ajax({url:c,method:"GET",dataType:"json",data:{action:"vp_find_oembed",q:t.val(),nonce:s.nonce},complete:function(e){var a=e.responseJSON;a&&void 0!==a.html&&t.next(".vp-oembed-preview").html(a.html)}})}k=Object(n.a)(300,k),u.on("change input",'.vp-input[name="video_url"]',function(){null!==w&&w.abort();var t=r(this);t.next(".vp-oembed-preview").html(""),k(t)}),void 0!==d&&r('[data-hint]:not([data-hint=""]):not([data-hint="false"])').each(function(){var t=r(this);new d(this,{placement:t.attr("data-hint-place")||"top",title:t.attr("data-hint"),container:r("body")[0],boundariesElement:"viewport"})}),function(){if("vp_lists"===g.val()&&m.length){var t=r(".vp-content-source"),e=t.find('[name="vp_content_source"]');t.on("click",".vp-content-source__item",function(){var a=r(this).attr("data-content");t.find('[data-content="'.concat(a,'"]')).addClass("active").siblings().removeClass("active"),e.val(a).change()}),t.children('[data-content="'.concat(e.val(),'"]')).click(),r.fn.conditionize&&m.conditionize(),r(".vp-control-range").each(function(){var t=r(this).find("input"),e=t.filter('[type="hidden"]');t.on("change input",function(a){t.val(r(this).val()),e.trigger("vp-fake-".concat(a.type))})}),r.fn.wpColorPicker&&r(".vp-color-picker").each(function(){r(this).data("change",Object(n.a)(300,function(t){r(t.target).change()})).wpColorPicker()}),r.fn.imagepicker&&r(".vp-image-picker").imagepicker();var a=r(".vp_list_preview iframe"),l=!1,d=!1,_=r('<form target="vp_list_preview_iframe" method="post" style="display: none">').attr("action",a.attr("src")).insertAfter(m);r.fn.iFrameResize&&a.iFrameResize({interval:10}),I=Object(n.a)(400,I),m.on("change input vp-fake-change vp-fake-input",'[name*="vp_"]',function(t){var e=r(this);if(!e.closest(".vp-no-reload").length)if(r('[name="'.concat(e.attr("name"),'__style[]"]')).length)D();else{var a={name:e.attr("name"),value:e.is("[type=checkbox], [type=radio]")?e.is(":checked"):e.val(),reload:"change"===t.type||"vp-fake-change"===t.type,jQuery:d,$portfolio:l},n=_.find('[name="'.concat(a.name,'"]'));n.length||(n=r('<input type="hidden" name="'.concat(a.name,'" />')).appendTo(_)),n.attr("value",a.value),f.trigger("vp-preview-change",a),a.reload||D(),!a.reload&&l||I()}}),a.on("load",function(){d=this.contentWindow.jQuery,l=d(".vp-portfolio"),D()}),f.on("vp-preview-change",function(t,e){if(e.$portfolio)switch(e.name){case"vp_layout":case"vp_tiles_type":case"vp_masonry_columns":case"vp_grid_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_autoplay_hover_pause":case"vp_slider_centered_slides":case"vp_slider_loop":case"vp_slider_free_mode":case"vp_slider_free_mode_sticky":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 a=e.name;a=(a=a.substring(3)).replace(/_/g,"-"),e.$portfolio.attr("data-vp-".concat(a),e.value),e.$portfolio.vpf("init"),e.reload=!1;break;case"vp_filter_align":e.$portfolio.find(".vp-filter").removeClass("vp-filter__align-center vp-filter__align-left vp-filter__align-right").addClass("vp-filter__align-".concat(e.value)),e.reload=!1;break;case"vp_sort_align":e.$portfolio.find(".vp-sort").removeClass("vp-sort__align-center vp-sort__align-left vp-sort__align-right").addClass("vp-sort__align-".concat(e.value)),e.reload=!1;break;case"vp_pagination_align":e.$portfolio.find(".vp-pagination").removeClass("vp-pagination__align-center vp-pagination__align-left vp-pagination__align-right").addClass("vp-pagination__align-".concat(e.value)),e.reload=!1;break;case"vp_controls_styles":var n=e.$portfolio.closest("html"),i="vp-controls-styles-".concat(h,"-inline-css"),o=n.find("#".concat(i));o.length||(o=e.jQuery('<style id="'.concat(i,'">')),n.find("body").prepend(o)),o.html(e.value),e.reload=!1;break;case"vp_custom_css":var r=e.$portfolio.closest("html"),l="vp-custom-css-".concat(h,"-inline-css"),c=r.find("#".concat(l));c.length||(c=e.jQuery('<style id="'.concat(l,'">')),r.find("body").prepend(c)),c.html(e.value),e.reload=!1;break;case"vp_list_name":case"vp_stretch":e.reload=!1}}),u.on("click",".vp-control-image-dropdown",function(t){r(t.target).closest(".vp-control-image-dropdown__content").length||r(this).toggleClass("active")}),u.on("mousedown",function(t){var e=r(t.target).closest(".vp-control-image-dropdown");r(".vp-control-image-dropdown.active").each(function(){this!==e[0]&&r(this).removeClass("active")})}),u.on("change",".vp-control-image-dropdown .vp-image-picker",function(){var t=r(this),e=t.data("picker");if(e){var a=e.select.find('option[value="'.concat(e.select.val(),'"]')),n=a.parent("optgroup"),i=t.closest(".vp-control-image-dropdown"),o=a.attr("data-img-src");i.length&&(i.children(".vp-control-image-dropdown__preview").html('<img src="'.concat(o,'" alt="">')),n.length&&i.children(".vp-control-image-dropdown__title").html(n.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 t=r(this),e={width:"100%",minimumResultsForSearch:t.hasClass("vp-select2-nosearch")?-1:1,tags:t.hasClass("vp-select2-tags")},a=!!t.attr("data-post-type")&&r(t.attr("data-post-type"));t.closest(".vp-select2-posts-ajax").length&&(e=r.extend({minimumInputLength:1,ajax:{url:c,dataType:"json",delay:250,data:function(t){return{action:"vp_find_posts",q:t.term,post_type:!!a&&a.val(),nonce:s.nonce}},processResults:function(t){return{results:!(!t||!t.length)&&t}},cache:!0},escapeMarkup:function(t){return t},templateResult:function(t){if(t.loading)return t.text;var e="";t.title&&(e=t.title);var a="";t.post_type&&(a=t.post_type);var n="";return t.img&&(n="style=\"background-image: url('".concat(t.img,"');\"")),"".concat('<div class="vp-select2-ajax__result"><div class="vp-select2-ajax__result-img" ').concat(n,"></div>")+'<div class="vp-select2-ajax__result-data">'+'<div class="vp-select2-ajax__result-title">'.concat(e,"</div>")+'<div class="vp-select2-ajax__result-post-type">'.concat(a,"</div>")+"</div></div>"},templateSelection:function(t){return t.title||t.text}},e)),t.closest(".vp-select2-taxonomies-ajax").length&&(e=r.extend({minimumInputLength:1,ajax:{url:c,dataType:"json",delay:250,data:function(t){return{action:"vp_find_taxonomies",q:t.term,post_type:!!a&&a.val(),nonce:s.nonce}},processResults:function(t){var e=[];return t&&Object.keys(t).forEach(function(a){e.push({text:a,children:t[a]})}),{results:e}},cache:!0}},e)),t.select2(e).data("select2").$dropdown.addClass("select2-vp-container")});var w=r(".vp-control-gallery"),k=0;if(r.fn.sortable&&(w.each(function(){var t=r(this),e=t.children(".vp-control-gallery-items-default");t.children(".vp-control-gallery-items").sortable({animation:150,draggable:".vp-control-gallery-items-img",onUpdate:function(){Q(t)}}),t.on("click",".vp-control-gallery-items-remove",function(e){e.preventDefault(),r(this).parent().remove(),Q(t)}),t.on("click",".vp-control-gallery-items-add",function(a){a.preventDefault();var n=t.data("wp-frame");n?n.open():wp.media?(n=wp.media({title:"Select or Upload Images",button:{text:"Add images"},multiple:!0,library:{type:"image"}}),t.data("wp-frame",n),n.on("select",function(){var a=n.state().get("selection").models;a&&a.length&&(a.forEach(function(a){var n=a.attributes.url;a.attributes.sizes&&a.attributes.sizes.thumbnail&&(n=a.attributes.sizes.thumbnail.url);var i=e.children().clone();i.attr("data-image-id",a.id),i.children("img").attr("src",n),i.find('[data-meta="width"]').html(a.attributes.width),i.find('[data-meta="height"]').html(a.attributes.height),i.find('[data-meta="filename"]').html(a.attributes.filename),i.find('[data-meta="editLink"]').html(a.attributes.editLink),i.find('[data-meta="filesizeHumanReadable"]').html(a.attributes.filesizeHumanReadable),a.attributes.title&&i.find('[data-additional="title"]').html(a.attributes.title),a.attributes.description&&i.find('[data-additional="description"]').html(a.attributes.description),t.find(".vp-control-gallery-items-add").before(i)}),Q(t))}),n.open()):console.error("Can't access wp.media object.")}),t.on("click",".vp-control-gallery-items-img",function(e){e.preventDefault(),U(t,r(this).attr("data-image-id"))}),t.on("change input",".vp-control-gallery-additional-data [name]",Object(n.a)(200,function(){var e=t.children(".vp-control-gallery-additional-data"),a=t.children("textarea").attr("name"),n=t.children(".vp-control-gallery-items").find(".vp-control-gallery-items-img.active").attr("data-image-id");if(n){var o=t.children(".vp-control-gallery-items").find('[data-image-id="'+n+'"]');e.find('[name*="'+a+'_additional_"]').each(function(){var t=r(this).attr("name").replace(a+"_additional_","").replace("[]",""),e=r(this).val()||"";"object"===i(e)&&(e=JSON.stringify(e)),o.find('[data-additional="'+t+'"]').html(e||"")}),Q(t)}}))}),w.length)){var C=w.children(".vp-control-gallery-additional-data");r(document).on("mousedown",function(t){if(k){var e=t.target;r(e).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(t){$.css("height",Math.max(200,M+t.originalEvent.y-A)),z.setSize(null,Math.max(200,M+t.y-A)+"px")},E=function t(){u.off("mousemove",O),u.off("mouseup",t)};if(s&&s.classnames){var T=p.hint.css;p.hint.css=function(t){var e=t.getCursor(),a=T(t)||{from:e,to:t.getCursor(),list:[]},n=t.getTokenAt(e);return"top"===n.state.state&&0===n.string.indexOf(".")&&(a={from:p.Pos(e.line,n.start),to:p.Pos(e.line,n.end),list:[]},s.classnames.forEach(function(t){-1!==t.indexOf(n.string)&&a.list.push(t)})),a}}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(t,e,a){var n=[];t.forEach(function(t){"error"===t.severity&&n.push(t)}),a.vcLintErrors=n,j||q(a.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(t,e){var a=/^[a-zA-Z]$/.test(e.key);if(!t.state.completionActive||!a){var n=t.getTokenAt(t.getCursor());if("string"!==n.type&&"comment"!==n.type){var i=t.doc.getLine(t.doc.getCursor().line).substr(0,t.doc.getCursor().ch);(a||":"===e.key||" "===e.key&&/:\s+$/.test(i))&&t.showHint({completeSingle:!1})}}});var A,M,L=r(".CodeMirror-resizer").after(x),$=L.prev(".CodeMirror");L.on("mousedown",function(t){A=t.originalEvent.y,M=$.height(),u.on("mousemove",O),u.on("mouseup",E)})}var P=!1;u.on("click","#publish:not(.disabled)",function(t){if(P=!0,!j){var e=r(this),a=x.length&&x.data("CodeMirrorInstance");a&&a.vcLintErrors&&a.vcLintErrors.length&&(t.preventDefault(),e.addClass("disabled button-disabled button-primary-disabled"),setTimeout(function(){e.removeClass("disabled button-disabled button-primary-disabled")},1500),q(a.vcLintErrors,!1),r("html,body").animate({scrollTop:r("#vp_custom_css").offset().top-100},300),a.focus(),a.setCursor(a.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 t="",e=r('[name="vp_controls_styles"]'),a=".vp-id-".concat(h),n=e.val();r('.vp-control-style [type="hidden"]').each(function(){var e=r(this),n=e.closest(".vp-control");if("none"!==n.css("display")){var i=(e.attr("data-style-mask")||"$").replace("$",n.find(e.attr("data-style-from")).val()),o=a+" "+e.attr("data-style-element"),l=e.attr("data-style-property");t&&(t+=" "),t+="".concat(o," { ").concat(l,": ").concat(i,"; }")}}),n!==t&&e.val(t).trigger("vp-fake-change")}function I(){d=!1,l=!1,_.submit()}function N(t,e){var a=t.find('[data-image-id="'+e+'"]'),n={id:e};return a.find("[data-additional]").each(function(){var t=r(this),e=t.attr("data-additional");if(n[e]=t.html(),"true"===t.attr("data-to-json"))try{n[e]=JSON.parse(n[e])}catch(t){n[e]=""}}),n}function Q(t){var e=[];t.children(".vp-control-gallery-items").find(".vp-control-gallery-items-img").each(function(){e.push(N(t,r(this).attr("data-image-id")))});var a=JSON.stringify(e),n=t.children("textarea");a!==n.val()&&n.val(a).change()}function U(t,e){var a=t.children("textarea").attr("name"),n=t.children(".vp-control-gallery-additional-data"),i=n.children(".vp-control-gallery-additional-data-preview"),l=t.children(".vp-control-gallery-items").find('.vp-control-gallery-items-img[data-image-id="'+e+'"]'),c=N(t,e),s=function(t,e){var a=t.find('[data-image-id="'+e+'"]'),n={};return a.find("[data-meta]").each(function(){n[r(this).attr("data-meta")]=r(this).html()}),n}(t,e);c&&Object.keys(c).forEach(function(e){var i=n.find('[name="'+a+"_additional_"+e+'"], [name="'+a+"_additional_"+e+'[]"]').val(c[e]||"");if(i.hasClass("vp-select2")){if(i.hasClass("vp-select2-tags")){var l=[],s=[];t.children(".vp-control-gallery-items").find(".vp-control-gallery-items-img").each(function(){var a=N(t,r(this).attr("data-image-id"));a&&void 0!==a[e]&&a[e]&&(l=o(new Set([].concat(o(l),o(a[e])))))}),l.forEach(function(t){s.push(new window.Option(t,t,!1,!1))}),i.html(s.length?s:""),i.val(void 0!==c[e]&&c[e]?c[e]:"")}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"),n.addClass("active"),k=w.find(".vp-control-gallery-additional-data.active").length}function q(t,e){if(S&&(e=!1,S=!1),s&&s.css_editor_error_notice){var a=!1;if(1===t.length?a=s.css_editor_error_notice.singular.replace("%d","1"):t.length>1&&(a=s.css_editor_error_notice.plural.replace("%d",String(t.length))),a){var n=x.prev("#vp_custom_css_notice");if(n.length||e||(n=r('<div class="notice notice-error inline" id="vp_custom_css_notice"></div>'),x.before(n)),!n.length)return;var i='<p class="notification-message">'.concat(a,"</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>";n.html(i)}else x.prev("#vp_custom_css_notice").remove()}}}()},30:function(t,e,a){"use strict";function n(t,e,a,n){var i,o=!1,r=0;function l(){i&&clearTimeout(i)}function c(){var c=this,s=Date.now()-r,d=arguments;function p(){r=Date.now(),a.apply(c,d)}o||(n&&!i&&p(),l(),void 0===n&&s>t?p():!0!==e&&(i=setTimeout(n?function(){i=void 0}:p,void 0===n?t-s:t)))}return"boolean"!=typeof e&&(n=a,a=e,e=void 0),c.cancel=function(){l(),o=!0},c}function i(t,e,a){return void 0===a?n(t,e,!1):n(t,a,!1!==e)}a.d(e,"b",function(){return n}),a.d(e,"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.
|
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.12.0
|
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/noscript.min.css
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
/*!
|
2 |
* Name : Visual Portfolio Noscript
|
3 |
-
* Version : 1.
|
4 |
* Author : nK https://nkdev.info
|
5 |
*/.vp-portfolio__preloader-wrap{display:none}.vp-portfolio__items-wrap,.vp-portfolio__filter-wrap,.vp-portfolio__sort-wrap,.vp-portfolio__pagination-wrap{visibility:visible;opacity:1}.vp-portfolio__item .vp-portfolio__item-img noscript+img{display:none}.vp-portfolio__thumbnails-wrap{display:none}
|
1 |
/*!
|
2 |
* Name : Visual Portfolio Noscript
|
3 |
+
* Version : 1.12.0
|
4 |
* Author : nK https://nkdev.info
|
5 |
*/.vp-portfolio__preloader-wrap{display:none}.vp-portfolio__items-wrap,.vp-portfolio__filter-wrap,.vp-portfolio__sort-wrap,.vp-portfolio__pagination-wrap{visibility:visible;opacity:1}.vp-portfolio__item .vp-portfolio__item-img noscript+img{display:none}.vp-portfolio__thumbnails-wrap{display:none}
|
assets/css/style.min.css
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
/*!
|
2 |
* Name : Visual Portfolio
|
3 |
-
* Version : 1.
|
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__sort-wrap,.vp-portfolio__pagination-wrap,.vp-portfolio__item{position:relative;overflow:hidden}.vp-portfolio__items-wrap,.vp-portfolio__filter-wrap,.vp-portfolio__sort-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,.vp-portfolio__item .vp-portfolio__thumbnail-img img{display:block;width:100%;height:auto}.vp-portfolio__item-img,.vp-portfolio__thumbnail-img{position:relative}.vp-portfolio__filter-sort-wrap{display:flex;flex-wrap:wrap}.vp-portfolio__filter-sort-wrap .vp-portfolio__sort-wrap{margin-left:auto}.vp-portfolio figure.vp-portfolio__item{margin:0}[class^="wp-block-"]:not(.wp-block-gallery) figcaption.vp-portfolio__item-meta,.vp-portfolio figcaption.vp-portfolio__item-meta{margin-bottom:0;font-style:inherit}.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}[data-vp-layout="slider"] .vp-portfolio__item-img-wrap,[data-vp-layout="slider"] .vp-portfolio__thumbnail-img-wrap{position:relative;display:block;overflow:hidden}[data-vp-layout="slider"] .vp-portfolio__item-img-wrap::before,[data-vp-layout="slider"] .vp-portfolio__thumbnail-img-wrap::before{content:"";display:block}[data-vp-layout="slider"] .vp-portfolio__item-img img,[data-vp-layout="slider"] .vp-portfolio__thumbnail-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}[data-vp-layout="slider"] .vp-portfolio__thumbnails-wrap .vp-portfolio__thumbnail-wrap{cursor:pointer;opacity:.5;transition:.2s opacity}[data-vp-layout="slider"] .vp-portfolio__thumbnails-wrap .vp-portfolio__thumbnail-wrap:hover,[data-vp-layout="slider"] .vp-portfolio__thumbnails-wrap .vp-portfolio__thumbnail-wrap:focus,[data-vp-layout="slider"] .vp-portfolio__thumbnails-wrap .vp-portfolio__thumbnail-wrap.swiper-slide-thumb-active{opacity:1}.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__sort-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-single-sort.vp-single-sort__ready .vp-portfolio__sort-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__sort-wrap,.vp-portfolio.vp-portfolio__loading .vp-portfolio__pagination-wrap{opacity:.5}.vp-portfolio__item-popup{display:none}.vp-pswp{z-index:1500}body.admin-bar .vp-pswp{top:32px;height:calc(100% - 32px)}@media screen and (max-width: 782px){body.admin-bar .vp-pswp{top:42px;height:calc(100% - 42px)}}@media screen and (max-width: 600px){body.admin-bar .vp-pswp{top:0;height:100%}}.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{opacity:1;transition:.3s opacity;will-change:opacity}.vp-portfolio__item-img::before,.vp-portfolio__thumbnail-img::before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:linear-gradient(-70deg, rgba(255,255,255,0) 42%, rgba(255,255,255,0.55) 50%, rgba(255,255,255,0) 58%);background-color:rgba(132,136,177,0.05);background-position:0% 50%;background-size:500% 100%;transition:.3s .3s opacity, .3s .3s visibility}.vp-portfolio__item-img-lazyloading::before,.vp-portfolio__thumbnail-img-lazyloading::before{visibility:visible;opacity:1;transition:none;-webkit-animation:vp-lazyload-placeholder 3s linear infinite;animation:vp-lazyload-placeholder 3s linear infinite}.vp-portfolio__item-img-lazyloading img.visual-portfolio-lazyload,.vp-portfolio__thumbnail-img-lazyloading img.visual-portfolio-lazyload{opacity:0}@-webkit-keyframes vp-lazyload-placeholder{0%,80%{background-position:100% 50%}100%{background-position:0% 50%}}@keyframes vp-lazyload-placeholder{0%,80%{background-position:100% 50%}100%{background-position:0% 50%}}
|
1 |
/*!
|
2 |
* Name : Visual Portfolio
|
3 |
+
* Version : 1.12.0
|
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__sort-wrap,.vp-portfolio__pagination-wrap,.vp-portfolio__item{position:relative;overflow:hidden}.vp-portfolio__items-wrap,.vp-portfolio__filter-wrap,.vp-portfolio__sort-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,.vp-portfolio__item .vp-portfolio__thumbnail-img img{display:block;width:100%;height:auto}.vp-portfolio__item-img,.vp-portfolio__thumbnail-img{position:relative}.vp-portfolio__filter-sort-wrap{display:flex;flex-wrap:wrap}.vp-portfolio__filter-sort-wrap .vp-portfolio__sort-wrap{margin-left:auto}.vp-portfolio figure.vp-portfolio__item{margin:0}[class^="wp-block-"]:not(.wp-block-gallery) figcaption.vp-portfolio__item-meta,.vp-portfolio figcaption.vp-portfolio__item-meta{margin-bottom:0;font-style:inherit}.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}[data-vp-layout="slider"] .vp-portfolio__item-img-wrap,[data-vp-layout="slider"] .vp-portfolio__thumbnail-img-wrap{position:relative;display:block;overflow:hidden}[data-vp-layout="slider"] .vp-portfolio__item-img-wrap::before,[data-vp-layout="slider"] .vp-portfolio__thumbnail-img-wrap::before{content:"";display:block}[data-vp-layout="slider"] .vp-portfolio__item-img img,[data-vp-layout="slider"] .vp-portfolio__thumbnail-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}[data-vp-layout="slider"] .vp-portfolio__thumbnails-wrap .vp-portfolio__thumbnail-wrap{cursor:pointer;opacity:.5;transition:.2s opacity}[data-vp-layout="slider"] .vp-portfolio__thumbnails-wrap .vp-portfolio__thumbnail-wrap:hover,[data-vp-layout="slider"] .vp-portfolio__thumbnails-wrap .vp-portfolio__thumbnail-wrap:focus,[data-vp-layout="slider"] .vp-portfolio__thumbnails-wrap .vp-portfolio__thumbnail-wrap.swiper-slide-thumb-active{opacity:1}.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__sort-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-single-sort.vp-single-sort__ready .vp-portfolio__sort-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__sort-wrap,.vp-portfolio.vp-portfolio__loading .vp-portfolio__pagination-wrap{opacity:.5}.vp-portfolio__item-popup{display:none}.vp-pswp{z-index:1500}body.admin-bar .vp-pswp{top:32px;height:calc(100% - 32px)}@media screen and (max-width: 782px){body.admin-bar .vp-pswp{top:42px;height:calc(100% - 42px)}}@media screen and (max-width: 600px){body.admin-bar .vp-pswp{top:0;height:100%}}.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{opacity:1;transition:.3s opacity;will-change:opacity}.vp-portfolio__item-img::before,.vp-portfolio__thumbnail-img::before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:linear-gradient(-70deg, rgba(255,255,255,0) 42%, rgba(255,255,255,0.55) 50%, rgba(255,255,255,0) 58%);background-color:rgba(132,136,177,0.05);background-position:0% 50%;background-size:500% 100%;transition:.3s .3s opacity, .3s .3s visibility}.vp-portfolio__item-img-lazyloading::before,.vp-portfolio__thumbnail-img-lazyloading::before{visibility:visible;opacity:1;transition:none;-webkit-animation:vp-lazyload-placeholder 3s linear infinite;animation:vp-lazyload-placeholder 3s linear infinite}.vp-portfolio__item-img-lazyloading img.visual-portfolio-lazyload,.vp-portfolio__thumbnail-img-lazyloading img.visual-portfolio-lazyload{opacity:0}@-webkit-keyframes vp-lazyload-placeholder{0%,80%{background-position:100% 50%}100%{background-position:0% 50%}}@keyframes vp-lazyload-placeholder{0%,80%{background-position:100% 50%}100%{background-position:0% 50%}}
|
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=166)}({166:function(e,t,r){e.exports=r(167)},167:function(e,t){
|
2 |
/*!
|
3 |
* Name : Visual Portfolio
|
4 |
-
* Version : 1.
|
5 |
* Author : nK https://nkdev.info
|
6 |
*/
|
7 |
var r;(r=jQuery("#vp_preview > .vp-portfolio")).on("click",".vp-portfolio__item, .vp-portfolio__item a",function(e){e.preventDefault(),e.stopPropagation()}),window.iFrameResizer={heightCalculationMethod:function(){return r.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=166)}({166:function(e,t,r){e.exports=r(167)},167:function(e,t){
|
2 |
/*!
|
3 |
* Name : Visual Portfolio
|
4 |
+
* Version : 1.12.0
|
5 |
* Author : nK https://nkdev.info
|
6 |
*/
|
7 |
var r;(r=jQuery("#vp_preview > .vp-portfolio")).on("click",".vp-portfolio__item, .vp-portfolio__item a",function(e){e.preventDefault(),e.stopPropagation()}),window.iFrameResizer={heightCalculationMethod:function(){return r.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=168)}({161:function(t,i,e){var o=e(170),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},168:function(t,i,e){t.exports=e(169)},169:function(t,i,e){"use strict";e.r(i);var o=e(30),s=e(161),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.
|
5 |
* Author : nK https://nkdev.info
|
6 |
*/
|
7 |
-
var l=jQuery,d=window,c=d.VPData,f=d.objectFitImages,v=d.PhotoSwipe,u=d.PhotoSwipeUI_Default,h=c.__,m=c.settingsPopupGallery,_=l(window),w=0,y=0;function g(){w=_.width(),y=_.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.$slider_thumbnails_wrap=i.find(".vp-portfolio__thumbnails"),this.$pagination=i.find(".vp-portfolio__pagination-wrap"),this.$filter=i.find(".vp-portfolio__filter-wrap"),this.$sort=i.find(".vp-portfolio__sort-wrap"),this.id&&(this.$filter=this.$filter.add(".vp-single-filter.vp-id-".concat(this.id," .vp-portfolio__filter-wrap"))),this.id&&(this.$sort=this.$sort.add(".vp-single-sort.vp-id-".concat(this.id," .vp-portfolio__sort-wrap"))),this.userOptions=e,this.firstRun=!0,this.init()):console.error(h.couldnt_retrieve_vp)}var i,e,o;return i=t,(e=[{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.removeNoscriptTags(this.$items_wrap),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"),l(".vp-single-sort.vp-id-".concat(this.id)).addClass("vp-single-sort__ready")),this.initIsotope(),this.initFjGallery(),this.initSwiper(),this.resized(),this.imagesLoaded(),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:"imagesLoaded",value:function(){var t=this,i=this;i.$items_wrap.imagesLoaded&&i.$items_wrap.imagesLoaded(function(){i.initIsotope("layout"),i.initFjGallery(),t.emitEvent("imagesLoaded")})}},{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"),l(".vp-single-sort.vp-id-".concat(this.id)).removeClass("vp-single-sort__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,gridColumns: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=w-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),u=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||u)){var h=(o.width/2-d.x+o.left)/(o.width/2),m=(o.height/2-d.y+o.top)/(o.height/2);Math.abs(h)>Math.abs(m)?h>0?v=!0:u=!0:m>0?c=!0:f=!0}c?p="-10".concat(p):f?p="10".concat(p):v?r="-10".concat(r):u&&(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.$sort.on("click".concat(e),".vp-sort .vp-sort__item a",function(t){t.preventDefault();var e=l(this);i.loading||e.closest(".vp-sort__item").addClass("vp-sort__item-active").siblings().removeClass("vp-sort__item-active"),i.loadNewItems(e.attr("href"),!0)}),i.$filter.add(i.$sort).on("change".concat(e),".vp-filter select, .vp-sort select",function(){var t=l(this),e=t.val(),o=t.find('[value="'.concat(e,'"]'));o.length&&i.loadNewItems(o.attr("data-vp-url"),!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<=y&&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),this.$sort.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.add(this.$slider_thumbnails_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:"removeNoscriptTags",value:function(t){t.find("noscript").remove()}},{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(){var t=this;if(t.options.layout)switch(t.options.layout){case"tiles":var i=t.getTilesSettings(),e=parseInt(i[0],10)||1;if(i.shift(),t.addStyle(".vp-portfolio__item-wrap",{width:"".concat(100/e,"%")}),i&&i.length)for(var o=0;o<i.length;o++){var s=i[o].split(","),n=parseFloat(s[0])||1,a=parseFloat(s[1])||1,r=".vp-portfolio__item-wrap";i.length>1&&(r+=":nth-of-type(".concat(i.length,"n+").concat(o+1,")")),n&&1!==n&&t.addStyle(r,{width:"".concat(100*n/e,"%")}),t.addStyle("".concat(r," .vp-portfolio__item-img-wrap::before"),{"margin-top":"".concat(100*a,"%")})}for(var p=e-1,l=Math.min(b.length-1,p);l>=0;l--)p>0&&void 0!==b[l]&&(t.addStyle(".vp-portfolio__item-wrap",{width:"".concat(100/p,"%")},"screen and (max-width: ".concat(b[l],"px)")),t.addStyle(".vp-portfolio__item-wrap:nth-of-type(n)",{width:"".concat(100/p,"%")},"screen and (max-width: ".concat(b[l],"px)"))),p-=1;break;case"masonry":case"grid":var d=t.options["masonry"===t.options.layout?"masonryColumns":"gridColumns"];t.addStyle(".vp-portfolio__item-wrap",{width:"".concat(100/d,"%")});for(var c=d-1,f=Math.min(b.length-1,c);f>=0;f--)c>0&&void 0!==b[f]&&t.addStyle(".vp-portfolio__item-wrap",{width:"".concat(100/c,"%")},"screen and (max-width: ".concat(b[f],"px)")),c-=1;case"justified":break;case"slider":["items","thumbnails"].forEach(function(i){var e="items"===i?t.options.sliderItemsHeight:t.options.sliderThumbnailsHeight,o=i.replace(/s$/g,"");if("auto"!==e)if("auto"===("items"===i?t.options.sliderSlidesPerView:t.options.sliderThumbnailsPerView)){var s="auto";"items"===i&&"fade"===t.options.sliderEffect&&(s="100%"),e.indexOf("%")===e.length-1?(t.addStyle(".vp-portfolio__".concat(i,"-wrap::before"),{content:'""',display:"block",width:"100%","margin-top":isNaN(e)?e:"".concat(e,"px")}),t.addStyle(".vp-portfolio__".concat(i),{position:"absolute",top:0,left:0,right:0,bottom:0}),t.addStyle(".vp-portfolio__".concat(o,"-wrap"),{width:"auto",height:"true"===t.options.sliderBullets?"calc( 100% - 25px )":"100%"}),t.addStyle(".vp-portfolio__".concat(o,", .vp-portfolio__").concat(o,"-img-wrap, .vp-portfolio__").concat(o,"-img, .vp-portfolio__").concat(o,"-wrap .vp-portfolio__").concat(o," .vp-portfolio__").concat(o,"-img a, .vp-portfolio__").concat(o,"-wrap .vp-portfolio__").concat(o," .vp-portfolio__").concat(o,"-img img"),{width:s,height:"100%"})):(t.addStyle(".vp-portfolio__".concat(o,"-wrap"),{width:"auto"}),t.addStyle(".vp-portfolio__".concat(o," .vp-portfolio__").concat(o,"-img img"),{width:s,height:isNaN(e)?e:"".concat(e,"px")}))}else t.addStyle(".vp-portfolio__".concat(o,"-img-wrap::before"),{"margin-top":isNaN(e)?e:"".concat(e,"px")}),t.addStyle(".vp-portfolio__".concat(o,"-img img"),{position:"absolute",top:0,right:0,bottom:0,left:0}),t.addStyle(".vp-portfolio__".concat(o,"-img"),{position:"absolute",top:0,right:0,bottom:0,left:0}),t.addStyle(".vp-portfolio__".concat(o," .vp-portfolio__").concat(o,"-img img"),{width:"100%",height:"100%"})}),t.options.sliderThumbnailsGap&&t.addStyle(".vp-portfolio__thumbnails-wrap",{"margin-top":"".concat(t.options.sliderThumbnailsGap,"px")})}var v=parseInt(t.options.itemsGap,10);if(v&&("tiles"===t.options.layout||"masonry"===t.options.layout||"grid"===t.options.layout)){t.addStyle(".vp-portfolio__items",{"margin-left":"-".concat(v,"px"),"margin-top":"-".concat(v,"px")});var u="".concat(v,"px");t.addStyle(".vp-portfolio__items .vp-portfolio__item-wrap .vp-portfolio__item",{"margin-left":u,"margin-top":u}),"tiles"===t.options.layout&&(t.addStyle(".vp-portfolio__item-wrap .vp-portfolio__item-img-wrap",{"margin-left":"-".concat(u),"margin-top":"-".concat(u)}),t.addStyle(".vp-portfolio__item-wrap .vp-portfolio__item-img",{left:u,top:u}))}t.renderStyle(),t.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){if(this.$items_wrap.isotope&&("tiles"===this.options.layout||"masonry"===this.options.layout||"grid"===this.options.layout)){var i=t||{itemSelector:".vp-portfolio__item-wrap",layoutMode:"grid"===this.options.layout?"fitRows":"masonry",transitionDuration:"0.3s",percentPosition:!0};this.emitEvent("beforeInitIsotope",[t]),this.$items_wrap.isotope(i),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;if(this.$items_wrap.fjGallery&&"justified"===this.options.layout){var e=!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"};this.emitEvent("beforeInitFjGallery",[e,i]),this.$items_wrap.fjGallery(e,i),this.emitEvent("initFjGallery",[e,i])}}},{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;"fade"===(t=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,freeModeSticky:"true"===this.options.sliderFreeModeSticky,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>')}},mousewheel:"true"===this.options.sliderMousewheel,slidesPerView:e,breakpoints:o,keyboard:!0,grabCursor:!0}).effect&&(t.fadeEffect={crossFade:!0}),0===t.speed&&(t.speed=1);var a=0;if(t.on={transitionEnd:function(){0===a?(a=1,this.setTransition(1),this.setTranslate(this.translate+.1)):1===a&&(a=2,this.slideReset())}},this.emitEvent("beforeInitSwiper",[t]),this.$slider_thumbnails_wrap.length){var r=this.$slider_thumbnails_wrap.parent();r.addClass("swiper-container"),this.$slider_thumbnails_wrap.addClass("swiper-wrapper"),this.$slider_thumbnails_wrap.children().addClass("swiper-slide");var p=this.options.sliderThumbnailsPerView||8,l={};if(!isNaN(p))for(var d=p-1,c=Math.min(b.length-1,d);c>=0;c--)d>0&&void 0!==b[c]&&(l[b[c]]={slidesPerView:d}),d-=1;var f=new window.Swiper(r[0],{autoHeight:"auto"===this.options.sliderThumbnailsHeight,effect:"slide",spaceBetween:parseFloat(this.options.sliderThumbnailsGap)||0,loop:!1,freeMode:!0,freeModeSticky:!0,loopedSlides:5,slidesPerView:p,breakpoints:l,keyboard:!0,grabCursor:!0,watchSlidesVisibility:!0,watchSlidesProgress:!0});t.thumbs={swiper:f}}new window.Swiper(i[0],t),"true"===this.options.sliderAutoplayHoverPause&&parseFloat(this.options.sliderAutoplay)>0&&(this.$item.on("mouseenter.vpf-uid-".concat(this.uid),".swiper-container",function(){i[0].swiper.autoplay.stop()}),this.$item.on("mouseleave.vpf-uid-".concat(this.uid),".swiper-container",function(){i[0].swiper.autoplay.start()})),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(h.pswp_close,'"></a>\n <a class="pswp__button pswp__button--share" title="').concat(h.pswp_share,'"></a>\n <a class="pswp__button pswp__button--fs" title="').concat(h.pswp_fs,'"></a>\n <a class="pswp__button pswp__button--zoom" title="').concat(h.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(h.pswp_prev,'"></a>\n <a class="pswp__button pswp__button--arrow--right" title="').concat(h.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"),r=a[0],p=function(t){var i,e,o,s,n,a=l(t).find(".vp-portfolio__item-wrap"),r=[];return a.each(function(){if((i=l(this).find(".vp-portfolio__item-popup"))&&i.length){if(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.children(".vp-portfolio__item-popup-title").get(0),a=i.children(".vp-portfolio__item-popup-description").get(0);(t||a)&&(s.title=(t?t.outerHTML:"")+(a?a.outerHTML:"")),s.el=this;var p=i.attr("data-vp-popup-md-img")||s.src;p&&(e=(i.attr("data-vp-popup-md-img-size")||i.attr("data-vp-popup-img-size")||"1920x1080").split("x"),s.m={src:p,w:parseInt(e[0],10),h:parseInt(e[1],10)},s.msrc=p),s.o={src:s.src,w:s.w,h:s.h}}r.push(s)}}),r}(e),d={captionAndToolbarShowEmptyCaptions:!1,closeEl:m.show_close_button,captionEl:!0,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:h.pswp_share_fb,url:"https://www.facebook.com/sharer/sharer.php?u={{url}}"},{id:"twitter",label:h.pswp_share_tw,url:"https://twitter.com/intent/tweet?text={{text}}&url={{url}}"},{id:"pinterest",label:h.pswp_share_pin,url:"https://www.pinterest.com/pin/create/button/?url={{url}}&media={{image_url}}&description={{text}}"}],bgOpacity:1,tapToClose:!1,tapToToggleControls:!0,showHideOpacity:!0,galleryUID:t.uid,getThumbBoundsFn:function(t){if(!p[t]||!p[t].el)return!1;var i=l(p[t].el).find("img")[0];if(!i)return!1;var e=i.getBoundingClientRect(),o=window.pageYOffset||document.documentElement.scrollTop,s=parseFloat(a.css("top"))||0;return{x:e.left,y:e.top+o-s,w:e.width,h:e.height}}};if(n)if(d.galleryPIDs){for(var c=0;c<p.length;c++)if(p[c].pid===i){d.index=c;break}}else d.index=parseInt(i,10)-1;else d.index=parseInt(i,10);if(!isNaN(d.index)){o&&(d.showAnimationDuration=0);var f,_,w=new v(r,u,p,d),y=!1,g=!0;w.listen("beforeResize",function(){f=w.viewportSize.x*window.devicePixelRatio,y&&f<1e3?(y=!1,_=!0):!y&&f>=1e3&&(y=!0,_=!0),_&&!g&&w.invalidateCurrItems(),g&&(g=!1),_=!1}),w.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))}),w.listen("resize",function(){s(this)}),w.listen("afterChange",function(){s(this)}),w.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"))}})}}),w.listen("destroy",function(){this&&this.itemHolders.length&&this.itemHolders.forEach(function(t){t.el&&l(t.el).find(".vp-pswp-video").remove()})}),w.init()}};t.$item.on("click.vpf-uid-".concat(t.uid),".vp-portfolio__item",function(i){if(l(this).closest(".vp-portfolio__item-wrap").find(".vp-portfolio__item-popup").length){i.preventDefault();var o=0,s=this;t.$item.find(".vp-portfolio__item-wrap .vp-portfolio__item-popup").each(function(t){return l(this).closest(".vp-portfolio__item-wrap").find(".vp-portfolio__item")[0]!==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(e.removeNoscriptTags(t),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.$sort.length&&o.$sort.each(function(){var t=l(this),i="";i=t.parent().hasClass("vp-single-sort")?s.find('[class="'.concat(t.parent().attr("class").replace(" vp-single-sort__ready",""),'"] .vp-portfolio__sort-wrap')).html():n.find(".vp-portfolio__sort-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()}))}}])&&p(i.prototype,e),o&&p(i,o),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"),i.closest(".vp-portfolio__thumbnail-img").addClass("vp-portfolio__thumbnail-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"),i.closest(".vp-portfolio__thumbnail-img-lazyloading").removeClass("vp-portfolio__thumbnail-img-lazyloading"))}),l(".elementor").length&&l(document).on("init.vpf addItems.vpf",function(t,i){"vpf"===t.namespace&&i.$item.find(".vp-portfolio__item a").each(function(){/\.(png|jpe?g|gif|svg)(\?.*)?$/i.test(this.href)&&l(this).attr("data-elementor-open-lightbox","no")})});var $=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};$.constructor=x;var S=jQuery.fn.vpf;jQuery.fn.vpf=$,jQuery.fn.vpf.noConflict=function(){return jQuery.fn.vpf=S,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()})},170: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(77))},30:function(t,i,e){"use strict";function o(t,i,e,o){var s,n=!1,a=0;function r(){s&&clearTimeout(s)}function p(){var p=this,l=Date.now()-a,d=arguments;function c(){a=Date.now(),e.apply(p,d)}n||(o&&!s&&c(),r(),void 0===o&&l>t?c():!0!==i&&(s=setTimeout(o?function(){s=void 0}:c,void 0===o?t-l:t)))}return"boolean"!=typeof i&&(o=e,e=i,i=void 0),p.cancel=function(){r(),n=!0},p}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})},77:function(t,i){var e;e=function(){return this}();try{e=e||new Function("return 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=168)}({161:function(t,i,e){var o=e(170),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},168:function(t,i,e){t.exports=e(169)},169:function(t,i,e){"use strict";e.r(i);var o=e(30),s=e(161),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.12.0
|
5 |
* Author : nK https://nkdev.info
|
6 |
*/
|
7 |
+
var l=jQuery,d=window,c=d.VPData,f=d.objectFitImages,v=d.PhotoSwipe,u=d.PhotoSwipeUI_Default,h=c.__,m=c.settingsPopupGallery,_=l(window),w=0,y=0;function g(){w=_.width(),y=_.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 $=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.$slider_thumbnails_wrap=i.find(".vp-portfolio__thumbnails"),this.$pagination=i.find(".vp-portfolio__pagination-wrap"),this.$filter=i.find(".vp-portfolio__filter-wrap"),this.$sort=i.find(".vp-portfolio__sort-wrap"),this.id&&(this.$filter=this.$filter.add(".vp-single-filter.vp-id-".concat(this.id," .vp-portfolio__filter-wrap"))),this.id&&(this.$sort=this.$sort.add(".vp-single-sort.vp-id-".concat(this.id," .vp-portfolio__sort-wrap"))),this.userOptions=e,this.firstRun=!0,this.init()):console.error(h.couldnt_retrieve_vp)}var i,e,o;return i=t,(e=[{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.removeNoscriptTags(this.$items_wrap),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"),l(".vp-single-sort.vp-id-".concat(this.id)).addClass("vp-single-sort__ready")),this.initIsotope(),this.initFjGallery(),this.initSwiper(),this.resized(),this.imagesLoaded(),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:"imagesLoaded",value:function(){var t=this,i=this;i.$items_wrap.imagesLoaded&&i.$items_wrap.imagesLoaded(function(){i.initIsotope("layout"),i.initFjGallery(),t.emitEvent("imagesLoaded")})}},{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"),l(".vp-single-sort.vp-id-".concat(this.id)).removeClass("vp-single-sort__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,gridColumns: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=w-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),u=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||u)){var h=(o.width/2-d.x+o.left)/(o.width/2),m=(o.height/2-d.y+o.top)/(o.height/2);Math.abs(h)>Math.abs(m)?h>0?v=!0:u=!0:m>0?c=!0:f=!0}c?p="-10".concat(p):f?p="10".concat(p):v?r="-10".concat(r):u&&(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.$sort.on("click".concat(e),".vp-sort .vp-sort__item a",function(t){t.preventDefault();var e=l(this);i.loading||e.closest(".vp-sort__item").addClass("vp-sort__item-active").siblings().removeClass("vp-sort__item-active"),i.loadNewItems(e.attr("href"),!0)}),i.$filter.add(i.$sort).on("change".concat(e),".vp-filter select, .vp-sort select",function(){var t=l(this),e=t.val(),o=t.find('[value="'.concat(e,'"]'));o.length&&i.loadNewItems(o.attr("data-vp-url"),!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<=y&&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),this.$sort.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.add(this.$slider_thumbnails_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:"removeNoscriptTags",value:function(t){t.find("noscript").remove()}},{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(){var t=this;if(t.options.layout)switch(t.options.layout){case"tiles":var i=t.getTilesSettings(),e=parseInt(i[0],10)||1;if(i.shift(),t.addStyle(".vp-portfolio__item-wrap",{width:"".concat(100/e,"%")}),i&&i.length)for(var o=0;o<i.length;o++){var s=i[o].split(","),n=parseFloat(s[0])||1,a=parseFloat(s[1])||1,r=".vp-portfolio__item-wrap";i.length>1&&(r+=":nth-of-type(".concat(i.length,"n+").concat(o+1,")")),n&&1!==n&&t.addStyle(r,{width:"".concat(100*n/e,"%")}),t.addStyle("".concat(r," .vp-portfolio__item-img-wrap::before"),{"margin-top":"".concat(100*a,"%")})}for(var p=e-1,l=Math.min(b.length-1,p);l>=0;l--)p>0&&void 0!==b[l]&&(t.addStyle(".vp-portfolio__item-wrap",{width:"".concat(100/p,"%")},"screen and (max-width: ".concat(b[l],"px)")),t.addStyle(".vp-portfolio__item-wrap:nth-of-type(n)",{width:"".concat(100/p,"%")},"screen and (max-width: ".concat(b[l],"px)"))),p-=1;break;case"masonry":case"grid":var d=t.options["masonry"===t.options.layout?"masonryColumns":"gridColumns"];t.addStyle(".vp-portfolio__item-wrap",{width:"".concat(100/d,"%")});for(var c=d-1,f=Math.min(b.length-1,c);f>=0;f--)c>0&&void 0!==b[f]&&t.addStyle(".vp-portfolio__item-wrap",{width:"".concat(100/c,"%")},"screen and (max-width: ".concat(b[f],"px)")),c-=1;case"justified":break;case"slider":["items","thumbnails"].forEach(function(i){var e="items"===i?t.options.sliderItemsHeight:t.options.sliderThumbnailsHeight,o=i.replace(/s$/g,"");if("auto"!==e)if("auto"===("items"===i?t.options.sliderSlidesPerView:t.options.sliderThumbnailsPerView)){var s="auto";"items"===i&&"fade"===t.options.sliderEffect&&(s="100%"),e.indexOf("%")===e.length-1?(t.addStyle(".vp-portfolio__".concat(i,"-wrap::before"),{content:'""',display:"block",width:"100%","margin-top":isNaN(e)?e:"".concat(e,"px")}),t.addStyle(".vp-portfolio__".concat(i),{position:"absolute",top:0,left:0,right:0,bottom:0}),t.addStyle(".vp-portfolio__".concat(o,"-wrap"),{width:"auto",height:"true"===t.options.sliderBullets?"calc( 100% - 25px )":"100%"}),t.addStyle(".vp-portfolio__".concat(o,", .vp-portfolio__").concat(o,"-img-wrap, .vp-portfolio__").concat(o,"-img, .vp-portfolio__").concat(o,"-wrap .vp-portfolio__").concat(o," .vp-portfolio__").concat(o,"-img a, .vp-portfolio__").concat(o,"-wrap .vp-portfolio__").concat(o," .vp-portfolio__").concat(o,"-img img"),{width:s,height:"100%"})):(t.addStyle(".vp-portfolio__".concat(o,"-wrap"),{width:"auto"}),t.addStyle(".vp-portfolio__".concat(o," .vp-portfolio__").concat(o,"-img img"),{width:s,height:isNaN(e)?e:"".concat(e,"px")}))}else t.addStyle(".vp-portfolio__".concat(o,"-img-wrap::before"),{"margin-top":isNaN(e)?e:"".concat(e,"px")}),t.addStyle(".vp-portfolio__".concat(o,"-img img"),{position:"absolute",top:0,right:0,bottom:0,left:0}),t.addStyle(".vp-portfolio__".concat(o,"-img"),{position:"absolute",top:0,right:0,bottom:0,left:0}),t.addStyle(".vp-portfolio__".concat(o," .vp-portfolio__").concat(o,"-img img"),{width:"100%",height:"100%"})}),t.options.sliderThumbnailsGap&&t.addStyle(".vp-portfolio__thumbnails-wrap",{"margin-top":"".concat(t.options.sliderThumbnailsGap,"px")})}var v=parseInt(t.options.itemsGap,10);if(v&&("tiles"===t.options.layout||"masonry"===t.options.layout||"grid"===t.options.layout)){t.addStyle(".vp-portfolio__items",{"margin-left":"-".concat(v,"px"),"margin-top":"-".concat(v,"px")});var u="".concat(v,"px");t.addStyle(".vp-portfolio__items .vp-portfolio__item-wrap .vp-portfolio__item",{"margin-left":u,"margin-top":u}),"tiles"===t.options.layout&&(t.addStyle(".vp-portfolio__item-wrap .vp-portfolio__item-img-wrap",{"margin-left":"-".concat(u),"margin-top":"-".concat(u)}),t.addStyle(".vp-portfolio__item-wrap .vp-portfolio__item-img",{left:u,top:u}))}t.renderStyle(),t.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){if(this.$items_wrap.isotope&&("tiles"===this.options.layout||"masonry"===this.options.layout||"grid"===this.options.layout)){var i=t||{itemSelector:".vp-portfolio__item-wrap",layoutMode:"grid"===this.options.layout?"fitRows":"masonry",transitionDuration:"0.3s",percentPosition:!0};this.emitEvent("beforeInitIsotope",[t]),this.$items_wrap.isotope(i),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;if(this.$items_wrap.fjGallery&&"justified"===this.options.layout){var e=!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"};this.emitEvent("beforeInitFjGallery",[e,i]),this.$items_wrap.fjGallery(e,i),this.emitEvent("initFjGallery",[e,i])}}},{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;"fade"===(t=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,freeModeSticky:"true"===this.options.sliderFreeModeSticky,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>')}},mousewheel:"true"===this.options.sliderMousewheel,slidesPerView:e,breakpoints:o,keyboard:!0,grabCursor:!0}).effect&&(t.fadeEffect={crossFade:!0}),0===t.speed&&(t.speed=1);var a=0;if(t.on={transitionEnd:function(){0===a?(a=1,this.setTransition(1),this.setTranslate(this.translate+.1)):1===a&&(a=2,this.slideReset())}},this.emitEvent("beforeInitSwiper",[t]),this.$slider_thumbnails_wrap.length){var r=this.$slider_thumbnails_wrap.parent();r.addClass("swiper-container"),this.$slider_thumbnails_wrap.addClass("swiper-wrapper"),this.$slider_thumbnails_wrap.children().addClass("swiper-slide");var p=this.options.sliderThumbnailsPerView||8,l={};if(!isNaN(p))for(var d=p-1,c=Math.min(b.length-1,d);c>=0;c--)d>0&&void 0!==b[c]&&(l[b[c]]={slidesPerView:d}),d-=1;var f=new window.Swiper(r[0],{autoHeight:"auto"===this.options.sliderThumbnailsHeight,effect:"slide",spaceBetween:parseFloat(this.options.sliderThumbnailsGap)||0,loop:!1,freeMode:!0,freeModeSticky:!0,loopedSlides:5,slidesPerView:p,breakpoints:l,keyboard:!0,grabCursor:!0,watchSlidesVisibility:!0,watchSlidesProgress:!0});t.thumbs={swiper:f}}new window.Swiper(i[0],t),"true"===this.options.sliderAutoplayHoverPause&&parseFloat(this.options.sliderAutoplay)>0&&(this.$item.on("mouseenter.vpf-uid-".concat(this.uid),".swiper-container",function(){i[0].swiper.autoplay.stop()}),this.$item.on("mouseleave.vpf-uid-".concat(this.uid),".swiper-container",function(){i[0].swiper.autoplay.start()})),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:"parseVideo",value:function(t){var i,e=!(!(i=t.match(/.*(?:youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=)([^#\&\?]*).*/))||11!==i[1].length)&&i[1],o=function(t){var i=t.match(/https?:\/\/(?:www\.|player\.)?vimeo.com\/(?:channels\/(?:\w+\/)?|groups\/([^\/]*)\/videos\/|album\/(\d+)\/video\/|video\/|)(\d+)(?:$|\/|\?)/);return!(!i||!i[3])&&i[3]}(t);return e?{vendor:"youtube",id:e,url:t,embed:'<iframe width="1920" height="1080" src="https://www.youtube.com/embed/'.concat(e,'" frameborder="0" allowfullscreen></iframe>')}:!!o&&{vendor:"vimeo",id:o,url:t,embed:'<iframe width="1920" height="1080" src="//player.vimeo.com/video/'.concat(e,'" frameborder="0" allowfullscreen></iframe>')}}},{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(h.pswp_close,'"></a>\n <a class="pswp__button pswp__button--share" title="').concat(h.pswp_share,'"></a>\n <a class="pswp__button pswp__button--fs" title="').concat(h.pswp_fs,'"></a>\n <a class="pswp__button pswp__button--zoom" title="').concat(h.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(h.pswp_prev,'"></a>\n <a class="pswp__button pswp__button--arrow--right" title="').concat(h.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"),r=a[0],p=function(i){var e,o,s,n,a,r,p=l(i).find(".vp-portfolio__item-wrap"),d=[];return p.each(function(){if((e=l(this).find(".vp-portfolio__item-popup"))&&e.length){if(o=(e.attr("data-vp-popup-img-size")||"1920x1080").split("x"),s="1920x1080".split("x"),a=e.attr("data-vp-popup-video"),r=!1,a&&(r=t.parseVideo(a)),r)n={html:'<div class="vp-pswp-video"><div>'.concat(r.embed,"</div></div>"),vw:parseInt(s[0],10),vh:parseInt(s[1],10)};else{n={src:e.attr("data-vp-popup-img"),w:parseInt(o[0],10),h:parseInt(o[1],10)};var i=e.children(".vp-portfolio__item-popup-title").get(0),p=e.children(".vp-portfolio__item-popup-description").get(0);(i||p)&&(n.title=(i?i.outerHTML:"")+(p?p.outerHTML:"")),n.el=this;var c=e.attr("data-vp-popup-md-img")||n.src;c&&(o=(e.attr("data-vp-popup-md-img-size")||e.attr("data-vp-popup-img-size")||"1920x1080").split("x"),n.m={src:c,w:parseInt(o[0],10),h:parseInt(o[1],10)},n.msrc=c),n.o={src:n.src,w:n.w,h:n.h}}d.push(n)}}),d}(e),d={captionAndToolbarShowEmptyCaptions:!1,closeEl:m.show_close_button,captionEl:!0,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:h.pswp_share_fb,url:"https://www.facebook.com/sharer/sharer.php?u={{url}}"},{id:"twitter",label:h.pswp_share_tw,url:"https://twitter.com/intent/tweet?text={{text}}&url={{url}}"},{id:"pinterest",label:h.pswp_share_pin,url:"https://www.pinterest.com/pin/create/button/?url={{url}}&media={{image_url}}&description={{text}}"}],bgOpacity:1,tapToClose:!1,tapToToggleControls:!0,showHideOpacity:!0,galleryUID:t.uid,getThumbBoundsFn:function(t){if(!p[t]||!p[t].el)return!1;var i=l(p[t].el).find("img")[0];if(!i)return!1;var e=i.getBoundingClientRect(),o=window.pageYOffset||document.documentElement.scrollTop,s=parseFloat(a.css("top"))||0;return{x:e.left,y:e.top+o-s,w:e.width,h:e.height}}};if(n)if(d.galleryPIDs){for(var c=0;c<p.length;c++)if(p[c].pid===i){d.index=c;break}}else d.index=parseInt(i,10)-1;else d.index=parseInt(i,10);if(!isNaN(d.index)){o&&(d.showAnimationDuration=0);var f,_,w=new v(r,u,p,d),y=!1,g=!0;w.listen("beforeResize",function(){f=w.viewportSize.x*window.devicePixelRatio,y&&f<1e3?(y=!1,_=!0):!y&&f>=1e3&&(y=!0,_=!0),_&&!g&&w.invalidateCurrItems(),g&&(g=!1),_=!1}),w.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))}),w.listen("resize",function(){s(this)}),w.listen("afterChange",function(){s(this)}),w.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"))}})}}),w.listen("destroy",function(){this&&this.itemHolders.length&&this.itemHolders.forEach(function(t){t.el&&l(t.el).find(".vp-pswp-video").remove()})}),w.init()}};t.$item.on("click.vpf-uid-".concat(t.uid),".vp-portfolio__item",function(i){if(l(this).closest(".vp-portfolio__item-wrap").find(".vp-portfolio__item-popup").length){i.preventDefault();var o=0,s=this;t.$item.find(".vp-portfolio__item-wrap .vp-portfolio__item-popup").each(function(t){return l(this).closest(".vp-portfolio__item-wrap").find(".vp-portfolio__item")[0]!==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(e.removeNoscriptTags(t),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.$sort.length&&o.$sort.each(function(){var t=l(this),i="";i=t.parent().hasClass("vp-single-sort")?s.find('[class="'.concat(t.parent().attr("class").replace(" vp-single-sort__ready",""),'"] .vp-portfolio__sort-wrap')).html():n.find(".vp-portfolio__sort-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()}))}}])&&p(i.prototype,e),o&&p(i,o),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"),i.closest(".vp-portfolio__thumbnail-img").addClass("vp-portfolio__thumbnail-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"),i.closest(".vp-portfolio__thumbnail-img-lazyloading").removeClass("vp-portfolio__thumbnail-img-lazyloading"))}),l(".elementor").length&&l(document).on("init.vpf addItems.vpf",function(t,i){"vpf"===t.namespace&&i.$item.find(".vp-portfolio__item a").each(function(){/\.(png|jpe?g|gif|svg)(\?.*)?$/i.test(this.href)&&l(this).attr("data-elementor-open-lightbox","no")})});var x=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 $(l(this),t));else if(this.vpf){var o;i=(o=this.vpf)[t].apply(o,a(e))}}),void 0!==i?i:this};x.constructor=$;var S=jQuery.fn.vpf;jQuery.fn.vpf=x,jQuery.fn.vpf.noConflict=function(){return jQuery.fn.vpf=S,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()})},170: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(77))},30:function(t,i,e){"use strict";function o(t,i,e,o){var s,n=!1,a=0;function r(){s&&clearTimeout(s)}function p(){var p=this,l=Date.now()-a,d=arguments;function c(){a=Date.now(),e.apply(p,d)}n||(o&&!s&&c(),r(),void 0===o&&l>t?c():!0!==i&&(s=setTimeout(o?function(){s=void 0}:c,void 0===o?t-l:t)))}return"boolean"!=typeof i&&(o=e,e=i,i=void 0),p.cancel=function(){r(),n=!0},p}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})},77:function(t,i){var e;e=function(){return this}();try{e=e||new Function("return this")()}catch(t){"object"==typeof window&&(e=window)}t.exports=e}});
|
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.
|
6 |
* Author: nK
|
7 |
* Author URI: https://nkdev.info
|
8 |
* License: GPLv2 or later
|
@@ -210,9 +210,9 @@ class Visual_Portfolio {
|
|
210 |
}
|
211 |
|
212 |
// Visual Portfolio.
|
213 |
-
wp_register_script( 'visual-portfolio', visual_portfolio()->plugin_url . 'assets/js/script.min.js', $vp_deps, '1.
|
214 |
-
wp_register_style( 'visual-portfolio', visual_portfolio()->plugin_url . 'assets/css/style.min.css', $vp_style_deps, '1.
|
215 |
-
wp_register_style( 'visual-portfolio-noscript', visual_portfolio()->plugin_url . 'assets/css/noscript.min.css', $vp_style_deps, '1.
|
216 |
|
217 |
// Visual Portfolio data.
|
218 |
$data_init = array(
|
@@ -391,6 +391,13 @@ class Visual_Portfolio {
|
|
391 |
* @return array|bool|false|object
|
392 |
*/
|
393 |
public function get_oembed_data( $url, $width = null, $height = null ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
394 |
if ( function_exists( '_wp_oembed_get_object' ) ) {
|
395 |
require_once( ABSPATH . WPINC . '/class-oembed.php' );
|
396 |
}
|
@@ -423,8 +430,13 @@ class Visual_Portfolio {
|
|
423 |
if ( ! isset( $data['provider'] ) ) {
|
424 |
$data['provider'] = $provider;
|
425 |
}
|
|
|
426 |
// Convert url to hostname, eg: "youtube" instead of "https://youtube.com/".
|
427 |
$data['provider-name'] = pathinfo( str_replace( array( 'www.' ), '', parse_url( $url, PHP_URL_HOST ) ), PATHINFO_FILENAME );
|
|
|
|
|
|
|
|
|
428 |
return $data;
|
429 |
}
|
430 |
|
2 |
/**
|
3 |
* Plugin Name: Visual Portfolio
|
4 |
* Description: Portfolio post type with visual editor
|
5 |
+
* Version: 1.12.0
|
6 |
* Author: nK
|
7 |
* Author URI: https://nkdev.info
|
8 |
* License: GPLv2 or later
|
210 |
}
|
211 |
|
212 |
// Visual Portfolio.
|
213 |
+
wp_register_script( 'visual-portfolio', visual_portfolio()->plugin_url . 'assets/js/script.min.js', $vp_deps, '1.12.0', true );
|
214 |
+
wp_register_style( 'visual-portfolio', visual_portfolio()->plugin_url . 'assets/css/style.min.css', $vp_style_deps, '1.12.0' );
|
215 |
+
wp_register_style( 'visual-portfolio-noscript', visual_portfolio()->plugin_url . 'assets/css/noscript.min.css', $vp_style_deps, '1.12.0' );
|
216 |
|
217 |
// Visual Portfolio data.
|
218 |
$data_init = array(
|
391 |
* @return array|bool|false|object
|
392 |
*/
|
393 |
public function get_oembed_data( $url, $width = null, $height = null ) {
|
394 |
+
$cache_name = 'vp_oembed_data_' . $url . ( $width ? : '' ) . ( $height ? : '' );
|
395 |
+
$cached = get_transient( $cache_name );
|
396 |
+
|
397 |
+
if ( $cached ) {
|
398 |
+
return $cached;
|
399 |
+
}
|
400 |
+
|
401 |
if ( function_exists( '_wp_oembed_get_object' ) ) {
|
402 |
require_once( ABSPATH . WPINC . '/class-oembed.php' );
|
403 |
}
|
430 |
if ( ! isset( $data['provider'] ) ) {
|
431 |
$data['provider'] = $provider;
|
432 |
}
|
433 |
+
|
434 |
// Convert url to hostname, eg: "youtube" instead of "https://youtube.com/".
|
435 |
$data['provider-name'] = pathinfo( str_replace( array( 'www.' ), '', parse_url( $url, PHP_URL_HOST ) ), PATHINFO_FILENAME );
|
436 |
+
|
437 |
+
// save cache.
|
438 |
+
set_transient( $cache_name, $data, DAY_IN_SECONDS );
|
439 |
+
|
440 |
return $data;
|
441 |
}
|
442 |
|
classes/class-admin.php
CHANGED
@@ -153,8 +153,8 @@ class Visual_Portfolio_Admin {
|
|
153 |
wp_enqueue_script( 'tooltip.js', visual_portfolio()->plugin_url . 'assets/vendor/popper.js/tooltip.min.js', array( 'popper.js' ), '1.14.3', true );
|
154 |
wp_enqueue_style( 'popper.js', visual_portfolio()->plugin_url . 'assets/vendor/popper.js/popper.css', '', '1.14.3' );
|
155 |
|
156 |
-
wp_enqueue_script( 'visual-portfolio-admin', visual_portfolio()->plugin_url . 'assets/admin/js/script.min.js', array( 'jquery' ), '1.
|
157 |
-
wp_enqueue_style( 'visual-portfolio-admin', visual_portfolio()->plugin_url . 'assets/admin/css/style.min.css', '', '1.
|
158 |
wp_localize_script( 'visual-portfolio-admin', 'VPAdminVariables', $data_init );
|
159 |
}
|
160 |
|
@@ -268,12 +268,8 @@ class Visual_Portfolio_Admin {
|
|
268 |
'show_in_nav_menus' => false,
|
269 |
'show_in_rest' => true,
|
270 |
'show_admin_column' => true,
|
271 |
-
'
|
272 |
-
|
273 |
-
'edit_terms' => 'edit_portfolio_terms',
|
274 |
-
'delete_terms' => 'delete_portfolio_terms',
|
275 |
-
'assign_terms' => 'assign_portfolio_terms',
|
276 |
-
),
|
277 |
)
|
278 |
);
|
279 |
register_taxonomy(
|
@@ -290,12 +286,8 @@ class Visual_Portfolio_Admin {
|
|
290 |
'show_in_nav_menus' => false,
|
291 |
'show_in_rest' => true,
|
292 |
'show_admin_column' => true,
|
293 |
-
'
|
294 |
-
|
295 |
-
'edit_terms' => 'edit_portfolio_terms',
|
296 |
-
'delete_terms' => 'delete_portfolio_terms',
|
297 |
-
'assign_terms' => 'assign_portfolio_terms',
|
298 |
-
),
|
299 |
)
|
300 |
);
|
301 |
|
@@ -498,7 +490,7 @@ class Visual_Portfolio_Admin {
|
|
498 |
if ( ! is_blog_installed() ) {
|
499 |
return;
|
500 |
}
|
501 |
-
if ( get_option( 'visual_portfolio_updated_caps' ) === '1.
|
502 |
return;
|
503 |
}
|
504 |
|
@@ -574,7 +566,7 @@ class Visual_Portfolio_Admin {
|
|
574 |
$wp_roles->add_cap( 'administrator', $cap );
|
575 |
}
|
576 |
|
577 |
-
update_option( 'visual_portfolio_updated_caps', '1.
|
578 |
}
|
579 |
|
580 |
/**
|
@@ -658,16 +650,6 @@ class Visual_Portfolio_Admin {
|
|
658 |
echo '<a href="' . esc_url( get_edit_post_link() ) . '" class="vp-portfolio__thumbnail">';
|
659 |
if ( has_post_thumbnail() ) {
|
660 |
the_post_thumbnail( 'thumbnail' );
|
661 |
-
} else if ( has_post_format( 'video' ) ) {
|
662 |
-
$video_url = get_post_meta( get_the_ID(), 'video_url', true );
|
663 |
-
if ( $video_url ) {
|
664 |
-
$oembed = visual_portfolio()->get_oembed_data( $video_url );
|
665 |
-
if ( isset( $oembed['thumbnail_url'] ) ) {
|
666 |
-
?>
|
667 |
-
<img src="<?php echo esc_url( $oembed['thumbnail_url'] ); ?>" alt="" />
|
668 |
-
<?php
|
669 |
-
}
|
670 |
-
}
|
671 |
}
|
672 |
echo '</a>';
|
673 |
}
|
153 |
wp_enqueue_script( 'tooltip.js', visual_portfolio()->plugin_url . 'assets/vendor/popper.js/tooltip.min.js', array( 'popper.js' ), '1.14.3', true );
|
154 |
wp_enqueue_style( 'popper.js', visual_portfolio()->plugin_url . 'assets/vendor/popper.js/popper.css', '', '1.14.3' );
|
155 |
|
156 |
+
wp_enqueue_script( 'visual-portfolio-admin', visual_portfolio()->plugin_url . 'assets/admin/js/script.min.js', array( 'jquery' ), '1.12.0', true );
|
157 |
+
wp_enqueue_style( 'visual-portfolio-admin', visual_portfolio()->plugin_url . 'assets/admin/css/style.min.css', '', '1.12.0' );
|
158 |
wp_localize_script( 'visual-portfolio-admin', 'VPAdminVariables', $data_init );
|
159 |
}
|
160 |
|
268 |
'show_in_nav_menus' => false,
|
269 |
'show_in_rest' => true,
|
270 |
'show_admin_column' => true,
|
271 |
+
'map_meta_cap' => true,
|
272 |
+
'capability_type' => 'portfolio',
|
|
|
|
|
|
|
|
|
273 |
)
|
274 |
);
|
275 |
register_taxonomy(
|
286 |
'show_in_nav_menus' => false,
|
287 |
'show_in_rest' => true,
|
288 |
'show_admin_column' => true,
|
289 |
+
'map_meta_cap' => true,
|
290 |
+
'capability_type' => 'portfolio',
|
|
|
|
|
|
|
|
|
291 |
)
|
292 |
);
|
293 |
|
490 |
if ( ! is_blog_installed() ) {
|
491 |
return;
|
492 |
}
|
493 |
+
if ( get_option( 'visual_portfolio_updated_caps' ) === '1.12.0' ) {
|
494 |
return;
|
495 |
}
|
496 |
|
566 |
$wp_roles->add_cap( 'administrator', $cap );
|
567 |
}
|
568 |
|
569 |
+
update_option( 'visual_portfolio_updated_caps', '1.12.0' );
|
570 |
}
|
571 |
|
572 |
/**
|
650 |
echo '<a href="' . esc_url( get_edit_post_link() ) . '" class="vp-portfolio__thumbnail">';
|
651 |
if ( has_post_thumbnail() ) {
|
652 |
the_post_thumbnail( 'thumbnail' );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
653 |
}
|
654 |
echo '</a>';
|
655 |
}
|
classes/class-get-portfolio.php
CHANGED
@@ -1469,20 +1469,8 @@ class Visual_Portfolio_Get {
|
|
1469 |
}
|
1470 |
|
1471 |
// add video format args.
|
1472 |
-
$oembed = false;
|
1473 |
if ( 'video' === $args['format'] && $args['video'] ) {
|
1474 |
-
$
|
1475 |
-
}
|
1476 |
-
if ( $oembed ) {
|
1477 |
-
$args['format_video_url'] = $args['video'];
|
1478 |
-
$args['format_video_oembed'] = $oembed['html'];
|
1479 |
-
$args['format_video_oembed_width'] = $oembed['width'];
|
1480 |
-
$args['format_video_oembed_height'] = $oembed['height'];
|
1481 |
-
|
1482 |
-
if ( ! $args['image'] && isset( $oembed['thumbnail_url'] ) ) {
|
1483 |
-
$args['image'] = '<img src="' . esc_url( $oembed['thumbnail_url'] ) . '" alt="' . esc_attr( $oembed['title'] ) . '" />';
|
1484 |
-
$args['image_noscript'] = $args['image'];
|
1485 |
-
}
|
1486 |
}
|
1487 |
|
1488 |
// Click action.
|
@@ -1492,11 +1480,9 @@ class Visual_Portfolio_Get {
|
|
1492 |
switch ( $args['vp_opts']['vp_items_click_action'] ) {
|
1493 |
case 'popup_gallery':
|
1494 |
if ( isset( $args['allow_popup'] ) && $args['allow_popup'] ) {
|
1495 |
-
if ( isset( $args['
|
1496 |
$popup_video = array(
|
1497 |
-
'
|
1498 |
-
'width' => $args['format_video_oembed_width'],
|
1499 |
-
'height' => $args['format_video_oembed_height'],
|
1500 |
);
|
1501 |
} else {
|
1502 |
$img_id = $args['image_id'] ? : $args['no_image'];
|
@@ -1568,8 +1554,7 @@ class Visual_Portfolio_Get {
|
|
1568 |
?>
|
1569 |
<div class="vp-portfolio__item-popup"
|
1570 |
style="display: none;"
|
1571 |
-
data-vp-popup-video="<?php echo esc_attr( $popup_video['
|
1572 |
-
data-vp-popup-video-size="<?php echo esc_attr( $popup_video['width'] . 'x' . $popup_video['height'] ); ?>"
|
1573 |
></div>
|
1574 |
<?php
|
1575 |
}
|
1469 |
}
|
1470 |
|
1471 |
// add video format args.
|
|
|
1472 |
if ( 'video' === $args['format'] && $args['video'] ) {
|
1473 |
+
$args['format_video_url'] = $args['video'];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1474 |
}
|
1475 |
|
1476 |
// Click action.
|
1480 |
switch ( $args['vp_opts']['vp_items_click_action'] ) {
|
1481 |
case 'popup_gallery':
|
1482 |
if ( isset( $args['allow_popup'] ) && $args['allow_popup'] ) {
|
1483 |
+
if ( isset( $args['format_video_url'] ) && $args['format_video_url'] ) {
|
1484 |
$popup_video = array(
|
1485 |
+
'url' => $args['format_video_url'],
|
|
|
|
|
1486 |
);
|
1487 |
} else {
|
1488 |
$img_id = $args['image_id'] ? : $args['no_image'];
|
1554 |
?>
|
1555 |
<div class="vp-portfolio__item-popup"
|
1556 |
style="display: none;"
|
1557 |
+
data-vp-popup-video="<?php echo esc_attr( $popup_video['url'] ); ?>"
|
|
|
1558 |
></div>
|
1559 |
<?php
|
1560 |
}
|
languages/visual-portfolio.pot
CHANGED
@@ -53,11 +53,11 @@ msgctxt "Post Type Singular Name"
|
|
53 |
msgid "Portfolio Item"
|
54 |
msgstr ""
|
55 |
|
56 |
-
#: dist/visual-portfolio/classes/class-admin.php:212, dist/visual-portfolio/classes/class-admin.php:
|
57 |
msgid "Visual Portfolio"
|
58 |
msgstr ""
|
59 |
|
60 |
-
#: dist/visual-portfolio/classes/class-admin.php:213, dist/visual-portfolio/classes/class-admin.php:
|
61 |
msgid "Parent Portfolio Item"
|
62 |
msgstr ""
|
63 |
|
@@ -73,7 +73,7 @@ msgstr ""
|
|
73 |
msgid "Add New Portfolio Item"
|
74 |
msgstr ""
|
75 |
|
76 |
-
#: dist/visual-portfolio/classes/class-admin.php:217, dist/visual-portfolio/classes/class-admin.php:
|
77 |
msgid "Add New"
|
78 |
msgstr ""
|
79 |
|
@@ -89,11 +89,11 @@ msgstr ""
|
|
89 |
msgid "Search Portfolio Item"
|
90 |
msgstr ""
|
91 |
|
92 |
-
#: dist/visual-portfolio/classes/class-admin.php:221, dist/visual-portfolio/classes/class-admin.php:
|
93 |
msgid "Not Found"
|
94 |
msgstr ""
|
95 |
|
96 |
-
#: dist/visual-portfolio/classes/class-admin.php:222, dist/visual-portfolio/classes/class-admin.php:
|
97 |
msgid "Not found in Trash"
|
98 |
msgstr ""
|
99 |
|
@@ -105,654 +105,654 @@ msgstr ""
|
|
105 |
msgid "Categories"
|
106 |
msgstr ""
|
107 |
|
108 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
109 |
msgid "Portfolio Tags"
|
110 |
msgstr ""
|
111 |
|
112 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
113 |
msgid "Tags"
|
114 |
msgstr ""
|
115 |
|
116 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
117 |
msgctxt "Post Type General Name"
|
118 |
msgid "Portfolio Layouts"
|
119 |
msgstr ""
|
120 |
|
121 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
122 |
msgctxt "Post Type Singular Name"
|
123 |
msgid "Portfolio Layout"
|
124 |
msgstr ""
|
125 |
|
126 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
127 |
msgid "Portfolio Layouts"
|
128 |
msgstr ""
|
129 |
|
130 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
131 |
msgid "View Portfolio Layout"
|
132 |
msgstr ""
|
133 |
|
134 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
135 |
msgid "Add New Portfolio Layout"
|
136 |
msgstr ""
|
137 |
|
138 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
139 |
msgid "Edit Portfolio Layout"
|
140 |
msgstr ""
|
141 |
|
142 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
143 |
msgid "Update Portfolio Layout"
|
144 |
msgstr ""
|
145 |
|
146 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
147 |
msgid "Search Portfolio Layout"
|
148 |
msgstr ""
|
149 |
|
150 |
#. translators: %s - taxonomy name.
|
151 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
152 |
msgid "Show All %s"
|
153 |
msgstr ""
|
154 |
|
155 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
156 |
msgid "Video"
|
157 |
msgstr ""
|
158 |
|
159 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
160 |
msgid "https://"
|
161 |
msgstr ""
|
162 |
|
163 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
164 |
msgid "Portfolio Manager"
|
165 |
msgstr ""
|
166 |
|
167 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
168 |
msgid "Portfolio Author"
|
169 |
msgstr ""
|
170 |
|
171 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
172 |
msgid "Ready to add your awesome portfolio?"
|
173 |
msgstr ""
|
174 |
|
175 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
176 |
msgid "Create your first portfolio list!"
|
177 |
msgstr ""
|
178 |
|
179 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
180 |
msgid "Thumbnail"
|
181 |
msgstr ""
|
182 |
|
183 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
184 |
msgid "Shortcode"
|
185 |
msgstr ""
|
186 |
|
187 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
188 |
msgid "Documentation"
|
189 |
msgstr ""
|
190 |
|
191 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
192 |
msgid "Tiles"
|
193 |
msgstr ""
|
194 |
|
195 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
196 |
msgid "Type"
|
197 |
msgstr ""
|
198 |
|
199 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
200 |
msgid "Select tiles type"
|
201 |
msgstr ""
|
202 |
|
203 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
204 |
msgid "Masonry"
|
205 |
msgstr ""
|
206 |
|
207 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
208 |
msgid "Columns"
|
209 |
msgstr ""
|
210 |
|
211 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
212 |
msgid "Grid"
|
213 |
msgstr ""
|
214 |
|
215 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
216 |
msgid "Justified"
|
217 |
msgstr ""
|
218 |
|
219 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
220 |
msgid "Row height"
|
221 |
msgstr ""
|
222 |
|
223 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
224 |
msgid "Row height tolerance"
|
225 |
msgstr ""
|
226 |
|
227 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
228 |
msgid "Slider"
|
229 |
msgstr ""
|
230 |
|
231 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
232 |
msgid "Effect"
|
233 |
msgstr ""
|
234 |
|
235 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
236 |
msgid "Slide"
|
237 |
msgstr ""
|
238 |
|
239 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
240 |
msgid "Coverflow"
|
241 |
msgstr ""
|
242 |
|
243 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
244 |
msgid "Fade"
|
245 |
msgstr ""
|
246 |
|
247 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
248 |
msgid "Speed (seconds)"
|
249 |
msgstr ""
|
250 |
|
251 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
252 |
msgid "Autoplay (seconds)"
|
253 |
msgstr ""
|
254 |
|
255 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
256 |
msgid "Pause on Mouse Over"
|
257 |
msgstr ""
|
258 |
|
259 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
260 |
msgid "Items height"
|
261 |
msgstr ""
|
262 |
|
263 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
264 |
msgid "Auto"
|
265 |
msgstr ""
|
266 |
|
267 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
268 |
msgid "Static (px)"
|
269 |
msgstr ""
|
270 |
|
271 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
272 |
msgid "Dynamic (%)"
|
273 |
msgstr ""
|
274 |
|
275 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
276 |
msgid "Slides per view"
|
277 |
msgstr ""
|
278 |
|
279 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
280 |
msgid "Custom"
|
281 |
msgstr ""
|
282 |
|
283 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
284 |
msgid "Centered slides"
|
285 |
msgstr ""
|
286 |
|
287 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
288 |
msgid "Loop"
|
289 |
msgstr ""
|
290 |
|
291 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
292 |
msgid "Free scroll"
|
293 |
msgstr ""
|
294 |
|
295 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
296 |
msgid "Free scroll Sticky"
|
297 |
msgstr ""
|
298 |
|
299 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
300 |
msgid "Show arrows"
|
301 |
msgstr ""
|
302 |
|
303 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
304 |
msgid "Prev arrow icon"
|
305 |
msgstr ""
|
306 |
|
307 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
308 |
msgid "Next arrow icon"
|
309 |
msgstr ""
|
310 |
|
311 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
312 |
msgid "Show bullets"
|
313 |
msgstr ""
|
314 |
|
315 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
316 |
msgid "Dynamic bullets"
|
317 |
msgstr ""
|
318 |
|
319 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
320 |
msgid "Mousewheel Control"
|
321 |
msgstr ""
|
322 |
|
323 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
324 |
msgid "Show thumbnails"
|
325 |
msgstr ""
|
326 |
|
327 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
328 |
msgid "Thumbnails gap"
|
329 |
msgstr ""
|
330 |
|
331 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
332 |
msgid "Thumbnails height"
|
333 |
msgstr ""
|
334 |
|
335 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
336 |
msgid "Thumbnails per view"
|
337 |
msgstr ""
|
338 |
|
339 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
340 |
msgid "Gap"
|
341 |
msgstr ""
|
342 |
|
343 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
344 |
msgid "Items per page"
|
345 |
msgstr ""
|
346 |
|
347 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
348 |
msgid "Stretch"
|
349 |
msgstr ""
|
350 |
|
351 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
352 |
msgid "Break container and display it wide"
|
353 |
msgstr ""
|
354 |
|
355 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
356 |
msgid "Default"
|
357 |
msgstr ""
|
358 |
|
359 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
360 |
msgid "Show Read more button"
|
361 |
msgstr ""
|
362 |
|
363 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
364 |
msgid "False"
|
365 |
msgstr ""
|
366 |
|
367 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
368 |
msgid "Always show"
|
369 |
msgstr ""
|
370 |
|
371 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
372 |
msgid "Show when used \"More tag\" in the post"
|
373 |
msgstr ""
|
374 |
|
375 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
376 |
msgid "Read more button label"
|
377 |
msgstr ""
|
378 |
|
379 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
380 |
msgid "Fly"
|
381 |
msgstr ""
|
382 |
|
383 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
384 |
msgid "Overlay background color"
|
385 |
msgstr ""
|
386 |
|
387 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
388 |
msgid "Overlay text color"
|
389 |
msgstr ""
|
390 |
|
391 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
392 |
msgid "Emerge"
|
393 |
msgstr ""
|
394 |
|
395 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
396 |
msgid "Show title"
|
397 |
msgstr ""
|
398 |
|
399 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
400 |
msgid "Show categories"
|
401 |
msgstr ""
|
402 |
|
403 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
404 |
msgid "Categories count"
|
405 |
msgstr ""
|
406 |
|
407 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
408 |
msgid "Show date"
|
409 |
msgstr ""
|
410 |
|
411 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
412 |
msgid "Show"
|
413 |
msgstr ""
|
414 |
|
415 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
416 |
msgid "Human Format"
|
417 |
msgstr ""
|
418 |
|
419 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
420 |
msgid ""
|
421 |
"Date format
|
422 |
" Example: F j, Y"
|
423 |
msgstr ""
|
424 |
|
425 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
426 |
msgid "Show excerpt"
|
427 |
msgstr ""
|
428 |
|
429 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
430 |
msgid "Excerpt words count"
|
431 |
msgstr ""
|
432 |
|
433 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
434 |
msgid "Show icon"
|
435 |
msgstr ""
|
436 |
|
437 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
438 |
msgid "Standard icon"
|
439 |
msgstr ""
|
440 |
|
441 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
442 |
msgid "Video icon"
|
443 |
msgstr ""
|
444 |
|
445 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
446 |
msgid "Caption align"
|
447 |
msgstr ""
|
448 |
|
449 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
450 |
msgid "Disabled"
|
451 |
msgstr ""
|
452 |
|
453 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
454 |
msgid "URL"
|
455 |
msgstr ""
|
456 |
|
457 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
458 |
msgid "Popup Gallery"
|
459 |
msgstr ""
|
460 |
|
461 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
462 |
msgid "Target"
|
463 |
msgstr ""
|
464 |
|
465 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
466 |
msgid "New tab (_blank)"
|
467 |
msgstr ""
|
468 |
|
469 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
470 |
msgid "Top frame (_top)"
|
471 |
msgstr ""
|
472 |
|
473 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
474 |
msgid "Title"
|
475 |
msgstr ""
|
476 |
|
477 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
478 |
msgid "None"
|
479 |
msgstr ""
|
480 |
|
481 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
482 |
msgid "Image Title"
|
483 |
msgstr ""
|
484 |
|
485 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
486 |
msgid "Image Caption"
|
487 |
msgstr ""
|
488 |
|
489 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
490 |
msgid "Image Alt"
|
491 |
msgstr ""
|
492 |
|
493 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
494 |
msgid "Image Description"
|
495 |
msgstr ""
|
496 |
|
497 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
498 |
msgid "Description"
|
499 |
msgstr ""
|
500 |
|
501 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
502 |
msgid "Dropdown"
|
503 |
msgstr ""
|
504 |
|
505 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
506 |
msgid "Align"
|
507 |
msgstr ""
|
508 |
|
509 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
510 |
msgid "Center"
|
511 |
msgstr ""
|
512 |
|
513 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
514 |
msgid "Left"
|
515 |
msgstr ""
|
516 |
|
517 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
518 |
msgid "Right"
|
519 |
msgstr ""
|
520 |
|
521 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
522 |
msgid "Show count"
|
523 |
msgstr ""
|
524 |
|
525 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
526 |
msgid "All button text"
|
527 |
msgstr ""
|
528 |
|
529 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
530 |
msgid "All"
|
531 |
msgstr ""
|
532 |
|
533 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
534 |
msgid "Paged"
|
535 |
msgstr ""
|
536 |
|
537 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
538 |
msgid "Load More"
|
539 |
msgstr ""
|
540 |
|
541 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
542 |
msgid "Infinite"
|
543 |
msgstr ""
|
544 |
|
545 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
546 |
msgid "Note: you will see the \"Load More\" pagination in the preview. \"Infinite\" pagination will be visible on the site."
|
547 |
msgstr ""
|
548 |
|
549 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
550 |
msgid "Texts"
|
551 |
msgstr ""
|
552 |
|
553 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
554 |
msgid "Load more"
|
555 |
msgstr ""
|
556 |
|
557 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
558 |
msgid "Load more button label"
|
559 |
msgstr ""
|
560 |
|
561 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
562 |
msgid "Loading more..."
|
563 |
msgstr ""
|
564 |
|
565 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
566 |
msgid "Loading more button label"
|
567 |
msgstr ""
|
568 |
|
569 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
570 |
msgid "You’ve reached the end of the list"
|
571 |
msgstr ""
|
572 |
|
573 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
574 |
msgid "End of the list text"
|
575 |
msgstr ""
|
576 |
|
577 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
578 |
msgid "Show numbers"
|
579 |
msgstr ""
|
580 |
|
581 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
582 |
msgid "Data source"
|
583 |
msgstr ""
|
584 |
|
585 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
586 |
msgid "Specific posts"
|
587 |
msgstr ""
|
588 |
|
589 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
590 |
msgid "Excluded posts"
|
591 |
msgstr ""
|
592 |
|
593 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
594 |
msgid "Custom query"
|
595 |
msgstr ""
|
596 |
|
597 |
#. translators: %1$s - escaped url.
|
598 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
599 |
msgid "Build custom query according to <a href=\"%1$s\">WordPress Codex</a>."
|
600 |
msgstr ""
|
601 |
|
602 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
603 |
msgid "Taxonomies"
|
604 |
msgstr ""
|
605 |
|
606 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
607 |
msgid "Taxonomies relation"
|
608 |
msgstr ""
|
609 |
|
610 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
611 |
msgid "OR"
|
612 |
msgstr ""
|
613 |
|
614 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
615 |
msgid "AND"
|
616 |
msgstr ""
|
617 |
|
618 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
619 |
msgid "Order by"
|
620 |
msgstr ""
|
621 |
|
622 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
623 |
msgid "Date"
|
624 |
msgstr ""
|
625 |
|
626 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
627 |
msgid "ID"
|
628 |
msgstr ""
|
629 |
|
630 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
631 |
msgid "Menu Order"
|
632 |
msgstr ""
|
633 |
|
634 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
635 |
msgid "Random"
|
636 |
msgstr ""
|
637 |
|
638 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
639 |
msgid "Order direction"
|
640 |
msgstr ""
|
641 |
|
642 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
643 |
msgid "DESC"
|
644 |
msgstr ""
|
645 |
|
646 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
647 |
msgid "ASC"
|
648 |
msgstr ""
|
649 |
|
650 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
651 |
msgid "Uploaded"
|
652 |
msgstr ""
|
653 |
|
654 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
655 |
msgid "Name & Shortcode"
|
656 |
msgstr ""
|
657 |
|
658 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
659 |
msgid "Layout"
|
660 |
msgstr ""
|
661 |
|
662 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
663 |
msgid "Items Style"
|
664 |
msgstr ""
|
665 |
|
666 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
667 |
msgid "Items Click Action"
|
668 |
msgstr ""
|
669 |
|
670 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
671 |
msgid "Filter"
|
672 |
msgstr ""
|
673 |
|
674 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
675 |
msgid "Sort"
|
676 |
msgstr ""
|
677 |
|
678 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
679 |
msgid "Pagination"
|
680 |
msgstr ""
|
681 |
|
682 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
683 |
msgid "Preview"
|
684 |
msgstr ""
|
685 |
|
686 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
687 |
msgid "Content Source"
|
688 |
msgstr ""
|
689 |
|
690 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
691 |
msgid "Custom CSS"
|
692 |
msgstr ""
|
693 |
|
694 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
695 |
msgid "Name"
|
696 |
msgstr ""
|
697 |
|
698 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
699 |
msgid "Place the shortcode where you want to show the portfolio list."
|
700 |
msgstr ""
|
701 |
|
702 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
703 |
msgid "Filter Shortcode"
|
704 |
msgstr ""
|
705 |
|
706 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
707 |
msgid "Place the shortcode where you want to show the filter."
|
708 |
msgstr ""
|
709 |
|
710 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
711 |
msgid "Portfolio"
|
712 |
msgstr ""
|
713 |
|
714 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
715 |
msgid "Post-Based"
|
716 |
msgstr ""
|
717 |
|
718 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
719 |
msgid "Images"
|
720 |
msgstr ""
|
721 |
|
722 |
#. translators: %1$s - escaped url.
|
723 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
724 |
msgid "Portfolio items list from <a href=\"%1$s\" target=\"_blank\">%2$s</a>"
|
725 |
msgstr ""
|
726 |
|
727 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
728 |
msgid "Available classes:"
|
729 |
msgstr ""
|
730 |
|
731 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
732 |
msgid " - use this classname for each styles you added. It is the main Visual Portfolio wrapper."
|
733 |
msgstr ""
|
734 |
|
735 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
736 |
msgid " - items wrapper."
|
737 |
msgstr ""
|
738 |
|
739 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
740 |
msgid " - single item wrapper."
|
741 |
msgstr ""
|
742 |
|
743 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
744 |
msgid " - filter wrapper."
|
745 |
msgstr ""
|
746 |
|
747 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
748 |
msgid " - pagination wrapper."
|
749 |
msgstr ""
|
750 |
|
751 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
752 |
msgid "Specific Posts"
|
753 |
msgstr ""
|
754 |
|
755 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
756 |
msgid "Custom Query"
|
757 |
msgstr ""
|
758 |
|
53 |
msgid "Portfolio Item"
|
54 |
msgstr ""
|
55 |
|
56 |
+
#: dist/visual-portfolio/classes/class-admin.php:212, dist/visual-portfolio/classes/class-admin.php:301, dist/visual-portfolio/classes/class-admin.php:707, dist/visual-portfolio/classes/class-vc.php:65
|
57 |
msgid "Visual Portfolio"
|
58 |
msgstr ""
|
59 |
|
60 |
+
#: dist/visual-portfolio/classes/class-admin.php:213, dist/visual-portfolio/classes/class-admin.php:302
|
61 |
msgid "Parent Portfolio Item"
|
62 |
msgstr ""
|
63 |
|
73 |
msgid "Add New Portfolio Item"
|
74 |
msgstr ""
|
75 |
|
76 |
+
#: dist/visual-portfolio/classes/class-admin.php:217, dist/visual-portfolio/classes/class-admin.php:306
|
77 |
msgid "Add New"
|
78 |
msgstr ""
|
79 |
|
89 |
msgid "Search Portfolio Item"
|
90 |
msgstr ""
|
91 |
|
92 |
+
#: dist/visual-portfolio/classes/class-admin.php:221, dist/visual-portfolio/classes/class-admin.php:310
|
93 |
msgid "Not Found"
|
94 |
msgstr ""
|
95 |
|
96 |
+
#: dist/visual-portfolio/classes/class-admin.php:222, dist/visual-portfolio/classes/class-admin.php:311
|
97 |
msgid "Not found in Trash"
|
98 |
msgstr ""
|
99 |
|
105 |
msgid "Categories"
|
106 |
msgstr ""
|
107 |
|
108 |
+
#: dist/visual-portfolio/classes/class-admin.php:277
|
109 |
msgid "Portfolio Tags"
|
110 |
msgstr ""
|
111 |
|
112 |
+
#: dist/visual-portfolio/classes/class-admin.php:279
|
113 |
msgid "Tags"
|
114 |
msgstr ""
|
115 |
|
116 |
+
#: dist/visual-portfolio/classes/class-admin.php:299
|
117 |
msgctxt "Post Type General Name"
|
118 |
msgid "Portfolio Layouts"
|
119 |
msgstr ""
|
120 |
|
121 |
+
#: dist/visual-portfolio/classes/class-admin.php:300
|
122 |
msgctxt "Post Type Singular Name"
|
123 |
msgid "Portfolio Layout"
|
124 |
msgstr ""
|
125 |
|
126 |
+
#: dist/visual-portfolio/classes/class-admin.php:303
|
127 |
msgid "Portfolio Layouts"
|
128 |
msgstr ""
|
129 |
|
130 |
+
#: dist/visual-portfolio/classes/class-admin.php:304
|
131 |
msgid "View Portfolio Layout"
|
132 |
msgstr ""
|
133 |
|
134 |
+
#: dist/visual-portfolio/classes/class-admin.php:305
|
135 |
msgid "Add New Portfolio Layout"
|
136 |
msgstr ""
|
137 |
|
138 |
+
#: dist/visual-portfolio/classes/class-admin.php:307
|
139 |
msgid "Edit Portfolio Layout"
|
140 |
msgstr ""
|
141 |
|
142 |
+
#: dist/visual-portfolio/classes/class-admin.php:308
|
143 |
msgid "Update Portfolio Layout"
|
144 |
msgstr ""
|
145 |
|
146 |
+
#: dist/visual-portfolio/classes/class-admin.php:309
|
147 |
msgid "Search Portfolio Layout"
|
148 |
msgstr ""
|
149 |
|
150 |
#. translators: %s - taxonomy name.
|
151 |
+
#: dist/visual-portfolio/classes/class-admin.php:356
|
152 |
msgid "Show All %s"
|
153 |
msgstr ""
|
154 |
|
155 |
+
#: dist/visual-portfolio/classes/class-admin.php:396, dist/visual-portfolio/classes/class-controls.php:608
|
156 |
msgid "Video"
|
157 |
msgstr ""
|
158 |
|
159 |
+
#: dist/visual-portfolio/classes/class-admin.php:436
|
160 |
msgid "https://"
|
161 |
msgstr ""
|
162 |
|
163 |
+
#: dist/visual-portfolio/classes/class-admin.php:507
|
164 |
msgid "Portfolio Manager"
|
165 |
msgstr ""
|
166 |
|
167 |
+
#: dist/visual-portfolio/classes/class-admin.php:512
|
168 |
msgid "Portfolio Author"
|
169 |
msgstr ""
|
170 |
|
171 |
+
#: dist/visual-portfolio/classes/class-admin.php:594
|
172 |
msgid "Ready to add your awesome portfolio?"
|
173 |
msgstr ""
|
174 |
|
175 |
+
#: dist/visual-portfolio/classes/class-admin.php:595
|
176 |
msgid "Create your first portfolio list!"
|
177 |
msgstr ""
|
178 |
|
179 |
+
#: dist/visual-portfolio/classes/class-admin.php:634
|
180 |
msgid "Thumbnail"
|
181 |
msgstr ""
|
182 |
|
183 |
+
#: dist/visual-portfolio/classes/class-admin.php:667, dist/visual-portfolio/classes/class-admin.php:2824
|
184 |
msgid "Shortcode"
|
185 |
msgstr ""
|
186 |
|
187 |
+
#: dist/visual-portfolio/classes/class-admin.php:760, dist/visual-portfolio/classes/class-admin.php:761
|
188 |
msgid "Documentation"
|
189 |
msgstr ""
|
190 |
|
191 |
+
#: dist/visual-portfolio/classes/class-admin.php:779
|
192 |
msgid "Tiles"
|
193 |
msgstr ""
|
194 |
|
195 |
+
#: dist/visual-portfolio/classes/class-admin.php:794, dist/visual-portfolio/classes/class-admin.php:2107
|
196 |
msgid "Type"
|
197 |
msgstr ""
|
198 |
|
199 |
+
#: dist/visual-portfolio/classes/class-admin.php:795
|
200 |
msgid "Select tiles type"
|
201 |
msgstr ""
|
202 |
|
203 |
+
#: dist/visual-portfolio/classes/class-admin.php:914
|
204 |
msgid "Masonry"
|
205 |
msgstr ""
|
206 |
|
207 |
+
#: dist/visual-portfolio/classes/class-admin.php:918, dist/visual-portfolio/classes/class-admin.php:933
|
208 |
msgid "Columns"
|
209 |
msgstr ""
|
210 |
|
211 |
+
#: dist/visual-portfolio/classes/class-admin.php:929
|
212 |
msgid "Grid"
|
213 |
msgstr ""
|
214 |
|
215 |
+
#: dist/visual-portfolio/classes/class-admin.php:944
|
216 |
msgid "Justified"
|
217 |
msgstr ""
|
218 |
|
219 |
+
#: dist/visual-portfolio/classes/class-admin.php:948
|
220 |
msgid "Row height"
|
221 |
msgstr ""
|
222 |
|
223 |
+
#: dist/visual-portfolio/classes/class-admin.php:956
|
224 |
msgid "Row height tolerance"
|
225 |
msgstr ""
|
226 |
|
227 |
+
#: dist/visual-portfolio/classes/class-admin.php:968
|
228 |
msgid "Slider"
|
229 |
msgstr ""
|
230 |
|
231 |
+
#: dist/visual-portfolio/classes/class-admin.php:972
|
232 |
msgid "Effect"
|
233 |
msgstr ""
|
234 |
|
235 |
+
#: dist/visual-portfolio/classes/class-admin.php:976
|
236 |
msgid "Slide"
|
237 |
msgstr ""
|
238 |
|
239 |
+
#: dist/visual-portfolio/classes/class-admin.php:977
|
240 |
msgid "Coverflow"
|
241 |
msgstr ""
|
242 |
|
243 |
+
#: dist/visual-portfolio/classes/class-admin.php:978, dist/visual-portfolio/classes/class-admin.php:1501
|
244 |
msgid "Fade"
|
245 |
msgstr ""
|
246 |
|
247 |
+
#: dist/visual-portfolio/classes/class-admin.php:983
|
248 |
msgid "Speed (seconds)"
|
249 |
msgstr ""
|
250 |
|
251 |
+
#: dist/visual-portfolio/classes/class-admin.php:992
|
252 |
msgid "Autoplay (seconds)"
|
253 |
msgstr ""
|
254 |
|
255 |
+
#: dist/visual-portfolio/classes/class-admin.php:1001
|
256 |
msgid "Pause on Mouse Over"
|
257 |
msgstr ""
|
258 |
|
259 |
+
#: dist/visual-portfolio/classes/class-admin.php:1014
|
260 |
msgid "Items height"
|
261 |
msgstr ""
|
262 |
|
263 |
+
#: dist/visual-portfolio/classes/class-admin.php:1018, dist/visual-portfolio/classes/class-admin.php:1057, dist/visual-portfolio/classes/class-admin.php:1203, dist/visual-portfolio/classes/class-admin.php:1253
|
264 |
msgid "Auto"
|
265 |
msgstr ""
|
266 |
|
267 |
+
#: dist/visual-portfolio/classes/class-admin.php:1019, dist/visual-portfolio/classes/class-admin.php:1204
|
268 |
msgid "Static (px)"
|
269 |
msgstr ""
|
270 |
|
271 |
+
#: dist/visual-portfolio/classes/class-admin.php:1020, dist/visual-portfolio/classes/class-admin.php:1205
|
272 |
msgid "Dynamic (%)"
|
273 |
msgstr ""
|
274 |
|
275 |
+
#: dist/visual-portfolio/classes/class-admin.php:1053
|
276 |
msgid "Slides per view"
|
277 |
msgstr ""
|
278 |
|
279 |
+
#: dist/visual-portfolio/classes/class-admin.php:1058, dist/visual-portfolio/classes/class-admin.php:1254
|
280 |
msgid "Custom"
|
281 |
msgstr ""
|
282 |
|
283 |
+
#: dist/visual-portfolio/classes/class-admin.php:1089
|
284 |
msgid "Centered slides"
|
285 |
msgstr ""
|
286 |
|
287 |
+
#: dist/visual-portfolio/classes/class-admin.php:1102
|
288 |
msgid "Loop"
|
289 |
msgstr ""
|
290 |
|
291 |
+
#: dist/visual-portfolio/classes/class-admin.php:1108
|
292 |
msgid "Free scroll"
|
293 |
msgstr ""
|
294 |
|
295 |
+
#: dist/visual-portfolio/classes/class-admin.php:1114
|
296 |
msgid "Free scroll Sticky"
|
297 |
msgstr ""
|
298 |
|
299 |
+
#: dist/visual-portfolio/classes/class-admin.php:1125, dist/visual-portfolio/classes/class-admin.php:2353, dist/visual-portfolio/classes/class-settings.php:146
|
300 |
msgid "Show arrows"
|
301 |
msgstr ""
|
302 |
|
303 |
+
#: dist/visual-portfolio/classes/class-admin.php:1133, dist/visual-portfolio/classes/class-admin.php:1134, dist/visual-portfolio/classes/class-admin.php:2375, dist/visual-portfolio/classes/class-admin.php:2376
|
304 |
msgid "Prev arrow icon"
|
305 |
msgstr ""
|
306 |
|
307 |
+
#: dist/visual-portfolio/classes/class-admin.php:1146, dist/visual-portfolio/classes/class-admin.php:1147, dist/visual-portfolio/classes/class-admin.php:2400, dist/visual-portfolio/classes/class-admin.php:2401
|
308 |
msgid "Next arrow icon"
|
309 |
msgstr ""
|
310 |
|
311 |
+
#: dist/visual-portfolio/classes/class-admin.php:1157
|
312 |
msgid "Show bullets"
|
313 |
msgstr ""
|
314 |
|
315 |
+
#: dist/visual-portfolio/classes/class-admin.php:1163
|
316 |
msgid "Dynamic bullets"
|
317 |
msgstr ""
|
318 |
|
319 |
+
#: dist/visual-portfolio/classes/class-admin.php:1174
|
320 |
msgid "Mousewheel Control"
|
321 |
msgstr ""
|
322 |
|
323 |
+
#: dist/visual-portfolio/classes/class-admin.php:1180
|
324 |
msgid "Show thumbnails"
|
325 |
msgstr ""
|
326 |
|
327 |
+
#: dist/visual-portfolio/classes/class-admin.php:1186
|
328 |
msgid "Thumbnails gap"
|
329 |
msgstr ""
|
330 |
|
331 |
+
#: dist/visual-portfolio/classes/class-admin.php:1199
|
332 |
msgid "Thumbnails height"
|
333 |
msgstr ""
|
334 |
|
335 |
+
#: dist/visual-portfolio/classes/class-admin.php:1249
|
336 |
msgid "Thumbnails per view"
|
337 |
msgstr ""
|
338 |
|
339 |
+
#: dist/visual-portfolio/classes/class-admin.php:1340
|
340 |
msgid "Gap"
|
341 |
msgstr ""
|
342 |
|
343 |
+
#: dist/visual-portfolio/classes/class-admin.php:1352
|
344 |
msgid "Items per page"
|
345 |
msgstr ""
|
346 |
|
347 |
+
#: dist/visual-portfolio/classes/class-admin.php:1364
|
348 |
msgid "Stretch"
|
349 |
msgstr ""
|
350 |
|
351 |
+
#: dist/visual-portfolio/classes/class-admin.php:1367
|
352 |
msgid "Break container and display it wide"
|
353 |
msgstr ""
|
354 |
|
355 |
+
#: dist/visual-portfolio/classes/class-admin.php:1378, dist/visual-portfolio/classes/class-admin.php:1752, dist/visual-portfolio/classes/class-admin.php:1818, dist/visual-portfolio/classes/class-admin.php:1948, dist/visual-portfolio/classes/class-admin.php:2046, dist/visual-portfolio/classes/class-admin.php:2687
|
356 |
msgid "Default"
|
357 |
msgstr ""
|
358 |
|
359 |
+
#: dist/visual-portfolio/classes/class-admin.php:1390
|
360 |
msgid "Show Read more button"
|
361 |
msgstr ""
|
362 |
|
363 |
+
#: dist/visual-portfolio/classes/class-admin.php:1394, dist/visual-portfolio/classes/class-admin.php:1608
|
364 |
msgid "False"
|
365 |
msgstr ""
|
366 |
|
367 |
+
#: dist/visual-portfolio/classes/class-admin.php:1395
|
368 |
msgid "Always show"
|
369 |
msgstr ""
|
370 |
|
371 |
+
#: dist/visual-portfolio/classes/class-admin.php:1396
|
372 |
msgid "Show when used \"More tag\" in the post"
|
373 |
msgstr ""
|
374 |
|
375 |
+
#: dist/visual-portfolio/classes/class-admin.php:1404
|
376 |
msgid "Read more button label"
|
377 |
msgstr ""
|
378 |
|
379 |
+
#: dist/visual-portfolio/classes/class-admin.php:1419
|
380 |
msgid "Fly"
|
381 |
msgstr ""
|
382 |
|
383 |
+
#: dist/visual-portfolio/classes/class-admin.php:1431, dist/visual-portfolio/classes/class-admin.php:1472, dist/visual-portfolio/classes/class-admin.php:1513
|
384 |
msgid "Overlay background color"
|
385 |
msgstr ""
|
386 |
|
387 |
+
#: dist/visual-portfolio/classes/class-admin.php:1444, dist/visual-portfolio/classes/class-admin.php:1485, dist/visual-portfolio/classes/class-admin.php:1526
|
388 |
msgid "Overlay text color"
|
389 |
msgstr ""
|
390 |
|
391 |
+
#: dist/visual-portfolio/classes/class-admin.php:1460
|
392 |
msgid "Emerge"
|
393 |
msgstr ""
|
394 |
|
395 |
+
#: dist/visual-portfolio/classes/class-admin.php:1575
|
396 |
msgid "Show title"
|
397 |
msgstr ""
|
398 |
|
399 |
+
#: dist/visual-portfolio/classes/class-admin.php:1583
|
400 |
msgid "Show categories"
|
401 |
msgstr ""
|
402 |
|
403 |
+
#: dist/visual-portfolio/classes/class-admin.php:1589
|
404 |
msgid "Categories count"
|
405 |
msgstr ""
|
406 |
|
407 |
+
#: dist/visual-portfolio/classes/class-admin.php:1604
|
408 |
msgid "Show date"
|
409 |
msgstr ""
|
410 |
|
411 |
+
#: dist/visual-portfolio/classes/class-admin.php:1609
|
412 |
msgid "Show"
|
413 |
msgstr ""
|
414 |
|
415 |
+
#: dist/visual-portfolio/classes/class-admin.php:1610
|
416 |
msgid "Human Format"
|
417 |
msgstr ""
|
418 |
|
419 |
+
#: dist/visual-portfolio/classes/class-admin.php:1618
|
420 |
msgid ""
|
421 |
"Date format
|
422 |
" Example: F j, Y"
|
423 |
msgstr ""
|
424 |
|
425 |
+
#: dist/visual-portfolio/classes/class-admin.php:1630
|
426 |
msgid "Show excerpt"
|
427 |
msgstr ""
|
428 |
|
429 |
+
#: dist/visual-portfolio/classes/class-admin.php:1636
|
430 |
msgid "Excerpt words count"
|
431 |
msgstr ""
|
432 |
|
433 |
+
#: dist/visual-portfolio/classes/class-admin.php:1651
|
434 |
msgid "Show icon"
|
435 |
msgstr ""
|
436 |
|
437 |
+
#: dist/visual-portfolio/classes/class-admin.php:1659, dist/visual-portfolio/classes/class-admin.php:1660
|
438 |
msgid "Standard icon"
|
439 |
msgstr ""
|
440 |
|
441 |
+
#: dist/visual-portfolio/classes/class-admin.php:1672, dist/visual-portfolio/classes/class-admin.php:1673
|
442 |
msgid "Video icon"
|
443 |
msgstr ""
|
444 |
|
445 |
+
#: dist/visual-portfolio/classes/class-admin.php:1685
|
446 |
msgid "Caption align"
|
447 |
msgstr ""
|
448 |
|
449 |
+
#: dist/visual-portfolio/classes/class-admin.php:1738, dist/visual-portfolio/classes/class-admin.php:1812, dist/visual-portfolio/classes/class-admin.php:1942, dist/visual-portfolio/classes/class-admin.php:2040
|
450 |
msgid "Disabled"
|
451 |
msgstr ""
|
452 |
|
453 |
+
#: dist/visual-portfolio/classes/class-admin.php:1739, dist/visual-portfolio/classes/class-controls.php:625
|
454 |
msgid "URL"
|
455 |
msgstr ""
|
456 |
|
457 |
+
#: dist/visual-portfolio/classes/class-admin.php:1740, dist/visual-portfolio/classes/class-settings.php:104
|
458 |
msgid "Popup Gallery"
|
459 |
msgstr ""
|
460 |
|
461 |
+
#: dist/visual-portfolio/classes/class-admin.php:1748
|
462 |
msgid "Target"
|
463 |
msgstr ""
|
464 |
|
465 |
+
#: dist/visual-portfolio/classes/class-admin.php:1753
|
466 |
msgid "New tab (_blank)"
|
467 |
msgstr ""
|
468 |
|
469 |
+
#: dist/visual-portfolio/classes/class-admin.php:1754
|
470 |
msgid "Top frame (_top)"
|
471 |
msgstr ""
|
472 |
|
473 |
+
#: dist/visual-portfolio/classes/class-admin.php:1768, dist/visual-portfolio/classes/class-admin.php:2634, dist/visual-portfolio/classes/class-admin.php:2689, dist/visual-portfolio/classes/class-controls.php:586
|
474 |
msgid "Title"
|
475 |
msgstr ""
|
476 |
|
477 |
+
#: dist/visual-portfolio/classes/class-admin.php:1772, dist/visual-portfolio/classes/class-admin.php:1792
|
478 |
msgid "None"
|
479 |
msgstr ""
|
480 |
|
481 |
+
#: dist/visual-portfolio/classes/class-admin.php:1773, dist/visual-portfolio/classes/class-admin.php:1793
|
482 |
msgid "Image Title"
|
483 |
msgstr ""
|
484 |
|
485 |
+
#: dist/visual-portfolio/classes/class-admin.php:1774, dist/visual-portfolio/classes/class-admin.php:1794
|
486 |
msgid "Image Caption"
|
487 |
msgstr ""
|
488 |
|
489 |
+
#: dist/visual-portfolio/classes/class-admin.php:1775, dist/visual-portfolio/classes/class-admin.php:1795
|
490 |
msgid "Image Alt"
|
491 |
msgstr ""
|
492 |
|
493 |
+
#: dist/visual-portfolio/classes/class-admin.php:1776, dist/visual-portfolio/classes/class-admin.php:1796
|
494 |
msgid "Image Description"
|
495 |
msgstr ""
|
496 |
|
497 |
+
#: dist/visual-portfolio/classes/class-admin.php:1788, dist/visual-portfolio/classes/class-controls.php:591
|
498 |
msgid "Description"
|
499 |
msgstr ""
|
500 |
|
501 |
+
#: dist/visual-portfolio/classes/class-admin.php:1824, dist/visual-portfolio/classes/class-admin.php:1954
|
502 |
msgid "Dropdown"
|
503 |
msgstr ""
|
504 |
|
505 |
+
#: dist/visual-portfolio/classes/class-admin.php:1886, dist/visual-portfolio/classes/class-admin.php:2016, dist/visual-portfolio/classes/class-admin.php:2149
|
506 |
msgid "Align"
|
507 |
msgstr ""
|
508 |
|
509 |
+
#: dist/visual-portfolio/classes/class-admin.php:1890, dist/visual-portfolio/classes/class-admin.php:2020, dist/visual-portfolio/classes/class-admin.php:2153, 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
|
510 |
msgid "Center"
|
511 |
msgstr ""
|
512 |
|
513 |
+
#: dist/visual-portfolio/classes/class-admin.php:1891, dist/visual-portfolio/classes/class-admin.php:2021, dist/visual-portfolio/classes/class-admin.php:2154, dist/visual-portfolio/classes/class-controls.php:538, dist/visual-portfolio/classes/class-controls.php:551, dist/visual-portfolio/classes/class-controls.php:564
|
514 |
msgid "Left"
|
515 |
msgstr ""
|
516 |
|
517 |
+
#: dist/visual-portfolio/classes/class-admin.php:1892, dist/visual-portfolio/classes/class-admin.php:2022, dist/visual-portfolio/classes/class-admin.php:2155, dist/visual-portfolio/classes/class-controls.php:541, dist/visual-portfolio/classes/class-controls.php:554, dist/visual-portfolio/classes/class-controls.php:567
|
518 |
msgid "Right"
|
519 |
msgstr ""
|
520 |
|
521 |
+
#: dist/visual-portfolio/classes/class-admin.php:1907
|
522 |
msgid "Show count"
|
523 |
msgstr ""
|
524 |
|
525 |
+
#: dist/visual-portfolio/classes/class-admin.php:1923
|
526 |
msgid "All button text"
|
527 |
msgstr ""
|
528 |
|
529 |
+
#: dist/visual-portfolio/classes/class-admin.php:1925
|
530 |
msgid "All"
|
531 |
msgstr ""
|
532 |
|
533 |
+
#: dist/visual-portfolio/classes/class-admin.php:2112
|
534 |
msgid "Paged"
|
535 |
msgstr ""
|
536 |
|
537 |
+
#: dist/visual-portfolio/classes/class-admin.php:2113
|
538 |
msgid "Load More"
|
539 |
msgstr ""
|
540 |
|
541 |
+
#: dist/visual-portfolio/classes/class-admin.php:2114
|
542 |
msgid "Infinite"
|
543 |
msgstr ""
|
544 |
|
545 |
+
#: dist/visual-portfolio/classes/class-admin.php:2129
|
546 |
msgid "Note: you will see the \"Load More\" pagination in the preview. \"Infinite\" pagination will be visible on the site."
|
547 |
msgstr ""
|
548 |
|
549 |
+
#: dist/visual-portfolio/classes/class-admin.php:2175, dist/visual-portfolio/classes/class-admin.php:2195
|
550 |
msgid "Texts"
|
551 |
msgstr ""
|
552 |
|
553 |
+
#: dist/visual-portfolio/classes/class-admin.php:2216, dist/visual-portfolio/classes/class-admin.php:2285
|
554 |
msgid "Load more"
|
555 |
msgstr ""
|
556 |
|
557 |
+
#: dist/visual-portfolio/classes/class-admin.php:2217, dist/visual-portfolio/classes/class-admin.php:2218, dist/visual-portfolio/classes/class-admin.php:2286, dist/visual-portfolio/classes/class-admin.php:2287
|
558 |
msgid "Load more button label"
|
559 |
msgstr ""
|
560 |
|
561 |
+
#: dist/visual-portfolio/classes/class-admin.php:2239, dist/visual-portfolio/classes/class-admin.php:2308
|
562 |
msgid "Loading more..."
|
563 |
msgstr ""
|
564 |
|
565 |
+
#: dist/visual-portfolio/classes/class-admin.php:2240, dist/visual-portfolio/classes/class-admin.php:2241, dist/visual-portfolio/classes/class-admin.php:2309, dist/visual-portfolio/classes/class-admin.php:2310
|
566 |
msgid "Loading more button label"
|
567 |
msgstr ""
|
568 |
|
569 |
+
#: dist/visual-portfolio/classes/class-admin.php:2262, dist/visual-portfolio/classes/class-admin.php:2331
|
570 |
msgid "You’ve reached the end of the list"
|
571 |
msgstr ""
|
572 |
|
573 |
+
#: dist/visual-portfolio/classes/class-admin.php:2263, dist/visual-portfolio/classes/class-admin.php:2264, dist/visual-portfolio/classes/class-admin.php:2332, dist/visual-portfolio/classes/class-admin.php:2333
|
574 |
msgid "End of the list text"
|
575 |
msgstr ""
|
576 |
|
577 |
+
#: dist/visual-portfolio/classes/class-admin.php:2423
|
578 |
msgid "Show numbers"
|
579 |
msgstr ""
|
580 |
|
581 |
+
#: dist/visual-portfolio/classes/class-admin.php:2487
|
582 |
msgid "Data source"
|
583 |
msgstr ""
|
584 |
|
585 |
+
#: dist/visual-portfolio/classes/class-admin.php:2499
|
586 |
msgid "Specific posts"
|
587 |
msgstr ""
|
588 |
|
589 |
+
#: dist/visual-portfolio/classes/class-admin.php:2520
|
590 |
msgid "Excluded posts"
|
591 |
msgstr ""
|
592 |
|
593 |
+
#: dist/visual-portfolio/classes/class-admin.php:2548
|
594 |
msgid "Custom query"
|
595 |
msgstr ""
|
596 |
|
597 |
#. translators: %1$s - escaped url.
|
598 |
+
#: dist/visual-portfolio/classes/class-admin.php:2550
|
599 |
msgid "Build custom query according to <a href=\"%1$s\">WordPress Codex</a>."
|
600 |
msgstr ""
|
601 |
|
602 |
+
#: dist/visual-portfolio/classes/class-admin.php:2576
|
603 |
msgid "Taxonomies"
|
604 |
msgstr ""
|
605 |
|
606 |
+
#: dist/visual-portfolio/classes/class-admin.php:2603
|
607 |
msgid "Taxonomies relation"
|
608 |
msgstr ""
|
609 |
|
610 |
+
#: dist/visual-portfolio/classes/class-admin.php:2607
|
611 |
msgid "OR"
|
612 |
msgstr ""
|
613 |
|
614 |
+
#: dist/visual-portfolio/classes/class-admin.php:2608
|
615 |
msgid "AND"
|
616 |
msgstr ""
|
617 |
|
618 |
+
#: dist/visual-portfolio/classes/class-admin.php:2629, dist/visual-portfolio/classes/class-admin.php:2683
|
619 |
msgid "Order by"
|
620 |
msgstr ""
|
621 |
|
622 |
+
#: dist/visual-portfolio/classes/class-admin.php:2633
|
623 |
msgid "Date"
|
624 |
msgstr ""
|
625 |
|
626 |
+
#: dist/visual-portfolio/classes/class-admin.php:2635
|
627 |
msgid "ID"
|
628 |
msgstr ""
|
629 |
|
630 |
+
#: dist/visual-portfolio/classes/class-admin.php:2636
|
631 |
msgid "Menu Order"
|
632 |
msgstr ""
|
633 |
|
634 |
+
#: dist/visual-portfolio/classes/class-admin.php:2637, dist/visual-portfolio/classes/class-admin.php:2690
|
635 |
msgid "Random"
|
636 |
msgstr ""
|
637 |
|
638 |
+
#: dist/visual-portfolio/classes/class-admin.php:2646, dist/visual-portfolio/classes/class-admin.php:2699
|
639 |
msgid "Order direction"
|
640 |
msgstr ""
|
641 |
|
642 |
+
#: dist/visual-portfolio/classes/class-admin.php:2650, dist/visual-portfolio/classes/class-admin.php:2704
|
643 |
msgid "DESC"
|
644 |
msgstr ""
|
645 |
|
646 |
+
#: dist/visual-portfolio/classes/class-admin.php:2651, dist/visual-portfolio/classes/class-admin.php:2703
|
647 |
msgid "ASC"
|
648 |
msgstr ""
|
649 |
|
650 |
+
#: dist/visual-portfolio/classes/class-admin.php:2688
|
651 |
msgid "Uploaded"
|
652 |
msgstr ""
|
653 |
|
654 |
+
#: dist/visual-portfolio/classes/class-admin.php:2721
|
655 |
msgid "Name & Shortcode"
|
656 |
msgstr ""
|
657 |
|
658 |
+
#: dist/visual-portfolio/classes/class-admin.php:2729
|
659 |
msgid "Layout"
|
660 |
msgstr ""
|
661 |
|
662 |
+
#: dist/visual-portfolio/classes/class-admin.php:2737
|
663 |
msgid "Items Style"
|
664 |
msgstr ""
|
665 |
|
666 |
+
#: dist/visual-portfolio/classes/class-admin.php:2745
|
667 |
msgid "Items Click Action"
|
668 |
msgstr ""
|
669 |
|
670 |
+
#: dist/visual-portfolio/classes/class-admin.php:2753
|
671 |
msgid "Filter"
|
672 |
msgstr ""
|
673 |
|
674 |
+
#: dist/visual-portfolio/classes/class-admin.php:2761
|
675 |
msgid "Sort"
|
676 |
msgstr ""
|
677 |
|
678 |
+
#: dist/visual-portfolio/classes/class-admin.php:2769
|
679 |
msgid "Pagination"
|
680 |
msgstr ""
|
681 |
|
682 |
+
#: dist/visual-portfolio/classes/class-admin.php:2778
|
683 |
msgid "Preview"
|
684 |
msgstr ""
|
685 |
|
686 |
+
#: dist/visual-portfolio/classes/class-admin.php:2786
|
687 |
msgid "Content Source"
|
688 |
msgstr ""
|
689 |
|
690 |
+
#: dist/visual-portfolio/classes/class-admin.php:2794
|
691 |
msgid "Custom CSS"
|
692 |
msgstr ""
|
693 |
|
694 |
+
#: dist/visual-portfolio/classes/class-admin.php:2815
|
695 |
msgid "Name"
|
696 |
msgstr ""
|
697 |
|
698 |
+
#: dist/visual-portfolio/classes/class-admin.php:2825
|
699 |
msgid "Place the shortcode where you want to show the portfolio list."
|
700 |
msgstr ""
|
701 |
|
702 |
+
#: dist/visual-portfolio/classes/class-admin.php:2891
|
703 |
msgid "Filter Shortcode"
|
704 |
msgstr ""
|
705 |
|
706 |
+
#: dist/visual-portfolio/classes/class-admin.php:2892
|
707 |
msgid "Place the shortcode where you want to show the filter."
|
708 |
msgstr ""
|
709 |
|
710 |
+
#: dist/visual-portfolio/classes/class-admin.php:2968
|
711 |
msgid "Portfolio"
|
712 |
msgstr ""
|
713 |
|
714 |
+
#: dist/visual-portfolio/classes/class-admin.php:2974
|
715 |
msgid "Post-Based"
|
716 |
msgstr ""
|
717 |
|
718 |
+
#: dist/visual-portfolio/classes/class-admin.php:2980
|
719 |
msgid "Images"
|
720 |
msgstr ""
|
721 |
|
722 |
#. translators: %1$s - escaped url.
|
723 |
+
#: dist/visual-portfolio/classes/class-admin.php:2999
|
724 |
msgid "Portfolio items list from <a href=\"%1$s\" target=\"_blank\">%2$s</a>"
|
725 |
msgstr ""
|
726 |
|
727 |
+
#: dist/visual-portfolio/classes/class-admin.php:3037
|
728 |
msgid "Available classes:"
|
729 |
msgstr ""
|
730 |
|
731 |
+
#: dist/visual-portfolio/classes/class-admin.php:3040
|
732 |
msgid " - use this classname for each styles you added. It is the main Visual Portfolio wrapper."
|
733 |
msgstr ""
|
734 |
|
735 |
+
#: dist/visual-portfolio/classes/class-admin.php:3041
|
736 |
msgid " - items wrapper."
|
737 |
msgstr ""
|
738 |
|
739 |
+
#: dist/visual-portfolio/classes/class-admin.php:3042
|
740 |
msgid " - single item wrapper."
|
741 |
msgstr ""
|
742 |
|
743 |
+
#: dist/visual-portfolio/classes/class-admin.php:3043
|
744 |
msgid " - filter wrapper."
|
745 |
msgstr ""
|
746 |
|
747 |
+
#: dist/visual-portfolio/classes/class-admin.php:3044
|
748 |
msgid " - pagination wrapper."
|
749 |
msgstr ""
|
750 |
|
751 |
+
#: dist/visual-portfolio/classes/class-admin.php:3106
|
752 |
msgid "Specific Posts"
|
753 |
msgstr ""
|
754 |
|
755 |
+
#: dist/visual-portfolio/classes/class-admin.php:3107
|
756 |
msgid "Custom Query"
|
757 |
msgstr ""
|
758 |
|
readme.md
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* Requires at least: 4.0.0
|
6 |
* Tested up to: 5.2
|
7 |
* Requires PHP: 5.4
|
8 |
-
* Stable tag: 1.
|
9 |
* License: GPLv2 or later
|
10 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -122,6 +122,14 @@ The manual installation method involves downloading our Visual Portfolio plugin
|
|
122 |
|
123 |
## Changelog ##
|
124 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
125 |
= 1.11.1 =
|
126 |
|
127 |
* fixed FireFox image blinking in Fade effect
|
5 |
* Requires at least: 4.0.0
|
6 |
* Tested up to: 5.2
|
7 |
* Requires PHP: 5.4
|
8 |
+
* Stable tag: 1.12.0
|
9 |
* License: GPLv2 or later
|
10 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
122 |
|
123 |
## Changelog ##
|
124 |
|
125 |
+
= 1.12.0 =
|
126 |
+
|
127 |
+
* changed video oembed loading method
|
128 |
+
* no more php oembed since it may be too heavy to load pages (used JS instead)
|
129 |
+
* no more video thumbnail loading if no featured image specified in post
|
130 |
+
* fixed portfolio categories and tags capabilities
|
131 |
+
* fixed <a> tag in fly and fade effect when all meta disabled
|
132 |
+
|
133 |
= 1.11.1 =
|
134 |
|
135 |
* fixed FireFox image blinking in Fade effect
|
templates/items-list/items-style/fade/meta.php
CHANGED
@@ -25,19 +25,20 @@ $show_meta = $opts['show_icon'] && $opts['icon'] ||
|
|
25 |
?>
|
26 |
|
27 |
<figcaption class="vp-portfolio__item-overlay vp-portfolio__item-align-<?php echo esc_attr( $opts['align'] ); ?>">
|
28 |
-
|
29 |
-
|
30 |
-
<?php
|
31 |
-
|
32 |
-
|
33 |
-
if ( isset( $args['url_target'] ) && $args['url_target'] ) :
|
34 |
-
?>
|
35 |
-
target="<?php echo esc_attr( $args['url_target'] ); ?>"
|
36 |
-
<?php
|
37 |
-
endif;
|
38 |
?>
|
39 |
-
|
40 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
41 |
<?php
|
42 |
|
43 |
// Show Icon.
|
@@ -100,6 +101,6 @@ $show_meta = $opts['show_icon'] && $opts['icon'] ||
|
|
100 |
<?php
|
101 |
}
|
102 |
?>
|
103 |
-
|
104 |
-
|
105 |
</figcaption>
|
25 |
?>
|
26 |
|
27 |
<figcaption class="vp-portfolio__item-overlay vp-portfolio__item-align-<?php echo esc_attr( $opts['align'] ); ?>">
|
28 |
+
<<?php echo esc_html( $tag ); ?>
|
29 |
+
<?php if ( $args['url'] ) : ?>
|
30 |
+
href="<?php echo esc_url( $args['url'] ); ?>"
|
31 |
+
<?php
|
32 |
+
if ( isset( $args['url_target'] ) && $args['url_target'] ) :
|
|
|
|
|
|
|
|
|
|
|
33 |
?>
|
34 |
+
target="<?php echo esc_attr( $args['url_target'] ); ?>"
|
35 |
+
<?php
|
36 |
+
endif;
|
37 |
+
?>
|
38 |
+
<?php endif; ?>
|
39 |
+
class="vp-portfolio__item-meta">
|
40 |
+
|
41 |
+
<?php if ( $show_meta ) : ?>
|
42 |
<?php
|
43 |
|
44 |
// Show Icon.
|
101 |
<?php
|
102 |
}
|
103 |
?>
|
104 |
+
<?php endif; ?>
|
105 |
+
</<?php echo esc_html( $tag ); ?>>
|
106 |
</figcaption>
|
templates/items-list/items-style/fade/style.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.vp-portfolio__items-style-fade .vp-portfolio__item a{outline:none;box-shadow:none}.vp-portfolio__items-style-fade .vp-portfolio__item-overlay{position:absolute;top:0;right:0;bottom:0;left:0;
|
1 |
+
.vp-portfolio__items-style-fade .vp-portfolio__item a{outline:none;box-shadow:none}.vp-portfolio__items-style-fade .vp-portfolio__item-overlay{position:absolute;top:0;right:0;bottom:0;left:0;color:#fff;text-decoration:none;background-color:rgba(0,0,0,0.85);opacity:0;transition:opacity 1s cubic-bezier(0.07, 0.72, 0.24, 1);will-change:opacity;z-index:2}.vp-portfolio__items-style-fade figcaption.vp-portfolio__item-overlay{font-style:inherit;color:#fff}.vp-portfolio__items-style-fade .vp-portfolio__item-meta{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;height:100%;padding:20px;color:inherit;text-align:center;transition:opacity 1s cubic-bezier(0.07, 0.72, 0.24, 1),-webkit-transform 1s cubic-bezier(0.07, 0.72, 0.24, 1);transition:transform 1s cubic-bezier(0.07, 0.72, 0.24, 1),opacity 1s cubic-bezier(0.07, 0.72, 0.24, 1);transition:transform 1s cubic-bezier(0.07, 0.72, 0.24, 1),opacity 1s cubic-bezier(0.07, 0.72, 0.24, 1),-webkit-transform 1s cubic-bezier(0.07, 0.72, 0.24, 1);-webkit-transform:scale(0.8);transform:scale(0.8);will-change:transform, opacity}.vp-portfolio__items-style-fade .vp-portfolio__item-meta>*{max-width:100%}.vp-portfolio__items-style-fade .vp-portfolio__item-meta>*+*{margin-top:4px}.vp-portfolio__items-style-fade .vp-portfolio__item-meta-title{margin-bottom:0;font-size:1.3em;color:inherit}.vp-portfolio__items-style-fade .vp-portfolio__item-meta-date{font-size:.85em}.vp-portfolio__items-style-fade .vp-portfolio__item-meta-icon{font-size:2em}.vp-portfolio__items-style-fade .vp-portfolio__item-meta-icon+*{margin-top:15px}.vp-portfolio__items-style-fade .vp-portfolio__item-meta-categories{position:absolute;display:flex;flex-wrap:wrap;bottom:0;left:0;padding:0;margin:0 -5px;list-style-type:none}.vp-portfolio__items-style-fade .vp-portfolio__item-meta-categories .vp-portfolio__item-meta-category{display:block;padding:4px 15px;margin:0 5px;color:#fff;background-color:#3c3c3c}.vp-portfolio__items-style-fade .vp-portfolio__item-meta-excerpt{opacity:.8}.vp-portfolio__items-style-fade .vp-portfolio__item-img img{transition:opacity 0.3s,-webkit-transform 2s cubic-bezier(0.08, 0.43, 0.24, 1);transition:transform 2s cubic-bezier(0.08, 0.43, 0.24, 1),opacity 0.3s;transition:transform 2s cubic-bezier(0.08, 0.43, 0.24, 1),opacity 0.3s,-webkit-transform 2s cubic-bezier(0.08, 0.43, 0.24, 1);will-change:transform, opacity;z-index:1}.vp-portfolio__items-style-fade .vp-portfolio__item:hover .vp-portfolio__item-overlay{opacity:1}.vp-portfolio__items-style-fade .vp-portfolio__item:hover .vp-portfolio__item-meta{-webkit-transform:scale(1);transform:scale(1)}.vp-portfolio__items-style-fade .vp-portfolio__item:hover .vp-portfolio__item-img img{-webkit-transform:scale(1.1);transform:scale(1.1)}.vp-portfolio__items-style-fade .vp-portfolio__item-align-center .vp-portfolio__item-meta{align-items:center;text-align:center}.vp-portfolio__items-style-fade .vp-portfolio__item-align-left .vp-portfolio__item-meta{align-items:flex-start;text-align:left}.vp-portfolio__items-style-fade .vp-portfolio__item-align-right .vp-portfolio__item-meta{align-items:flex-end;text-align:right}.vp-portfolio__items-style-fade .vp-portfolio__item-align-top-center .vp-portfolio__item-meta{align-items:center;justify-content:flex-start;text-align:center}.vp-portfolio__items-style-fade .vp-portfolio__item-align-top-left .vp-portfolio__item-meta{align-items:flex-start;justify-content:flex-start;text-align:left}.vp-portfolio__items-style-fade .vp-portfolio__item-align-top-right .vp-portfolio__item-meta{align-items:flex-end;justify-content:flex-start;text-align:right}.vp-portfolio__items-style-fade .vp-portfolio__item-align-bottom-center .vp-portfolio__item-meta{align-items:center;justify-content:flex-end;text-align:center}.vp-portfolio__items-style-fade .vp-portfolio__item-align-bottom-left .vp-portfolio__item-meta{align-items:flex-start;justify-content:flex-end;text-align:left}.vp-portfolio__items-style-fade .vp-portfolio__item-align-bottom-right .vp-portfolio__item-meta{align-items:flex-end;justify-content:flex-end;text-align:right}
|
templates/items-list/items-style/fade/style.scss
CHANGED
@@ -13,7 +13,6 @@
|
|
13 |
right: 0;
|
14 |
bottom: 0;
|
15 |
left: 0;
|
16 |
-
padding: 20px;
|
17 |
color: #fff;
|
18 |
text-decoration: none;
|
19 |
background-color: rgba(0, 0, 0, .85);
|
@@ -41,6 +40,7 @@
|
|
41 |
justify-content: center;
|
42 |
width: 100%;
|
43 |
height: 100%;
|
|
|
44 |
color: inherit;
|
45 |
text-align: center;
|
46 |
transition: transform 1s cubic-bezier(.07, .72, .24, 1), opacity 1s cubic-bezier(.07, .72, .24, 1);
|
13 |
right: 0;
|
14 |
bottom: 0;
|
15 |
left: 0;
|
|
|
16 |
color: #fff;
|
17 |
text-decoration: none;
|
18 |
background-color: rgba(0, 0, 0, .85);
|
40 |
justify-content: center;
|
41 |
width: 100%;
|
42 |
height: 100%;
|
43 |
+
padding: 20px;
|
44 |
color: inherit;
|
45 |
text-align: center;
|
46 |
transition: transform 1s cubic-bezier(.07, .72, .24, 1), opacity 1s cubic-bezier(.07, .72, .24, 1);
|
templates/items-list/items-style/fly/meta.php
CHANGED
@@ -24,19 +24,20 @@ $show_meta = $opts['show_icon'] && $opts['icon'] ||
|
|
24 |
?>
|
25 |
|
26 |
<figcaption class="vp-portfolio__item-overlay vp-portfolio__item-align-<?php echo esc_attr( $opts['align'] ); ?>">
|
27 |
-
|
28 |
-
|
29 |
-
<?php
|
30 |
-
|
31 |
-
|
32 |
-
if ( isset( $args['url_target'] ) && $args['url_target'] ) :
|
33 |
-
?>
|
34 |
-
target="<?php echo esc_attr( $args['url_target'] ); ?>"
|
35 |
-
<?php
|
36 |
-
endif;
|
37 |
?>
|
38 |
-
|
39 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
40 |
<?php
|
41 |
|
42 |
// Show Icon.
|
@@ -99,6 +100,6 @@ $show_meta = $opts['show_icon'] && $opts['icon'] ||
|
|
99 |
<?php
|
100 |
}
|
101 |
?>
|
102 |
-
|
103 |
-
|
104 |
</figcaption>
|
24 |
?>
|
25 |
|
26 |
<figcaption class="vp-portfolio__item-overlay vp-portfolio__item-align-<?php echo esc_attr( $opts['align'] ); ?>">
|
27 |
+
<<?php echo esc_html( $tag ); ?>
|
28 |
+
<?php if ( $args['url'] ) : ?>
|
29 |
+
href="<?php echo esc_url( $args['url'] ); ?>"
|
30 |
+
<?php
|
31 |
+
if ( isset( $args['url_target'] ) && $args['url_target'] ) :
|
|
|
|
|
|
|
|
|
|
|
32 |
?>
|
33 |
+
target="<?php echo esc_attr( $args['url_target'] ); ?>"
|
34 |
+
<?php
|
35 |
+
endif;
|
36 |
+
?>
|
37 |
+
<?php endif; ?>
|
38 |
+
class="vp-portfolio__item-meta">
|
39 |
+
|
40 |
+
<?php if ( $show_meta ) : ?>
|
41 |
<?php
|
42 |
|
43 |
// Show Icon.
|
100 |
<?php
|
101 |
}
|
102 |
?>
|
103 |
+
<?php endif; ?>
|
104 |
+
</<?php echo esc_html( $tag ); ?>>
|
105 |
</figcaption>
|
templates/items-list/items-style/fly/style.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.vp-portfolio__items-style-fly .vp-portfolio__item a{outline:none;box-shadow:none}.vp-portfolio__items-style-fly .vp-portfolio__item-overlay{position:absolute;top:0;right:0;bottom:0;left:0;
|
1 |
+
.vp-portfolio__items-style-fly .vp-portfolio__item a{outline:none;box-shadow:none}.vp-portfolio__items-style-fly .vp-portfolio__item-overlay{position:absolute;top:0;right:0;bottom:0;left:0;text-align:center;text-decoration:none;background-color:#212125;-webkit-transform:translateY(-100%) translateX(-100%);transform:translateY(-100%) translateX(-100%)}.vp-portfolio__items-style-fly figcaption.vp-portfolio__item-overlay{font-style:inherit;color:#fff}.vp-portfolio__items-style-fly .vp-portfolio__item-meta{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;height:100%;padding:20px;color:inherit}.vp-portfolio__items-style-fly .vp-portfolio__item-meta>*+*{margin-top:4px}.vp-portfolio__items-style-fly .vp-portfolio__item-meta-title{margin-bottom:0;font-size:1.3em;color:inherit}.vp-portfolio__items-style-fly .vp-portfolio__item-meta-date{font-size:.85em}.vp-portfolio__items-style-fly .vp-portfolio__item-meta-icon{font-size:2em}.vp-portfolio__items-style-fly .vp-portfolio__item-meta-icon+*{margin-top:15px}.vp-portfolio__items-style-fly .vp-portfolio__item-meta-categories{position:absolute;display:flex;flex-wrap:wrap;bottom:0;left:0;padding:15px 10px;margin:0;list-style-type:none}.vp-portfolio__items-style-fly .vp-portfolio__item-meta-categories .vp-portfolio__item-meta-category{display:block;padding:4px 15px;margin:0 5px;color:#fff;background-color:#3c3c3c}.vp-portfolio__items-style-fly .vp-portfolio__item-meta-excerpt{opacity:.8}.vp-portfolio__items-style-fly .vp-portfolio__item-align-center .vp-portfolio__item-meta{align-items:center;text-align:center}.vp-portfolio__items-style-fly .vp-portfolio__item-align-left .vp-portfolio__item-meta{align-items:flex-start;text-align:left}.vp-portfolio__items-style-fly .vp-portfolio__item-align-right .vp-portfolio__item-meta{align-items:flex-end;text-align:right}.vp-portfolio__items-style-fly .vp-portfolio__item-align-top-center .vp-portfolio__item-meta{align-items:center;justify-content:flex-start;text-align:center}.vp-portfolio__items-style-fly .vp-portfolio__item-align-top-left .vp-portfolio__item-meta{align-items:flex-start;justify-content:flex-start;text-align:left}.vp-portfolio__items-style-fly .vp-portfolio__item-align-top-right .vp-portfolio__item-meta{align-items:flex-end;justify-content:flex-start;text-align:right}.vp-portfolio__items-style-fly .vp-portfolio__item-align-bottom-center .vp-portfolio__item-meta{align-items:center;justify-content:flex-end;text-align:center}.vp-portfolio__items-style-fly .vp-portfolio__item-align-bottom-left .vp-portfolio__item-meta{align-items:flex-start;justify-content:flex-end;text-align:left}.vp-portfolio__items-style-fly .vp-portfolio__item-align-bottom-right .vp-portfolio__item-meta{align-items:flex-end;justify-content:flex-end;text-align:right}
|
templates/items-list/items-style/fly/style.scss
CHANGED
@@ -13,7 +13,6 @@
|
|
13 |
right: 0;
|
14 |
bottom: 0;
|
15 |
left: 0;
|
16 |
-
padding: 20px;
|
17 |
text-align: center;
|
18 |
text-decoration: none;
|
19 |
background-color: #212125;
|
@@ -35,6 +34,7 @@
|
|
35 |
justify-content: center;
|
36 |
width: 100%;
|
37 |
height: 100%;
|
|
|
38 |
color: inherit;
|
39 |
|
40 |
> * + * {
|
13 |
right: 0;
|
14 |
bottom: 0;
|
15 |
left: 0;
|
|
|
16 |
text-align: center;
|
17 |
text-decoration: none;
|
18 |
background-color: #212125;
|
34 |
justify-content: center;
|
35 |
width: 100%;
|
36 |
height: 100%;
|
37 |
+
padding: 20px;
|
38 |
color: inherit;
|
39 |
|
40 |
> * + * {
|