Plugin Directory

Changeset 3260188


Ignore:
Timestamp:
03/23/2025 06:18:26 AM (12 months ago)
Author:
samdani
Message:

Version 3.1.1 [23rd Mar 2025]

  • [Added]: Upgrader for seamless updates.
  • [Added]: Option to set Behance order.
  • [Fixed]: Admin notices display issue.
  • [Fixed]: Conflict between item count and pagination.
  • [Fixed]: Unauthenticated arbitrary shortcode execution.
  • [Updated]: Menu priority.
Location:
gs-behance-portfolio
Files:
322 added
8 edited

Legend:

Unmodified
Added
Removed
  • gs-behance-portfolio/trunk/assets/admin/js/shortcode.min.js

    r3242599 r3260188  
    19501950  \*******************************************/
    19511951((__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.r(__webpack_exports__);__webpack_require__.d(__webpack_exports__,{"default":()=>(__WEBPACK_DEFAULT_EXPORT__)});var _notify__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(/*! ./notify */"./dev/shortcode/includes/notify.js");function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}
    1952 var config=Object.assign({},window.GS_BEHANCE_DATA);var translations=Object.assign({},window.GS_BEHANCE_DATA.translations);delete window.GS_BEHANCE_DATA.nonce;delete window.GS_BEHANCE_DATA.siteurl;delete window.GS_BEHANCE_DATA.ajaxurl;delete window.GS_BEHANCE_DATA.adminurl;delete window.GS_BEHANCE_DATA.shortcode_settings;delete window.GS_BEHANCE_DATA.shortcode_options;delete window.GS_BEHANCE_DATA.preference;delete window.GS_BEHANCE_DATA.preference_options;delete window.GS_BEHANCE_DATA.translations;var helpers={copyShortcodeToClipboard:function copyShortcodeToClipboard(){new Clipboard('.copy-holder',{target:function target(trigger){return jQuery(trigger).parent().find('.shortcode-input')[0]}}).on('success',function(e){e.clearSelection()});jQuery(this.$el).delegate('.shortcode-input','click',function(event){jQuery(this).select()})},getDemoDataStatus:function getDemoDataStatus(){return window.GS_BEHANCE_DATA.demo_data},_updateDemoDataStatus:function _updateDemoDataStatus(){var data=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};window.GS_BEHANCE_DATA.demo_data=Object.assign({},window.GS_BEHANCE_DATA.demo_data,data)},_getShortcodeSettings:function _getShortcodeSettings(){return config.shortcode_settings},initHelpText:function initHelpText(){jQuery(this.$el).on('click','.gsbeh-show--info',function(){jQuery(this).closest('.shortcode-setting--row').find('.bi-text-help--area').slideToggle(250).end().siblings().find('.bi-text-help--area').slideUp(250)})},_getShortcodeOptions:function _getShortcodeOptions(){return config.shortcode_options},_getMeta:function _getMeta(){return config.be_meta},_getPreference:function _getPreference(){return config.preference},_getPreferenceOptions:function _getPreferenceOptions(){return config.preference_options},convertBooleanToString:function convertBooleanToString(val){return val===!0?'true':'false'},convertStringToBoolean:function convertStringToBoolean(val){return val==='true'?!0:!1},getSiteURL:function getSiteURL(){return config.siteurl},getWPNonce:function getWPNonce(action){return config.nonce[action]},getAjaxURL:function getAjaxURL(){return config.ajaxurl},getAdminURL:function getAdminURL(){return config.adminurl},isEmptyObject:function isEmptyObject(data){for(var prop in data){return!data.hasOwnProperty(prop)}
     1952var config=Object.assign({},window.GS_BEHANCE_DATA);var translations=Object.assign({},window.GS_BEHANCE_DATA.translations);delete window.GS_BEHANCE_DATA.nonce;delete window.GS_BEHANCE_DATA.siteurl;delete window.GS_BEHANCE_DATA.ajaxurl;delete window.GS_BEHANCE_DATA.adminurl;delete window.GS_BEHANCE_DATA.shortcode_settings;delete window.GS_BEHANCE_DATA.shortcode_options;delete window.GS_BEHANCE_DATA.preference;delete window.GS_BEHANCE_DATA.preference_options;delete window.GS_BEHANCE_DATA.translations;var helpers={isPro:function isPro(){return window.GS_BEHANCE_DATA.is_pro},copyShortcodeToClipboard:function copyShortcodeToClipboard(){new Clipboard('.copy-holder',{target:function target(trigger){return jQuery(trigger).parent().find('.shortcode-input')[0]}}).on('success',function(e){e.clearSelection()});jQuery(this.$el).delegate('.shortcode-input','click',function(event){jQuery(this).select()})},getDemoDataStatus:function getDemoDataStatus(){return window.GS_BEHANCE_DATA.demo_data},_updateDemoDataStatus:function _updateDemoDataStatus(){var data=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};window.GS_BEHANCE_DATA.demo_data=Object.assign({},window.GS_BEHANCE_DATA.demo_data,data)},_getShortcodeSettings:function _getShortcodeSettings(){return config.shortcode_settings},initHelpText:function initHelpText(){jQuery(this.$el).on('click','.gsbeh-show--info',function(){jQuery(this).closest('.shortcode-setting--row').find('.bi-text-help--area').slideToggle(250).end().siblings().find('.bi-text-help--area').slideUp(250)})},_getShortcodeOptions:function _getShortcodeOptions(){return config.shortcode_options},_getMeta:function _getMeta(){return config.be_meta},_getPreference:function _getPreference(){return config.preference},_getPreferenceOptions:function _getPreferenceOptions(){return config.preference_options},convertBooleanToString:function convertBooleanToString(val){return val===!0?'true':'false'},convertStringToBoolean:function convertStringToBoolean(val){return val==='true'?!0:!1},getSiteURL:function getSiteURL(){return config.siteurl},getWPNonce:function getWPNonce(action){return config.nonce[action]},getAjaxURL:function getAjaxURL(){return config.ajaxurl},getAdminURL:function getAdminURL(){return config.adminurl},isEmptyObject:function isEmptyObject(data){for(var prop in data){return!data.hasOwnProperty(prop)}
    19531953return JSON.stringify(data)===JSON.stringify({})},isArray:function isArray(data){return _typeof(data)&&Array.isArray(data)},isObject:function isObject(data){return _typeof(data)&&!Array.isArray(data)},nonReactive:function nonReactive(data){return JSON.parse(JSON.stringify(data))},ltrim:function ltrim(str,charlist){charlist=!charlist?" \\s\xA0":(charlist+'').replace(/([[\]().?/*{}+$^:])/g,'$1');var re=new RegExp('^['+charlist+']+','g');return(str+'').replace(re,'')},notifyError:function notifyError(response){if(response&&response.responseJSON&&response.responseJSON.data){return(0,_notify__WEBPACK_IMPORTED_MODULE_0__["default"])({message:response.responseJSON.data,clearAll:!0})}(0,_notify__WEBPACK_IMPORTED_MODULE_0__["default"])({clearAll:!0})},translation:function translation(){var key=arguments.length>0&&arguments[0]!==undefined?arguments[0]:null;if(key&&key in translations){return translations[key]}
    19541954return''}};const __WEBPACK_DEFAULT_EXPORT__=(helpers)}),"./dev/shortcode/includes/notify.js":
     
    24392439  !*** ./node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./dev/shortcode/pages/shortcode.vue?vue&type=template&id=6b8b5720 ***!
    24402440  \**********************************************************************************************************************************************************************************************************************************************************************************/
    2441 ((__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.r(__webpack_exports__);__webpack_require__.d(__webpack_exports__,{render:()=>(render),staticRenderFns:()=>(staticRenderFns)});var render=function render(){var _vm=this,_c=_vm._self._c;return _c("div",{staticClass:"gs-containeer-f edit-shortcode-container"},[_c("div",{staticClass:"head-section"},[_c("h2",[_vm._v(_vm._s(_vm.pageTitle))]),_vm._v(" "),_c("p",[_vm._v(_vm._s(_vm.pageDescription))])]),_vm._v(" "),Object.keys(_vm.shortcode_settings).length?_c("div",{staticClass:"shortcode-settings-area-box"},[_c("div",{staticClass:"gs-behance-box gs-behance-settings-tab"},[_c("div",{staticClass:"gs-behance-tab-links--area"},[_c("ul",{staticClass:"gs-behance--tab-links"},[_c("li",{"class":_vm.currentTab=="general_settings"?"is-active":""},[_c("button",{on:{click:function click($event){return _vm.setSettingsTab("general_settings")}}},[_vm._v(_vm._s(_vm.translation("general-settings"))+"\n            ")])]),_vm._v(" "),_c("li",{"class":_vm.currentTab=="style_settings"?"is-active":""},[_c("button",{on:{click:function click($event){return _vm.setSettingsTab("style_settings")}}},[_vm._v(_vm._s(_vm.translation("style-settings"))+"\n            ")])]),_vm._v(" "),_c("li",{"class":_vm.currentTab=="query_settings"?"is-active":"",staticStyle:{"margin-right":"0px"}},[_c("button",{on:{click:function click($event){return _vm.setSettingsTab("query_settings")}}},[_vm._v(_vm._s(_vm.translation("query-settings"))+"\n            ")])])])]),_vm._v(" "),_vm.currentTab=="general_settings"?_c("div",{staticClass:"gsbeh--general-settings"},[_vm.shortcode_text?_c("div",{staticClass:"shortcode-setting--row"},[_c("div",{staticClass:"gs-roow row-20"},[_c("div",{staticClass:"gs-col-xs-12"},[_c("div",{staticClass:"gs-copy-shortcode-area"},[_c("label",{staticClass:"m-t-10",attrs:{"for":"shortcode-input"}},[_vm._v("Copy Shortcode:")]),_vm._v(" "),_c("div",{staticClass:"copy-holder--wrapper"},[_c("input",{staticClass:"shortcode-input",attrs:{id:"shortcode-input",type:"text",readonly:""},domProps:{value:_vm.shortcode_text}}),_vm._v(" "),_c("span",{"class":["copy-holder",_vm.copied?"copied":""],domProps:{textContent:_vm._s(_vm.copied?"Copied":"Copy")},on:{click:function click($event){$event.preventDefault();return _vm.shortcodeUpdateCopy.apply(null,arguments)}}})])])])])]):_vm._e(),_vm._v(" "),_c("div",{staticClass:"shortcode-setting--row"},[_c("div",{staticClass:"gs-roow row-20"},[_c("div",{staticClass:"gs-col-xs-5"},[_c("label",{staticClass:"m-t-10",attrs:{"for":"shortcode_name"}},[_vm._v(_vm._s(_vm.translation("name-of-the-shortcode"))+":")]),_c("br")]),_vm._v(" "),_c("div",{staticClass:"gs-col-xs-7"},[_c("input",{directives:[{name:"model",rawName:"v-model",value:_vm.shortcode_name,expression:"shortcode_name"}],staticClass:"bi-input-control",attrs:{type:"text",id:"shortcode_name",placeholder:_vm.translation("shortcode-name")},domProps:{value:_vm.shortcode_name},on:{input:function input($event){if($event.target.composing)return;_vm.shortcode_name=$event.target.value}}})])])]),_vm._v(" "),_c("div",{staticClass:"shortcode-setting--row"},[_c("div",{staticClass:"gs-roow row-20"},[_c("div",{staticClass:"gs-col-xs-5"},[_c("label",{staticClass:"m-t-10",attrs:{"for":"userid"}},[_vm._v(_vm._s(_vm.translation("userid"))+":")]),_vm._v(" "),_vm._m(0)]),_vm._v(" "),_c("div",{staticClass:"gs-col-xs-7"},[_c("input",{directives:[{name:"model",rawName:"v-model.lazy",value:_vm.shortcode_settings.userid,expression:"shortcode_settings.userid",modifiers:{lazy:!0}}],staticClass:"bi-input-control",attrs:{type:"text",id:"userid"},domProps:{value:_vm.shortcode_settings.userid},on:{change:function change($event){return _vm.$set(_vm.shortcode_settings,"userid",$event.target.value)}}})]),_vm._v(" "),_c("div",{staticClass:"gs-col-xs-12 bi-text-help--area"},[_c("p",{staticClass:"bi-text-help"},[_vm._v(_vm._s(_vm.translation("userid-details")))])])])]),_vm._v(" "),_c("div",{staticClass:"shortcode-setting--row"},[_c("div",{staticClass:"gs-roow row-20"},[_c("div",{staticClass:"gs-col-xs-7"},[_c("label",{staticClass:"m-t-10",attrs:{"for":"pagination"}},[_vm._v(_vm._s(_vm.translation("pagination"))+":")]),_vm._v(" "),_vm._m(1)]),_vm._v(" "),_c("div",{staticClass:"gs-col-xs-5"},[_c("input-toggle",{staticClass:"m-t-6",attrs:{name:"pagination",offLabel:"Off",onLabel:"On"},model:{value:_vm.shortcode_settings.pagination,callback:function callback($$v){_vm.$set(_vm.shortcode_settings,"pagination",$$v)},expression:"shortcode_settings.pagination"}})],1),_vm._v(" "),_c("div",{staticClass:"gs-col-xs-12 bi-text-help--area"},[_c("p",{staticClass:"bi-text-help"},[_vm._v(_vm._s(_vm.translation("show-cat--help")))])])])]),_vm._v(" "),_vm.shortcode_settings.pagination?_c("div",{staticClass:"shortcode-setting--row"},[_c("div",{staticClass:"gs-roow row-20"},[_c("div",{staticClass:"gs-col-xs-5"},[_c("label",{staticClass:"m-t-10",attrs:{"for":"number_of_paginate_items"}},[_vm._v(_vm._s(_vm.translation("number_of_paginate_items"))+":")]),_vm._v(" "),_vm._m(2)]),_vm._v(" "),_c("div",{staticClass:"gs-col-xs-7"},[_c("input",{directives:[{name:"model",rawName:"v-model",value:_vm.shortcode_settings.number_of_paginate_items,expression:"shortcode_settings.number_of_paginate_items"}],staticClass:"bi-input-control",attrs:{type:"number",placeholder:"12",id:"number_of_paginate_items"},domProps:{value:_vm.shortcode_settings.number_of_paginate_items},on:{input:function input($event){if($event.target.composing)return;_vm.$set(_vm.shortcode_settings,"number_of_paginate_items",$event.target.value)}}})]),_vm._v(" "),_c("div",{staticClass:"gs-col-xs-12 bi-text-help--area"},[_c("p",{staticClass:"bi-text-help"},[_vm._v(_vm._s(_vm.translation("count-details")))])])])]):_vm._e(),_vm._v(" "),_c("div",{staticClass:"shortcode-setting--row"},[_c("div",{staticClass:"gs-roow row-20"},[_c("div",{staticClass:"gs-col-xs-5"},[_c("label",{staticClass:"m-t-10",attrs:{"for":"theme"}},[_vm._v(_vm._s(_vm.translation("theme"))+":")]),_vm._v(" "),_vm._m(3)]),_vm._v(" "),_c("div",{staticClass:"gs-col-xs-7"},[_c("input-select",{attrs:{id:"theme",options:_vm.shortcode_options.themes},model:{value:_vm.shortcode_settings.theme,callback:function callback($$v){_vm.$set(_vm.shortcode_settings,"theme",$$v)},expression:"shortcode_settings.theme"}})],1),_vm._v(" "),_c("div",{staticClass:"gs-col-xs-12 bi-text-help--area"},[_c("p",{staticClass:"bi-text-help"},[_vm._v(_vm._s(_vm.translation("theme-details")))])])])]),_vm._v(" "),_vm.shortcode_settings.theme==="gs_beh_theme5"?_c("div",{staticClass:"shortcode-setting--row"},[_c("div",{staticClass:"gs-roow row-20"},[_c("div",{staticClass:"gs-col-xs-5"},[_c("label",{staticClass:"m-t-10",attrs:{"for":"speed"}},[_vm._v(_vm._s(_vm.translation("speed"))+":")])]),_vm._v(" "),_c("div",{staticClass:"gs-col-xs-7"},[_c("div",{staticClass:"range-slider-container no-right-info"},[_c("input",{directives:[{name:"model",rawName:"v-model",value:_vm.shortcode_settings.speed,expression:"shortcode_settings.speed"}],staticClass:"slider-left-info",attrs:{type:"text",id:"speed"},domProps:{value:_vm.shortcode_settings.speed},on:{input:function input($event){if($event.target.composing)return;_vm.$set(_vm.shortcode_settings,"speed",$event.target.value)}}}),_vm._v(" "),_c("input-range",{attrs:{"dot-size":20,step:50,tooltip:!1,min:0,max:10000},model:{value:_vm.shortcode_settings.speed,callback:function callback($$v){_vm.$set(_vm.shortcode_settings,"speed",$$v)},expression:"shortcode_settings.speed"}})],1)])])]):_vm._e(),_vm._v(" "),_vm.shortcode_settings.theme==="gs_beh_theme5"?_c("div",{staticClass:"shortcode-setting--row"},[_c("div",{staticClass:"gs-roow row-20"},[_c("div",{staticClass:"gs-col-xs-5"},[_c("label",{staticClass:"m-t-10",attrs:{"for":"enable_autoplay"}},[_vm._v(_vm._s(_vm.translation("enable_autoplay"))+":")]),_vm._v(" "),_vm._m(4)]),_vm._v(" "),_c("div",{staticClass:"gs-col-xs-7"},[_c("input-toggle",{staticClass:"m-t-6",attrs:{name:"enable_autoplay",offLabel:"Off",onLabel:"On"},model:{value:_vm.shortcode_settings.enable_autoplay,callback:function callback($$v){_vm.$set(_vm.shortcode_settings,"enable_autoplay",$$v)},expression:"shortcode_settings.enable_autoplay"}})],1),_vm._v(" "),_c("div",{staticClass:"gs-col-xs-12 bi-text-help--area"},[_c("p",{staticClass:"bi-text-help"},[_vm._v(_vm._s(_vm.translation("enable_autoplay__details")))])])])]):_vm._e(),_vm._v(" "),_vm.shortcode_settings.theme==="gs_beh_theme5"&&_vm.shortcode_settings.enable_autoplay?_c("div",{staticClass:"shortcode-setting--row"},[_c("div",{staticClass:"gs-roow row-20"},[_c("div",{staticClass:"gs-col-xs-5"},[_c("label",{staticClass:"m-t-10",attrs:{"for":"delay"}},[_vm._v(_vm._s(_vm.translation("delay"))+":")])]),_vm._v(" "),_c("div",{staticClass:"gs-col-xs-7"},[_c("div",{staticClass:"range-slider-container no-right-info"},[_c("input",{directives:[{name:"model",rawName:"v-model",value:_vm.shortcode_settings.delay,expression:"shortcode_settings.delay"}],staticClass:"slider-left-info",attrs:{type:"text",id:"delay"},domProps:{value:_vm.shortcode_settings.delay},on:{input:function input($event){if($event.target.composing)return;_vm.$set(_vm.shortcode_settings,"delay",$event.target.value)}}}),_vm._v(" "),_c("input-range",{attrs:{"dot-size":20,step:50,tooltip:!1,min:0,max:10000},model:{value:_vm.shortcode_settings.delay,callback:function callback($$v){_vm.$set(_vm.shortcode_settings,"delay",$$v)},expression:"shortcode_settings.delay"}})],1)])])]):_vm._e(),_vm._v(" "),_c("div",{staticClass:"shortcode-setting--row"},[_c("div",{staticClass:"gs-roow row-20"},[_c("div",{staticClass:"gs-col-xs-5"},[_c("label",{staticClass:"m-t-10",attrs:{"for":"link_targets"}},[_vm._v(_vm._s(_vm.translation("link-targets"))+":")]),_vm._v(" "),_vm._m(5)]),_vm._v(" "),_c("div",{staticClass:"gs-col-xs-7"},[_c("input-select",{key:"link_targets",attrs:{id:"link_targets",options:_vm.shortcode_options.link_targets},model:{value:_vm.shortcode_settings.link_target,callback:function callback($$v){_vm.$set(_vm.shortcode_settings,"link_target",$$v)},expression:"shortcode_settings.link_target"}})],1),_vm._v(" "),_c("div",{staticClass:"gs-col-xs-12 bi-text-help--area"},[_c("p",{staticClass:"bi-text-help"},[_vm._v(_vm._s(_vm.translation("link-targets-details")))])])])]),_vm._v(" "),_vm.shortcode_settings.theme==="gs_beh_theme6"?_c("div",{staticClass:"shortcode-setting--row"},[_c("div",{staticClass:"gs-roow row-20"},[_c("div",{staticClass:"gs-col-xs-5"},[_c("label",{staticClass:"m-t-10",attrs:{"for":"field"}},[_vm._v(_vm._s(_vm.translation("textarea"))+":")]),_vm._v(" "),_vm._m(6)]),_vm._v(" "),_c("div",{staticClass:"gs-col-xs-7"},[_c("textarea",{directives:[{name:"model",rawName:"v-model",value:_vm.shortcode_settings.textarea,expression:"shortcode_settings.textarea"}],staticClass:"bi-input-control",attrs:{id:"textarea",rows:"3",cols:"25"},domProps:{value:_vm.shortcode_settings.textarea},on:{input:function input($event){if($event.target.composing)return;_vm.$set(_vm.shortcode_settings,"textarea",$event.target.value)}}})]),_vm._v(" "),_c("div",{staticClass:"gs-col-xs-12 bi-text-help--area"},[_c("p",{staticClass:"bi-text-help"},[_vm._v(_vm._s(_vm.translation("field--help")))])])])]):_vm._e()]):_vm._e(),_vm._v(" "),_vm.currentTab=="style_settings"?_c("div",{staticClass:"gsbeh--style-settings"},[_c("div",{staticClass:"shortcode-setting--row"},[_c("div",{staticClass:"gs-roow row-20"},[_c("div",{staticClass:"gs-col-xs-6"},[_c("label",{staticClass:"m-t-10",attrs:{"for":"columns"}},[_vm._v(_vm._s(_vm.translation("columns"))+":")]),_vm._v(" "),_vm._m(7)]),_vm._v(" "),_c("div",{staticClass:"gs-col-xs-6"},[_c("input-select",{key:"columns",attrs:{id:"columns",options:_vm.shortcode_options.columns,placeholder:_vm.translation("columns-placeholder")},model:{value:_vm.shortcode_settings.columns,callback:function callback($$v){_vm.$set(_vm.shortcode_settings,"columns",$$v)},expression:"shortcode_settings.columns"}})],1),_vm._v(" "),_c("div",{staticClass:"gs-col-xs-12 bi-text-help--area"},[_c("p",{staticClass:"bi-text-help"},[_vm._v(_vm._s(_vm.translation("columns--help")))])])])]),_vm._v(" "),_c("div",{staticClass:"shortcode-setting--row"},[_c("div",{staticClass:"gs-roow row-20"},[_c("div",{staticClass:"gs-col-xs-6"},[_c("label",{staticClass:"m-t-10",attrs:{"for":"columns_tablet"}},[_vm._v(_vm._s(_vm.translation("columns-tablet"))+":")]),_vm._v(" "),_vm._m(8)]),_vm._v(" "),_c("div",{staticClass:"gs-col-xs-6"},[_c("input-select",{key:"columns_tablet",attrs:{id:"columns_tablet",options:_vm.shortcode_options.columns_tablet,placeholder:_vm.translation("columns-tablet-placeholder")},model:{value:_vm.shortcode_settings.columns_tablet,callback:function callback($$v){_vm.$set(_vm.shortcode_settings,"columns_tablet",$$v)},expression:"shortcode_settings.columns_tablet"}})],1),_vm._v(" "),_c("div",{staticClass:"gs-col-xs-12 bi-text-help--area"},[_c("p",{staticClass:"bi-text-help"},[_vm._v(_vm._s(_vm.translation("columns-tablet--help")))])])])]),_vm._v(" "),_c("div",{staticClass:"shortcode-setting--row"},[_c("div",{staticClass:"gs-roow row-20"},[_c("div",{staticClass:"gs-col-xs-6"},[_c("label",{staticClass:"m-t-10",attrs:{"for":"columns_mobile_portrait"}},[_vm._v(_vm._s(_vm.translation("columns-mobile-portrait"))+":")]),_vm._v(" "),_vm._m(9)]),_vm._v(" "),_c("div",{staticClass:"gs-col-xs-6"},[_c("input-select",{key:"gsbeh_cols_mobile_portrait",attrs:{id:"columns_mobile_portrait",options:_vm.shortcode_options.columns_mobile_portrait,placeholder:_vm.translation("columns-mobile-portrait-placeholder")},model:{value:_vm.shortcode_settings.columns_mobile_portrait,callback:function callback($$v){_vm.$set(_vm.shortcode_settings,"columns_mobile_portrait",$$v)},expression:"shortcode_settings.columns_mobile_portrait"}})],1),_vm._v(" "),_c("div",{staticClass:"gs-col-xs-12 bi-text-help--area"},[_c("p",{staticClass:"bi-text-help"},[_vm._v(_vm._s(_vm.translation("columns-mobile-portrait--help")))])])])]),_vm._v(" "),_c("div",{staticClass:"shortcode-setting--row"},[_c("div",{staticClass:"gs-roow row-20"},[_c("div",{staticClass:"gs-col-xs-6"},[_c("label",{staticClass:"m-t-10",attrs:{"for":"columns_mobile"}},[_vm._v(_vm._s(_vm.translation("columns-mobile"))+":")]),_vm._v(" "),_vm._m(10)]),_vm._v(" "),_c("div",{staticClass:"gs-col-xs-6"},[_c("input-select",{key:"columns_mobile",attrs:{id:"columns_mobile",options:_vm.shortcode_options.columns_mobile,placeholder:_vm.translation("columns-mobile-placeholder")},model:{value:_vm.shortcode_settings.columns_mobile,callback:function callback($$v){_vm.$set(_vm.shortcode_settings,"columns_mobile",$$v)},expression:"shortcode_settings.columns_mobile"}})],1),_vm._v(" "),_c("div",{staticClass:"gs-col-xs-12 bi-text-help--area"},[_c("p",{staticClass:"bi-text-help"},[_vm._v(_vm._s(_vm.translation("columns-mobile--help")))])])])])]):_vm._e(),_vm._v(" "),_vm.currentTab=="query_settings"?_c("div",{staticClass:"gslogo--query-settings"},[_c("div",{staticClass:"shortcode-setting--row"},[_c("div",{staticClass:"gs-roow row-20"},[_c("div",{staticClass:"gs-col-xs-5"},[_c("label",{staticClass:"m-t-10",attrs:{"for":"count"}},[_vm._v(_vm._s(_vm.translation("count"))+":")]),_vm._v(" "),_vm._m(11)]),_vm._v(" "),_c("div",{staticClass:"gs-col-xs-7"},[_c("input",{directives:[{name:"model",rawName:"v-model",value:_vm.shortcode_settings.count,expression:"shortcode_settings.count"}],staticClass:"bi-input-control",attrs:{type:"number",max:"12",id:"count"},domProps:{value:_vm.shortcode_settings.count},on:{input:function input($event){if($event.target.composing)return;_vm.$set(_vm.shortcode_settings,"count",$event.target.value)}}})]),_vm._v(" "),_c("div",{staticClass:"gs-col-xs-12 bi-text-help--area"},[_c("p",{staticClass:"bi-text-help"},[_vm._v(_vm._s(_vm.translation("count-details")))])])])]),_vm._v(" "),_c("div",{staticClass:"shortcode-setting--row"},[_c("div",{staticClass:"gs-roow row-20"},[_c("div",{staticClass:"gs-col-xs-5"},[_c("label",{staticClass:"m-t-10",attrs:{"for":"order"}},[_vm._v(_vm._s(_vm.translation("order"))+":")]),_vm._v(" "),_vm._m(12)]),_vm._v(" "),_c("div",{staticClass:"gs-col-xs-7"},[_c("input-select",{key:"order",attrs:{id:"order",options:_vm.shortcode_options.order,placeholder:_vm.translation("order--placeholder")},model:{value:_vm.shortcode_settings.order,callback:function callback($$v){_vm.$set(_vm.shortcode_settings,"order",$$v)},expression:"shortcode_settings.order"}})],1)])]),_vm._v(" "),_c("div",{staticClass:"shortcode-setting--row"},[_c("div",{staticClass:"gs-roow row-20"},[_c("div",{staticClass:"gs-col-xs-5"},[_c("label",{staticClass:"m-t-10",attrs:{"for":"order_by"}},[_vm._v(_vm._s(_vm.translation("order_by"))+":")]),_vm._v(" "),_vm._m(13)]),_vm._v(" "),_c("div",{staticClass:"gs-col-xs-7"},[_c("input-select",{key:"order_by",attrs:{id:"order_by",options:_vm.shortcode_options.order_by,placeholder:_vm.translation("order-by--placeholder")},model:{value:_vm.shortcode_settings.order_by,callback:function callback($$v){_vm.$set(_vm.shortcode_settings,"order_by",$$v)},expression:"shortcode_settings.order_by"}})],1)])]),_vm._v(" "),_c("div",{staticClass:"shortcode-setting--row"},[_c("div",{staticClass:"gs-roow row-20"},[_c("div",{staticClass:"gs-col-xs-5"},[_c("label",{staticClass:"m-t-10",attrs:{"for":"categories"}},[_vm._v(_vm._s(_vm.translation("categories"))+":")]),_vm._v(" "),_vm._m(14)]),_vm._v(" "),_c("div",{staticClass:"gs-col-xs-7"},[_c("input-select",{key:"categories",attrs:{id:"categories",options:_vm.shortcode_options.categories,placeholder:_vm.translation("beh-cat--placeholder"),multiple:""},model:{value:_vm.shortcode_settings.categories,callback:function callback($$v){_vm.$set(_vm.shortcode_settings,"categories",$$v)},expression:"shortcode_settings.categories"}})],1),_vm._v(" "),_c("div",{staticClass:"col-xs-12 bi-text-help--area"},[_c("p",{staticClass:"bi-text-help"},[_vm._v(_vm._s(_vm.translation("beh-cat--help")))])])])])]):_vm._e(),_vm._v(" "),_c("div",{staticClass:"m-t-20"},[_c("button",{staticClass:"btn btn-sm btn-brand m-r-10 m-b-10",on:{click:function click($event){$event.preventDefault();$event.stopPropagation();return _vm.saveOrUpdateShortcode.apply(null,arguments)}}},[_c("i",{staticClass:"zmdi zmdi-floppy"}),_c("span",[_vm._v(_vm._s(_vm.translation("save-shortcode")))])]),_vm._v(" "),_c("button",{staticClass:"btn btn-sm btn-default",on:{click:function click($event){$event.preventDefault();$event.stopPropagation();return _vm.generatePreview.apply(null,arguments)}}},[_c("i",{staticClass:"zmdi zmdi-eye"}),_c("span",[_vm._v(_vm._s(_vm.translation("preview-shortcode")))])])])]),_vm._v(" "),_c("div",{staticClass:"gs-behance-right-panel"},[_c("div",{staticClass:"preview-shortcode-iframe-wrapper"},[_c("div",{staticClass:"gsbeh-shortcode-preview-loader",staticStyle:{display:"none"}},[_c("p",[_vm._v("Loading the data, Please wait, do not refresh the page... "),_c("svg",{attrs:{width:"30",height:"30",viewBox:"0 0 200 200"}},[_c("radialGradient",{attrs:{id:"a12",cx:".66",fx:".66",cy:".3125",fy:".3125",gradientTransform:"scale(1.5)"}},[_c("stop",{attrs:{offset:"0","stop-color":"#0834FF"}}),_c("stop",{attrs:{offset:".3","stop-color":"#0834FF","stop-opacity":".9"}}),_c("stop",{attrs:{offset:".6","stop-color":"#0834FF","stop-opacity":".6"}}),_c("stop",{attrs:{offset:".8","stop-color":"#0834FF","stop-opacity":".3"}}),_c("stop",{attrs:{offset:"1","stop-color":"#0834FF","stop-opacity":"0"}})],1),_c("circle",{attrs:{"transform-origin":"center",fill:"none",stroke:"url(#a12)","stroke-width":"20","stroke-linecap":"round","stroke-dasharray":"200 1000","stroke-dashoffset":"0",cx:"100",cy:"100",r:"70"}},[_c("animateTransform",{attrs:{type:"rotate",attributeName:"transform",calcMode:"spline",dur:"1",values:"360;0",keyTimes:"0;1",keySplines:"0 0 1 1",repeatCount:"indefinite"}})],1),_c("circle",{attrs:{"transform-origin":"center",fill:"none",opacity:".2",stroke:"#0834FF","stroke-width":"20","stroke-linecap":"round",cx:"100",cy:"100",r:"70"}})],1)])]),_vm._v(" "),_vm.previewReady?_c("iframe",{attrs:{id:"gsbeh-shortcode-preview-iframe",src:_vm.getSiteURL()+"/?gsbeh_shortcode_preview="+_vm.getPreviewTempID(!0),frameborder:"0"}}):_vm._e()])])]):_vm._e()])};var staticRenderFns=[function(){var _vm=this,_c=_vm._self._c;return _c("button",{staticClass:"gsbeh-show--info"},[_c("i",{staticClass:"zmdi zmdi-help-outline"})])},function(){var _vm=this,_c=_vm._self._c;return _c("button",{staticClass:"gsbeh-show--info"},[_c("i",{staticClass:"zmdi zmdi-help-outline"})])},function(){var _vm=this,_c=_vm._self._c;return _c("button",{staticClass:"gsbeh-show--info"},[_c("i",{staticClass:"zmdi zmdi-help-outline"})])},function(){var _vm=this,_c=_vm._self._c;return _c("button",{staticClass:"gsbeh-show--info"},[_c("i",{staticClass:"zmdi zmdi-help-outline"})])},function(){var _vm=this,_c=_vm._self._c;return _c("button",{staticClass:"gsbeh-show--info"},[_c("i",{staticClass:"zmdi zmdi-help-outline"})])},function(){var _vm=this,_c=_vm._self._c;return _c("button",{staticClass:"gsbeh-show--info"},[_c("i",{staticClass:"zmdi zmdi-help-outline"})])},function(){var _vm=this,_c=_vm._self._c;return _c("button",{staticClass:"gsbeh-show--info"},[_c("i",{staticClass:"zmdi zmdi-help-outline"})])},function(){var _vm=this,_c=_vm._self._c;return _c("button",{staticClass:"gsbeh-show--info"},[_c("i",{staticClass:"zmdi zmdi-help-outline"})])},function(){var _vm=this,_c=_vm._self._c;return _c("button",{staticClass:"gsbeh-show--info"},[_c("i",{staticClass:"zmdi zmdi-help-outline"})])},function(){var _vm=this,_c=_vm._self._c;return _c("button",{staticClass:"gsbeh-show--info"},[_c("i",{staticClass:"zmdi zmdi-help-outline"})])},function(){var _vm=this,_c=_vm._self._c;return _c("button",{staticClass:"gsbeh-show--info"},[_c("i",{staticClass:"zmdi zmdi-help-outline"})])},function(){var _vm=this,_c=_vm._self._c;return _c("button",{staticClass:"gsbeh-show--info"},[_c("i",{staticClass:"zmdi zmdi-help-outline"})])},function(){var _vm=this,_c=_vm._self._c;return _c("button",{staticClass:"gsbeh-show--info"},[_c("i",{staticClass:"zmdi zmdi-help-outline"})])},function(){var _vm=this,_c=_vm._self._c;return _c("button",{staticClass:"gsbeh-show--info"},[_c("i",{staticClass:"zmdi zmdi-help-outline"})])},function(){var _vm=this,_c=_vm._self._c;return _c("button",{staticClass:"gsbeh-show--info"},[_c("i",{staticClass:"zmdi zmdi-help-outline"})])}];render._withStripped=!0}),"./node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./dev/shortcode/pages/shortcodes.vue?vue&type=template&id=098b2e03":
     2441((__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.r(__webpack_exports__);__webpack_require__.d(__webpack_exports__,{render:()=>(render),staticRenderFns:()=>(staticRenderFns)});var render=function render(){var _vm=this,_c=_vm._self._c;return _c("div",{staticClass:"gs-containeer-f edit-shortcode-container"},[_c("div",{staticClass:"head-section"},[_c("h2",[_vm._v(_vm._s(_vm.pageTitle))]),_vm._v(" "),_c("p",[_vm._v(_vm._s(_vm.pageDescription))])]),_vm._v(" "),Object.keys(_vm.shortcode_settings).length?_c("div",{staticClass:"shortcode-settings-area-box"},[_c("div",{staticClass:"gs-behance-box gs-behance-settings-tab"},[_c("div",{staticClass:"gs-behance-tab-links--area"},[_c("ul",{staticClass:"gs-behance--tab-links"},[_c("li",{"class":_vm.currentTab=="general_settings"?"is-active":""},[_c("button",{on:{click:function click($event){return _vm.setSettingsTab("general_settings")}}},[_vm._v(_vm._s(_vm.translation("general-settings"))+"\n            ")])]),_vm._v(" "),_c("li",{"class":_vm.currentTab=="style_settings"?"is-active":""},[_c("button",{on:{click:function click($event){return _vm.setSettingsTab("style_settings")}}},[_vm._v(_vm._s(_vm.translation("style-settings"))+"\n            ")])]),_vm._v(" "),_c("li",{"class":_vm.currentTab=="query_settings"?"is-active":"",staticStyle:{"margin-right":"0px"}},[_c("button",{on:{click:function click($event){return _vm.setSettingsTab("query_settings")}}},[_vm._v(_vm._s(_vm.translation("query-settings"))+"\n            ")])])])]),_vm._v(" "),_vm.currentTab=="general_settings"?_c("div",{staticClass:"gsbeh--general-settings"},[_vm.shortcode_text?_c("div",{staticClass:"shortcode-setting--row"},[_c("div",{staticClass:"gs-roow row-20"},[_c("div",{staticClass:"gs-col-xs-12"},[_c("div",{staticClass:"gs-copy-shortcode-area"},[_c("label",{staticClass:"m-t-10",attrs:{"for":"shortcode-input"}},[_vm._v("Copy Shortcode:")]),_vm._v(" "),_c("div",{staticClass:"copy-holder--wrapper"},[_c("input",{staticClass:"shortcode-input",attrs:{id:"shortcode-input",type:"text",readonly:""},domProps:{value:_vm.shortcode_text}}),_vm._v(" "),_c("span",{"class":["copy-holder",_vm.copied?"copied":""],domProps:{textContent:_vm._s(_vm.copied?"Copied":"Copy")},on:{click:function click($event){$event.preventDefault();return _vm.shortcodeUpdateCopy.apply(null,arguments)}}})])])])])]):_vm._e(),_vm._v(" "),_c("div",{staticClass:"shortcode-setting--row"},[_c("div",{staticClass:"gs-roow row-20"},[_c("div",{staticClass:"gs-col-xs-5"},[_c("label",{staticClass:"m-t-10",attrs:{"for":"shortcode_name"}},[_vm._v(_vm._s(_vm.translation("name-of-the-shortcode"))+":")]),_c("br")]),_vm._v(" "),_c("div",{staticClass:"gs-col-xs-7"},[_c("input",{directives:[{name:"model",rawName:"v-model",value:_vm.shortcode_name,expression:"shortcode_name"}],staticClass:"bi-input-control",attrs:{type:"text",id:"shortcode_name",placeholder:_vm.translation("shortcode-name")},domProps:{value:_vm.shortcode_name},on:{input:function input($event){if($event.target.composing)return;_vm.shortcode_name=$event.target.value}}})])])]),_vm._v(" "),_c("div",{staticClass:"shortcode-setting--row"},[_c("div",{staticClass:"gs-roow row-20"},[_c("div",{staticClass:"gs-col-xs-5"},[_c("label",{staticClass:"m-t-10",attrs:{"for":"userid"}},[_vm._v(_vm._s(_vm.translation("userid"))+":")]),_vm._v(" "),_vm._m(0)]),_vm._v(" "),_c("div",{staticClass:"gs-col-xs-7"},[_c("input",{directives:[{name:"model",rawName:"v-model.lazy",value:_vm.shortcode_settings.userid,expression:"shortcode_settings.userid",modifiers:{lazy:!0}}],staticClass:"bi-input-control",attrs:{type:"text",id:"userid"},domProps:{value:_vm.shortcode_settings.userid},on:{change:function change($event){return _vm.$set(_vm.shortcode_settings,"userid",$event.target.value)}}})]),_vm._v(" "),_c("div",{staticClass:"gs-col-xs-12 bi-text-help--area"},[_c("p",{staticClass:"bi-text-help"},[_vm._v(_vm._s(_vm.translation("userid-details")))])])])]),_vm._v(" "),_vm.isPro()?_c("div",{staticClass:"shortcode-setting--row"},[_c("div",{staticClass:"gs-roow row-20"},[_c("div",{staticClass:"gs-col-xs-7"},[_c("label",{staticClass:"m-t-10",attrs:{"for":"pagination"}},[_vm._v(_vm._s(_vm.translation("pagination"))+":")]),_vm._v(" "),_vm._m(1)]),_vm._v(" "),_c("div",{staticClass:"gs-col-xs-5"},[_c("input-toggle",{staticClass:"m-t-6",attrs:{name:"pagination",offLabel:"Off",onLabel:"On"},model:{value:_vm.shortcode_settings.pagination,callback:function callback($$v){_vm.$set(_vm.shortcode_settings,"pagination",$$v)},expression:"shortcode_settings.pagination"}})],1),_vm._v(" "),_c("div",{staticClass:"gs-col-xs-12 bi-text-help--area"},[_c("p",{staticClass:"bi-text-help"},[_vm._v(_vm._s(_vm.translation("show-cat--help")))])])])]):_vm._e(),_vm._v(" "),_vm.isPro()&&_vm.shortcode_settings.pagination?_c("div",{staticClass:"shortcode-setting--row"},[_c("div",{staticClass:"gs-roow row-20"},[_c("div",{staticClass:"gs-col-xs-5"},[_c("label",{staticClass:"m-t-10",attrs:{"for":"number_of_paginate_items"}},[_vm._v(_vm._s(_vm.translation("number_of_paginate_items"))+":")]),_vm._v(" "),_vm._m(2)]),_vm._v(" "),_c("div",{staticClass:"gs-col-xs-7"},[_c("input",{directives:[{name:"model",rawName:"v-model",value:_vm.shortcode_settings.number_of_paginate_items,expression:"shortcode_settings.number_of_paginate_items"}],staticClass:"bi-input-control",attrs:{type:"number",placeholder:"12",id:"number_of_paginate_items"},domProps:{value:_vm.shortcode_settings.number_of_paginate_items},on:{input:function input($event){if($event.target.composing)return;_vm.$set(_vm.shortcode_settings,"number_of_paginate_items",$event.target.value)}}})]),_vm._v(" "),_c("div",{staticClass:"gs-col-xs-12 bi-text-help--area"},[_c("p",{staticClass:"bi-text-help"},[_vm._v(_vm._s(_vm.translation("count-details")))])])])]):_vm._e(),_vm._v(" "),_c("div",{staticClass:"shortcode-setting--row"},[_c("div",{staticClass:"gs-roow row-20"},[_c("div",{staticClass:"gs-col-xs-5"},[_c("label",{staticClass:"m-t-10",attrs:{"for":"theme"}},[_vm._v(_vm._s(_vm.translation("theme"))+":")]),_vm._v(" "),_vm._m(3)]),_vm._v(" "),_c("div",{staticClass:"gs-col-xs-7"},[_c("input-select",{attrs:{id:"theme",options:_vm.shortcode_options.themes},model:{value:_vm.shortcode_settings.theme,callback:function callback($$v){_vm.$set(_vm.shortcode_settings,"theme",$$v)},expression:"shortcode_settings.theme"}})],1),_vm._v(" "),_c("div",{staticClass:"gs-col-xs-12 bi-text-help--area"},[_c("p",{staticClass:"bi-text-help"},[_vm._v(_vm._s(_vm.translation("theme-details")))])])])]),_vm._v(" "),_vm.shortcode_settings.theme==="gs_beh_theme5"?_c("div",{staticClass:"shortcode-setting--row"},[_c("div",{staticClass:"gs-roow row-20"},[_c("div",{staticClass:"gs-col-xs-5"},[_c("label",{staticClass:"m-t-10",attrs:{"for":"speed"}},[_vm._v(_vm._s(_vm.translation("speed"))+":")])]),_vm._v(" "),_c("div",{staticClass:"gs-col-xs-7"},[_c("div",{staticClass:"range-slider-container no-right-info"},[_c("input",{directives:[{name:"model",rawName:"v-model",value:_vm.shortcode_settings.speed,expression:"shortcode_settings.speed"}],staticClass:"slider-left-info",attrs:{type:"text",id:"speed"},domProps:{value:_vm.shortcode_settings.speed},on:{input:function input($event){if($event.target.composing)return;_vm.$set(_vm.shortcode_settings,"speed",$event.target.value)}}}),_vm._v(" "),_c("input-range",{attrs:{"dot-size":20,step:50,tooltip:!1,min:0,max:10000},model:{value:_vm.shortcode_settings.speed,callback:function callback($$v){_vm.$set(_vm.shortcode_settings,"speed",$$v)},expression:"shortcode_settings.speed"}})],1)])])]):_vm._e(),_vm._v(" "),_vm.shortcode_settings.theme==="gs_beh_theme5"?_c("div",{staticClass:"shortcode-setting--row"},[_c("div",{staticClass:"gs-roow row-20"},[_c("div",{staticClass:"gs-col-xs-5"},[_c("label",{staticClass:"m-t-10",attrs:{"for":"enable_autoplay"}},[_vm._v(_vm._s(_vm.translation("enable_autoplay"))+":")]),_vm._v(" "),_vm._m(4)]),_vm._v(" "),_c("div",{staticClass:"gs-col-xs-7"},[_c("input-toggle",{staticClass:"m-t-6",attrs:{name:"enable_autoplay",offLabel:"Off",onLabel:"On"},model:{value:_vm.shortcode_settings.enable_autoplay,callback:function callback($$v){_vm.$set(_vm.shortcode_settings,"enable_autoplay",$$v)},expression:"shortcode_settings.enable_autoplay"}})],1),_vm._v(" "),_c("div",{staticClass:"gs-col-xs-12 bi-text-help--area"},[_c("p",{staticClass:"bi-text-help"},[_vm._v(_vm._s(_vm.translation("enable_autoplay__details")))])])])]):_vm._e(),_vm._v(" "),_vm.shortcode_settings.theme==="gs_beh_theme5"&&_vm.shortcode_settings.enable_autoplay?_c("div",{staticClass:"shortcode-setting--row"},[_c("div",{staticClass:"gs-roow row-20"},[_c("div",{staticClass:"gs-col-xs-5"},[_c("label",{staticClass:"m-t-10",attrs:{"for":"delay"}},[_vm._v(_vm._s(_vm.translation("delay"))+":")])]),_vm._v(" "),_c("div",{staticClass:"gs-col-xs-7"},[_c("div",{staticClass:"range-slider-container no-right-info"},[_c("input",{directives:[{name:"model",rawName:"v-model",value:_vm.shortcode_settings.delay,expression:"shortcode_settings.delay"}],staticClass:"slider-left-info",attrs:{type:"text",id:"delay"},domProps:{value:_vm.shortcode_settings.delay},on:{input:function input($event){if($event.target.composing)return;_vm.$set(_vm.shortcode_settings,"delay",$event.target.value)}}}),_vm._v(" "),_c("input-range",{attrs:{"dot-size":20,step:50,tooltip:!1,min:0,max:10000},model:{value:_vm.shortcode_settings.delay,callback:function callback($$v){_vm.$set(_vm.shortcode_settings,"delay",$$v)},expression:"shortcode_settings.delay"}})],1)])])]):_vm._e(),_vm._v(" "),_c("div",{staticClass:"shortcode-setting--row"},[_c("div",{staticClass:"gs-roow row-20"},[_c("div",{staticClass:"gs-col-xs-5"},[_c("label",{staticClass:"m-t-10",attrs:{"for":"link_targets"}},[_vm._v(_vm._s(_vm.translation("link-targets"))+":")]),_vm._v(" "),_vm._m(5)]),_vm._v(" "),_c("div",{staticClass:"gs-col-xs-7"},[_c("input-select",{key:"link_targets",attrs:{id:"link_targets",options:_vm.shortcode_options.link_targets},model:{value:_vm.shortcode_settings.link_target,callback:function callback($$v){_vm.$set(_vm.shortcode_settings,"link_target",$$v)},expression:"shortcode_settings.link_target"}})],1),_vm._v(" "),_c("div",{staticClass:"gs-col-xs-12 bi-text-help--area"},[_c("p",{staticClass:"bi-text-help"},[_vm._v(_vm._s(_vm.translation("link-targets-details")))])])])]),_vm._v(" "),_vm.shortcode_settings.theme==="gs_beh_theme6"?_c("div",{staticClass:"shortcode-setting--row"},[_c("div",{staticClass:"gs-roow row-20"},[_c("div",{staticClass:"gs-col-xs-5"},[_c("label",{staticClass:"m-t-10",attrs:{"for":"field"}},[_vm._v(_vm._s(_vm.translation("textarea"))+":")]),_vm._v(" "),_vm._m(6)]),_vm._v(" "),_c("div",{staticClass:"gs-col-xs-7"},[_c("textarea",{directives:[{name:"model",rawName:"v-model",value:_vm.shortcode_settings.textarea,expression:"shortcode_settings.textarea"}],staticClass:"bi-input-control",attrs:{id:"textarea",rows:"3",cols:"25"},domProps:{value:_vm.shortcode_settings.textarea},on:{input:function input($event){if($event.target.composing)return;_vm.$set(_vm.shortcode_settings,"textarea",$event.target.value)}}})]),_vm._v(" "),_c("div",{staticClass:"gs-col-xs-12 bi-text-help--area"},[_c("p",{staticClass:"bi-text-help"},[_vm._v(_vm._s(_vm.translation("field--help")))])])])]):_vm._e()]):_vm._e(),_vm._v(" "),_vm.currentTab=="style_settings"?_c("div",{staticClass:"gsbeh--style-settings"},[_c("div",{staticClass:"shortcode-setting--row"},[_c("div",{staticClass:"gs-roow row-20"},[_c("div",{staticClass:"gs-col-xs-6"},[_c("label",{staticClass:"m-t-10",attrs:{"for":"columns"}},[_vm._v(_vm._s(_vm.translation("columns"))+":")]),_vm._v(" "),_vm._m(7)]),_vm._v(" "),_c("div",{staticClass:"gs-col-xs-6"},[_c("input-select",{key:"columns",attrs:{id:"columns",options:_vm.shortcode_options.columns,placeholder:_vm.translation("columns-placeholder")},model:{value:_vm.shortcode_settings.columns,callback:function callback($$v){_vm.$set(_vm.shortcode_settings,"columns",$$v)},expression:"shortcode_settings.columns"}})],1),_vm._v(" "),_c("div",{staticClass:"gs-col-xs-12 bi-text-help--area"},[_c("p",{staticClass:"bi-text-help"},[_vm._v(_vm._s(_vm.translation("columns--help")))])])])]),_vm._v(" "),_c("div",{staticClass:"shortcode-setting--row"},[_c("div",{staticClass:"gs-roow row-20"},[_c("div",{staticClass:"gs-col-xs-6"},[_c("label",{staticClass:"m-t-10",attrs:{"for":"columns_tablet"}},[_vm._v(_vm._s(_vm.translation("columns-tablet"))+":")]),_vm._v(" "),_vm._m(8)]),_vm._v(" "),_c("div",{staticClass:"gs-col-xs-6"},[_c("input-select",{key:"columns_tablet",attrs:{id:"columns_tablet",options:_vm.shortcode_options.columns_tablet,placeholder:_vm.translation("columns-tablet-placeholder")},model:{value:_vm.shortcode_settings.columns_tablet,callback:function callback($$v){_vm.$set(_vm.shortcode_settings,"columns_tablet",$$v)},expression:"shortcode_settings.columns_tablet"}})],1),_vm._v(" "),_c("div",{staticClass:"gs-col-xs-12 bi-text-help--area"},[_c("p",{staticClass:"bi-text-help"},[_vm._v(_vm._s(_vm.translation("columns-tablet--help")))])])])]),_vm._v(" "),_c("div",{staticClass:"shortcode-setting--row"},[_c("div",{staticClass:"gs-roow row-20"},[_c("div",{staticClass:"gs-col-xs-6"},[_c("label",{staticClass:"m-t-10",attrs:{"for":"columns_mobile_portrait"}},[_vm._v(_vm._s(_vm.translation("columns-mobile-portrait"))+":")]),_vm._v(" "),_vm._m(9)]),_vm._v(" "),_c("div",{staticClass:"gs-col-xs-6"},[_c("input-select",{key:"gsbeh_cols_mobile_portrait",attrs:{id:"columns_mobile_portrait",options:_vm.shortcode_options.columns_mobile_portrait,placeholder:_vm.translation("columns-mobile-portrait-placeholder")},model:{value:_vm.shortcode_settings.columns_mobile_portrait,callback:function callback($$v){_vm.$set(_vm.shortcode_settings,"columns_mobile_portrait",$$v)},expression:"shortcode_settings.columns_mobile_portrait"}})],1),_vm._v(" "),_c("div",{staticClass:"gs-col-xs-12 bi-text-help--area"},[_c("p",{staticClass:"bi-text-help"},[_vm._v(_vm._s(_vm.translation("columns-mobile-portrait--help")))])])])]),_vm._v(" "),_c("div",{staticClass:"shortcode-setting--row"},[_c("div",{staticClass:"gs-roow row-20"},[_c("div",{staticClass:"gs-col-xs-6"},[_c("label",{staticClass:"m-t-10",attrs:{"for":"columns_mobile"}},[_vm._v(_vm._s(_vm.translation("columns-mobile"))+":")]),_vm._v(" "),_vm._m(10)]),_vm._v(" "),_c("div",{staticClass:"gs-col-xs-6"},[_c("input-select",{key:"columns_mobile",attrs:{id:"columns_mobile",options:_vm.shortcode_options.columns_mobile,placeholder:_vm.translation("columns-mobile-placeholder")},model:{value:_vm.shortcode_settings.columns_mobile,callback:function callback($$v){_vm.$set(_vm.shortcode_settings,"columns_mobile",$$v)},expression:"shortcode_settings.columns_mobile"}})],1),_vm._v(" "),_c("div",{staticClass:"gs-col-xs-12 bi-text-help--area"},[_c("p",{staticClass:"bi-text-help"},[_vm._v(_vm._s(_vm.translation("columns-mobile--help")))])])])])]):_vm._e(),_vm._v(" "),_vm.currentTab=="query_settings"?_c("div",{staticClass:"gslogo--query-settings"},[_c("div",{staticClass:"shortcode-setting--row"},[_c("div",{staticClass:"gs-roow row-20"},[_c("div",{staticClass:"gs-col-xs-5"},[_c("label",{staticClass:"m-t-10",attrs:{"for":"count"}},[_vm._v(_vm._s(_vm.translation("count"))+":")]),_vm._v(" "),_vm._m(11)]),_vm._v(" "),_c("div",{staticClass:"gs-col-xs-7"},[_c("input",{directives:[{name:"model",rawName:"v-model",value:_vm.shortcode_settings.count,expression:"shortcode_settings.count"}],staticClass:"bi-input-control",attrs:{type:"number",max:"12",id:"count"},domProps:{value:_vm.shortcode_settings.count},on:{input:function input($event){if($event.target.composing)return;_vm.$set(_vm.shortcode_settings,"count",$event.target.value)}}})]),_vm._v(" "),_c("div",{staticClass:"gs-col-xs-12 bi-text-help--area"},[_c("p",{staticClass:"bi-text-help"},[_vm._v(_vm._s(_vm.translation("count-details")))])])])]),_vm._v(" "),_c("div",{staticClass:"shortcode-setting--row"},[_c("div",{staticClass:"gs-roow row-20"},[_c("div",{staticClass:"gs-col-xs-5"},[_c("label",{staticClass:"m-t-10",attrs:{"for":"order"}},[_vm._v(_vm._s(_vm.translation("order"))+":")]),_vm._v(" "),_vm._m(12)]),_vm._v(" "),_c("div",{staticClass:"gs-col-xs-7"},[_c("input-select",{key:"order",attrs:{id:"order",options:_vm.shortcode_options.order,placeholder:_vm.translation("order--placeholder")},model:{value:_vm.shortcode_settings.order,callback:function callback($$v){_vm.$set(_vm.shortcode_settings,"order",$$v)},expression:"shortcode_settings.order"}})],1)])]),_vm._v(" "),_c("div",{staticClass:"shortcode-setting--row"},[_c("div",{staticClass:"gs-roow row-20"},[_c("div",{staticClass:"gs-col-xs-5"},[_c("label",{staticClass:"m-t-10",attrs:{"for":"order_by"}},[_vm._v(_vm._s(_vm.translation("order_by"))+":")]),_vm._v(" "),_vm._m(13)]),_vm._v(" "),_c("div",{staticClass:"gs-col-xs-7"},[_c("input-select",{key:"order_by",attrs:{id:"order_by",options:_vm.shortcode_options.order_by,placeholder:_vm.translation("order-by--placeholder")},model:{value:_vm.shortcode_settings.order_by,callback:function callback($$v){_vm.$set(_vm.shortcode_settings,"order_by",$$v)},expression:"shortcode_settings.order_by"}})],1)])]),_vm._v(" "),_c("div",{staticClass:"shortcode-setting--row"},[_c("div",{staticClass:"gs-roow row-20"},[_c("div",{staticClass:"gs-col-xs-5"},[_c("label",{staticClass:"m-t-10",attrs:{"for":"categories"}},[_vm._v(_vm._s(_vm.translation("categories"))+":")]),_vm._v(" "),_vm._m(14)]),_vm._v(" "),_c("div",{staticClass:"gs-col-xs-7"},[_c("input-select",{key:"categories",attrs:{id:"categories",options:_vm.shortcode_options.categories,placeholder:_vm.translation("beh-cat--placeholder"),multiple:""},model:{value:_vm.shortcode_settings.categories,callback:function callback($$v){_vm.$set(_vm.shortcode_settings,"categories",$$v)},expression:"shortcode_settings.categories"}})],1),_vm._v(" "),_c("div",{staticClass:"col-xs-12 bi-text-help--area"},[_c("p",{staticClass:"bi-text-help"},[_vm._v(_vm._s(_vm.translation("beh-cat--help")))])])])])]):_vm._e(),_vm._v(" "),_c("div",{staticClass:"m-t-20"},[_c("button",{staticClass:"btn btn-sm btn-brand m-r-10 m-b-10",on:{click:function click($event){$event.preventDefault();$event.stopPropagation();return _vm.saveOrUpdateShortcode.apply(null,arguments)}}},[_c("i",{staticClass:"zmdi zmdi-floppy"}),_c("span",[_vm._v(_vm._s(_vm.translation("save-shortcode")))])]),_vm._v(" "),_c("button",{staticClass:"btn btn-sm btn-default",on:{click:function click($event){$event.preventDefault();$event.stopPropagation();return _vm.generatePreview.apply(null,arguments)}}},[_c("i",{staticClass:"zmdi zmdi-eye"}),_c("span",[_vm._v(_vm._s(_vm.translation("preview-shortcode")))])])])]),_vm._v(" "),_c("div",{staticClass:"gs-behance-right-panel"},[_c("div",{staticClass:"preview-shortcode-iframe-wrapper"},[_c("div",{staticClass:"gsbeh-shortcode-preview-loader",staticStyle:{display:"none"}},[_c("p",[_vm._v("Loading the data, Please wait, do not refresh the page... "),_c("svg",{attrs:{width:"30",height:"30",viewBox:"0 0 200 200"}},[_c("radialGradient",{attrs:{id:"a12",cx:".66",fx:".66",cy:".3125",fy:".3125",gradientTransform:"scale(1.5)"}},[_c("stop",{attrs:{offset:"0","stop-color":"#0834FF"}}),_c("stop",{attrs:{offset:".3","stop-color":"#0834FF","stop-opacity":".9"}}),_c("stop",{attrs:{offset:".6","stop-color":"#0834FF","stop-opacity":".6"}}),_c("stop",{attrs:{offset:".8","stop-color":"#0834FF","stop-opacity":".3"}}),_c("stop",{attrs:{offset:"1","stop-color":"#0834FF","stop-opacity":"0"}})],1),_c("circle",{attrs:{"transform-origin":"center",fill:"none",stroke:"url(#a12)","stroke-width":"20","stroke-linecap":"round","stroke-dasharray":"200 1000","stroke-dashoffset":"0",cx:"100",cy:"100",r:"70"}},[_c("animateTransform",{attrs:{type:"rotate",attributeName:"transform",calcMode:"spline",dur:"1",values:"360;0",keyTimes:"0;1",keySplines:"0 0 1 1",repeatCount:"indefinite"}})],1),_c("circle",{attrs:{"transform-origin":"center",fill:"none",opacity:".2",stroke:"#0834FF","stroke-width":"20","stroke-linecap":"round",cx:"100",cy:"100",r:"70"}})],1)])]),_vm._v(" "),_vm.previewReady?_c("iframe",{attrs:{id:"gsbeh-shortcode-preview-iframe",src:_vm.getSiteURL()+"/?gsbeh_shortcode_preview="+_vm.getPreviewTempID(!0),frameborder:"0"}}):_vm._e()])])]):_vm._e()])};var staticRenderFns=[function(){var _vm=this,_c=_vm._self._c;return _c("button",{staticClass:"gsbeh-show--info"},[_c("i",{staticClass:"zmdi zmdi-help-outline"})])},function(){var _vm=this,_c=_vm._self._c;return _c("button",{staticClass:"gsbeh-show--info"},[_c("i",{staticClass:"zmdi zmdi-help-outline"})])},function(){var _vm=this,_c=_vm._self._c;return _c("button",{staticClass:"gsbeh-show--info"},[_c("i",{staticClass:"zmdi zmdi-help-outline"})])},function(){var _vm=this,_c=_vm._self._c;return _c("button",{staticClass:"gsbeh-show--info"},[_c("i",{staticClass:"zmdi zmdi-help-outline"})])},function(){var _vm=this,_c=_vm._self._c;return _c("button",{staticClass:"gsbeh-show--info"},[_c("i",{staticClass:"zmdi zmdi-help-outline"})])},function(){var _vm=this,_c=_vm._self._c;return _c("button",{staticClass:"gsbeh-show--info"},[_c("i",{staticClass:"zmdi zmdi-help-outline"})])},function(){var _vm=this,_c=_vm._self._c;return _c("button",{staticClass:"gsbeh-show--info"},[_c("i",{staticClass:"zmdi zmdi-help-outline"})])},function(){var _vm=this,_c=_vm._self._c;return _c("button",{staticClass:"gsbeh-show--info"},[_c("i",{staticClass:"zmdi zmdi-help-outline"})])},function(){var _vm=this,_c=_vm._self._c;return _c("button",{staticClass:"gsbeh-show--info"},[_c("i",{staticClass:"zmdi zmdi-help-outline"})])},function(){var _vm=this,_c=_vm._self._c;return _c("button",{staticClass:"gsbeh-show--info"},[_c("i",{staticClass:"zmdi zmdi-help-outline"})])},function(){var _vm=this,_c=_vm._self._c;return _c("button",{staticClass:"gsbeh-show--info"},[_c("i",{staticClass:"zmdi zmdi-help-outline"})])},function(){var _vm=this,_c=_vm._self._c;return _c("button",{staticClass:"gsbeh-show--info"},[_c("i",{staticClass:"zmdi zmdi-help-outline"})])},function(){var _vm=this,_c=_vm._self._c;return _c("button",{staticClass:"gsbeh-show--info"},[_c("i",{staticClass:"zmdi zmdi-help-outline"})])},function(){var _vm=this,_c=_vm._self._c;return _c("button",{staticClass:"gsbeh-show--info"},[_c("i",{staticClass:"zmdi zmdi-help-outline"})])},function(){var _vm=this,_c=_vm._self._c;return _c("button",{staticClass:"gsbeh-show--info"},[_c("i",{staticClass:"zmdi zmdi-help-outline"})])}];render._withStripped=!0}),"./node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./dev/shortcode/pages/shortcodes.vue?vue&type=template&id=098b2e03":
    24422442/*!***********************************************************************************************************************************************************************************************************************************************************************************!*\
    24432443  !*** ./node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./dev/shortcode/pages/shortcodes.vue?vue&type=template&id=098b2e03 ***!
  • gs-behance-portfolio/trunk/gs-behance-portfolio-lite.php

    r3242599 r3260188  
    1313 * Plugin URI:      https://www.gsplugins.com/wordpress-plugins
    1414 * Description:     The Behance plugin for WordPress is an outstanding tool for showcasing your Behance projects on your website. With this plugin, you can effortlessly display projects anywhere using a shortcode like [gs_behance id=1], or by using widgets. It provides a range of shortcode examples and detailed documentation to aid your setup. For more information, visit the <a href="https://behance.gsplugins.com">GS Behance Portfolio Demos</a> & <a href="https://docs.gsplugins.com/gs-behance-portfolio">Documentation</a>.
    15  * Version:         3.1.0
     15 * Version:         3.1.1
    1616 * Author:          GS Plugins
    1717 * Author URI:      https://www.gsplugins.com
     
    2828 * @since 2.0.12
    2929 */
    30 define( 'GSBEH_VERSION', '3.1.0' );
     30define( 'GSBEH_VERSION', '3.1.1' );
    3131define( 'GSBEH_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
    3232define( 'GSBEH_PLUGIN_URI', plugins_url( '', __FILE__ ) );
  • gs-behance-portfolio/trunk/includes/behance.php

    r3242605 r3260188  
    3131       
    3232        $response = wp_remote_post( $this->url, [
     33            'sslverify' => false,
    3334            'headers' => $this->headers,
    3435            'cookies' => $this->cookies,
  • gs-behance-portfolio/trunk/includes/classmaps.php

    r3242599 r3260188  
    1616    'TemplateLoader'                 => 'includes/template-loader.php',
    1717    'Builder'                        => 'includes/shortcode-builder/builder.php',
     18    'Upgrade'                        => 'includes/shortcode-builder/upgrade.php',
    1819    'Integrations'                   => 'includes/integrations/integrations.php',
    1920    'Cpt'                            => 'includes/cpt.php',
    20     'Behance'                 => 'includes/behance.php',
     21    'Behance'                        => 'includes/behance.php',
    2122);
  • gs-behance-portfolio/trunk/includes/plugin.php

    r3242599 r3260188  
    6464    function disable_admin_notices() {
    6565        global $parent_file;
    66         if ( $parent_file != 'gs-behance-shortcode' ) return;
     66        if ( $parent_file != 'gs-behance' ) return;
    6767        remove_all_actions( 'network_admin_notices' );
    6868        remove_all_actions( 'user_admin_notices' );
  • gs-behance-portfolio/trunk/includes/shortcode-builder/builder.php

    r3242599 r3260188  
    77
    88class Builder {
     9
     10    use Upgrade;
    911
    1012    public $ajax = false;
     
    5153            array( $this, 'view' ),
    5254            GSBEH_PLUGIN_URI . '/assets/img/icon.png',
    53             5
     55            45
    5456        );
    5557
     
    9496            'ajaxurl'  => admin_url( 'admin-ajax.php' ),
    9597            'adminurl' => admin_url(),
    96             'siteurl'  => home_url()
     98            'siteurl'  => home_url(),
     99            'is_pro'   => gsbeh_fs()->is_paying_or_trial()
    97100        );
    98101
     
    443446            'columns_mobile'           => 12,
    444447            'projects'                 => - 1,
    445             'order'                    => 'DESC',
    446             'order_by'                 => 'published_on',
     448            'order'                    => 'ASC',
     449            'order_by'                 => 'behance_order',
    447450            'categories'               => ''
    448451        ];
     
    492495            $order_by_values = wp_list_pluck( $this->get_order_by(), 'value' );
    493496            if ( !empty( $order_by = $shortcode["shortcode_settings"]['order_by'] ) && ! in_array( $order_by, $order_by_values ) ) {
    494                 $shortcode["shortcode_settings"]['order_by'] = 'published_on';
     497                $shortcode["shortcode_settings"]['order_by'] = 'behance_order';
    495498            }
    496499
     
    764767    public function get_order_by() {
    765768        return array(
     769            [
     770                'label' => __( 'Behance Order', 'gs-behance' ),
     771                'value' => 'behance_order'
     772            ],
    766773            [
    767774                'label' => __( 'Published On', 'gs-behance' ),
     
    967974            $post->post_date_gmt  = current_time( 'mysql', 1 );
    968975            $post->post_title     = __( 'Shortcode Preview', 'gs-behance' );
    969             $post->post_content   = '[gs_behance preview="yes" id="' . $_REQUEST['gsbeh_shortcode_preview'] . '"]';
     976            $post->post_content   = '[gs_behance preview="yes" id="' . esc_attr( sanitize_key( $_REQUEST['gsbeh_shortcode_preview'] ) ) . '"]';
    970977            $post->post_status    = 'publish';
    971978            $post->comment_status = 'closed';
     
    11131120    }
    11141121
    1115     public function maybe_upgrade_data( $old_version ) {
    1116         if ( version_compare( $old_version, '3.0.3', '<' ) ) {
    1117             $this->upgrade_to_3_0_3();
    1118         }
    1119     }
    1120 
    1121     public function upgrade_to_3_0_3() {
    1122 
    1123         global $wpdb;
    1124         $shortcodes = $this->fetch_shortcodes();
    1125 
    1126         // Update Shortcode Data
    1127         foreach ( $shortcodes as $shortcode ) {
    1128 
    1129             if ( isset( $shortcode['userid'] ) && isset( $shortcode['count'] ) ) {
    1130 
    1131                 $shortcode['shortcode_settings'] = json_decode( $shortcode['shortcode_settings'], true );
    1132 
    1133                 $shortcode['shortcode_settings']['userid']   = $shortcode['userid'];
    1134                 $shortcode['shortcode_settings']['count']    = $shortcode['count'];
    1135                 $shortcode['shortcode_settings']['textarea'] = $shortcode['textarea'];
    1136 
    1137                 $shortcode['shortcode_settings'] = $this->validate_shortcode_settings( $shortcode['shortcode_settings'] );
    1138 
    1139                 $data = array(
    1140                     "shortcode_settings" => json_encode( $shortcode['shortcode_settings'] )
    1141                 );
    1142 
    1143                 $tableName = plugin()->db->get_table_name( 'shortcodes' );
    1144                 $wpdb->update( $tableName, $data, array( 'id' => $shortcode['id'] ), $this->get_db_columns() );
    1145 
    1146                 wp_cache_delete( 'gsbeh_shortcodes', 'gs_behance' );
    1147 
    1148             }
    1149         }
    1150 
    1151         // Removed field, count, userid columns
    1152         $shortcodeTableName = plugin()->db->get_table_name( 'shortcodes' );
    1153         $query = "SELECT COLUMN_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE table_name = '%s' AND column_name = %s";
    1154 
    1155         if ( ! empty( $wpdb->get_results( $wpdb->prepare( $query, $shortcodeTableName, 'field' ) ) ) ) {
    1156             $wpdb->query( "ALTER TABLE $shortcodeTableName DROP field" );
    1157         }
    1158 
    1159         if ( ! empty( $wpdb->get_results( $wpdb->prepare( $query, $shortcodeTableName, 'count' ) ) ) ) {
    1160             $wpdb->query( "ALTER TABLE $shortcodeTableName DROP count" );
    1161         }
    1162 
    1163         if ( ! empty( $wpdb->get_results( $wpdb->prepare( $query, $shortcodeTableName, 'userid' ) ) ) ) {
    1164             $wpdb->query( "ALTER TABLE $shortcodeTableName DROP userid" );
    1165         }
    1166 
    1167     }
    1168 
    11691122}
  • gs-behance-portfolio/trunk/includes/shortcode.php

    r3242599 r3260188  
    120120        $order         = $shortcode_settings['order'];
    121121        $order_by      = $shortcode_settings['order_by'];
    122         $is_pagination = $shortcode_settings['pagination'];
    123         $pagination    = (int) $shortcode_settings['number_of_paginate_items'];
    124122        $categories    = $shortcode_settings['categories'];
     123        $pagination    = $count;
     124        $is_pagination = false;
     125       
     126        if ( gsbeh_fs()->is_paying_or_trial() ) {
     127            $pagination    = (int) $shortcode_settings['number_of_paginate_items'];
     128            $is_pagination = wp_validate_boolean( $shortcode_settings['pagination'] );
     129        }
    125130
    126131        $projects_count = plugin()->data->has_projects( $username );
     
    128133
    129134        if ( ! gsbeh_fs()->is_paying_or_trial() && ( $count > 12 ) ) $count = 12;
    130         if ( ! gsbeh_fs()->is_paying_or_trial() && ( $pagination > 12 ) ) $pagination = 12;
    131135       
    132136        if ( ! $projects_count || $projects_count < $count ) {
  • gs-behance-portfolio/trunk/readme.txt

    r3242599 r3260188  
    55Tested up to: 6.7
    66Requires PHP: 5.6
    7 Stable tag: 3.1.0
     7Stable tag: 3.1.1
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    270270
    271271== Changelog ==
     272= Version 3.1.1 [23rd Mar 2025] =
     273* [Added]: Upgrader for seamless updates. 
     274* [Added]: Option to set Behance order. 
     275* [Fixed]: Admin notices display issue. 
     276* [Fixed]: Conflict between item count and pagination. 
     277* [Fixed]: Unauthenticated arbitrary shortcode execution. 
     278* [Updated]: Menu priority.
     279
    272280= Version 3.1.0 [18th Feb 2025] =
    273281* [Improved]: Rewritten Behance Plugin.
     
    366374
    367375== Upgrade notice ==
     376= Version 3.1.1 [23rd Mar 2025] =
     377* [Added]: Upgrader for seamless updates. 
     378* [Added]: Option to set Behance order. 
     379* [Fixed]: Admin notices display issue. 
     380* [Fixed]: Conflict between item count and pagination. 
     381* [Fixed]: Unauthenticated arbitrary shortcode execution. 
     382* [Updated]: Menu priority.
     383
    368384= Version 3.1.0 [18th Feb 2025] =
    369385* [Improved]: Rewritten Behance Plugin.
Note: See TracChangeset for help on using the changeset viewer.