Visual Portfolio, Photo Gallery & Post Grid - Version 1.7.2

Version Description

Download this release

Release Info

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

Code changes from version 1.7.1 to 1.7.2

assets/admin/css/style.min.css CHANGED
@@ -1,5 +1,5 @@
1
  /*!
2
  * Name : Visual Portfolio
3
- * Version : 1.7.1
4
  * Author : nK https://nkdev.info
5
  */.dashicons-visual-portfolio,.dashicons-visual-portfolio-gray,.mce-widget .mce-i-visual-portfolio{background-image:url("../images/icon.svg");background-repeat:no-repeat;background-position:center center;background-size:15px;opacity:.6}.mce-widget .mce-i-visual-portfolio{background-image:url("../images/icon-mce.svg");opacity:1}.menu-top.current .dashicons-visual-portfolio,.menu-top:hover .dashicons-visual-portfolio,.wp-has-current-submenu .dashicons-visual-portfolio{opacity:1}.dashicons-visual-portfolio-gray,.mce-i-visual-portfolio-gray{background-image:url("../images/icon-gray.svg")}.vc_element-icon[data-is-container="true"].icon-visual-portfolio,.vc_element-icon.icon-visual-portfolio{background-position:50% 50%}.vc_element-icon.icon-visual-portfolio,.vc_control-visual-portfolio{position:relative;overflow:hidden;background-image:url("../images/icon-vc.png");background-position:50% 50%;background-size:cover;border-radius:3px}.vc_add-element-container .icon-visual-portfolio{position:absolute}.vc_control-visual-portfolio{display:inline-block;width:18px;height:18px;margin:0 2px;cursor:pointer}.vc_controls-row .vc_control-visual-portfolio{float:right;margin:4px}.vc_control-visual-portfolio-overlay{position:absolute;top:0;right:0;bottom:0;left:0;z-index:2}.vp-row{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:0;-ms-flex:0 1 auto;flex:0 1 auto;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-sizing:border-box;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{-webkit-box-flex:0;-ms-flex:0 0 auto;flex:0 0 auto;-webkit-box-sizing:border-box;box-sizing:border-box;padding-right:15px;padding-left:15px}.vp-col-1{-ms-flex-preferred-size:8.33333%;flex-basis:8.33333%;max-width:8.33333%}.vp-col-2{-ms-flex-preferred-size:16.66667%;flex-basis:16.66667%;max-width:16.66667%}.vp-col-3{-ms-flex-preferred-size:25%;flex-basis:25%;max-width:25%}.vp-col-4{-ms-flex-preferred-size:33.33333%;flex-basis:33.33333%;max-width:33.33333%}.vp-col-5{-ms-flex-preferred-size:41.66667%;flex-basis:41.66667%;max-width:41.66667%}.vp-col-6{-ms-flex-preferred-size:50%;flex-basis:50%;max-width:50%}.vp-col-7{-ms-flex-preferred-size:58.33333%;flex-basis:58.33333%;max-width:58.33333%}.vp-col-8{-ms-flex-preferred-size:66.66667%;flex-basis:66.66667%;max-width:66.66667%}.vp-col-9{-ms-flex-preferred-size:75%;flex-basis:75%;max-width:75%}.vp-col-10{-ms-flex-preferred-size:83.33333%;flex-basis:83.33333%;max-width:83.33333%}.vp-col-11{-ms-flex-preferred-size:91.66667%;flex-basis:91.66667%;max-width:91.66667%}.vp-col-12{-ms-flex-preferred-size:100%;flex-basis:100%;max-width:100%}.vp-col-clearfix{-ms-flex-preferred-size:100%;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:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-align:center;-ms-flex-align:center;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{-ms-flex-wrap:nowrap;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 *{-webkit-box-sizing:border-box;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"]{-webkit-box-flex:1;-ms-flex:1;flex:1;width:100%;padding:0;background:transparent;-webkit-appearance:none;-moz-appearance:none;appearance:none}.vp-control-range [type="range"]::-webkit-slider-thumb{-webkit-box-sizing:border-box;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;-webkit-box-shadow:inset 0 0 0 1px #6c7781, inset 0 0 0 2px #fff;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 *{-webkit-box-sizing:border-box;box-sizing:border-box}.vp-control-toggle .vp-toggle{position:relative}.vp-control-toggle .vp-toggle .vp-toggle__track{content:"";display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box;width:36px;height:18px;vertical-align:top;background-color:#fff;border:2px solid #6c7781;border-radius:9px;-webkit-transition:background .2s ease;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%;-webkit-transition:-webkit-transform .1s ease;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{-webkit-box-shadow:0 0 0 2px #fff, 0 0 0 3px #6c7781;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:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:100%;padding:5px 7px;cursor:pointer;background-color:#fff;border:1px solid #ddd;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,0.07);box-shadow:inset 0 1px 2px rgba(0,0,0,0.07)}.vp-control-image-dropdown,.vp-control-image-dropdown *{-webkit-box-sizing:border-box;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;-webkit-box-flex:0;-ms-flex:0 0 auto;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{-webkit-box-flex:1;-ms-flex:1;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;-webkit-box-shadow:0 1px 1px rgba(0,0,0,0.04);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:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.vp-control-image-dropdown .vp-control-image-dropdown__content .vp-image-picker+ul.thumbnails.image_picker_selector li{display:block;-webkit-box-flex:0;-ms-flex:0 0 25%;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{-webkit-box-flex:0;-ms-flex:0 0 100%;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;-webkit-transition:height .3s;transition:height .3s}.vp-content-source{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;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{-webkit-box-flex:1;-ms-flex:1;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;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,0.07);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;-webkit-box-shadow: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:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:0;-ms-flex:0 1 auto;flex:0 1 auto;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap}.vp-select2-ajax__result .vp-select2-ajax__result-img{position:relative;-webkit-box-flex:0;-ms-flex:0 0 35px;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;-webkit-box-sizing:border-box;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;-webkit-transition:.15s right;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:-webkit-box;display:-ms-flexbox;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;-webkit-box-shadow:0 0 0 1px #fff, 0 0 0 2px #eaeaea;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:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-line-pack:start;align-content:flex-start;width:120%;height:325px;padding:7px;margin:-12px;margin-bottom:-25px;overflow:auto;-webkit-transition:.15s margin-right;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%;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;-webkit-transition:.15s visibility, .15s opacity;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{-webkit-box-shadow:0 0 0 1px #fff, 0 0 0 4px #33b3db;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:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-sizing:border-box;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;-webkit-box-shadow:0 1px 1px 0 rgba(0,0,0,0.1);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}@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.7.2
4
  * Author : nK https://nkdev.info
5
  */.dashicons-visual-portfolio,.dashicons-visual-portfolio-gray,.mce-widget .mce-i-visual-portfolio{background-image:url("../images/icon.svg");background-repeat:no-repeat;background-position:center center;background-size:15px;opacity:.6}.mce-widget .mce-i-visual-portfolio{background-image:url("../images/icon-mce.svg");opacity:1}.menu-top.current .dashicons-visual-portfolio,.menu-top:hover .dashicons-visual-portfolio,.wp-has-current-submenu .dashicons-visual-portfolio{opacity:1}.dashicons-visual-portfolio-gray,.mce-i-visual-portfolio-gray{background-image:url("../images/icon-gray.svg")}.vc_element-icon[data-is-container="true"].icon-visual-portfolio,.vc_element-icon.icon-visual-portfolio{background-position:50% 50%}.vc_element-icon.icon-visual-portfolio,.vc_control-visual-portfolio{position:relative;overflow:hidden;background-image:url("../images/icon-vc.png");background-position:50% 50%;background-size:cover;border-radius:3px}.vc_add-element-container .icon-visual-portfolio{position:absolute}.vc_control-visual-portfolio{display:inline-block;width:18px;height:18px;margin:0 2px;cursor:pointer}.vc_controls-row .vc_control-visual-portfolio{float:right;margin:4px}.vc_control-visual-portfolio-overlay{position:absolute;top:0;right:0;bottom:0;left:0;z-index:2}.vp-row{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:0;-ms-flex:0 1 auto;flex:0 1 auto;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-sizing:border-box;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{-webkit-box-flex:0;-ms-flex:0 0 auto;flex:0 0 auto;-webkit-box-sizing:border-box;box-sizing:border-box;padding-right:15px;padding-left:15px}.vp-col-1{-ms-flex-preferred-size:8.33333%;flex-basis:8.33333%;max-width:8.33333%}.vp-col-2{-ms-flex-preferred-size:16.66667%;flex-basis:16.66667%;max-width:16.66667%}.vp-col-3{-ms-flex-preferred-size:25%;flex-basis:25%;max-width:25%}.vp-col-4{-ms-flex-preferred-size:33.33333%;flex-basis:33.33333%;max-width:33.33333%}.vp-col-5{-ms-flex-preferred-size:41.66667%;flex-basis:41.66667%;max-width:41.66667%}.vp-col-6{-ms-flex-preferred-size:50%;flex-basis:50%;max-width:50%}.vp-col-7{-ms-flex-preferred-size:58.33333%;flex-basis:58.33333%;max-width:58.33333%}.vp-col-8{-ms-flex-preferred-size:66.66667%;flex-basis:66.66667%;max-width:66.66667%}.vp-col-9{-ms-flex-preferred-size:75%;flex-basis:75%;max-width:75%}.vp-col-10{-ms-flex-preferred-size:83.33333%;flex-basis:83.33333%;max-width:83.33333%}.vp-col-11{-ms-flex-preferred-size:91.66667%;flex-basis:91.66667%;max-width:91.66667%}.vp-col-12{-ms-flex-preferred-size:100%;flex-basis:100%;max-width:100%}.vp-col-clearfix{-ms-flex-preferred-size:100%;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:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-align:center;-ms-flex-align:center;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{-ms-flex-wrap:nowrap;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 *{-webkit-box-sizing:border-box;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"]{-webkit-box-flex:1;-ms-flex:1;flex:1;width:100%;padding:0;background:transparent;-webkit-appearance:none;-moz-appearance:none;appearance:none}.vp-control-range [type="range"]::-webkit-slider-thumb{-webkit-box-sizing:border-box;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;-webkit-box-shadow:inset 0 0 0 1px #6c7781, inset 0 0 0 2px #fff;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 *{-webkit-box-sizing:border-box;box-sizing:border-box}.vp-control-toggle .vp-toggle{position:relative}.vp-control-toggle .vp-toggle .vp-toggle__track{content:"";display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box;width:36px;height:18px;vertical-align:top;background-color:#fff;border:2px solid #6c7781;border-radius:9px;-webkit-transition:background .2s ease;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%;-webkit-transition:-webkit-transform .1s ease;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{-webkit-box-shadow:0 0 0 2px #fff, 0 0 0 3px #6c7781;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:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:100%;padding:5px 7px;cursor:pointer;background-color:#fff;border:1px solid #ddd;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,0.07);box-shadow:inset 0 1px 2px rgba(0,0,0,0.07)}.vp-control-image-dropdown,.vp-control-image-dropdown *{-webkit-box-sizing:border-box;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;-webkit-box-flex:0;-ms-flex:0 0 auto;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{-webkit-box-flex:1;-ms-flex:1;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;-webkit-box-shadow:0 1px 1px rgba(0,0,0,0.04);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:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.vp-control-image-dropdown .vp-control-image-dropdown__content .vp-image-picker+ul.thumbnails.image_picker_selector li{display:block;-webkit-box-flex:0;-ms-flex:0 0 25%;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{-webkit-box-flex:0;-ms-flex:0 0 100%;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;-webkit-transition:height .3s;transition:height .3s}.vp-content-source{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;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{-webkit-box-flex:1;-ms-flex:1;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;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,0.07);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;-webkit-box-shadow: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:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:0;-ms-flex:0 1 auto;flex:0 1 auto;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap}.vp-select2-ajax__result .vp-select2-ajax__result-img{position:relative;-webkit-box-flex:0;-ms-flex:0 0 35px;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;-webkit-box-sizing:border-box;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;-webkit-transition:.15s right;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:-webkit-box;display:-ms-flexbox;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;-webkit-box-shadow:0 0 0 1px #fff, 0 0 0 2px #eaeaea;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:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-line-pack:start;align-content:flex-start;width:120%;height:325px;padding:7px;margin:-12px;margin-bottom:-25px;overflow:auto;-webkit-transition:.15s margin-right;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%;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;-webkit-transition:.15s visibility, .15s opacity;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{-webkit-box-shadow:0 0 0 1px #fff, 0 0 0 4px #33b3db;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:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-sizing:border-box;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;-webkit-box-shadow:0 1px 1px 0 rgba(0,0,0,0.1);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}@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,6 +1,6 @@
1
  !function(t){function i(n){if(o[n])return o[n].exports;var e=o[n]={i:n,l:!1,exports:{}};return t[n].call(e.exports,e,e.exports,i),e.l=!0,e.exports}var o={};i.m=t,i.c=o,i.d=function(t,o,n){i.o(t,o)||Object.defineProperty(t,o,{configurable:!1,enumerable:!0,get:n})},i.n=function(t){var o=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(o,"a",o),o},i.o=function(t,i){return Object.prototype.hasOwnProperty.call(t,i)},i.p="",i(i.s=179)}({179:function(t,i,o){t.exports=o(180)},180:function(t,i){/*!
2
  * Name : Visual Portfolio
3
- * Version : 1.7.1
4
  * Author : nK https://nkdev.info
5
  */
6
  var o=window,n=o.tinymce,e=o.VPTinyMCEOptions;if(void 0!==e&&e.length){var u=[{text:"",value:""}];Object.keys(e).forEach(function(t){u.push({text:e[t].title,value:e[t].id})}),n.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="'+this.value()+'"]'),this.value("")},values:u,value:""})}}),n.PluginManager.add("visual_portfolio",n.plugins.visual_portfolio)}}});
1
  !function(t){function i(n){if(o[n])return o[n].exports;var e=o[n]={i:n,l:!1,exports:{}};return t[n].call(e.exports,e,e.exports,i),e.l=!0,e.exports}var o={};i.m=t,i.c=o,i.d=function(t,o,n){i.o(t,o)||Object.defineProperty(t,o,{configurable:!1,enumerable:!0,get:n})},i.n=function(t){var o=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(o,"a",o),o},i.o=function(t,i){return Object.prototype.hasOwnProperty.call(t,i)},i.p="",i(i.s=179)}({179:function(t,i,o){t.exports=o(180)},180:function(t,i){/*!
2
  * Name : Visual Portfolio
3
+ * Version : 1.7.2
4
  * Author : nK https://nkdev.info
5
  */
6
  var o=window,n=o.tinymce,e=o.VPTinyMCEOptions;if(void 0!==e&&e.length){var u=[{text:"",value:""}];Object.keys(e).forEach(function(t){u.push({text:e[t].title,value:e[t].id})}),n.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="'+this.value()+'"]'),this.value("")},values:u,value:""})}}),n.PluginManager.add("visual_portfolio",n.plugins.visual_portfolio)}}});
assets/admin/js/vc-frontend.min.js CHANGED
@@ -2,7 +2,7 @@
2
  * Additional js for frontend VC
3
  *
4
  * Name : Visual Portfolio
5
- * Version : 1.7.1
6
  * Author : nK https://nkdev.info
7
  */
8
  var t=window,o=t.vc;jQuery(function(){void 0!==o&&o.events.on("shortcodes:add shortcodeView:updated",function(e){if("visual_portfolio"===e.settings.base){var n=o.$frame[0].contentWindow,t=!!n&&n.jQuery;if(t){var r=t(e.view.el).children(".vp-portfolio");r.length&&void 0!==r.vpf&&r.vpf()}}})})}});
2
  * Additional js for frontend VC
3
  *
4
  * Name : Visual Portfolio
5
+ * Version : 1.7.2
6
  * Author : nK https://nkdev.info
7
  */
8
  var t=window,o=t.vc;jQuery(function(){void 0!==o&&o.events.on("shortcodes:add shortcodeView:updated",function(e){if("visual_portfolio"===e.settings.base){var n=o.$frame[0].contentWindow,t=!!n&&n.jQuery;if(t){var r=t(e.view.el).children(".vp-portfolio");r.length&&void 0!==r.vpf&&r.vpf()}}})})}});
assets/css/style.min.css CHANGED
@@ -1,5 +1,5 @@
1
  /*!
2
  * Name : Visual Portfolio
3
- * Version : 1.7.1
4
  * Author : nK https://nkdev.info
5
  */.vp-portfolio{position:relative;min-height:114px}.vp-portfolio,.vp-portfolio *{-webkit-box-sizing:border-box;box-sizing:border-box}.vp-portfolio__items{-webkit-transition:.3s height ease-in-out, .3s transform ease-in-out;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;-webkit-transition:.3s opacity, .3s visibility;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__preloader-wrap{visibility:visible;opacity:1;-webkit-transition:.3s opacity, .3s visibility;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{-webkit-transition:.2s height ease-in-out;transition:.2s height ease-in-out;will-change:height}[data-vp-layout="justified"] .vp-portfolio__item-wrap{float:left;top:0;left:0;-webkit-transition:.2s transform ease-in-out, .2s width ease-in-out, .2s height ease-in-out;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:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;top:50%;width:40px;height:40px;margin-top:-20px;color:#6c7781;cursor:pointer;background-color:#fff;border-radius:50%;-webkit-box-shadow:0 0 7px 2px rgba(0,0,0,0.04);box-shadow:0 0 7px 2px rgba(0,0,0,0.04);opacity:.5;-webkit-transition:.2s opacity ease-in-out, .2s box-shadow ease-in-out;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{-webkit-box-shadow:0 2px 15px 2px rgba(0,0,0,0.04);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;-webkit-transition:.15s opacity ease-in-out;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:100000}.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:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:100%;max-width:1920px;height:100%;margin:0 auto;line-height:0;text-align:left;vertical-align:middle;z-index:1045}.vp-pswp .vp-pswp-video>div{position:relative;width:100%;height:0;padding-bottom:56.25%}.vp-pswp .vp-pswp-video>div iframe{position:absolute;top:0;left:0;width:100%;height:100%;margin:0}.vp-pswp .vp-pswp-video>div video{width:100% !important;height:auto !important;margin:0}img.visual-portfolio-lazyload:not(.lazyloaded){background-color:rgba(171,173,191,0.1)}
1
  /*!
2
  * Name : Visual Portfolio
3
+ * Version : 1.7.2
4
  * Author : nK https://nkdev.info
5
  */.vp-portfolio{position:relative;min-height:114px}.vp-portfolio,.vp-portfolio *{-webkit-box-sizing:border-box;box-sizing:border-box}.vp-portfolio__items{-webkit-transition:.3s height ease-in-out, .3s transform ease-in-out;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;-webkit-transition:.3s opacity, .3s visibility;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__preloader-wrap{visibility:visible;opacity:1;-webkit-transition:.3s opacity, .3s visibility;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{-webkit-transition:.2s height ease-in-out;transition:.2s height ease-in-out;will-change:height}[data-vp-layout="justified"] .vp-portfolio__item-wrap{float:left;top:0;left:0;-webkit-transition:.2s transform ease-in-out, .2s width ease-in-out, .2s height ease-in-out;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:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;top:50%;width:40px;height:40px;margin-top:-20px;color:#6c7781;cursor:pointer;background-color:#fff;border-radius:50%;-webkit-box-shadow:0 0 7px 2px rgba(0,0,0,0.04);box-shadow:0 0 7px 2px rgba(0,0,0,0.04);opacity:.5;-webkit-transition:.2s opacity ease-in-out, .2s box-shadow ease-in-out;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{-webkit-box-shadow:0 2px 15px 2px rgba(0,0,0,0.04);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;-webkit-transition:.15s opacity ease-in-out;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:100000}.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:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:100%;max-width:1920px;height:100%;margin:0 auto;line-height:0;text-align:left;vertical-align:middle;z-index:1045}.vp-pswp .vp-pswp-video>div{position:relative;width:100%;height:0;padding-bottom:56.25%}.vp-pswp .vp-pswp-video>div iframe{position:absolute;top:0;left:0;width:100%;height:100%;margin:0}.vp-pswp .vp-pswp-video>div video{width:100% !important;height:auto !important;margin:0}img.visual-portfolio-lazyload:not(.lazyloaded){background-color:rgba(171,173,191,0.1)}
assets/js/script-preview.min.js CHANGED
@@ -1,6 +1,6 @@
1
  !function(t){function e(n){if(o[n])return o[n].exports;var r=o[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var o={};e.m=t,e.c=o,e.d=function(t,o,n){e.o(t,o)||Object.defineProperty(t,o,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var o=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(o,"a",o),o},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=175)}({175:function(t,e,o){t.exports=o(176)},176:function(t,e){/*!
2
  * Name : Visual Portfolio
3
- * Version : 1.7.1
4
  * Author : nK https://nkdev.info
5
  */
6
  !function(t){var e=t("#vp_preview > .vp-portfolio");e.on("click",".vp-portfolio__item, .vp-portfolio__item a",function(t){t.preventDefault(),t.stopPropagation()}),window.iFrameResizer={heightCalculationMethod:function(){return e.outerHeight(!0)}}}(jQuery)}});
1
  !function(t){function e(n){if(o[n])return o[n].exports;var r=o[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var o={};e.m=t,e.c=o,e.d=function(t,o,n){e.o(t,o)||Object.defineProperty(t,o,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var o=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(o,"a",o),o},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=175)}({175:function(t,e,o){t.exports=o(176)},176:function(t,e){/*!
2
  * Name : Visual Portfolio
3
+ * Version : 1.7.2
4
  * Author : nK https://nkdev.info
5
  */
6
  !function(t){var e=t("#vp_preview > .vp-portfolio");e.on("click",".vp-portfolio__item, .vp-portfolio__item a",function(t){t.preventDefault(),t.stopPropagation()}),window.iFrameResizer={heightCalculationMethod:function(){return e.outerHeight(!0)}}}(jQuery)}});
assets/js/script.min.js CHANGED
@@ -1 +1 @@
1
- !function(t){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}var i={};e.m=t,e.c=i,e.d=function(t,i,o){e.o(t,i)||Object.defineProperty(t,i,{configurable:!1,enumerable:!0,get: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,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=177)}({177:function(t,e,i){t.exports=i(178)},178:function(t,e){function i(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e<t.length;e++)i[e]=t[e];return i}return Array.from(t)}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(){_=c.width(),h=c.height()}var 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},n=function(){function t(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,i,o){return i&&t(e.prototype,i),o&&t(e,o),e}}(),a=jQuery,p=window,l=p.VPData,d=p.objectFitImages,v=p.PhotoSwipe,f=p.PhotoSwipeUI_Default,m=l.__,u=l.settingsPopupGallery,c=a(window),_=0,h=0;s(),c.on("resize load orientationchange",s);var w=[320,576,768,992,1200];void 0!==d&&d();var y=function(){function t(e,i){o(this,t);var s=this;s.$item=e;for(var r=e[0].className.split(/\s+/),n=0;n<r.length;n++)r[n]&&/^vp-uid-/.test(r[n])&&(s.uid=r[n].replace(/^vp-uid-/,"")),r[n]&&/^vp-id-/.test(r[n])&&(s.id=r[n].replace(/^vp-id-/,""));if(!s.uid)return void console.error(m.couldnt_retrieve_vp);s.$items_wrap=e.find(".vp-portfolio__items"),s.$pagination=e.find(".vp-portfolio__pagination-wrap"),s.$filter=e.find(".vp-portfolio__filter-wrap"),s.id&&(s.$filter=s.$filter.add(".vp-single-filter.vp-id-"+s.id+" .vp-portfolio__filter-wrap")),s.userOptions=i,s.firstRun=!0,s.init()}return n(t,[{key:"emitEvent",value:function(t,e){e=e?[this].concat(e):[this],this.$item.trigger(t+".vpf.vpf-uid-"+this.uid,e)}},{key:"init",value:function(){var t=this;t.firstRun||t.destroy(),t.destroyed=!1,t.initOptions(),t.initEvents(),t.prepareLazyLoad(),t.initLayout(),t.initCustomColors(),t.initPhotoswipe(),t.emitEvent("init"),t.$item.addClass("vp-portfolio__ready"),t.id&&a(".vp-single-filter.vp-id-"+t.id).addClass("vp-single-filter__ready"),t.initIsotope(),t.initFjGallery(),t.initSwiper(),t.resized(),t.firstRun=!1}},{key:"resized",value:function(){if("function"==typeof window.Event)window.dispatchEvent(new window.Event("resize"));else{var t=window.document.createEvent("UIEvents");t.initUIEvent("resize",!0,!1,window,0),window.dispatchEvent(t)}this.emitEvent("resized")}},{key:"destroy",value:function(){var t=this;t.$item.removeClass("vp-portfolio__ready"),t.id&&a(".vp-single-filter.vp-id-"+t.id).removeClass("vp-single-filter__ready"),t.destroyEvents(),t.removeStyle(),t.renderStyle(),t.destroyPhotoswipe(),t.destroyIsotope(),t.destroyFjGallery(),t.destroySwiper(),t.emitEvent("destroy"),t.destroyed=!0}},{key:"addStyle",value:function(t,e,i){i=i||"";var o=this,s=o.uid;o.stylesList||(o.stylesList={}),void 0===o.stylesList[s]&&(o.stylesList[s]={}),void 0===o.stylesList[s][i]&&(o.stylesList[s][i]={}),void 0===o.stylesList[s][i][t]&&(o.stylesList[s][i][t]={}),o.stylesList[s][i][t]=a.extend(o.stylesList[s][i][t],e),o.emitEvent("addStyle",[t,e,i,o.stylesList])}},{key:"removeStyle",value:function(t,e,i){i=i||"";var o=this,s=o.uid;o.stylesList||(o.stylesList={}),void 0===o.stylesList[s]||t||(o.stylesList[s]={}),void 0!==o.stylesList[s]&&void 0!==o.stylesList[s][i]&&void 0!==o.stylesList[s][i][t]&&t&&delete o.stylesList[s][i][t],o.emitEvent("removeStyle",[t,e,o.stylesList])}},{key:"renderStyle",value:function(){var t=this,e=t.uid,i="";t.stylesList||(t.stylesList={}),void 0!==t.stylesList[e]&&Object.keys(t.stylesList[e]).forEach(function(o){o&&(i+="@media "+o+" {"),Object.keys(t.stylesList[e][o]).forEach(function(s){i+=".vp-uid-"+e+" "+s+" {",Object.keys(t.stylesList[e][o][s]).forEach(function(r){i+=r+":"+t.stylesList[e][o][s][r]+";"}),i+="}"}),o&&(i+="}")});var o=a("#vp-style-"+e);o.length||(o=a("<style>").attr("id","vp-style-"+e).appendTo("head")),o.html(i),t.emitEvent("renderStyle",[i,t.stylesList,o])}},{key:"firstToLowerCase",value:function(t){return t.substr(0,1).toLowerCase()+t.substr(1)}},{key:"initOptions",value:function(t){var e=this;e.defaults={layout:"tile",itemsGap:0,tilesType:"3|1,1|",masonryColumns:3,justifiedRowHeight:250,justifiedRowHeightTolerance:.25,pagination:"load-more"},t&&(e.userOptions=t);var i=e.$item[0].dataset,o={};Object.keys(i).forEach(function(t){t&&"vp"===t.substring(0,2)&&(o[e.firstToLowerCase(t.substring(2))]=i[t])}),e.options=a.extend({},e.defaults,o,e.userOptions),e.emitEvent("initOptions")}},{key:"isCrossLine",value:function(t,e,i,o){var s=(o.x-i.x)*(t.y-i.y)-(o.y-i.y)*(t.x-i.x),r=(o.x-i.x)*(e.y-i.y)-(o.y-i.y)*(e.x-i.x),n=(e.x-t.x)*(i.y-t.y)-(e.y-t.y)*(i.x-t.x),a=(e.x-t.x)*(o.y-t.y)-(e.y-t.y)*(o.x-t.x);return s*r<=0&&n*a<=0}},{key:"initEvents",value:function(){function t(){var t=i.$item[0].getBoundingClientRect(),e=t.left,o=_-t.right,s=parseFloat(i.$item.css("margin-left")||0),r=parseFloat(i.$item.css("margin-right")||0);i.$item.css({"margin-left":s-e,"margin-right":r-o})}function e(){var t=i.$item[0].getBoundingClientRect();t.bottom>0&&t.bottom-n<=h&&i.loadNewItems(i.options.nextPageUrl,!1,function(){e()})}var i=this,o=".vpf.vpf-uid-"+i.uid;if(i.$item.hasClass("vp-portfolio__stretch")&&(c.on("load"+o+" resize"+o+" orientationchange"+o,function(){t()}),t()),"fly"===i.options.itemsStyle){var s={};c.on("mousemove"+o,function(t){s={x:t.clientX,y:t.clientY}}),i.$item.on("mouseenter"+o+" mouseleave"+o,".vp-portfolio__item",function(t){var e=a(this),o=e[0].getBoundingClientRect(),r=e.find(".vp-portfolio__item-overlay"),n="mouseenter"===t.type,p="0%",l="0%",d={x:t.clientX,y:t.clientY},v=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),m=i.isCrossLine({x:o.left,y:o.top},{x:o.left,y:o.top+o.height},d,s),u=i.isCrossLine({x:o.left+o.width,y:o.top},{x:o.left+o.width,y:o.top+o.height},d,s);if(!(v||f||m||u)){var c=(o.width/2-d.x+o.left)/(o.width/2),_=(o.height/2-d.y+o.top)/(o.height/2);Math.abs(c)>Math.abs(_)?c>0?m=!0:u=!0:_>0?v=!0:f=!0}v?l="-10"+l:f?l="10"+l:m?p="-10"+p:u&&(p="10"+p),n&&(r.css({transition:"none",transform:"translateX("+p+") translateY("+l+") translateZ(0)"}),r[0].offsetHeight),r.css({transition:".2s transform ease-in-out",transform:"translateX("+(n?"0%":p)+") translateY("+(n?"0%":l)+") translateZ(0)"})})}i.$filter.on("click"+o,".vp-filter .vp-filter__item a",function(t){t.preventDefault();var e=a(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"+o,".vp-pagination .vp-pagination__item a",function(t){t.preventDefault();var e=a(this);e.hasClass("vp-pagination__no-more")&&"paged"!==i.options.pagination||i.loadNewItems(e.attr("href"),"paged"===i.options.pagination)}),i.$item.on("click"+o,".vp-portfolio__items .vp-portfolio__item-meta-category a",function(t){t.preventDefault(),t.stopPropagation(),i.loadNewItems(a(this).attr("href"),!0)});var r=void 0,n=250;"infinite"===i.options.pagination&&(c.on("load"+o+" scroll"+o+" resize"+o+" orientationchange"+o,function(){clearTimeout(r),r=setTimeout(function(){e()},60)}),e()),i.$item.on("transitionend"+o,".vp-portfolio__items",function(t){t.currentTarget===t.target&&i.resized()}),i.emitEvent("initEvents")}},{key:"destroyEvents",value:function(){var t=this,e=".vpf.vpf-uid-"+t.uid;t.$item.off(e),t.$filter.off(e),c.off(e),t.emitEvent("destroyEvents")}},{key:"prepareLazyLoad",value:function(){var t=this,e=window.lazySizesConfig;if(e){var i={"data-vpf-src":e.srcAttr,"data-vpf-sizes":e.sizesAttr,"data-vpf-srcset":e.srcsetAttr};t.$items_wrap.find(".visual-portfolio-lazyload:not(."+e.lazyClass+")").each(function(){var t=a(this);Object.keys(i).forEach(function(e){i[e]&&e!==i[e]&&t.attr(e)&&(t.attr(i[e],t.attr(e)),t.removeAttr(e))}),t.addClass(e.lazyClass)})}}},{key:"getTilesSettings",value:function(){var t=this,e=t.options.tilesType.split(/[:|]/);return void 0===e[e.length-1]||e[e.length-1]||e.pop(),e}},{key:"initLayout",value:function(){var t=this;if(t.options.layout)switch(t.options.layout){case"tiles":var e=t.getTilesSettings(),i=parseInt(e[0],10)||1;if(e.shift(),t.addStyle(".vp-portfolio__item-wrap",{width:100/i+"%"}),e&&e.length)for(var o=0;o<e.length;o++){var s=e[o].split(","),r=parseFloat(s[0])||1,n=parseFloat(s[1])||1,a=".vp-portfolio__item-wrap";e.length>1&&(a+=":nth-of-type("+e.length+"n+"+(o+1)+")"),r&&1!==r&&t.addStyle(a,{width:100*r/i+"%"}),t.addStyle(a+" .vp-portfolio__item-img-wrap::before",{"margin-top":100*n+"%"})}for(var p=i-1,l=Math.min(w.length-1,p);l>=0;l--)p>0&&void 0!==w[l]&&(t.addStyle(".vp-portfolio__item-wrap",{width:100/p+"%"},"screen and (max-width: "+w[l]+"px)"),t.addStyle(".vp-portfolio__item-wrap:nth-of-type(n)",{width:100/p+"%"},"screen and (max-width: "+w[l]+"px)")),p-=1;break;case"masonry":t.addStyle(".vp-portfolio__item-wrap",{width:100/t.options.masonryColumns+"%"});for(var d=t.options.masonryColumns,v=d-1,f=Math.min(w.length-1,v);f>=0;f--)v>0&&void 0!==w[f]&&t.addStyle(".vp-portfolio__item-wrap",{width:100/v+"%"},"screen and (max-width: "+w[f]+"px)"),v-=1;case"justified":break;case"slider":"auto"!==t.options.sliderItemsHeight&&("auto"===t.options.sliderSlidesPerView?t.options.sliderItemsHeight.indexOf("%")===t.options.sliderItemsHeight.length-1?(t.addStyle(".vp-portfolio__items-wrap::before",{content:'""',display:"block",width:"100%","margin-top":isNaN(t.options.sliderItemsHeight)?t.options.sliderItemsHeight:t.options.sliderItemsHeight+"px"}),t.addStyle(".vp-portfolio__items",{position:"absolute",top:0,left:0,right:0,bottom:0}),t.addStyle(".vp-portfolio__item-wrap",{height:"true"===t.options.sliderBullets?"calc( 100% - 25px )":"100%"}),t.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%"})):t.addStyle(".vp-portfolio__item .vp-portfolio__item-img img",{width:"auto",height:isNaN(t.options.sliderItemsHeight)?t.options.sliderItemsHeight:t.options.sliderItemsHeight+"px"}):(t.addStyle(".vp-portfolio__item-img-wrap::before",{"margin-top":isNaN(t.options.sliderItemsHeight)?t.options.sliderItemsHeight:t.options.sliderItemsHeight+"px"}),t.addStyle(".vp-portfolio__item-img img",{position:"absolute",top:0,right:0,bottom:0,left:0}),t.addStyle(".vp-portfolio__item-img",{position:"absolute",top:0,right:0,bottom:0,left:0}),t.addStyle(".vp-portfolio__item .vp-portfolio__item-img img",{width:"100%",height:"100%"})))}var m=parseInt(t.options.itemsGap,10);if(m&&("tiles"===t.options.layout||"masonry"===t.options.layout)){t.addStyle(".vp-portfolio__items",{"margin-left":"-"+m+"px","margin-top":"-"+m+"px"});var u=m+"px";t.addStyle(".vp-portfolio__item-wrap .vp-portfolio__item",{"margin-left":u,"margin-top":u}),"tiles"===t.options.layout&&(t.addStyle(".vp-portfolio__item-wrap .vp-portfolio__item-img-wrap",{"margin-left":"-"+u,"margin-top":"-"+u}),t.addStyle(".vp-portfolio__item-wrap .vp-portfolio__item-img",{left:u,top:u}))}t.renderStyle(),t.emitEvent("initLayout")}},{key:"initCustomColors",value:function(){var t=this;t.$item.find("[data-vp-bg-color]").each(function(){var e=a(this).attr("data-vp-bg-color");t.addStyle('[data-vp-bg-color="'+e+'"]',{"background-color":e+" !important"})}),t.$item.find("[data-vp-text-color]").each(function(){var e=a(this).attr("data-vp-text-color");t.addStyle('[data-vp-text-color="'+e+'"]',{color:e+" !important"})}),t.renderStyle(),t.emitEvent("initCustomColors")}},{key:"initIsotope",value:function(t){var e=this;!e.$items_wrap.isotope||"tiles"!==e.options.layout&&"masonry"!==e.options.layout||(e.$items_wrap.isotope(t||{itemSelector:".vp-portfolio__item-wrap",layoutMode:"masonry",transitionDuration:"0.3s",percentPosition:!0}),e.emitEvent("initIsotope",[t]))}},{key:"destroyIsotope",value:function(){var t=this;t.$items_wrap.data("isotope")&&(t.$items_wrap.isotope("destroy"),t.emitEvent("destroyIsotope"))}},{key:"initFjGallery",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=this;i.$items_wrap.fjGallery&&"justified"===i.options.layout&&(i.$items_wrap.fjGallery(!1!==t?t:{gutter:parseFloat(i.options.itemsGap)||0,rowHeight:parseFloat(i.options.justifiedRowHeight)||200,rowHeightTolerance:parseFloat(i.options.justifiedRowHeightTolerance)||0,itemSelector:".vp-portfolio__item-wrap",imageSelector:".vp-portfolio__item-img img"},e),i.emitEvent("initFjGallery",[t]))}},{key:"destroyFjGallery",value:function(){var t=this;t.$items_wrap.data("fjGallery")&&(t.$items_wrap.fjGallery("destroy"),t.emitEvent("destroyFjGallery"))}},{key:"initSwiper",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this;if("slider"===e.options.layout&&void 0!==window.Swiper){var i=e.$items_wrap.parent();i.addClass("swiper-container"),e.$items_wrap.addClass("swiper-wrapper"),e.$items_wrap.children().addClass("swiper-slide"),"true"!==e.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="'+e.options.sliderArrowsIconPrev+'"></span></div>\n <div class="vp-portfolio__items-arrow vp-portfolio__items-arrow-next"><span class="'+e.options.sliderArrowsIconNext+'"></span></div>\n '),"true"!==e.options.sliderBullets||i.find(".vp-portfolio__items-bullets").length||i.append('<div class="vp-portfolio__items-bullets"></div>');var o=e.options.sliderSlidesPerView||3,s={};if(!isNaN(o))for(var r=o-1,n=Math.min(w.length-1,r);n>=0;n--)r>0&&void 0!==w[n]&&(s[w[n]]={slidesPerView:r}),r-=1;new window.Swiper(i[0],t||{speed:1e3*(parseFloat(e.options.sliderSpeed)||0),autoHeight:"auto"===e.options.sliderItemsHeight,effect:e.options.sliderEffect||"slide",spaceBetween:parseFloat(e.options.itemsGap)||0,centeredSlides:"true"===e.options.sliderCenteredSlides,freeMode:"true"===e.options.sliderFreeMode,loop:"true"===e.options.sliderLoop,autoplay:parseFloat(e.options.sliderAutoplay)>0&&{delay:1e3*parseFloat(e.options.sliderAutoplay),disableOnInteraction:!1},navigation:"true"===e.options.sliderArrows&&{nextEl:".vp-portfolio__items-arrow-next",prevEl:".vp-portfolio__items-arrow-prev"},pagination:"true"===e.options.sliderBullets&&{el:".vp-portfolio__items-bullets",clickable:!0,dynamicBullets:"true"===e.options.sliderBulletsDynamic},slidesPerView:o,breakpoints:s,keyboard:!0,grabCursor:!0}),e.emitEvent("initSwiper",[t])}}},{key:"destroySwiper",value:function(){var t=this,e=t.$items_wrap.parent(),i=e[0].swiper;i&&(i.destroy(),e.removeClass("swiper-container"),t.$items_wrap.removeClass("swiper-wrapper"),t.$items_wrap.children().removeClass("swiper-slide"),e.find(".vp-portfolio__items-arrow, .vp-portfolio__items-bullets").remove(),t.emitEvent("destroySwiper"))}},{key:"initPhotoswipe",value:function(){function t(e,i){if(void 0===i)return void(e&&e.itemHolders.length&&e.itemHolders.forEach(function(i){i.item&&i.item.html&&t(e,i.item)}));var o=e.viewportSize.x,s=e.viewportSize.y,r=i.vw/i.vh,n=void 0,p=a(i.container),l=e.options.barsSize,d=0,v=0;l&&(d=l.top&&"auto"!==l.top?l.top:0,v=l.bottom&&"auto"!==l.bottom?l.bottom:0),s-=d+v,n=r>o/s?o:s*r,p.find(".vp-pswp-video").css("max-width",n),p.css({top:d,bottom:v})}var e=this;if(void 0!==v&&e.options.itemsClickAction&&"popup_gallery"===e.options.itemsClickAction&&!e.$item.closest("#vp_preview").length){if(!a(".vp-pswp").length){var i="\n <div class=\"pswp vp-pswp vp-pswp-uid-'}"+e.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="'+m.pswp_close+'"></a>\n <a class="pswp__button pswp__button--share" title="'+m.pswp_share+'"></a>\n <a class="pswp__button pswp__button--fs" title="'+m.pswp_fs+'"></a>\n <a class="pswp__button pswp__button--zoom" title="'+m.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="'+m.pswp_prev+'"></a>\n <a class="pswp__button pswp__button--arrow--right" title="'+m.pswp_next+'"></a>\n <div class="pswp__caption">\n <div class="pswp__caption__center"></div>\n </div>\n </div>\n </div>\n </div>\n ';a("body").append(i)}var o=function(t){var e=a(t).find(".vp-portfolio__item-wrap"),i=[],o=void 0,s=void 0,r=void 0,n=void 0,p=void 0;return e.each(function(){if(o=a(this).find(".vp-portfolio__item-popup"),s=(o.attr("data-vp-popup-img-size")||"1920x1080").split("x"),r=(o.attr("data-vp-popup-video-size")||"1920x1080").split("x"),p=o.attr("data-vp-popup-video"))n={html:p,vw:parseInt(r[0],10),vh:parseInt(r[1],10)};else{n={src:o.attr("data-vp-popup-img"),w:parseInt(s[0],10),h:parseInt(s[1],10)};var t=o.html();t&&(n.title=t),n.el=this;var e=o.attr("data-vp-popup-md-img")||n.src;e&&(s=(o.attr("data-vp-popup-md-img-size")||o.attr("data-vp-popup-img-size")||"1920x1080").split("x"),n.m={src:e,w:parseInt(s[0],10),h:parseInt(s[1],10)}),n.o={src:n.src,w:n.w,h:n.h}}i.push(n)}),i},s=function(i,s,r,n){var p=a(".vp-pswp")[0],l=o(s),d={captionAndToolbarShowEmptyCaptions:!1,closeEl:u.show_close_button,captionEl:u.show_caption,fullscreenEl:u.show_fullscreen_button,zoomEl:u.show_zoom_button,shareEl:u.show_share_button,counterEl:u.show_counter,arrowEl:u.show_arrows,shareButtons:[{id:"facebook",label:m.pswp_share_fb,url:"https://www.facebook.com/sharer/sharer.php?u={{url}}"},{id:"twitter",label:m.pswp_share_tw,url:"https://twitter.com/intent/tweet?text={{text}}&url={{url}}"},{id:"pinterest",label:m.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:e.uid};if(n)if(d.galleryPIDs){for(var c=0;c<l.length;c++)if(l[c].pid===i){d.index=c;break}}else d.index=parseInt(i,10)-1;else d.index=parseInt(i,10);if(!Number.isNaN(d.index)){r&&(d.showAnimationDuration=0);var _=new v(p,f,l,d),h=void 0,w=!1,y=!0,g=void 0;_.listen("beforeResize",function(){h=_.viewportSize.x*window.devicePixelRatio,w&&h<1e3?(w=!1,g=!0):!w&&h>=1e3&&(w=!0,g=!0),g&&!y&&_.invalidateCurrItems(),y&&(y=!1),g=!1}),_.listen("gettingData",function(t,e){e.html||(w?(e.src=e.o.src,e.w=e.o.w,e.h=e.o.h):(e.src=e.m.src,e.w=e.m.w,e.h=e.m.h))}),_.listen("resize",function(){t(this)}),_.listen("afterChange",function(){t(this)}),_.listen("beforeChange",function(){var t=this;if(t&&t.itemHolders.length){var e=t.getCurrentIndex();t.itemHolders.forEach(function(t){if(t.el&&t.index!==e){var i=a(t.el).find(".vp-pswp-video iframe");i.length&&i.attr("src",i.attr("src"))}})}}),_.listen("destroy",function(){var t=this;t&&t.itemHolders.length&&t.itemHolders.forEach(function(t){t.el&&a(t.el).find(".vp-pswp-video").remove()})}),_.init()}};e.$item.on("click.vpf.vpf-uid-"+e.uid,".vp-portfolio__item",function(t){t.preventDefault();var i=0,o=this;e.$item.find(".vp-portfolio__item").each(function(t){return this!==o||(i=t,!1)}),s(i,e.$item[0])});var r=function(){var t=window.location.hash.substring(1),e={};if(t.length<5)return e;for(var i=t.split("&"),o=0;o<i.length;o++)if(i[o]){var s=i[o].split("=");s.length<2||(e[s[0]]=s[1])}return e}();r.pid&&r.gid===e.uid&&s(r.pid,e.$item[0],!0,!0)}}},{key:"destroyPhotoswipe",value:function(){var t=this;t.$item.off("click.vpf.vpf-uid-"+t.uid),a(".vp-pswp-uid-"+t.uid).remove()}},{key:"addItems",value:function(t,e){var i=this,o=i.$items_wrap.data("isotope"),s=i.$items_wrap.data("fjGallery"),r=i.$items_wrap.parent()[0].swiper;if(o){if(e){var n=i.$items_wrap.find(".vp-portfolio__item-wrap");i.$items_wrap.isotope("remove",n),i.$items_wrap.prepend(t).isotope("prepended",t)}else i.$items_wrap.append(t).isotope("appended",t);setTimeout(function(){i.initIsotope("layout")},0)}else if(s)e?(i.destroyFjGallery(),i.$items_wrap.find(".vp-portfolio__item-wrap").remove(),i.$items_wrap.prepend(t),i.initFjGallery()):(i.$items_wrap.append(t),i.initFjGallery("appendImages",t));else if(r){e&&r.removeAllSlides();var a=[];t.addClass("swiper-slide").each(function(){a.push(this)}),r.appendSlide(a)}i.emitEvent("addItems",[t,e])}},{key:"removeItems",value:function(t){var e=this;e.$items_wrap.data("isotope")&&e.$items_wrap.isotope("remove",t),e.emitEvent("removeItems",[t])}},{key:"loadNewItems",value:function(t,e,i){var o=this;!o.loading&&t&&(o.loading=!0,o.$item.addClass("vp-portfolio__loading"),o.emitEvent("startLoadingNewItems",[t]),a.get(t,{},function(t){t=t.replace("<body",'<body><div id="vp-infinite-load-body"').replace("</body>","</div></body>");var s=a(t).filter("#vp-infinite-load-body"),r=s.find(".vp-portfolio.vp-uid-"+o.uid);if(r.length){var n=r.find(".vp-portfolio__items").html();o.$filter.length&&o.$filter.each(function(){var t=a(this),e="";e=t.parent().hasClass("vp-single-filter")?s.find('[class="'+t.parent().attr("class").replace(" vp-single-filter__ready","")+'"] .vp-portfolio__filter-wrap').html():r.find(".vp-portfolio__filter-wrap").html(),t.html(e)}),o.$pagination.length&&o.$pagination.html(r.find(".vp-portfolio__pagination-wrap").html()),o.addItems(a(n),e),o.emitEvent("loadedNewItems",[r,r,t])}var p=r.attr("data-vp-next-page-url");o.options.nextPageUrl=p,o.$item.attr("data-vp-next-page-url",p),o.$item.removeClass("vp-portfolio__loading"),o.loading=!1,o.emitEvent("endLoadingNewItems"),o.prepareLazyLoad(),o.initCustomColors(),i&&i()}))}}]),t}(),g=function(t){var e=Array.prototype.slice.call(arguments,1),o=void 0;return this.each(function(){if(void 0===o)if("object"===(void 0===t?"undefined":r(t))||void 0===t)this.vpf||(this.vpf=new y(a(this),t));else if(this.vpf){var s;o=(s=this.vpf)[t].apply(s,i(e))}}),void 0!==o?o:this};g.constructor=y;var b=jQuery.fn.vpf;jQuery.fn.vpf=g,jQuery.fn.vpf.noConflict=function(){return jQuery.fn.vpf=b,this},a(".vp-portfolio").vpf(),a(function(){a(".vp-portfolio").vpf()})}});
1
+ !function(t){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}var i={};e.m=t,e.c=i,e.d=function(t,i,o){e.o(t,i)||Object.defineProperty(t,i,{configurable:!1,enumerable:!0,get: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,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=177)}({177:function(t,e,i){t.exports=i(178)},178:function(t,e){function i(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e<t.length;e++)i[e]=t[e];return i}return Array.from(t)}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(){_=c.width(),h=c.height()}var 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},n=function(){function t(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,i,o){return i&&t(e.prototype,i),o&&t(e,o),e}}(),a=jQuery,p=window,l=p.VPData,d=p.objectFitImages,v=p.PhotoSwipe,f=p.PhotoSwipeUI_Default,m=l.__,u=l.settingsPopupGallery,c=a(window),_=0,h=0;s(),c.on("resize load orientationchange",s);var w=[320,576,768,992,1200];void 0!==d&&d();var y=function(){function t(e,i){o(this,t);var s=this;s.$item=e;for(var r=e[0].className.split(/\s+/),n=0;n<r.length;n++)r[n]&&/^vp-uid-/.test(r[n])&&(s.uid=r[n].replace(/^vp-uid-/,"")),r[n]&&/^vp-id-/.test(r[n])&&(s.id=r[n].replace(/^vp-id-/,""));if(!s.uid)return void console.error(m.couldnt_retrieve_vp);s.$items_wrap=e.find(".vp-portfolio__items"),s.$pagination=e.find(".vp-portfolio__pagination-wrap"),s.$filter=e.find(".vp-portfolio__filter-wrap"),s.id&&(s.$filter=s.$filter.add(".vp-single-filter.vp-id-"+s.id+" .vp-portfolio__filter-wrap")),s.userOptions=i,s.firstRun=!0,s.init()}return n(t,[{key:"emitEvent",value:function(t,e){e=e?[this].concat(e):[this],this.$item.trigger(t+".vpf",e),this.$item.trigger(t+".vpf-uid-"+this.uid,e)}},{key:"init",value:function(){var t=this;t.firstRun||t.destroy(),t.destroyed=!1,t.initOptions(),t.initEvents(),t.prepareLazyLoad(),t.initLayout(),t.initCustomColors(),t.initPhotoswipe(),t.emitEvent("init"),t.$item.addClass("vp-portfolio__ready"),t.id&&a(".vp-single-filter.vp-id-"+t.id).addClass("vp-single-filter__ready"),t.initIsotope(),t.initFjGallery(),t.initSwiper(),t.resized(),t.firstRun=!1}},{key:"resized",value:function(){if("function"==typeof window.Event)window.dispatchEvent(new window.Event("resize"));else{var t=window.document.createEvent("UIEvents");t.initUIEvent("resize",!0,!1,window,0),window.dispatchEvent(t)}this.emitEvent("resized")}},{key:"destroy",value:function(){var t=this;t.$item.removeClass("vp-portfolio__ready"),t.id&&a(".vp-single-filter.vp-id-"+t.id).removeClass("vp-single-filter__ready"),t.destroyEvents(),t.removeStyle(),t.renderStyle(),t.destroyPhotoswipe(),t.destroyIsotope(),t.destroyFjGallery(),t.destroySwiper(),t.emitEvent("destroy"),t.destroyed=!0}},{key:"addStyle",value:function(t,e,i){i=i||"";var o=this,s=o.uid;o.stylesList||(o.stylesList={}),void 0===o.stylesList[s]&&(o.stylesList[s]={}),void 0===o.stylesList[s][i]&&(o.stylesList[s][i]={}),void 0===o.stylesList[s][i][t]&&(o.stylesList[s][i][t]={}),o.stylesList[s][i][t]=a.extend(o.stylesList[s][i][t],e),o.emitEvent("addStyle",[t,e,i,o.stylesList])}},{key:"removeStyle",value:function(t,e,i){i=i||"";var o=this,s=o.uid;o.stylesList||(o.stylesList={}),void 0===o.stylesList[s]||t||(o.stylesList[s]={}),void 0!==o.stylesList[s]&&void 0!==o.stylesList[s][i]&&void 0!==o.stylesList[s][i][t]&&t&&delete o.stylesList[s][i][t],o.emitEvent("removeStyle",[t,e,o.stylesList])}},{key:"renderStyle",value:function(){var t=this,e=t.uid,i="";t.stylesList||(t.stylesList={}),void 0!==t.stylesList[e]&&Object.keys(t.stylesList[e]).forEach(function(o){o&&(i+="@media "+o+" {"),Object.keys(t.stylesList[e][o]).forEach(function(s){i+=".vp-uid-"+e+" "+s+" {",Object.keys(t.stylesList[e][o][s]).forEach(function(r){i+=r+":"+t.stylesList[e][o][s][r]+";"}),i+="}"}),o&&(i+="}")});var o=a("#vp-style-"+e);o.length||(o=a("<style>").attr("id","vp-style-"+e).appendTo("head")),o.html(i),t.emitEvent("renderStyle",[i,t.stylesList,o])}},{key:"firstToLowerCase",value:function(t){return t.substr(0,1).toLowerCase()+t.substr(1)}},{key:"initOptions",value:function(t){var e=this;e.defaults={layout:"tile",itemsGap:0,tilesType:"3|1,1|",masonryColumns:3,justifiedRowHeight:250,justifiedRowHeightTolerance:.25,pagination:"load-more"},t&&(e.userOptions=t);var i=e.$item[0].dataset,o={};Object.keys(i).forEach(function(t){t&&"vp"===t.substring(0,2)&&(o[e.firstToLowerCase(t.substring(2))]=i[t])}),e.options=a.extend({},e.defaults,o,e.userOptions),e.emitEvent("initOptions")}},{key:"isCrossLine",value:function(t,e,i,o){var s=(o.x-i.x)*(t.y-i.y)-(o.y-i.y)*(t.x-i.x),r=(o.x-i.x)*(e.y-i.y)-(o.y-i.y)*(e.x-i.x),n=(e.x-t.x)*(i.y-t.y)-(e.y-t.y)*(i.x-t.x),a=(e.x-t.x)*(o.y-t.y)-(e.y-t.y)*(o.x-t.x);return s*r<=0&&n*a<=0}},{key:"initEvents",value:function(){function t(){var t=i.$item[0].getBoundingClientRect(),e=t.left,o=_-t.right,s=parseFloat(i.$item.css("margin-left")||0),r=parseFloat(i.$item.css("margin-right")||0);i.$item.css({"margin-left":s-e,"margin-right":r-o})}function e(){var t=i.$item[0].getBoundingClientRect();t.bottom>0&&t.bottom-n<=h&&i.loadNewItems(i.options.nextPageUrl,!1,function(){e()})}var i=this,o=".vpf-uid-"+i.uid;if(i.$item.hasClass("vp-portfolio__stretch")&&(c.on("load"+o+" resize"+o+" orientationchange"+o,function(){t()}),t()),"fly"===i.options.itemsStyle){var s={};c.on("mousemove"+o,function(t){s={x:t.clientX,y:t.clientY}}),i.$item.on("mouseenter"+o+" mouseleave"+o,".vp-portfolio__item",function(t){var e=a(this),o=e[0].getBoundingClientRect(),r=e.find(".vp-portfolio__item-overlay"),n="mouseenter"===t.type,p="0%",l="0%",d={x:t.clientX,y:t.clientY},v=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),m=i.isCrossLine({x:o.left,y:o.top},{x:o.left,y:o.top+o.height},d,s),u=i.isCrossLine({x:o.left+o.width,y:o.top},{x:o.left+o.width,y:o.top+o.height},d,s);if(!(v||f||m||u)){var c=(o.width/2-d.x+o.left)/(o.width/2),_=(o.height/2-d.y+o.top)/(o.height/2);Math.abs(c)>Math.abs(_)?c>0?m=!0:u=!0:_>0?v=!0:f=!0}v?l="-10"+l:f?l="10"+l:m?p="-10"+p:u&&(p="10"+p),n&&(r.css({transition:"none",transform:"translateX("+p+") translateY("+l+") translateZ(0)"}),r[0].offsetHeight),r.css({transition:".2s transform ease-in-out",transform:"translateX("+(n?"0%":p)+") translateY("+(n?"0%":l)+") translateZ(0)"})})}i.$filter.on("click"+o,".vp-filter .vp-filter__item a",function(t){t.preventDefault();var e=a(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"+o,".vp-pagination .vp-pagination__item a",function(t){t.preventDefault();var e=a(this);e.hasClass("vp-pagination__no-more")&&"paged"!==i.options.pagination||i.loadNewItems(e.attr("href"),"paged"===i.options.pagination)}),i.$item.on("click"+o,".vp-portfolio__items .vp-portfolio__item-meta-category a",function(t){t.preventDefault(),t.stopPropagation(),i.loadNewItems(a(this).attr("href"),!0)});var r=void 0,n=250;"infinite"===i.options.pagination&&(c.on("load"+o+" scroll"+o+" resize"+o+" orientationchange"+o,function(){clearTimeout(r),r=setTimeout(function(){e()},60)}),e()),i.$item.on("transitionend"+o,".vp-portfolio__items",function(t){t.currentTarget===t.target&&i.resized()}),i.emitEvent("initEvents")}},{key:"destroyEvents",value:function(){var t=this,e=".vpf-uid-"+t.uid;t.$item.off(e),t.$filter.off(e),c.off(e),t.emitEvent("destroyEvents")}},{key:"prepareLazyLoad",value:function(){var t=this,e=window.lazySizesConfig;if(e){var i={"data-vpf-src":e.srcAttr,"data-vpf-sizes":e.sizesAttr,"data-vpf-srcset":e.srcsetAttr};t.$items_wrap.find(".visual-portfolio-lazyload:not(."+e.lazyClass+")").each(function(){var t=a(this);Object.keys(i).forEach(function(e){i[e]&&e!==i[e]&&t.attr(e)&&(t.attr(i[e],t.attr(e)),t.removeAttr(e))}),t.addClass(e.lazyClass)})}}},{key:"getTilesSettings",value:function(){var t=this,e=t.options.tilesType.split(/[:|]/);return void 0===e[e.length-1]||e[e.length-1]||e.pop(),e}},{key:"initLayout",value:function(){var t=this;if(t.options.layout)switch(t.options.layout){case"tiles":var e=t.getTilesSettings(),i=parseInt(e[0],10)||1;if(e.shift(),t.addStyle(".vp-portfolio__item-wrap",{width:100/i+"%"}),e&&e.length)for(var o=0;o<e.length;o++){var s=e[o].split(","),r=parseFloat(s[0])||1,n=parseFloat(s[1])||1,a=".vp-portfolio__item-wrap";e.length>1&&(a+=":nth-of-type("+e.length+"n+"+(o+1)+")"),r&&1!==r&&t.addStyle(a,{width:100*r/i+"%"}),t.addStyle(a+" .vp-portfolio__item-img-wrap::before",{"margin-top":100*n+"%"})}for(var p=i-1,l=Math.min(w.length-1,p);l>=0;l--)p>0&&void 0!==w[l]&&(t.addStyle(".vp-portfolio__item-wrap",{width:100/p+"%"},"screen and (max-width: "+w[l]+"px)"),t.addStyle(".vp-portfolio__item-wrap:nth-of-type(n)",{width:100/p+"%"},"screen and (max-width: "+w[l]+"px)")),p-=1;break;case"masonry":t.addStyle(".vp-portfolio__item-wrap",{width:100/t.options.masonryColumns+"%"});for(var d=t.options.masonryColumns,v=d-1,f=Math.min(w.length-1,v);f>=0;f--)v>0&&void 0!==w[f]&&t.addStyle(".vp-portfolio__item-wrap",{width:100/v+"%"},"screen and (max-width: "+w[f]+"px)"),v-=1;case"justified":break;case"slider":"auto"!==t.options.sliderItemsHeight&&("auto"===t.options.sliderSlidesPerView?t.options.sliderItemsHeight.indexOf("%")===t.options.sliderItemsHeight.length-1?(t.addStyle(".vp-portfolio__items-wrap::before",{content:'""',display:"block",width:"100%","margin-top":isNaN(t.options.sliderItemsHeight)?t.options.sliderItemsHeight:t.options.sliderItemsHeight+"px"}),t.addStyle(".vp-portfolio__items",{position:"absolute",top:0,left:0,right:0,bottom:0}),t.addStyle(".vp-portfolio__item-wrap",{height:"true"===t.options.sliderBullets?"calc( 100% - 25px )":"100%"}),t.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%"})):t.addStyle(".vp-portfolio__item .vp-portfolio__item-img img",{width:"auto",height:isNaN(t.options.sliderItemsHeight)?t.options.sliderItemsHeight:t.options.sliderItemsHeight+"px"}):(t.addStyle(".vp-portfolio__item-img-wrap::before",{"margin-top":isNaN(t.options.sliderItemsHeight)?t.options.sliderItemsHeight:t.options.sliderItemsHeight+"px"}),t.addStyle(".vp-portfolio__item-img img",{position:"absolute",top:0,right:0,bottom:0,left:0}),t.addStyle(".vp-portfolio__item-img",{position:"absolute",top:0,right:0,bottom:0,left:0}),t.addStyle(".vp-portfolio__item .vp-portfolio__item-img img",{width:"100%",height:"100%"})))}var m=parseInt(t.options.itemsGap,10);if(m&&("tiles"===t.options.layout||"masonry"===t.options.layout)){t.addStyle(".vp-portfolio__items",{"margin-left":"-"+m+"px","margin-top":"-"+m+"px"});var u=m+"px";t.addStyle(".vp-portfolio__item-wrap .vp-portfolio__item",{"margin-left":u,"margin-top":u}),"tiles"===t.options.layout&&(t.addStyle(".vp-portfolio__item-wrap .vp-portfolio__item-img-wrap",{"margin-left":"-"+u,"margin-top":"-"+u}),t.addStyle(".vp-portfolio__item-wrap .vp-portfolio__item-img",{left:u,top:u}))}t.renderStyle(),t.emitEvent("initLayout")}},{key:"initCustomColors",value:function(){var t=this;t.$item.find("[data-vp-bg-color]").each(function(){var e=a(this).attr("data-vp-bg-color");t.addStyle('[data-vp-bg-color="'+e+'"]',{"background-color":e+" !important"})}),t.$item.find("[data-vp-text-color]").each(function(){var e=a(this).attr("data-vp-text-color");t.addStyle('[data-vp-text-color="'+e+'"]',{color:e+" !important"})}),t.renderStyle(),t.emitEvent("initCustomColors")}},{key:"initIsotope",value:function(t){var e=this;!e.$items_wrap.isotope||"tiles"!==e.options.layout&&"masonry"!==e.options.layout||(e.$items_wrap.isotope(t||{itemSelector:".vp-portfolio__item-wrap",layoutMode:"masonry",transitionDuration:"0.3s",percentPosition:!0}),e.emitEvent("initIsotope",[t]))}},{key:"destroyIsotope",value:function(){var t=this;t.$items_wrap.data("isotope")&&(t.$items_wrap.isotope("destroy"),t.emitEvent("destroyIsotope"))}},{key:"initFjGallery",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=this;i.$items_wrap.fjGallery&&"justified"===i.options.layout&&(i.$items_wrap.fjGallery(!1!==t?t:{gutter:parseFloat(i.options.itemsGap)||0,rowHeight:parseFloat(i.options.justifiedRowHeight)||200,rowHeightTolerance:parseFloat(i.options.justifiedRowHeightTolerance)||0,itemSelector:".vp-portfolio__item-wrap",imageSelector:".vp-portfolio__item-img img"},e),i.emitEvent("initFjGallery",[t]))}},{key:"destroyFjGallery",value:function(){var t=this;t.$items_wrap.data("fjGallery")&&(t.$items_wrap.fjGallery("destroy"),t.emitEvent("destroyFjGallery"))}},{key:"initSwiper",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this;if("slider"===e.options.layout&&void 0!==window.Swiper){var i=e.$items_wrap.parent();i.addClass("swiper-container"),e.$items_wrap.addClass("swiper-wrapper"),e.$items_wrap.children().addClass("swiper-slide"),"true"!==e.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="'+e.options.sliderArrowsIconPrev+'"></span></div>\n <div class="vp-portfolio__items-arrow vp-portfolio__items-arrow-next"><span class="'+e.options.sliderArrowsIconNext+'"></span></div>\n '),"true"!==e.options.sliderBullets||i.find(".vp-portfolio__items-bullets").length||i.append('<div class="vp-portfolio__items-bullets"></div>');var o=e.options.sliderSlidesPerView||3,s={};if(!isNaN(o))for(var r=o-1,n=Math.min(w.length-1,r);n>=0;n--)r>0&&void 0!==w[n]&&(s[w[n]]={slidesPerView:r}),r-=1;new window.Swiper(i[0],t||{speed:1e3*(parseFloat(e.options.sliderSpeed)||0),autoHeight:"auto"===e.options.sliderItemsHeight,effect:e.options.sliderEffect||"slide",spaceBetween:parseFloat(e.options.itemsGap)||0,centeredSlides:"true"===e.options.sliderCenteredSlides,freeMode:"true"===e.options.sliderFreeMode,loop:"true"===e.options.sliderLoop,autoplay:parseFloat(e.options.sliderAutoplay)>0&&{delay:1e3*parseFloat(e.options.sliderAutoplay),disableOnInteraction:!1},navigation:"true"===e.options.sliderArrows&&{nextEl:".vp-portfolio__items-arrow-next",prevEl:".vp-portfolio__items-arrow-prev"},pagination:"true"===e.options.sliderBullets&&{el:".vp-portfolio__items-bullets",clickable:!0,dynamicBullets:"true"===e.options.sliderBulletsDynamic},slidesPerView:o,breakpoints:s,keyboard:!0,grabCursor:!0}),e.emitEvent("initSwiper",[t])}}},{key:"destroySwiper",value:function(){var t=this,e=t.$items_wrap.parent(),i=e[0].swiper;i&&(i.destroy(),e.removeClass("swiper-container"),t.$items_wrap.removeClass("swiper-wrapper"),t.$items_wrap.children().removeClass("swiper-slide"),e.find(".vp-portfolio__items-arrow, .vp-portfolio__items-bullets").remove(),t.emitEvent("destroySwiper"))}},{key:"initPhotoswipe",value:function(){function t(e,i){if(void 0===i)return void(e&&e.itemHolders.length&&e.itemHolders.forEach(function(i){i.item&&i.item.html&&t(e,i.item)}));var o=e.viewportSize.x,s=e.viewportSize.y,r=i.vw/i.vh,n=void 0,p=a(i.container),l=e.options.barsSize,d=0,v=0;l&&(d=l.top&&"auto"!==l.top?l.top:0,v=l.bottom&&"auto"!==l.bottom?l.bottom:0),s-=d+v,n=r>o/s?o:s*r,p.find(".vp-pswp-video").css("max-width",n),p.css({top:d,bottom:v})}var e=this;if(void 0!==v&&e.options.itemsClickAction&&"popup_gallery"===e.options.itemsClickAction&&!e.$item.closest("#vp_preview").length){if(!a(".vp-pswp").length){var i="\n <div class=\"pswp vp-pswp vp-pswp-uid-'}"+e.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="'+m.pswp_close+'"></a>\n <a class="pswp__button pswp__button--share" title="'+m.pswp_share+'"></a>\n <a class="pswp__button pswp__button--fs" title="'+m.pswp_fs+'"></a>\n <a class="pswp__button pswp__button--zoom" title="'+m.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="'+m.pswp_prev+'"></a>\n <a class="pswp__button pswp__button--arrow--right" title="'+m.pswp_next+'"></a>\n <div class="pswp__caption">\n <div class="pswp__caption__center"></div>\n </div>\n </div>\n </div>\n </div>\n ';a("body").append(i)}var o=function(t){var e=a(t).find(".vp-portfolio__item-wrap"),i=[],o=void 0,s=void 0,r=void 0,n=void 0,p=void 0;return e.each(function(){if(o=a(this).find(".vp-portfolio__item-popup"),s=(o.attr("data-vp-popup-img-size")||"1920x1080").split("x"),r=(o.attr("data-vp-popup-video-size")||"1920x1080").split("x"),p=o.attr("data-vp-popup-video"))n={html:p,vw:parseInt(r[0],10),vh:parseInt(r[1],10)};else{n={src:o.attr("data-vp-popup-img"),w:parseInt(s[0],10),h:parseInt(s[1],10)};var t=o.html();t&&(n.title=t),n.el=this;var e=o.attr("data-vp-popup-md-img")||n.src;e&&(s=(o.attr("data-vp-popup-md-img-size")||o.attr("data-vp-popup-img-size")||"1920x1080").split("x"),n.m={src:e,w:parseInt(s[0],10),h:parseInt(s[1],10)}),n.o={src:n.src,w:n.w,h:n.h}}i.push(n)}),i},s=function(i,s,r,n){var p=a(".vp-pswp")[0],l=o(s),d={captionAndToolbarShowEmptyCaptions:!1,closeEl:u.show_close_button,captionEl:u.show_caption,fullscreenEl:u.show_fullscreen_button,zoomEl:u.show_zoom_button,shareEl:u.show_share_button,counterEl:u.show_counter,arrowEl:u.show_arrows,shareButtons:[{id:"facebook",label:m.pswp_share_fb,url:"https://www.facebook.com/sharer/sharer.php?u={{url}}"},{id:"twitter",label:m.pswp_share_tw,url:"https://twitter.com/intent/tweet?text={{text}}&url={{url}}"},{id:"pinterest",label:m.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:e.uid};if(n)if(d.galleryPIDs){for(var c=0;c<l.length;c++)if(l[c].pid===i){d.index=c;break}}else d.index=parseInt(i,10)-1;else d.index=parseInt(i,10);if(!Number.isNaN(d.index)){r&&(d.showAnimationDuration=0);var _=new v(p,f,l,d),h=void 0,w=!1,y=!0,g=void 0;_.listen("beforeResize",function(){h=_.viewportSize.x*window.devicePixelRatio,w&&h<1e3?(w=!1,g=!0):!w&&h>=1e3&&(w=!0,g=!0),g&&!y&&_.invalidateCurrItems(),y&&(y=!1),g=!1}),_.listen("gettingData",function(t,e){e.html||(w?(e.src=e.o.src,e.w=e.o.w,e.h=e.o.h):(e.src=e.m.src,e.w=e.m.w,e.h=e.m.h))}),_.listen("resize",function(){t(this)}),_.listen("afterChange",function(){t(this)}),_.listen("beforeChange",function(){var t=this;if(t&&t.itemHolders.length){var e=t.getCurrentIndex();t.itemHolders.forEach(function(t){if(t.el&&t.index!==e){var i=a(t.el).find(".vp-pswp-video iframe");i.length&&i.attr("src",i.attr("src"))}})}}),_.listen("destroy",function(){var t=this;t&&t.itemHolders.length&&t.itemHolders.forEach(function(t){t.el&&a(t.el).find(".vp-pswp-video").remove()})}),_.init()}};e.$item.on("click.vpf-uid-"+e.uid,".vp-portfolio__item",function(t){t.preventDefault();var i=0,o=this;e.$item.find(".vp-portfolio__item").each(function(t){return this!==o||(i=t,!1)}),s(i,e.$item[0])});var r=function(){var t=window.location.hash.substring(1),e={};if(t.length<5)return e;for(var i=t.split("&"),o=0;o<i.length;o++)if(i[o]){var s=i[o].split("=");s.length<2||(e[s[0]]=s[1])}return e}();r.pid&&r.gid===e.uid&&s(r.pid,e.$item[0],!0,!0)}}},{key:"destroyPhotoswipe",value:function(){var t=this;t.$item.off("click.vpf-uid-"+t.uid),a(".vp-pswp-uid-"+t.uid).remove()}},{key:"addItems",value:function(t,e){var i=this,o=i.$items_wrap.data("isotope"),s=i.$items_wrap.data("fjGallery"),r=i.$items_wrap.parent()[0].swiper;if(o){if(e){var n=i.$items_wrap.find(".vp-portfolio__item-wrap");i.$items_wrap.isotope("remove",n),i.$items_wrap.prepend(t).isotope("prepended",t)}else i.$items_wrap.append(t).isotope("appended",t);setTimeout(function(){i.initIsotope("layout")},0)}else if(s)e?(i.destroyFjGallery(),i.$items_wrap.find(".vp-portfolio__item-wrap").remove(),i.$items_wrap.prepend(t),i.initFjGallery()):(i.$items_wrap.append(t),i.initFjGallery("appendImages",t));else if(r){e&&r.removeAllSlides();var a=[];t.addClass("swiper-slide").each(function(){a.push(this)}),r.appendSlide(a)}i.emitEvent("addItems",[t,e])}},{key:"removeItems",value:function(t){var e=this;e.$items_wrap.data("isotope")&&e.$items_wrap.isotope("remove",t),e.emitEvent("removeItems",[t])}},{key:"loadNewItems",value:function(t,e,i){var o=this;!o.loading&&t&&(o.loading=!0,o.$item.addClass("vp-portfolio__loading"),o.emitEvent("startLoadingNewItems",[t]),a.get(t,{},function(t){t=t.replace("<body",'<body><div id="vp-infinite-load-body"').replace("</body>","</div></body>");var s=a(t).filter("#vp-infinite-load-body"),r=s.find(".vp-portfolio.vp-uid-"+o.uid);if(r.length){var n=r.find(".vp-portfolio__items").html();o.$filter.length&&o.$filter.each(function(){var t=a(this),e="";e=t.parent().hasClass("vp-single-filter")?s.find('[class="'+t.parent().attr("class").replace(" vp-single-filter__ready","")+'"] .vp-portfolio__filter-wrap').html():r.find(".vp-portfolio__filter-wrap").html(),t.html(e)}),o.$pagination.length&&o.$pagination.html(r.find(".vp-portfolio__pagination-wrap").html()),o.addItems(a(n),e),o.emitEvent("loadedNewItems",[r,r,t])}var p=r.attr("data-vp-next-page-url");o.options.nextPageUrl=p,o.$item.attr("data-vp-next-page-url",p),o.$item.removeClass("vp-portfolio__loading"),o.loading=!1,o.emitEvent("endLoadingNewItems"),o.prepareLazyLoad(),o.initCustomColors(),i&&i()}))}}]),t}(),g=function(t){var e=Array.prototype.slice.call(arguments,1),o=void 0;return this.each(function(){if(void 0===o)if("object"===(void 0===t?"undefined":r(t))||void 0===t)this.vpf||(this.vpf=new y(a(this),t));else if(this.vpf){var s;o=(s=this.vpf)[t].apply(s,i(e))}}),void 0!==o?o:this};g.constructor=y;var b=jQuery.fn.vpf;jQuery.fn.vpf=g,jQuery.fn.vpf.noConflict=function(){return jQuery.fn.vpf=b,this},a(".vp-portfolio").vpf(),a(function(){a(".vp-portfolio").vpf()})}});
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.7.1
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.7.1', true );
211
- wp_register_style( 'visual-portfolio', visual_portfolio()->plugin_url . 'assets/css/style.min.css', $vp_style_deps, '1.7.1' );
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.7.2
6
  * Author: nK
7
  * Author URI: https://nkdev.info
8
  * License: GPLv2 or later
207
  }
208
 
209
  // Visual Portfolio.
210
+ wp_register_script( 'visual-portfolio', visual_portfolio()->plugin_url . 'assets/js/script.min.js', $vp_deps, '1.7.2', true );
211
+ wp_register_style( 'visual-portfolio', visual_portfolio()->plugin_url . 'assets/css/style.min.css', $vp_style_deps, '1.7.2' );
212
 
213
  // Visual Portfolio data.
214
  $data_init = array(
classes/class-admin.php CHANGED
@@ -51,7 +51,7 @@ class Visual_Portfolio_Admin {
51
  add_filter( 'manage_vp_lists_posts_custom_column', array( $this, 'manage_vp_lists_shortcode_column' ), 10, 2 );
52
 
53
  // highlight admin menu items.
54
- add_action( 'admin_menu', array( $this, 'admin_menu' ) );
55
 
56
  // show admin menu dropdown with available portfolios on the current page.
57
  add_action( 'wp_before_admin_bar_render', array( $this, 'wp_before_admin_bar_render' ) );
@@ -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.7.1', true );
156
- wp_enqueue_style( 'visual-portfolio-admin', visual_portfolio()->plugin_url . 'assets/admin/css/style.min.css', '', '1.7.1' );
157
  wp_localize_script( 'visual-portfolio-admin', 'VPAdminVariables', $data_init );
158
  }
159
 
@@ -678,6 +678,15 @@ class Visual_Portfolio_Admin {
678
  }
679
  }
680
  }
 
 
 
 
 
 
 
 
 
681
  }
682
 
683
  /**
@@ -709,7 +718,7 @@ class Visual_Portfolio_Admin {
709
  'placeholder' => esc_html__( 'Select tiles type', 'visual-portfolio' ),
710
  'name' => 'type',
711
  'default' => '3|1,1|',
712
- 'options' => array(
713
  array(
714
  'url' => visual_portfolio()->plugin_url . 'assets/admin/images/layouts/tiles-1-1.svg',
715
  'value' => '1|1,0.5|',
@@ -818,7 +827,7 @@ class Visual_Portfolio_Admin {
818
  'url' => visual_portfolio()->plugin_url . 'assets/admin/images/layouts/tiles-4-5.svg',
819
  'value' => '4|2,1|2,0.5|2,0.5|2,0.5|2,1|2,0.5|',
820
  ),
821
- ),
822
  ),
823
  ),
824
  ),
51
  add_filter( 'manage_vp_lists_posts_custom_column', array( $this, 'manage_vp_lists_shortcode_column' ), 10, 2 );
52
 
53
  // highlight admin menu items.
54
+ add_action( 'admin_menu', array( $this, 'admin_menu' ), 12 );
55
 
56
  // show admin menu dropdown with available portfolios on the current page.
57
  add_action( 'wp_before_admin_bar_render', array( $this, 'wp_before_admin_bar_render' ) );
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.7.2', true );
156
+ wp_enqueue_style( 'visual-portfolio-admin', visual_portfolio()->plugin_url . 'assets/admin/css/style.min.css', '', '1.7.2' );
157
  wp_localize_script( 'visual-portfolio-admin', 'VPAdminVariables', $data_init );
158
  }
159
 
678
  }
679
  }
680
  }
681
+
682
+ // Documentation menu link.
683
+ add_submenu_page(
684
+ 'edit.php?post_type=portfolio',
685
+ esc_html__( 'Documentation', 'visual-portfolio' ),
686
+ esc_html__( 'Documentation', 'visual-portfolio' ),
687
+ 'manage_options',
688
+ 'https://wp.nkdev.info/free-visual-portfolio/documentation/getting-started/'
689
+ );
690
  }
691
 
692
  /**
718
  'placeholder' => esc_html__( 'Select tiles type', 'visual-portfolio' ),
719
  'name' => 'type',
720
  'default' => '3|1,1|',
721
+ 'options' => array_merge( array(
722
  array(
723
  'url' => visual_portfolio()->plugin_url . 'assets/admin/images/layouts/tiles-1-1.svg',
724
  'value' => '1|1,0.5|',
827
  'url' => visual_portfolio()->plugin_url . 'assets/admin/images/layouts/tiles-4-5.svg',
828
  'value' => '4|2,1|2,0.5|2,0.5|2,0.5|2,1|2,0.5|',
829
  ),
830
+ ), Visual_Portfolio_Extend::tiles() ),
831
  ),
832
  ),
833
  ),
classes/class-extend.php CHANGED
@@ -39,6 +39,28 @@ class Visual_Portfolio_Extend {
39
  return apply_filters( 'vpf_extend_layouts', array() );
40
  }
41
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
42
  /**
43
  * Additional Items Styles.
44
  *
39
  return apply_filters( 'vpf_extend_layouts', array() );
40
  }
41
 
42
+ /**
43
+ * Additional Tiles.
44
+ *
45
+ * @return array
46
+ */
47
+ public static function tiles() {
48
+ /*
49
+ * Example:
50
+ array(
51
+ array(
52
+ 'url' => 'assets/images/tiles-1-1.svg',
53
+ 'value' => '1|1,0.5|',
54
+ ),
55
+ array(
56
+ 'url' => 'assets/images/tiles-2-1.svg',
57
+ 'value' => '2|1,1|',
58
+ ),
59
+ )
60
+ */
61
+ return apply_filters( 'vpf_extend_tiles', array() );
62
+ }
63
+
64
  /**
65
  * Additional Items Styles.
66
  *
languages/visual-portfolio.pot CHANGED
@@ -167,491 +167,495 @@ msgstr ""
167
  msgid "Thumbnail"
168
  msgstr ""
169
 
170
- #: dist/visual-portfolio/classes/class-admin.php:592, dist/visual-portfolio/classes/class-admin.php:2352
171
  msgid "Shortcode"
172
  msgstr ""
173
 
174
- #: dist/visual-portfolio/classes/class-admin.php:693
 
 
 
 
175
  msgid "Tiles"
176
  msgstr ""
177
 
178
- #: dist/visual-portfolio/classes/class-admin.php:708, dist/visual-portfolio/classes/class-admin.php:1681
179
  msgid "Type"
180
  msgstr ""
181
 
182
- #: dist/visual-portfolio/classes/class-admin.php:709
183
  msgid "Select tiles type"
184
  msgstr ""
185
 
186
- #: dist/visual-portfolio/classes/class-admin.php:828
187
  msgid "Masonry"
188
  msgstr ""
189
 
190
- #: dist/visual-portfolio/classes/class-admin.php:832
191
  msgid "Columns"
192
  msgstr ""
193
 
194
- #: dist/visual-portfolio/classes/class-admin.php:843
195
  msgid "Justified"
196
  msgstr ""
197
 
198
- #: dist/visual-portfolio/classes/class-admin.php:847
199
  msgid "Row height"
200
  msgstr ""
201
 
202
- #: dist/visual-portfolio/classes/class-admin.php:855
203
  msgid "Row height tolerance"
204
  msgstr ""
205
 
206
- #: dist/visual-portfolio/classes/class-admin.php:867
207
  msgid "Slider"
208
  msgstr ""
209
 
210
- #: dist/visual-portfolio/classes/class-admin.php:871
211
  msgid "Effect"
212
  msgstr ""
213
 
214
- #: dist/visual-portfolio/classes/class-admin.php:875
215
  msgid "Slide"
216
  msgstr ""
217
 
218
- #: dist/visual-portfolio/classes/class-admin.php:876
219
  msgid "Coverflow"
220
  msgstr ""
221
 
222
- #: dist/visual-portfolio/classes/class-admin.php:877, dist/visual-portfolio/classes/class-admin.php:1262
223
  msgid "Fade"
224
  msgstr ""
225
 
226
- #: dist/visual-portfolio/classes/class-admin.php:882
227
  msgid "Speed (seconds)"
228
  msgstr ""
229
 
230
- #: dist/visual-portfolio/classes/class-admin.php:891
231
  msgid "Autoplay (seconds)"
232
  msgstr ""
233
 
234
- #: dist/visual-portfolio/classes/class-admin.php:900
235
  msgid "Items height"
236
  msgstr ""
237
 
238
- #: dist/visual-portfolio/classes/class-admin.php:904, dist/visual-portfolio/classes/class-admin.php:943
239
  msgid "Auto"
240
  msgstr ""
241
 
242
- #: dist/visual-portfolio/classes/class-admin.php:905
243
  msgid "Static (px)"
244
  msgstr ""
245
 
246
- #: dist/visual-portfolio/classes/class-admin.php:906
247
  msgid "Dynamic (%)"
248
  msgstr ""
249
 
250
- #: dist/visual-portfolio/classes/class-admin.php:939
251
  msgid "Slides per view"
252
  msgstr ""
253
 
254
- #: dist/visual-portfolio/classes/class-admin.php:944
255
  msgid "Custom"
256
  msgstr ""
257
 
258
- #: dist/visual-portfolio/classes/class-admin.php:975
259
  msgid "Centered slides"
260
  msgstr ""
261
 
262
- #: dist/visual-portfolio/classes/class-admin.php:988
263
  msgid "Loop"
264
  msgstr ""
265
 
266
- #: dist/visual-portfolio/classes/class-admin.php:994
267
  msgid "Free scroll"
268
  msgstr ""
269
 
270
- #: dist/visual-portfolio/classes/class-admin.php:1000, dist/visual-portfolio/classes/class-admin.php:1927, dist/visual-portfolio/classes/class-settings.php:146
271
  msgid "Show arrows"
272
  msgstr ""
273
 
274
- #: dist/visual-portfolio/classes/class-admin.php:1008, dist/visual-portfolio/classes/class-admin.php:1009, dist/visual-portfolio/classes/class-admin.php:1949, dist/visual-portfolio/classes/class-admin.php:1950
275
  msgid "Prev arrow icon"
276
  msgstr ""
277
 
278
- #: dist/visual-portfolio/classes/class-admin.php:1021, dist/visual-portfolio/classes/class-admin.php:1022, dist/visual-portfolio/classes/class-admin.php:1974, dist/visual-portfolio/classes/class-admin.php:1975
279
  msgid "Next arrow icon"
280
  msgstr ""
281
 
282
- #: dist/visual-portfolio/classes/class-admin.php:1032
283
  msgid "Show bullets"
284
  msgstr ""
285
 
286
- #: dist/visual-portfolio/classes/class-admin.php:1038
287
  msgid "Dynamic bullets"
288
  msgstr ""
289
 
290
- #: dist/visual-portfolio/classes/class-admin.php:1101
291
  msgid "Gap"
292
  msgstr ""
293
 
294
- #: dist/visual-portfolio/classes/class-admin.php:1113
295
  msgid "Items per page"
296
  msgstr ""
297
 
298
- #: dist/visual-portfolio/classes/class-admin.php:1125
299
  msgid "Stretch"
300
  msgstr ""
301
 
302
- #: dist/visual-portfolio/classes/class-admin.php:1128
303
  msgid "Break container and display it wide"
304
  msgstr ""
305
 
306
- #: dist/visual-portfolio/classes/class-admin.php:1139, dist/visual-portfolio/classes/class-admin.php:1510, dist/visual-portfolio/classes/class-admin.php:1627
307
  msgid "Default"
308
  msgstr ""
309
 
310
- #: dist/visual-portfolio/classes/class-admin.php:1151
311
  msgid "Show Read more button"
312
  msgstr ""
313
 
314
- #: dist/visual-portfolio/classes/class-admin.php:1155, dist/visual-portfolio/classes/class-admin.php:1362
315
  msgid "False"
316
  msgstr ""
317
 
318
- #: dist/visual-portfolio/classes/class-admin.php:1156
319
  msgid "Always show"
320
  msgstr ""
321
 
322
- #: dist/visual-portfolio/classes/class-admin.php:1157
323
  msgid "Show when used \"More tag\" in the post"
324
  msgstr ""
325
 
326
- #: dist/visual-portfolio/classes/class-admin.php:1165
327
  msgid "Read more button label"
328
  msgstr ""
329
 
330
- #: dist/visual-portfolio/classes/class-admin.php:1180
331
  msgid "Fly"
332
  msgstr ""
333
 
334
- #: dist/visual-portfolio/classes/class-admin.php:1192, dist/visual-portfolio/classes/class-admin.php:1233, dist/visual-portfolio/classes/class-admin.php:1274
335
  msgid "Overlay background color"
336
  msgstr ""
337
 
338
- #: dist/visual-portfolio/classes/class-admin.php:1205, dist/visual-portfolio/classes/class-admin.php:1246, dist/visual-portfolio/classes/class-admin.php:1287
339
  msgid "Overlay text color"
340
  msgstr ""
341
 
342
- #: dist/visual-portfolio/classes/class-admin.php:1221
343
  msgid "Emerge"
344
  msgstr ""
345
 
346
- #: dist/visual-portfolio/classes/class-admin.php:1329
347
  msgid "Show title"
348
  msgstr ""
349
 
350
- #: dist/visual-portfolio/classes/class-admin.php:1337
351
  msgid "Show categories"
352
  msgstr ""
353
 
354
- #: dist/visual-portfolio/classes/class-admin.php:1343
355
  msgid "Categories count"
356
  msgstr ""
357
 
358
- #: dist/visual-portfolio/classes/class-admin.php:1358
359
  msgid "Show date"
360
  msgstr ""
361
 
362
- #: dist/visual-portfolio/classes/class-admin.php:1363
363
  msgid "Show"
364
  msgstr ""
365
 
366
- #: dist/visual-portfolio/classes/class-admin.php:1364
367
  msgid "Human Format"
368
  msgstr ""
369
 
370
- #: dist/visual-portfolio/classes/class-admin.php:1372
371
  msgid ""
372
  "Date format
373
  " Example: F j, Y"
374
  msgstr ""
375
 
376
- #: dist/visual-portfolio/classes/class-admin.php:1384
377
  msgid "Show excerpt"
378
  msgstr ""
379
 
380
- #: dist/visual-portfolio/classes/class-admin.php:1390
381
  msgid "Excerpt words count"
382
  msgstr ""
383
 
384
- #: dist/visual-portfolio/classes/class-admin.php:1405
385
  msgid "Show icon"
386
  msgstr ""
387
 
388
- #: dist/visual-portfolio/classes/class-admin.php:1413, dist/visual-portfolio/classes/class-admin.php:1414
389
  msgid "Standard icon"
390
  msgstr ""
391
 
392
- #: dist/visual-portfolio/classes/class-admin.php:1426, dist/visual-portfolio/classes/class-admin.php:1427
393
  msgid "Video icon"
394
  msgstr ""
395
 
396
- #: dist/visual-portfolio/classes/class-admin.php:1439
397
  msgid "Caption align"
398
  msgstr ""
399
 
400
- #: dist/visual-portfolio/classes/class-admin.php:1492, dist/visual-portfolio/classes/class-admin.php:1504, dist/visual-portfolio/classes/class-admin.php:1621
401
  msgid "Disabled"
402
  msgstr ""
403
 
404
- #: dist/visual-portfolio/classes/class-admin.php:1493, dist/visual-portfolio/classes/class-controls.php:619
405
  msgid "URL"
406
  msgstr ""
407
 
408
- #: dist/visual-portfolio/classes/class-admin.php:1494, dist/visual-portfolio/classes/class-settings.php:104
409
  msgid "Popup Gallery"
410
  msgstr ""
411
 
412
- #: dist/visual-portfolio/classes/class-admin.php:1565, dist/visual-portfolio/classes/class-admin.php:1723
413
  msgid "Align"
414
  msgstr ""
415
 
416
- #: dist/visual-portfolio/classes/class-admin.php:1569, dist/visual-portfolio/classes/class-admin.php:1727, dist/visual-portfolio/classes/class-controls.php:529, dist/visual-portfolio/classes/class-controls.php:538, dist/visual-portfolio/classes/class-controls.php:542, dist/visual-portfolio/classes/class-controls.php:555
417
  msgid "Center"
418
  msgstr ""
419
 
420
- #: dist/visual-portfolio/classes/class-admin.php:1570, dist/visual-portfolio/classes/class-admin.php:1728, dist/visual-portfolio/classes/class-controls.php:532, dist/visual-portfolio/classes/class-controls.php:545, dist/visual-portfolio/classes/class-controls.php:558
421
  msgid "Left"
422
  msgstr ""
423
 
424
- #: dist/visual-portfolio/classes/class-admin.php:1571, dist/visual-portfolio/classes/class-admin.php:1729, dist/visual-portfolio/classes/class-controls.php:535, dist/visual-portfolio/classes/class-controls.php:548, dist/visual-portfolio/classes/class-controls.php:561
425
  msgid "Right"
426
  msgstr ""
427
 
428
- #: dist/visual-portfolio/classes/class-admin.php:1586
429
  msgid "Show count"
430
  msgstr ""
431
 
432
- #: dist/visual-portfolio/classes/class-admin.php:1602
433
  msgid "All button text"
434
  msgstr ""
435
 
436
- #: dist/visual-portfolio/classes/class-admin.php:1604
437
  msgid "All"
438
  msgstr ""
439
 
440
- #: dist/visual-portfolio/classes/class-admin.php:1686
441
  msgid "Paged"
442
  msgstr ""
443
 
444
- #: dist/visual-portfolio/classes/class-admin.php:1687
445
  msgid "Load More"
446
  msgstr ""
447
 
448
- #: dist/visual-portfolio/classes/class-admin.php:1688
449
  msgid "Infinite"
450
  msgstr ""
451
 
452
- #: dist/visual-portfolio/classes/class-admin.php:1703
453
  msgid "Note: you will see the \"Load More\" pagination in the preview. \"Infinite\" pagination will be visible on the site."
454
  msgstr ""
455
 
456
- #: dist/visual-portfolio/classes/class-admin.php:1749, dist/visual-portfolio/classes/class-admin.php:1769
457
  msgid "Texts"
458
  msgstr ""
459
 
460
- #: dist/visual-portfolio/classes/class-admin.php:1790, dist/visual-portfolio/classes/class-admin.php:1859
461
  msgid "Load more"
462
  msgstr ""
463
 
464
- #: dist/visual-portfolio/classes/class-admin.php:1791, dist/visual-portfolio/classes/class-admin.php:1792, dist/visual-portfolio/classes/class-admin.php:1860, dist/visual-portfolio/classes/class-admin.php:1861
465
  msgid "Load more button label"
466
  msgstr ""
467
 
468
- #: dist/visual-portfolio/classes/class-admin.php:1813, dist/visual-portfolio/classes/class-admin.php:1882
469
  msgid "Loading more..."
470
  msgstr ""
471
 
472
- #: dist/visual-portfolio/classes/class-admin.php:1814, dist/visual-portfolio/classes/class-admin.php:1815, dist/visual-portfolio/classes/class-admin.php:1883, dist/visual-portfolio/classes/class-admin.php:1884
473
  msgid "Loading more button label"
474
  msgstr ""
475
 
476
- #: dist/visual-portfolio/classes/class-admin.php:1836, dist/visual-portfolio/classes/class-admin.php:1905
477
  msgid "You’ve reached the end of the list"
478
  msgstr ""
479
 
480
- #: dist/visual-portfolio/classes/class-admin.php:1837, dist/visual-portfolio/classes/class-admin.php:1838, dist/visual-portfolio/classes/class-admin.php:1906, dist/visual-portfolio/classes/class-admin.php:1907
481
  msgid "End of the list text"
482
  msgstr ""
483
 
484
- #: dist/visual-portfolio/classes/class-admin.php:1997
485
  msgid "Show numbers"
486
  msgstr ""
487
 
488
- #: dist/visual-portfolio/classes/class-admin.php:2061
489
  msgid "Data source"
490
  msgstr ""
491
 
492
- #: dist/visual-portfolio/classes/class-admin.php:2073
493
  msgid "Specific posts"
494
  msgstr ""
495
 
496
- #: dist/visual-portfolio/classes/class-admin.php:2094
497
  msgid "Excluded posts"
498
  msgstr ""
499
 
500
- #: dist/visual-portfolio/classes/class-admin.php:2122
501
  msgid "Custom query"
502
  msgstr ""
503
 
504
  #. translators: %1$s - escaped url.
505
- #: dist/visual-portfolio/classes/class-admin.php:2124
506
  msgid "Build custom query according to <a href=\"%1$s\">WordPress Codex</a>."
507
  msgstr ""
508
 
509
- #: dist/visual-portfolio/classes/class-admin.php:2150
510
  msgid "Taxonomies"
511
  msgstr ""
512
 
513
- #: dist/visual-portfolio/classes/class-admin.php:2177
514
  msgid "Taxonomies relation"
515
  msgstr ""
516
 
517
- #: dist/visual-portfolio/classes/class-admin.php:2181
518
  msgid "OR"
519
  msgstr ""
520
 
521
- #: dist/visual-portfolio/classes/class-admin.php:2182
522
  msgid "AND"
523
  msgstr ""
524
 
525
- #: dist/visual-portfolio/classes/class-admin.php:2203
526
  msgid "Order by"
527
  msgstr ""
528
 
529
- #: dist/visual-portfolio/classes/class-admin.php:2207
530
  msgid "Date"
531
  msgstr ""
532
 
533
- #: dist/visual-portfolio/classes/class-admin.php:2208, dist/visual-portfolio/classes/class-controls.php:580
534
  msgid "Title"
535
  msgstr ""
536
 
537
- #: dist/visual-portfolio/classes/class-admin.php:2209
538
  msgid "ID"
539
  msgstr ""
540
 
541
- #: dist/visual-portfolio/classes/class-admin.php:2210
542
  msgid "Random"
543
  msgstr ""
544
 
545
- #: dist/visual-portfolio/classes/class-admin.php:2219
546
  msgid "Order direction"
547
  msgstr ""
548
 
549
- #: dist/visual-portfolio/classes/class-admin.php:2223
550
  msgid "DESC"
551
  msgstr ""
552
 
553
- #: dist/visual-portfolio/classes/class-admin.php:2224
554
  msgid "ASC"
555
  msgstr ""
556
 
557
- #: dist/visual-portfolio/classes/class-admin.php:2259
558
  msgid "Name & Shortcode"
559
  msgstr ""
560
 
561
- #: dist/visual-portfolio/classes/class-admin.php:2267
562
  msgid "Layout"
563
  msgstr ""
564
 
565
- #: dist/visual-portfolio/classes/class-admin.php:2275
566
  msgid "Items Style"
567
  msgstr ""
568
 
569
- #: dist/visual-portfolio/classes/class-admin.php:2283
570
  msgid "Items Click Action"
571
  msgstr ""
572
 
573
- #: dist/visual-portfolio/classes/class-admin.php:2291
574
  msgid "Filter"
575
  msgstr ""
576
 
577
- #: dist/visual-portfolio/classes/class-admin.php:2299
578
  msgid "Pagination"
579
  msgstr ""
580
 
581
- #: dist/visual-portfolio/classes/class-admin.php:2308
582
  msgid "Preview"
583
  msgstr ""
584
 
585
- #: dist/visual-portfolio/classes/class-admin.php:2316
586
  msgid "Content Source"
587
  msgstr ""
588
 
589
- #: dist/visual-portfolio/classes/class-admin.php:2324
590
  msgid "Custom CSS"
591
  msgstr ""
592
 
593
- #: dist/visual-portfolio/classes/class-admin.php:2343
594
  msgid "Name"
595
  msgstr ""
596
 
597
- #: dist/visual-portfolio/classes/class-admin.php:2353
598
  msgid "Place the shortcode where you want to show the portfolio list."
599
  msgstr ""
600
 
601
- #: dist/visual-portfolio/classes/class-admin.php:2419
602
  msgid "Filter Shortcode"
603
  msgstr ""
604
 
605
- #: dist/visual-portfolio/classes/class-admin.php:2420
606
  msgid "Place the shortcode where you want to show the filter."
607
  msgstr ""
608
 
609
- #: dist/visual-portfolio/classes/class-admin.php:2487
610
  msgid "Portfolio"
611
  msgstr ""
612
 
613
- #: dist/visual-portfolio/classes/class-admin.php:2493
614
  msgid "Post-Based"
615
  msgstr ""
616
 
617
- #: dist/visual-portfolio/classes/class-admin.php:2499
618
  msgid "Images"
619
  msgstr ""
620
 
621
  #. translators: %1$s - escaped url.
622
- #: dist/visual-portfolio/classes/class-admin.php:2518
623
  msgid "Portfolio items list from <a href=\"%1$s\" target=\"_blank\">%2$s</a>"
624
  msgstr ""
625
 
626
- #: dist/visual-portfolio/classes/class-admin.php:2554
627
  msgid "Available classes:"
628
  msgstr ""
629
 
630
- #: dist/visual-portfolio/classes/class-admin.php:2557
631
  msgid " - use this classname for each styles you added. It is the main Visual Portfolio wrapper."
632
  msgstr ""
633
 
634
- #: dist/visual-portfolio/classes/class-admin.php:2558
635
  msgid " - items wrapper."
636
  msgstr ""
637
 
638
- #: dist/visual-portfolio/classes/class-admin.php:2559
639
  msgid " - single item wrapper."
640
  msgstr ""
641
 
642
- #: dist/visual-portfolio/classes/class-admin.php:2560
643
  msgid " - filter wrapper."
644
  msgstr ""
645
 
646
- #: dist/visual-portfolio/classes/class-admin.php:2561
647
  msgid " - pagination wrapper."
648
  msgstr ""
649
 
650
- #: dist/visual-portfolio/classes/class-admin.php:2621
651
  msgid "Specific Posts"
652
  msgstr ""
653
 
654
- #: dist/visual-portfolio/classes/class-admin.php:2622
655
  msgid "Custom Query"
656
  msgstr ""
657
 
167
  msgid "Thumbnail"
168
  msgstr ""
169
 
170
+ #: dist/visual-portfolio/classes/class-admin.php:592, dist/visual-portfolio/classes/class-admin.php:2361
171
  msgid "Shortcode"
172
  msgstr ""
173
 
174
+ #: dist/visual-portfolio/classes/class-admin.php:685, dist/visual-portfolio/classes/class-admin.php:686
175
+ msgid "Documentation"
176
+ msgstr ""
177
+
178
+ #: dist/visual-portfolio/classes/class-admin.php:702
179
  msgid "Tiles"
180
  msgstr ""
181
 
182
+ #: dist/visual-portfolio/classes/class-admin.php:717, dist/visual-portfolio/classes/class-admin.php:1690
183
  msgid "Type"
184
  msgstr ""
185
 
186
+ #: dist/visual-portfolio/classes/class-admin.php:718
187
  msgid "Select tiles type"
188
  msgstr ""
189
 
190
+ #: dist/visual-portfolio/classes/class-admin.php:837
191
  msgid "Masonry"
192
  msgstr ""
193
 
194
+ #: dist/visual-portfolio/classes/class-admin.php:841
195
  msgid "Columns"
196
  msgstr ""
197
 
198
+ #: dist/visual-portfolio/classes/class-admin.php:852
199
  msgid "Justified"
200
  msgstr ""
201
 
202
+ #: dist/visual-portfolio/classes/class-admin.php:856
203
  msgid "Row height"
204
  msgstr ""
205
 
206
+ #: dist/visual-portfolio/classes/class-admin.php:864
207
  msgid "Row height tolerance"
208
  msgstr ""
209
 
210
+ #: dist/visual-portfolio/classes/class-admin.php:876
211
  msgid "Slider"
212
  msgstr ""
213
 
214
+ #: dist/visual-portfolio/classes/class-admin.php:880
215
  msgid "Effect"
216
  msgstr ""
217
 
218
+ #: dist/visual-portfolio/classes/class-admin.php:884
219
  msgid "Slide"
220
  msgstr ""
221
 
222
+ #: dist/visual-portfolio/classes/class-admin.php:885
223
  msgid "Coverflow"
224
  msgstr ""
225
 
226
+ #: dist/visual-portfolio/classes/class-admin.php:886, dist/visual-portfolio/classes/class-admin.php:1271
227
  msgid "Fade"
228
  msgstr ""
229
 
230
+ #: dist/visual-portfolio/classes/class-admin.php:891
231
  msgid "Speed (seconds)"
232
  msgstr ""
233
 
234
+ #: dist/visual-portfolio/classes/class-admin.php:900
235
  msgid "Autoplay (seconds)"
236
  msgstr ""
237
 
238
+ #: dist/visual-portfolio/classes/class-admin.php:909
239
  msgid "Items height"
240
  msgstr ""
241
 
242
+ #: dist/visual-portfolio/classes/class-admin.php:913, dist/visual-portfolio/classes/class-admin.php:952
243
  msgid "Auto"
244
  msgstr ""
245
 
246
+ #: dist/visual-portfolio/classes/class-admin.php:914
247
  msgid "Static (px)"
248
  msgstr ""
249
 
250
+ #: dist/visual-portfolio/classes/class-admin.php:915
251
  msgid "Dynamic (%)"
252
  msgstr ""
253
 
254
+ #: dist/visual-portfolio/classes/class-admin.php:948
255
  msgid "Slides per view"
256
  msgstr ""
257
 
258
+ #: dist/visual-portfolio/classes/class-admin.php:953
259
  msgid "Custom"
260
  msgstr ""
261
 
262
+ #: dist/visual-portfolio/classes/class-admin.php:984
263
  msgid "Centered slides"
264
  msgstr ""
265
 
266
+ #: dist/visual-portfolio/classes/class-admin.php:997
267
  msgid "Loop"
268
  msgstr ""
269
 
270
+ #: dist/visual-portfolio/classes/class-admin.php:1003
271
  msgid "Free scroll"
272
  msgstr ""
273
 
274
+ #: dist/visual-portfolio/classes/class-admin.php:1009, dist/visual-portfolio/classes/class-admin.php:1936, dist/visual-portfolio/classes/class-settings.php:146
275
  msgid "Show arrows"
276
  msgstr ""
277
 
278
+ #: dist/visual-portfolio/classes/class-admin.php:1017, dist/visual-portfolio/classes/class-admin.php:1018, dist/visual-portfolio/classes/class-admin.php:1958, dist/visual-portfolio/classes/class-admin.php:1959
279
  msgid "Prev arrow icon"
280
  msgstr ""
281
 
282
+ #: dist/visual-portfolio/classes/class-admin.php:1030, dist/visual-portfolio/classes/class-admin.php:1031, dist/visual-portfolio/classes/class-admin.php:1983, dist/visual-portfolio/classes/class-admin.php:1984
283
  msgid "Next arrow icon"
284
  msgstr ""
285
 
286
+ #: dist/visual-portfolio/classes/class-admin.php:1041
287
  msgid "Show bullets"
288
  msgstr ""
289
 
290
+ #: dist/visual-portfolio/classes/class-admin.php:1047
291
  msgid "Dynamic bullets"
292
  msgstr ""
293
 
294
+ #: dist/visual-portfolio/classes/class-admin.php:1110
295
  msgid "Gap"
296
  msgstr ""
297
 
298
+ #: dist/visual-portfolio/classes/class-admin.php:1122
299
  msgid "Items per page"
300
  msgstr ""
301
 
302
+ #: dist/visual-portfolio/classes/class-admin.php:1134
303
  msgid "Stretch"
304
  msgstr ""
305
 
306
+ #: dist/visual-portfolio/classes/class-admin.php:1137
307
  msgid "Break container and display it wide"
308
  msgstr ""
309
 
310
+ #: dist/visual-portfolio/classes/class-admin.php:1148, dist/visual-portfolio/classes/class-admin.php:1519, dist/visual-portfolio/classes/class-admin.php:1636
311
  msgid "Default"
312
  msgstr ""
313
 
314
+ #: dist/visual-portfolio/classes/class-admin.php:1160
315
  msgid "Show Read more button"
316
  msgstr ""
317
 
318
+ #: dist/visual-portfolio/classes/class-admin.php:1164, dist/visual-portfolio/classes/class-admin.php:1371
319
  msgid "False"
320
  msgstr ""
321
 
322
+ #: dist/visual-portfolio/classes/class-admin.php:1165
323
  msgid "Always show"
324
  msgstr ""
325
 
326
+ #: dist/visual-portfolio/classes/class-admin.php:1166
327
  msgid "Show when used \"More tag\" in the post"
328
  msgstr ""
329
 
330
+ #: dist/visual-portfolio/classes/class-admin.php:1174
331
  msgid "Read more button label"
332
  msgstr ""
333
 
334
+ #: dist/visual-portfolio/classes/class-admin.php:1189
335
  msgid "Fly"
336
  msgstr ""
337
 
338
+ #: dist/visual-portfolio/classes/class-admin.php:1201, dist/visual-portfolio/classes/class-admin.php:1242, dist/visual-portfolio/classes/class-admin.php:1283
339
  msgid "Overlay background color"
340
  msgstr ""
341
 
342
+ #: dist/visual-portfolio/classes/class-admin.php:1214, dist/visual-portfolio/classes/class-admin.php:1255, dist/visual-portfolio/classes/class-admin.php:1296
343
  msgid "Overlay text color"
344
  msgstr ""
345
 
346
+ #: dist/visual-portfolio/classes/class-admin.php:1230
347
  msgid "Emerge"
348
  msgstr ""
349
 
350
+ #: dist/visual-portfolio/classes/class-admin.php:1338
351
  msgid "Show title"
352
  msgstr ""
353
 
354
+ #: dist/visual-portfolio/classes/class-admin.php:1346
355
  msgid "Show categories"
356
  msgstr ""
357
 
358
+ #: dist/visual-portfolio/classes/class-admin.php:1352
359
  msgid "Categories count"
360
  msgstr ""
361
 
362
+ #: dist/visual-portfolio/classes/class-admin.php:1367
363
  msgid "Show date"
364
  msgstr ""
365
 
366
+ #: dist/visual-portfolio/classes/class-admin.php:1372
367
  msgid "Show"
368
  msgstr ""
369
 
370
+ #: dist/visual-portfolio/classes/class-admin.php:1373
371
  msgid "Human Format"
372
  msgstr ""
373
 
374
+ #: dist/visual-portfolio/classes/class-admin.php:1381
375
  msgid ""
376
  "Date format
377
  " Example: F j, Y"
378
  msgstr ""
379
 
380
+ #: dist/visual-portfolio/classes/class-admin.php:1393
381
  msgid "Show excerpt"
382
  msgstr ""
383
 
384
+ #: dist/visual-portfolio/classes/class-admin.php:1399
385
  msgid "Excerpt words count"
386
  msgstr ""
387
 
388
+ #: dist/visual-portfolio/classes/class-admin.php:1414
389
  msgid "Show icon"
390
  msgstr ""
391
 
392
+ #: dist/visual-portfolio/classes/class-admin.php:1422, dist/visual-portfolio/classes/class-admin.php:1423
393
  msgid "Standard icon"
394
  msgstr ""
395
 
396
+ #: dist/visual-portfolio/classes/class-admin.php:1435, dist/visual-portfolio/classes/class-admin.php:1436
397
  msgid "Video icon"
398
  msgstr ""
399
 
400
+ #: dist/visual-portfolio/classes/class-admin.php:1448
401
  msgid "Caption align"
402
  msgstr ""
403
 
404
+ #: dist/visual-portfolio/classes/class-admin.php:1501, dist/visual-portfolio/classes/class-admin.php:1513, dist/visual-portfolio/classes/class-admin.php:1630
405
  msgid "Disabled"
406
  msgstr ""
407
 
408
+ #: dist/visual-portfolio/classes/class-admin.php:1502, dist/visual-portfolio/classes/class-controls.php:619
409
  msgid "URL"
410
  msgstr ""
411
 
412
+ #: dist/visual-portfolio/classes/class-admin.php:1503, dist/visual-portfolio/classes/class-settings.php:104
413
  msgid "Popup Gallery"
414
  msgstr ""
415
 
416
+ #: dist/visual-portfolio/classes/class-admin.php:1574, dist/visual-portfolio/classes/class-admin.php:1732
417
  msgid "Align"
418
  msgstr ""
419
 
420
+ #: dist/visual-portfolio/classes/class-admin.php:1578, dist/visual-portfolio/classes/class-admin.php:1736, dist/visual-portfolio/classes/class-controls.php:529, dist/visual-portfolio/classes/class-controls.php:538, dist/visual-portfolio/classes/class-controls.php:542, dist/visual-portfolio/classes/class-controls.php:555
421
  msgid "Center"
422
  msgstr ""
423
 
424
+ #: dist/visual-portfolio/classes/class-admin.php:1579, dist/visual-portfolio/classes/class-admin.php:1737, dist/visual-portfolio/classes/class-controls.php:532, dist/visual-portfolio/classes/class-controls.php:545, dist/visual-portfolio/classes/class-controls.php:558
425
  msgid "Left"
426
  msgstr ""
427
 
428
+ #: dist/visual-portfolio/classes/class-admin.php:1580, dist/visual-portfolio/classes/class-admin.php:1738, dist/visual-portfolio/classes/class-controls.php:535, dist/visual-portfolio/classes/class-controls.php:548, dist/visual-portfolio/classes/class-controls.php:561
429
  msgid "Right"
430
  msgstr ""
431
 
432
+ #: dist/visual-portfolio/classes/class-admin.php:1595
433
  msgid "Show count"
434
  msgstr ""
435
 
436
+ #: dist/visual-portfolio/classes/class-admin.php:1611
437
  msgid "All button text"
438
  msgstr ""
439
 
440
+ #: dist/visual-portfolio/classes/class-admin.php:1613
441
  msgid "All"
442
  msgstr ""
443
 
444
+ #: dist/visual-portfolio/classes/class-admin.php:1695
445
  msgid "Paged"
446
  msgstr ""
447
 
448
+ #: dist/visual-portfolio/classes/class-admin.php:1696
449
  msgid "Load More"
450
  msgstr ""
451
 
452
+ #: dist/visual-portfolio/classes/class-admin.php:1697
453
  msgid "Infinite"
454
  msgstr ""
455
 
456
+ #: dist/visual-portfolio/classes/class-admin.php:1712
457
  msgid "Note: you will see the \"Load More\" pagination in the preview. \"Infinite\" pagination will be visible on the site."
458
  msgstr ""
459
 
460
+ #: dist/visual-portfolio/classes/class-admin.php:1758, dist/visual-portfolio/classes/class-admin.php:1778
461
  msgid "Texts"
462
  msgstr ""
463
 
464
+ #: dist/visual-portfolio/classes/class-admin.php:1799, dist/visual-portfolio/classes/class-admin.php:1868
465
  msgid "Load more"
466
  msgstr ""
467
 
468
+ #: dist/visual-portfolio/classes/class-admin.php:1800, dist/visual-portfolio/classes/class-admin.php:1801, dist/visual-portfolio/classes/class-admin.php:1869, dist/visual-portfolio/classes/class-admin.php:1870
469
  msgid "Load more button label"
470
  msgstr ""
471
 
472
+ #: dist/visual-portfolio/classes/class-admin.php:1822, dist/visual-portfolio/classes/class-admin.php:1891
473
  msgid "Loading more..."
474
  msgstr ""
475
 
476
+ #: dist/visual-portfolio/classes/class-admin.php:1823, dist/visual-portfolio/classes/class-admin.php:1824, dist/visual-portfolio/classes/class-admin.php:1892, dist/visual-portfolio/classes/class-admin.php:1893
477
  msgid "Loading more button label"
478
  msgstr ""
479
 
480
+ #: dist/visual-portfolio/classes/class-admin.php:1845, dist/visual-portfolio/classes/class-admin.php:1914
481
  msgid "You’ve reached the end of the list"
482
  msgstr ""
483
 
484
+ #: dist/visual-portfolio/classes/class-admin.php:1846, dist/visual-portfolio/classes/class-admin.php:1847, dist/visual-portfolio/classes/class-admin.php:1915, dist/visual-portfolio/classes/class-admin.php:1916
485
  msgid "End of the list text"
486
  msgstr ""
487
 
488
+ #: dist/visual-portfolio/classes/class-admin.php:2006
489
  msgid "Show numbers"
490
  msgstr ""
491
 
492
+ #: dist/visual-portfolio/classes/class-admin.php:2070
493
  msgid "Data source"
494
  msgstr ""
495
 
496
+ #: dist/visual-portfolio/classes/class-admin.php:2082
497
  msgid "Specific posts"
498
  msgstr ""
499
 
500
+ #: dist/visual-portfolio/classes/class-admin.php:2103
501
  msgid "Excluded posts"
502
  msgstr ""
503
 
504
+ #: dist/visual-portfolio/classes/class-admin.php:2131
505
  msgid "Custom query"
506
  msgstr ""
507
 
508
  #. translators: %1$s - escaped url.
509
+ #: dist/visual-portfolio/classes/class-admin.php:2133
510
  msgid "Build custom query according to <a href=\"%1$s\">WordPress Codex</a>."
511
  msgstr ""
512
 
513
+ #: dist/visual-portfolio/classes/class-admin.php:2159
514
  msgid "Taxonomies"
515
  msgstr ""
516
 
517
+ #: dist/visual-portfolio/classes/class-admin.php:2186
518
  msgid "Taxonomies relation"
519
  msgstr ""
520
 
521
+ #: dist/visual-portfolio/classes/class-admin.php:2190
522
  msgid "OR"
523
  msgstr ""
524
 
525
+ #: dist/visual-portfolio/classes/class-admin.php:2191
526
  msgid "AND"
527
  msgstr ""
528
 
529
+ #: dist/visual-portfolio/classes/class-admin.php:2212
530
  msgid "Order by"
531
  msgstr ""
532
 
533
+ #: dist/visual-portfolio/classes/class-admin.php:2216
534
  msgid "Date"
535
  msgstr ""
536
 
537
+ #: dist/visual-portfolio/classes/class-admin.php:2217, dist/visual-portfolio/classes/class-controls.php:580
538
  msgid "Title"
539
  msgstr ""
540
 
541
+ #: dist/visual-portfolio/classes/class-admin.php:2218
542
  msgid "ID"
543
  msgstr ""
544
 
545
+ #: dist/visual-portfolio/classes/class-admin.php:2219
546
  msgid "Random"
547
  msgstr ""
548
 
549
+ #: dist/visual-portfolio/classes/class-admin.php:2228
550
  msgid "Order direction"
551
  msgstr ""
552
 
553
+ #: dist/visual-portfolio/classes/class-admin.php:2232
554
  msgid "DESC"
555
  msgstr ""
556
 
557
+ #: dist/visual-portfolio/classes/class-admin.php:2233
558
  msgid "ASC"
559
  msgstr ""
560
 
561
+ #: dist/visual-portfolio/classes/class-admin.php:2268
562
  msgid "Name & Shortcode"
563
  msgstr ""
564
 
565
+ #: dist/visual-portfolio/classes/class-admin.php:2276
566
  msgid "Layout"
567
  msgstr ""
568
 
569
+ #: dist/visual-portfolio/classes/class-admin.php:2284
570
  msgid "Items Style"
571
  msgstr ""
572
 
573
+ #: dist/visual-portfolio/classes/class-admin.php:2292
574
  msgid "Items Click Action"
575
  msgstr ""
576
 
577
+ #: dist/visual-portfolio/classes/class-admin.php:2300
578
  msgid "Filter"
579
  msgstr ""
580
 
581
+ #: dist/visual-portfolio/classes/class-admin.php:2308
582
  msgid "Pagination"
583
  msgstr ""
584
 
585
+ #: dist/visual-portfolio/classes/class-admin.php:2317
586
  msgid "Preview"
587
  msgstr ""
588
 
589
+ #: dist/visual-portfolio/classes/class-admin.php:2325
590
  msgid "Content Source"
591
  msgstr ""
592
 
593
+ #: dist/visual-portfolio/classes/class-admin.php:2333
594
  msgid "Custom CSS"
595
  msgstr ""
596
 
597
+ #: dist/visual-portfolio/classes/class-admin.php:2352
598
  msgid "Name"
599
  msgstr ""
600
 
601
+ #: dist/visual-portfolio/classes/class-admin.php:2362
602
  msgid "Place the shortcode where you want to show the portfolio list."
603
  msgstr ""
604
 
605
+ #: dist/visual-portfolio/classes/class-admin.php:2428
606
  msgid "Filter Shortcode"
607
  msgstr ""
608
 
609
+ #: dist/visual-portfolio/classes/class-admin.php:2429
610
  msgid "Place the shortcode where you want to show the filter."
611
  msgstr ""
612
 
613
+ #: dist/visual-portfolio/classes/class-admin.php:2496
614
  msgid "Portfolio"
615
  msgstr ""
616
 
617
+ #: dist/visual-portfolio/classes/class-admin.php:2502
618
  msgid "Post-Based"
619
  msgstr ""
620
 
621
+ #: dist/visual-portfolio/classes/class-admin.php:2508
622
  msgid "Images"
623
  msgstr ""
624
 
625
  #. translators: %1$s - escaped url.
626
+ #: dist/visual-portfolio/classes/class-admin.php:2527
627
  msgid "Portfolio items list from <a href=\"%1$s\" target=\"_blank\">%2$s</a>"
628
  msgstr ""
629
 
630
+ #: dist/visual-portfolio/classes/class-admin.php:2563
631
  msgid "Available classes:"
632
  msgstr ""
633
 
634
+ #: dist/visual-portfolio/classes/class-admin.php:2566
635
  msgid " - use this classname for each styles you added. It is the main Visual Portfolio wrapper."
636
  msgstr ""
637
 
638
+ #: dist/visual-portfolio/classes/class-admin.php:2567
639
  msgid " - items wrapper."
640
  msgstr ""
641
 
642
+ #: dist/visual-portfolio/classes/class-admin.php:2568
643
  msgid " - single item wrapper."
644
  msgstr ""
645
 
646
+ #: dist/visual-portfolio/classes/class-admin.php:2569
647
  msgid " - filter wrapper."
648
  msgstr ""
649
 
650
+ #: dist/visual-portfolio/classes/class-admin.php:2570
651
  msgid " - pagination wrapper."
652
  msgstr ""
653
 
654
+ #: dist/visual-portfolio/classes/class-admin.php:2630
655
  msgid "Specific Posts"
656
  msgstr ""
657
 
658
+ #: dist/visual-portfolio/classes/class-admin.php:2631
659
  msgid "Custom Query"
660
  msgstr ""
661
 
readme.md CHANGED
@@ -1,23 +1,24 @@
1
  # Visual Portfolio #
 
2
  * Contributors: nko
3
  * Tags: portfolio, gallery, works, masonry, popup
4
  * Requires at least: 4.0.0
5
  * Tested up to: 4.9
6
  * Requires PHP: 5.4
7
- * Stable tag: 1.7.1
8
  * License: GPLv2 or later
9
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
11
  Portfolio layouts visual editor. Masonry, justified, tiles, carousel, slider, coverflow, custom posts, custom images.
12
 
13
-
14
  ## Description ##
15
 
16
- Visual Portfolio editor let you create beautiful portfolio layouts. Generates shortcode to show portfolio or any custom post types using Masonry, Justified, Tiles or Carousel layouts.
17
 
18
- #### Links ####
19
 
20
- * [Live Demo](https://demo.nkdev.info/#visual-portfolio)
 
21
  * [GitHub](https://github.com/nk-o/visual-portfolio)
22
 
23
  ## Features ##
@@ -25,15 +26,15 @@ Visual Portfolio editor let you create beautiful portfolio layouts. Generates sh
25
  * Visual preview for portfolio layouts shortcode builder
26
  * Templates for theme developers
27
  * 4 predefined layouts:
28
- * Masonry
29
- * Justified (Flickr)
30
- * Tiles
31
- * Slider (+ Carousel, Coverflow)
32
  * 3 predefined hover effects:
33
- * Fade
34
- * Emerge
35
- * Fly
36
- * Default (no hover effect)
37
  * Infinite Scroll
38
  * Load More
39
  * Paged layouts
@@ -43,23 +44,20 @@ Visual Portfolio editor let you create beautiful portfolio layouts. Generates sh
43
  * Stretch option (if you want to break the fixed container of the page)
44
  * Custom image sets
45
  * Custom posts type layouts (not only portfolio)
46
- * Posts by type
47
- * Posts by specific ID
48
- * Posts by taxonomies
49
- * Custom order
50
  * Custom CSS for each portfolio layouts
51
  * Shortcode generated, so you can place unlimited portfolio layouts on the page
52
  * Gutenberg WordPress builder supported
53
  * WPBakery Page Builder page builder supported
54
 
55
-
56
  ## Real Examples ##
57
 
58
  * [Piroll - Portfolio Theme](https://demo.nkdev.info/#piroll)
59
  * [Snow - Portfolio Theme](https://demo.nkdev.info/#snow)
60
 
61
-
62
-
63
  ## Screenshots ##
64
 
65
  1. Visual Portfolio builder p.1
@@ -77,362 +75,55 @@ Visual Portfolio editor let you create beautiful portfolio layouts. Generates sh
77
  13. Example: Tiles + Popup gallery
78
  14. Example: Popup Gallery
79
 
80
-
81
-
82
  ## Installation ##
83
 
84
- #### Automatic installation ####
85
 
86
  Automatic installation is the easiest option as WordPress handles the file transfers itself and you don’t need to leave your web browser. To do an automatic install of Visual Portfolio, log in to your WordPress dashboard, navigate to the Plugins menu and click Add New.
87
 
88
  In the search field type “Visual Portfolio” and click Search Plugins. Once you’ve found our plugin you can view details about it such as the point release, rating and description. Most importantly of course, you can install it by simply clicking “Install Now”.
89
 
90
- #### Manual installation ####
91
 
92
  The manual installation method involves downloading our Visual Portfolio plugin and uploading it to your webserver via your favourite FTP application. The WordPress codex contains [instructions on how to do this here](https://codex.wordpress.org/Managing_Plugins#Manual_Plugin_Installation).
93
 
94
-
95
  ## Frequently Asked Questions ##
96
 
97
  ### How to disable enqueued plugins (JS, CSS) on frontend ####
98
 
99
- There are some plugins, enqueued with Visual Portfolio on your page. If you don't like the plugin and/or want to change it to your alternate plugin, you can disable it using filters. Example:
100
-
101
- add_filter( 'vpf_enqueue_plugin_font_awesome', '__return_false' );
102
-
103
- Available filters:
104
-
105
- * **vpf_enqueue_plugin_isotope**
106
- * **vpf_enqueue_plugin_flickr_justified_gallery**
107
- * **vpf_enqueue_plugin_object_fit_images**
108
- * **vpf_enqueue_plugin_photoswipe**
109
- * **vpf_enqueue_plugin_swiper**
110
- * **vpf_enqueue_plugin_font_awesome**
111
- * **vpf_enqueue_plugin_font_lazysizes**
112
-
113
- Note: some functionality depends on these plugins and you may break the portfolio.
114
 
115
  ### How to use my custom taxonomy as filter ####
116
 
117
- There is available filer **vpf_allow_taxonomy_for_filter** that allow you to use custom taxonomy as filter. Example:
118
-
119
- add_filter( 'vpf_allow_taxonomy_for_filter', 'my_filter_vpf_allow_taxonomy_for_filter', 10, 2 );
120
-
121
- function my_filter_vpf_allow_taxonomy_for_filter( $allow, $taxonomy ) {
122
- if ( 'my_custom_taxonomy' === $taxonomy ) {
123
- $allow = true;
124
- }
125
- return $allow;
126
- }
127
 
128
  ### How to change default templates and styles ####
129
 
130
- You can copy files from the **/visual-portfolio/templates/** to your **YOUR_THEME/visual-portfolio/** folder and change php code and css files here.
131
 
132
  ### DEV: WP filters ####
133
 
134
- Visual Portfolio has several WP hooks that let you extend functionality.
135
-
136
- add_filter( 'vpf_get_layout_option', 'my_filter_vpf_get_layout_option', 10, 3 );
137
-
138
- function my_filter_vpf_get_layout_option( $value, $name, $post_id ) {
139
- var_dump( $value );
140
- var_dump( $name );
141
- var_dump( $post_id );
142
- return $value;
143
- }
144
-
145
- Available filters:
146
-
147
- * **vpf_include_template** [ $template, $template_name, $args ] - include php template.
148
- * **vpf_include_template_style** [ $template, $template_name, $deps, $ver, $media ] - include css template.
149
- * **vpf_get_layout_option** [ $value, $name, $post_id ] - get option for Layout.
150
- * **vpf_extend_portfolio_data_attributes** [ $attrs, $options ] - portfolio data attributes array.
151
- * **vpf_extend_portfolio_class** [ $class, $options ] - portfolio class string.
152
- * **vpf_extend_layouts** [ $layouts ] - custom layouts.
153
-
154
- add_filter( 'vpf_extend_layouts', 'my_filter_vpf_extend_layouts' );
155
-
156
- function my_filter_vpf_extend_layouts( $layouts ) {
157
- return array_merge( $layouts, array(
158
- 'new_layout' => array(
159
- 'title' => esc_html__( 'New Layout', 'text_domain' ),
160
- 'controls' => array(
161
- ... controls (read below) ...
162
- ),
163
- ),
164
- ) );
165
- }
166
-
167
- Note: On the portfolio will be added data attribute **[data-vp-layout="new_layout"]**, so you can play with it and use jQuery events to initialize the new layout.
168
-
169
- * **vpf_extend_items_styles** [ $items_styles ] - custom items styles.
170
-
171
- add_filter( 'vpf_extend_items_styles', 'my_filter_vpf_extend_items_styles' );
172
-
173
- function my_filter_vpf_extend_items_styles( $items_styles ) {
174
- return array_merge( $items_styles, array(
175
- 'new_items_style' => array(
176
- 'title' => esc_html__( 'New Items Style', 'visual-portfolio' ),
177
- 'builtin_controls' => array(
178
- 'show_title' => true,
179
- 'show_categories' => true,
180
- 'show_date' => true,
181
- 'show_excerpt' => true,
182
- 'show_icons' => false,
183
- 'align' => true,
184
- ),
185
- 'controls' => array(
186
- ... controls (read below) ...
187
- ),
188
- ),
189
- ) );
190
- }
191
-
192
- Note: Make sure that you added template in **your_theme/visual-portfolio/items-list/items-style/new_items_style**. See the structure of default templates to getting started.
193
-
194
- * **vpf_extend_filters** [ $filters ] - custom filters.
195
-
196
- add_filter( 'vpf_extend_filters', 'my_filter_vpf_extend_filters' );
197
-
198
- function my_filter_vpf_extend_filters( $filters ) {
199
- return array_merge( $filters, array(
200
- 'new_filter' => array(
201
- 'title' => esc_html__( 'New Filter', 'visual-portfolio' ),
202
- 'controls' => array(
203
- ... controls (read below) ...
204
- ),
205
- ),
206
- ) );
207
- }
208
-
209
- Note: Make sure that you added template in **your_theme/visual-portfolio/items-list/filter/new_filter**. See the structure of default templates to getting started.
210
-
211
- * **vpf_extend_pagination** [ $pagination ] - custom pagination.
212
-
213
- add_filter( 'vpf_extend_pagination', 'my_pagination_vpf_extend_pagination' );
214
-
215
- function my_pagination_vpf_extend_pagination( $pagination ) {
216
- return array_merge( $pagination, array(
217
- 'new_pagination' => array(
218
- 'title' => esc_html__( 'New Pagination', 'visual-portfolio' ),
219
- 'controls' => array(
220
- ... controls (read below) ...
221
- ),
222
- ),
223
- ) );
224
- }
225
-
226
- Note: Make sure that you added template in **your_theme/visual-portfolio/items-list/pagination/new_pagination**. See the structure of default templates to getting started.
227
 
228
  ### DEV: Controls ####
229
 
230
- These controls you can use in filers to extend Portfolio options (read **DEV: WP filters.** in FAQ).
231
-
232
- * The list of options, that available in all controls:
233
-
234
- array(
235
- // Control type. Full list you can find below.
236
- 'type' => 'text',
237
- 'label' => false,
238
- 'description' => false,
239
- 'name' => '',
240
- 'placeholder' => '',
241
- 'readonly' => false,
242
- 'default' => 'default value',
243
-
244
- // Use the function to getting value.
245
- 'value_callback' => '',
246
-
247
- // hint.
248
- 'hint' => false,
249
- 'hint_place' => 'top',
250
-
251
- // condition.
252
- 'condition' => array(
253
- /**
254
- * Array of arrays with data:
255
- * 'control' - control name.
256
- * 'operator' - operator (==, !==, >, <, >=, <=).
257
- * 'value' - condition value.
258
- */
259
- ),
260
-
261
- // custom styles.
262
- 'style' => array(
263
- array(
264
- 'element' => '.vp-portfolio__item-overlay',
265
- 'property' => 'background-color',
266
- ),
267
- ),
268
-
269
- 'class' => '',
270
- 'wrapper_class' => '',
271
- );
272
-
273
- * **text**
274
-
275
- array(
276
- 'type' => 'text',
277
- 'label' => esc_html__( 'Text field', 'visual-portfolio' ),
278
- 'description' => esc_html__( 'Text field description', 'visual-portfolio' ),
279
- 'name' => 'text_control_uniq_name',
280
- 'placeholder' => esc_html__( 'Text field placeholder', 'visual-portfolio' ),
281
- 'default' => 'default value',
282
-
283
- // hint.
284
- 'hint' => esc_html__( 'Text field hint', 'visual-portfolio' ),
285
- 'hint_place' => 'left',
286
- );
287
-
288
- * **hidden**
289
-
290
- array(
291
- 'type' => 'hidden',
292
- 'name' => 'hidden_control_uniq_name',
293
- 'default' => 'default value',
294
- );
295
-
296
- * **url**
297
-
298
- array(
299
- 'type' => 'url',
300
- 'label' => esc_html__( 'URL field', 'visual-portfolio' ),
301
- 'name' => 'url_control_uniq_name',
302
- 'default' => 'default value',
303
- );
304
-
305
- * **textarea**
306
-
307
- array(
308
- 'type' => 'textarea',
309
- 'label' => esc_html__( 'Textarea field', 'visual-portfolio' ),
310
- 'name' => 'textarea_control_uniq_name',
311
- 'default' => 'default value',
312
- 'cols' => 30,
313
- 'rows' => 10,
314
- );
315
-
316
- * **checkbox**
317
-
318
- array(
319
- 'type' => 'checkbox',
320
- 'label' => esc_html__( 'Checkbox field', 'visual-portfolio' ),
321
- 'name' => 'checkbox_control_uniq_name',
322
- 'default' => true,
323
- );
324
-
325
- * **toggle**
326
-
327
- array(
328
- 'type' => 'toggle',
329
- 'label' => esc_html__( 'Toggle field', 'visual-portfolio' ),
330
- 'name' => 'toggle_control_uniq_name',
331
- 'default' => true,
332
- );
333
-
334
- * **range**
335
-
336
- array(
337
- 'type' => 'range',
338
- 'label' => esc_html__( 'Range field', 'visual-portfolio' ),
339
- 'name' => 'range_control_uniq_name',
340
- 'min' => 1,
341
- 'max' => 15,
342
- 'step' => 1,
343
- 'default' => 5,
344
- );
345
-
346
- * **select2**
347
-
348
- array(
349
- 'type' => 'select2',
350
- 'label' => esc_html__( 'Select2 field', 'visual-portfolio' ),
351
- 'name' => 'select2_control_uniq_name',
352
- 'options' => array(
353
- 'val1' => esc_html__( 'Value 1', 'visual-portfolio' ),
354
- 'val2' => esc_html__( 'Value 2', 'visual-portfolio' ),
355
- ),
356
- 'default' => 'val1',
357
- 'searchable' => false,
358
- 'multiple' => false,
359
- 'tags' => false,
360
- );
361
-
362
- * **color**
363
-
364
- array(
365
- 'type' => 'color',
366
- 'label' => esc_html__( 'Color field', 'visual-portfolio' ),
367
- 'name' => 'color_control_uniq_name',
368
- 'default' => '#ccc',
369
- 'alpha' => true,
370
- );
371
-
372
- * **align**
373
-
374
- array(
375
- 'type' => 'align',
376
- 'label' => esc_html__( 'Align field', 'visual-portfolio' ),
377
- 'name' => 'align_control_uniq_name',
378
- 'default' => 'center',
379
- 'extended' => true,
380
- );
381
 
382
  ### DEV: jQuery events ####
383
 
384
- Visual Portfolio has a lot of jQuery events that let you extend functionality. Example:
385
-
386
- $(document).on('init.vpf', function (event) {
387
- console.log(event, this);
388
- });
389
-
390
- Available events:
391
-
392
- * **init.vpf** - called after the portfolio fully inited
393
- * **destroy.vpf** - called after portfolio destroyed.
394
- * **initOptions.vpf** - called after new options inited.
395
- * **initEvents.vpf** - called after new events inited.
396
- * **destroyEvents.vpf** - called after events destroyed.
397
- * **initLayout.vpf** - called after layout inited.
398
- * **addItems.vpf** [ $items, removeExisting ] - called after new items added to the portfolio.
399
- * **removeItems.vpf** [ $items, removeExisting ] - called after items removed from the portfolio.
400
- * **startLoadingNewItems.vpf** [ url ] - called before AJAX started to load new items.
401
- * **loadedNewItems.vpf** [ $newVP, $newVP, data ] - called after AJAX loaded new items.
402
- * **endLoadingNewItems.vpf** - called after AJAX loaded new items and removed loading state from portfolio.
403
- * **initCustomColors.vpf** - called after custom colors rendered.
404
- * **addStyle.vpf** [ selector, styles, media, stylesList ] - called after added new custom styles.
405
- * **removeStyle.vpf** [ selector, styles, stylesList ] - called after removed custom styles.
406
- * **renderStyle.vpf** [ stylesString, stylesList, $style ] - called after rendered custom styles.
407
- * **initIsotope.vpf** - called after Isotope inited.
408
- * **destroyIsotope.vpf** - called after Isotope destroyed.
409
- * **initFjGallery.vpf** - called after fjGallery inited.
410
- * **destroyFjGallery.vpf** - called after fjGallery destroyed.
411
 
412
  ### DEV: jQuery methods ####
413
 
414
- Sometimes you may need to call Visual Portfolio methods manually, for example when you use AJAX page load, you will need to reinitialize portfolio, so you can use public methods. Example:
415
-
416
- // Initialize.
417
- $( '.vp-portfolio' ).vpf();
418
-
419
- // Destroy.
420
- $( '.vp-portfolio' ).vpf( 'destroy' );
421
-
422
- Available methods:
423
-
424
- * **init** - init/reinit portfolio
425
- * **destroy** - destroy portfolio
426
- * **resized** - portfolio was resized
427
- * **addStyle** [ selector, styles, media ] - add custom styles to the current portfolio
428
- * **removeStyle** [ selector, styles, media ] - remove custom styles from the current portfolio
429
- * **renderStyle** - render custom styles
430
- * **addItems** [ $items, removeExisting ] - add new items to portfolio (called after AJAX loading)
431
- * **removeItems** [ $items ] - remove some items from portfolio (called after AJAX loading in Paged pagination)
432
 
 
433
 
 
434
 
435
- ## Changelog ##
 
 
436
 
437
  = 1.7.1 =
438
 
1
  # Visual Portfolio #
2
+
3
  * Contributors: nko
4
  * Tags: portfolio, gallery, works, masonry, popup
5
  * Requires at least: 4.0.0
6
  * Tested up to: 4.9
7
  * Requires PHP: 5.4
8
+ * Stable tag: 1.7.2
9
  * License: GPLv2 or later
10
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
12
  Portfolio layouts visual editor. Masonry, justified, tiles, carousel, slider, coverflow, custom posts, custom images.
13
 
 
14
  ## Description ##
15
 
16
+ Visual Portfolio let you create beautiful portfolio layouts. Generates shortcode to show portfolio or any custom post types using Masonry, Justified, Tiles or Carousel layouts.
17
 
18
+ ### Links ###
19
 
20
+ * [Live Demo](https://wp.nkdev.info/free-visual-portfolio/)
21
+ * [Documentation](https://wp.nkdev.info/free-visual-portfolio/documentation/getting-started/)
22
  * [GitHub](https://github.com/nk-o/visual-portfolio)
23
 
24
  ## Features ##
26
  * Visual preview for portfolio layouts shortcode builder
27
  * Templates for theme developers
28
  * 4 predefined layouts:
29
+ * Masonry
30
+ * Justified (Flickr)
31
+ * Tiles
32
+ * Slider (+ Carousel, Coverflow)
33
  * 3 predefined hover effects:
34
+ * Fade
35
+ * Emerge
36
+ * Fly
37
+ * Default (no hover effect)
38
  * Infinite Scroll
39
  * Load More
40
  * Paged layouts
44
  * Stretch option (if you want to break the fixed container of the page)
45
  * Custom image sets
46
  * Custom posts type layouts (not only portfolio)
47
+ * Posts by type
48
+ * Posts by specific ID
49
+ * Posts by taxonomies
50
+ * Custom order
51
  * Custom CSS for each portfolio layouts
52
  * Shortcode generated, so you can place unlimited portfolio layouts on the page
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
 
 
 
61
  ## Screenshots ##
62
 
63
  1. Visual Portfolio builder p.1
75
  13. Example: Tiles + Popup gallery
76
  14. Example: Popup Gallery
77
 
 
 
78
  ## Installation ##
79
 
80
+ ### Automatic installation ###
81
 
82
  Automatic installation is the easiest option as WordPress handles the file transfers itself and you don’t need to leave your web browser. To do an automatic install of Visual Portfolio, log in to your WordPress dashboard, navigate to the Plugins menu and click Add New.
83
 
84
  In the search field type “Visual Portfolio” and click Search Plugins. Once you’ve found our plugin you can view details about it such as the point release, rating and description. Most importantly of course, you can install it by simply clicking “Install Now”.
85
 
86
+ ### Manual installation ###
87
 
88
  The manual installation method involves downloading our Visual Portfolio plugin and uploading it to your webserver via your favourite FTP application. The WordPress codex contains [instructions on how to do this here](https://codex.wordpress.org/Managing_Plugins#Manual_Plugin_Installation).
89
 
 
90
  ## Frequently Asked Questions ##
91
 
92
  ### How to disable enqueued plugins (JS, CSS) on frontend ####
93
 
94
+ [https://wp.nkdev.info/free-visual-portfolio/documentation/developers/disable-enqueued-plugins-js-css/](https://wp.nkdev.info/free-visual-portfolio/documentation/developers/disable-enqueued-plugins-js-css/)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
95
 
96
  ### How to use my custom taxonomy as filter ####
97
 
98
+ [https://wp.nkdev.info/free-visual-portfolio/documentation/developers/custom-taxonomy-for-filter/](https://wp.nkdev.info/free-visual-portfolio/documentation/developers/custom-taxonomy-for-filter/)
 
 
 
 
 
 
 
 
 
99
 
100
  ### How to change default templates and styles ####
101
 
102
+ [https://wp.nkdev.info/free-visual-portfolio/documentation/developers/changing-default-templates-and-styles/](https://wp.nkdev.info/free-visual-portfolio/documentation/developers/changing-default-templates-and-styles/)
103
 
104
  ### DEV: WP filters ####
105
 
106
+ [https://wp.nkdev.info/free-visual-portfolio/documentation/developers/wordpress-filters/](https://wp.nkdev.info/free-visual-portfolio/documentation/developers/wordpress-filters/)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
107
 
108
  ### DEV: Controls ####
109
 
110
+ [https://wp.nkdev.info/free-visual-portfolio/documentation/developers/wordpress-filters/controls/](https://wp.nkdev.info/free-visual-portfolio/documentation/developers/wordpress-filters/controls/)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
111
 
112
  ### DEV: jQuery events ####
113
 
114
+ [https://wp.nkdev.info/free-visual-portfolio/documentation/developers/jquery-events/](https://wp.nkdev.info/free-visual-portfolio/documentation/developers/jquery-events/)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
115
 
116
  ### DEV: jQuery methods ####
117
 
118
+ [https://wp.nkdev.info/free-visual-portfolio/documentation/developers/jquery-methods/](https://wp.nkdev.info/free-visual-portfolio/documentation/developers/jquery-methods/)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
119
 
120
+ ## Changelog ##
121
 
122
+ = 1.7.2 =
123
 
124
+ * added link to Documentation in admin menu
125
+ * added **vpf_extend_tiles** filter
126
+ * fixed custom jquery events triggering
127
 
128
  = 1.7.1 =
129