Visual Portfolio, Photo Gallery & Post Grid - Version 1.10.0

Version Description

Download this release

Release Info

Developer nko
Plugin Icon 128x128 Visual Portfolio, Photo Gallery & Post Grid
Version 1.10.0
Comparing to
See all releases

Code changes from version 1.9.3 to 1.10.0

assets/admin/css/gutenberg-block.min.css CHANGED
@@ -1 +1 @@
1
- .wp-block-nk-visual-portfolio{background-color:#f8f9f9}.wp-block-nk-visual-portfolio .visual-portfolio-gutenberg-placeholder{flex-direction:row;flex-wrap:wrap;justify-content:flex-start;min-height:0;padding:14px;background-color:transparent}.wp-block-nk-visual-portfolio .visual-portfolio-gutenberg-placeholder .components-placeholder__label{flex:1;justify-content:flex-start;margin-right:14px;margin-bottom:0}.wp-block-nk-visual-portfolio .visual-portfolio-gutenberg-placeholder .components-placeholder__label ~ *{width:auto}.wp-block-nk-visual-portfolio .visual-portfolio-gutenberg-placeholder .components-placeholder__fieldset{align-items:center;justify-content:flex-start}.wp-block-nk-visual-portfolio .visual-portfolio-gutenberg-placeholder .components-placeholder__fieldset>a{margin-right:10px}.wp-block-nk-visual-portfolio .visual-portfolio-gutenberg-placeholder .spinner,.wp-block-nk-visual-portfolio .visual-portfolio-gutenberg-placeholder .components-base-control{margin:0}.wp-block-nk-visual-portfolio .visual-portfolio-gutenberg-preview{position:relative;padding:15px;overflow:hidden}.wp-block-nk-visual-portfolio .visual-portfolio-gutenberg-preview::after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;z-index:1}.wp-block-nk-visual-portfolio .visual-portfolio-gutenberg-preview iframe{width:200% !important;height:601px;min-height:20px;margin-bottom:-50%;overflow:hidden;-webkit-transform:scale(0.5);transform:scale(0.5);-webkit-transform-origin:0 0;transform-origin:0 0}
1
+ .wp-block-nk-visual-portfolio{background-color:#f8f9f9}.wp-block-nk-visual-portfolio .visual-portfolio-gutenberg-placeholder{flex-direction:row;flex-wrap:wrap;justify-content:flex-start;min-height:0;padding:14px;background-color:transparent}.wp-block-nk-visual-portfolio .visual-portfolio-gutenberg-placeholder .components-placeholder__label{flex:1;justify-content:flex-start;margin-right:14px;margin-bottom:0}.wp-block-nk-visual-portfolio .visual-portfolio-gutenberg-placeholder .components-placeholder__label ~ *{width:auto}.wp-block-nk-visual-portfolio .visual-portfolio-gutenberg-placeholder .components-placeholder__fieldset{display:flex;align-items:center;justify-content:flex-start}.wp-block-nk-visual-portfolio .visual-portfolio-gutenberg-placeholder .components-placeholder__fieldset>a{margin-right:10px}.wp-block-nk-visual-portfolio .visual-portfolio-gutenberg-placeholder .components-placeholder__fieldset>.components-base-control{flex:1}.wp-block-nk-visual-portfolio .visual-portfolio-gutenberg-placeholder .spinner,.wp-block-nk-visual-portfolio .visual-portfolio-gutenberg-placeholder .components-base-control{margin:0}.wp-block-nk-visual-portfolio .visual-portfolio-gutenberg-preview{position:relative;padding:15px;overflow:hidden}.wp-block-nk-visual-portfolio .visual-portfolio-gutenberg-preview::after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;z-index:1}.wp-block-nk-visual-portfolio .visual-portfolio-gutenberg-preview iframe{width:200% !important;min-width:200% !important;height:601px;min-height:20px;margin-bottom:-50%;overflow:hidden;-webkit-transform:scale(0.5);transform:scale(0.5);-webkit-transform-origin:0 0;transform-origin:0 0}
assets/admin/css/style.min.css CHANGED
@@ -1,5 +1,5 @@
1
  /*!
2
  * Name : Visual Portfolio
3
- * Version : 1.9.3
4
  * Author : nK https://nkdev.info
5
- */.dashicons-visual-portfolio,.dashicons-visual-portfolio-gray,.mce-widget .mce-i-visual-portfolio{background-image:url("../images/icon.svg");background-repeat:no-repeat;background-position:center center;background-size:15px;opacity:.6}.mce-widget .mce-i-visual-portfolio{background-image:url("../images/icon-mce.svg");opacity:1}.menu-top.current .dashicons-visual-portfolio,.menu-top:hover .dashicons-visual-portfolio,.wp-has-current-submenu .dashicons-visual-portfolio{opacity:1}.dashicons-visual-portfolio-gray,.mce-i-visual-portfolio-gray{background-image:url("../images/icon-gray.svg")}.vc_element-icon[data-is-container="true"].icon-visual-portfolio,.vc_element-icon.icon-visual-portfolio{background-position:50% 50%}.vc_element-icon.icon-visual-portfolio,.vc_control-visual-portfolio{position:relative;overflow:hidden;background-image:url("../images/icon-vc.png");background-position:50% 50%;background-size:cover;border-radius:3px}.vc_add-element-container .icon-visual-portfolio{position:absolute}.vc_control-visual-portfolio{display:inline-block;width:18px;height:18px;margin:0 2px;cursor:pointer}.vc_controls-row .vc_control-visual-portfolio{float:right;margin:4px}.vc_control-visual-portfolio-overlay{position:absolute;top:0;right:0;bottom:0;left:0;z-index:2}.vp-row{display:flex;flex:0 1 auto;flex-direction:row;flex-wrap:wrap;box-sizing:border-box;margin-right:-15px;margin-left:-15px}.vp-col-1,.vp-col-2,.vp-col-3,.vp-col-4,.vp-col-5,.vp-col-6,.vp-col-7,.vp-col-8,.vp-col-9,.vp-col-10,.vp-col-11,.vp-col-12{flex:0 0 auto;box-sizing:border-box;padding-right:15px;padding-left:15px}.vp-col-1{flex-basis:8.33333%;max-width:8.33333%}.vp-col-2{flex-basis:16.66667%;max-width:16.66667%}.vp-col-3{flex-basis:25%;max-width:25%}.vp-col-4{flex-basis:33.33333%;max-width:33.33333%}.vp-col-5{flex-basis:41.66667%;max-width:41.66667%}.vp-col-6{flex-basis:50%;max-width:50%}.vp-col-7{flex-basis:58.33333%;max-width:58.33333%}.vp-col-8{flex-basis:66.66667%;max-width:66.66667%}.vp-col-9{flex-basis:75%;max-width:75%}.vp-col-10{flex-basis:83.33333%;max-width:83.33333%}.vp-col-11{flex-basis:91.66667%;max-width:91.66667%}.vp-col-12{flex-basis:100%;max-width:100%}.vp-col-clearfix{flex-basis:100%;max-width:100%}.vp-col-clearfix .vp-control-html{margin-bottom:0}.post-type-vp_lists.post-php,.post-type-vp_lists.post-new-php{background-color:#edeff0}.post-type-vp_lists.post-php #wpcontent,.post-type-vp_lists.post-new-php #wpcontent{padding-left:0}.post-type-vp_lists.post-php .wrap,.post-type-vp_lists.post-new-php .wrap{margin:0}.post-type-vp_lists.post-php #poststuff,.post-type-vp_lists.post-new-php #poststuff{padding-top:0}.post-type-vp_lists.post-php #wpfooter,.post-type-vp_lists.post-new-php #wpfooter{display:none}.post-type-vp_lists.post-php #wpbody-content,.post-type-vp_lists.post-new-php #wpbody-content{padding-bottom:0}.post-type-vp_lists.post-php #post-body.columns-2 #postbox-container-1,.post-type-vp_lists.post-new-php #post-body.columns-2 #postbox-container-1{position:fixed;top:0;right:300px;bottom:0;width:300px;overflow:auto;-webkit-overflow-scrolling:touch}html.wp-toolbar .post-type-vp_lists.post-php #post-body.columns-2 #postbox-container-1,html.wp-toolbar .post-type-vp_lists.post-new-php #post-body.columns-2 #postbox-container-1{top:32px}@media only screen and (max-width: 850px){.post-type-vp_lists.post-php #post-body.columns-2 #postbox-container-1,.post-type-vp_lists.post-new-php #post-body.columns-2 #postbox-container-1{position:relative;top:auto;right:auto;bottom:auto;width:100%;margin-right:0}}.post-type-vp_lists.post-php #postbox-container-2,.post-type-vp_lists.post-new-php #postbox-container-2{position:absolute;top:0;right:0;bottom:0;left:0;width:calc(100% - 300px);min-height:calc(100vh - 32px);overflow:auto;-webkit-overflow-scrolling:touch}@media only screen and (max-width: 850px){.post-type-vp_lists.post-php #postbox-container-2,.post-type-vp_lists.post-new-php #postbox-container-2{right:0;bottom:auto;width:100%}}.post-type-vp_lists.post-php .columns-2 #side-sortables,.post-type-vp_lists.post-new-php .columns-2 #side-sortables{width:auto}.post-type-vp_lists.post-php .notice,.post-type-vp_lists.post-new-php .notice{margin:0;margin-right:300px;margin-bottom:1px}@media only screen and (max-width: 850px){.post-type-vp_lists.post-php .notice,.post-type-vp_lists.post-new-php .notice{margin-right:0}}.post-type-vp_lists.post-php #poststuff .postbox,.post-type-vp_lists.post-new-php #poststuff .postbox{margin-bottom:0;border-color:#e2e4e7;border-top:0;border-right:0}.post-type-vp_lists.post-php #poststuff .postbox>h2,.post-type-vp_lists.post-new-php #poststuff .postbox>h2{padding:15px;border-bottom:none}.post-type-vp_lists.post-php #poststuff .postbox>.handlediv,.post-type-vp_lists.post-new-php #poststuff .postbox>.handlediv{height:50px}.post-type-vp_lists.post-php #poststuff .postbox>.inside,.post-type-vp_lists.post-new-php #poststuff .postbox>.inside{padding:15px;padding-top:0}.vp-control{display:flex;flex-wrap:wrap;align-items:center;margin-bottom:19px}.vp-control>label{width:100%;margin-bottom:5px}.vp-control>.vp-control-description{width:100%;margin:2px 0 5px;font-size:13px;font-style:italic;color:#666}.vp-control.vp-control-checkbox,.vp-control.vp-control-toggle{flex-wrap:nowrap}.vp-control.vp-control-checkbox>label,.vp-control.vp-control-toggle>label{margin-bottom:0}.vp-control.vp-control-textarea textarea{width:100%}.vp-image-picker{display:none}.vp-image-picker,.vp-image-picker *{box-sizing:border-box}.vp-image-picker+ul.thumbnails.image_picker_selector li{margin:0 10px 10px 0}.vp-image-picker+ul.thumbnails.image_picker_selector li .thumbnail{padding:0;cursor:pointer;border:none}.vp-image-picker+ul.thumbnails.image_picker_selector li .thumbnail img{display:block;border:2px solid transparent}.vp-image-picker+ul.thumbnails.image_picker_selector li .thumbnail.selected{background-color:transparent}.vp-image-picker+ul.thumbnails.image_picker_selector li .thumbnail.selected img{border-color:#0073aa}.vp-image-picker+ul.thumbnails.image_picker_selector .group_title{padding-top:5px;padding-left:5px;font-weight:500}.vp-control-range [type="number"]{width:50px;margin-left:10px}.vp-control-range [type="range"]{flex:1;width:100%;padding:0;background:transparent;-webkit-appearance:none;-moz-appearance:none;appearance:none}.vp-control-range [type="range"]::-webkit-slider-thumb{box-sizing:border-box;width:18px;height:18px;margin-top:-7px;cursor:pointer;background:#555d66;background-clip:padding-box;border:4px solid transparent;border-radius:50%;-webkit-appearance:none;appearance:none}.vp-control-range [type="range"]::-moz-range-thumb{box-sizing:border-box;width:18px;height:18px;cursor:pointer;background:#555d66;background-clip:padding-box;border:4px solid transparent;border-radius:50%}.vp-control-range [type="range"]::-ms-thumb{box-sizing:border-box;width:14px;height:14px;margin-top:0;cursor:pointer;background:#555d66;background-clip:padding-box;border:2px solid transparent;border-radius:50%}.vp-control-range [type="range"]:focus{outline:none}.vp-control-range [type="range"]:focus::-webkit-slider-thumb{color:#191e23;background-color:#fff;outline:2px solid transparent;outline-offset:-2px;box-shadow:inset 0 0 0 1px #6c7781, inset 0 0 0 2px #fff}.vp-control-range [type="range"]:focus::-moz-range-thumb{color:#191e23;background-color:#fff;outline:2px solid transparent;outline-offset:-2px;box-shadow:inset 0 0 0 1px #6c7781, inset 0 0 0 2px #fff}.vp-control-range [type="range"]:focus::-ms-thumb{color:#191e23;background-color:#fff;outline:2px solid transparent;outline-offset:-2px;box-shadow:inset 0 0 0 1px #6c7781, inset 0 0 0 2px #fff}.vp-control-range [type="range"]::-webkit-slider-runnable-track{height:3px;margin-top:-4px;cursor:pointer;background:#e2e4e7;border-radius:1.5px}.vp-control-range [type="range"]::-moz-range-track{height:3px;cursor:pointer;background:#e2e4e7;border-radius:1.5px}.vp-control-range [type="range"]::-ms-track{height:3px;margin-top:-4px;color:transparent;cursor:pointer;background:#e2e4e7;border-color:transparent;border-radius:1.5px}.vp-control-toggle,.vp-control-toggle *{box-sizing:border-box}.vp-control-toggle .vp-toggle{position:relative}.vp-control-toggle .vp-toggle .vp-toggle__track{content:"";display:inline-block;box-sizing:border-box;width:36px;height:18px;vertical-align:top;background-color:#fff;border:2px solid #6c7781;border-radius:9px;transition:background .2s ease}.vp-control-toggle .vp-toggle .vp-toggle__track::after{content:"";position:absolute;display:block;top:50%;right:5px;width:3px;height:3px;margin-top:-3px;border:1.5px solid #6c7781;border-radius:3px}.vp-control-toggle .vp-toggle:hover .vp-toggle__track{background-color:#e2e4e7}.vp-control-toggle .vp-toggle [type="checkbox"]:checked ~ .vp-toggle__track{background-color:#33b3db;border:2px solid #33b3db}.vp-control-toggle .vp-toggle [type="checkbox"]:checked ~ .vp-toggle__track::after{top:50%;right:auto;left:8px;width:0;height:5px;margin-top:-3px;border:0;border-right:2px solid #fff;border-radius:0}.vp-control-toggle .vp-toggle .vp-toggle__thumb{position:absolute;display:block;top:4px;left:4px;width:10px;height:10px;background-color:#6c7781;border:5px solid #6c7781;border-radius:50%;transition:-webkit-transform .1s ease;transition:transform .1s ease;transition:transform .1s ease, -webkit-transform .1s ease}.vp-control-toggle .vp-toggle [type="checkbox"]:focus ~ .vp-toggle__track{box-shadow:0 0 0 2px #fff, 0 0 0 3px #6c7781}.vp-control-toggle .vp-toggle [type="checkbox"]:checked ~ .vp-toggle__thumb{background-color:#fff;border-width:0;-webkit-transform:translateX(18px);transform:translateX(18px)}.vp-control-toggle .vp-toggle [type="checkbox"]{position:absolute;top:0;left:0;width:100%;height:100%;padding:0;margin:0;opacity:0;z-index:1}.vp-control-image-dropdown{position:relative;display:flex;align-items:center;width:100%;padding:5px 7px;cursor:pointer;background-color:#fff;border:1px solid #ddd;box-shadow:inset 0 1px 2px rgba(0,0,0,0.07)}.vp-control-image-dropdown,.vp-control-image-dropdown *{box-sizing:border-box}.vp-control-image-dropdown::before{content:"";position:absolute;display:block;top:50%;right:6px;width:0;height:0;margin-top:-2px;border-color:#888 transparent transparent transparent;border-style:solid;border-width:5px 4px 0 4px}.vp-control-image-dropdown.active::before{border-color:transparent transparent #888 transparent;border-width:0 4px 5px 4px}.vp-control-image-dropdown .vp-control-image-dropdown__preview{display:block;flex:0 0 auto;width:32px}.vp-control-image-dropdown .vp-control-image-dropdown__preview img{display:block;width:100%;height:auto}.vp-control-image-dropdown .vp-control-image-dropdown__title{flex:1;padding-left:10px}.vp-control-image-dropdown .vp-control-image-dropdown__content{position:absolute;display:none;top:100%;left:0;width:100%;max-width:285px;margin-top:7px;margin-left:-1px;cursor:default;background-color:#fff;border:1px solid #e5e5e5;box-shadow:0 1px 1px rgba(0,0,0,0.04);z-index:1}.vp-control-image-dropdown .vp-control-image-dropdown__content>div{width:100%;max-height:250px;padding:4px;overflow:auto}.vp-control-image-dropdown .vp-control-image-dropdown__content::before{content:"";position:absolute;display:block;top:-5px;left:10px;width:0;height:0;border-right:5px solid transparent;border-bottom:5px solid #e5e5e5;border-left:5px solid transparent}.vp-control-image-dropdown .vp-control-image-dropdown__content::after{content:"";position:absolute;display:block;top:-7px;right:0;left:0;height:7px}.vp-control-image-dropdown .vp-control-image-dropdown__content .vp-image-picker+ul.thumbnails.image_picker_selector,.vp-control-image-dropdown .vp-control-image-dropdown__content .vp-image-picker+ul.thumbnails.image_picker_selector .group>ul{display:flex;flex-wrap:wrap}.vp-control-image-dropdown .vp-control-image-dropdown__content .vp-image-picker+ul.thumbnails.image_picker_selector li{display:block;flex:0 0 25%;float:none;max-width:25%;margin:0}.vp-control-image-dropdown .vp-control-image-dropdown__content .vp-image-picker+ul.thumbnails.image_picker_selector li.group,.vp-control-image-dropdown .vp-control-image-dropdown__content .vp-image-picker+ul.thumbnails.image_picker_selector li.group_title{flex:0 0 100%;max-width:100%}.vp-control-image-dropdown .vp-control-image-dropdown__content .vp-image-picker+ul.thumbnails.image_picker_selector li .thumbnail{padding:3px}.vp-control-image-dropdown .vp-control-image-dropdown__content .vp-image-picker+ul.thumbnails.image_picker_selector li img{width:100%;height:auto}.vp-control-image-dropdown.active .vp-control-image-dropdown__content{display:block}.vp-oembed-preview{position:relative;width:100%;padding-top:56.25%;color:#a2a2a2;background-color:#f1f1f1;border:1px solid #e8e8e8}.vp-oembed-preview::after{content:"\f126";position:absolute;display:block;top:50%;left:50%;width:20px;height:20px;margin-top:-10px;margin-left:-10px;font-family:dashicons;font-size:20px;font-style:normal;font-weight:400;line-height:1;text-align:center;text-decoration:inherit;vertical-align:top;z-index:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.vp-oembed-preview>iframe{position:absolute;top:0;left:0;width:100%;height:100%;z-index:2}.vp-portfolio__thumbnail{position:relative;display:block;max-width:70px;padding-top:100%;overflow:hidden;border-radius:3px}.vp-portfolio__thumbnail img{position:absolute;display:block;top:0;left:0;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.vp-portfolio__thumbnail:empty{background-color:#f1f1f1;border:1px solid #e8e8e8}.vp-portfolio__thumbnail:empty,.vp-portfolio__thumbnail:empty:hover,.vp-portfolio__thumbnail:empty:active,.vp-portfolio__thumbnail:empty:focus{color:#a2a2a2}.vp-portfolio__thumbnail:empty::after{content:"\f128";position:absolute;display:block;top:50%;left:50%;width:20px;height:20px;margin-top:-10px;margin-left:-10px;font-family:dashicons;font-size:20px;font-style:normal;font-weight:400;line-height:1;text-align:center;text-decoration:inherit;vertical-align:top;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.wp-list-table th.column-portfolio_post_thumbs{width:70px}.wp-list-table th.column-vp_lists_post_shortcode{width:250px}@media screen and (max-width: 782px){.wp-list-table th.column-portfolio_post_thumbs{display:none}.wp-list-table tr:not(.inline-edit-row):not(.no-items) td.column-portfolio_post_thumbs{float:left;width:70px !important;min-width:70px}.wp-list-table tr:not(.inline-edit-row):not(.no-items) td.column-portfolio_post_thumbs::before{content:none}.wp-list-table tr:not(.inline-edit-row):not(.no-items) td.column-title{overflow:hidden;clear:right}}.vp-portfolio-list .vp-portfolio-list__icon span{display:block;width:120px;height:120px;margin:0 auto;margin-top:60px;background-size:105px}.vp-portfolio-list .vp-portfolio-list__text{text-align:center}.vp-portfolio-list .vp-portfolio-list__text p{margin-top:30px;margin-bottom:30px;font-size:15px;font-weight:500;color:#8e8e8e}.vp-portfolio-list .vp-portfolio-list__text .button-hero{display:inline-block}.vp_list_preview{padding:0 12px;margin-right:-12px;margin-left:-12px}.vp_list_preview iframe{width:100%;min-height:120px;transition:height .3s}.vp-content-source{display:flex;flex-wrap:wrap;padding-right:9px;padding-left:9px;margin-right:-15px;margin-left:-15px}.vp-content-source .vp-content-source__item{position:relative;width:70px;height:50px;padding:12px;margin:0 5px;color:#6c7781;text-align:center;cursor:pointer;border:1px solid transparent;border-radius:3px}.vp-content-source .vp-content-source__item.active,.vp-content-source .vp-content-source__item:hover{color:#555;background-color:#ecf0f4}.vp-content-source .vp-content-source__item.active{color:#fff;background-color:#6c7781;border-color:#6c7781}.vp-content-source .vp-content-source__item .vp-content-source__item-icon>span{width:24px;height:24px;margin-top:2px;font-size:24px}.vp-content-source .vp-content-source__item .vp-content-source__item-title{position:absolute;top:58%;right:8px;left:8px;font-weight:500}.vp-content-source .vp-content-source__item-content{flex:1;min-width:100%}.vp-content-source .vp-content-source__item-content>div{position:relative;display:none;padding:0 15px;padding-bottom:1px;margin-top:12px;margin-right:-9px;margin-bottom:-14px;margin-left:-9px;overflow:hidden;background-color:#f9f9fa;border-top:1px solid #eee}.vp-content-source .vp-content-source__item-content>div:empty{display:none !important}.vp-content-source .vp-content-source__item-content>div.active{display:block}.vp-select2{width:100%}.vp-select2+.select2{width:100%}.post-attributes-label+.vp-select2+.select2{margin-top:5px}.vp-select2+.select2 ul,.vp-select2+.select2 li{margin-bottom:0}.vp-select2+.select2 .select2-selection{border:1px solid #ddd;border-radius:0;box-shadow:inset 0 1px 2px rgba(0,0,0,0.07)}.vp-select2+.select2.select2-container--open .select2-selection{outline:none}.vp-select2+.select2 .select2-selection--multiple{min-height:27px}.vp-select2+.select2 .select2-selection--multiple .select2-selection__choice{padding:3px 8px;margin-top:3px;color:#fff;background-color:#6c7781;border-color:#6c7781}.vp-select2+.select2 .select2-selection--multiple .select2-selection__choice__remove{float:right;margin-right:0;margin-left:3px;color:inherit;opacity:.5}.select2-vp-container ul,.select2-vp-container li{margin-bottom:0}.select2-vp-container .select2-dropdown{border-color:#ddd}.select2-vp-container .select2-search--dropdown .select2-search__field{padding:3px 4px;border:1px solid #ddd;outline:none;box-shadow:none}.select2-vp-container .select2-results__option[aria-selected="true"]{background-color:#efeeee}.select2-vp-container .select2-results__option--highlighted[aria-selected]{background-color:#33b3db}.vp-select2-ajax__result{display:flex;flex:0 1 auto;flex-direction:row;flex-wrap:wrap}.vp-select2-ajax__result .vp-select2-ajax__result-img{position:relative;flex:0 0 35px;background-color:rgba(0,0,0,0.1);background-position:center center;background-size:cover;border-radius:3px}.vp-select2-ajax__result .vp-select2-ajax__result-img::after{content:"";display:block;width:100%;padding-top:100%}.vp-select2-ajax__result .vp-select2-ajax__result-data{padding-left:10px}.vp-select2-ajax__result .vp-select2-ajax__result-title{font-size:16px;font-weight:500;line-height:1}.vp-select2-ajax__result .vp-select2-ajax__result-post-type{font-size:12px;opacity:.5}.vp-control-gallery .vp-control-gallery-additional-data{position:absolute;box-sizing:border-box;top:0;right:-350px;bottom:0;width:350px;padding:15px 13px;overflow:auto;background-color:#fff;border-left:1px solid #eaeaea;transition:.15s right}.vp-control-gallery .vp-control-gallery-additional-data.active{right:0}.vp-control-gallery .vp-control-gallery-additional-data.active+.vp-control-gallery-items{margin-right:335px}@media (max-width: 910px){.vp-control-gallery .vp-control-gallery-additional-data{position:relative;display:none;right:0;width:120%;height:auto;margin-bottom:30px;border:1px solid #eaeaea}.vp-control-gallery .vp-control-gallery-additional-data.active{display:block}.vp-control-gallery .vp-control-gallery-additional-data.active+.vp-control-gallery-items{margin-right:-15px}}.vp-control-gallery .vp-control-gallery-additional-data .vp-control-gallery-additional-data-preview{display:flex;padding:15px 13px;margin:-15px -13px;margin-bottom:15px;border-bottom:1px solid #eaeaea}.vp-control-gallery .vp-control-gallery-additional-data .vp-control-gallery-additional-data-preview .vp-control-gallery-additional-data-preview-image{margin-right:15px}.vp-control-gallery .vp-control-gallery-additional-data .vp-control-gallery-additional-data-preview .vp-control-gallery-additional-data-preview-image img{display:block;width:70px;border-radius:3px;box-shadow:0 0 0 1px #fff, 0 0 0 2px #eaeaea}.vp-control-gallery .vp-control-gallery-additional-data .vp-control-gallery-additional-data-preview .vp-control-gallery-additional-data-preview-size{color:#8f9498}.vp-control-gallery .vp-control-gallery-items{display:flex;flex-wrap:wrap;align-content:flex-start;width:120%;height:325px;padding:7px;margin:-12px;margin-bottom:-25px;overflow:auto;transition:.15s margin-right}.vp-control-gallery .vp-control-gallery-items::after{content:"";display:block;width:100%}.vp-control-gallery .vp-control-gallery-items>div{position:relative;display:block;width:calc(12.5% - 10px);margin:5px;cursor:move;cursor:-webkit-grab;cursor:grab;border-radius:3px}@media (max-width: 1350px){.vp-control-gallery .vp-control-gallery-items>div{width:calc(14.22% - 10px)}}@media (max-width: 1250px){.vp-control-gallery .vp-control-gallery-items>div{width:calc(16.66% - 10px)}}@media (max-width: 1100px){.vp-control-gallery .vp-control-gallery-items>div{width:calc(25% - 10px)}}.vp-control-gallery .vp-control-gallery-items>div::after{content:"";display:block;padding-top:100%}.vp-control-gallery .vp-control-gallery-items>div.sortable-ghost{opacity:.4}.vp-control-gallery .vp-control-gallery-items>div img{position:absolute;display:block;top:0;left:0;width:100%;height:100%;-o-object-fit:cover;object-fit:cover;border-radius:3px}.vp-control-gallery .vp-control-gallery-items>.vp-control-gallery-items-img .vp-control-gallery-items-remove{position:absolute;top:-5px;right:-5px;width:20px;height:20px;color:#fff;cursor:pointer;visibility:hidden;background-color:#dc3232;border-radius:50%;opacity:0;transition:.15s visibility, .15s opacity}.vp-control-gallery .vp-control-gallery-items>.vp-control-gallery-items-img .vp-control-gallery-items-remove span{width:20px;height:20px;font-size:10px;line-height:20px}.vp-control-gallery .vp-control-gallery-items>.vp-control-gallery-items-img:hover .vp-control-gallery-items-remove{visibility:visible;opacity:1}.vp-control-gallery .vp-control-gallery-items>.vp-control-gallery-items-img.active{box-shadow:0 0 0 1px #fff, 0 0 0 4px #33b3db}.vp-control-gallery .vp-control-gallery-items>.vp-control-gallery-items-add{display:flex;align-items:center;justify-content:center;box-sizing:border-box;color:#6c7781;text-align:center;cursor:pointer;background-color:#fff;border:1px solid #ccd3da;border-radius:3px}.vp-control-gallery .vp-control-gallery-items>.vp-control-gallery-items-add>span{position:absolute;top:50%;left:50%;width:24px;height:24px;margin-top:-12px;margin-left:-12px;line-height:24px}.vp-control-gallery .vp-control-gallery-items>.vp-control-gallery-items-add:hover{color:#555;background-color:#f7f7f7}.vp-input{width:100%}.post-type-vp_lists .CodeMirror{width:100%;text-align:left;border:1px solid #ddd}.post-type-vp_lists .CodeMirror .CodeMirror-matchingbracket{color:inherit;background:rgba(255,150,0,0.3)}.post-type-vp_lists [class*="CodeMirror-lint-message"],.post-type-vp_lists .CodeMirror-lint-marker-multiple,.post-type-vp_lists [class*="CodeMirror-lint-marker"]{background-image:none}.post-type-vp_lists .CodeMirror-lint-marker-error,.post-type-vp_lists .CodeMirror-lint-marker-warning{cursor:help}.post-type-vp_lists .CodeMirror-lint-marker-multiple{position:absolute;top:0}.post-type-vp_lists [class*="CodeMirror-lint-marker"]::before{position:relative;top:-2px;font:400 18px/1 dashicons}.post-type-vp_lists [class*="CodeMirror-lint-message"]::before{position:absolute;left:16px;font:400 16px/1 dashicons}.post-type-vp_lists .CodeMirror-lint-message-error,.post-type-vp_lists .CodeMirror-lint-message-warning{padding:3px 12px 3px 28px;margin:5px 0 2px;box-shadow:0 1px 1px 0 rgba(0,0,0,0.1)}.post-type-vp_lists .CodeMirror-lint-message-warning{background-color:#fff8e5;border-left:4px solid #ffb900}.post-type-vp_lists .CodeMirror-lint-message-warning::before,.post-type-vp_lists .CodeMirror-lint-marker-warning::before{content:"\f534";color:#f6a306}.post-type-vp_lists .CodeMirror-lint-message-error{background-color:#fbeaea;border-left:4px solid #dc3232}.post-type-vp_lists .CodeMirror-lint-message-error::before,.post-type-vp_lists .CodeMirror-lint-marker-error::before{content:"\f153";color:#dc3232}.post-type-vp_lists .CodeMirror-lint-tooltip{background:0 0;border:none;border-radius:0;direction:ltr}.post-type-vp_lists .CodeMirror-resizer{display:none;display:flex;align-items:center;justify-content:center;width:100%;height:20px;margin-top:-2px;font-size:13px;cursor:row-resize;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-color:#fbfbfb}.post-type-vp_lists .CodeMirror-resizer::before{content:"\2261";position:absolute;left:50%;color:#999}.post-type-vp_lists .CodeMirror-resizer:hover{background:#f7f7f7}.post-type-vp_lists .CodeMirror-resizer:hover::before{color:#000}.post-type-vp_lists .CodeMirror ~ .CodeMirror-resizer{display:block}@media (max-width: 850px){.vp-steps__right,.vp-steps__step{float:none;width:100%}}.post-type-vp_lists #slugdiv,.post-type-vp_lists #postcustom{display:none}
1
  /*!
2
  * Name : Visual Portfolio
3
+ * Version : 1.10.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}.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=165)}({165:function(t,e,n){t.exports=n(166)},166:function(t,e){
2
  /*!
3
  * Name : Visual Portfolio
4
- * Version : 1.9.3
5
  * Author : nK https://nkdev.info
6
  */
7
  var n=window,o=n.tinymce,i=n.VPTinyMCEOptions;if(void 0!==i&&i.length){var r=[{text:"",value:""}];Object.keys(i).forEach(function(t){r.push({text:i[t].title,value:i[t].id})}),o.create("tinymce.plugins.visual_portfolio",{init:function(t){t.addButton("visual_portfolio",{type:"listbox",title:"Visual Portfolio",icon:"visual-portfolio",classes:"visual-portfolio-btn",onclick:function(){this.menu&&this.menu.$el.find(".mce-first").hide()},onselect:function(){this.value()&&t.insertContent('[visual_portfolio id="'.concat(this.value(),'"]')),this.value("")},values:r,value:""})}}),o.PluginManager.add("visual_portfolio",o.plugins.visual_portfolio)}}});
1
  !function(t){var e={};function n(o){if(e[o])return e[o].exports;var i=e[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(o,i,function(e){return t[e]}.bind(null,i));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=165)}({165:function(t,e,n){t.exports=n(166)},166:function(t,e){
2
  /*!
3
  * Name : Visual Portfolio
4
+ * Version : 1.10.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=169)}({169:function(t,e,a){t.exports=a(170)},170: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.9.3
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"]',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)}})}function C(){var t=r('[name="vp_popup_gallery[show_caption]"]');t.closest("tbody").find("tr.caption_title, tr.caption_description")[t.is(":checked")?"show":"hide"]()}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_justified_row_height":case"vp_justified_row_height_tolerance":case"vp_slider_effect":case"vp_slider_speed":case"vp_slider_autoplay":case"vp_slider_centered_slides":case"vp_slider_loop":case"vp_slider_free_mode":case"vp_slider_arrows":case"vp_slider_arrows_icon_prev":case"vp_slider_arrows_icon_next":case"vp_slider_bullets":case"vp_slider_bullets_dynamic":case"vp_items_gap":var 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_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={id:e};return t.find('[data-image-id="'+e+'"]').find("[data-additional]").each(function(){var t=r(this),e=t.attr("data-additional");if(a[e]=t.html(),"true"===t.attr("data-to-json"))try{a[e]=JSON.parse(a[e])}catch(t){a[e]=""}}),a}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={};return t.find('[data-image-id="'+e+'"]').find("[data-meta]").each(function(){a[r(this).attr("data-meta")]=r(this).html()}),a}(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(o(l).concat(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("&amp;","&")),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()}}}(),u.hasClass("portfolio_page_visual-portfolio-settings")&&(u.on("change",'[name="vp_popup_gallery[show_caption]"]',C),f.on("ready",C),C())},30:function(t,e,a){"use strict";function n(t,e,a,n){var i,o=0;return"boolean"!=typeof e&&(n=a,a=e,e=void 0),function(){var r=this,l=Number(new Date)-o,c=arguments;function s(){o=Number(new Date),a.apply(r,c)}n&&!i&&s(),i&&clearTimeout(i),void 0===n&&l>t?s():!0!==e&&(i=setTimeout(n?function(){i=void 0}:s,void 0===n?t-l:t))}}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=169)}({169:function(t,e,a){t.exports=a(170)},170: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.10.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"]',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)}})}function C(){var t=r('[name="vp_popup_gallery[show_caption]"]');t.closest("tbody").find("tr.caption_title, tr.caption_description")[t.is(":checked")?"show":"hide"]()}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_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={id:e};return t.find('[data-image-id="'+e+'"]').find("[data-additional]").each(function(){var t=r(this),e=t.attr("data-additional");if(a[e]=t.html(),"true"===t.attr("data-to-json"))try{a[e]=JSON.parse(a[e])}catch(t){a[e]=""}}),a}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={};return t.find('[data-image-id="'+e+'"]').find("[data-meta]").each(function(){a[r(this).attr("data-meta")]=r(this).html()}),a}(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(o(l).concat(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("&amp;","&")),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()}}}(),u.hasClass("portfolio_page_visual-portfolio-settings")&&(u.on("change",'[name="vp_popup_gallery[show_caption]"]',C),f.on("ready",C),C())},30:function(t,e,a){"use strict";function n(t,e,a,n){var i,o=0;return"boolean"!=typeof e&&(n=a,a=e,e=void 0),function(){var r=this,l=Number(new Date)-o,c=arguments;function s(){o=Number(new Date),a.apply(r,c)}n&&!i&&s(),i&&clearTimeout(i),void 0===n&&l>t?s():!0!==e&&(i=setTimeout(n?function(){i=void 0}:s,void 0===n?t-l:t))}}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.9.3
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.10.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/style.min.css CHANGED
@@ -1,5 +1,5 @@
1
  /*!
2
  * Name : Visual Portfolio
3
- * Version : 1.9.3
4
  * Author : nK https://nkdev.info
5
- */.vp-portfolio{position:relative;min-height:114px}.vp-portfolio,.vp-portfolio *{box-sizing:border-box}.vp-portfolio__items{transition:.3s height ease-in-out, .3s transform ease-in-out;will-change:height, transform}.vp-portfolio::after,.vp-portfolio__items::after{content:"";display:block;clear:both}.vp-portfolio__items-wrap,.vp-portfolio__filter-wrap,.vp-portfolio__pagination-wrap,.vp-portfolio__item{position:relative;overflow:hidden}.vp-portfolio__items-wrap,.vp-portfolio__filter-wrap,.vp-portfolio__pagination-wrap{visibility:hidden;opacity:0;transition:.3s opacity, .3s visibility;will-change:opacity, visibility}.vp-portfolio__item-wrap{position:relative;float:left;width:33.333%}.vp-portfolio__item .vp-portfolio__item-img img,.vp-portfolio__item .vp-portfolio__item-img a{display:block;width:100%;height:auto}.vp-portfolio__item-img{position:relative}.vp-portfolio__preloader-wrap{visibility:visible;opacity:1;transition:.3s opacity, .3s visibility;will-change:opacity, visibility}.vp-portfolio__preloader{position:absolute;left:50%;width:23px;height:24px;margin-top:45px;margin-left:-11px;-webkit-animation:vp-preloader 2s linear infinite;animation:vp-preloader 2s linear infinite}.vp-portfolio__preloader span{position:absolute;display:block;top:0;left:0;width:10px;height:7px;background-color:#8a8a8a}.vp-portfolio__preloader span:nth-of-type(1){height:14px}.vp-portfolio__preloader span:nth-of-type(2){left:12px}.vp-portfolio__preloader span:nth-of-type(3){top:16px}.vp-portfolio__preloader span:nth-of-type(4){top:9px;left:12px;height:14px}@-webkit-keyframes vp-preloader{0%,100%{opacity:.5}40%,60%{opacity:1}}@keyframes vp-preloader{0%,100%{opacity:.5}40%,60%{opacity:1}}[data-vp-layout="tiles"] .vp-portfolio__item-img img,[data-vp-layout="tiles"] .vp-portfolio__item-img{position:absolute;top:0;right:0;bottom:0;left:0}[data-vp-layout="tiles"] .vp-portfolio__item-img-wrap{position:relative;display:block;overflow:hidden}[data-vp-layout="tiles"] .vp-portfolio__item-img-wrap::before{content:"";display:block;margin-top:56%}[data-vp-layout="tiles"] .vp-portfolio__item-img img{width:100%;height:100%;-o-object-fit:cover;object-fit:cover;-o-object-position:50% 50%;object-position:50% 50%;font-family:"object-fit: cover; object-position: 50% 50%;"}[data-vp-layout="justified"] .vp-portfolio__items{transition:.2s height ease-in-out;will-change:height}[data-vp-layout="justified"] .vp-portfolio__item-wrap{float:left;top:0;left:0;transition:.2s transform ease-in-out, .2s width ease-in-out, .2s height ease-in-out;will-change:transform, width, height}[data-vp-layout="slider"] .vp-portfolio__item-wrap{float:none;width:auto}[data-vp-layout="slider"] .vp-portfolio__item-img-wrap{position:relative;display:block;overflow:hidden}[data-vp-layout="slider"] .vp-portfolio__item-img-wrap::before{content:"";display:block}[data-vp-layout="slider"] .vp-portfolio__item-img img{-o-object-fit:cover;object-fit:cover;-o-object-position:50% 50%;object-position:50% 50%;font-family:"object-fit: cover; object-position: 50% 50%;"}[data-vp-layout="slider"] .vp-portfolio__items-arrow{position:absolute;display:flex;align-items:center;justify-content:center;top:50%;width:40px;height:40px;margin-top:-20px;color:#6c7781;cursor:pointer;background-color:#fff;border-radius:50%;box-shadow:0 0 7px 2px rgba(0,0,0,0.04);opacity:.5;transition:.2s opacity ease-in-out, .2s box-shadow ease-in-out;will-change:opacity, box-shadow;z-index:1}[data-vp-layout="slider"] .vp-portfolio__items-arrow::after{content:"";position:absolute;display:block;top:-10px;right:-10px;bottom:-10px;left:-10px}[data-vp-layout="slider"] .vp-portfolio__items-arrow:hover{box-shadow:0 2px 15px 2px rgba(0,0,0,0.04);opacity:1}[data-vp-layout="slider"] .vp-portfolio__items-arrow-prev{left:10px}[data-vp-layout="slider"] .vp-portfolio__items-arrow-next{right:10px}[data-vp-layout="slider"][data-vp-slider-bullets="true"] .vp-portfolio__items-wrap{padding-bottom:25px}[data-vp-layout="slider"][data-vp-slider-bullets="true"] .vp-portfolio__items-wrap .vp-portfolio__items-arrow{margin-top:-32.5px}[data-vp-layout="slider"] .vp-portfolio__items-bullets{position:absolute;margin-bottom:-15px;text-align:center;z-index:1}[data-vp-layout="slider"] .vp-portfolio__items-bullets.swiper-pagination-bullets-dynamic{margin-bottom:-7px}[data-vp-layout="slider"] .vp-portfolio__items-bullets>span{position:relative;cursor:pointer;background-color:#6c7781;opacity:.2;transition:.15s opacity ease-in-out;will-change:opacity}[data-vp-layout="slider"] .vp-portfolio__items-bullets>span:hover{opacity:.5}[data-vp-layout="slider"] .vp-portfolio__items-bullets>span.swiper-pagination-bullet-active{opacity:1}[data-vp-layout="slider"] .vp-portfolio__items-bullets>span::after{content:"";position:absolute;display:block;top:-4px;right:-4px;bottom:-4px;left:-4px}.vp-portfolio.vp-portfolio__ready{min-height:initial}.vp-portfolio.vp-portfolio__ready .vp-portfolio__items-wrap,.vp-portfolio.vp-portfolio__ready .vp-portfolio__filter-wrap,.vp-portfolio.vp-portfolio__ready .vp-portfolio__pagination-wrap{visibility:visible;opacity:1}.vp-portfolio.vp-portfolio__ready .vp-portfolio__preloader-wrap{visibility:hidden;opacity:0}.vp-portfolio.vp-portfolio__ready .vp-portfolio__preloader-wrap .vp-portfolio__preloader{-webkit-animation:none;animation:none}.vp-single-filter.vp-single-filter__ready .vp-portfolio__filter-wrap{visibility:visible;opacity:1}.vp-portfolio.vp-portfolio__loading::before{content:"";position:absolute;display:block;top:0;right:0;bottom:0;left:0;z-index:1}.vp-portfolio.vp-portfolio__loading .vp-portfolio__items-wrap,.vp-portfolio.vp-portfolio__loading .vp-portfolio__filter-wrap,.vp-portfolio.vp-portfolio__loading .vp-portfolio__pagination-wrap{opacity:.5}.vp-portfolio__item-popup{display:none}.vp-pswp{z-index:1500}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{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{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{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.10.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__pagination-wrap,.vp-portfolio__item{position:relative;overflow:hidden}.vp-portfolio__items-wrap,.vp-portfolio__filter-wrap,.vp-portfolio__pagination-wrap{visibility:hidden;opacity:0;transition:.3s opacity, .3s visibility;will-change:opacity, visibility}.vp-portfolio__item-wrap{position:relative;float:left;width:33.333%}.vp-portfolio__item .vp-portfolio__item-img img,.vp-portfolio__item .vp-portfolio__item-img a{display:block;width:100%;height:auto}.vp-portfolio__item-img{position:relative}.vp-portfolio 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;width:auto}[data-vp-layout="slider"] .vp-portfolio__item-img-wrap{position:relative;display:block;overflow:hidden}[data-vp-layout="slider"] .vp-portfolio__item-img-wrap::before{content:"";display:block}[data-vp-layout="slider"] .vp-portfolio__item-img img{-o-object-fit:cover;object-fit:cover;-o-object-position:50% 50%;object-position:50% 50%;font-family:"object-fit: cover; object-position: 50% 50%;"}[data-vp-layout="slider"] .vp-portfolio__items-arrow{position:absolute;display:flex;align-items:center;justify-content:center;top:50%;width:40px;height:40px;margin-top:-20px;color:#6c7781;cursor:pointer;background-color:#fff;border-radius:50%;box-shadow:0 0 7px 2px rgba(0,0,0,0.04);opacity:.5;transition:.2s opacity ease-in-out, .2s box-shadow ease-in-out;will-change:opacity, box-shadow;z-index:1}[data-vp-layout="slider"] .vp-portfolio__items-arrow::after{content:"";position:absolute;display:block;top:-10px;right:-10px;bottom:-10px;left:-10px}[data-vp-layout="slider"] .vp-portfolio__items-arrow:hover{box-shadow:0 2px 15px 2px rgba(0,0,0,0.04);opacity:1}[data-vp-layout="slider"] .vp-portfolio__items-arrow-prev{left:10px}[data-vp-layout="slider"] .vp-portfolio__items-arrow-next{right:10px}[data-vp-layout="slider"][data-vp-slider-bullets="true"] .vp-portfolio__items-wrap{padding-bottom:25px}[data-vp-layout="slider"][data-vp-slider-bullets="true"] .vp-portfolio__items-wrap .vp-portfolio__items-arrow{margin-top:-32.5px}[data-vp-layout="slider"] .vp-portfolio__items-bullets{position:absolute;margin-bottom:-15px;text-align:center;z-index:1}[data-vp-layout="slider"] .vp-portfolio__items-bullets.swiper-pagination-bullets-dynamic{margin-bottom:-7px}[data-vp-layout="slider"] .vp-portfolio__items-bullets>span{position:relative;cursor:pointer;background-color:#6c7781;opacity:.2;transition:.15s opacity ease-in-out;will-change:opacity}[data-vp-layout="slider"] .vp-portfolio__items-bullets>span:hover{opacity:.5}[data-vp-layout="slider"] .vp-portfolio__items-bullets>span.swiper-pagination-bullet-active{opacity:1}[data-vp-layout="slider"] .vp-portfolio__items-bullets>span::after{content:"";position:absolute;display:block;top:-4px;right:-4px;bottom:-4px;left:-4px}.vp-portfolio.vp-portfolio__ready{min-height:initial}.vp-portfolio.vp-portfolio__ready .vp-portfolio__items-wrap,.vp-portfolio.vp-portfolio__ready .vp-portfolio__filter-wrap,.vp-portfolio.vp-portfolio__ready .vp-portfolio__pagination-wrap{visibility:visible;opacity:1}.vp-portfolio.vp-portfolio__ready .vp-portfolio__preloader-wrap{visibility:hidden;opacity:0}.vp-portfolio.vp-portfolio__ready .vp-portfolio__preloader-wrap .vp-portfolio__preloader{-webkit-animation:none;animation:none}.vp-single-filter.vp-single-filter__ready .vp-portfolio__filter-wrap{visibility:visible;opacity:1}.vp-portfolio.vp-portfolio__loading::before{content:"";position:absolute;display:block;top:0;right:0;bottom:0;left:0;z-index:1}.vp-portfolio.vp-portfolio__loading .vp-portfolio__items-wrap,.vp-portfolio.vp-portfolio__loading .vp-portfolio__filter-wrap,.vp-portfolio.vp-portfolio__loading .vp-portfolio__pagination-wrap{opacity:.5}.vp-portfolio__item-popup{display:none}.vp-pswp{z-index:1500}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{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{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{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=160)}({160:function(e,t,r){e.exports=r(161)},161:function(e,t){
2
  /*!
3
  * Name : Visual Portfolio
4
- * Version : 1.9.3
5
  * Author : nK https://nkdev.info
6
  */
7
  !function(e){var t=jQuery("#vp_preview > .vp-portfolio");t.on("click",".vp-portfolio__item, .vp-portfolio__item a",function(e){e.preventDefault(),e.stopPropagation()}),window.iFrameResizer={heightCalculationMethod:function(){return t.outerHeight(!0)}}}()}});
1
  !function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=160)}({160:function(e,t,r){e.exports=r(161)},161:function(e,t){
2
  /*!
3
  * Name : Visual Portfolio
4
+ * Version : 1.10.0
5
  * Author : nK https://nkdev.info
6
  */
7
  !function(e){var t=jQuery("#vp_preview > .vp-portfolio");t.on("click",".vp-portfolio__item, .vp-portfolio__item a",function(e){e.preventDefault(),e.stopPropagation()}),window.iFrameResizer={heightCalculationMethod:function(){return t.outerHeight(!0)}}}()}});
assets/js/script.min.js CHANGED
@@ -1,7 +1,7 @@
1
  !function(t){var i={};function e(o){if(i[o])return i[o].exports;var s=i[o]={i:o,l:!1,exports:{}};return t[o].call(s.exports,s,s.exports,e),s.l=!0,s.exports}e.m=t,e.c=i,e.d=function(t,i,o){e.o(t,i)||Object.defineProperty(t,i,{enumerable:!0,get:o})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,i){if(1&i&&(t=e(t)),8&i)return t;if(4&i&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(e.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&i&&"string"!=typeof t)for(var s in t)e.d(o,s,function(i){return t[i]}.bind(null,s));return o},e.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,i){return Object.prototype.hasOwnProperty.call(t,i)},e.p="",e(e.s=162)}({155:function(t,i,e){var o=e(164),s=o.requestAnimationFrame||o.webkitRequestAnimationFrame||o.mozRequestAnimationFrame||function(t){var i=+new Date,e=Math.max(0,16-(i-n)),o=setTimeout(t,e);return n=i,o},n=+new Date;var a=o.cancelAnimationFrame||o.webkitCancelAnimationFrame||o.mozCancelAnimationFrame||clearTimeout;Function.prototype.bind&&(s=s.bind(o),a=a.bind(o)),(t.exports=s).cancel=a},162:function(t,i,e){t.exports=e(163)},163:function(t,i,e){"use strict";e.r(i);var o=e(30),s=e(155),n=e.n(s);function a(t){return function(t){if(Array.isArray(t)){for(var i=0,e=new Array(t.length);i<t.length;i++)e[i]=t[i];return e}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function p(t,i){for(var e=0;e<i.length;e++){var o=i[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}
2
  /*!
3
  * Name : Visual Portfolio
4
- * Version : 1.9.3
5
  * Author : nK https://nkdev.info
6
  */
7
- var l=jQuery,d=window,c=d.VPData,f=d.objectFitImages,v=d.PhotoSwipe,h=d.PhotoSwipeUI_Default,u=c.__,m=c.settingsPopupGallery,_=l(window),y=0,w=0;function g(){y=_.width(),w=_.height()}g(),_.on("resize load orientationchange",g);var b=[320,576,768,992,1200];void 0!==f&&(f(".vp-portfolio img:not(.visual-portfolio-lazyload)"),l(document).on("lazybeforeunveil",function(t){var i=l(t.target);i.hasClass("visual-portfolio-lazyload")&&i.one("load",function(){f(i[0])})}));var x=function(){function t(i,e){!function(t,i){if(!(t instanceof i))throw new TypeError("Cannot call a class as a function")}(this,t);this.$item=i;for(var o=i[0].className.split(/\s+/),s=0;s<o.length;s++)o[s]&&/^vp-uid-/.test(o[s])&&(this.uid=o[s].replace(/^vp-uid-/,"")),o[s]&&/^vp-id-/.test(o[s])&&(this.id=o[s].replace(/^vp-id-/,""));this.uid?(this.$items_wrap=i.find(".vp-portfolio__items"),this.$pagination=i.find(".vp-portfolio__pagination-wrap"),this.$filter=i.find(".vp-portfolio__filter-wrap"),this.id&&(this.$filter=this.$filter.add(".vp-single-filter.vp-id-".concat(this.id," .vp-portfolio__filter-wrap"))),this.userOptions=e,this.firstRun=!0,this.init()):console.error(u.couldnt_retrieve_vp)}return function(t,i,e){i&&p(t.prototype,i),e&&p(t,e)}(t,[{key:"emitEvent",value:function(t,i){i=i?[this].concat(i):[this],this.$item.trigger("".concat(t,".vpf"),i),this.$item.trigger("".concat(t,".vpf-uid-").concat(this.uid),i)}},{key:"init",value:function(){this.firstRun||this.destroy(),this.destroyed=!1,this.initOptions(),this.initEvents(),this.prepareLazyLoad(),this.initLayout(),this.initCustomColors(),this.initPhotoswipe(),this.emitEvent("init"),this.$item.addClass("vp-portfolio__ready"),this.id&&l(".vp-single-filter.vp-id-".concat(this.id)).addClass("vp-single-filter__ready"),this.initIsotope(),this.initFjGallery(),this.initSwiper(),this.resized(),this.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"),this.destroyEvents(),this.removeStyle(),this.renderStyle(),this.destroyPhotoswipe(),this.destroyIsotope(),this.destroyFjGallery(),this.destroySwiper(),this.emitEvent("destroy"),this.destroyed=!0}},{key:"addStyle",value:function(t,i,e){e=e||"";var o=this.uid;this.stylesList||(this.stylesList={}),void 0===this.stylesList[o]&&(this.stylesList[o]={}),void 0===this.stylesList[o][e]&&(this.stylesList[o][e]={}),void 0===this.stylesList[o][e][t]&&(this.stylesList[o][e][t]={}),this.stylesList[o][e][t]=l.extend(this.stylesList[o][e][t],i),this.emitEvent("addStyle",[t,i,e,this.stylesList])}},{key:"removeStyle",value:function(t,i,e){e=e||"";var o=this.uid;this.stylesList||(this.stylesList={}),void 0===this.stylesList[o]||t||(this.stylesList[o]={}),void 0!==this.stylesList[o]&&void 0!==this.stylesList[o][e]&&void 0!==this.stylesList[o][e][t]&&t&&delete this.stylesList[o][e][t],this.emitEvent("removeStyle",[t,i,this.stylesList])}},{key:"renderStyle",value:function(){var t=this,i=t.uid,e="";t.stylesList||(t.stylesList={}),void 0!==t.stylesList[i]&&Object.keys(t.stylesList[i]).forEach(function(o){o&&(e+="@media ".concat(o," {")),Object.keys(t.stylesList[i][o]).forEach(function(s){e+=".vp-uid-".concat(i," ").concat(s," {"),Object.keys(t.stylesList[i][o][s]).forEach(function(n){e+="".concat(n,":").concat(t.stylesList[i][o][s][n],";")}),e+="}"}),o&&(e+="}")});var o=l("#vp-style-".concat(i));o.length||(o=l("<style>").attr("id","vp-style-".concat(i)).appendTo("head")),o.html(e),t.emitEvent("renderStyle",[e,t.stylesList,o])}},{key:"firstToLowerCase",value:function(t){return t.substr(0,1).toLowerCase()+t.substr(1)}},{key:"initOptions",value:function(t){var i=this;i.defaults={layout:"tile",itemsGap:0,tilesType:"3|1,1|",masonryColumns:3,justifiedRowHeight:250,justifiedRowHeightTolerance:.25,pagination:"load-more"},t&&(i.userOptions=t);var e=i.$item[0].dataset,o={};Object.keys(e).forEach(function(t){t&&"vp"===t.substring(0,2)&&(o[i.firstToLowerCase(t.substring(2))]=e[t])}),i.options=l.extend({},i.defaults,o,i.userOptions),i.emitEvent("initOptions")}},{key:"isCrossLine",value:function(t,i,e,o){var s=(o.x-e.x)*(t.y-e.y)-(o.y-e.y)*(t.x-e.x),n=(o.x-e.x)*(i.y-e.y)-(o.y-e.y)*(i.x-e.x),a=(i.x-t.x)*(e.y-t.y)-(i.y-t.y)*(e.x-t.x),r=(i.x-t.x)*(o.y-t.y)-(i.y-t.y)*(o.x-t.x);return s*n<=0&&a*r<=0}},{key:"initEvents",value:function(){var t,i=this,e=".vpf-uid-".concat(i.uid);function o(){var t=i.$item[0].getBoundingClientRect(),e=t.left,o=y-t.right,s=parseFloat(i.$item.css("margin-left")||0),n=parseFloat(i.$item.css("margin-right")||0);i.$item.css({"margin-left":s-e,"margin-right":n-o})}if(i.$item.hasClass("vp-portfolio__stretch")&&(_.on("load".concat(e," resize").concat(e," orientationchange").concat(e),function(){o()}),o()),"fly"===i.options.itemsStyle){var s={};_.on("mousemove".concat(e),function(t){s={x:t.clientX,y:t.clientY}}),i.$item.on("mouseenter".concat(e," mouseleave").concat(e),".vp-portfolio__item",function(t){var e=l(this),o=e[0].getBoundingClientRect(),n=e.find(".vp-portfolio__item-overlay"),a="mouseenter"===t.type,r="0%",p="0%",d={x:t.clientX,y:t.clientY},c=i.isCrossLine({x:o.left,y:o.top},{x:o.left+o.width,y:o.top},d,s),f=i.isCrossLine({x:o.left,y:o.top+o.height},{x:o.left+o.width,y:o.top+o.height},d,s),v=i.isCrossLine({x:o.left,y:o.top},{x:o.left,y:o.top+o.height},d,s),h=i.isCrossLine({x:o.left+o.width,y:o.top},{x:o.left+o.width,y:o.top+o.height},d,s);if(!(c||f||v||h)){var u=(o.width/2-d.x+o.left)/(o.width/2),m=(o.height/2-d.y+o.top)/(o.height/2);Math.abs(u)>Math.abs(m)?u>0?v=!0:h=!0:m>0?c=!0:f=!0}c?p="-10".concat(p):f?p="10".concat(p):v?r="-10".concat(r):h&&(r="10".concat(r)),a&&(n.css({transition:"none",transform:"translateX(".concat(r,") translateY(").concat(p,") translateZ(0)")}),n[0].offsetHeight),n.css({transition:".2s transform ease-in-out",transform:"translateX(".concat(a?"0%":r,") translateY(").concat(a?"0%":p,") translateZ(0)")})})}i.$filter.on("click".concat(e),".vp-filter .vp-filter__item a",function(t){t.preventDefault();var e=l(this);i.loading||e.closest(".vp-filter__item").addClass("vp-filter__item-active").siblings().removeClass("vp-filter__item-active"),i.loadNewItems(e.attr("href"),!0)}),i.$item.on("click".concat(e),".vp-pagination .vp-pagination__item a",function(t){t.preventDefault();var e=l(this);e.hasClass("vp-pagination__no-more")&&"paged"!==i.options.pagination||i.loadNewItems(e.attr("href"),"paged"===i.options.pagination)}),i.$item.on("click".concat(e),".vp-portfolio__items .vp-portfolio__item-meta-category a",function(t){t.preventDefault(),t.stopPropagation(),i.loadNewItems(l(this).attr("href"),!0)});var n=250;function a(){var t=i.$item[0].getBoundingClientRect();t.bottom>0&&t.bottom-n<=w&&i.loadNewItems(i.options.nextPageUrl,!1,function(){a()})}"infinite"===i.options.pagination&&(_.on("load".concat(e," scroll").concat(e," resize").concat(e," orientationchange").concat(e),function(){clearTimeout(t),t=setTimeout(function(){a()},60)}),a()),i.$item.on("transitionend".concat(e),".vp-portfolio__items",function(t){t.currentTarget===t.target&&i.resized()}),i.emitEvent("initEvents")}},{key:"destroyEvents",value:function(){var t=".vpf-uid-".concat(this.uid);this.$item.off(t),this.$filter.off(t),_.off(t),this.emitEvent("destroyEvents")}},{key:"prepareLazyLoad",value:function(){var t=window.lazySizesConfig;if(t){var i={"data-vpf-src":t.srcAttr,"data-vpf-sizes":t.sizesAttr,"data-vpf-srcset":t.srcsetAttr};this.$items_wrap.find(".visual-portfolio-lazyload:not(.".concat(t.lazyClass,")")).each(function(){var e=l(this);Object.keys(i).forEach(function(t){i[t]&&t!==i[t]&&e.attr(t)&&(e.attr(i[t],e.attr(t)),e.removeAttr(t))}),e.addClass(t.lazyClass)})}}},{key:"getTilesSettings",value:function(){var t=this.options.tilesType.split(/[:|]/);return void 0===t[t.length-1]||t[t.length-1]||t.pop(),t}},{key:"initLayout",value:function(){if(this.options.layout)switch(this.options.layout){case"tiles":var t=this.getTilesSettings(),i=parseInt(t[0],10)||1;if(t.shift(),this.addStyle(".vp-portfolio__item-wrap",{width:"".concat(100/i,"%")}),t&&t.length)for(var e=0;e<t.length;e++){var o=t[e].split(","),s=parseFloat(o[0])||1,n=parseFloat(o[1])||1,a=".vp-portfolio__item-wrap";t.length>1&&(a+=":nth-of-type(".concat(t.length,"n+").concat(e+1,")")),s&&1!==s&&this.addStyle(a,{width:"".concat(100*s/i,"%")}),this.addStyle("".concat(a," .vp-portfolio__item-img-wrap::before"),{"margin-top":"".concat(100*n,"%")})}for(var r=i-1,p=Math.min(b.length-1,r);p>=0;p--)r>0&&void 0!==b[p]&&(this.addStyle(".vp-portfolio__item-wrap",{width:"".concat(100/r,"%")},"screen and (max-width: ".concat(b[p],"px)")),this.addStyle(".vp-portfolio__item-wrap:nth-of-type(n)",{width:"".concat(100/r,"%")},"screen and (max-width: ".concat(b[p],"px)"))),r-=1;break;case"masonry":this.addStyle(".vp-portfolio__item-wrap",{width:"".concat(100/this.options.masonryColumns,"%")});for(var l=this.options.masonryColumns-1,d=Math.min(b.length-1,l);d>=0;d--)l>0&&void 0!==b[d]&&this.addStyle(".vp-portfolio__item-wrap",{width:"".concat(100/l,"%")},"screen and (max-width: ".concat(b[d],"px)")),l-=1;case"justified":break;case"slider":"auto"!==this.options.sliderItemsHeight&&("auto"===this.options.sliderSlidesPerView?this.options.sliderItemsHeight.indexOf("%")===this.options.sliderItemsHeight.length-1?(this.addStyle(".vp-portfolio__items-wrap::before",{content:'""',display:"block",width:"100%","margin-top":isNaN(this.options.sliderItemsHeight)?this.options.sliderItemsHeight:"".concat(this.options.sliderItemsHeight,"px")}),this.addStyle(".vp-portfolio__items",{position:"absolute",top:0,left:0,right:0,bottom:0}),this.addStyle(".vp-portfolio__item-wrap",{height:"true"===this.options.sliderBullets?"calc( 100% - 25px )":"100%"}),this.addStyle(".vp-portfolio__item, .vp-portfolio__item-img-wrap, .vp-portfolio__item-img, .vp-portfolio__item-wrap .vp-portfolio__item .vp-portfolio__item-img a, .vp-portfolio__item-wrap .vp-portfolio__item .vp-portfolio__item-img img",{width:"auto",height:"100%"})):this.addStyle(".vp-portfolio__item .vp-portfolio__item-img img",{width:"auto",height:isNaN(this.options.sliderItemsHeight)?this.options.sliderItemsHeight:"".concat(this.options.sliderItemsHeight,"px")}):(this.addStyle(".vp-portfolio__item-img-wrap::before",{"margin-top":isNaN(this.options.sliderItemsHeight)?this.options.sliderItemsHeight:"".concat(this.options.sliderItemsHeight,"px")}),this.addStyle(".vp-portfolio__item-img img",{position:"absolute",top:0,right:0,bottom:0,left:0}),this.addStyle(".vp-portfolio__item-img",{position:"absolute",top:0,right:0,bottom:0,left:0}),this.addStyle(".vp-portfolio__item .vp-portfolio__item-img img",{width:"100%",height:"100%"})))}var c=parseInt(this.options.itemsGap,10);if(c&&("tiles"===this.options.layout||"masonry"===this.options.layout)){this.addStyle(".vp-portfolio__items",{"margin-left":"-".concat(c,"px"),"margin-top":"-".concat(c,"px")});var f="".concat(c,"px");this.addStyle(".vp-portfolio__item-wrap .vp-portfolio__item",{"margin-left":f,"margin-top":f}),"tiles"===this.options.layout&&(this.addStyle(".vp-portfolio__item-wrap .vp-portfolio__item-img-wrap",{"margin-left":"-".concat(f),"margin-top":"-".concat(f)}),this.addStyle(".vp-portfolio__item-wrap .vp-portfolio__item-img",{left:f,top:f}))}this.renderStyle(),this.emitEvent("initLayout")}},{key:"initCustomColors",value:function(){var t=this;t.$item.find("[data-vp-bg-color]").each(function(){var i=l(this).attr("data-vp-bg-color");t.addStyle('[data-vp-bg-color="'.concat(i,'"]'),{"background-color":"".concat(i," !important")})}),t.$item.find("[data-vp-text-color]").each(function(){var i=l(this).attr("data-vp-text-color");t.addStyle('[data-vp-text-color="'.concat(i,'"]'),{color:"".concat(i," !important")})}),t.renderStyle(),t.emitEvent("initCustomColors")}},{key:"initIsotope",value:function(t){!this.$items_wrap.isotope||"tiles"!==this.options.layout&&"masonry"!==this.options.layout||(this.$items_wrap.isotope(t||{itemSelector:".vp-portfolio__item-wrap",layoutMode:"masonry",transitionDuration:"0.3s",percentPosition:!0}),this.emitEvent("initIsotope",[t]))}},{key:"destroyIsotope",value:function(){this.$items_wrap.data("isotope")&&(this.$items_wrap.isotope("destroy"),this.emitEvent("destroyIsotope"))}},{key:"initFjGallery",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.$items_wrap.fjGallery&&"justified"===this.options.layout&&(this.$items_wrap.fjGallery(!1!==t?t:{gutter:parseFloat(this.options.itemsGap)||0,rowHeight:parseFloat(this.options.justifiedRowHeight)||200,rowHeightTolerance:parseFloat(this.options.justifiedRowHeightTolerance)||0,itemSelector:".vp-portfolio__item-wrap",imageSelector:".vp-portfolio__item-img img"},i),this.emitEvent("initFjGallery",[t]))}},{key:"destroyFjGallery",value:function(){this.$items_wrap.data("fjGallery")&&(this.$items_wrap.fjGallery("destroy"),this.emitEvent("destroyFjGallery"))}},{key:"initSwiper",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if("slider"===this.options.layout&&void 0!==window.Swiper){var i=this.$items_wrap.parent();i.addClass("swiper-container"),this.$items_wrap.addClass("swiper-wrapper"),this.$items_wrap.children().addClass("swiper-slide"),"true"!==this.options.sliderArrows||i.find(".vp-portfolio__items-arrow").length||i.append('\n <div class="vp-portfolio__items-arrow vp-portfolio__items-arrow-prev"><span class="'.concat(this.options.sliderArrowsIconPrev,'"></span></div>\n <div class="vp-portfolio__items-arrow vp-portfolio__items-arrow-next"><span class="').concat(this.options.sliderArrowsIconNext,'"></span></div>\n ')),"true"!==this.options.sliderBullets||i.find(".vp-portfolio__items-bullets").length||i.append('<div class="vp-portfolio__items-bullets"></div>');var e=this.options.sliderSlidesPerView||3,o={};if(!isNaN(e))for(var s=e-1,n=Math.min(b.length-1,s);n>=0;n--)s>0&&void 0!==b[n]&&(o[b[n]]={slidesPerView:s}),s-=1;0===(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,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}).speed&&(t.speed=1);var a=0;t.on={transitionEnd:function(){0===a?(a=1,this.setTransition(1),this.setTranslate(this.translate+.1)):1===a&&(a=2,this.slideReset())}},new window.Swiper(i[0],t),this.emitEvent("initSwiper",[t])}}},{key:"destroySwiper",value:function(){var t=this.$items_wrap.parent(),i=t[0].swiper;i&&(i.destroy(),t.removeClass("swiper-container"),this.$items_wrap.removeClass("swiper-wrapper"),this.$items_wrap.children().removeClass("swiper-slide"),t.find(".vp-portfolio__items-arrow, .vp-portfolio__items-bullets").remove(),this.emitEvent("destroySwiper"))}},{key:"initPhotoswipe",value:function(){var t=this;if(void 0!==v&&t.options.itemsClickAction&&"popup_gallery"===t.options.itemsClickAction&&!t.$item.closest("#vp_preview").length){if(!l(".vp-pswp").length){var i='\n <div class="pswp vp-pswp vp-pswp-uid-'.concat(t.uid,'" tabindex="-1" role="dialog" aria-hidden="true">\n <div class="pswp__bg"></div>\n <div class="pswp__scroll-wrap">\n <div class="pswp__container">\n <div class="pswp__item"></div>\n <div class="pswp__item"></div>\n <div class="pswp__item"></div>\n </div>\n <div class="pswp__ui pswp__ui--hidden">\n <div class="pswp__top-bar">\n <div class="pswp__counter"></div>\n <a class="pswp__button pswp__button--close" title="').concat(u.pswp_close,'"></a>\n <a class="pswp__button pswp__button--share" title="').concat(u.pswp_share,'"></a>\n <a class="pswp__button pswp__button--fs" title="').concat(u.pswp_fs,'"></a>\n <a class="pswp__button pswp__button--zoom" title="').concat(u.pswp_zoom,'"></a>\n </div>\n <div class="pswp__preloader">\n <div class="pswp__preloader__icn">\n <div class="pswp__preloader__cut">\n <div class="pswp__preloader__donut"></div>\n </div>\n </div>\n </div>\n <div class="pswp__share-modal pswp__share-modal--hidden pswp__single-tap">\n <div class="pswp__share-tooltip"></div>\n </div>\n <a class="pswp__button pswp__button--arrow--left" title="').concat(u.pswp_prev,'"></a>\n <a class="pswp__button pswp__button--arrow--right" title="').concat(u.pswp_next,'"></a>\n <div class="pswp__caption">\n <div class="pswp__caption__center"></div>\n </div>\n </div>\n </div>\n </div>\n ');l("body").append(i)}var e=function(i,e,o,n){var a=l(".vp-pswp")[0],r=function(t){var i,e,o,s,n,a=[];return l(t).find(".vp-portfolio__item-wrap").each(function(){if(i=l(this).find(".vp-portfolio__item-popup"),e=(i.attr("data-vp-popup-img-size")||"1920x1080").split("x"),o=(i.attr("data-vp-popup-video-size")||"1920x1080").split("x"),n=i.attr("data-vp-popup-video"))s={html:n,vw:parseInt(o[0],10),vh:parseInt(o[1],10)};else{s={src:i.attr("data-vp-popup-img"),w:parseInt(e[0],10),h:parseInt(e[1],10)};var t=i.html();t&&(s.title=t),s.el=this;var r=i.attr("data-vp-popup-md-img")||s.src;r&&(e=(i.attr("data-vp-popup-md-img-size")||i.attr("data-vp-popup-img-size")||"1920x1080").split("x"),s.m={src:r,w:parseInt(e[0],10),h:parseInt(e[1],10)}),s.o={src:s.src,w:s.w,h:s.h}}a.push(s)}),a}(e),p={captionAndToolbarShowEmptyCaptions:!1,closeEl:m.show_close_button,captionEl:m.show_caption,fullscreenEl:m.show_fullscreen_button,zoomEl:m.show_zoom_button,shareEl:m.show_share_button,counterEl:m.show_counter,arrowEl:m.show_arrows,shareButtons:[{id:"facebook",label:u.pswp_share_fb,url:"https://www.facebook.com/sharer/sharer.php?u={{url}}"},{id:"twitter",label:u.pswp_share_tw,url:"https://twitter.com/intent/tweet?text={{text}}&url={{url}}"},{id:"pinterest",label:u.pswp_share_pin,url:"https://www.pinterest.com/pin/create/button/?url={{url}}&media={{image_url}}&description={{text}}"}],bgOpacity:1,tapToClose:!0,tapToToggleControls:!1,showHideOpacity:!0,galleryUID:t.uid};if(n)if(p.galleryPIDs){for(var d=0;d<r.length;d++)if(r[d].pid===i){p.index=d;break}}else p.index=parseInt(i,10)-1;else p.index=parseInt(i,10);if(!isNaN(p.index)){o&&(p.showAnimationDuration=0);var c,f,_=new v(a,h,r,p),y=!1,w=!0;_.listen("beforeResize",function(){c=_.viewportSize.x*window.devicePixelRatio,y&&c<1e3?(y=!1,f=!0):!y&&c>=1e3&&(y=!0,f=!0),f&&!w&&_.invalidateCurrItems(),w&&(w=!1),f=!1}),_.listen("gettingData",function(t,i){i.html||(y?(i.src=i.o.src,i.w=i.o.w,i.h=i.o.h):(i.src=i.m.src,i.w=i.m.w,i.h=i.m.h))}),_.listen("resize",function(){s(this)}),_.listen("afterChange",function(){s(this)}),_.listen("beforeChange",function(){if(this&&this.itemHolders.length){var t=this.getCurrentIndex();this.itemHolders.forEach(function(i){if(i.el&&i.index!==t){var e=l(i.el).find(".vp-pswp-video iframe");e.length&&e.attr("src",e.attr("src"))}})}}),_.listen("destroy",function(){this&&this.itemHolders.length&&this.itemHolders.forEach(function(t){t.el&&l(t.el).find(".vp-pswp-video").remove()})}),_.init()}};t.$item.on("click.vpf-uid-".concat(t.uid),".vp-portfolio__item",function(i){i.preventDefault();var o=0,s=this;t.$item.find(".vp-portfolio__item").each(function(t){return this!==s||(o=t,!1)}),e(o,t.$item[0])});var o=function(){var t=window.location.hash.substring(1),i={};if(t.length<5)return i;for(var e=t.split("&"),o=0;o<e.length;o++)if(e[o]){var s=e[o].split("=");s.length<2||(i[s[0]]=s[1])}return i}();o.pid&&o.gid===t.uid&&e(o.pid,t.$item[0],!0,!0)}function s(t,i){if(void 0!==i){var e,o=t.viewportSize.x,n=t.viewportSize.y,a=i.vw/i.vh,r=l(i.container),p=t.options.barsSize,d=0,c=0;p&&(d=p.top&&"auto"!==p.top?p.top:0,c=p.bottom&&"auto"!==p.bottom?p.bottom:0),e=a>o/(n-=d+c)?o:n*a,r.find(".vp-pswp-video").css("max-width",e),r.css({top:d,bottom:c})}else t&&t.itemHolders.length&&t.itemHolders.forEach(function(i){i.item&&i.item.html&&s(t,i.item)})}}},{key:"destroyPhotoswipe",value:function(){this.$item.off("click.vpf-uid-".concat(this.uid)),l(".vp-pswp-uid-".concat(this.uid)).remove()}},{key:"addItems",value:function(t,i){var e=this,o=e.$items_wrap.data("isotope"),s=e.$items_wrap.data("fjGallery"),n=e.$items_wrap.parent()[0].swiper;if(o){if(i){var a=e.$items_wrap.find(".vp-portfolio__item-wrap");e.$items_wrap.isotope("remove",a),e.$items_wrap.prepend(t).isotope("prepended",t)}else e.$items_wrap.append(t).isotope("appended",t);setTimeout(function(){e.initIsotope("layout")},0)}else if(s)i?(e.destroyFjGallery(),e.$items_wrap.find(".vp-portfolio__item-wrap").remove(),e.$items_wrap.prepend(t),e.initFjGallery()):(e.$items_wrap.append(t),e.initFjGallery("appendImages",t));else if(n){i&&n.removeAllSlides();var r=[];t.addClass("swiper-slide").each(function(){r.push(this)}),n.appendSlide(r)}e.emitEvent("addItems",[t,i])}},{key:"removeItems",value:function(t){this.$items_wrap.data("isotope")&&this.$items_wrap.isotope("remove",t),this.emitEvent("removeItems",[t])}},{key:"loadNewItems",value:function(t,i,e){var o=this;!o.loading&&t&&(o.loading=!0,o.$item.addClass("vp-portfolio__loading"),o.emitEvent("startLoadingNewItems",[t]),l.get(t,{},function(t){t=t.replace("<body",'<body><div id="vp-infinite-load-body"').replace("</body>","</div></body>");var s=l(t).filter("#vp-infinite-load-body"),n=s.find(".vp-portfolio.vp-uid-".concat(o.uid));if(n.length){var a=n.find(".vp-portfolio__items").html();o.$filter.length&&o.$filter.each(function(){var t=l(this),i="";i=t.parent().hasClass("vp-single-filter")?s.find('[class="'.concat(t.parent().attr("class").replace(" vp-single-filter__ready",""),'"] .vp-portfolio__filter-wrap')).html():n.find(".vp-portfolio__filter-wrap").html(),t.html(i)}),o.$pagination.length&&o.$pagination.html(n.find(".vp-portfolio__pagination-wrap").html()),o.addItems(l(a),i),o.emitEvent("loadedNewItems",[n,n,t])}var r=n.attr("data-vp-next-page-url");o.options.nextPageUrl=r,o.$item.attr("data-vp-next-page-url",r),o.$item.removeClass("vp-portfolio__loading"),o.loading=!1,o.emitEvent("endLoadingNewItems"),o.prepareLazyLoad(),o.initCustomColors(),e&&e()}))}}]),t}();l(document).on("lazybeforeunveil",function(t){var i=l(t.target);i.hasClass("visual-portfolio-lazyload")&&i.closest(".vp-portfolio__item-img").addClass("vp-portfolio__item-img-lazyloading")}),l(document).on("lazyloaded",function(t){var i=l(t.target);i.hasClass("visual-portfolio-lazyload")&&i.closest(".vp-portfolio__item-img-lazyloading").removeClass("vp-portfolio__item-img-lazyloading")});var S=function(t){var i,e=Array.prototype.slice.call(arguments,1);return this.each(function(){if(void 0===i)if("object"===r(t)||void 0===t)this.vpf||(this.vpf=new x(l(this),t));else if(this.vpf){var o;i=(o=this.vpf)[t].apply(o,a(e))}}),void 0!==i?i:this};S.constructor=x;var $=jQuery.fn.vpf;jQuery.fn.vpf=S,jQuery.fn.vpf.noConflict=function(){return jQuery.fn.vpf=$,this},l(".vp-portfolio").vpf(),l(function(){l(".vp-portfolio").vpf()});var C=Object(o.b)(200,function(){n()(function(){l(".vp-portfolio:not(.vp-portfolio__ready)").vpf()})});window.MutationObserver?new window.MutationObserver(C).observe(document.documentElement,{childList:!0,subtree:!0}):l(document).on("DOMContentLoaded DOMNodeInserted load",function(){C()})},164:function(t,i,e){(function(i){var e;e="undefined"!=typeof window?window:void 0!==i?i:"undefined"!=typeof self?self:{},t.exports=e}).call(this,e(59))},30:function(t,i,e){"use strict";function o(t,i,e,o){var s,n=0;return"boolean"!=typeof i&&(o=e,e=i,i=void 0),function(){var a=this,r=Number(new Date)-n,p=arguments;function l(){n=Number(new Date),e.apply(a,p)}o&&!s&&l(),s&&clearTimeout(s),void 0===o&&r>t?l():!0!==i&&(s=setTimeout(o?function(){s=void 0}:l,void 0===o?t-r:t))}}function s(t,i,e){return void 0===e?o(t,i,!1):o(t,e,!1!==i)}e.d(i,"b",function(){return o}),e.d(i,"a",function(){return s})},59:function(t,i){var e;e=function(){return this}();try{e=e||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(e=window)}t.exports=e}});
1
  !function(t){var i={};function e(o){if(i[o])return i[o].exports;var s=i[o]={i:o,l:!1,exports:{}};return t[o].call(s.exports,s,s.exports,e),s.l=!0,s.exports}e.m=t,e.c=i,e.d=function(t,i,o){e.o(t,i)||Object.defineProperty(t,i,{enumerable:!0,get:o})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,i){if(1&i&&(t=e(t)),8&i)return t;if(4&i&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(e.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&i&&"string"!=typeof t)for(var s in t)e.d(o,s,function(i){return t[i]}.bind(null,s));return o},e.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,i){return Object.prototype.hasOwnProperty.call(t,i)},e.p="",e(e.s=162)}({155:function(t,i,e){var o=e(164),s=o.requestAnimationFrame||o.webkitRequestAnimationFrame||o.mozRequestAnimationFrame||function(t){var i=+new Date,e=Math.max(0,16-(i-n)),o=setTimeout(t,e);return n=i,o},n=+new Date;var a=o.cancelAnimationFrame||o.webkitCancelAnimationFrame||o.mozCancelAnimationFrame||clearTimeout;Function.prototype.bind&&(s=s.bind(o),a=a.bind(o)),(t.exports=s).cancel=a},162:function(t,i,e){t.exports=e(163)},163:function(t,i,e){"use strict";e.r(i);var o=e(30),s=e(155),n=e.n(s);function a(t){return function(t){if(Array.isArray(t)){for(var i=0,e=new Array(t.length);i<t.length;i++)e[i]=t[i];return e}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function p(t,i){for(var e=0;e<i.length;e++){var o=i[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}
2
  /*!
3
  * Name : Visual Portfolio
4
+ * Version : 1.10.0
5
  * Author : nK https://nkdev.info
6
  */
7
+ var l=jQuery,d=window,c=d.VPData,f=d.objectFitImages,v=d.PhotoSwipe,h=d.PhotoSwipeUI_Default,u=c.__,m=c.settingsPopupGallery,_=l(window),y=0,w=0;function g(){y=_.width(),w=_.height()}g(),_.on("resize load orientationchange",g);var b=[320,576,768,992,1200];void 0!==f&&(f(".vp-portfolio img:not(.visual-portfolio-lazyload)"),l(document).on("lazybeforeunveil",function(t){var i=l(t.target);i.hasClass("visual-portfolio-lazyload")&&i.one("load",function(){f(i[0])})}));var x=function(){function t(i,e){!function(t,i){if(!(t instanceof i))throw new TypeError("Cannot call a class as a function")}(this,t);this.$item=i;for(var o=i[0].className.split(/\s+/),s=0;s<o.length;s++)o[s]&&/^vp-uid-/.test(o[s])&&(this.uid=o[s].replace(/^vp-uid-/,"")),o[s]&&/^vp-id-/.test(o[s])&&(this.id=o[s].replace(/^vp-id-/,""));this.uid?(this.$items_wrap=i.find(".vp-portfolio__items"),this.$pagination=i.find(".vp-portfolio__pagination-wrap"),this.$filter=i.find(".vp-portfolio__filter-wrap"),this.id&&(this.$filter=this.$filter.add(".vp-single-filter.vp-id-".concat(this.id," .vp-portfolio__filter-wrap"))),this.userOptions=e,this.firstRun=!0,this.init()):console.error(u.couldnt_retrieve_vp)}return function(t,i,e){i&&p(t.prototype,i),e&&p(t,e)}(t,[{key:"emitEvent",value:function(t,i){i=i?[this].concat(i):[this],this.$item.trigger("".concat(t,".vpf"),i),this.$item.trigger("".concat(t,".vpf-uid-").concat(this.uid),i)}},{key:"init",value:function(){this.firstRun||this.destroy(),this.destroyed=!1,this.initOptions(),this.initEvents(),this.prepareLazyLoad(),this.initLayout(),this.initCustomColors(),this.initPhotoswipe(),this.emitEvent("init"),this.$item.addClass("vp-portfolio__ready"),this.id&&l(".vp-single-filter.vp-id-".concat(this.id)).addClass("vp-single-filter__ready"),this.initIsotope(),this.initFjGallery(),this.initSwiper(),this.resized(),this.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"),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=y-t.right,s=parseFloat(i.$item.css("margin-left")||0),n=parseFloat(i.$item.css("margin-right")||0);i.$item.css({"margin-left":s-e,"margin-right":n-o})}if(i.$item.hasClass("vp-portfolio__stretch")&&(_.on("load".concat(e," resize").concat(e," orientationchange").concat(e),function(){o()}),o()),"fly"===i.options.itemsStyle){var s={};_.on("mousemove".concat(e),function(t){s={x:t.clientX,y:t.clientY}}),i.$item.on("mouseenter".concat(e," mouseleave").concat(e),".vp-portfolio__item",function(t){var e=l(this),o=e[0].getBoundingClientRect(),n=e.find(".vp-portfolio__item-overlay"),a="mouseenter"===t.type,r="0%",p="0%",d={x:t.clientX,y:t.clientY},c=i.isCrossLine({x:o.left,y:o.top},{x:o.left+o.width,y:o.top},d,s),f=i.isCrossLine({x:o.left,y:o.top+o.height},{x:o.left+o.width,y:o.top+o.height},d,s),v=i.isCrossLine({x:o.left,y:o.top},{x:o.left,y:o.top+o.height},d,s),h=i.isCrossLine({x:o.left+o.width,y:o.top},{x:o.left+o.width,y:o.top+o.height},d,s);if(!(c||f||v||h)){var u=(o.width/2-d.x+o.left)/(o.width/2),m=(o.height/2-d.y+o.top)/(o.height/2);Math.abs(u)>Math.abs(m)?u>0?v=!0:h=!0:m>0?c=!0:f=!0}c?p="-10".concat(p):f?p="10".concat(p):v?r="-10".concat(r):h&&(r="10".concat(r)),a&&(n.css({transition:"none",transform:"translateX(".concat(r,") translateY(").concat(p,") translateZ(0)")}),n[0].offsetHeight),n.css({transition:".2s transform ease-in-out",transform:"translateX(".concat(a?"0%":r,") translateY(").concat(a?"0%":p,") translateZ(0)")})})}i.$filter.on("click".concat(e),".vp-filter .vp-filter__item a",function(t){t.preventDefault();var e=l(this);i.loading||e.closest(".vp-filter__item").addClass("vp-filter__item-active").siblings().removeClass("vp-filter__item-active"),i.loadNewItems(e.attr("href"),!0)}),i.$item.on("click".concat(e),".vp-pagination .vp-pagination__item a",function(t){t.preventDefault();var e=l(this);e.hasClass("vp-pagination__no-more")&&"paged"!==i.options.pagination||i.loadNewItems(e.attr("href"),"paged"===i.options.pagination)}),i.$item.on("click".concat(e),".vp-portfolio__items .vp-portfolio__item-meta-category a",function(t){t.preventDefault(),t.stopPropagation(),i.loadNewItems(l(this).attr("href"),!0)});var n=250;function a(){var t=i.$item[0].getBoundingClientRect();t.bottom>0&&t.bottom-n<=w&&i.loadNewItems(i.options.nextPageUrl,!1,function(){a()})}"infinite"===i.options.pagination&&(_.on("load".concat(e," scroll").concat(e," resize").concat(e," orientationchange").concat(e),function(){clearTimeout(t),t=setTimeout(function(){a()},60)}),a()),i.$item.on("transitionend".concat(e),".vp-portfolio__items",function(t){t.currentTarget===t.target&&i.resized()}),i.emitEvent("initEvents")}},{key:"destroyEvents",value:function(){var t=".vpf-uid-".concat(this.uid);this.$item.off(t),this.$filter.off(t),_.off(t),this.emitEvent("destroyEvents")}},{key:"prepareLazyLoad",value:function(){var t=window.lazySizesConfig;if(t){var i={"data-vpf-src":t.srcAttr,"data-vpf-sizes":t.sizesAttr,"data-vpf-srcset":t.srcsetAttr};this.$items_wrap.find(".visual-portfolio-lazyload:not(.".concat(t.lazyClass,")")).each(function(){var e=l(this);Object.keys(i).forEach(function(t){i[t]&&t!==i[t]&&e.attr(t)&&(e.attr(i[t],e.attr(t)),e.removeAttr(t))}),e.addClass(t.lazyClass)})}}},{key:"getTilesSettings",value:function(){var t=this.options.tilesType.split(/[:|]/);return void 0===t[t.length-1]||t[t.length-1]||t.pop(),t}},{key:"initLayout",value:function(){if(this.options.layout)switch(this.options.layout){case"tiles":var t=this.getTilesSettings(),i=parseInt(t[0],10)||1;if(t.shift(),this.addStyle(".vp-portfolio__item-wrap",{width:"".concat(100/i,"%")}),t&&t.length)for(var e=0;e<t.length;e++){var o=t[e].split(","),s=parseFloat(o[0])||1,n=parseFloat(o[1])||1,a=".vp-portfolio__item-wrap";t.length>1&&(a+=":nth-of-type(".concat(t.length,"n+").concat(e+1,")")),s&&1!==s&&this.addStyle(a,{width:"".concat(100*s/i,"%")}),this.addStyle("".concat(a," .vp-portfolio__item-img-wrap::before"),{"margin-top":"".concat(100*n,"%")})}for(var r=i-1,p=Math.min(b.length-1,r);p>=0;p--)r>0&&void 0!==b[p]&&(this.addStyle(".vp-portfolio__item-wrap",{width:"".concat(100/r,"%")},"screen and (max-width: ".concat(b[p],"px)")),this.addStyle(".vp-portfolio__item-wrap:nth-of-type(n)",{width:"".concat(100/r,"%")},"screen and (max-width: ".concat(b[p],"px)"))),r-=1;break;case"masonry":case"grid":var l=this.options["masonry"===this.options.layout?"masonryColumns":"gridColumns"];this.addStyle(".vp-portfolio__item-wrap",{width:"".concat(100/l,"%")});for(var d=l-1,c=Math.min(b.length-1,d);c>=0;c--)d>0&&void 0!==b[c]&&this.addStyle(".vp-portfolio__item-wrap",{width:"".concat(100/d,"%")},"screen and (max-width: ".concat(b[c],"px)")),d-=1;case"justified":break;case"slider":"auto"!==this.options.sliderItemsHeight&&("auto"===this.options.sliderSlidesPerView?this.options.sliderItemsHeight.indexOf("%")===this.options.sliderItemsHeight.length-1?(this.addStyle(".vp-portfolio__items-wrap::before",{content:'""',display:"block",width:"100%","margin-top":isNaN(this.options.sliderItemsHeight)?this.options.sliderItemsHeight:"".concat(this.options.sliderItemsHeight,"px")}),this.addStyle(".vp-portfolio__items",{position:"absolute",top:0,left:0,right:0,bottom:0}),this.addStyle(".vp-portfolio__item-wrap",{height:"true"===this.options.sliderBullets?"calc( 100% - 25px )":"100%"}),this.addStyle(".vp-portfolio__item, .vp-portfolio__item-img-wrap, .vp-portfolio__item-img, .vp-portfolio__item-wrap .vp-portfolio__item .vp-portfolio__item-img a, .vp-portfolio__item-wrap .vp-portfolio__item .vp-portfolio__item-img img",{width:"auto",height:"100%"})):this.addStyle(".vp-portfolio__item .vp-portfolio__item-img img",{width:"auto",height:isNaN(this.options.sliderItemsHeight)?this.options.sliderItemsHeight:"".concat(this.options.sliderItemsHeight,"px")}):(this.addStyle(".vp-portfolio__item-img-wrap::before",{"margin-top":isNaN(this.options.sliderItemsHeight)?this.options.sliderItemsHeight:"".concat(this.options.sliderItemsHeight,"px")}),this.addStyle(".vp-portfolio__item-img img",{position:"absolute",top:0,right:0,bottom:0,left:0}),this.addStyle(".vp-portfolio__item-img",{position:"absolute",top:0,right:0,bottom:0,left:0}),this.addStyle(".vp-portfolio__item .vp-portfolio__item-img img",{width:"100%",height:"100%"})))}var f=parseInt(this.options.itemsGap,10);if(f&&("tiles"===this.options.layout||"masonry"===this.options.layout||"grid"===this.options.layout)){this.addStyle(".vp-portfolio__items",{"margin-left":"-".concat(f,"px"),"margin-top":"-".concat(f,"px")});var v="".concat(f,"px");this.addStyle(".vp-portfolio__item-wrap .vp-portfolio__item",{"margin-left":v,"margin-top":v}),"tiles"===this.options.layout&&(this.addStyle(".vp-portfolio__item-wrap .vp-portfolio__item-img-wrap",{"margin-left":"-".concat(v),"margin-top":"-".concat(v)}),this.addStyle(".vp-portfolio__item-wrap .vp-portfolio__item-img",{left:v,top:v}))}this.renderStyle(),this.emitEvent("initLayout")}},{key:"initCustomColors",value:function(){var t=this;t.$item.find("[data-vp-bg-color]").each(function(){var i=l(this).attr("data-vp-bg-color");t.addStyle('[data-vp-bg-color="'.concat(i,'"]'),{"background-color":"".concat(i," !important")})}),t.$item.find("[data-vp-text-color]").each(function(){var i=l(this).attr("data-vp-text-color");t.addStyle('[data-vp-text-color="'.concat(i,'"]'),{color:"".concat(i," !important")})}),t.renderStyle(),t.emitEvent("initCustomColors")}},{key:"initIsotope",value:function(t){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;0===(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}).speed&&(t.speed=1);var a=0;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]),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(u.pswp_close,'"></a>\n <a class="pswp__button pswp__button--share" title="').concat(u.pswp_share,'"></a>\n <a class="pswp__button pswp__button--fs" title="').concat(u.pswp_fs,'"></a>\n <a class="pswp__button pswp__button--zoom" title="').concat(u.pswp_zoom,'"></a>\n </div>\n <div class="pswp__preloader">\n <div class="pswp__preloader__icn">\n <div class="pswp__preloader__cut">\n <div class="pswp__preloader__donut"></div>\n </div>\n </div>\n </div>\n <div class="pswp__share-modal pswp__share-modal--hidden pswp__single-tap">\n <div class="pswp__share-tooltip"></div>\n </div>\n <a class="pswp__button pswp__button--arrow--left" title="').concat(u.pswp_prev,'"></a>\n <a class="pswp__button pswp__button--arrow--right" title="').concat(u.pswp_next,'"></a>\n <div class="pswp__caption">\n <div class="pswp__caption__center"></div>\n </div>\n </div>\n </div>\n </div>\n ');l("body").append(i)}var e=function(i,e,o,n){var a=l(".vp-pswp")[0],r=function(t){var i,e,o,s,n,a=[];return l(t).find(".vp-portfolio__item-wrap").each(function(){if(i=l(this).find(".vp-portfolio__item-popup"),e=(i.attr("data-vp-popup-img-size")||"1920x1080").split("x"),o=(i.attr("data-vp-popup-video-size")||"1920x1080").split("x"),n=i.attr("data-vp-popup-video"))s={html:n,vw:parseInt(o[0],10),vh:parseInt(o[1],10)};else{s={src:i.attr("data-vp-popup-img"),w:parseInt(e[0],10),h:parseInt(e[1],10)};var t=i.html();t&&(s.title=t),s.el=this;var r=i.attr("data-vp-popup-md-img")||s.src;r&&(e=(i.attr("data-vp-popup-md-img-size")||i.attr("data-vp-popup-img-size")||"1920x1080").split("x"),s.m={src:r,w:parseInt(e[0],10),h:parseInt(e[1],10)}),s.o={src:s.src,w:s.w,h:s.h}}a.push(s)}),a}(e),p={captionAndToolbarShowEmptyCaptions:!1,closeEl:m.show_close_button,captionEl:m.show_caption,fullscreenEl:m.show_fullscreen_button,zoomEl:m.show_zoom_button,shareEl:m.show_share_button,counterEl:m.show_counter,arrowEl:m.show_arrows,shareButtons:[{id:"facebook",label:u.pswp_share_fb,url:"https://www.facebook.com/sharer/sharer.php?u={{url}}"},{id:"twitter",label:u.pswp_share_tw,url:"https://twitter.com/intent/tweet?text={{text}}&url={{url}}"},{id:"pinterest",label:u.pswp_share_pin,url:"https://www.pinterest.com/pin/create/button/?url={{url}}&media={{image_url}}&description={{text}}"}],bgOpacity:1,tapToClose:!0,tapToToggleControls:!1,showHideOpacity:!0,galleryUID:t.uid};if(n)if(p.galleryPIDs){for(var d=0;d<r.length;d++)if(r[d].pid===i){p.index=d;break}}else p.index=parseInt(i,10)-1;else p.index=parseInt(i,10);if(!isNaN(p.index)){o&&(p.showAnimationDuration=0);var c,f,_=new v(a,h,r,p),y=!1,w=!0;_.listen("beforeResize",function(){c=_.viewportSize.x*window.devicePixelRatio,y&&c<1e3?(y=!1,f=!0):!y&&c>=1e3&&(y=!0,f=!0),f&&!w&&_.invalidateCurrItems(),w&&(w=!1),f=!1}),_.listen("gettingData",function(t,i){i.html||(y?(i.src=i.o.src,i.w=i.o.w,i.h=i.o.h):(i.src=i.m.src,i.w=i.m.w,i.h=i.m.h))}),_.listen("resize",function(){s(this)}),_.listen("afterChange",function(){s(this)}),_.listen("beforeChange",function(){if(this&&this.itemHolders.length){var t=this.getCurrentIndex();this.itemHolders.forEach(function(i){if(i.el&&i.index!==t){var e=l(i.el).find(".vp-pswp-video iframe");e.length&&e.attr("src",e.attr("src"))}})}}),_.listen("destroy",function(){this&&this.itemHolders.length&&this.itemHolders.forEach(function(t){t.el&&l(t.el).find(".vp-pswp-video").remove()})}),_.init()}};t.$item.on("click.vpf-uid-".concat(t.uid),".vp-portfolio__item",function(i){i.preventDefault();var o=0,s=this;t.$item.find(".vp-portfolio__item").each(function(t){return this!==s||(o=t,!1)}),e(o,t.$item[0])});var o=function(){var t=window.location.hash.substring(1),i={};if(t.length<5)return i;for(var e=t.split("&"),o=0;o<e.length;o++)if(e[o]){var s=e[o].split("=");s.length<2||(i[s[0]]=s[1])}return i}();o.pid&&o.gid===t.uid&&e(o.pid,t.$item[0],!0,!0)}function s(t,i){if(void 0!==i){var e,o=t.viewportSize.x,n=t.viewportSize.y,a=i.vw/i.vh,r=l(i.container),p=t.options.barsSize,d=0,c=0;p&&(d=p.top&&"auto"!==p.top?p.top:0,c=p.bottom&&"auto"!==p.bottom?p.bottom:0),e=a>o/(n-=d+c)?o:n*a,r.find(".vp-pswp-video").css("max-width",e),r.css({top:d,bottom:c})}else t&&t.itemHolders.length&&t.itemHolders.forEach(function(i){i.item&&i.item.html&&s(t,i.item)})}}},{key:"destroyPhotoswipe",value:function(){this.$item.off("click.vpf-uid-".concat(this.uid)),l(".vp-pswp-uid-".concat(this.uid)).remove()}},{key:"addItems",value:function(t,i){var e=this,o=e.$items_wrap.data("isotope"),s=e.$items_wrap.data("fjGallery"),n=e.$items_wrap.parent()[0].swiper;if(o){if(i){var a=e.$items_wrap.find(".vp-portfolio__item-wrap");e.$items_wrap.isotope("remove",a),e.$items_wrap.prepend(t).isotope("prepended",t)}else e.$items_wrap.append(t).isotope("appended",t);setTimeout(function(){e.initIsotope("layout")},0)}else if(s)i?(e.destroyFjGallery(),e.$items_wrap.find(".vp-portfolio__item-wrap").remove(),e.$items_wrap.prepend(t),e.initFjGallery()):(e.$items_wrap.append(t),e.initFjGallery("appendImages",t));else if(n){i&&n.removeAllSlides();var r=[];t.addClass("swiper-slide").each(function(){r.push(this)}),n.appendSlide(r)}e.emitEvent("addItems",[t,i])}},{key:"removeItems",value:function(t){this.$items_wrap.data("isotope")&&this.$items_wrap.isotope("remove",t),this.emitEvent("removeItems",[t])}},{key:"loadNewItems",value:function(t,i,e){var o=this;!o.loading&&t&&(o.loading=!0,o.$item.addClass("vp-portfolio__loading"),o.emitEvent("startLoadingNewItems",[t]),l.get(t,{},function(t){t=t.replace("<body",'<body><div id="vp-infinite-load-body"').replace("</body>","</div></body>");var s=l(t).filter("#vp-infinite-load-body"),n=s.find(".vp-portfolio.vp-uid-".concat(o.uid));if(n.length){var a=n.find(".vp-portfolio__items").html();o.$filter.length&&o.$filter.each(function(){var t=l(this),i="";i=t.parent().hasClass("vp-single-filter")?s.find('[class="'.concat(t.parent().attr("class").replace(" vp-single-filter__ready",""),'"] .vp-portfolio__filter-wrap')).html():n.find(".vp-portfolio__filter-wrap").html(),t.html(i)}),o.$pagination.length&&o.$pagination.html(n.find(".vp-portfolio__pagination-wrap").html()),o.addItems(l(a),i),o.emitEvent("loadedNewItems",[n,n,t])}var r=n.attr("data-vp-next-page-url");o.options.nextPageUrl=r,o.$item.attr("data-vp-next-page-url",r),o.$item.removeClass("vp-portfolio__loading"),o.loading=!1,o.emitEvent("endLoadingNewItems"),o.prepareLazyLoad(),o.initCustomColors(),e&&e()}))}}]),t}();l(document).on("lazybeforeunveil",function(t){var i=l(t.target);i.hasClass("visual-portfolio-lazyload")&&i.closest(".vp-portfolio__item-img").addClass("vp-portfolio__item-img-lazyloading")}),l(document).on("lazyloaded",function(t){var i=l(t.target);i.hasClass("visual-portfolio-lazyload")&&i.closest(".vp-portfolio__item-img-lazyloading").removeClass("vp-portfolio__item-img-lazyloading")});var S=function(t){var i,e=Array.prototype.slice.call(arguments,1);return this.each(function(){if(void 0===i)if("object"===r(t)||void 0===t)this.vpf||(this.vpf=new x(l(this),t));else if(this.vpf){var o;i=(o=this.vpf)[t].apply(o,a(e))}}),void 0!==i?i:this};S.constructor=x;var $=jQuery.fn.vpf;jQuery.fn.vpf=S,jQuery.fn.vpf.noConflict=function(){return jQuery.fn.vpf=$,this},l(".vp-portfolio").vpf(),l(function(){l(".vp-portfolio").vpf()});var C=Object(o.b)(200,function(){n()(function(){l(".vp-portfolio:not(.vp-portfolio__ready)").vpf()})});window.MutationObserver?new window.MutationObserver(C).observe(document.documentElement,{childList:!0,subtree:!0}):l(document).on("DOMContentLoaded DOMNodeInserted load",function(){C()})},164:function(t,i,e){(function(i){var e;e="undefined"!=typeof window?window:void 0!==i?i:"undefined"!=typeof self?self:{},t.exports=e}).call(this,e(59))},30:function(t,i,e){"use strict";function o(t,i,e,o){var s,n=0;return"boolean"!=typeof i&&(o=e,e=i,i=void 0),function(){var a=this,r=Number(new Date)-n,p=arguments;function l(){n=Number(new Date),e.apply(a,p)}o&&!s&&l(),s&&clearTimeout(s),void 0===o&&r>t?l():!0!==i&&(s=setTimeout(o?function(){s=void 0}:l,void 0===o?t-r:t))}}function s(t,i,e){return void 0===e?o(t,i,!1):o(t,e,!1!==i)}e.d(i,"b",function(){return o}),e.d(i,"a",function(){return s})},59:function(t,i){var e;e=function(){return this}();try{e=e||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(e=window)}t.exports=e}});
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.9.3
6
  * Author: nK
7
  * Author URI: https://nkdev.info
8
  * License: GPLv2 or later
@@ -207,8 +207,8 @@ class Visual_Portfolio {
207
  }
208
 
209
  // Visual Portfolio.
210
- wp_register_script( 'visual-portfolio', visual_portfolio()->plugin_url . 'assets/js/script.min.js', $vp_deps, '1.9.3', true );
211
- wp_register_style( 'visual-portfolio', visual_portfolio()->plugin_url . 'assets/css/style.min.css', $vp_style_deps, '1.9.3' );
212
 
213
  // Visual Portfolio data.
214
  $data_init = array(
2
  /**
3
  * Plugin Name: Visual Portfolio
4
  * Description: Portfolio post type with visual editor
5
+ * Version: 1.10.0
6
  * Author: nK
7
  * Author URI: https://nkdev.info
8
  * License: GPLv2 or later
207
  }
208
 
209
  // Visual Portfolio.
210
+ wp_register_script( 'visual-portfolio', visual_portfolio()->plugin_url . 'assets/js/script.min.js', $vp_deps, '1.10.0', true );
211
+ wp_register_style( 'visual-portfolio', visual_portfolio()->plugin_url . 'assets/css/style.min.css', $vp_style_deps, '1.10.0' );
212
 
213
  // Visual Portfolio data.
214
  $data_init = array(
classes/class-admin.php CHANGED
@@ -152,8 +152,8 @@ class Visual_Portfolio_Admin {
152
  wp_enqueue_script( 'tooltip.js', visual_portfolio()->plugin_url . 'assets/vendor/popper.js/tooltip.min.js', array( 'popper.js' ), '1.14.3', true );
153
  wp_enqueue_style( 'popper.js', visual_portfolio()->plugin_url . 'assets/vendor/popper.js/popper.css', '', '1.14.3' );
154
 
155
- wp_enqueue_script( 'visual-portfolio-admin', visual_portfolio()->plugin_url . 'assets/admin/js/script.min.js', array( 'jquery' ), '1.9.3', true );
156
- wp_enqueue_style( 'visual-portfolio-admin', visual_portfolio()->plugin_url . 'assets/admin/css/style.min.css', '', '1.9.3' );
157
  wp_localize_script( 'visual-portfolio-admin', 'VPAdminVariables', $data_init );
158
  }
159
 
@@ -221,6 +221,7 @@ class Visual_Portfolio_Admin {
221
  'not_found_in_trash' => __( 'Not found in Trash', 'visual-portfolio' ),
222
  ),
223
  'public' => true,
 
224
  'has_archive' => false,
225
  'show_ui' => true,
226
 
@@ -250,6 +251,7 @@ class Visual_Portfolio_Admin {
250
  'supports' => array(
251
  'title',
252
  'editor',
 
253
  'thumbnail',
254
  'revisions',
255
  'excerpt',
@@ -259,12 +261,6 @@ class Visual_Portfolio_Admin {
259
  )
260
  );
261
 
262
- // fix for paged /portfolio/ page.
263
- add_rewrite_rule( '^portfolio/page/([0-9]+)', 'index.php?pagename=portfolio&paged=$matches[1]', 'top' );
264
- if ( $custom_slug && 'portfolio' !== $custom_slug ) {
265
- add_rewrite_rule( '^' . $custom_slug . '/page/([0-9]+)', 'index.php?pagename=' . $custom_slug . '&paged=$matches[1]', 'top' );
266
- }
267
-
268
  register_taxonomy(
269
  'portfolio_category', 'portfolio', array(
270
  'label' => esc_html__( 'Portfolio Categories', 'visual-portfolio' ),
@@ -444,11 +440,11 @@ class Visual_Portfolio_Admin {
444
 
445
  foreach ( $meta as $item ) {
446
  if ( isset( $_POST[ $item ] ) ) {
447
-
448
- $result = sanitize_text_field( wp_unslash( $_POST[ $item ] ) );
449
-
450
- if ( 'Array' === $result ) {
451
  $result = array_map( 'sanitize_text_field', wp_unslash( $_POST[ $item ] ) );
 
 
452
  }
453
 
454
  update_post_meta( $post_id, $item, $result );
@@ -850,6 +846,21 @@ class Visual_Portfolio_Admin {
850
  ),
851
  ),
852
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
853
  // Justified.
854
  'justified' => array(
855
  'title' => esc_html__( 'Justified', 'visual-portfolio' ),
@@ -907,6 +918,19 @@ class Visual_Portfolio_Admin {
907
  'step' => 0.2,
908
  'default' => 6,
909
  ),
 
 
 
 
 
 
 
 
 
 
 
 
 
910
  array(
911
  'type' => 'select2',
912
  'label' => esc_html__( 'Items height', 'visual-portfolio' ),
@@ -1007,6 +1031,17 @@ class Visual_Portfolio_Admin {
1007
  'name' => 'free_mode',
1008
  'default' => false,
1009
  ),
 
 
 
 
 
 
 
 
 
 
 
1010
  array(
1011
  'type' => 'toggle',
1012
  'label' => esc_html__( 'Show arrows', 'visual-portfolio' ),
@@ -2311,6 +2346,37 @@ class Visual_Portfolio_Admin {
2311
  * video_url - video url.
2312
  */
2313
  ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2314
  )
2315
  );
2316
 
@@ -2604,9 +2670,11 @@ class Visual_Portfolio_Admin {
2604
  <!-- Images -->
2605
 
2606
  <p></p>
2607
- <?php
2608
- Visual_Portfolio_Controls::get_registered( 'content-source-images' );
2609
- ?>
 
 
2610
  </div>
2611
  </div>
2612
  </div>
@@ -2656,11 +2724,12 @@ class Visual_Portfolio_Admin {
2656
  // phpcs:ignore
2657
  $result = wp_kses( $_POST[ $item ], array( '\'', '\"' ) );
2658
  } else {
2659
- $result = sanitize_text_field( wp_unslash( $_POST[ $item ] ) );
2660
- }
2661
-
2662
- if ( 'Array' === $result ) {
2663
- $result = array_map( 'sanitize_text_field', wp_unslash( $_POST[ $item ] ) );
 
2664
  }
2665
 
2666
  update_post_meta( $post_id, $item, $result );
152
  wp_enqueue_script( 'tooltip.js', visual_portfolio()->plugin_url . 'assets/vendor/popper.js/tooltip.min.js', array( 'popper.js' ), '1.14.3', true );
153
  wp_enqueue_style( 'popper.js', visual_portfolio()->plugin_url . 'assets/vendor/popper.js/popper.css', '', '1.14.3' );
154
 
155
+ wp_enqueue_script( 'visual-portfolio-admin', visual_portfolio()->plugin_url . 'assets/admin/js/script.min.js', array( 'jquery' ), '1.10.0', true );
156
+ wp_enqueue_style( 'visual-portfolio-admin', visual_portfolio()->plugin_url . 'assets/admin/css/style.min.css', '', '1.10.0' );
157
  wp_localize_script( 'visual-portfolio-admin', 'VPAdminVariables', $data_init );
158
  }
159
 
221
  'not_found_in_trash' => __( 'Not found in Trash', 'visual-portfolio' ),
222
  ),
223
  'public' => true,
224
+ 'publicly_queryable' => true,
225
  'has_archive' => false,
226
  'show_ui' => true,
227
 
251
  'supports' => array(
252
  'title',
253
  'editor',
254
+ 'author',
255
  'thumbnail',
256
  'revisions',
257
  'excerpt',
261
  )
262
  );
263
 
 
 
 
 
 
 
264
  register_taxonomy(
265
  'portfolio_category', 'portfolio', array(
266
  'label' => esc_html__( 'Portfolio Categories', 'visual-portfolio' ),
440
 
441
  foreach ( $meta as $item ) {
442
  if ( isset( $_POST[ $item ] ) ) {
443
+ // phpcs:ignore
444
+ if ( is_array( $_POST[ $item ] ) ) {
 
 
445
  $result = array_map( 'sanitize_text_field', wp_unslash( $_POST[ $item ] ) );
446
+ } else {
447
+ $result = sanitize_text_field( wp_unslash( $_POST[ $item ] ) );
448
  }
449
 
450
  update_post_meta( $post_id, $item, $result );
846
  ),
847
  ),
848
 
849
+ // Grid.
850
+ 'grid' => array(
851
+ 'title' => esc_html__( 'Grid', 'visual-portfolio' ),
852
+ 'controls' => array(
853
+ array(
854
+ 'type' => 'range',
855
+ 'label' => esc_html__( 'Columns', 'visual-portfolio' ),
856
+ 'name' => 'columns',
857
+ 'min' => 1,
858
+ 'max' => 5,
859
+ 'default' => 3,
860
+ ),
861
+ ),
862
+ ),
863
+
864
  // Justified.
865
  'justified' => array(
866
  'title' => esc_html__( 'Justified', 'visual-portfolio' ),
918
  'step' => 0.2,
919
  'default' => 6,
920
  ),
921
+ array(
922
+ 'type' => 'toggle',
923
+ 'label' => esc_html__( 'Pause on Mouse Over', 'visual-portfolio' ),
924
+ 'name' => 'autoplay_hover_pause',
925
+ 'default' => false,
926
+ 'condition' => array(
927
+ array(
928
+ 'control' => 'autoplay',
929
+ 'operator' => '>',
930
+ 'value' => 0,
931
+ ),
932
+ ),
933
+ ),
934
  array(
935
  'type' => 'select2',
936
  'label' => esc_html__( 'Items height', 'visual-portfolio' ),
1031
  'name' => 'free_mode',
1032
  'default' => false,
1033
  ),
1034
+ array(
1035
+ 'type' => 'toggle',
1036
+ 'label' => esc_html__( 'Free scroll Sticky', 'visual-portfolio' ),
1037
+ 'name' => 'free_mode_sticky',
1038
+ 'default' => false,
1039
+ 'condition' => array(
1040
+ array(
1041
+ 'control' => 'free_mode',
1042
+ ),
1043
+ ),
1044
+ ),
1045
  array(
1046
  'type' => 'toggle',
1047
  'label' => esc_html__( 'Show arrows', 'visual-portfolio' ),
2346
  * video_url - video url.
2347
  */
2348
  ),
2349
+ 'wrapper_class' => 'vp-col-12',
2350
+ )
2351
+ );
2352
+ Visual_Portfolio_Controls::register(
2353
+ array(
2354
+ 'category' => 'content-source-images',
2355
+ 'type' => 'select2',
2356
+ 'label' => esc_html__( 'Order by', 'visual-portfolio' ),
2357
+ 'name' => 'vp_images_order_by',
2358
+ 'default' => 'default',
2359
+ 'options' => array(
2360
+ 'default' => esc_html__( 'Default', 'visual-portfolio' ),
2361
+ 'date' => esc_html__( 'Uploaded', 'visual-portfolio' ),
2362
+ 'title' => esc_html__( 'Title', 'visual-portfolio' ),
2363
+ 'rand' => esc_html__( 'Random', 'visual-portfolio' ),
2364
+ ),
2365
+ 'wrapper_class' => 'vp-col-6',
2366
+ )
2367
+ );
2368
+ Visual_Portfolio_Controls::register(
2369
+ array(
2370
+ 'category' => 'content-source-images',
2371
+ 'type' => 'select2',
2372
+ 'label' => esc_html__( 'Order direction', 'visual-portfolio' ),
2373
+ 'name' => 'vp_images_order_direction',
2374
+ 'default' => 'asc',
2375
+ 'options' => array(
2376
+ 'asc' => esc_html__( 'ASC', 'visual-portfolio' ),
2377
+ 'desc' => esc_html__( 'DESC', 'visual-portfolio' ),
2378
+ ),
2379
+ 'wrapper_class' => 'vp-col-6',
2380
  )
2381
  );
2382
 
2670
  <!-- Images -->
2671
 
2672
  <p></p>
2673
+ <div class="vp-row">
2674
+ <?php
2675
+ Visual_Portfolio_Controls::get_registered( 'content-source-images' );
2676
+ ?>
2677
+ </div>
2678
  </div>
2679
  </div>
2680
  </div>
2724
  // phpcs:ignore
2725
  $result = wp_kses( $_POST[ $item ], array( '\'', '\"' ) );
2726
  } else {
2727
+ // phpcs:ignore
2728
+ if ( is_array( $_POST[ $item ] ) ) {
2729
+ $result = array_map( 'sanitize_text_field', wp_unslash( $_POST[ $item ] ) );
2730
+ } else {
2731
+ $result = sanitize_text_field( wp_unslash( $_POST[ $item ] ) );
2732
+ }
2733
  }
2734
 
2735
  update_post_meta( $post_id, $item, $result );
classes/class-get-portfolio.php CHANGED
@@ -10,7 +10,7 @@ if ( ! defined( 'ABSPATH' ) ) {
10
  }
11
 
12
  // Slugify.
13
- if ( version_compare( PHP_VERSION, '5.5.9' ) >= 0 ) {
14
  require_once( visual_portfolio()->plugin_path . 'vendors/slugify/RuleProvider/RuleProviderInterface.php' );
15
  require_once( visual_portfolio()->plugin_path . 'vendors/slugify/RuleProvider/DefaultRuleProvider.php' );
16
  require_once( visual_portfolio()->plugin_path . 'vendors/slugify/SlugifyInterface.php' );
@@ -170,13 +170,20 @@ class Visual_Portfolio_Get {
170
  $img_size_md_popup = 'vp_md';
171
  $img_size = 'vp_xl';
172
  $columns_count = false;
173
- if ( 'masonry' === $options['vp_layout'] ) {
174
- $columns_count = (int) $options['vp_masonry_columns'];
175
- }
176
- if ( 'tiles' === $options['vp_layout'] ) {
177
- $columns_count = explode( '|', $options['vp_tiles_type'], 1 );
178
- $columns_count = (int) $columns_count[0];
 
 
 
 
 
 
179
  }
 
180
  switch ( $columns_count ) {
181
  case 1:
182
  $img_size = 'vp_xl';
@@ -240,16 +247,21 @@ class Visual_Portfolio_Get {
240
  'data-vp-pagination' => $options['vp_pagination'],
241
  'data-vp-next-page-url' => $next_page_url,
242
  );
 
243
  if ( 'tiles' === $options['vp_layout'] || $is_preview ) {
244
  $data_atts['data-vp-tiles-type'] = $options['vp_tiles_type'];
245
  }
246
  if ( 'masonry' === $options['vp_layout'] || $is_preview ) {
247
  $data_atts['data-vp-masonry-columns'] = $options['vp_masonry_columns'];
248
  }
 
 
 
249
  if ( 'justified' === $options['vp_layout'] || $is_preview ) {
250
  $data_atts['data-vp-justified-row-height'] = $options['vp_justified_row_height'];
251
  $data_atts['data-vp-justified-row-height-tolerance'] = $options['vp_justified_row_height_tolerance'];
252
  }
 
253
  if ( 'slider' === $options['vp_layout'] || $is_preview ) {
254
  $data_atts['data-vp-slider-effect'] = $options['vp_slider_effect'];
255
 
@@ -278,9 +290,11 @@ class Visual_Portfolio_Get {
278
 
279
  $data_atts['data-vp-slider-speed'] = $options['vp_slider_speed'];
280
  $data_atts['data-vp-slider-autoplay'] = $options['vp_slider_autoplay'];
 
281
  $data_atts['data-vp-slider-centered-slides'] = $options['vp_slider_centered_slides'] ? 'true' : 'false';
282
  $data_atts['data-vp-slider-loop'] = $options['vp_slider_loop'] ? 'true' : 'false';
283
  $data_atts['data-vp-slider-free-mode'] = $options['vp_slider_free_mode'] ? 'true' : 'false';
 
284
  $data_atts['data-vp-slider-arrows'] = $options['vp_slider_arrows'] ? 'true' : 'false';
285
  $data_atts['data-vp-slider-arrows-icon-prev'] = $options['vp_slider_arrows_icon_prev'] ? : '';
286
  $data_atts['data-vp-slider-arrows-icon-next'] = $options['vp_slider_arrows_icon_next'] ? : '';
@@ -476,7 +490,7 @@ class Visual_Portfolio_Get {
476
  'format' => get_post_format() ? : 'standard',
477
  'published_time' => get_the_time( 'U' ),
478
  'filter' => implode( ',', $filter_values ),
479
- 'image_id' => get_post_thumbnail_id( get_the_ID() ),
480
  'categories' => $categories,
481
  ) );
482
 
@@ -612,6 +626,41 @@ class Visual_Portfolio_Get {
612
  */
613
  static private $rand_seed_session = false;
614
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
615
  /**
616
  * Get query params array.
617
  *
@@ -657,6 +706,46 @@ class Visual_Portfolio_Get {
657
  $images = (array) $options['vp_images'];
658
  }
659
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
660
  $query_opts['max_num_pages'] = ceil( count( $images ) / $count );
661
 
662
  $start_from_item = ( $paged - 1 ) * $count;
@@ -709,36 +798,9 @@ class Visual_Portfolio_Get {
709
  $query_opts['orderby'] = 'menu_order';
710
  break;
711
 
712
- // "rand" orderby don't work fine for paged, so we need to use custom solution.
713
- // thanks to https://gist.github.com/hlashbrooke/6298714 .
714
  case 'rand':
715
- // phpcs:disable WordPress.VIP.SessionVariableUsage.SessionVarsProhibited
716
-
717
- // cache data to further use.
718
- if ( ! self::$rand_seed_session ) {
719
- // Reset vpf_random_seed on load of initial archive page.
720
- if ( self::get_current_page_number() === 1 ) {
721
- if ( isset( $_SESSION['vpf_random_seed'] ) ) {
722
- unset( $_SESSION['vpf_random_seed'] );
723
- }
724
- }
725
-
726
- // Get vpf_random_seed from session variable if it exists.
727
- if ( isset( $_SESSION['vpf_random_seed'] ) ) {
728
- self::$rand_seed_session = $_SESSION['vpf_random_seed'];
729
- }
730
-
731
- // Set new vpf_random_seed if none exists.
732
- if ( ! self::$rand_seed_session ) {
733
- self::$rand_seed_session = rand();
734
- $_SESSION['vpf_random_seed'] = self::$rand_seed_session;
735
- }
736
- }
737
-
738
  // Update ORDER BY clause to use vpf_random_seed.
739
- $query_opts['orderby'] = 'RAND(' . self::$rand_seed_session . ')';
740
-
741
- // phpcs:enable WordPress.VIP.SessionVariableUsage.SessionVarsProhibited
742
 
743
  break;
744
 
@@ -1213,7 +1275,7 @@ class Visual_Portfolio_Get {
1213
  <?php
1214
  }
1215
  ?>
1216
- <div class="vp-portfolio__item">
1217
  <?php
1218
  $items_style_pref = '';
1219
  if ( 'default' !== $args['vp_opts']['vp_items_style'] ) {
@@ -1222,7 +1284,7 @@ class Visual_Portfolio_Get {
1222
  visual_portfolio()->include_template( 'items-list/items-style' . $items_style_pref . '/image', $args );
1223
  visual_portfolio()->include_template( 'items-list/items-style' . $items_style_pref . '/meta', $args );
1224
  ?>
1225
- </div>
1226
  </div>
1227
  <?php
1228
  }
10
  }
11
 
12
  // Slugify.
13
+ if ( version_compare( PHP_VERSION, '5.5.9' ) >= 0 && ! class_exists( 'Cocur\Slugify\Slugify' ) ) {
14
  require_once( visual_portfolio()->plugin_path . 'vendors/slugify/RuleProvider/RuleProviderInterface.php' );
15
  require_once( visual_portfolio()->plugin_path . 'vendors/slugify/RuleProvider/DefaultRuleProvider.php' );
16
  require_once( visual_portfolio()->plugin_path . 'vendors/slugify/SlugifyInterface.php' );
170
  $img_size_md_popup = 'vp_md';
171
  $img_size = 'vp_xl';
172
  $columns_count = false;
173
+
174
+ switch ( $options['vp_layout'] ) {
175
+ case 'masonry':
176
+ $columns_count = (int) $options['vp_masonry_columns'];
177
+ break;
178
+ case 'grid':
179
+ $columns_count = (int) $options['vp_grid_columns'];
180
+ break;
181
+ case 'tiles':
182
+ $columns_count = explode( '|', $options['vp_tiles_type'], 1 );
183
+ $columns_count = (int) $columns_count[0];
184
+ break;
185
  }
186
+
187
  switch ( $columns_count ) {
188
  case 1:
189
  $img_size = 'vp_xl';
247
  'data-vp-pagination' => $options['vp_pagination'],
248
  'data-vp-next-page-url' => $next_page_url,
249
  );
250
+
251
  if ( 'tiles' === $options['vp_layout'] || $is_preview ) {
252
  $data_atts['data-vp-tiles-type'] = $options['vp_tiles_type'];
253
  }
254
  if ( 'masonry' === $options['vp_layout'] || $is_preview ) {
255
  $data_atts['data-vp-masonry-columns'] = $options['vp_masonry_columns'];
256
  }
257
+ if ( 'grid' === $options['vp_layout'] || $is_preview ) {
258
+ $data_atts['data-vp-grid-columns'] = $options['vp_grid_columns'];
259
+ }
260
  if ( 'justified' === $options['vp_layout'] || $is_preview ) {
261
  $data_atts['data-vp-justified-row-height'] = $options['vp_justified_row_height'];
262
  $data_atts['data-vp-justified-row-height-tolerance'] = $options['vp_justified_row_height_tolerance'];
263
  }
264
+
265
  if ( 'slider' === $options['vp_layout'] || $is_preview ) {
266
  $data_atts['data-vp-slider-effect'] = $options['vp_slider_effect'];
267
 
290
 
291
  $data_atts['data-vp-slider-speed'] = $options['vp_slider_speed'];
292
  $data_atts['data-vp-slider-autoplay'] = $options['vp_slider_autoplay'];
293
+ $data_atts['data-vp-slider-autoplay-hover-pause'] = $options['vp_slider_autoplay_hover_pause'] ? 'true' : 'false';
294
  $data_atts['data-vp-slider-centered-slides'] = $options['vp_slider_centered_slides'] ? 'true' : 'false';
295
  $data_atts['data-vp-slider-loop'] = $options['vp_slider_loop'] ? 'true' : 'false';
296
  $data_atts['data-vp-slider-free-mode'] = $options['vp_slider_free_mode'] ? 'true' : 'false';
297
+ $data_atts['data-vp-slider-free-mode-sticky'] = $options['vp_slider_free_mode_sticky'] ? 'true' : 'false';
298
  $data_atts['data-vp-slider-arrows'] = $options['vp_slider_arrows'] ? 'true' : 'false';
299
  $data_atts['data-vp-slider-arrows-icon-prev'] = $options['vp_slider_arrows_icon_prev'] ? : '';
300
  $data_atts['data-vp-slider-arrows-icon-next'] = $options['vp_slider_arrows_icon_next'] ? : '';
490
  'format' => get_post_format() ? : 'standard',
491
  'published_time' => get_the_time( 'U' ),
492
  'filter' => implode( ',', $filter_values ),
493
+ 'image_id' => 'attachment' === get_post_type() ? get_the_ID() : get_post_thumbnail_id( get_the_ID() ),
494
  'categories' => $categories,
495
  ) );
496
 
626
  */
627
  static private $rand_seed_session = false;
628
 
629
+ /**
630
+ * "rand" orderby don't work fine for paged, so we need to use custom solution.
631
+ * thanks to https://gist.github.com/hlashbrooke/6298714 .
632
+ */
633
+ private static function get_rand_seed_session() {
634
+ // phpcs:disable WordPress.VIP.SessionVariableUsage.SessionVarsProhibited
635
+
636
+ // already prepared.
637
+ if ( self::$rand_seed_session ) {
638
+ return self::$rand_seed_session;
639
+ }
640
+
641
+ // Reset vpf_random_seed on load of initial archive page.
642
+ if ( self::get_current_page_number() === 1 ) {
643
+ if ( isset( $_SESSION['vpf_random_seed'] ) ) {
644
+ unset( $_SESSION['vpf_random_seed'] );
645
+ }
646
+ }
647
+
648
+ // Get vpf_random_seed from session variable if it exists.
649
+ if ( isset( $_SESSION['vpf_random_seed'] ) ) {
650
+ self::$rand_seed_session = $_SESSION['vpf_random_seed'];
651
+ }
652
+
653
+ // Set new vpf_random_seed if none exists.
654
+ if ( ! self::$rand_seed_session ) {
655
+ self::$rand_seed_session = rand();
656
+ $_SESSION['vpf_random_seed'] = self::$rand_seed_session;
657
+ }
658
+
659
+ // phpcs:enable WordPress.VIP.SessionVariableUsage.SessionVarsProhibited
660
+
661
+ return self::$rand_seed_session;
662
+ }
663
+
664
  /**
665
  * Get query params array.
666
  *
706
  $images = (array) $options['vp_images'];
707
  }
708
 
709
+ // order.
710
+ if ( isset( $options['vp_images_order_by'] ) && ! empty( $images ) ) {
711
+ switch ( $options['vp_images_order_by'] ) {
712
+ case 'date':
713
+ case 'title':
714
+ $sort_tmp = array();
715
+ $new_images = array();
716
+ $sort_by = 'id';
717
+
718
+ if ( 'title' === $options['vp_images_order_by'] ) {
719
+ $sort_by = 'title';
720
+ }
721
+
722
+ foreach ( $images as &$ma ) {
723
+ $sort_tmp[] = &$ma[ $sort_by ];
724
+ }
725
+
726
+ array_multisort( $sort_tmp, $images );
727
+ foreach ( $images as &$ma ) {
728
+ $new_images[] = $ma;
729
+ }
730
+
731
+ $images = $new_images;
732
+ break;
733
+ case 'rand':
734
+ mt_srand( self::get_rand_seed_session() );
735
+ for ( $i = count( $images ) - 1; $i > 0; $i-- ) {
736
+ $j = @mt_rand( 0, $i );
737
+ $tmp = $images[ $i ];
738
+ $images[ $i ] = $images[ $j ];
739
+ $images[ $j ] = $tmp;
740
+ }
741
+ break;
742
+ }
743
+ if ( 'desc' === $options['vp_images_order_direction'] ) {
744
+ $images = array_reverse( $images );
745
+ }
746
+ }
747
+
748
+ // pages count.
749
  $query_opts['max_num_pages'] = ceil( count( $images ) / $count );
750
 
751
  $start_from_item = ( $paged - 1 ) * $count;
798
  $query_opts['orderby'] = 'menu_order';
799
  break;
800
 
 
 
801
  case 'rand':
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
802
  // Update ORDER BY clause to use vpf_random_seed.
803
+ $query_opts['orderby'] = 'RAND(' . self::get_rand_seed_session() . ')';
 
 
804
 
805
  break;
806
 
1275
  <?php
1276
  }
1277
  ?>
1278
+ <figure class="vp-portfolio__item">
1279
  <?php
1280
  $items_style_pref = '';
1281
  if ( 'default' !== $args['vp_opts']['vp_items_style'] ) {
1284
  visual_portfolio()->include_template( 'items-list/items-style' . $items_style_pref . '/image', $args );
1285
  visual_portfolio()->include_template( 'items-list/items-style' . $items_style_pref . '/meta', $args );
1286
  ?>
1287
+ </figure>
1288
  </div>
1289
  <?php
1290
  }
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:211, dist/visual-portfolio/classes/class-admin.php:308, dist/visual-portfolio/classes/class-admin.php:633, dist/visual-portfolio/classes/class-vc.php:65
57
  msgid "Visual Portfolio"
58
  msgstr ""
59
 
60
- #: dist/visual-portfolio/classes/class-admin.php:212, dist/visual-portfolio/classes/class-admin.php:309
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:216, dist/visual-portfolio/classes/class-admin.php:313
77
  msgid "Add New"
78
  msgstr ""
79
 
@@ -89,593 +89,609 @@ msgstr ""
89
  msgid "Search Portfolio Item"
90
  msgstr ""
91
 
92
- #: dist/visual-portfolio/classes/class-admin.php:220, dist/visual-portfolio/classes/class-admin.php:317
93
  msgid "Not Found"
94
  msgstr ""
95
 
96
- #: dist/visual-portfolio/classes/class-admin.php:221, dist/visual-portfolio/classes/class-admin.php:318
97
  msgid "Not found in Trash"
98
  msgstr ""
99
 
100
- #: dist/visual-portfolio/classes/class-admin.php:270
101
  msgid "Portfolio Categories"
102
  msgstr ""
103
 
104
- #: dist/visual-portfolio/classes/class-admin.php:272, dist/visual-portfolio/classes/class-controls.php:596
105
  msgid "Categories"
106
  msgstr ""
107
 
108
- #: dist/visual-portfolio/classes/class-admin.php:286
109
  msgid "Portfolio Tags"
110
  msgstr ""
111
 
112
- #: dist/visual-portfolio/classes/class-admin.php:288
113
  msgid "Tags"
114
  msgstr ""
115
 
116
- #: dist/visual-portfolio/classes/class-admin.php:306
117
  msgctxt "Post Type General Name"
118
  msgid "Portfolio Layouts"
119
  msgstr ""
120
 
121
- #: dist/visual-portfolio/classes/class-admin.php:307
122
  msgctxt "Post Type Singular Name"
123
  msgid "Portfolio Layout"
124
  msgstr ""
125
 
126
- #: dist/visual-portfolio/classes/class-admin.php:310
127
  msgid "Portfolio Layouts"
128
  msgstr ""
129
 
130
- #: dist/visual-portfolio/classes/class-admin.php:311
131
  msgid "View Portfolio Layout"
132
  msgstr ""
133
 
134
- #: dist/visual-portfolio/classes/class-admin.php:312
135
  msgid "Add New Portfolio Layout"
136
  msgstr ""
137
 
138
- #: dist/visual-portfolio/classes/class-admin.php:314
139
  msgid "Edit Portfolio Layout"
140
  msgstr ""
141
 
142
- #: dist/visual-portfolio/classes/class-admin.php:315
143
  msgid "Update Portfolio Layout"
144
  msgstr ""
145
 
146
- #: dist/visual-portfolio/classes/class-admin.php:316
147
  msgid "Search Portfolio Layout"
148
  msgstr ""
149
 
150
- #: dist/visual-portfolio/classes/class-admin.php:371, dist/visual-portfolio/classes/class-controls.php:608
151
  msgid "Video"
152
  msgstr ""
153
 
154
- #: dist/visual-portfolio/classes/class-admin.php:411
155
  msgid "https://"
156
  msgstr ""
157
 
158
- #: dist/visual-portfolio/classes/class-admin.php:510
159
  msgid "Ready to add your awesome portfolio?"
160
  msgstr ""
161
 
162
- #: dist/visual-portfolio/classes/class-admin.php:511
163
  msgid "Create your first portfolio list!"
164
  msgstr ""
165
 
166
- #: dist/visual-portfolio/classes/class-admin.php:550
167
  msgid "Thumbnail"
168
  msgstr ""
169
 
170
- #: dist/visual-portfolio/classes/class-admin.php:593, dist/visual-portfolio/classes/class-admin.php:2423
171
  msgid "Shortcode"
172
  msgstr ""
173
 
174
- #: dist/visual-portfolio/classes/class-admin.php:686, dist/visual-portfolio/classes/class-admin.php:687
175
  msgid "Documentation"
176
  msgstr ""
177
 
178
- #: dist/visual-portfolio/classes/class-admin.php:705
179
  msgid "Tiles"
180
  msgstr ""
181
 
182
- #: dist/visual-portfolio/classes/class-admin.php:720, dist/visual-portfolio/classes/class-admin.php:1745
183
  msgid "Type"
184
  msgstr ""
185
 
186
- #: dist/visual-portfolio/classes/class-admin.php:721
187
  msgid "Select tiles type"
188
  msgstr ""
189
 
190
- #: dist/visual-portfolio/classes/class-admin.php:840
191
  msgid "Masonry"
192
  msgstr ""
193
 
194
- #: dist/visual-portfolio/classes/class-admin.php:844
195
  msgid "Columns"
196
  msgstr ""
197
 
198
- #: dist/visual-portfolio/classes/class-admin.php:855
 
 
 
 
199
  msgid "Justified"
200
  msgstr ""
201
 
202
- #: dist/visual-portfolio/classes/class-admin.php:859
203
  msgid "Row height"
204
  msgstr ""
205
 
206
- #: dist/visual-portfolio/classes/class-admin.php:867
207
  msgid "Row height tolerance"
208
  msgstr ""
209
 
210
- #: dist/visual-portfolio/classes/class-admin.php:879
211
  msgid "Slider"
212
  msgstr ""
213
 
214
- #: dist/visual-portfolio/classes/class-admin.php:883
215
  msgid "Effect"
216
  msgstr ""
217
 
218
- #: dist/visual-portfolio/classes/class-admin.php:887
219
  msgid "Slide"
220
  msgstr ""
221
 
222
- #: dist/visual-portfolio/classes/class-admin.php:888
223
  msgid "Coverflow"
224
  msgstr ""
225
 
226
- #: dist/visual-portfolio/classes/class-admin.php:889, dist/visual-portfolio/classes/class-admin.php:1287
227
  msgid "Fade"
228
  msgstr ""
229
 
230
- #: dist/visual-portfolio/classes/class-admin.php:894
231
  msgid "Speed (seconds)"
232
  msgstr ""
233
 
234
- #: dist/visual-portfolio/classes/class-admin.php:903
235
  msgid "Autoplay (seconds)"
236
  msgstr ""
237
 
238
- #: dist/visual-portfolio/classes/class-admin.php:912
 
 
 
 
239
  msgid "Items height"
240
  msgstr ""
241
 
242
- #: dist/visual-portfolio/classes/class-admin.php:916, dist/visual-portfolio/classes/class-admin.php:955
243
  msgid "Auto"
244
  msgstr ""
245
 
246
- #: dist/visual-portfolio/classes/class-admin.php:917
247
  msgid "Static (px)"
248
  msgstr ""
249
 
250
- #: dist/visual-portfolio/classes/class-admin.php:918
251
  msgid "Dynamic (%)"
252
  msgstr ""
253
 
254
- #: dist/visual-portfolio/classes/class-admin.php:951
255
  msgid "Slides per view"
256
  msgstr ""
257
 
258
- #: dist/visual-portfolio/classes/class-admin.php:956
259
  msgid "Custom"
260
  msgstr ""
261
 
262
- #: dist/visual-portfolio/classes/class-admin.php:987
263
  msgid "Centered slides"
264
  msgstr ""
265
 
266
- #: dist/visual-portfolio/classes/class-admin.php:1000
267
  msgid "Loop"
268
  msgstr ""
269
 
270
- #: dist/visual-portfolio/classes/class-admin.php:1006
271
  msgid "Free scroll"
272
  msgstr ""
273
 
274
- #: dist/visual-portfolio/classes/class-admin.php:1012, dist/visual-portfolio/classes/class-admin.php:1991, dist/visual-portfolio/classes/class-settings.php:146
 
 
 
 
275
  msgid "Show arrows"
276
  msgstr ""
277
 
278
- #: dist/visual-portfolio/classes/class-admin.php:1020, dist/visual-portfolio/classes/class-admin.php:1021, dist/visual-portfolio/classes/class-admin.php:2013, dist/visual-portfolio/classes/class-admin.php:2014
279
  msgid "Prev arrow icon"
280
  msgstr ""
281
 
282
- #: dist/visual-portfolio/classes/class-admin.php:1033, dist/visual-portfolio/classes/class-admin.php:1034, dist/visual-portfolio/classes/class-admin.php:2038, dist/visual-portfolio/classes/class-admin.php:2039
283
  msgid "Next arrow icon"
284
  msgstr ""
285
 
286
- #: dist/visual-portfolio/classes/class-admin.php:1044
287
  msgid "Show bullets"
288
  msgstr ""
289
 
290
- #: dist/visual-portfolio/classes/class-admin.php:1050
291
  msgid "Dynamic bullets"
292
  msgstr ""
293
 
294
- #: dist/visual-portfolio/classes/class-admin.php:1061
295
  msgid "Mousewheel Control"
296
  msgstr ""
297
 
298
- #: dist/visual-portfolio/classes/class-admin.php:1126
299
  msgid "Gap"
300
  msgstr ""
301
 
302
- #: dist/visual-portfolio/classes/class-admin.php:1138
303
  msgid "Items per page"
304
  msgstr ""
305
 
306
- #: dist/visual-portfolio/classes/class-admin.php:1150
307
  msgid "Stretch"
308
  msgstr ""
309
 
310
- #: dist/visual-portfolio/classes/class-admin.php:1153
311
  msgid "Break container and display it wide"
312
  msgstr ""
313
 
314
- #: dist/visual-portfolio/classes/class-admin.php:1164, dist/visual-portfolio/classes/class-admin.php:1536, dist/visual-portfolio/classes/class-admin.php:1560, dist/visual-portfolio/classes/class-admin.php:1684
315
  msgid "Default"
316
  msgstr ""
317
 
318
- #: dist/visual-portfolio/classes/class-admin.php:1176
319
  msgid "Show Read more button"
320
  msgstr ""
321
 
322
- #: dist/visual-portfolio/classes/class-admin.php:1180, dist/visual-portfolio/classes/class-admin.php:1394
323
  msgid "False"
324
  msgstr ""
325
 
326
- #: dist/visual-portfolio/classes/class-admin.php:1181
327
  msgid "Always show"
328
  msgstr ""
329
 
330
- #: dist/visual-portfolio/classes/class-admin.php:1182
331
  msgid "Show when used \"More tag\" in the post"
332
  msgstr ""
333
 
334
- #: dist/visual-portfolio/classes/class-admin.php:1190
335
  msgid "Read more button label"
336
  msgstr ""
337
 
338
- #: dist/visual-portfolio/classes/class-admin.php:1205
339
  msgid "Fly"
340
  msgstr ""
341
 
342
- #: dist/visual-portfolio/classes/class-admin.php:1217, dist/visual-portfolio/classes/class-admin.php:1258, dist/visual-portfolio/classes/class-admin.php:1299
343
  msgid "Overlay background color"
344
  msgstr ""
345
 
346
- #: dist/visual-portfolio/classes/class-admin.php:1230, dist/visual-portfolio/classes/class-admin.php:1271, dist/visual-portfolio/classes/class-admin.php:1312
347
  msgid "Overlay text color"
348
  msgstr ""
349
 
350
- #: dist/visual-portfolio/classes/class-admin.php:1246
351
  msgid "Emerge"
352
  msgstr ""
353
 
354
- #: dist/visual-portfolio/classes/class-admin.php:1361
355
  msgid "Show title"
356
  msgstr ""
357
 
358
- #: dist/visual-portfolio/classes/class-admin.php:1369
359
  msgid "Show categories"
360
  msgstr ""
361
 
362
- #: dist/visual-portfolio/classes/class-admin.php:1375
363
  msgid "Categories count"
364
  msgstr ""
365
 
366
- #: dist/visual-portfolio/classes/class-admin.php:1390
367
  msgid "Show date"
368
  msgstr ""
369
 
370
- #: dist/visual-portfolio/classes/class-admin.php:1395
371
  msgid "Show"
372
  msgstr ""
373
 
374
- #: dist/visual-portfolio/classes/class-admin.php:1396
375
  msgid "Human Format"
376
  msgstr ""
377
 
378
- #: dist/visual-portfolio/classes/class-admin.php:1404
379
  msgid ""
380
  "Date format
381
  " Example: F j, Y"
382
  msgstr ""
383
 
384
- #: dist/visual-portfolio/classes/class-admin.php:1416
385
  msgid "Show excerpt"
386
  msgstr ""
387
 
388
- #: dist/visual-portfolio/classes/class-admin.php:1422
389
  msgid "Excerpt words count"
390
  msgstr ""
391
 
392
- #: dist/visual-portfolio/classes/class-admin.php:1437
393
  msgid "Show icon"
394
  msgstr ""
395
 
396
- #: dist/visual-portfolio/classes/class-admin.php:1445, dist/visual-portfolio/classes/class-admin.php:1446
397
  msgid "Standard icon"
398
  msgstr ""
399
 
400
- #: dist/visual-portfolio/classes/class-admin.php:1458, dist/visual-portfolio/classes/class-admin.php:1459
401
  msgid "Video icon"
402
  msgstr ""
403
 
404
- #: dist/visual-portfolio/classes/class-admin.php:1471
405
  msgid "Caption align"
406
  msgstr ""
407
 
408
- #: dist/visual-portfolio/classes/class-admin.php:1524, dist/visual-portfolio/classes/class-admin.php:1554, dist/visual-portfolio/classes/class-admin.php:1678
409
  msgid "Disabled"
410
  msgstr ""
411
 
412
- #: dist/visual-portfolio/classes/class-admin.php:1525, dist/visual-portfolio/classes/class-controls.php:625
413
  msgid "URL"
414
  msgstr ""
415
 
416
- #: dist/visual-portfolio/classes/class-admin.php:1526, dist/visual-portfolio/classes/class-settings.php:104
417
  msgid "Popup Gallery"
418
  msgstr ""
419
 
420
- #: dist/visual-portfolio/classes/class-admin.php:1532
421
  msgid "Target"
422
  msgstr ""
423
 
424
- #: dist/visual-portfolio/classes/class-admin.php:1537
425
  msgid "New tab (_blank)"
426
  msgstr ""
427
 
428
- #: dist/visual-portfolio/classes/class-admin.php:1538
429
  msgid "Top frame (_top)"
430
  msgstr ""
431
 
432
- #: dist/visual-portfolio/classes/class-admin.php:1622, dist/visual-portfolio/classes/class-admin.php:1787
433
  msgid "Align"
434
  msgstr ""
435
 
436
- #: dist/visual-portfolio/classes/class-admin.php:1626, dist/visual-portfolio/classes/class-admin.php:1791, 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
437
  msgid "Center"
438
  msgstr ""
439
 
440
- #: dist/visual-portfolio/classes/class-admin.php:1627, dist/visual-portfolio/classes/class-admin.php:1792, dist/visual-portfolio/classes/class-controls.php:538, dist/visual-portfolio/classes/class-controls.php:551, dist/visual-portfolio/classes/class-controls.php:564
441
  msgid "Left"
442
  msgstr ""
443
 
444
- #: dist/visual-portfolio/classes/class-admin.php:1628, dist/visual-portfolio/classes/class-admin.php:1793, dist/visual-portfolio/classes/class-controls.php:541, dist/visual-portfolio/classes/class-controls.php:554, dist/visual-portfolio/classes/class-controls.php:567
445
  msgid "Right"
446
  msgstr ""
447
 
448
- #: dist/visual-portfolio/classes/class-admin.php:1643
449
  msgid "Show count"
450
  msgstr ""
451
 
452
- #: dist/visual-portfolio/classes/class-admin.php:1659
453
  msgid "All button text"
454
  msgstr ""
455
 
456
- #: dist/visual-portfolio/classes/class-admin.php:1661
457
  msgid "All"
458
  msgstr ""
459
 
460
- #: dist/visual-portfolio/classes/class-admin.php:1750
461
  msgid "Paged"
462
  msgstr ""
463
 
464
- #: dist/visual-portfolio/classes/class-admin.php:1751
465
  msgid "Load More"
466
  msgstr ""
467
 
468
- #: dist/visual-portfolio/classes/class-admin.php:1752
469
  msgid "Infinite"
470
  msgstr ""
471
 
472
- #: dist/visual-portfolio/classes/class-admin.php:1767
473
  msgid "Note: you will see the \"Load More\" pagination in the preview. \"Infinite\" pagination will be visible on the site."
474
  msgstr ""
475
 
476
- #: dist/visual-portfolio/classes/class-admin.php:1813, dist/visual-portfolio/classes/class-admin.php:1833
477
  msgid "Texts"
478
  msgstr ""
479
 
480
- #: dist/visual-portfolio/classes/class-admin.php:1854, dist/visual-portfolio/classes/class-admin.php:1923
481
  msgid "Load more"
482
  msgstr ""
483
 
484
- #: dist/visual-portfolio/classes/class-admin.php:1855, dist/visual-portfolio/classes/class-admin.php:1856, dist/visual-portfolio/classes/class-admin.php:1924, dist/visual-portfolio/classes/class-admin.php:1925
485
  msgid "Load more button label"
486
  msgstr ""
487
 
488
- #: dist/visual-portfolio/classes/class-admin.php:1877, dist/visual-portfolio/classes/class-admin.php:1946
489
  msgid "Loading more..."
490
  msgstr ""
491
 
492
- #: dist/visual-portfolio/classes/class-admin.php:1878, dist/visual-portfolio/classes/class-admin.php:1879, dist/visual-portfolio/classes/class-admin.php:1947, dist/visual-portfolio/classes/class-admin.php:1948
493
  msgid "Loading more button label"
494
  msgstr ""
495
 
496
- #: dist/visual-portfolio/classes/class-admin.php:1900, dist/visual-portfolio/classes/class-admin.php:1969
497
  msgid "You’ve reached the end of the list"
498
  msgstr ""
499
 
500
- #: dist/visual-portfolio/classes/class-admin.php:1901, dist/visual-portfolio/classes/class-admin.php:1902, dist/visual-portfolio/classes/class-admin.php:1970, dist/visual-portfolio/classes/class-admin.php:1971
501
  msgid "End of the list text"
502
  msgstr ""
503
 
504
- #: dist/visual-portfolio/classes/class-admin.php:2061
505
  msgid "Show numbers"
506
  msgstr ""
507
 
508
- #: dist/visual-portfolio/classes/class-admin.php:2125
509
  msgid "Data source"
510
  msgstr ""
511
 
512
- #: dist/visual-portfolio/classes/class-admin.php:2137
513
  msgid "Specific posts"
514
  msgstr ""
515
 
516
- #: dist/visual-portfolio/classes/class-admin.php:2158
517
  msgid "Excluded posts"
518
  msgstr ""
519
 
520
- #: dist/visual-portfolio/classes/class-admin.php:2186
521
  msgid "Custom query"
522
  msgstr ""
523
 
524
  #. translators: %1$s - escaped url.
525
- #: dist/visual-portfolio/classes/class-admin.php:2188
526
  msgid "Build custom query according to <a href=\"%1$s\">WordPress Codex</a>."
527
  msgstr ""
528
 
529
- #: dist/visual-portfolio/classes/class-admin.php:2214
530
  msgid "Taxonomies"
531
  msgstr ""
532
 
533
- #: dist/visual-portfolio/classes/class-admin.php:2241
534
  msgid "Taxonomies relation"
535
  msgstr ""
536
 
537
- #: dist/visual-portfolio/classes/class-admin.php:2245
538
  msgid "OR"
539
  msgstr ""
540
 
541
- #: dist/visual-portfolio/classes/class-admin.php:2246
542
  msgid "AND"
543
  msgstr ""
544
 
545
- #: dist/visual-portfolio/classes/class-admin.php:2267
546
  msgid "Order by"
547
  msgstr ""
548
 
549
- #: dist/visual-portfolio/classes/class-admin.php:2271
550
  msgid "Date"
551
  msgstr ""
552
 
553
- #: dist/visual-portfolio/classes/class-admin.php:2272, dist/visual-portfolio/classes/class-controls.php:586
554
  msgid "Title"
555
  msgstr ""
556
 
557
- #: dist/visual-portfolio/classes/class-admin.php:2273
558
  msgid "ID"
559
  msgstr ""
560
 
561
- #: dist/visual-portfolio/classes/class-admin.php:2274
562
  msgid "Menu Order"
563
  msgstr ""
564
 
565
- #: dist/visual-portfolio/classes/class-admin.php:2275
566
  msgid "Random"
567
  msgstr ""
568
 
569
- #: dist/visual-portfolio/classes/class-admin.php:2284
570
  msgid "Order direction"
571
  msgstr ""
572
 
573
- #: dist/visual-portfolio/classes/class-admin.php:2288
574
  msgid "DESC"
575
  msgstr ""
576
 
577
- #: dist/visual-portfolio/classes/class-admin.php:2289
578
  msgid "ASC"
579
  msgstr ""
580
 
581
- #: dist/visual-portfolio/classes/class-admin.php:2328
 
 
 
 
582
  msgid "Name & Shortcode"
583
  msgstr ""
584
 
585
- #: dist/visual-portfolio/classes/class-admin.php:2336
586
  msgid "Layout"
587
  msgstr ""
588
 
589
- #: dist/visual-portfolio/classes/class-admin.php:2344
590
  msgid "Items Style"
591
  msgstr ""
592
 
593
- #: dist/visual-portfolio/classes/class-admin.php:2352
594
  msgid "Items Click Action"
595
  msgstr ""
596
 
597
- #: dist/visual-portfolio/classes/class-admin.php:2360
598
  msgid "Filter"
599
  msgstr ""
600
 
601
- #: dist/visual-portfolio/classes/class-admin.php:2368
602
  msgid "Pagination"
603
  msgstr ""
604
 
605
- #: dist/visual-portfolio/classes/class-admin.php:2377
606
  msgid "Preview"
607
  msgstr ""
608
 
609
- #: dist/visual-portfolio/classes/class-admin.php:2385
610
  msgid "Content Source"
611
  msgstr ""
612
 
613
- #: dist/visual-portfolio/classes/class-admin.php:2393
614
  msgid "Custom CSS"
615
  msgstr ""
616
 
617
- #: dist/visual-portfolio/classes/class-admin.php:2414
618
  msgid "Name"
619
  msgstr ""
620
 
621
- #: dist/visual-portfolio/classes/class-admin.php:2424
622
  msgid "Place the shortcode where you want to show the portfolio list."
623
  msgstr ""
624
 
625
- #: dist/visual-portfolio/classes/class-admin.php:2490
626
  msgid "Filter Shortcode"
627
  msgstr ""
628
 
629
- #: dist/visual-portfolio/classes/class-admin.php:2491
630
  msgid "Place the shortcode where you want to show the filter."
631
  msgstr ""
632
 
633
- #: dist/visual-portfolio/classes/class-admin.php:2558
634
  msgid "Portfolio"
635
  msgstr ""
636
 
637
- #: dist/visual-portfolio/classes/class-admin.php:2564
638
  msgid "Post-Based"
639
  msgstr ""
640
 
641
- #: dist/visual-portfolio/classes/class-admin.php:2570
642
  msgid "Images"
643
  msgstr ""
644
 
645
  #. translators: %1$s - escaped url.
646
- #: dist/visual-portfolio/classes/class-admin.php:2589
647
  msgid "Portfolio items list from <a href=\"%1$s\" target=\"_blank\">%2$s</a>"
648
  msgstr ""
649
 
650
- #: dist/visual-portfolio/classes/class-admin.php:2625
651
  msgid "Available classes:"
652
  msgstr ""
653
 
654
- #: dist/visual-portfolio/classes/class-admin.php:2628
655
  msgid " - use this classname for each styles you added. It is the main Visual Portfolio wrapper."
656
  msgstr ""
657
 
658
- #: dist/visual-portfolio/classes/class-admin.php:2629
659
  msgid " - items wrapper."
660
  msgstr ""
661
 
662
- #: dist/visual-portfolio/classes/class-admin.php:2630
663
  msgid " - single item wrapper."
664
  msgstr ""
665
 
666
- #: dist/visual-portfolio/classes/class-admin.php:2631
667
  msgid " - filter wrapper."
668
  msgstr ""
669
 
670
- #: dist/visual-portfolio/classes/class-admin.php:2632
671
  msgid " - pagination wrapper."
672
  msgstr ""
673
 
674
- #: dist/visual-portfolio/classes/class-admin.php:2693
675
  msgid "Specific Posts"
676
  msgstr ""
677
 
678
- #: dist/visual-portfolio/classes/class-admin.php:2694
679
  msgid "Custom Query"
680
  msgstr ""
681
 
@@ -715,12 +731,12 @@ msgstr ""
715
  msgid "Edit"
716
  msgstr ""
717
 
718
- #: dist/visual-portfolio/classes/class-get-portfolio.php:225
719
  msgid "No items found."
720
  msgstr ""
721
 
722
  #. translators: %s - published in human format.
723
- #: dist/visual-portfolio/classes/class-get-portfolio.php:1091
724
  msgid "%s ago"
725
  msgstr ""
726
 
53
  msgid "Portfolio Item"
54
  msgstr ""
55
 
56
+ #: dist/visual-portfolio/classes/class-admin.php:211, dist/visual-portfolio/classes/class-admin.php:304, dist/visual-portfolio/classes/class-admin.php:629, dist/visual-portfolio/classes/class-vc.php:65
57
  msgid "Visual Portfolio"
58
  msgstr ""
59
 
60
+ #: dist/visual-portfolio/classes/class-admin.php:212, dist/visual-portfolio/classes/class-admin.php:305
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:216, dist/visual-portfolio/classes/class-admin.php:309
77
  msgid "Add New"
78
  msgstr ""
79
 
89
  msgid "Search Portfolio Item"
90
  msgstr ""
91
 
92
+ #: dist/visual-portfolio/classes/class-admin.php:220, dist/visual-portfolio/classes/class-admin.php:313
93
  msgid "Not Found"
94
  msgstr ""
95
 
96
+ #: dist/visual-portfolio/classes/class-admin.php:221, dist/visual-portfolio/classes/class-admin.php:314
97
  msgid "Not found in Trash"
98
  msgstr ""
99
 
100
+ #: dist/visual-portfolio/classes/class-admin.php:266
101
  msgid "Portfolio Categories"
102
  msgstr ""
103
 
104
+ #: dist/visual-portfolio/classes/class-admin.php:268, dist/visual-portfolio/classes/class-controls.php:596
105
  msgid "Categories"
106
  msgstr ""
107
 
108
+ #: dist/visual-portfolio/classes/class-admin.php:282
109
  msgid "Portfolio Tags"
110
  msgstr ""
111
 
112
+ #: dist/visual-portfolio/classes/class-admin.php:284
113
  msgid "Tags"
114
  msgstr ""
115
 
116
+ #: dist/visual-portfolio/classes/class-admin.php:302
117
  msgctxt "Post Type General Name"
118
  msgid "Portfolio Layouts"
119
  msgstr ""
120
 
121
+ #: dist/visual-portfolio/classes/class-admin.php:303
122
  msgctxt "Post Type Singular Name"
123
  msgid "Portfolio Layout"
124
  msgstr ""
125
 
126
+ #: dist/visual-portfolio/classes/class-admin.php:306
127
  msgid "Portfolio Layouts"
128
  msgstr ""
129
 
130
+ #: dist/visual-portfolio/classes/class-admin.php:307
131
  msgid "View Portfolio Layout"
132
  msgstr ""
133
 
134
+ #: dist/visual-portfolio/classes/class-admin.php:308
135
  msgid "Add New Portfolio Layout"
136
  msgstr ""
137
 
138
+ #: dist/visual-portfolio/classes/class-admin.php:310
139
  msgid "Edit Portfolio Layout"
140
  msgstr ""
141
 
142
+ #: dist/visual-portfolio/classes/class-admin.php:311
143
  msgid "Update Portfolio Layout"
144
  msgstr ""
145
 
146
+ #: dist/visual-portfolio/classes/class-admin.php:312
147
  msgid "Search Portfolio Layout"
148
  msgstr ""
149
 
150
+ #: dist/visual-portfolio/classes/class-admin.php:367, dist/visual-portfolio/classes/class-controls.php:608
151
  msgid "Video"
152
  msgstr ""
153
 
154
+ #: dist/visual-portfolio/classes/class-admin.php:407
155
  msgid "https://"
156
  msgstr ""
157
 
158
+ #: dist/visual-portfolio/classes/class-admin.php:506
159
  msgid "Ready to add your awesome portfolio?"
160
  msgstr ""
161
 
162
+ #: dist/visual-portfolio/classes/class-admin.php:507
163
  msgid "Create your first portfolio list!"
164
  msgstr ""
165
 
166
+ #: dist/visual-portfolio/classes/class-admin.php:546
167
  msgid "Thumbnail"
168
  msgstr ""
169
 
170
+ #: dist/visual-portfolio/classes/class-admin.php:589, dist/visual-portfolio/classes/class-admin.php:2489
171
  msgid "Shortcode"
172
  msgstr ""
173
 
174
+ #: dist/visual-portfolio/classes/class-admin.php:682, dist/visual-portfolio/classes/class-admin.php:683
175
  msgid "Documentation"
176
  msgstr ""
177
 
178
+ #: dist/visual-portfolio/classes/class-admin.php:701
179
  msgid "Tiles"
180
  msgstr ""
181
 
182
+ #: dist/visual-portfolio/classes/class-admin.php:716, dist/visual-portfolio/classes/class-admin.php:1780
183
  msgid "Type"
184
  msgstr ""
185
 
186
+ #: dist/visual-portfolio/classes/class-admin.php:717
187
  msgid "Select tiles type"
188
  msgstr ""
189
 
190
+ #: dist/visual-portfolio/classes/class-admin.php:836
191
  msgid "Masonry"
192
  msgstr ""
193
 
194
+ #: dist/visual-portfolio/classes/class-admin.php:840, dist/visual-portfolio/classes/class-admin.php:855
195
  msgid "Columns"
196
  msgstr ""
197
 
198
+ #: dist/visual-portfolio/classes/class-admin.php:851
199
+ msgid "Grid"
200
+ msgstr ""
201
+
202
+ #: dist/visual-portfolio/classes/class-admin.php:866
203
  msgid "Justified"
204
  msgstr ""
205
 
206
+ #: dist/visual-portfolio/classes/class-admin.php:870
207
  msgid "Row height"
208
  msgstr ""
209
 
210
+ #: dist/visual-portfolio/classes/class-admin.php:878
211
  msgid "Row height tolerance"
212
  msgstr ""
213
 
214
+ #: dist/visual-portfolio/classes/class-admin.php:890
215
  msgid "Slider"
216
  msgstr ""
217
 
218
+ #: dist/visual-portfolio/classes/class-admin.php:894
219
  msgid "Effect"
220
  msgstr ""
221
 
222
+ #: dist/visual-portfolio/classes/class-admin.php:898
223
  msgid "Slide"
224
  msgstr ""
225
 
226
+ #: dist/visual-portfolio/classes/class-admin.php:899
227
  msgid "Coverflow"
228
  msgstr ""
229
 
230
+ #: dist/visual-portfolio/classes/class-admin.php:900, dist/visual-portfolio/classes/class-admin.php:1322
231
  msgid "Fade"
232
  msgstr ""
233
 
234
+ #: dist/visual-portfolio/classes/class-admin.php:905
235
  msgid "Speed (seconds)"
236
  msgstr ""
237
 
238
+ #: dist/visual-portfolio/classes/class-admin.php:914
239
  msgid "Autoplay (seconds)"
240
  msgstr ""
241
 
242
+ #: dist/visual-portfolio/classes/class-admin.php:923
243
+ msgid "Pause on Mouse Over"
244
+ msgstr ""
245
+
246
+ #: dist/visual-portfolio/classes/class-admin.php:936
247
  msgid "Items height"
248
  msgstr ""
249
 
250
+ #: dist/visual-portfolio/classes/class-admin.php:940, dist/visual-portfolio/classes/class-admin.php:979
251
  msgid "Auto"
252
  msgstr ""
253
 
254
+ #: dist/visual-portfolio/classes/class-admin.php:941
255
  msgid "Static (px)"
256
  msgstr ""
257
 
258
+ #: dist/visual-portfolio/classes/class-admin.php:942
259
  msgid "Dynamic (%)"
260
  msgstr ""
261
 
262
+ #: dist/visual-portfolio/classes/class-admin.php:975
263
  msgid "Slides per view"
264
  msgstr ""
265
 
266
+ #: dist/visual-portfolio/classes/class-admin.php:980
267
  msgid "Custom"
268
  msgstr ""
269
 
270
+ #: dist/visual-portfolio/classes/class-admin.php:1011
271
  msgid "Centered slides"
272
  msgstr ""
273
 
274
+ #: dist/visual-portfolio/classes/class-admin.php:1024
275
  msgid "Loop"
276
  msgstr ""
277
 
278
+ #: dist/visual-portfolio/classes/class-admin.php:1030
279
  msgid "Free scroll"
280
  msgstr ""
281
 
282
+ #: dist/visual-portfolio/classes/class-admin.php:1036
283
+ msgid "Free scroll Sticky"
284
+ msgstr ""
285
+
286
+ #: dist/visual-portfolio/classes/class-admin.php:1047, dist/visual-portfolio/classes/class-admin.php:2026, dist/visual-portfolio/classes/class-settings.php:146
287
  msgid "Show arrows"
288
  msgstr ""
289
 
290
+ #: dist/visual-portfolio/classes/class-admin.php:1055, dist/visual-portfolio/classes/class-admin.php:1056, dist/visual-portfolio/classes/class-admin.php:2048, dist/visual-portfolio/classes/class-admin.php:2049
291
  msgid "Prev arrow icon"
292
  msgstr ""
293
 
294
+ #: dist/visual-portfolio/classes/class-admin.php:1068, dist/visual-portfolio/classes/class-admin.php:1069, dist/visual-portfolio/classes/class-admin.php:2073, dist/visual-portfolio/classes/class-admin.php:2074
295
  msgid "Next arrow icon"
296
  msgstr ""
297
 
298
+ #: dist/visual-portfolio/classes/class-admin.php:1079
299
  msgid "Show bullets"
300
  msgstr ""
301
 
302
+ #: dist/visual-portfolio/classes/class-admin.php:1085
303
  msgid "Dynamic bullets"
304
  msgstr ""
305
 
306
+ #: dist/visual-portfolio/classes/class-admin.php:1096
307
  msgid "Mousewheel Control"
308
  msgstr ""
309
 
310
+ #: dist/visual-portfolio/classes/class-admin.php:1161
311
  msgid "Gap"
312
  msgstr ""
313
 
314
+ #: dist/visual-portfolio/classes/class-admin.php:1173
315
  msgid "Items per page"
316
  msgstr ""
317
 
318
+ #: dist/visual-portfolio/classes/class-admin.php:1185
319
  msgid "Stretch"
320
  msgstr ""
321
 
322
+ #: dist/visual-portfolio/classes/class-admin.php:1188
323
  msgid "Break container and display it wide"
324
  msgstr ""
325
 
326
+ #: dist/visual-portfolio/classes/class-admin.php:1199, dist/visual-portfolio/classes/class-admin.php:1571, dist/visual-portfolio/classes/class-admin.php:1595, dist/visual-portfolio/classes/class-admin.php:1719, dist/visual-portfolio/classes/class-admin.php:2360
327
  msgid "Default"
328
  msgstr ""
329
 
330
+ #: dist/visual-portfolio/classes/class-admin.php:1211
331
  msgid "Show Read more button"
332
  msgstr ""
333
 
334
+ #: dist/visual-portfolio/classes/class-admin.php:1215, dist/visual-portfolio/classes/class-admin.php:1429
335
  msgid "False"
336
  msgstr ""
337
 
338
+ #: dist/visual-portfolio/classes/class-admin.php:1216
339
  msgid "Always show"
340
  msgstr ""
341
 
342
+ #: dist/visual-portfolio/classes/class-admin.php:1217
343
  msgid "Show when used \"More tag\" in the post"
344
  msgstr ""
345
 
346
+ #: dist/visual-portfolio/classes/class-admin.php:1225
347
  msgid "Read more button label"
348
  msgstr ""
349
 
350
+ #: dist/visual-portfolio/classes/class-admin.php:1240
351
  msgid "Fly"
352
  msgstr ""
353
 
354
+ #: dist/visual-portfolio/classes/class-admin.php:1252, dist/visual-portfolio/classes/class-admin.php:1293, dist/visual-portfolio/classes/class-admin.php:1334
355
  msgid "Overlay background color"
356
  msgstr ""
357
 
358
+ #: dist/visual-portfolio/classes/class-admin.php:1265, dist/visual-portfolio/classes/class-admin.php:1306, dist/visual-portfolio/classes/class-admin.php:1347
359
  msgid "Overlay text color"
360
  msgstr ""
361
 
362
+ #: dist/visual-portfolio/classes/class-admin.php:1281
363
  msgid "Emerge"
364
  msgstr ""
365
 
366
+ #: dist/visual-portfolio/classes/class-admin.php:1396
367
  msgid "Show title"
368
  msgstr ""
369
 
370
+ #: dist/visual-portfolio/classes/class-admin.php:1404
371
  msgid "Show categories"
372
  msgstr ""
373
 
374
+ #: dist/visual-portfolio/classes/class-admin.php:1410
375
  msgid "Categories count"
376
  msgstr ""
377
 
378
+ #: dist/visual-portfolio/classes/class-admin.php:1425
379
  msgid "Show date"
380
  msgstr ""
381
 
382
+ #: dist/visual-portfolio/classes/class-admin.php:1430
383
  msgid "Show"
384
  msgstr ""
385
 
386
+ #: dist/visual-portfolio/classes/class-admin.php:1431
387
  msgid "Human Format"
388
  msgstr ""
389
 
390
+ #: dist/visual-portfolio/classes/class-admin.php:1439
391
  msgid ""
392
  "Date format
393
  " Example: F j, Y"
394
  msgstr ""
395
 
396
+ #: dist/visual-portfolio/classes/class-admin.php:1451
397
  msgid "Show excerpt"
398
  msgstr ""
399
 
400
+ #: dist/visual-portfolio/classes/class-admin.php:1457
401
  msgid "Excerpt words count"
402
  msgstr ""
403
 
404
+ #: dist/visual-portfolio/classes/class-admin.php:1472
405
  msgid "Show icon"
406
  msgstr ""
407
 
408
+ #: dist/visual-portfolio/classes/class-admin.php:1480, dist/visual-portfolio/classes/class-admin.php:1481
409
  msgid "Standard icon"
410
  msgstr ""
411
 
412
+ #: dist/visual-portfolio/classes/class-admin.php:1493, dist/visual-portfolio/classes/class-admin.php:1494
413
  msgid "Video icon"
414
  msgstr ""
415
 
416
+ #: dist/visual-portfolio/classes/class-admin.php:1506
417
  msgid "Caption align"
418
  msgstr ""
419
 
420
+ #: dist/visual-portfolio/classes/class-admin.php:1559, dist/visual-portfolio/classes/class-admin.php:1589, dist/visual-portfolio/classes/class-admin.php:1713
421
  msgid "Disabled"
422
  msgstr ""
423
 
424
+ #: dist/visual-portfolio/classes/class-admin.php:1560, dist/visual-portfolio/classes/class-controls.php:625
425
  msgid "URL"
426
  msgstr ""
427
 
428
+ #: dist/visual-portfolio/classes/class-admin.php:1561, dist/visual-portfolio/classes/class-settings.php:104
429
  msgid "Popup Gallery"
430
  msgstr ""
431
 
432
+ #: dist/visual-portfolio/classes/class-admin.php:1567
433
  msgid "Target"
434
  msgstr ""
435
 
436
+ #: dist/visual-portfolio/classes/class-admin.php:1572
437
  msgid "New tab (_blank)"
438
  msgstr ""
439
 
440
+ #: dist/visual-portfolio/classes/class-admin.php:1573
441
  msgid "Top frame (_top)"
442
  msgstr ""
443
 
444
+ #: dist/visual-portfolio/classes/class-admin.php:1657, dist/visual-portfolio/classes/class-admin.php:1822
445
  msgid "Align"
446
  msgstr ""
447
 
448
+ #: dist/visual-portfolio/classes/class-admin.php:1661, dist/visual-portfolio/classes/class-admin.php:1826, 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
449
  msgid "Center"
450
  msgstr ""
451
 
452
+ #: dist/visual-portfolio/classes/class-admin.php:1662, dist/visual-portfolio/classes/class-admin.php:1827, dist/visual-portfolio/classes/class-controls.php:538, dist/visual-portfolio/classes/class-controls.php:551, dist/visual-portfolio/classes/class-controls.php:564
453
  msgid "Left"
454
  msgstr ""
455
 
456
+ #: dist/visual-portfolio/classes/class-admin.php:1663, dist/visual-portfolio/classes/class-admin.php:1828, dist/visual-portfolio/classes/class-controls.php:541, dist/visual-portfolio/classes/class-controls.php:554, dist/visual-portfolio/classes/class-controls.php:567
457
  msgid "Right"
458
  msgstr ""
459
 
460
+ #: dist/visual-portfolio/classes/class-admin.php:1678
461
  msgid "Show count"
462
  msgstr ""
463
 
464
+ #: dist/visual-portfolio/classes/class-admin.php:1694
465
  msgid "All button text"
466
  msgstr ""
467
 
468
+ #: dist/visual-portfolio/classes/class-admin.php:1696
469
  msgid "All"
470
  msgstr ""
471
 
472
+ #: dist/visual-portfolio/classes/class-admin.php:1785
473
  msgid "Paged"
474
  msgstr ""
475
 
476
+ #: dist/visual-portfolio/classes/class-admin.php:1786
477
  msgid "Load More"
478
  msgstr ""
479
 
480
+ #: dist/visual-portfolio/classes/class-admin.php:1787
481
  msgid "Infinite"
482
  msgstr ""
483
 
484
+ #: dist/visual-portfolio/classes/class-admin.php:1802
485
  msgid "Note: you will see the \"Load More\" pagination in the preview. \"Infinite\" pagination will be visible on the site."
486
  msgstr ""
487
 
488
+ #: dist/visual-portfolio/classes/class-admin.php:1848, dist/visual-portfolio/classes/class-admin.php:1868
489
  msgid "Texts"
490
  msgstr ""
491
 
492
+ #: dist/visual-portfolio/classes/class-admin.php:1889, dist/visual-portfolio/classes/class-admin.php:1958
493
  msgid "Load more"
494
  msgstr ""
495
 
496
+ #: dist/visual-portfolio/classes/class-admin.php:1890, dist/visual-portfolio/classes/class-admin.php:1891, dist/visual-portfolio/classes/class-admin.php:1959, dist/visual-portfolio/classes/class-admin.php:1960
497
  msgid "Load more button label"
498
  msgstr ""
499
 
500
+ #: dist/visual-portfolio/classes/class-admin.php:1912, dist/visual-portfolio/classes/class-admin.php:1981
501
  msgid "Loading more..."
502
  msgstr ""
503
 
504
+ #: dist/visual-portfolio/classes/class-admin.php:1913, dist/visual-portfolio/classes/class-admin.php:1914, dist/visual-portfolio/classes/class-admin.php:1982, dist/visual-portfolio/classes/class-admin.php:1983
505
  msgid "Loading more button label"
506
  msgstr ""
507
 
508
+ #: dist/visual-portfolio/classes/class-admin.php:1935, dist/visual-portfolio/classes/class-admin.php:2004
509
  msgid "You’ve reached the end of the list"
510
  msgstr ""
511
 
512
+ #: dist/visual-portfolio/classes/class-admin.php:1936, dist/visual-portfolio/classes/class-admin.php:1937, dist/visual-portfolio/classes/class-admin.php:2005, dist/visual-portfolio/classes/class-admin.php:2006
513
  msgid "End of the list text"
514
  msgstr ""
515
 
516
+ #: dist/visual-portfolio/classes/class-admin.php:2096
517
  msgid "Show numbers"
518
  msgstr ""
519
 
520
+ #: dist/visual-portfolio/classes/class-admin.php:2160
521
  msgid "Data source"
522
  msgstr ""
523
 
524
+ #: dist/visual-portfolio/classes/class-admin.php:2172
525
  msgid "Specific posts"
526
  msgstr ""
527
 
528
+ #: dist/visual-portfolio/classes/class-admin.php:2193
529
  msgid "Excluded posts"
530
  msgstr ""
531
 
532
+ #: dist/visual-portfolio/classes/class-admin.php:2221
533
  msgid "Custom query"
534
  msgstr ""
535
 
536
  #. translators: %1$s - escaped url.
537
+ #: dist/visual-portfolio/classes/class-admin.php:2223
538
  msgid "Build custom query according to <a href=\"%1$s\">WordPress Codex</a>."
539
  msgstr ""
540
 
541
+ #: dist/visual-portfolio/classes/class-admin.php:2249
542
  msgid "Taxonomies"
543
  msgstr ""
544
 
545
+ #: dist/visual-portfolio/classes/class-admin.php:2276
546
  msgid "Taxonomies relation"
547
  msgstr ""
548
 
549
+ #: dist/visual-portfolio/classes/class-admin.php:2280
550
  msgid "OR"
551
  msgstr ""
552
 
553
+ #: dist/visual-portfolio/classes/class-admin.php:2281
554
  msgid "AND"
555
  msgstr ""
556
 
557
+ #: dist/visual-portfolio/classes/class-admin.php:2302, dist/visual-portfolio/classes/class-admin.php:2356
558
  msgid "Order by"
559
  msgstr ""
560
 
561
+ #: dist/visual-portfolio/classes/class-admin.php:2306
562
  msgid "Date"
563
  msgstr ""
564
 
565
+ #: dist/visual-portfolio/classes/class-admin.php:2307, dist/visual-portfolio/classes/class-admin.php:2362, dist/visual-portfolio/classes/class-controls.php:586
566
  msgid "Title"
567
  msgstr ""
568
 
569
+ #: dist/visual-portfolio/classes/class-admin.php:2308
570
  msgid "ID"
571
  msgstr ""
572
 
573
+ #: dist/visual-portfolio/classes/class-admin.php:2309
574
  msgid "Menu Order"
575
  msgstr ""
576
 
577
+ #: dist/visual-portfolio/classes/class-admin.php:2310, dist/visual-portfolio/classes/class-admin.php:2363
578
  msgid "Random"
579
  msgstr ""
580
 
581
+ #: dist/visual-portfolio/classes/class-admin.php:2319, dist/visual-portfolio/classes/class-admin.php:2372
582
  msgid "Order direction"
583
  msgstr ""
584
 
585
+ #: dist/visual-portfolio/classes/class-admin.php:2323, dist/visual-portfolio/classes/class-admin.php:2377
586
  msgid "DESC"
587
  msgstr ""
588
 
589
+ #: dist/visual-portfolio/classes/class-admin.php:2324, dist/visual-portfolio/classes/class-admin.php:2376
590
  msgid "ASC"
591
  msgstr ""
592
 
593
+ #: dist/visual-portfolio/classes/class-admin.php:2361
594
+ msgid "Uploaded"
595
+ msgstr ""
596
+
597
+ #: dist/visual-portfolio/classes/class-admin.php:2394
598
  msgid "Name & Shortcode"
599
  msgstr ""
600
 
601
+ #: dist/visual-portfolio/classes/class-admin.php:2402
602
  msgid "Layout"
603
  msgstr ""
604
 
605
+ #: dist/visual-portfolio/classes/class-admin.php:2410
606
  msgid "Items Style"
607
  msgstr ""
608
 
609
+ #: dist/visual-portfolio/classes/class-admin.php:2418
610
  msgid "Items Click Action"
611
  msgstr ""
612
 
613
+ #: dist/visual-portfolio/classes/class-admin.php:2426
614
  msgid "Filter"
615
  msgstr ""
616
 
617
+ #: dist/visual-portfolio/classes/class-admin.php:2434
618
  msgid "Pagination"
619
  msgstr ""
620
 
621
+ #: dist/visual-portfolio/classes/class-admin.php:2443
622
  msgid "Preview"
623
  msgstr ""
624
 
625
+ #: dist/visual-portfolio/classes/class-admin.php:2451
626
  msgid "Content Source"
627
  msgstr ""
628
 
629
+ #: dist/visual-portfolio/classes/class-admin.php:2459
630
  msgid "Custom CSS"
631
  msgstr ""
632
 
633
+ #: dist/visual-portfolio/classes/class-admin.php:2480
634
  msgid "Name"
635
  msgstr ""
636
 
637
+ #: dist/visual-portfolio/classes/class-admin.php:2490
638
  msgid "Place the shortcode where you want to show the portfolio list."
639
  msgstr ""
640
 
641
+ #: dist/visual-portfolio/classes/class-admin.php:2556
642
  msgid "Filter Shortcode"
643
  msgstr ""
644
 
645
+ #: dist/visual-portfolio/classes/class-admin.php:2557
646
  msgid "Place the shortcode where you want to show the filter."
647
  msgstr ""
648
 
649
+ #: dist/visual-portfolio/classes/class-admin.php:2624
650
  msgid "Portfolio"
651
  msgstr ""
652
 
653
+ #: dist/visual-portfolio/classes/class-admin.php:2630
654
  msgid "Post-Based"
655
  msgstr ""
656
 
657
+ #: dist/visual-portfolio/classes/class-admin.php:2636
658
  msgid "Images"
659
  msgstr ""
660
 
661
  #. translators: %1$s - escaped url.
662
+ #: dist/visual-portfolio/classes/class-admin.php:2655
663
  msgid "Portfolio items list from <a href=\"%1$s\" target=\"_blank\">%2$s</a>"
664
  msgstr ""
665
 
666
+ #: dist/visual-portfolio/classes/class-admin.php:2693
667
  msgid "Available classes:"
668
  msgstr ""
669
 
670
+ #: dist/visual-portfolio/classes/class-admin.php:2696
671
  msgid " - use this classname for each styles you added. It is the main Visual Portfolio wrapper."
672
  msgstr ""
673
 
674
+ #: dist/visual-portfolio/classes/class-admin.php:2697
675
  msgid " - items wrapper."
676
  msgstr ""
677
 
678
+ #: dist/visual-portfolio/classes/class-admin.php:2698
679
  msgid " - single item wrapper."
680
  msgstr ""
681
 
682
+ #: dist/visual-portfolio/classes/class-admin.php:2699
683
  msgid " - filter wrapper."
684
  msgstr ""
685
 
686
+ #: dist/visual-portfolio/classes/class-admin.php:2700
687
  msgid " - pagination wrapper."
688
  msgstr ""
689
 
690
+ #: dist/visual-portfolio/classes/class-admin.php:2762
691
  msgid "Specific Posts"
692
  msgstr ""
693
 
694
+ #: dist/visual-portfolio/classes/class-admin.php:2763
695
  msgid "Custom Query"
696
  msgstr ""
697
 
731
  msgid "Edit"
732
  msgstr ""
733
 
734
+ #: dist/visual-portfolio/classes/class-get-portfolio.php:232
735
  msgid "No items found."
736
  msgstr ""
737
 
738
  #. translators: %s - published in human format.
739
+ #: dist/visual-portfolio/classes/class-get-portfolio.php:1153
740
  msgid "%s ago"
741
  msgstr ""
742
 
readme.md CHANGED
@@ -3,9 +3,9 @@
3
  * Contributors: nko
4
  * Tags: portfolio, gallery, works, masonry, popup
5
  * Requires at least: 4.0.0
6
- * Tested up to: 5.0
7
  * Requires PHP: 5.4
8
- * Stable tag: 1.9.3
9
  * License: GPLv2 or later
10
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -27,6 +27,7 @@ Visual Portfolio let you create beautiful portfolio layouts. Generates shortcode
27
  * Templates for theme developers
28
  * 4 predefined layouts:
29
  * Masonry
 
30
  * Justified (Flickr)
31
  * Tiles
32
  * Slider (+ Carousel, Coverflow)
@@ -53,8 +54,9 @@ Visual Portfolio let you create beautiful portfolio layouts. Generates shortcode
53
  * Gutenberg WordPress builder supported
54
  * WPBakery Page Builder page builder supported
55
 
56
- ## Real Examples ##
57
 
 
58
  * [Piroll - Portfolio Theme](https://demo.nkdev.info/#piroll)
59
  * [Snow - Portfolio Theme](https://demo.nkdev.info/#snow)
60
 
@@ -119,6 +121,23 @@ The manual installation method involves downloading our Visual Portfolio plugin
119
 
120
  ## Changelog ##
121
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
122
  = 1.9.3 =
123
 
124
  * added WP 5 compatibility in readme
3
  * Contributors: nko
4
  * Tags: portfolio, gallery, works, masonry, popup
5
  * Requires at least: 4.0.0
6
+ * Tested up to: 5.1
7
  * Requires PHP: 5.4
8
+ * Stable tag: 1.10.0
9
  * License: GPLv2 or later
10
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
27
  * Templates for theme developers
28
  * 4 predefined layouts:
29
  * Masonry
30
+ * Grid
31
  * Justified (Flickr)
32
  * Tiles
33
  * Slider (+ Carousel, Coverflow)
54
  * Gutenberg WordPress builder supported
55
  * WPBakery Page Builder page builder supported
56
 
57
+ ## Real Usage Examples ##
58
 
59
+ * [Skylith - Multipurpose Gutenberg Theme](https://demo.nkdev.info/#skylith)
60
  * [Piroll - Portfolio Theme](https://demo.nkdev.info/#piroll)
61
  * [Snow - Portfolio Theme](https://demo.nkdev.info/#snow)
62
 
121
 
122
  ## Changelog ##
123
 
124
+ = 1.10.0 =
125
+
126
+ * added Grid layout
127
+ * added Order by and Order direction for Images Content Source
128
+ * added Pause on Mouse Over option in Slider with Autoplay
129
+ * added Free Scroll Sticky option in Slider
130
+ * added figure and figcaption tags in portfolio items in layouts
131
+ * added 'author' supports to portfolio posts
132
+ * added new jQuery events 'beforeInitIsotope', 'beforeInitFjGallery', 'beforeInitSwiper', so the options could be changed before plugins init
133
+ * changed meta blocks top margin
134
+ * fixed post-based custom taxonomy and specific posts selector saving in WordPress 5.1
135
+ * fixed error because of mb_strtolower existence
136
+ * fixed popup gallery when Attachment used as post type
137
+ * fixed fade meta max width in IE11
138
+ * fixed Gutenberg block preview styles
139
+ * removed code for paged single portfolios (as portfolio archives uses our own GET variable)
140
+
141
  = 1.9.3 =
142
 
143
  * added WP 5 compatibility in readme
templates/items-list/items-style/emerge/meta.php CHANGED
@@ -20,7 +20,7 @@ $show_meta = $opts['show_title'] && $args['title'] ||
20
 
21
  <div class="vp-portfolio__item-overlay vp-portfolio__item-align-<?php echo esc_attr( $opts['align'] ); ?>">
22
  <?php if ( $show_meta ) : ?>
23
- <div class="vp-portfolio__item-meta">
24
  <?php
25
 
26
  // Show Title.
@@ -92,6 +92,6 @@ $show_meta = $opts['show_title'] && $args['title'] ||
92
  <?php
93
  }
94
  ?>
95
- </div>
96
  <?php endif; ?>
97
  </div>
20
 
21
  <div class="vp-portfolio__item-overlay vp-portfolio__item-align-<?php echo esc_attr( $opts['align'] ); ?>">
22
  <?php if ( $show_meta ) : ?>
23
+ <figcaption class="vp-portfolio__item-meta">
24
  <?php
25
 
26
  // Show Title.
92
  <?php
93
  }
94
  ?>
95
+ </figcaption>
96
  <?php endif; ?>
97
  </div>
templates/items-list/items-style/emerge/style.css CHANGED
@@ -1 +1 @@
1
- .vp-portfolio__items-style-emerge .vp-portfolio__item a{outline:none;box-shadow:none}.vp-portfolio__items-style-emerge .vp-portfolio__item-overlay{position:absolute;bottom:0;left:0;width:100%;max-height:50%;padding:15px 32px;color:#000;background-color:#fff;transition:0.5s -webkit-transform cubic-bezier(0.07, 0.72, 0.24, 1);transition:0.5s transform cubic-bezier(0.07, 0.72, 0.24, 1);transition:0.5s transform cubic-bezier(0.07, 0.72, 0.24, 1), 0.5s -webkit-transform cubic-bezier(0.07, 0.72, 0.24, 1);-webkit-transform:translateY(100%);transform:translateY(100%);will-change:transform}.vp-portfolio__items-style-emerge .vp-portfolio__item-overlay::before{content:"";position:absolute;display:block;top:0;right:0;left:-20px;height:600%;background-color:inherit;transition:.5s transform ease;-webkit-transform:rotate(0deg);transform:rotate(0deg);-webkit-transform-origin:100% 0;transform-origin:100% 0;will-change:transform;z-index:-1}.vp-portfolio__items-style-emerge .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}.vp-portfolio__items-style-emerge .vp-portfolio__item:hover .vp-portfolio__item-img img{-webkit-transform:scale(1.1);transform:scale(1.1)}.vp-portfolio__items-style-emerge .vp-portfolio__item:hover .vp-portfolio__item-overlay{-webkit-transform:translateY(0);transform:translateY(0)}.vp-portfolio__items-style-emerge .vp-portfolio__item:hover .vp-portfolio__item-overlay::before{-webkit-transform:rotate(3deg);transform:rotate(3deg)}.vp-portfolio__items-style-emerge .vp-portfolio__item-meta *+*{margin-top:4px}.vp-portfolio__items-style-emerge .vp-portfolio__item-meta a{color:inherit;text-decoration:none}.vp-portfolio__items-style-emerge .vp-portfolio__item-meta a:hover{opacity:.8}.vp-portfolio__items-style-emerge .vp-portfolio__item-meta-title{margin-bottom:0;font-size:1.3em;color:inherit}.vp-portfolio__items-style-emerge .vp-portfolio__item-meta-date{font-size:.85em}.vp-portfolio__items-style-emerge .vp-portfolio__item-meta-categories{display:flex;flex-wrap:wrap;justify-content:flex-start;bottom:100%;left:0;padding:0;margin-right:0;margin-bottom:0;margin-left:0;list-style-type:none}.vp-portfolio__items-style-emerge .vp-portfolio__item-meta-categories .vp-portfolio__item-meta-category{padding:0;margin:0}.vp-portfolio__items-style-emerge .vp-portfolio__item-meta-categories .vp-portfolio__item-meta-category a::after{content:", "}.vp-portfolio__items-style-emerge .vp-portfolio__item-meta-categories .vp-portfolio__item-meta-category:last-of-type a::after{content:none}.vp-portfolio__items-style-emerge .vp-portfolio__item-meta-excerpt{opacity:.8}.vp-portfolio__items-style-emerge .vp-portfolio__item-align-left{text-align:left}.vp-portfolio__items-style-emerge .vp-portfolio__item-align-center{text-align:center}.vp-portfolio__items-style-emerge .vp-portfolio__item-align-center .vp-portfolio__item-meta-categories{justify-content:center}.vp-portfolio__items-style-emerge .vp-portfolio__item-align-right{text-align:right}.vp-portfolio__items-style-emerge .vp-portfolio__item-align-right .vp-portfolio__item-meta-categories{justify-content:flex-end}
1
+ .vp-portfolio__items-style-emerge .vp-portfolio__item a{outline:none;box-shadow:none}.vp-portfolio__items-style-emerge .vp-portfolio__item-overlay{position:absolute;bottom:0;left:0;width:100%;max-height:50%;padding:15px 32px;color:#000;background-color:#fff;transition:0.5s -webkit-transform cubic-bezier(0.07, 0.72, 0.24, 1);transition:0.5s transform cubic-bezier(0.07, 0.72, 0.24, 1);transition:0.5s transform cubic-bezier(0.07, 0.72, 0.24, 1), 0.5s -webkit-transform cubic-bezier(0.07, 0.72, 0.24, 1);-webkit-transform:translateY(100%);transform:translateY(100%);will-change:transform}.vp-portfolio__items-style-emerge .vp-portfolio__item-overlay::before{content:"";position:absolute;display:block;top:0;right:0;left:-20px;height:600%;background-color:inherit;transition:.5s transform ease;-webkit-transform:rotate(0deg);transform:rotate(0deg);-webkit-transform-origin:100% 0;transform-origin:100% 0;will-change:transform;z-index:-1}.vp-portfolio__items-style-emerge .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}.vp-portfolio__items-style-emerge .vp-portfolio__item:hover .vp-portfolio__item-img img{-webkit-transform:scale(1.1);transform:scale(1.1)}.vp-portfolio__items-style-emerge .vp-portfolio__item:hover .vp-portfolio__item-overlay{-webkit-transform:translateY(0);transform:translateY(0)}.vp-portfolio__items-style-emerge .vp-portfolio__item:hover .vp-portfolio__item-overlay::before{-webkit-transform:rotate(3deg);transform:rotate(3deg)}.vp-portfolio__items-style-emerge .vp-portfolio__item-meta>*+*{margin-top:4px}.vp-portfolio__items-style-emerge .vp-portfolio__item-meta a{color:inherit;text-decoration:none}.vp-portfolio__items-style-emerge .vp-portfolio__item-meta a:hover{opacity:.8}.vp-portfolio__items-style-emerge .vp-portfolio__item-meta-title{margin-bottom:0;font-size:1.3em;color:inherit}.vp-portfolio__items-style-emerge .vp-portfolio__item-meta-date{font-size:.85em}.vp-portfolio__items-style-emerge .vp-portfolio__item-meta-categories{display:flex;flex-wrap:wrap;justify-content:flex-start;bottom:100%;left:0;padding:0;margin-right:0;margin-bottom:0;margin-left:0;list-style-type:none}.vp-portfolio__items-style-emerge .vp-portfolio__item-meta-categories .vp-portfolio__item-meta-category{padding:0;margin:0}.vp-portfolio__items-style-emerge .vp-portfolio__item-meta-categories .vp-portfolio__item-meta-category a::after{content:", "}.vp-portfolio__items-style-emerge .vp-portfolio__item-meta-categories .vp-portfolio__item-meta-category:last-of-type a::after{content:none}.vp-portfolio__items-style-emerge .vp-portfolio__item-meta-excerpt{opacity:.8}.vp-portfolio__items-style-emerge .vp-portfolio__item-align-left{text-align:left}.vp-portfolio__items-style-emerge .vp-portfolio__item-align-center{text-align:center}.vp-portfolio__items-style-emerge .vp-portfolio__item-align-center .vp-portfolio__item-meta-categories{justify-content:center}.vp-portfolio__items-style-emerge .vp-portfolio__item-align-right{text-align:right}.vp-portfolio__items-style-emerge .vp-portfolio__item-align-right .vp-portfolio__item-meta-categories{justify-content:flex-end}
templates/items-list/items-style/emerge/style.scss CHANGED
@@ -58,7 +58,7 @@
58
  // meta
59
  .vp-portfolio__item-meta {
60
 
61
- * + * {
62
  margin-top: 4px;
63
  }
64
 
58
  // meta
59
  .vp-portfolio__item-meta {
60
 
61
+ > * + * {
62
  margin-top: 4px;
63
  }
64
 
templates/items-list/items-style/fade/meta.php CHANGED
@@ -37,7 +37,7 @@ $show_meta = $opts['show_icon'] && $opts['icon'] ||
37
  <?php endif; ?>
38
  class="vp-portfolio__item-overlay vp-portfolio__item-align-<?php echo esc_attr( $opts['align'] ); ?>">
39
  <?php if ( $show_meta ) : ?>
40
- <div class="vp-portfolio__item-meta">
41
  <?php
42
 
43
  // Show Icon.
@@ -100,6 +100,6 @@ $show_meta = $opts['show_icon'] && $opts['icon'] ||
100
  <?php
101
  }
102
  ?>
103
- </div>
104
  <?php endif; ?>
105
  </<?php echo esc_html( $tag ); ?>>
37
  <?php endif; ?>
38
  class="vp-portfolio__item-overlay vp-portfolio__item-align-<?php echo esc_attr( $opts['align'] ); ?>">
39
  <?php if ( $show_meta ) : ?>
40
+ <figcaption class="vp-portfolio__item-meta">
41
  <?php
42
 
43
  // Show Icon.
100
  <?php
101
  }
102
  ?>
103
+ </figcaption>
104
  <?php endif; ?>
105
  </<?php echo esc_html( $tag ); ?>>
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;padding:20px;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}.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%;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 *+*{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}.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-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}
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;padding:20px;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}.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%;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}.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
@@ -36,7 +36,11 @@
36
  transform: scale(.8);
37
  will-change: transform, opacity;
38
 
39
- * + * {
 
 
 
 
40
  margin-top: 4px;
41
  }
42
  }
@@ -95,6 +99,10 @@
95
  }
96
 
97
  // align
 
 
 
 
98
  .vp-portfolio__item-align-left .vp-portfolio__item-meta {
99
  align-items: flex-start;
100
  text-align: left;
36
  transform: scale(.8);
37
  will-change: transform, opacity;
38
 
39
+ > * {
40
+ max-width: 100%;
41
+ }
42
+
43
+ > * + * {
44
  margin-top: 4px;
45
  }
46
  }
99
  }
100
 
101
  // align
102
+ .vp-portfolio__item-align-center .vp-portfolio__item-meta {
103
+ align-items: center;
104
+ text-align: center;
105
+ }
106
  .vp-portfolio__item-align-left .vp-portfolio__item-meta {
107
  align-items: flex-start;
108
  text-align: left;
templates/items-list/items-style/fly/meta.php CHANGED
@@ -36,7 +36,7 @@ $show_meta = $opts['show_icon'] && $opts['icon'] ||
36
  <?php endif; ?>
37
  class="vp-portfolio__item-overlay vp-portfolio__item-align-<?php echo esc_attr( $opts['align'] ); ?>">
38
  <?php if ( $show_meta ) : ?>
39
- <div class="vp-portfolio__item-meta">
40
  <?php
41
 
42
  // Show Icon.
@@ -99,6 +99,6 @@ $show_meta = $opts['show_icon'] && $opts['icon'] ||
99
  <?php
100
  }
101
  ?>
102
- </div>
103
  <?php endif; ?>
104
  </<?php echo esc_html( $tag ); ?>>
36
  <?php endif; ?>
37
  class="vp-portfolio__item-overlay vp-portfolio__item-align-<?php echo esc_attr( $opts['align'] ); ?>">
38
  <?php if ( $show_meta ) : ?>
39
+ <figcaption class="vp-portfolio__item-meta">
40
  <?php
41
 
42
  // Show Icon.
99
  <?php
100
  }
101
  ?>
102
+ </figcaption>
103
  <?php endif; ?>
104
  </<?php echo esc_html( $tag ); ?>>
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;display:flex;flex-wrap:nowrap;align-items:center;justify-content:center;top:0;right:0;bottom:0;left:0;padding:20px;color:#fff;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 .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-left{justify-content:flex-start;text-align:left}.vp-portfolio__items-style-fly .vp-portfolio__item-align-right{justify-content:flex-end;text-align:right}.vp-portfolio__items-style-fly .vp-portfolio__item-align-top-center{align-items:flex-start;justify-content:center;text-align:center}.vp-portfolio__items-style-fly .vp-portfolio__item-align-top-left{align-items:flex-start;justify-content:flex-start;text-align:left}.vp-portfolio__items-style-fly .vp-portfolio__item-align-top-right{align-items:flex-start;justify-content:flex-end;text-align:right}.vp-portfolio__items-style-fly .vp-portfolio__item-align-bottom-center{align-items:flex-end;justify-content:center;text-align:center}.vp-portfolio__items-style-fly .vp-portfolio__item-align-bottom-left{align-items:flex-end;justify-content:flex-start;text-align:left}.vp-portfolio__items-style-fly .vp-portfolio__item-align-bottom-right{align-items:flex-end;justify-content:flex-end;text-align:right}
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;display:flex;flex-wrap:nowrap;align-items:center;justify-content:center;top:0;right:0;bottom:0;left:0;padding:20px;color:#fff;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 .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-left{justify-content:flex-start;text-align:left}.vp-portfolio__items-style-fly .vp-portfolio__item-align-right{justify-content:flex-end;text-align:right}.vp-portfolio__items-style-fly .vp-portfolio__item-align-top-center{align-items:flex-start;justify-content:center;text-align:center}.vp-portfolio__items-style-fly .vp-portfolio__item-align-top-left{align-items:flex-start;justify-content:flex-start;text-align:left}.vp-portfolio__items-style-fly .vp-portfolio__item-align-top-right{align-items:flex-start;justify-content:flex-end;text-align:right}.vp-portfolio__items-style-fly .vp-portfolio__item-align-bottom-center{align-items:flex-end;justify-content:center;text-align:center}.vp-portfolio__items-style-fly .vp-portfolio__item-align-bottom-left{align-items:flex-end;justify-content:flex-start;text-align:left}.vp-portfolio__items-style-fly .vp-portfolio__item-align-bottom-right{align-items:flex-end;justify-content:flex-end;text-align:right}
templates/items-list/items-style/fly/style.scss CHANGED
@@ -27,7 +27,7 @@
27
 
28
  // meta
29
  .vp-portfolio__item-meta {
30
- * + * {
31
  margin-top: 4px;
32
  }
33
  }
27
 
28
  // meta
29
  .vp-portfolio__item-meta {
30
+ > * + * {
31
  margin-top: 4px;
32
  }
33
  }
templates/items-list/items-style/meta.php CHANGED
@@ -21,7 +21,7 @@ $show_meta = $opts['show_title'] && $args['title'] ||
21
 
22
  <div class="vp-portfolio__item-overlay vp-portfolio__item-align-<?php echo esc_attr( $opts['align'] ); ?>">
23
  <?php if ( $show_meta ) : ?>
24
- <div class="vp-portfolio__item-meta">
25
  <?php
26
 
27
  // Show Title.
@@ -102,6 +102,6 @@ $show_meta = $opts['show_title'] && $args['title'] ||
102
  <?php
103
  }
104
  ?>
105
- </div>
106
  <?php endif; ?>
107
  </div>
21
 
22
  <div class="vp-portfolio__item-overlay vp-portfolio__item-align-<?php echo esc_attr( $opts['align'] ); ?>">
23
  <?php if ( $show_meta ) : ?>
24
+ <figcaption class="vp-portfolio__item-meta">
25
  <?php
26
 
27
  // Show Title.
102
  <?php
103
  }
104
  ?>
105
+ </figcaption>
106
  <?php endif; ?>
107
  </div>
templates/items-list/items-style/style.css CHANGED
@@ -1 +1 @@
1
- .vp-portfolio__items-style-default .vp-portfolio__item a{outline:none;box-shadow:none}.vp-portfolio__items-style-default .vp-portfolio__item-img{overflow:hidden}.vp-portfolio__items-style-default .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}.vp-portfolio__items-style-default .vp-portfolio__item:hover .vp-portfolio__item-img img{-webkit-transform:scale(1.1);transform:scale(1.1)}.vp-portfolio__items-style-default .vp-portfolio__item-meta{position:relative;padding:10px 15px}.vp-portfolio__items-style-default .vp-portfolio__item-meta *+*{margin-top:4px}.vp-portfolio__items-style-default .vp-portfolio__item-meta-title{margin-bottom:0;font-size:1.3em}.vp-portfolio__items-style-default .vp-portfolio__item-meta-title a{color:inherit;text-decoration:none}.vp-portfolio__items-style-default .vp-portfolio__item-meta-title a:hover{color:#007acc}.vp-portfolio__items-style-default .vp-portfolio__item-meta-date{font-size:.85em}.vp-portfolio__items-style-default .vp-portfolio__item-meta-categories{position:absolute;display:flex;flex-wrap:wrap;bottom:100%;left:0;padding:15px 10px;margin:0;list-style-type:none}.vp-portfolio__items-style-default .vp-portfolio__item-meta-categories .vp-portfolio__item-meta-category{padding:0;margin:0 5px}.vp-portfolio__items-style-default .vp-portfolio__item-meta-categories .vp-portfolio__item-meta-category a{display:block;padding:4px 15px;color:#fff;text-decoration:none;background-color:#3c3c3c;transition:.2s background-color;will-change:background-color}.vp-portfolio__items-style-default .vp-portfolio__item-meta-categories .vp-portfolio__item-meta-category a:hover{background-color:#545454}.vp-portfolio__items-style-default .vp-portfolio__item-meta-excerpt{opacity:.8}.vp-portfolio__items-style-default .vp-portfolio__item-meta-read-more{display:inline-block;margin-top:10px}.vp-portfolio__items-style-default .vp-portfolio__item-align-left{text-align:left}.vp-portfolio__items-style-default .vp-portfolio__item-align-center{text-align:center}.vp-portfolio__items-style-default .vp-portfolio__item-align-right{text-align:right}
1
+ .vp-portfolio__items-style-default .vp-portfolio__item a{outline:none;box-shadow:none}.vp-portfolio__items-style-default .vp-portfolio__item-img{overflow:hidden}.vp-portfolio__items-style-default .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}.vp-portfolio__items-style-default .vp-portfolio__item:hover .vp-portfolio__item-img img{-webkit-transform:scale(1.1);transform:scale(1.1)}.vp-portfolio__items-style-default .vp-portfolio__item-meta{position:relative;padding:10px 15px}.vp-portfolio__items-style-default .vp-portfolio__item-meta>*+*{margin-top:4px}.vp-portfolio__items-style-default .vp-portfolio__item-meta-title{margin-bottom:0;font-size:1.3em}.vp-portfolio__items-style-default .vp-portfolio__item-meta-title a{color:inherit;text-decoration:none}.vp-portfolio__items-style-default .vp-portfolio__item-meta-title a:hover{color:#007acc}.vp-portfolio__items-style-default .vp-portfolio__item-meta-date{font-size:.85em}.vp-portfolio__items-style-default .vp-portfolio__item-meta-categories{position:absolute;display:flex;flex-wrap:wrap;bottom:100%;left:0;padding:15px 10px;margin:0;list-style-type:none}.vp-portfolio__items-style-default .vp-portfolio__item-meta-categories .vp-portfolio__item-meta-category{padding:0;margin:0 5px}.vp-portfolio__items-style-default .vp-portfolio__item-meta-categories .vp-portfolio__item-meta-category a{display:block;padding:4px 15px;color:#fff;text-decoration:none;background-color:#3c3c3c;transition:.2s background-color;will-change:background-color}.vp-portfolio__items-style-default .vp-portfolio__item-meta-categories .vp-portfolio__item-meta-category a:hover{background-color:#545454}.vp-portfolio__items-style-default .vp-portfolio__item-meta-excerpt{opacity:.8}.vp-portfolio__items-style-default .vp-portfolio__item-meta-read-more{display:inline-block;margin-top:10px}.vp-portfolio__items-style-default .vp-portfolio__item-align-left{text-align:left}.vp-portfolio__items-style-default .vp-portfolio__item-align-center{text-align:center}.vp-portfolio__items-style-default .vp-portfolio__item-align-right{text-align:right}
templates/items-list/items-style/style.scss CHANGED
@@ -26,7 +26,7 @@
26
  position: relative;
27
  padding: 10px 15px;
28
 
29
- * + * {
30
  margin-top: 4px;
31
  }
32
  }
26
  position: relative;
27
  padding: 10px 15px;
28
 
29
+ > * + * {
30
  margin-top: 4px;
31
  }
32
  }
vendors/slugify/Slugify.php CHANGED
@@ -115,7 +115,9 @@ class Slugify implements SlugifyInterface
115
  unset($rules);
116
 
117
  if ($options['lowercase']) {
118
- $string = mb_strtolower($string);
 
 
119
  }
120
 
121
  $string = preg_replace($options['regexp'], $options['separator'], $string);
115
  unset($rules);
116
 
117
  if ($options['lowercase']) {
118
+ // CHANGED: nK
119
+ // added check for mb_strtolower existence.
120
+ $string = function_exists('mb_strtolower') ? mb_strtolower($string) : strtolower($string);
121
  }
122
 
123
  $string = preg_replace($options['regexp'], $options['separator'], $string);