PATH:
home
/
fengshp
/
www
/
wp-content
/
plugins
/
builder-button
/
assets
((e,t,l)=>{"use strict";e.ModuleButton=class extends e.Module{constructor(e){super(e)}static getOptions(){return[{id:"link_label",type:"text",label:"btntext",control:{selector:".builder_button span"}},{id:"type_button",type:"radio",label:"type",options:[{value:"external",name:"btn_exlnk"},{value:"row_scroll",name:"btn_scrnr"},{value:"modules_reveal",name:"btn_smolm"},{value:"modal",name:"btn_txtlb"}],wrap_class:"tb_compact_radios",new_line:!0,option_js:!0},{id:"link_button",type:"url",label:"l",wrap_class:"tb_group_element_external"},{id:"param_button",type:"radio",label:"",options:[{value:"",name:"swin"},{value:"lightbox",name:"olnknlb"},{value:"newtab",name:"olnknt"}],option_js:!0,wrap_class:"tb_group_element_external tb_compact_radios"},{type:"multi",label:"lbdim",options:[{id:"lightbox_width",type:"number",control:!1,label:"w"},{id:"lightbox_size_unit_width",type:"select",control:!1,label:"units",options:{px:"px","%":"%"}},{id:"lightbox_height",type:"number",control:!1,label:"ht"},{id:"lightbox_size_unit_height",type:"select",control:!1,label:"units",options:{px:"px","%":"%"}}],wrap_class:"tb_group_element_modal tb_group_element_lightbox"},{id:"content_modal_button",type:"wp_editor",wrap_class:"tb_group_element_modal"},{id:"modules_reveal_behavior_button",label:"btn_afclk",type:"select",options:{toggle:"btn_tglbt",hide:"btn_hdbtn"},binding:{toggle:{show:"show_less_label_button"},hide:{hide:"show_less_label_button"}},wrap_class:"tb_group_element_modules_reveal"},{id:"show_less_label_button",type:"text",label:"btn_lsbtn",wrap_class:"tb_group_element_modules_reveal"},{id:"icon_button",type:"icon",label:"icon"},{id:"color_button",type:"layout",mode:"sprite",class:"tb_colors",label:"c",color:!0,transparent:!0},{id:"color_button_hover",type:"layout",mode:"sprite",class:"tb_colors",label:"btn_hovcl",color:!0,transparent:!0},{id:"appearance_button",type:"checkbox",label:"app",appearance:!0},{type:"custom_css_id",custom_css:"add_css_button"}]}static getGroup(){return["addon"]}static default(){const e=l.i18n.label;return{link_label:e.btntext,show_less_label_button:e.btn_shls,link_button:"https://themify.me"}}getExcerpt(t){const l=t||this.get("mod_settings");return e.Helper.limitString(l.link_label)}static builderSave(e){const t={appearance_button:!1,modules_reveal_behavior_button:"toggle",lightbox_size_unit_width:"px",lightbox_size_unit_height:"px",color_button:"default",color_button_hover:"default",type_button:"external"},l=e.type_button||"external";for(let l in t)e[l]===t[l]&&delete e[l];"|"===e.appearance_button&&delete e.appearance_button,"external"!==l&&delete e.link_button,e.link_button||delete e.param_button,(e.modules_reveal_behavior_button||"modules_reveal"!==l)&&("modules_reveal"!==l&&delete e.modules_reveal_behavior_button,delete e.show_less_label_button),"modal"!==l&&("lightbox"!==e.param_button&&(delete e.lightbox_width,delete e.lightbox_height),delete e.content_modal_button),e.lightbox_width||delete e.lightbox_size_unit_width,e.lightbox_height||delete e.lightbox_size_unit_height,super.builderSave(e)}preview(l){const o="default"!==l.color_button&&l.color_button?l.color_button:"tb_default_color",n=["module","module-button","default"!==l.color_button_hover&&l.color_button_hover?l.color_button_hover:"tb_default_color"],a=t(),_=t("a","ui builder_button "+o),s=t("span");if(l.add_css_button&&n.push(l.add_css_button),a.className=n.join(" "),l.appearance_button&&(_.className+=" "+l.appearance_button.replace(/\|/g," ")),l.icon_button){const o=t("span");o.appendChild(e.Helper.getIcon(l.icon_button)),_.append(o,document.createTextNode(" "))}return _.appendChild(this.constructor.setEditableContent(s,"link_label",l.link_label)),a.appendChild(_),a}}})(tb_app,tb_createElement,themifyBuilder);
[+]
..
[-] active.js
[edit]
[-] scripts.js
[edit]
[-] style.min.css
[edit]
[-] scripts.js.gz
[edit]
[-] active.js.gz
[edit]
[-] style.min.css.gz
[edit]