Hustle – Pop-Ups, Slide-ins and Email Opt-ins - Version 4.6.1.1

Version Description

  • New: Added Contextual Help to the PopUp editor to show supported shortcodes.
  • Fix: Logic of rule "[Not] On specific URL" corrected.
  • Fix: Close forever now works also via click on background layer.
  • Better: Improved info on supported shortcodes.
Download this release

Release Info

Developer WPMUDEV
Plugin Icon 128x128 Hustle – Pop-Ups, Slide-ins and Email Opt-ins
Version 4.6.1.1
Comparing to
See all releases

Code changes from version 4.6 to 4.6.1.1

changelog.txt CHANGED
@@ -4,6 +4,18 @@ Author: Barry (Incsub), Marko Miljus (Incsub), Philipp Stracker (Incsub)
4
  Change Log:
5
  ----------------------------------------------------------------------
6
 
 
 
 
 
 
 
 
 
 
 
 
 
7
  4.6 - 2014-08-22
8
  ----------------------------------------------------------------------
9
  - Completely re-build the UI from ground up!
4
  Change Log:
5
  ----------------------------------------------------------------------
6
 
7
+ 4.6.1.1
8
+ ----------------------------------------------------------------------
9
+ - New: Added Contextual Help to the PopUp editor to show supported shortcodes.
10
+ - Fix: Logic of rule "[Not] On specific URL" corrected.
11
+ - Fix: Close forever now works also via click on background layer.
12
+ - Better: Improved info on supported shortcodes.
13
+
14
+ 4.6.1
15
+ ----------------------------------------------------------------------
16
+ - Fix: For some users the plugin was not loading after update to 4.6
17
+ - Fix: Old Popups will now replace shortcodes correctly.
18
+
19
  4.6 - 2014-08-22
20
  ----------------------------------------------------------------------
21
  - Completely re-build the UI from ground up!
css/popup-admin.css CHANGED
@@ -1,3 +1,3 @@
1
- .post-type-inc_popup .status-icon{color:#CCC;width:30px;font-size:16px;line-height:20px;height:20px}.post-type-inc_popup .status-icon:before{content:"\f153"}.post-type-inc_popup .status-active .status-icon,.post-type-inc_popup .status-publish .status-icon{color:#090;font-size:30px}.post-type-inc_popup .status-active .status-icon:before,.post-type-inc_popup .status-publish .status-icon:before{content:"\f147"}.post-type-inc_popup .status-trash .status-icon:before{content:"\f182"}select.block,textarea.block,input.block{margin-left:0;margin-right:0;display:block;width:100%}textarea.block{height:7.2em}.wp-admin select{vertical-align:top;margin-top:0}.inp-small{width:75px}.inp-row{min-height:32px}.inp-row label.inp-height{margin:7px 0 0;display:inline-block}.inactive{opacity:.35;position:relative}.inactive:before{content:'';position:absolute;top:0;left:0;right:0;bottom:0;z-index:10000}.inactive-anim{transition:opacity .3s}fieldset{border:1px solid #DDD;padding:8px;margin:0 0 10px}fieldset:last-child{margin-bottom:0}div.msg-ok,div.msg-err{padding:0 0.6em;padding:1px 12px;background-color:#FAFAFA;-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);clear:both;margin:15px 0 0}div.msg-ok{border-left:4px solid #7AD03A}div.msg-err{border-left:4px solid #DD3D36}.tbl-shortcodes{margin-top:20px;max-width:920px}.tbl-shortcodes .flag{width:15%;overflow:visible}.tbl-shortcodes .flag [data-tooltip]{text-align:center;cursor:default}.tbl-shortcodes .flag .wpmui-tip{text-align:center;min-width:135px}.tbl-shortcodes tbody .flag{text-align:center}.tbl-shortcodes tbody td{border-bottom:1px solid #F0F0F0}.tbl-shortcodes tbody tr:hover td{background:#FCFCFC}.tbl-shortcodes .shortcode .icon:before{content:"\f153";color:#CCC;font-size:14px;width:24px;display:inline-block}.tbl-shortcodes .shortcode.sc-admin .sc-admin .icon:before,.tbl-shortcodes .shortcode.sc-front .sc-front .icon:before{content:"\f147";color:#000;font-size:24px}.tbl-shortcodes.load-footer .load-footer,.tbl-shortcodes.load-ajax .load-ajax,.tbl-shortcodes.load-front .load-front,.tbl-shortcodes.load-anonymous .load-anonymous{background:#f0f0f0}.tbl-addons tbody td,.tbl-addons tbody th{-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,0.1);box-shadow:inset 0 -1px 0 rgba(0,0,0,0.1)}.tbl-addons code{display:inline-block;margin:0 1px 1px 0;font-size:12px}.tbl-addons .column-name{width:35%}@media screen and (max-width: 900px){.tbl-addons .column-name{width:50%}}
2
  .locked td,.locked th{color:#AAA}.locked td .locked-msg,.locked th .locked-msg{color:#333}.locked td .locked-msg:before,.locked th .locked-msg:before{content:'- '}.locked td .locked-msg:after,.locked th .locked-msg:after{content:' -'}.post-type-inc_popup .view-switch{display:none}.post-type-inc_popup .tablenav .alignleft.actions #post-query-submit,.post-type-inc_popup .tablenav .alignleft.actions select[name="m"]{display:none}.post-type-inc_popup [for="po_name-hide"]{display:none}.post-type-inc_popup .wp-list-table tbody td,.post-type-inc_popup .wp-list-table tbody th{-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,0.1);box-shadow:inset 0 -1px 0 rgba(0,0,0,0.1);padding-top:15px;padding-bottom:15px}.post-type-inc_popup .wp-list-table .column-po_order{width:10px}.post-type-inc_popup .wp-list-table tbody tr:hover .column-po_order{cursor:move;cursor:ns-resize}.post-type-inc_popup .wp-list-table tbody tr:hover .column-po_order:before{content:"\f333";width:20px;height:20px;font-size:20px;line-height:1;font-family:dashicons;text-decoration:inherit;font-weight:normal;font-style:normal;vertical-align:top;text-align:center;transition:color 0.1s ease-in 0ms;-webkit-transition:color 0.1s ease-in 0ms;-webkit-font-smoothing:antialiased}.post-type-inc_popup .wp-list-table .column-po_name .the-title{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:bold}.post-type-inc_popup .wp-list-table .column-po_cond{width:55%}@media screen and (max-width: 600px){.post-type-inc_popup .wp-list-table .column-po_cond{width:40%}}.post-type-inc_popup .wp-list-table .column-po_pos{width:30px;text-align:center;white-space:nowrap}.post-type-inc_popup .wp-list-table .column-po_state{width:60px;text-align:center}.post-type-inc_popup .wp-list-table .rule,.post-type-inc_popup .wp-list-table .rule-always{color:#FFF;padding:1px 6px;border-radius:3px;margin:0 4px 1px 0;font-size:12px;float:left}.post-type-inc_popup .wp-list-table .rule{background:#999}.post-type-inc_popup .wp-list-table .rule-always{background:#CCC}.post-type-inc_popup .wp-list-table #the-list tr:nth-child(odd){background-color:#FFF !important}.post-type-inc_popup .wp-list-table #the-list tr:nth-child(even){background-color:#F9F9F9 !important}.post-type-inc_popup .wp-list-table tr.ui-sortable-helper{box-shadow:0 1px 5px rgba(0,0,0,0.2)}.post-type-inc_popup .wp-list-table .ui-sortable-placeholder{position:relative}.post-type-inc_popup .wp-list-table .ui-sortable-placeholder .column-po_order:before{content:'X';display:block;position:absolute;background:red;width:20px;height:20px}.post-type-inc_popup .wp-list-table .ui-sortable-placeholder td{background:#DDD;height:70px;padding:0}.sticky-submit #submitdiv.closed,.sticky-submit #submitdiv{position:fixed;right:0;z-index:10;top:0;left:160px;box-shadow:0 5px 7px -3px rgba(0,0,0,0.2);background:#F5F5F5}.sticky-submit #submitdiv.closed .inside,.sticky-submit #submitdiv .inside{display:block}.sticky-submit #submitdiv.closed .hndle,.sticky-submit #submitdiv.closed .handlediv,.sticky-submit #submitdiv .hndle,.sticky-submit #submitdiv .handlediv{display:none}.sticky-submit #submitdiv.closed #misc-publishing-actions,.sticky-submit #submitdiv #misc-publishing-actions{display:none}.sticky-submit #submitdiv.closed .sticky-actions,.sticky-submit #submitdiv .sticky-actions{padding:10px}.sticky-submit #submitdiv.closed .delete-action,.sticky-submit #submitdiv .delete-action{float:left}.sticky-submit #submitdiv.closed .duplicate-action,.sticky-submit #submitdiv.closed .save-action,.sticky-submit #submitdiv.closed .preview-action,.sticky-submit #submitdiv.closed .publishing-action,.sticky-submit #submitdiv .duplicate-action,.sticky-submit #submitdiv .save-action,.sticky-submit #submitdiv .preview-action,.sticky-submit #submitdiv .publishing-action{float:right;margin-right:10px}.sticky-submit #submitdiv.closed .do-duplicate,.sticky-submit #submitdiv .do-duplicate{margin:0}.sticky-submit.folded #submitdiv{left:36px}@media only screen and (max-width: 900px){.sticky-submit.auto-fold #submitdiv{left:36px}}.sticky-submit #post-body{margin-top:75px}@media screen and (max-width: 782px){.sticky-submit #submitdiv{left:0 !important;top:46px !important}}@media screen and (max-width: 600px){.sticky-submit #submitdiv{left:0 !important;top:0 !important}}
3
  .wp-toolbar .sticky-submit #submitdiv{top:32px}.wp-toolbar .sticky-submit #post-body{margin-top:105px}#submitdiv #minor-publishing-actions{text-align:left;padding:20px 10px}#submitdiv #major-publishing-actions{z-index:10;position:relative}#submitdiv .handlediv,#submitdiv .hndle{display:none}#submitdiv .preview{float:none}#submitdiv .status{float:right;position:relative;width:100px;top:-6px}#submitdiv .status>label{float:left;line-height:26px;margin-right:10px}#submitdiv .status-hint-box{float:right}#submitdiv .status-switch{width:40px;margin:0;padding:0;float:left}#submitdiv .status-switch input{position:absolute;left:-3000px;top:-3000px;display:none}#submitdiv .status-switch .label-active,#submitdiv .status-switch .label-inactive{position:absolute;top:18px;right:0;left:0;text-align:left;z-index:0;transition:all .3s}#submitdiv .status-switch .status-box{background:#AAA;border-radius:20px;height:16px;padding:0;cursor:pointer;display:block}#submitdiv .status-switch .status-box .label-active{display:none}#submitdiv .status-switch .status-box .label-inactive{display:block}#submitdiv .status-switch .status-box .indicator{width:10px;height:10px;position:absolute;left:3px;top:3px;background:#FFF;border-radius:20px;transition:right .2s, left .2s}#submitdiv .status-switch input:checked+.status-box{background:#3A3}#submitdiv .status-switch input:checked+.status-box .indicator{left:26px}#submitdiv .status-switch input:checked+.status-box .label-active{display:block}#submitdiv .status-switch input:checked+.status-box .label-inactive{display:none}#submitdiv .preview-action .spinner,#submitdiv .publishing-action .spinner,#submitdiv .save-action .spinner{float:left}#submitdiv .submitdelete.disabled{color:#AAA !important;cursor:default}#submitdiv .delete-action{line-height:28px;vertical-align:middle;text-align:left;float:left}#submitdiv .publishing-action{text-align:right;float:right;line-height:23px}#submitdiv .do-duplicate{margin:0 10px 0 0;line-height:28px;display:inline-block}.post-type-inc_popup #post #post-body-content{height:75px}.post-type-inc_popup #post .columns-2 #postbox-container-1{padding-top:75px}.post-type-inc_popup #post #normal-sortables{min-height:0}.post-type-inc_popup #post #titlediv label{font-weight:bold;margin:5px 0;display:block}.post-type-inc_popup #post #titlediv #po_name{width:100%;max-width:800px}.post-type-inc_popup #post .postbox-container #meta-appearance{float:left;width:49%}@media screen and (max-width: 900px){.post-type-inc_popup #post .postbox-container #meta-appearance{width:100%;float:none}}.post-type-inc_popup #post .postbox-container #meta-behavior{float:right;width:49%}@media screen and (max-width: 900px){.post-type-inc_popup #post .postbox-container #meta-behavior{width:100%;float:none}}.post-type-inc_popup #post .postbox-container #meta-content,.post-type-inc_popup #post .postbox-container #meta-rules{clear:both}.post-type-inc_popup #post .content-main{margin-right:270px;min-height:400px}.post-type-inc_popup #post .content-image{position:absolute;width:250px;top:0;right:12px}.post-type-inc_popup #post .content-image .featured-img{width:224px;height:224px;margin:10px 0;background:#F8F8F8;position:relative}.post-type-inc_popup #post .content-image .featured-img .lbl-empty{display:block;height:224px;padding-top:100px;text-align:center}.post-type-inc_popup #post .content-image .featured-img.has-image:hover .reset{display:block}.post-type-inc_popup #post .content-image img{max-width:100%;max-height:100%;margin:0 auto;display:block}.post-type-inc_popup #post .content-image .reset,.post-type-inc_popup #post .content-image .reset .dashicons{font-size:13px;text-decoration:none}.post-type-inc_popup #post .content-image .reset .dashicons{display:inline}.post-type-inc_popup #post .content-image .reset{position:absolute;display:none;z-index:10;margin-top:-36px;background:rgba(255,255,255,0.85);padding:5px;height:26px;left:0;right:0;bottom:0;color:#666}.post-type-inc_popup #post .content-image .reset:hover{color:#000}.post-type-inc_popup #post .img-pos{text-align:center;margin:10px 0}.post-type-inc_popup #post .img-pos .option{display:inline-block;background:#F1F1F1;padding:12px 10px;text-align:left;margin:2px;cursor:pointer;position:relative;overflow:hidden}.post-type-inc_popup #post .img-pos .option:hover{background:#DDD}.post-type-inc_popup #post .img-pos .option .image{color:#000;padding:4px;display:inline-block;border:1px solid #666;margin:-5px;background:#FFF}.post-type-inc_popup #post .img-pos .option .image.left{margin-right:0}.post-type-inc_popup #post .img-pos .option .image.right{margin-left:0}.post-type-inc_popup #post .img-pos .option.selected{background:#0074A2;color:#FFF}.post-type-inc_popup #post .img-pos .option input{position:absolute;left:-30px;top:-30px}.post-type-inc_popup #post .add_image{padding-left:5px}.post-type-inc_popup #post .add_image .add-image-icon:before{color:#888}.post-type-inc_popup #post h3.main-content{padding-bottom:10px}.post-type-inc_popup #post .wpmui-toggle{width:40px}.post-type-inc_popup #post .wpmui-toggle-label{border:0;height:16px;background:#CCC}.post-type-inc_popup #post .wpmui-toggle-inner{display:none}.post-type-inc_popup #post .wpmui-toggle-switch{margin:3px;width:10px;height:10px;right:24px;border:0;box-shadow:none;transition:right .2s}.post-type-inc_popup #post .wpmui-toggle-checkbox:checked+.wpmui-toggle-label{background:#3A3}.post-type-inc_popup #post .wpmui-toggle-checkbox:checked+.wpmui-toggle-label .wpmui-toggle-switch{right:0}.post-type-inc_popup #post .all-rules-box,.post-type-inc_popup #post .active-rules-box{border:1px solid #E5E5E5;height:400px;padding:10px;overflow:scroll;overflow-x:hidden;overflow-y:scroll;background:#FDFDFD;box-shadow:0 1px 2px #F0F0F0 inset}.post-type-inc_popup #post .all-rules,.post-type-inc_popup #post .active-rules{list-style:none;margin:0;padding:0}.post-type-inc_popup #post .all-rules>li,.post-type-inc_popup #post .active-rules>li{padding:5px;margin:0 0 5px;line-height:20px;min-height:30px;border-radius:2px;border:1px solid #E5E5E5;background:#FEFEFE;cursor:default;position:relative}.post-type-inc_popup #post .all-rules>li:last-child,.post-type-inc_popup #post .active-rules>li:last-child{margin:0}.post-type-inc_popup #post .all-rules>li:hover,.post-type-inc_popup #post .active-rules>li:hover{border-color:#AAA;color:#000;background:#FFF;box-shadow:0 1px 3px #E9E9E9}.post-type-inc_popup #post .all-rules .wpmui-toggle,.post-type-inc_popup #post .active-rules .wpmui-toggle{margin:2px 6px}.post-type-inc_popup #post .all-rules .rule{cursor:pointer}.post-type-inc_popup #post .all-rules .rule.inactive{cursor:default}.post-type-inc_popup #post .all-rules .rule.on{background:#F7FCFE;border-color:#2EA2CC}.post-type-inc_popup #post .active-rules .rule.off{display:none !important}.post-type-inc_popup #post .active-rules .rule-title{background:#E5E5E5;padding:5px;margin:-5px;cursor:pointer}.post-type-inc_popup #post .active-rules .rule-toggle{position:absolute;right:0;top:0;width:30px;height:30px;cursor:pointer;border-left:1px solid #DCDCDC}.post-type-inc_popup #post .active-rules .rule-toggle:before{content:'\f140';line-height:30px;color:#333}.post-type-inc_popup #post .active-rules .rule.open .rule-toggle:before{content:'\f142'}.post-type-inc_popup #post .active-rules .rule-inner{display:none;margin-top:10px;padding:3px}.post-type-inc_popup #post .active-rules .rule-form{margin-top:5px;padding-top:5px}.post-type-inc_popup #post .active-rules .rule.open .rule-inner{display:block}.post-type-inc_popup #post .col-colorpicker{width:41.66%;min-width:260px;margin-bottom:10px}.post-type-inc_popup #post .wp-picker-container{width:260px}.post-type-inc_popup #post .wp-picker-container *{box-sizing:content-box}.post-type-inc_popup #post .wp-picker-container .wp-picker-holder{position:absolute;z-index:10}.post-type-inc_popup #post .wp-picker-container .iris-picker{box-shadow:0 1px 5px rgba(0,0,0,0.2)}.post-type-inc_popup #post hr{margin:16px -12px 6px;border-top:0;border-bottom:1px solid #EEE}.post-type-inc_popup #post .col-all-rules{width:320px}.post-type-inc_popup #post .col-active-rules{float:none;display:block}.post-type-inc_popup #post .wpmui-toggle{float:right;margin:6px}.post-type-inc_popup #post .slider-wrap .slider{margin:15px 10px 5px}.post-type-inc_popup #post .slider-wrap .slider-data{padding-bottom:10px;border-bottom:1px solid #EEE}#poststuff .postbox label h3{border:0;padding:0;cursor:default}.ui-slider{position:relative;text-align:left}.ui-slider .ui-slider-handle{position:absolute;z-index:2;width:1.2em;height:1.2em;cursor:default;-ms-touch-action:none;touch-action:none}.ui-slider .ui-slider-range{position:absolute;z-index:1;font-size:.7em;display:block;border:0;background-position:0 0}.ui-slider.ui-state-disabled .ui-slider-handle,.ui-slider.ui-state-disabled .ui-slider-range{filter:inherit}.ui-slider-horizontal{height:.8em}.ui-slider-horizontal .ui-slider-handle{top:-.3em;margin-left:-.6em}.ui-slider-horizontal .ui-slider-range{top:0;height:100%}.ui-slider-horizontal .ui-slider-range-min{left:0}.ui-slider-horizontal .ui-slider-range-max{right:0}.ui-slider-vertical{width:.8em;height:100px}.ui-slider-vertical .ui-slider-handle{left:-.3em;margin-left:0;margin-bottom:-.6em}.ui-slider-vertical .ui-slider-range{left:0;width:100%}.ui-slider-vertical .ui-slider-range-min{bottom:0}.ui-slider-vertical .ui-slider-range-max{top:0}.ui-widget{font-family:Verdana,Arial,sans-serif;font-size:1.1em}.ui-widget .ui-widget{font-size:1em}.ui-widget input,.ui-widget select,.ui-widget textarea,.ui-widget button{font-family:Verdana,Arial,sans-serif;font-size:1em}.ui-widget-content{border:1px solid #aaaaaa;background:#ffffff;color:#222222}.ui-widget-content a{color:#222222}.ui-widget-header{border:1px solid #aaaaaa;background:#cccccc;color:#222222;font-weight:bold}.ui-widget-header a{color:#222222}.ui-state-default,.ui-widget-content .ui-state-default,.ui-widget-header .ui-state-default{border:1px solid #d3d3d3;background:#e6e6e6;font-weight:normal;color:#555555}.ui-state-default a,.ui-state-default a:link,.ui-state-default a:visited{color:#555555;text-decoration:none}.ui-state-hover,.ui-widget-content .ui-state-hover,.ui-widget-header .ui-state-hover,.ui-state-focus,.ui-widget-content .ui-state-focus,.ui-widget-header .ui-state-focus{border:1px solid #999999;background:#dadada;font-weight:normal;color:#212121}.ui-state-hover a,.ui-state-hover a:hover,.ui-state-hover a:link,.ui-state-hover a:visited,.ui-state-focus a,.ui-state-focus a:hover,.ui-state-focus a:link,.ui-state-focus a:visited{color:#212121;text-decoration:none}.ui-state-active,.ui-widget-content .ui-state-active,.ui-widget-header .ui-state-active{border:1px solid #aaaaaa;background:#ffffff;font-weight:normal;color:#212121}.ui-state-active a,.ui-state-active a:link,.ui-state-active a:visited{color:#212121;text-decoration:none}.ui-state-highlight,.ui-widget-content .ui-state-highlight,.ui-widget-header .ui-state-highlight{border:1px solid #fcefa1;background:#fbf9ee;color:#363636}.ui-state-highlight a,.ui-widget-content .ui-state-highlight a,.ui-widget-header .ui-state-highlight a{color:#363636}.ui-state-error,.ui-widget-content .ui-state-error,.ui-widget-header .ui-state-error{border:1px solid #cd0a0a;background:#fef1ec;color:#cd0a0a}.ui-state-error a,.ui-widget-content .ui-state-error a,.ui-widget-header .ui-state-error a{color:#cd0a0a}.ui-state-error-text,.ui-widget-content .ui-state-error-text,.ui-widget-header .ui-state-error-text{color:#cd0a0a}.ui-priority-primary,.ui-widget-content .ui-priority-primary,.ui-widget-header .ui-priority-primary{font-weight:bold}.ui-priority-secondary,.ui-widget-content .ui-priority-secondary,.ui-widget-header .ui-priority-secondary{opacity:.7;filter:Alpha(Opacity=70);font-weight:normal}.ui-state-disabled,.ui-widget-content .ui-state-disabled,.ui-widget-header .ui-state-disabled{opacity:.35;filter:Alpha(Opacity=35);background-image:none}.ui-state-disabled .ui-icon{filter:Alpha(Opacity=35)}.pro-only{position:relative;margin:3px 0;clear:both}.pro-only:after{content:' ';display:table;clear:both}.pro-only .pro-note{opacity:0;position:absolute;top:-3px;left:-3px;right:-3px;bottom:-3px;text-align:center;background:rgba(0,0,0,0.6);color:#FFF;font-family:"Source Sans Pro", "Open Sans", sans-serif;font-weight:100;font-size:20px;z-index:9999;transition:opacity .2s}.pro-only .pro-note a{color:#7ed321}.pro-only:hover .pro-note{opacity:1}
1
+ .post-type-inc_popup .status-icon{color:#CCC;width:30px;font-size:16px;line-height:20px;height:20px}.post-type-inc_popup .status-icon:before{content:"\f153"}.post-type-inc_popup .status-active .status-icon,.post-type-inc_popup .status-publish .status-icon{color:#090;font-size:30px}.post-type-inc_popup .status-active .status-icon:before,.post-type-inc_popup .status-publish .status-icon:before{content:"\f147"}.post-type-inc_popup .status-trash .status-icon:before{content:"\f182"}select.block,textarea.block,input.block{margin-left:0;margin-right:0;display:block;width:100%}textarea.block{height:7.2em}.wp-admin select{vertical-align:top;margin-top:0}.inp-small{width:75px}.inp-row{min-height:32px}.inp-row label.inp-height{margin:7px 0 0;display:inline-block}.inactive{opacity:.35;position:relative}.inactive:before{content:'';position:absolute;top:0;left:0;right:0;bottom:0;z-index:10000}.inactive-anim{transition:opacity .3s}fieldset{border:1px solid #DDD;padding:8px;margin:0 0 10px}fieldset:last-child{margin-bottom:0}div.msg-ok,div.msg-err{padding:0 0.6em;padding:1px 12px;background-color:#FAFAFA;-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);clear:both;margin:15px 0 0}div.msg-ok{border-left:4px solid #7AD03A}div.msg-err{border-left:4px solid #DD3D36}.tbl-shortcodes{margin-top:20px;max-width:920px}.tbl-shortcodes .flag{width:15%;overflow:visible}.tbl-shortcodes .flag [data-tooltip]{text-align:center;cursor:default}.tbl-shortcodes .flag .wpmui-tip{text-align:center;min-width:135px}.tbl-shortcodes tbody .flag{text-align:center}.tbl-shortcodes tbody td{border-bottom:1px solid #F0F0F0}.tbl-shortcodes tbody tr:hover td{background:#FCFCFC}.tbl-shortcodes .shortcode .icon:before{content:"\f153";color:#CCC;font-size:14px;width:24px;display:inline-block}.tbl-shortcodes .shortcode.sc-admin .sc-admin .icon:before,.tbl-shortcodes .shortcode.sc-front .sc-front .icon:before{content:"\f147";color:#000;font-size:24px}.tbl-shortcodes .shortcode.sc-admin.sc-limited .sc-admin .icon:before,.tbl-shortcodes .shortcode.sc-front.sc-limited .load-front .icon:before{color:#D90}.tbl-shortcodes .legend{float:left;margin:10px 10px 10px 0}.tbl-shortcodes.load-footer .load-footer,.tbl-shortcodes.load-ajax .load-ajax,.tbl-shortcodes.load-front .load-front,.tbl-shortcodes.load-anonymous .load-anonymous{background:#f0f0f0}.tbl-addons tbody td,.tbl-addons tbody th{-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,0.1);box-shadow:inset 0 -1px 0 rgba(0,0,0,0.1)}.tbl-addons code{display:inline-block;margin:0 1px 1px 0;font-size:12px}.tbl-addons .column-name{width:35%}@media screen and (max-width: 900px){.tbl-addons .column-name{width:50%}}
2
  .locked td,.locked th{color:#AAA}.locked td .locked-msg,.locked th .locked-msg{color:#333}.locked td .locked-msg:before,.locked th .locked-msg:before{content:'- '}.locked td .locked-msg:after,.locked th .locked-msg:after{content:' -'}.post-type-inc_popup .view-switch{display:none}.post-type-inc_popup .tablenav .alignleft.actions #post-query-submit,.post-type-inc_popup .tablenav .alignleft.actions select[name="m"]{display:none}.post-type-inc_popup [for="po_name-hide"]{display:none}.post-type-inc_popup .wp-list-table tbody td,.post-type-inc_popup .wp-list-table tbody th{-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,0.1);box-shadow:inset 0 -1px 0 rgba(0,0,0,0.1);padding-top:15px;padding-bottom:15px}.post-type-inc_popup .wp-list-table .column-po_order{width:10px}.post-type-inc_popup .wp-list-table tbody tr:hover .column-po_order{cursor:move;cursor:ns-resize}.post-type-inc_popup .wp-list-table tbody tr:hover .column-po_order:before{content:"\f333";width:20px;height:20px;font-size:20px;line-height:1;font-family:dashicons;text-decoration:inherit;font-weight:normal;font-style:normal;vertical-align:top;text-align:center;transition:color 0.1s ease-in 0ms;-webkit-transition:color 0.1s ease-in 0ms;-webkit-font-smoothing:antialiased}.post-type-inc_popup .wp-list-table .column-po_name .the-title{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:bold}.post-type-inc_popup .wp-list-table .column-po_cond{width:55%}@media screen and (max-width: 600px){.post-type-inc_popup .wp-list-table .column-po_cond{width:40%}}.post-type-inc_popup .wp-list-table .column-po_pos{width:30px;text-align:center;white-space:nowrap}.post-type-inc_popup .wp-list-table .column-po_state{width:60px;text-align:center}.post-type-inc_popup .wp-list-table .rule,.post-type-inc_popup .wp-list-table .rule-always{color:#FFF;padding:1px 6px;border-radius:3px;margin:0 4px 1px 0;font-size:12px;float:left}.post-type-inc_popup .wp-list-table .rule{background:#999}.post-type-inc_popup .wp-list-table .rule-always{background:#CCC}.post-type-inc_popup .wp-list-table #the-list tr:nth-child(odd){background-color:#FFF !important}.post-type-inc_popup .wp-list-table #the-list tr:nth-child(even){background-color:#F9F9F9 !important}.post-type-inc_popup .wp-list-table tr.ui-sortable-helper{box-shadow:0 1px 5px rgba(0,0,0,0.2)}.post-type-inc_popup .wp-list-table .ui-sortable-placeholder{position:relative}.post-type-inc_popup .wp-list-table .ui-sortable-placeholder .column-po_order:before{content:'X';display:block;position:absolute;background:red;width:20px;height:20px}.post-type-inc_popup .wp-list-table .ui-sortable-placeholder td{background:#DDD;height:70px;padding:0}.sticky-submit #submitdiv.closed,.sticky-submit #submitdiv{position:fixed;right:0;z-index:10;top:0;left:160px;box-shadow:0 5px 7px -3px rgba(0,0,0,0.2);background:#F5F5F5}.sticky-submit #submitdiv.closed .inside,.sticky-submit #submitdiv .inside{display:block}.sticky-submit #submitdiv.closed .hndle,.sticky-submit #submitdiv.closed .handlediv,.sticky-submit #submitdiv .hndle,.sticky-submit #submitdiv .handlediv{display:none}.sticky-submit #submitdiv.closed #misc-publishing-actions,.sticky-submit #submitdiv #misc-publishing-actions{display:none}.sticky-submit #submitdiv.closed .sticky-actions,.sticky-submit #submitdiv .sticky-actions{padding:10px}.sticky-submit #submitdiv.closed .delete-action,.sticky-submit #submitdiv .delete-action{float:left}.sticky-submit #submitdiv.closed .duplicate-action,.sticky-submit #submitdiv.closed .save-action,.sticky-submit #submitdiv.closed .preview-action,.sticky-submit #submitdiv.closed .publishing-action,.sticky-submit #submitdiv .duplicate-action,.sticky-submit #submitdiv .save-action,.sticky-submit #submitdiv .preview-action,.sticky-submit #submitdiv .publishing-action{float:right;margin-right:10px}.sticky-submit #submitdiv.closed .do-duplicate,.sticky-submit #submitdiv .do-duplicate{margin:0}.sticky-submit.folded #submitdiv{left:36px}@media only screen and (max-width: 900px){.sticky-submit.auto-fold #submitdiv{left:36px}}.sticky-submit #post-body{margin-top:75px}@media screen and (max-width: 782px){.sticky-submit #submitdiv{left:0 !important;top:46px !important}}@media screen and (max-width: 600px){.sticky-submit #submitdiv{left:0 !important;top:0 !important}}
3
  .wp-toolbar .sticky-submit #submitdiv{top:32px}.wp-toolbar .sticky-submit #post-body{margin-top:105px}#submitdiv #minor-publishing-actions{text-align:left;padding:20px 10px}#submitdiv #major-publishing-actions{z-index:10;position:relative}#submitdiv .handlediv,#submitdiv .hndle{display:none}#submitdiv .preview{float:none}#submitdiv .status{float:right;position:relative;width:100px;top:-6px}#submitdiv .status>label{float:left;line-height:26px;margin-right:10px}#submitdiv .status-hint-box{float:right}#submitdiv .status-switch{width:40px;margin:0;padding:0;float:left}#submitdiv .status-switch input{position:absolute;left:-3000px;top:-3000px;display:none}#submitdiv .status-switch .label-active,#submitdiv .status-switch .label-inactive{position:absolute;top:18px;right:0;left:0;text-align:left;z-index:0;transition:all .3s}#submitdiv .status-switch .status-box{background:#AAA;border-radius:20px;height:16px;padding:0;cursor:pointer;display:block}#submitdiv .status-switch .status-box .label-active{display:none}#submitdiv .status-switch .status-box .label-inactive{display:block}#submitdiv .status-switch .status-box .indicator{width:10px;height:10px;position:absolute;left:3px;top:3px;background:#FFF;border-radius:20px;transition:right .2s, left .2s}#submitdiv .status-switch input:checked+.status-box{background:#3A3}#submitdiv .status-switch input:checked+.status-box .indicator{left:26px}#submitdiv .status-switch input:checked+.status-box .label-active{display:block}#submitdiv .status-switch input:checked+.status-box .label-inactive{display:none}#submitdiv .preview-action .spinner,#submitdiv .publishing-action .spinner,#submitdiv .save-action .spinner{float:left}#submitdiv .submitdelete.disabled{color:#AAA !important;cursor:default}#submitdiv .delete-action{line-height:28px;vertical-align:middle;text-align:left;float:left}#submitdiv .publishing-action{text-align:right;float:right;line-height:23px}#submitdiv .do-duplicate{margin:0 10px 0 0;line-height:28px;display:inline-block}.post-type-inc_popup #post #post-body-content{height:75px}.post-type-inc_popup #post .columns-2 #postbox-container-1{padding-top:75px}.post-type-inc_popup #post #normal-sortables{min-height:0}.post-type-inc_popup #post #titlediv label{font-weight:bold;margin:5px 0;display:block}.post-type-inc_popup #post #titlediv #po_name{width:100%;max-width:800px}.post-type-inc_popup #post .postbox-container #meta-appearance{float:left;width:49%}@media screen and (max-width: 900px){.post-type-inc_popup #post .postbox-container #meta-appearance{width:100%;float:none}}.post-type-inc_popup #post .postbox-container #meta-behavior{float:right;width:49%}@media screen and (max-width: 900px){.post-type-inc_popup #post .postbox-container #meta-behavior{width:100%;float:none}}.post-type-inc_popup #post .postbox-container #meta-content,.post-type-inc_popup #post .postbox-container #meta-rules{clear:both}.post-type-inc_popup #post .content-main{margin-right:270px;min-height:400px}.post-type-inc_popup #post .content-image{position:absolute;width:250px;top:0;right:12px}.post-type-inc_popup #post .content-image .featured-img{width:224px;height:224px;margin:10px 0;background:#F8F8F8;position:relative}.post-type-inc_popup #post .content-image .featured-img .lbl-empty{display:block;height:224px;padding-top:100px;text-align:center}.post-type-inc_popup #post .content-image .featured-img.has-image:hover .reset{display:block}.post-type-inc_popup #post .content-image img{max-width:100%;max-height:100%;margin:0 auto;display:block}.post-type-inc_popup #post .content-image .reset,.post-type-inc_popup #post .content-image .reset .dashicons{font-size:13px;text-decoration:none}.post-type-inc_popup #post .content-image .reset .dashicons{display:inline}.post-type-inc_popup #post .content-image .reset{position:absolute;display:none;z-index:10;margin-top:-36px;background:rgba(255,255,255,0.85);padding:5px;height:26px;left:0;right:0;bottom:0;color:#666}.post-type-inc_popup #post .content-image .reset:hover{color:#000}.post-type-inc_popup #post .img-pos{text-align:center;margin:10px 0}.post-type-inc_popup #post .img-pos .option{display:inline-block;background:#F1F1F1;padding:12px 10px;text-align:left;margin:2px;cursor:pointer;position:relative;overflow:hidden}.post-type-inc_popup #post .img-pos .option:hover{background:#DDD}.post-type-inc_popup #post .img-pos .option .image{color:#000;padding:4px;display:inline-block;border:1px solid #666;margin:-5px;background:#FFF}.post-type-inc_popup #post .img-pos .option .image.left{margin-right:0}.post-type-inc_popup #post .img-pos .option .image.right{margin-left:0}.post-type-inc_popup #post .img-pos .option.selected{background:#0074A2;color:#FFF}.post-type-inc_popup #post .img-pos .option input{position:absolute;left:-30px;top:-30px}.post-type-inc_popup #post .add_image{padding-left:5px}.post-type-inc_popup #post .add_image .add-image-icon:before{color:#888}.post-type-inc_popup #post h3.main-content{padding-bottom:10px}.post-type-inc_popup #post .wpmui-toggle{width:40px}.post-type-inc_popup #post .wpmui-toggle-label{border:0;height:16px;background:#CCC}.post-type-inc_popup #post .wpmui-toggle-inner{display:none}.post-type-inc_popup #post .wpmui-toggle-switch{margin:3px;width:10px;height:10px;right:24px;border:0;box-shadow:none;transition:right .2s}.post-type-inc_popup #post .wpmui-toggle-checkbox:checked+.wpmui-toggle-label{background:#3A3}.post-type-inc_popup #post .wpmui-toggle-checkbox:checked+.wpmui-toggle-label .wpmui-toggle-switch{right:0}.post-type-inc_popup #post .all-rules-box,.post-type-inc_popup #post .active-rules-box{border:1px solid #E5E5E5;height:400px;padding:10px;overflow:scroll;overflow-x:hidden;overflow-y:scroll;background:#FDFDFD;box-shadow:0 1px 2px #F0F0F0 inset}.post-type-inc_popup #post .all-rules,.post-type-inc_popup #post .active-rules{list-style:none;margin:0;padding:0}.post-type-inc_popup #post .all-rules>li,.post-type-inc_popup #post .active-rules>li{padding:5px;margin:0 0 5px;line-height:20px;min-height:30px;border-radius:2px;border:1px solid #E5E5E5;background:#FEFEFE;cursor:default;position:relative}.post-type-inc_popup #post .all-rules>li:last-child,.post-type-inc_popup #post .active-rules>li:last-child{margin:0}.post-type-inc_popup #post .all-rules>li:hover,.post-type-inc_popup #post .active-rules>li:hover{border-color:#AAA;color:#000;background:#FFF;box-shadow:0 1px 3px #E9E9E9}.post-type-inc_popup #post .all-rules .wpmui-toggle,.post-type-inc_popup #post .active-rules .wpmui-toggle{margin:2px 6px}.post-type-inc_popup #post .all-rules .rule{cursor:pointer}.post-type-inc_popup #post .all-rules .rule.inactive{cursor:default}.post-type-inc_popup #post .all-rules .rule.on{background:#F7FCFE;border-color:#2EA2CC}.post-type-inc_popup #post .active-rules .rule.off{display:none !important}.post-type-inc_popup #post .active-rules .rule-title{background:#E5E5E5;padding:5px;margin:-5px;cursor:pointer}.post-type-inc_popup #post .active-rules .rule-toggle{position:absolute;right:0;top:0;width:30px;height:30px;cursor:pointer;border-left:1px solid #DCDCDC}.post-type-inc_popup #post .active-rules .rule-toggle:before{content:'\f140';line-height:30px;color:#333}.post-type-inc_popup #post .active-rules .rule.open .rule-toggle:before{content:'\f142'}.post-type-inc_popup #post .active-rules .rule-inner{display:none;margin-top:10px;padding:3px}.post-type-inc_popup #post .active-rules .rule-form{margin-top:5px;padding-top:5px}.post-type-inc_popup #post .active-rules .rule.open .rule-inner{display:block}.post-type-inc_popup #post .col-colorpicker{width:41.66%;min-width:260px;margin-bottom:10px}.post-type-inc_popup #post .wp-picker-container{width:260px}.post-type-inc_popup #post .wp-picker-container *{box-sizing:content-box}.post-type-inc_popup #post .wp-picker-container .wp-picker-holder{position:absolute;z-index:10}.post-type-inc_popup #post .wp-picker-container .iris-picker{box-shadow:0 1px 5px rgba(0,0,0,0.2)}.post-type-inc_popup #post hr{margin:16px -12px 6px;border-top:0;border-bottom:1px solid #EEE}.post-type-inc_popup #post .col-all-rules{width:320px}.post-type-inc_popup #post .col-active-rules{float:none;display:block}.post-type-inc_popup #post .wpmui-toggle{float:right;margin:6px}.post-type-inc_popup #post .slider-wrap .slider{margin:15px 10px 5px}.post-type-inc_popup #post .slider-wrap .slider-data{padding-bottom:10px;border-bottom:1px solid #EEE}#poststuff .postbox label h3{border:0;padding:0;cursor:default}.ui-slider{position:relative;text-align:left}.ui-slider .ui-slider-handle{position:absolute;z-index:2;width:1.2em;height:1.2em;cursor:default;-ms-touch-action:none;touch-action:none}.ui-slider .ui-slider-range{position:absolute;z-index:1;font-size:.7em;display:block;border:0;background-position:0 0}.ui-slider.ui-state-disabled .ui-slider-handle,.ui-slider.ui-state-disabled .ui-slider-range{filter:inherit}.ui-slider-horizontal{height:.8em}.ui-slider-horizontal .ui-slider-handle{top:-.3em;margin-left:-.6em}.ui-slider-horizontal .ui-slider-range{top:0;height:100%}.ui-slider-horizontal .ui-slider-range-min{left:0}.ui-slider-horizontal .ui-slider-range-max{right:0}.ui-slider-vertical{width:.8em;height:100px}.ui-slider-vertical .ui-slider-handle{left:-.3em;margin-left:0;margin-bottom:-.6em}.ui-slider-vertical .ui-slider-range{left:0;width:100%}.ui-slider-vertical .ui-slider-range-min{bottom:0}.ui-slider-vertical .ui-slider-range-max{top:0}.ui-widget{font-family:Verdana,Arial,sans-serif;font-size:1.1em}.ui-widget .ui-widget{font-size:1em}.ui-widget input,.ui-widget select,.ui-widget textarea,.ui-widget button{font-family:Verdana,Arial,sans-serif;font-size:1em}.ui-widget-content{border:1px solid #aaaaaa;background:#ffffff;color:#222222}.ui-widget-content a{color:#222222}.ui-widget-header{border:1px solid #aaaaaa;background:#cccccc;color:#222222;font-weight:bold}.ui-widget-header a{color:#222222}.ui-state-default,.ui-widget-content .ui-state-default,.ui-widget-header .ui-state-default{border:1px solid #d3d3d3;background:#e6e6e6;font-weight:normal;color:#555555}.ui-state-default a,.ui-state-default a:link,.ui-state-default a:visited{color:#555555;text-decoration:none}.ui-state-hover,.ui-widget-content .ui-state-hover,.ui-widget-header .ui-state-hover,.ui-state-focus,.ui-widget-content .ui-state-focus,.ui-widget-header .ui-state-focus{border:1px solid #999999;background:#dadada;font-weight:normal;color:#212121}.ui-state-hover a,.ui-state-hover a:hover,.ui-state-hover a:link,.ui-state-hover a:visited,.ui-state-focus a,.ui-state-focus a:hover,.ui-state-focus a:link,.ui-state-focus a:visited{color:#212121;text-decoration:none}.ui-state-active,.ui-widget-content .ui-state-active,.ui-widget-header .ui-state-active{border:1px solid #aaaaaa;background:#ffffff;font-weight:normal;color:#212121}.ui-state-active a,.ui-state-active a:link,.ui-state-active a:visited{color:#212121;text-decoration:none}.ui-state-highlight,.ui-widget-content .ui-state-highlight,.ui-widget-header .ui-state-highlight{border:1px solid #fcefa1;background:#fbf9ee;color:#363636}.ui-state-highlight a,.ui-widget-content .ui-state-highlight a,.ui-widget-header .ui-state-highlight a{color:#363636}.ui-state-error,.ui-widget-content .ui-state-error,.ui-widget-header .ui-state-error{border:1px solid #cd0a0a;background:#fef1ec;color:#cd0a0a}.ui-state-error a,.ui-widget-content .ui-state-error a,.ui-widget-header .ui-state-error a{color:#cd0a0a}.ui-state-error-text,.ui-widget-content .ui-state-error-text,.ui-widget-header .ui-state-error-text{color:#cd0a0a}.ui-priority-primary,.ui-widget-content .ui-priority-primary,.ui-widget-header .ui-priority-primary{font-weight:bold}.ui-priority-secondary,.ui-widget-content .ui-priority-secondary,.ui-widget-header .ui-priority-secondary{opacity:.7;filter:Alpha(Opacity=70);font-weight:normal}.ui-state-disabled,.ui-widget-content .ui-state-disabled,.ui-widget-header .ui-state-disabled{opacity:.35;filter:Alpha(Opacity=35);background-image:none}.ui-state-disabled .ui-icon{filter:Alpha(Opacity=35)}.pro-only{position:relative;margin:3px 0;clear:both}.pro-only:after{content:' ';display:table;clear:both}.pro-only .pro-note{opacity:0;position:absolute;top:-3px;left:-3px;right:-3px;bottom:-3px;text-align:center;background:rgba(0,0,0,0.6);color:#FFF;font-family:"Source Sans Pro", "Open Sans", sans-serif;font-weight:100;font-size:20px;z-index:9999;transition:opacity .2s}.pro-only .pro-note a{color:#7ed321}.pro-only:hover .pro-note{opacity:1}
css/tpl/old-default/template.php CHANGED
@@ -24,7 +24,7 @@ if ( defined( 'PO_ALLOW_CONTENT_FILTERING' ) && PO_ALLOW_CONTENT_FILTERING ) {
24
  <a href="#" class="wdpu-close" title="<?php _e( 'Close this box', PO_LANG ); ?>"></a>
25
  <div id="message" class="wdpu-msg resize" style="<?php echo esc_attr( $this->code->colors ); ?>">
26
 
27
- <?php echo '' . $content; ?>
28
 
29
  <div class="clear"></div>
30
  <?php if ( $this->can_hide ) : ?>
24
  <a href="#" class="wdpu-close" title="<?php _e( 'Close this box', PO_LANG ); ?>"></a>
25
  <div id="message" class="wdpu-msg resize" style="<?php echo esc_attr( $this->code->colors ); ?>">
26
 
27
+ <?php echo '' . do_shortcode( $content ); ?>
28
 
29
  <div class="clear"></div>
30
  <?php if ( $this->can_hide ) : ?>
css/tpl/old-fixed/template.php CHANGED
@@ -24,7 +24,7 @@ if ( defined( 'PO_ALLOW_CONTENT_FILTERING' ) && PO_ALLOW_CONTENT_FILTERING ) {
24
  <a href="#" class="wdpu-close" title="<?php _e( 'Close this box', PO_LANG ); ?>"></a>
25
  <div id="message" class="wdpu-msg resize" style="<?php echo esc_attr( $this->code->colors ); ?>">
26
 
27
- <?php echo '' . $content; ?>
28
 
29
  <div class="clear"></div>
30
  <?php if ( $this->can_hide ) : ?>
24
  <a href="#" class="wdpu-close" title="<?php _e( 'Close this box', PO_LANG ); ?>"></a>
25
  <div id="message" class="wdpu-msg resize" style="<?php echo esc_attr( $this->code->colors ); ?>">
26
 
27
+ <?php echo '' . do_shortcode( $content ); ?>
28
 
29
  <div class="clear"></div>
30
  <?php if ( $this->can_hide ) : ?>
css/tpl/old-fullbackground/template.php CHANGED
@@ -24,7 +24,7 @@ if ( defined( 'PO_ALLOW_CONTENT_FILTERING' ) && PO_ALLOW_CONTENT_FILTERING ) {
24
  <a href="#" class="wdpu-close" title="<?php _e( 'Close this box', PO_LANG ); ?>"></a>
25
  <div id="message" class="wdpu-msg resize" style="<?php echo esc_attr( $this->code->colors ); ?>">
26
 
27
- <?php echo '' . $content; ?>
28
 
29
  <div class="clear"></div>
30
  <?php if ( $this->can_hide ) : ?>
24
  <a href="#" class="wdpu-close" title="<?php _e( 'Close this box', PO_LANG ); ?>"></a>
25
  <div id="message" class="wdpu-msg resize" style="<?php echo esc_attr( $this->code->colors ); ?>">
26
 
27
+ <?php echo '' . do_shortcode( $content ); ?>
28
 
29
  <div class="clear"></div>
30
  <?php if ( $this->can_hide ) : ?>
inc/addons/class-popup-addon-headerfooter.php CHANGED
@@ -86,6 +86,10 @@ class IncPopupAddon_HeaderFooter {
86
  * @since 1.0.0
87
  */
88
  static public function check() {
 
 
 
 
89
  // Build the url to call, NOTE: uses home_url and thus requires WordPress 3.0
90
  $url = add_query_arg(
91
  array( 'test-head' => '', 'test-footer' => '' ),
@@ -103,7 +107,7 @@ class IncPopupAddon_HeaderFooter {
103
 
104
  if ( $code !== 200 ) { return; }
105
 
106
- $resp = (object) array(
107
  'okay' => false,
108
  'msg' => array(),
109
  'shortcodes' => array(),
@@ -118,13 +122,13 @@ class IncPopupAddon_HeaderFooter {
118
 
119
  if ( ! strstr( $html, '<!--wp_head-->' ) ) {
120
  // wp_head is missing
121
- $resp->msg[] = __(
122
  'Critical: Call to <code>wp_head();</code> is missing! It ' .
123
  'should appear directly before <code>&lt;/head&gt;</code>', PO_LANG
124
  );
125
  } else if ( ! strstr( $html, '<!--wp_head--></head>' ) ) {
126
  // wp_head is not in correct location.
127
- $resp->msg[] = __(
128
  'Notice: Call to <code>wp_head();</code> exists but it is ' .
129
  'not called directly before <code>&lt;/head&gt;</code>', PO_LANG
130
  );
@@ -132,13 +136,13 @@ class IncPopupAddon_HeaderFooter {
132
 
133
  if ( ! strstr( $html, '<!--wp_footer-->' ) ) {
134
  // wp_footer is missing.
135
- $resp->msg[] = __(
136
  'Critical: Call to <code>wp_footer();</code> is missing! It ' .
137
  'should appear directly before <code>&lt;/body&gt;</code>', PO_LANG
138
  );
139
  } else if ( ! strstr( $html, '<!--wp_footer--></body>' ) ) {
140
  // wp_footer is not in correct location.
141
- $resp->msg[] = __(
142
  'Notice: Call to <code>wp_footer();</code> exists but it is ' .
143
  'not called directly before <code>&lt;/body&gt;</code>', PO_LANG
144
  );
@@ -148,19 +152,20 @@ class IncPopupAddon_HeaderFooter {
148
  $has_shortcodes = preg_match( '/<!--shortcodes:\[([^\]]*)\]-->/', $html, $matches );
149
  if ( $has_shortcodes ) {
150
  $items = $matches[1];
151
- $resp->shortcodes = explode( ',', $items );
152
  }
153
 
154
  // Display any errors that we found.
155
- if ( empty( $resp->msg ) ) {
156
- $resp->okay = true;
157
- $resp->msg[] = __(
158
  'Okay: Your current theme uses <code>wp_head();</code> and ' .
159
  '<code>wp_footer();</code> correctly!', PO_LANG
160
  );
 
161
  }
162
 
163
- return $resp;
164
  }
165
  };
166
 
86
  * @since 1.0.0
87
  */
88
  static public function check() {
89
+ static $Resp = null;
90
+
91
+ if ( null === $Resp ) {
92
+
93
  // Build the url to call, NOTE: uses home_url and thus requires WordPress 3.0
94
  $url = add_query_arg(
95
  array( 'test-head' => '', 'test-footer' => '' ),
107
 
108
  if ( $code !== 200 ) { return; }
109
 
110
+ $Resp = (object) array(
111
  'okay' => false,
112
  'msg' => array(),
113
  'shortcodes' => array(),
122
 
123
  if ( ! strstr( $html, '<!--wp_head-->' ) ) {
124
  // wp_head is missing
125
+ $Resp->msg[] = __(
126
  'Critical: Call to <code>wp_head();</code> is missing! It ' .
127
  'should appear directly before <code>&lt;/head&gt;</code>', PO_LANG
128
  );
129
  } else if ( ! strstr( $html, '<!--wp_head--></head>' ) ) {
130
  // wp_head is not in correct location.
131
+ $Resp->msg[] = __(
132
  'Notice: Call to <code>wp_head();</code> exists but it is ' .
133
  'not called directly before <code>&lt;/head&gt;</code>', PO_LANG
134
  );
136
 
137
  if ( ! strstr( $html, '<!--wp_footer-->' ) ) {
138
  // wp_footer is missing.
139
+ $Resp->msg[] = __(
140
  'Critical: Call to <code>wp_footer();</code> is missing! It ' .
141
  'should appear directly before <code>&lt;/body&gt;</code>', PO_LANG
142
  );
143
  } else if ( ! strstr( $html, '<!--wp_footer--></body>' ) ) {
144
  // wp_footer is not in correct location.
145
+ $Resp->msg[] = __(
146
  'Notice: Call to <code>wp_footer();</code> exists but it is ' .
147
  'not called directly before <code>&lt;/body&gt;</code>', PO_LANG
148
  );
152
  $has_shortcodes = preg_match( '/<!--shortcodes:\[([^\]]*)\]-->/', $html, $matches );
153
  if ( $has_shortcodes ) {
154
  $items = $matches[1];
155
+ $Resp->shortcodes = explode( ',', $items );
156
  }
157
 
158
  // Display any errors that we found.
159
+ if ( empty( $Resp->msg ) ) {
160
+ $Resp->okay = true;
161
+ $Resp->msg[] = __(
162
  'Okay: Your current theme uses <code>wp_head();</code> and ' .
163
  '<code>wp_footer();</code> correctly!', PO_LANG
164
  );
165
+ }
166
  }
167
 
168
+ return $Resp;
169
  }
170
  };
171
 
inc/class-popup-admin.php CHANGED
@@ -1,6 +1,7 @@
1
  <?php
2
  // Load dependencies.
3
  require_once PO_INC_DIR . 'class-popup-base.php';
 
4
 
5
  /**
6
  * Defines the popup class for admin pages.
@@ -17,6 +18,13 @@ class IncPopup extends IncPopupBase {
17
  static public function instance() {
18
  static $Inst = null;
19
 
 
 
 
 
 
 
 
20
  if ( null === $Inst ) {
21
  $Inst = new IncPopup();
22
  }
@@ -307,6 +315,12 @@ class IncPopup extends IncPopupBase {
307
  break;
308
 
309
  default:
 
 
 
 
 
 
310
  return;
311
  }
312
 
@@ -341,9 +355,12 @@ class IncPopup extends IncPopupBase {
341
  if ( @$_POST['action'] == 'updatesettings' ) {
342
  check_admin_referer( 'update-popup-settings' );
343
 
 
 
344
  $settings = array();
345
  $settings['loadingmethod'] = @$_POST['po_option']['loadingmethod'];
346
- $settings['geo_db'] = isset( $_POST['po_option']['geo_db'] );
 
347
 
348
  $rules = @$_POST['po_option']['rules'];
349
  if ( ! is_array( $rules ) ) { $rules = array(); }
@@ -865,7 +882,7 @@ class IncPopup extends IncPopupBase {
865
 
866
  // Show the new item in the editor.
867
  $new_url = remove_query_arg( array( 'post', 'do' ) );
868
- $new_url = add_query_arg( array( 'post' => $item->id ), $new_url );
869
  wp_safe_redirect( $new_url );
870
  die();
871
 
1
  <?php
2
  // Load dependencies.
3
  require_once PO_INC_DIR . 'class-popup-base.php';
4
+ require_once PO_INC_DIR . 'class-popup-help.php';
5
 
6
  /**
7
  * Defines the popup class for admin pages.
18
  static public function instance() {
19
  static $Inst = null;
20
 
21
+ // We can initialize the plugin once we know the current user:
22
+ // There is a preference for global popups that needs to know the user.
23
+ if ( ! did_action( 'set_current_user' ) ) {
24
+ add_action( 'set_current_user', array( __CLASS__, 'instance' ) );
25
+ return null;
26
+ }
27
+
28
  if ( null === $Inst ) {
29
  $Inst = new IncPopup();
30
  }
315
  break;
316
 
317
  default:
318
+ /**
319
+ * Allow other modules to handle their own ajax requests.
320
+ *
321
+ * @since 4.6.1.1
322
+ */
323
+ do_action( 'popup-ajax-' . $action );
324
  return;
325
  }
326
 
355
  if ( @$_POST['action'] == 'updatesettings' ) {
356
  check_admin_referer( 'update-popup-settings' );
357
 
358
+ $old_settings = IncPopupDatabase::get_settings();
359
+
360
  $settings = array();
361
  $settings['loadingmethod'] = @$_POST['po_option']['loadingmethod'];
362
+ $settings['geo_lookup'] = @$_POST['po_option']['geo_lookup'];
363
+ $settings['geo_db'] = ( 'geo_db' == $settings['geo_lookup'] );
364
 
365
  $rules = @$_POST['po_option']['rules'];
366
  if ( ! is_array( $rules ) ) { $rules = array(); }
882
 
883
  // Show the new item in the editor.
884
  $new_url = remove_query_arg( array( 'post', 'do' ) );
885
+ $new_url = add_query_arg( array( 'post' => $item->id, 'post_type' => IncPopupItem::POST_TYPE ), $new_url );
886
  wp_safe_redirect( $new_url );
887
  die();
888
 
inc/class-popup-base.php CHANGED
@@ -28,12 +28,18 @@ abstract class IncPopupBase {
28
  protected $popups = array();
29
 
30
 
 
31
  /**
32
  * Constructor
33
  */
34
  protected function __construct() {
35
  $this->db = IncPopupDatabase::instance();
36
 
 
 
 
 
 
37
  WDev()->translate_plugin( PO_LANG, PO_LANG_DIR );
38
 
39
  // Register the popup post type.
@@ -72,6 +78,9 @@ abstract class IncPopupBase {
72
  'wp_ajax_nopriv_inc_popup',
73
  array( $this, 'ajax_load_popup' )
74
  );
 
 
 
75
  }
76
 
77
  /**
@@ -424,4 +433,39 @@ abstract class IncPopupBase {
424
  return isset( $_COOKIE[$name] ) || isset( $_COOKIE[$name_old] );
425
  }
426
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
427
  };
28
  protected $popups = array();
29
 
30
 
31
+
32
  /**
33
  * Constructor
34
  */
35
  protected function __construct() {
36
  $this->db = IncPopupDatabase::instance();
37
 
38
+ // Prepare the URL
39
+ $this->prepare_url();
40
+ add_action( 'init', array( $this, 'revert_url' ), 999 ); // prevent 404.
41
+ add_action( 'parse_query', array( $this, 'prepare_url' ) );
42
+
43
  WDev()->translate_plugin( PO_LANG, PO_LANG_DIR );
44
 
45
  // Register the popup post type.
78
  'wp_ajax_nopriv_inc_popup',
79
  array( $this, 'ajax_load_popup' )
80
  );
81
+
82
+ // Tell Add-ons and extensions that we are set up.
83
+ do_action( 'popup-init' );
84
  }
85
 
86
  /**
433
  return isset( $_COOKIE[$name] ) || isset( $_COOKIE[$name_old] );
434
  }
435
 
436
+
437
+ /*===================================*\
438
+ =======================================
439
+ == ==
440
+ == COMPATIBILITY ==
441
+ == ==
442
+ =======================================
443
+ \*===================================*/
444
+
445
+
446
+ /**
447
+ * Change the Request-URI, so other plugins use the correct form action, etc.
448
+ *
449
+ * @since 4.6.1.1
450
+ */
451
+ public function prepare_url() {
452
+ $this->orig_url = $_SERVER['REQUEST_URI'];
453
+
454
+ // Remove internal commands from the query.
455
+ if ( ! empty( $_REQUEST['thefrom'] ) ) {
456
+ $_SERVER['REQUEST_URI'] = strtok( $_REQUEST['thefrom'], '#' );
457
+ }
458
+ }
459
+
460
+ /**
461
+ * Revert the Request-URI to the original value.
462
+ *
463
+ * @since 4.6.1.1
464
+ */
465
+ public function revert_url() {
466
+ if ( empty( $this->orig_url ) ) { return; }
467
+ $_SERVER['REQUEST_URI'] = $this->orig_url;
468
+ }
469
+
470
+
471
  };
inc/class-popup-database.php CHANGED
@@ -540,6 +540,66 @@ class IncPopupDatabase {
540
  $wpdb->query( $sql );
541
  }
542
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
543
  /**
544
  * Returns the plugin settings.
545
  *
@@ -549,6 +609,7 @@ class IncPopupDatabase {
549
  public function get_settings() {
550
  $defaults = array(
551
  'loadingmethod' => 'ajax',
 
552
  'geo_db' => false,
553
  'rules' => array(
554
  'class-popup-rule-browser.php',
@@ -739,4 +800,60 @@ class IncPopupDatabase {
739
  $wpdb->query( $sql );
740
  }
741
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
742
  }
540
  $wpdb->query( $sql );
541
  }
542
 
543
+
544
+ /*==============================*\
545
+ ==================================
546
+ == ==
547
+ == SETTINGS ==
548
+ == ==
549
+ ==================================
550
+ \*==============================*/
551
+
552
+ /**
553
+ * Returns the list of available loading methods.
554
+ *
555
+ * @since 4.6.1.1
556
+ * @return array Loading methods displayed in the Settings screen.
557
+ */
558
+ static public function get_loading_methods() {
559
+ static $Loading_methods = null;
560
+
561
+ if ( null === $Loading_methods ) {
562
+ $Loading_methods = array();
563
+
564
+ $Loading_methods[] = (object) array(
565
+ 'id' => 'footer',
566
+ 'label' => __( 'Page Footer', PO_LANG ),
567
+ 'info' => __(
568
+ 'Include PopUp as part of your site\'s HTML (no AJAX call).',
569
+ PO_LANG
570
+ ),
571
+ );
572
+
573
+ $Loading_methods[] = (object) array(
574
+ 'id' => 'ajax',
575
+ 'label' => __( 'WordPress AJAX', PO_LANG ),
576
+ 'info' => __(
577
+ 'Load PopUp separately from the page via a WordPress AJAX call. ' .
578
+ 'This is the best option if you use caching.',
579
+ PO_LANG
580
+ ),
581
+ );
582
+
583
+ $Loading_methods[] = (object) array(
584
+ 'id' => 'front',
585
+ 'label' => __( 'Custom AJAX', PO_LANG ),
586
+ 'info' => __(
587
+ 'Load PopUp separately from the page via a custom front-end AJAX call.',
588
+ PO_LANG
589
+ ),
590
+ );
591
+
592
+ /**
593
+ * Allow addons to register additional loading methods.
594
+ *
595
+ * @var array
596
+ */
597
+ $Loading_methods = apply_filters( 'popup-settings-loading-method', $Loading_methods );
598
+ }
599
+
600
+ return $Loading_methods;
601
+ }
602
+
603
  /**
604
  * Returns the plugin settings.
605
  *
609
  public function get_settings() {
610
  $defaults = array(
611
  'loadingmethod' => 'ajax',
612
+ 'geo_lookup' => 'hostip',
613
  'geo_db' => false,
614
  'rules' => array(
615
  'class-popup-rule-browser.php',
800
  $wpdb->query( $sql );
801
  }
802
 
803
+ /**
804
+ * Clears the IP-Country cache
805
+ *
806
+ * @since 4.6.1.1
807
+ */
808
+ static public function clear_ip_cache() {
809
+ global $wpdb;
810
+
811
+ $ip_table = self::db_prefix( self::IP_TABLE );
812
+
813
+ // Delete the cached data, if it already exists.
814
+ $sql = "TRUNCATE TABLE $ip_table";
815
+ $wpdb->query( $sql );
816
+ }
817
+
818
+ /**
819
+ * Returns a list of available ip-resolution services.
820
+ *
821
+ * @since 4.6.1.1
822
+ * @return array List of available webservices.
823
+ */
824
+ static public function get_geo_services() {
825
+ static $Geo_service = null;
826
+
827
+ if ( null === $Geo_service ) {
828
+ $Geo_service = array();
829
+
830
+ $Geo_service['hostip'] = (object) array(
831
+ 'label' => 'Host IP',
832
+ 'url' => 'http://api.hostip.info/country.php?ip=%ip%',
833
+ 'type' => 'text',
834
+ );
835
+
836
+ $Geo_service['telize'] = (object) array(
837
+ 'label' => 'Telize',
838
+ 'url' => 'http://www.telize.com/geoip/%ip%',
839
+ 'type' => 'json',
840
+ 'field' => 'country_code',
841
+ );
842
+
843
+ $Geo_service['freegeo'] = (object) array(
844
+ 'label' => 'Free Geo IP',
845
+ 'url' => 'http://freegeoip.net/json/%ip%',
846
+ 'type' => 'json',
847
+ 'field' => 'country_code',
848
+ );
849
+
850
+ /**
851
+ * Allow other modules/plugins to register a geo service.
852
+ */
853
+ $Geo_service = apply_filters( 'popup-geo-services', $Geo_service );
854
+ }
855
+
856
+ return $Geo_service;
857
+ }
858
+
859
  }
inc/class-popup-help.php ADDED
@@ -0,0 +1,77 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Contextual Plugin Help
4
+ */
5
+
6
+ add_action( 'popup-init', array( 'IncPopupHelp', 'instance' ) );
7
+
8
+ class IncPopupHelp {
9
+
10
+ /**
11
+ * Singleton getter.
12
+ *
13
+ * @since 4.6.1.1
14
+ */
15
+ static public function instance() {
16
+ static $Inst = null;
17
+
18
+ if ( null === $Inst ) {
19
+ $Inst = new IncPopupHelp();
20
+ }
21
+
22
+ return $Inst;
23
+ }
24
+
25
+ /**
26
+ * Private constructor.
27
+ *
28
+ * @since 4.6.1.1
29
+ */
30
+ private function __construct() {
31
+ add_filter(
32
+ 'contextual_help',
33
+ array( $this, 'setup_help' ),
34
+ 5, 3
35
+ );
36
+ }
37
+
38
+ /**
39
+ * Prepare the Help-Tab of the current page.
40
+ *
41
+ * @since 4.6.1.1
42
+ * @param object $help_obj
43
+ * @param object $screen_id
44
+ * @param object $screen
45
+ * @return object Modified $help_obj object.
46
+ */
47
+ public function setup_help( $help_obj, $screen_id, $screen ) {
48
+ $included_screens = array(
49
+ 'inc_popup',
50
+ );
51
+
52
+ if ( ! in_array( $screen_id, $included_screens ) ) {
53
+ return;
54
+ }
55
+
56
+ // -- Help Tab: Shortcodes -----
57
+ $screen->add_help_tab(
58
+ array(
59
+ 'id' => 'help_shortcodes',
60
+ 'title' => __( 'Shortcodes', PO_LANG ),
61
+ 'callback' => array( $this, 'content_shortcodes' ),
62
+ )
63
+ );
64
+
65
+ return $help_obj;
66
+ }
67
+
68
+ /**
69
+ * Output help contents for section "Shortcodes"
70
+ *
71
+ * @since 4.6.1.1
72
+ */
73
+ public function content_shortcodes() {
74
+ include PO_VIEWS_DIR . 'info-shortcodes.php';
75
+ }
76
+
77
+ };
inc/class-popup-public.php CHANGED
@@ -29,6 +29,13 @@ class IncPopup extends IncPopupBase {
29
  static public function instance() {
30
  static $Inst = null;
31
 
 
 
 
 
 
 
 
32
  if ( null === $Inst ) {
33
  $Inst = new IncPopup();
34
  }
29
  static public function instance() {
30
  static $Inst = null;
31
 
32
+ // In theory the "public" class does not need this, but to avoid
33
+ // unexpected problems we initialize only after current user is known...
34
+ if ( ! did_action( 'set_current_user' ) ) {
35
+ add_action( 'set_current_user', array( __CLASS__, 'instance' ) );
36
+ return null;
37
+ }
38
+
39
  if ( null === $Inst ) {
40
  $Inst = new IncPopup();
41
  }
inc/config-defaults.php CHANGED
@@ -8,23 +8,25 @@
8
  // True .. the plugin operates on a global site-admin basis
9
  // False .. the plugin operates on a blog by blog basis
10
  if ( ! defined( 'PO_GLOBAL' ) ) {
11
- define( 'PO_GLOBAL', false, true );
12
  }
13
 
14
  // The url that we are using to return the country.
15
  // It should only return the country code for the passed IP address!
16
- if ( ! defined( 'PO_REMOTE_IP_URL' ) ) {
17
- define( 'PO_REMOTE_IP_URL', 'http://api.hostip.info/country.php?ip=%ip%', true );
 
 
18
  }
19
 
20
  // Fallback value in case the PO_REMOTE_IP_URL did not return any value.
21
  // Either set to a valid country code (US, DE, AU, ...)
22
  // Or set to False to not show the popup when country could not be resolved.
23
  if ( ! defined( 'PO_DEFAULT_COUNTRY' ) ) {
24
- define( 'PO_DEFAULT_COUNTRY', 'US', true );
25
  }
26
 
27
  // Set default cookie expiry time (in days).
28
  if ( ! defined( 'PO_DEFAULT_EXPIRY' ) ) {
29
- define( 'PO_DEFAULT_EXPIRY', 365, true );
30
  }
8
  // True .. the plugin operates on a global site-admin basis
9
  // False .. the plugin operates on a blog by blog basis
10
  if ( ! defined( 'PO_GLOBAL' ) ) {
11
+ define( 'PO_GLOBAL', false );
12
  }
13
 
14
  // The url that we are using to return the country.
15
  // It should only return the country code for the passed IP address!
16
+ # Example:
17
+ # define( 'PO_REMOTE_IP_URL', 'http://api.hostip.info/country.php?ip=%ip%' );
18
+ if ( ! defined( 'PO_GLOBAL' ) ) {
19
+ define( 'PO_REMOTE_IP_URL', '' );
20
  }
21
 
22
  // Fallback value in case the PO_REMOTE_IP_URL did not return any value.
23
  // Either set to a valid country code (US, DE, AU, ...)
24
  // Or set to False to not show the popup when country could not be resolved.
25
  if ( ! defined( 'PO_DEFAULT_COUNTRY' ) ) {
26
+ define( 'PO_DEFAULT_COUNTRY', 'US' );
27
  }
28
 
29
  // Set default cookie expiry time (in days).
30
  if ( ! defined( 'PO_DEFAULT_EXPIRY' ) ) {
31
+ define( 'PO_DEFAULT_EXPIRY', 365 );
32
  }
inc/external/wpmu-lib/changelog.txt CHANGED
@@ -4,6 +4,17 @@ Author: Philipp Stracker
4
  Change Log:
5
  ----------------------------------------------------------------------
6
 
 
 
 
 
 
 
 
 
 
 
 
7
  1.0.9 - 2014-08-15
8
  ----------------------------------------------------------------------
9
  - Add the UI files 'vnav': WDev()->add_ui( 'vnav' );
4
  Change Log:
5
  ----------------------------------------------------------------------
6
 
7
+ 1.0.11
8
+ ----------------------------------------------------------------------
9
+ - Fixed z-index of overlay and popup window (fixes issues in Firefox)
10
+ - Fixed issue with dropdown lists that didn't close properly.
11
+ - Fixed loading of plugin translations.
12
+ - Add support for multiselect lists with ajax source.
13
+
14
+ 1.0.10
15
+ ----------------------------------------------------------------------
16
+ - Fixed z-index of select2 dropdown list (fixes issues of multiselect in tickbox)
17
+
18
  1.0.9 - 2014-08-15
19
  ----------------------------------------------------------------------
20
  - Add the UI files 'vnav': WDev()->add_ui( 'vnav' );
inc/external/wpmu-lib/core.php CHANGED
@@ -3,13 +3,13 @@
3
  Plugin Name: WPMU Dev code library
4
  Plugin URI: http://premium.wpmudev.org/
5
  Description: Framework to support creating WordPress plugins and themes.
6
- Version: 1.0.9
7
  Author: WPMU DEV
8
  Author URI: http://premium.wpmudev.org/
9
  Textdomain: wpmu-lib
10
  */
11
 
12
- $version = '1.0.9'; // Remember to update the class-name in functions-wpmulib.php!!
13
 
14
  /**
15
  * Load TheLib class definition if not some other plugin already loaded it.
3
  Plugin Name: WPMU Dev code library
4
  Plugin URI: http://premium.wpmudev.org/
5
  Description: Framework to support creating WordPress plugins and themes.
6
+ Version: 1.0.11
7
  Author: WPMU DEV
8
  Author URI: http://premium.wpmudev.org/
9
  Textdomain: wpmu-lib
10
  */
11
 
12
+ $version = '1.0.11'; // Remember to update the class-name in functions-wpmulib.php!!
13
 
14
  /**
15
  * Load TheLib class definition if not some other plugin already loaded it.
inc/external/wpmu-lib/css/wpmu-ui.css CHANGED
@@ -1 +1 @@
1
- .wpmui-loading{position:relative}.wpmui-loading:after{content:'';position:absolute;left:0;top:0;right:0;bottom:0;background:rgba(255,255,255,0.8) url(../img/spinner.gif) center no-repeat;z-index:1000;cursor:default}.wpmui-overlay{background:#000;opacity:0.7;position:fixed;top:0;right:0;bottom:0;left:0;z-index:1050;display:none}.wpmui-has-overlay .wpmui-overlay{display:block}.wpmui-has-overlay #wpwrap{-webkit-filter:grayscale(75%);-moz-filter:grayscale(75%);filter:gray;filter:grayscale(75%)}.wpmui-no-scroll{overflow:hidden}.wpmui-wnd{background:#F5F5F5;position:fixed;box-shadow:0 2px 20px rgba(0,0,0,0.4);z-index:1051;top:50%;left:50%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.wpmui-wnd-title{line-height:50px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:0 70px 0 20px;border-bottom:1px solid #E5E5E5;background:#F8F8F8;height:50px;display:block;font-size:23px;font-weight:100;z-index:5}.wpmui-wnd-close{position:absolute;top:0;right:0;width:50px;line-height:50px;height:50px;text-align:center;text-decoration:none;color:#666;border-left:1px solid #E5E5E5;cursor:pointer;z-index:10}.wpmui-wnd-close .dashicons{line-height:50px}.wpmui-wnd-close:hover,.wpmui-wnd-close:focus,.wpmui-wnd-close:active{background:#FCFCFC;color:#333}.wpmui-wnd-content{position:absolute;top:51px;left:0;right:0;bottom:0;overflow:auto;padding:20px 20px 20px 20px;z-index:1}.wpmui-wnd-content:after{content:'';display:block;clear:both;padding:50px 0 0 0}.wpmui-wnd.no-buttons .wpmui-wnd-content:after{padding-top:0}.wpmui-wnd hr{margin:15px -20px;border:0;border-top:1px solid #E5E5E5}.wpmui-wnd .buttons{text-align:right;position:absolute;bottom:0;right:0;background:rgba(245,245,245,0.8);padding:10px 20px 10px;left:0;height:50px;border-top:1px solid #E5E5E5;margin:0;z-index:2;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.wpmui-msg{position:relative;min-height:30px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.wpmui-msg .wpmui-close{float:right;margin-top:8px;width:20px;height:20px;line-height:20px;text-align:center;cursor:pointer;text-decoration:none;font-size:16px;padding:0;color:#CCC}.wpmui-msg .wpmui-close:hover,.wpmui-msg .wpmui-close:focus,.wpmui-msg .wpmui-close:active{color:#333}.wpmui-msg .debug{padding:5px;color:#666;font-size:12px;font-family:monospace;margin-bottom:0.5em;background:#F8F8F8}.wpmui-tip-box{position:relative}.wpmui-tip{position:absolute;display:none;padding:8px;z-index:100;background:#333;color:#EEE;box-shadow:0 1px 8px rgba(0,0,0,0.4);border-radius:2px}.wpmui-tip.wpmui-visible{display:block}.wpmui-tip:before{content:'';position:absolute;border:5px solid transparent;left:50%;top:50%;margin-left:-5px;margin-top:-5px}.wpmui-tip.top:before{border-top-color:#333;bottom:-10px;top:auto}.wpmui-tip.bottom:before{border-bottom-color:#333;top:-5px}.wpmui-tip.left:before{border-left-color:#333;right:-10px;left:auto}.wpmui-tip.right:before{border-right-color:#333;left:-5px}.wpmui-pointer{margin-top:30px}.wpmui-pointer h3{background:transparent;color:#333;border:0;margin:0;padding:8px 15px 5px}.wpmui-pointer h3:before{content:'';display:none}.wpmui-pointer p{padding:0 15px;margin:2px 0}.wpmui-pointer .wp-pointer-content{border-left:2px solid #0074A2;background:#FAFDFF}.wpmui-pointer .wp-pointer-buttons{position:absolute;top:0;right:0;white-space:nowrap}.wpmui-pointer .wp-pointer-buttons a.close:before{position:static;float:right;line-height:14px;margin:3px 0 1px 5px}.wpmui-pointer .wp-pointer-arrow{border:0;position:absolute;top:50%;left:0;margin:-5px 0 0}.wpmui-pointer .wp-pointer-arrow:before{border:5px solid transparent;border-right-color:#0074A2;margin:0;left:-10px;position:absolute;top:0}.wpmui-pointer .wp-pointer-arrow-inner{display:none}.wpmui-pointer.wp-pointer-left{padding-left:8px}.wpmui-pointer.wp-pointer-left .wp-pointer-arrow{left:8px}.wpmui-form label{display:block;line-height:26px;font-size:14px;font-weight:500}.wpmui-form input[type='text'],.wpmui-form input[type='password'],.wpmui-form textarea,.wpmui-form select{width:100%;margin:0;display:block;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.wpmui-form .hint{color:#666;font-size:12px}.wpmui-form .button-link,.wpmui-wnd .button-link{display:inline-block;text-decoration:underline;font-size:13px;line-height:26px;height:28px;margin:0;padding:0 10px 1px;cursor:pointer;white-space:nowrap;color:#0074A2;background:transparent;border:0;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-transition-property:border, background, color;transition-property:border, background, color;-webkit-transition-duration:.05s;transition-duration:.05s;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out}.wpmui-form .button-link:hover,.wpmui-form .button-link:active,.wpmui-form .button-link:focus{color:#2EA2CC}.wpmui-grid-8 *,.wpmui-grid-12 *,.wpmui-grid-8 *:after,.wpmui-grid-12 *:after,.wpmui-grid-8 *:before,.wpmui-grid-12 *:before{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.wpmui-grid-8 [class*='col-'],.wpmui-grid-12 [class*='col-']{float:left;padding-right:20px}.wpmui-grid-8 [class*='col-']:last-of-type,.wpmui-grid-12 [class*='col-']:last-of-type{padding-right:0px}.wpmui-grid-8,.wpmui-grid-12{width:100%;margin:0;overflow:hidden;padding:10px 0 0}.wpmui-grid-8:after,.wpmui-grid-12:after{content:'';display:table;clear:both}.wpmui-grid-8 .col-8,.wpmui-grid-12 .col-12{width:100%}.wpmui-grid-12 .col-11{width:91.66%}.wpmui-grid-8 .col-7{width:87.5%}.wpmui-grid-12 .col-10{width:83.333%}.wpmui-grid-8 .col-6,.wpmui-grid-12 .col-9{width:75%}.wpmui-grid-12 .col-8{width:66.66%}.wpmui-grid-8 .col-5{width:62.5%}.wpmui-grid-12 .col-7{width:58.33%}.wpmui-grid-8 .col-4,.wpmui-grid-12 .col-6{width:50%}.wpmui-grid-12 .col-5{width:41.66%}.wpmui-grid-8 .col-3{width:37.5%}.wpmui-grid-12 .col-4{width:33.33%}.wpmui-grid-8 .col-2,.wpmui-grid-12 .col-3{width:25%}.wpmui-grid-12 .col-2{width:16.667%}.wpmui-grid-8 .col-1{width:12.5%}.wpmui-grid-12 .col-1{width:8.33%}@media handheld, only screen and (max-width: 767px){.wpmui-grid-8,.wpmui-grid-12{width:100%;min-width:0;margin-left:0px;margin-right:0px;padding-left:0px;padding-right:0px}.wpmui-grid-8 [class*='col-'],.wpmui-grid-12 [class*='col-']{width:auto;float:none;margin-left:0px;margin-right:0px;margin-top:10px;margin-bottom:10px;padding-left:20px;padding-right:20px}}.wpmui-box{margin-bottom:10px;padding:0;line-height:1;position:relative;min-width:255px;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);background:#FFF}.wpmui-box>h3{font-size:14px;padding:8px 12px;margin:0;line-height:1.4;border-bottom:1px solid #EEE;cursor:pointer}.wpmui-box>h3 .toggle{cursor:pointer;float:right;width:36px;height:36px;color:#AAA;text-decoration:none;margin:-8px -12px;text-align:center;position:relative;line-height:36px}.wpmui-box>h3:hover .toggle,.wpmui-box .toggle:hover,.wpmui-box .toggle:focus,.wpmui-box .toggle:active{color:#777}.wpmui-box>h3 .toggle:before{content:'\f142';font:400 20px/36px dashicons;speak:none;display:inline-block;position:absolute;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none !important;width:100%;height:100%;top:0;right:0}.wpmui-box>.inside{margin:6px 0 0;position:relative;padding:0 12px 12px;line-height:1.4em;font-size:13px}.wpmui-box>.inside:after{content:'';display:table;clear:both}.wpmui-box.closed>h3 .toggle:before{content:'\f140'}.wpmui-box.closed>.inside{display:none}.wpmui-box.static>h3{cursor:default}.wpmui-box.static>h3 .toggle{display:none}.wpmui-box.static>.inside{display:block}.wpmui-tabs{border-bottom:1px solid #EEE;padding-bottom:0;padding-left:10px;list-style:none;margin:20px 0 0}.wpmui-tabs .tab{border:1px solid #EEE;background:#F0F0F0;color:#999;display:inline-block;text-decoration:none;margin:0 4px -1px 0;padding:0 12px;font-weight:600;font-size:13px;line-height:34px}.wpmui-tabs .tab:hover,.wpmui-tabs .tab:focus,.wpmui-tabs .tab:active{background:#F4F4F4;color:#777}.wpmui-tabs .tab.active{border-bottom:1px solid #FFF;background:#FFF;color:#444}.wpmui-tab-contents{padding:12px}.wpmui-tab-contents .tab{display:none}.wpmui-tab-contents .tab.active{display:block}.wpmui-box>.inside>.wpmui-tabs{margin-left:-12px;margin-right:-12px;padding-left:22px}.wpmui-box>.inside>.wpmui-tab-contents{margin-left:-12px;margin-right:-12px;margin-bottom:-12px}.select2-container a{transition:none !important}.wpmui-toggle{position:relative;width:26px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}.wpmui-toggle-checkbox{display:none !important}.wpmui-toggle-label{display:block;overflow:hidden;cursor:pointer;border:1px solid #CCC;border-radius:50px}.wpmui-toggle-inner{display:block;width:200%;margin-left:-100%;-moz-transition:margin 0.3s ease-in 0s;-webkit-transition:margin 0.3s ease-in 0s;-o-transition:margin 0.3s ease-in 0s;transition:margin 0.3s ease-in 0s}.wpmui-toggle-inner:before,.wpmui-toggle-inner:after{display:block;float:left;width:50%;height:5px;padding:0;line-height:5px;font-size:10px;color:white;font-family:Trebuchet, Arial, sans-serif;font-weight:bold;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;box-shadow:0 1px 0 rgba(0,0,0,0.2) inset}.wpmui-toggle-inner:before{content:"";padding-left:5px;background-color:#0074A2}.wpmui-toggle-inner:after{content:"";padding-right:5px;background-color:#EEEEEE;text-align:right}.wpmui-toggle-switch{display:block;width:14px;margin:-3.5px;background:#F8F8F8;border:1px solid #CCC;border-radius:15px;position:absolute;top:0;bottom:0;right:20px;-moz-transition:all 0.3s ease-in 0s;-webkit-transition:all 0.3s ease-in 0s;-o-transition:all 0.3s ease-in 0s;transition:all 0.3s ease-in 0s;box-shadow:-1px 1px 2px rgba(0,0,0,0.1)}.wpmui-toggle-checkbox:checked+.wpmui-toggle-label .wpmui-toggle-inner{margin-left:0}.wpmui-toggle-checkbox:checked+.wpmui-toggle-label .wpmui-toggle-switch{right:0px}.no-pad-top{padding-top:0 !important;margin-top:0 !important}.no-pad-bottom{padding-bottom:0 !important;margin-bottom:0 !important}.no-pad{padding-top:0 !important;padding-bottom:0 !important;margin-top:0 !important;margin-bottom:0 !important}.dashicons.light{opacity:.5}.cf:before,.cf:after{content:'';display:table}.cf:after{clear:both}.wpmui-left{float:left}.wpmui-right{float:right}.button .dashicons,.button-primary .dashicons{line-height:26px;height:26px;float:left;margin-right:6px}
1
+ .wpmui-loading{position:relative}.wpmui-loading:after{content:'';position:absolute;left:0;top:0;right:0;bottom:0;background:rgba(255,255,255,0.8) url(../img/spinner.gif) center no-repeat;z-index:1000;cursor:default}.wpmui-overlay{background:#000;opacity:0.7;position:fixed;top:0;right:0;bottom:0;left:0;z-index:9999;display:none}.wpmui-has-overlay .wpmui-overlay{display:block}.wpmui-has-overlay #wpwrap{-webkit-filter:grayscale(75%);-moz-filter:grayscale(75%);filter:gray;filter:grayscale(75%)}.wpmui-no-scroll{overflow:hidden}.wpmui-wnd{background:#F5F5F5;position:fixed;box-shadow:0 2px 20px rgba(0,0,0,0.4);z-index:10000;top:50%;left:50%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.wpmui-wnd-title{line-height:50px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:0 70px 0 20px;border-bottom:1px solid #E5E5E5;background:#F8F8F8;height:50px;display:block;font-size:23px;font-weight:100;z-index:5}.wpmui-wnd-close{position:absolute;top:0;right:0;width:50px;line-height:50px;height:50px;text-align:center;text-decoration:none;color:#666;border-left:1px solid #E5E5E5;cursor:pointer;z-index:10}.wpmui-wnd-close .dashicons{line-height:50px}.wpmui-wnd-close:hover,.wpmui-wnd-close:focus,.wpmui-wnd-close:active{background:#FCFCFC;color:#333}.wpmui-wnd-content{position:absolute;top:51px;left:0;right:0;bottom:0;overflow:auto;padding:20px 20px 20px 20px;z-index:1}.wpmui-wnd-content:after{content:'';display:block;clear:both;padding:50px 0 0 0}.wpmui-wnd.no-buttons .wpmui-wnd-content:after{padding-top:0}.wpmui-wnd hr{margin:15px -20px;border:0;border-top:1px solid #E5E5E5}.wpmui-wnd .buttons{text-align:right;position:absolute;bottom:0;right:0;background:rgba(245,245,245,0.8);padding:10px 20px 10px;left:0;height:50px;border-top:1px solid #E5E5E5;margin:0;z-index:2;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.wpmui-msg{position:relative;min-height:30px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.wpmui-msg .wpmui-close{float:right;margin-top:8px;width:20px;height:20px;line-height:20px;text-align:center;cursor:pointer;text-decoration:none;font-size:16px;padding:0;color:#CCC}.wpmui-msg .wpmui-close:hover,.wpmui-msg .wpmui-close:focus,.wpmui-msg .wpmui-close:active{color:#333}.wpmui-msg .debug{padding:5px;color:#666;font-size:12px;font-family:monospace;margin-bottom:0.5em;background:#F8F8F8}.wpmui-tip-box{position:relative}.wpmui-tip{position:absolute;display:none;padding:8px;z-index:100;background:#333;color:#EEE;box-shadow:0 1px 8px rgba(0,0,0,0.4);border-radius:2px}.wpmui-tip.wpmui-visible{display:block}.wpmui-tip:before{content:'';position:absolute;border:5px solid transparent;left:50%;top:50%;margin-left:-5px;margin-top:-5px}.wpmui-tip.top:before{border-top-color:#333;bottom:-10px;top:auto}.wpmui-tip.bottom:before{border-bottom-color:#333;top:-5px}.wpmui-tip.left:before{border-left-color:#333;right:-10px;left:auto}.wpmui-tip.right:before{border-right-color:#333;left:-5px}.wpmui-pointer{margin-top:30px}.wpmui-pointer h3{background:transparent;color:#333;border:0;margin:0;padding:8px 15px 5px}.wpmui-pointer h3:before{content:'';display:none}.wpmui-pointer p{padding:0 15px;margin:2px 0}.wpmui-pointer .wp-pointer-content{border-left:2px solid #0074A2;background:#FAFDFF}.wpmui-pointer .wp-pointer-buttons{position:absolute;top:0;right:0;white-space:nowrap}.wpmui-pointer .wp-pointer-buttons a.close:before{position:static;float:right;line-height:14px;margin:3px 0 1px 5px}.wpmui-pointer .wp-pointer-arrow{border:0;position:absolute;top:50%;left:0;margin:-5px 0 0}.wpmui-pointer .wp-pointer-arrow:before{border:5px solid transparent;border-right-color:#0074A2;margin:0;left:-10px;position:absolute;top:0}.wpmui-pointer .wp-pointer-arrow-inner{display:none}.wpmui-pointer.wp-pointer-left{padding-left:8px}.wpmui-pointer.wp-pointer-left .wp-pointer-arrow{left:8px}.wpmui-form label{display:block;line-height:26px;font-size:14px;font-weight:500}.wpmui-form input[type='text'],.wpmui-form input[type='password'],.wpmui-form textarea,.wpmui-form select{width:100%;margin:0;display:block;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.wpmui-form .hint{color:#666;font-size:12px}.wpmui-form .button-link,.wpmui-wnd .button-link{display:inline-block;text-decoration:underline;font-size:13px;line-height:26px;height:28px;margin:0;padding:0 10px 1px;cursor:pointer;white-space:nowrap;color:#0074A2;background:transparent;border:0;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-transition-property:border, background, color;transition-property:border, background, color;-webkit-transition-duration:.05s;transition-duration:.05s;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out}.wpmui-form .button-link:hover,.wpmui-form .button-link:active,.wpmui-form .button-link:focus{color:#2EA2CC}.wpmui-grid-8 *,.wpmui-grid-12 *,.wpmui-grid-8 *:after,.wpmui-grid-12 *:after,.wpmui-grid-8 *:before,.wpmui-grid-12 *:before{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.wpmui-grid-8 [class*='col-'],.wpmui-grid-12 [class*='col-']{float:left;padding-right:20px}.wpmui-grid-8 [class*='col-']:last-of-type,.wpmui-grid-12 [class*='col-']:last-of-type{padding-right:0px}.wpmui-grid-8,.wpmui-grid-12{width:100%;margin:0;overflow:hidden;padding:10px 0 0}.wpmui-grid-8:after,.wpmui-grid-12:after{content:'';display:table;clear:both}.wpmui-grid-8 .col-8,.wpmui-grid-12 .col-12{width:100%}.wpmui-grid-12 .col-11{width:91.66%}.wpmui-grid-8 .col-7{width:87.5%}.wpmui-grid-12 .col-10{width:83.333%}.wpmui-grid-8 .col-6,.wpmui-grid-12 .col-9{width:75%}.wpmui-grid-12 .col-8{width:66.66%}.wpmui-grid-8 .col-5{width:62.5%}.wpmui-grid-12 .col-7{width:58.33%}.wpmui-grid-8 .col-4,.wpmui-grid-12 .col-6{width:50%}.wpmui-grid-12 .col-5{width:41.66%}.wpmui-grid-8 .col-3{width:37.5%}.wpmui-grid-12 .col-4{width:33.33%}.wpmui-grid-8 .col-2,.wpmui-grid-12 .col-3{width:25%}.wpmui-grid-12 .col-2{width:16.667%}.wpmui-grid-8 .col-1{width:12.5%}.wpmui-grid-12 .col-1{width:8.33%}@media handheld, only screen and (max-width: 767px){.wpmui-grid-8,.wpmui-grid-12{width:100%;min-width:0;margin-left:0px;margin-right:0px;padding-left:0px;padding-right:0px}.wpmui-grid-8 [class*='col-'],.wpmui-grid-12 [class*='col-']{width:auto;float:none;margin-left:0px;margin-right:0px;margin-top:10px;margin-bottom:10px;padding-left:20px;padding-right:20px}}.wpmui-box{margin-bottom:10px;padding:0;line-height:1;position:relative;min-width:255px;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);background:#FFF}.wpmui-box>h3{font-size:14px;padding:8px 12px;margin:0;line-height:1.4;border-bottom:1px solid #EEE;cursor:pointer}.wpmui-box>h3 .toggle{cursor:pointer;float:right;width:36px;height:36px;color:#AAA;text-decoration:none;margin:-8px -12px;text-align:center;position:relative;line-height:36px}.wpmui-box>h3:hover .toggle,.wpmui-box .toggle:hover,.wpmui-box .toggle:focus,.wpmui-box .toggle:active{color:#777}.wpmui-box>h3 .toggle:before{content:'\f142';font:400 20px/36px dashicons;speak:none;display:inline-block;position:absolute;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none !important;width:100%;height:100%;top:0;right:0}.wpmui-box>.inside{margin:6px 0 0;position:relative;padding:0 12px 12px;line-height:1.4em;font-size:13px}.wpmui-box>.inside:after{content:'';display:table;clear:both}.wpmui-box.closed>h3 .toggle:before{content:'\f140'}.wpmui-box.closed>.inside{display:none}.wpmui-box.static>h3{cursor:default}.wpmui-box.static>h3 .toggle{display:none}.wpmui-box.static>.inside{display:block}.wpmui-tabs{border-bottom:1px solid #EEE;padding-bottom:0;padding-left:10px;list-style:none;margin:20px 0 0}.wpmui-tabs .tab{border:1px solid #EEE;background:#F0F0F0;color:#999;display:inline-block;text-decoration:none;margin:0 4px -1px 0;padding:0 12px;font-weight:600;font-size:13px;line-height:34px}.wpmui-tabs .tab:hover,.wpmui-tabs .tab:focus,.wpmui-tabs .tab:active{background:#F4F4F4;color:#777}.wpmui-tabs .tab.active{border-bottom:1px solid #FFF;background:#FFF;color:#444}.wpmui-tab-contents{padding:12px}.wpmui-tab-contents .tab{display:none}.wpmui-tab-contents .tab.active{display:block}.wpmui-box>.inside>.wpmui-tabs{margin-left:-12px;margin-right:-12px;padding-left:22px}.wpmui-box>.inside>.wpmui-tab-contents{margin-left:-12px;margin-right:-12px;margin-bottom:-12px}.select2-container a{transition:none !important}.select2-drop{z-index:1000500 !important}.select2-drop-mask{z-index:1000499 !important}.wpmui-toggle{position:relative;width:26px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}.wpmui-toggle-checkbox{display:none !important}.wpmui-toggle-label{display:block;overflow:hidden;cursor:pointer;border:1px solid #CCC;border-radius:50px}.wpmui-toggle-inner{display:block;width:200%;margin-left:-100%;-moz-transition:margin 0.3s ease-in 0s;-webkit-transition:margin 0.3s ease-in 0s;-o-transition:margin 0.3s ease-in 0s;transition:margin 0.3s ease-in 0s}.wpmui-toggle-inner:before,.wpmui-toggle-inner:after{display:block;float:left;width:50%;height:5px;padding:0;line-height:5px;font-size:10px;color:white;font-family:Trebuchet, Arial, sans-serif;font-weight:bold;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;box-shadow:0 1px 0 rgba(0,0,0,0.2) inset}.wpmui-toggle-inner:before{content:"";padding-left:5px;background-color:#0074A2}.wpmui-toggle-inner:after{content:"";padding-right:5px;background-color:#EEEEEE;text-align:right}.wpmui-toggle-switch{display:block;width:14px;margin:-3.5px;background:#F8F8F8;border:1px solid #CCC;border-radius:15px;position:absolute;top:0;bottom:0;right:20px;-moz-transition:all 0.3s ease-in 0s;-webkit-transition:all 0.3s ease-in 0s;-o-transition:all 0.3s ease-in 0s;transition:all 0.3s ease-in 0s;box-shadow:-1px 1px 2px rgba(0,0,0,0.1)}.wpmui-toggle-checkbox:checked+.wpmui-toggle-label .wpmui-toggle-inner{margin-left:0}.wpmui-toggle-checkbox:checked+.wpmui-toggle-label .wpmui-toggle-switch{right:0px}.no-pad-top{padding-top:0 !important;margin-top:0 !important}.no-pad-bottom{padding-bottom:0 !important;margin-bottom:0 !important}.no-pad{padding-top:0 !important;padding-bottom:0 !important;margin-top:0 !important;margin-bottom:0 !important}.dashicons.light{opacity:.5}.cf:before,.cf:after{content:'';display:table}.cf:after{clear:both}.wpmui-left{float:left}.wpmui-right{float:right}.button .dashicons,.button-primary .dashicons{line-height:26px;height:26px;float:left;margin-right:6px}
inc/external/wpmu-lib/functions-wpmulib.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
 
3
  // Based on Jigsaw plugin by Jared Novack (http://jigsaw.upstatement.com/)
4
- class TheLib_1_0_9 {
5
 
6
  // --- Start of 5.2 compatibility functions
7
 
@@ -163,9 +163,9 @@ class TheLib_1_0_9 {
163
  default:
164
  $ext = strrchr( $module, '.' );
165
  if ( '.css' === $ext ) {
166
- $this->add_css( $module, $onpage );
167
  } else if ( '.js' === $ext ) {
168
- $this->add_js( $module, $onpage );
169
  }
170
  }
171
  }
@@ -187,9 +187,10 @@ class TheLib_1_0_9 {
187
  * @since 1.0.0
188
  * @param string $url Full URL to the javascript file.
189
  * @param string $onpage A page hook; files will only be loaded on this page.
 
190
  */
191
- public function add_js( $url, $onpage = null ) {
192
- $this->_prepare_js_or_css( $url, 'js', $onpage );
193
  }
194
 
195
  /**
@@ -198,9 +199,10 @@ class TheLib_1_0_9 {
198
  * @since 1.0.0
199
  * @param string $url Full URL to the css filename.
200
  * @param string $onpage A page hook; files will only be loaded on this page.
 
201
  */
202
- public function add_css( $url, $onpage = null ) {
203
- $this->_prepare_js_or_css( $url, 'css', $onpage );
204
  }
205
 
206
  /**
@@ -211,10 +213,11 @@ class TheLib_1_0_9 {
211
  * @param string $url Full URL to the javascript/css file.
212
  * @param string $type 'css' or 'js'
213
  * @param string $onpage A page hook; files will only be loaded on this page.
 
214
  */
215
- protected function _prepare_js_or_css( $url, $type, $onpage ) {
216
  $hooked = $this->_have( 'js_or_css' );
217
- $this->_add( 'js_or_css', compact( 'url', 'type', 'onpage' ) );
218
 
219
  if ( ! did_action( 'init' ) ) {
220
  $hooked || add_action(
@@ -252,7 +255,7 @@ class TheLib_1_0_9 {
252
  $this->_clear( 'js_or_css' );
253
 
254
  foreach ( $scripts as $script ) {
255
- extract( $script ); // url, type, onpage
256
 
257
  $type = ( 'css' == $type || 'style' == $type ? 'css' : 'js' );
258
 
@@ -298,14 +301,14 @@ class TheLib_1_0_9 {
298
  $this->_have( 'css' ) || add_action(
299
  'admin_enqueue_scripts',
300
  array( $this, '_enqueue_style_callback' ),
301
- 15 // Load custom styles a bit later than core styles.
302
  );
303
  $this->_add( 'css', $item );
304
  } else {
305
  $this->_have( 'js' ) || add_action(
306
  'admin_enqueue_scripts',
307
  array( $this, '_enqueue_script_callback' ),
308
- 15 // Load custom scripts a bit later than core scripts.
309
  );
310
  $this->_add( 'js', $item );
311
  }
@@ -510,11 +513,18 @@ class TheLib_1_0_9 {
510
  * @param string $rel_dir Path to the dictionary folder; relative to ABSPATH.
511
  */
512
  public function translate_plugin( $domain, $rel_dir ) {
513
- $this->_have( 'textdomain' ) || add_action(
514
- 'plugins_loaded',
515
- array( $this, '_translate_plugin_callback' )
516
- );
517
  $this->_add( 'textdomain', compact( 'domain', 'rel_dir' ) );
 
 
 
 
 
 
 
 
 
518
  }
519
 
520
  /**
1
  <?php
2
 
3
  // Based on Jigsaw plugin by Jared Novack (http://jigsaw.upstatement.com/)
4
+ class TheLib_1_0_11 {
5
 
6
  // --- Start of 5.2 compatibility functions
7
 
163
  default:
164
  $ext = strrchr( $module, '.' );
165
  if ( '.css' === $ext ) {
166
+ $this->add_css( $module, $onpage, 20 );
167
  } else if ( '.js' === $ext ) {
168
+ $this->add_js( $module, $onpage, 20 );
169
  }
170
  }
171
  }
187
  * @since 1.0.0
188
  * @param string $url Full URL to the javascript file.
189
  * @param string $onpage A page hook; files will only be loaded on this page.
190
+ * @param int $priority Loading order. The higher the number, the later it is loaded.
191
  */
192
+ public function add_js( $url, $onpage = null, $priority = 10 ) {
193
+ $this->_prepare_js_or_css( $url, 'js', $onpage, $priority );
194
  }
195
 
196
  /**
199
  * @since 1.0.0
200
  * @param string $url Full URL to the css filename.
201
  * @param string $onpage A page hook; files will only be loaded on this page.
202
+ * @param int $priority Loading order. The higher the number, the later it is loaded.
203
  */
204
+ public function add_css( $url, $onpage = null, $priority = 10 ) {
205
+ $this->_prepare_js_or_css( $url, 'css', $onpage, $priority );
206
  }
207
 
208
  /**
213
  * @param string $url Full URL to the javascript/css file.
214
  * @param string $type 'css' or 'js'
215
  * @param string $onpage A page hook; files will only be loaded on this page.
216
+ * @param int $priority Loading order. The higher the number, the later it is loaded.
217
  */
218
+ protected function _prepare_js_or_css( $url, $type, $onpage, $priority ) {
219
  $hooked = $this->_have( 'js_or_css' );
220
+ $this->_add( 'js_or_css', compact( 'url', 'type', 'onpage', 'priority' ) );
221
 
222
  if ( ! did_action( 'init' ) ) {
223
  $hooked || add_action(
255
  $this->_clear( 'js_or_css' );
256
 
257
  foreach ( $scripts as $script ) {
258
+ extract( $script ); // url, type, onpage, priority
259
 
260
  $type = ( 'css' == $type || 'style' == $type ? 'css' : 'js' );
261
 
301
  $this->_have( 'css' ) || add_action(
302
  'admin_enqueue_scripts',
303
  array( $this, '_enqueue_style_callback' ),
304
+ 100 + $priority // Load custom styles a bit later than core styles.
305
  );
306
  $this->_add( 'css', $item );
307
  } else {
308
  $this->_have( 'js' ) || add_action(
309
  'admin_enqueue_scripts',
310
  array( $this, '_enqueue_script_callback' ),
311
+ 100 + $priority // Load custom scripts a bit later than core scripts.
312
  );
313
  $this->_add( 'js', $item );
314
  }
513
  * @param string $rel_dir Path to the dictionary folder; relative to ABSPATH.
514
  */
515
  public function translate_plugin( $domain, $rel_dir ) {
516
+ $hooked = $this->_have( 'textdomain' );
517
+
 
 
518
  $this->_add( 'textdomain', compact( 'domain', 'rel_dir' ) );
519
+
520
+ if ( ! did_action( 'plugins_loaded' ) ) {
521
+ $hooked || add_action(
522
+ 'plugins_loaded',
523
+ array( $this, '_translate_plugin_callback' )
524
+ );
525
+ } else {
526
+ $this->_translate_plugin_callback();
527
+ }
528
  }
529
 
530
  /**
inc/external/wpmu-lib/js/select2.min.js CHANGED
@@ -1,2 +1,2 @@
1
- !function(e){"undefined"==typeof e.fn.each2&&e.extend(e.fn,{each2:function(t){for(var s=e([0]),i=-1,n=this.length;++i<n&&(s.context=s[0]=this[i])&&t.call(s[0],i,s)!==!1;);return this}})}(jQuery),function(e,t){"use strict";function s(t){var s=e(document.createTextNode(""));t.before(s),s.before(t),s.remove()}function i(e){function t(e){return W[e]||e}return e.replace(/[^\u0000-\u007E]/g,t)}function n(e,t){for(var s=0,i=t.length;i>s;s+=1)if(a(e,t[s]))return s;return-1}function o(){var t=e(z);t.appendTo("body");var s={width:t.width()-t[0].clientWidth,height:t.height()-t[0].clientHeight};return t.remove(),s}function a(e,s){return e===s?!0:e===t||s===t?!1:null===e||null===s?!1:e.constructor===String?e+""==s+"":s.constructor===String?s+""==e+"":!1}function r(t,s){var i,n,o;if(null===t||t.length<1)return[];for(i=t.split(s),n=0,o=i.length;o>n;n+=1)i[n]=e.trim(i[n]);return i}function c(e){return e.outerWidth(!1)-e.width()}function l(s){var i="keyup-change-value";s.on("keydown",function(){e.data(s,i)===t&&e.data(s,i,s.val())}),s.on("keyup",function(){var n=e.data(s,i);n!==t&&s.val()!==n&&(e.removeData(s,i),s.trigger("keyup-change"))})}function h(s){s.on("mousemove",function(s){var i=F;(i===t||i.x!==s.pageX||i.y!==s.pageY)&&e(s.target).trigger("mousemove-filtered",s)})}function u(e,s,i){i=i||t;var n;return function(){var t=arguments;window.clearTimeout(n),n=window.setTimeout(function(){s.apply(i,t)},e)}}function d(e,t){var s=u(e,function(e){t.trigger("scroll-debounced",e)});t.on("scroll",function(e){n(e.target,t.get())>=0&&s(e)})}function p(e){e[0]!==document.activeElement&&window.setTimeout(function(){var t,s=e[0],i=e.val().length;e.focus();var n=s.offsetWidth>0||s.offsetHeight>0;n&&s===document.activeElement&&(s.setSelectionRange?s.setSelectionRange(i,i):s.createTextRange&&(t=s.createTextRange(),t.collapse(!1),t.select()))},0)}function f(t){t=e(t)[0];var s=0,i=0;if("selectionStart"in t)s=t.selectionStart,i=t.selectionEnd-s;else if("selection"in document){t.focus();var n=document.selection.createRange();i=document.selection.createRange().text.length,n.moveStart("character",-t.value.length),s=n.text.length-i}return{offset:s,length:i}}function g(e){e.preventDefault(),e.stopPropagation()}function m(e){e.preventDefault(),e.stopImmediatePropagation()}function v(t){if(!L){var s=t[0].currentStyle||window.getComputedStyle(t[0],null);L=e(document.createElement("div")).css({position:"absolute",left:"-10000px",top:"-10000px",display:"none",fontSize:s.fontSize,fontFamily:s.fontFamily,fontStyle:s.fontStyle,fontWeight:s.fontWeight,letterSpacing:s.letterSpacing,textTransform:s.textTransform,whiteSpace:"nowrap"}),L.attr("class","select2-sizer"),e("body").append(L)}return L.text(t.val()),L.width()}function w(t,s,i){var n,o,a=[];n=e.trim(t.attr("class")),n&&(n=""+n,e(n.split(/\s+/)).each2(function(){0===this.indexOf("select2-")&&a.push(this)})),n=e.trim(s.attr("class")),n&&(n=""+n,e(n.split(/\s+/)).each2(function(){0!==this.indexOf("select2-")&&(o=i(this),o&&a.push(o))})),t.attr("class",a.join(" "))}function b(e,t,s,n){var o=i(e.toUpperCase()).indexOf(i(t.toUpperCase())),a=t.length;return 0>o?(s.push(n(e)),void 0):(s.push(n(e.substring(0,o))),s.push("<span class='select2-match'>"),s.push(n(e.substring(o,o+a))),s.push("</span>"),s.push(n(e.substring(o+a,e.length))),void 0)}function C(e){var t={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return String(e).replace(/[&<>"'\/\\]/g,function(e){return t[e]})}function S(s){var i,n=null,o=s.quietMillis||100,a=s.url,r=this;return function(c){window.clearTimeout(i),i=window.setTimeout(function(){var i=s.data,o=a,l=s.transport||e.fn.select2.ajaxDefaults.transport,h={type:s.type||"GET",cache:s.cache||!1,jsonpCallback:s.jsonpCallback||t,dataType:s.dataType||"json"},u=e.extend({},e.fn.select2.ajaxDefaults.params,h);i=i?i.call(r,c.term,c.page,c.context):null,o="function"==typeof o?o.call(r,c.term,c.page,c.context):o,n&&"function"==typeof n.abort&&n.abort(),s.params&&(e.isFunction(s.params)?e.extend(u,s.params.call(r)):e.extend(u,s.params)),e.extend(u,{url:o,dataType:s.dataType,data:i,success:function(e){var t=s.results(e,c.page,c);c.callback(t)}}),n=l.call(r,u)},o)}}function y(t){var s,i,n=t,o=function(e){return""+e.text};e.isArray(n)&&(i=n,n={results:i}),e.isFunction(n)===!1&&(i=n,n=function(){return i});var a=n();return a.text&&(o=a.text,e.isFunction(o)||(s=a.text,o=function(e){return e[s]})),function(t){var s,i=t.term,a={results:[]};return""===i?(t.callback(n()),void 0):(s=function(n,a){var r,c;if(n=n[0],n.children){r={};for(c in n)n.hasOwnProperty(c)&&(r[c]=n[c]);r.children=[],e(n.children).each2(function(e,t){s(t,r.children)}),(r.children.length||t.matcher(i,o(r),n))&&a.push(r)}else t.matcher(i,o(n),n)&&a.push(n)},e(n().results).each2(function(e,t){s(t,a.results)}),t.callback(a),void 0)}}function E(s){var i=e.isFunction(s);return function(n){var o=n.term,a={results:[]},r=i?s(n):s;e.isArray(r)&&(e(r).each(function(){var e=this.text!==t,s=e?this.text:this;(""===o||n.matcher(o,s))&&a.results.push(e?this:{id:this,text:this})}),n.callback(a))}}function x(t,s){if(e.isFunction(t))return!0;if(!t)return!1;if("string"==typeof t)return!0;throw new Error(s+" must be a string, function, or falsy value")}function T(t,s){if(e.isFunction(t)){var i=Array.prototype.slice.call(arguments,2);return t.apply(s,i)}return t}function O(t){var s=0;return e.each(t,function(e,t){t.children?s+=O(t.children):s++}),s}function P(e,s,i,n){var o,r,c,l,h,u=e,d=!1;if(!n.createSearchChoice||!n.tokenSeparators||n.tokenSeparators.length<1)return t;for(;;){for(r=-1,c=0,l=n.tokenSeparators.length;l>c&&(h=n.tokenSeparators[c],r=e.indexOf(h),!(r>=0));c++);if(0>r)break;if(o=e.substring(0,r),e=e.substring(r+h.length),o.length>0&&(o=n.createSearchChoice.call(this,o,s),o!==t&&null!==o&&n.id(o)!==t&&null!==n.id(o))){for(d=!1,c=0,l=s.length;l>c;c++)if(a(n.id(o),n.id(s[c]))){d=!0;break}d||i(o)}}return u!==e?e:void 0}function I(){var t=this;e.each(arguments,function(e,s){t[s].remove(),t[s]=null})}function k(t,s){var i=function(){};return i.prototype=new t,i.prototype.constructor=i,i.prototype.parent=t.prototype,i.prototype=e.extend(i.prototype,s),i}if(window.Select2===t){var A,R,D,H,M,L,N,U,F={x:0,y:0},A={TAB:9,ENTER:13,ESC:27,SPACE:32,LEFT:37,UP:38,RIGHT:39,DOWN:40,SHIFT:16,CTRL:17,ALT:18,PAGE_UP:33,PAGE_DOWN:34,HOME:36,END:35,BACKSPACE:8,DELETE:46,isArrow:function(e){switch(e=e.which?e.which:e){case A.LEFT:case A.RIGHT:case A.UP:case A.DOWN:return!0}return!1},isControl:function(e){var t=e.which;switch(t){case A.SHIFT:case A.CTRL:case A.ALT:return!0}return e.metaKey?!0:!1},isFunctionKey:function(e){return e=e.which?e.which:e,e>=112&&123>=e}},z="<div class='select2-measure-scrollbar'></div>",W={"Ⓐ":"A",A:"A",À:"A",Á:"A",Â:"A",Ầ:"A",Ấ:"A",Ẫ:"A",Ẩ:"A",Ã:"A",Ā:"A",Ă:"A",Ằ:"A",Ắ:"A",Ẵ:"A",Ẳ:"A",Ȧ:"A",Ǡ:"A",Ä:"A",Ǟ:"A",Ả:"A",Å:"A",Ǻ:"A",Ǎ:"A",Ȁ:"A",Ȃ:"A",Ạ:"A",Ậ:"A",Ặ:"A",Ḁ:"A",Ą:"A",Ⱥ:"A",Ɐ:"A",Ꜳ:"AA",Æ:"AE",Ǽ:"AE",Ǣ:"AE",Ꜵ:"AO",Ꜷ:"AU",Ꜹ:"AV",Ꜻ:"AV",Ꜽ:"AY","Ⓑ":"B",B:"B",Ḃ:"B",Ḅ:"B",Ḇ:"B",Ƀ:"B",Ƃ:"B",Ɓ:"B","Ⓒ":"C",C:"C",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",Ç:"C",Ḉ:"C",Ƈ:"C",Ȼ:"C",Ꜿ:"C","Ⓓ":"D",D:"D",Ḋ:"D",Ď:"D",Ḍ:"D",Ḑ:"D",Ḓ:"D",Ḏ:"D",Đ:"D",Ƌ:"D",Ɗ:"D",Ɖ:"D",Ꝺ:"D",DZ:"DZ",DŽ:"DZ",Dz:"Dz",Dž:"Dz","Ⓔ":"E",E:"E",È:"E",É:"E",Ê:"E",Ề:"E",Ế:"E",Ễ:"E",Ể:"E",Ẽ:"E",Ē:"E",Ḕ:"E",Ḗ:"E",Ĕ:"E",Ė:"E",Ë:"E",Ẻ:"E",Ě:"E",Ȅ:"E",Ȇ:"E",Ẹ:"E",Ệ:"E",Ȩ:"E",Ḝ:"E",Ę:"E",Ḙ:"E",Ḛ:"E",Ɛ:"E",Ǝ:"E","Ⓕ":"F",F:"F",Ḟ:"F",Ƒ:"F",Ꝼ:"F","Ⓖ":"G",G:"G",Ǵ:"G",Ĝ:"G",Ḡ:"G",Ğ:"G",Ġ:"G",Ǧ:"G",Ģ:"G",Ǥ:"G",Ɠ:"G","Ꞡ":"G",Ᵹ:"G",Ꝿ:"G","Ⓗ":"H",H:"H",Ĥ:"H",Ḣ:"H",Ḧ:"H",Ȟ:"H",Ḥ:"H",Ḩ:"H",Ḫ:"H",Ħ:"H",Ⱨ:"H",Ⱶ:"H","Ɥ":"H","Ⓘ":"I",I:"I",Ì:"I",Í:"I",Î:"I",Ĩ:"I",Ī:"I",Ĭ:"I",İ:"I",Ï:"I",Ḯ:"I",Ỉ:"I",Ǐ:"I",Ȉ:"I",Ȋ:"I",Ị:"I",Į:"I",Ḭ:"I",Ɨ:"I","Ⓙ":"J",J:"J",Ĵ:"J",Ɉ:"J","Ⓚ":"K",K:"K",Ḱ:"K",Ǩ:"K",Ḳ:"K",Ķ:"K",Ḵ:"K",Ƙ:"K",Ⱪ:"K",Ꝁ:"K",Ꝃ:"K",Ꝅ:"K","Ꞣ":"K","Ⓛ":"L",L:"L",Ŀ:"L",Ĺ:"L",Ľ:"L",Ḷ:"L",Ḹ:"L",Ļ:"L",Ḽ:"L",Ḻ:"L",Ł:"L",Ƚ:"L",Ɫ:"L",Ⱡ:"L",Ꝉ:"L",Ꝇ:"L",Ꞁ:"L",LJ:"LJ",Lj:"Lj","Ⓜ":"M",M:"M",Ḿ:"M",Ṁ:"M",Ṃ:"M",Ɱ:"M",Ɯ:"M","Ⓝ":"N",N:"N",Ǹ:"N",Ń:"N",Ñ:"N",Ṅ:"N",Ň:"N",Ṇ:"N",Ņ:"N",Ṋ:"N",Ṉ:"N",Ƞ:"N",Ɲ:"N","Ꞑ":"N","Ꞥ":"N",NJ:"NJ",Nj:"Nj","Ⓞ":"O",O:"O",Ò:"O",Ó:"O",Ô:"O",Ồ:"O",Ố:"O",Ỗ:"O",Ổ:"O",Õ:"O",Ṍ:"O",Ȭ:"O",Ṏ:"O",Ō:"O",Ṑ:"O",Ṓ:"O",Ŏ:"O",Ȯ:"O",Ȱ:"O",Ö:"O",Ȫ:"O",Ỏ:"O",Ő:"O",Ǒ:"O",Ȍ:"O",Ȏ:"O",Ơ:"O",Ờ:"O",Ớ:"O",Ỡ:"O",Ở:"O",Ợ:"O",Ọ:"O",Ộ:"O",Ǫ:"O",Ǭ:"O",Ø:"O",Ǿ:"O",Ɔ:"O",Ɵ:"O",Ꝋ:"O",Ꝍ:"O",Ƣ:"OI",Ꝏ:"OO",Ȣ:"OU","Ⓟ":"P",P:"P",Ṕ:"P",Ṗ:"P",Ƥ:"P",Ᵽ:"P",Ꝑ:"P",Ꝓ:"P",Ꝕ:"P","Ⓠ":"Q",Q:"Q",Ꝗ:"Q",Ꝙ:"Q",Ɋ:"Q","Ⓡ":"R",R:"R",Ŕ:"R",Ṙ:"R",Ř:"R",Ȑ:"R",Ȓ:"R",Ṛ:"R",Ṝ:"R",Ŗ:"R",Ṟ:"R",Ɍ:"R",Ɽ:"R",Ꝛ:"R","Ꞧ":"R",Ꞃ:"R","Ⓢ":"S",S:"S",ẞ:"S",Ś:"S",Ṥ:"S",Ŝ:"S",Ṡ:"S",Š:"S",Ṧ:"S",Ṣ:"S",Ṩ:"S",Ș:"S",Ş:"S","Ȿ":"S","Ꞩ":"S",Ꞅ:"S","Ⓣ":"T",T:"T",Ṫ:"T",Ť:"T",Ṭ:"T",Ț:"T",Ţ:"T",Ṱ:"T",Ṯ:"T",Ŧ:"T",Ƭ:"T",Ʈ:"T",Ⱦ:"T",Ꞇ:"T",Ꜩ:"TZ","Ⓤ":"U",U:"U",Ù:"U",Ú:"U",Û:"U",Ũ:"U",Ṹ:"U",Ū:"U",Ṻ:"U",Ŭ:"U",Ü:"U",Ǜ:"U",Ǘ:"U",Ǖ:"U",Ǚ:"U",Ủ:"U",Ů:"U",Ű:"U",Ǔ:"U",Ȕ:"U",Ȗ:"U",Ư:"U",Ừ:"U",Ứ:"U",Ữ:"U",Ử:"U",Ự:"U",Ụ:"U",Ṳ:"U",Ų:"U",Ṷ:"U",Ṵ:"U",Ʉ:"U","Ⓥ":"V",V:"V",Ṽ:"V",Ṿ:"V",Ʋ:"V",Ꝟ:"V",Ʌ:"V",Ꝡ:"VY","Ⓦ":"W",W:"W",Ẁ:"W",Ẃ:"W",Ŵ:"W",Ẇ:"W",Ẅ:"W",Ẉ:"W",Ⱳ:"W","Ⓧ":"X",X:"X",Ẋ:"X",Ẍ:"X","Ⓨ":"Y",Y:"Y",Ỳ:"Y",Ý:"Y",Ŷ:"Y",Ỹ:"Y",Ȳ:"Y",Ẏ:"Y",Ÿ:"Y",Ỷ:"Y",Ỵ:"Y",Ƴ:"Y",Ɏ:"Y",Ỿ:"Y","Ⓩ":"Z",Z:"Z",Ź:"Z",Ẑ:"Z",Ż:"Z",Ž:"Z",Ẓ:"Z",Ẕ:"Z",Ƶ:"Z",Ȥ:"Z","Ɀ":"Z",Ⱬ:"Z",Ꝣ:"Z","ⓐ":"a",a:"a",ẚ:"a",à:"a",á:"a",â:"a",ầ:"a",ấ:"a",ẫ:"a",ẩ:"a",ã:"a",ā:"a",ă:"a",ằ:"a",ắ:"a",ẵ:"a",ẳ:"a",ȧ:"a",ǡ:"a",ä:"a",ǟ:"a",ả:"a",å:"a",ǻ:"a",ǎ:"a",ȁ:"a",ȃ:"a",ạ:"a",ậ:"a",ặ:"a",ḁ:"a",ą:"a",ⱥ:"a",ɐ:"a",ꜳ:"aa",æ:"ae",ǽ:"ae",ǣ:"ae",ꜵ:"ao",ꜷ:"au",ꜹ:"av",ꜻ:"av",ꜽ:"ay","ⓑ":"b",b:"b",ḃ:"b",ḅ:"b",ḇ:"b",ƀ:"b",ƃ:"b",ɓ:"b","ⓒ":"c",c:"c",ć:"c",ĉ:"c",ċ:"c",č:"c",ç:"c",ḉ:"c",ƈ:"c",ȼ:"c",ꜿ:"c",ↄ:"c","ⓓ":"d",d:"d",ḋ:"d",ď:"d",ḍ:"d",ḑ:"d",ḓ:"d",ḏ:"d",đ:"d",ƌ:"d",ɖ:"d",ɗ:"d",ꝺ:"d",dz:"dz",dž:"dz","ⓔ":"e",e:"e",è:"e",é:"e",ê:"e",ề:"e",ế:"e",ễ:"e",ể:"e",ẽ:"e",ē:"e",ḕ:"e",ḗ:"e",ĕ:"e",ė:"e",ë:"e",ẻ:"e",ě:"e",ȅ:"e",ȇ:"e",ẹ:"e",ệ:"e",ȩ:"e",ḝ:"e",ę:"e",ḙ:"e",ḛ:"e",ɇ:"e",ɛ:"e",ǝ:"e","ⓕ":"f",f:"f",ḟ:"f",ƒ:"f",ꝼ:"f","ⓖ":"g",g:"g",ǵ:"g",ĝ:"g",ḡ:"g",ğ:"g",ġ:"g",ǧ:"g",ģ:"g",ǥ:"g",ɠ:"g","ꞡ":"g",ᵹ:"g",ꝿ:"g","ⓗ":"h",h:"h",ĥ:"h",ḣ:"h",ḧ:"h",ȟ:"h",ḥ:"h",ḩ:"h",ḫ:"h",ẖ:"h",ħ:"h",ⱨ:"h",ⱶ:"h",ɥ:"h",ƕ:"hv","ⓘ":"i",i:"i",ì:"i",í:"i",î:"i",ĩ:"i",ī:"i",ĭ:"i",ï:"i",ḯ:"i",ỉ:"i",ǐ:"i",ȉ:"i",ȋ:"i",ị:"i",į:"i",ḭ:"i",ɨ:"i",ı:"i","ⓙ":"j",j:"j",ĵ:"j",ǰ:"j",ɉ:"j","ⓚ":"k",k:"k",ḱ:"k",ǩ:"k",ḳ:"k",ķ:"k",ḵ:"k",ƙ:"k",ⱪ:"k",ꝁ:"k",ꝃ:"k",ꝅ:"k","ꞣ":"k","ⓛ":"l",l:"l",ŀ:"l",ĺ:"l",ľ:"l",ḷ:"l",ḹ:"l",ļ:"l",ḽ:"l",ḻ:"l",ſ:"l",ł:"l",ƚ:"l",ɫ:"l",ⱡ:"l",ꝉ:"l",ꞁ:"l",ꝇ:"l",lj:"lj","ⓜ":"m",m:"m",ḿ:"m",ṁ:"m",ṃ:"m",ɱ:"m",ɯ:"m","ⓝ":"n",n:"n",ǹ:"n",ń:"n",ñ:"n",ṅ:"n",ň:"n",ṇ:"n",ņ:"n",ṋ:"n",ṉ:"n",ƞ:"n",ɲ:"n",ʼn:"n","ꞑ":"n","ꞥ":"n",nj:"nj","ⓞ":"o",o:"o",ò:"o",ó:"o",ô:"o",ồ:"o",ố:"o",ỗ:"o",ổ:"o",õ:"o",ṍ:"o",ȭ:"o",ṏ:"o",ō:"o",ṑ:"o",ṓ:"o",ŏ:"o",ȯ:"o",ȱ:"o",ö:"o",ȫ:"o",ỏ:"o",ő:"o",ǒ:"o",ȍ:"o",ȏ:"o",ơ:"o",ờ:"o",ớ:"o",ỡ:"o",ở:"o",ợ:"o",ọ:"o",ộ:"o",ǫ:"o",ǭ:"o",ø:"o",ǿ:"o",ɔ:"o",ꝋ:"o",ꝍ:"o",ɵ:"o",ƣ:"oi",ȣ:"ou",ꝏ:"oo","ⓟ":"p",p:"p",ṕ:"p",ṗ:"p",ƥ:"p",ᵽ:"p",ꝑ:"p",ꝓ:"p",ꝕ:"p","ⓠ":"q",q:"q",ɋ:"q",ꝗ:"q",ꝙ:"q","ⓡ":"r",r:"r",ŕ:"r",ṙ:"r",ř:"r",ȑ:"r",ȓ:"r",ṛ:"r",ṝ:"r",ŗ:"r",ṟ:"r",ɍ:"r",ɽ:"r",ꝛ:"r","ꞧ":"r",ꞃ:"r","ⓢ":"s",s:"s",ß:"s",ś:"s",ṥ:"s",ŝ:"s",ṡ:"s",š:"s",ṧ:"s",ṣ:"s",ṩ:"s",ș:"s",ş:"s",ȿ:"s","ꞩ":"s",ꞅ:"s",ẛ:"s","ⓣ":"t",t:"t",ṫ:"t",ẗ:"t",ť:"t",ṭ:"t",ț:"t",ţ:"t",ṱ:"t",ṯ:"t",ŧ:"t",ƭ:"t",ʈ:"t",ⱦ:"t",ꞇ:"t",ꜩ:"tz","ⓤ":"u",u:"u",ù:"u",ú:"u",û:"u",ũ:"u",ṹ:"u",ū:"u",ṻ:"u",ŭ:"u",ü:"u",ǜ:"u",ǘ:"u",ǖ:"u",ǚ:"u",ủ:"u",ů:"u",ű:"u",ǔ:"u",ȕ:"u",ȗ:"u",ư:"u",ừ:"u",ứ:"u",ữ:"u",ử:"u",ự:"u",ụ:"u",ṳ:"u",ų:"u",ṷ:"u",ṵ:"u",ʉ:"u","ⓥ":"v",v:"v",ṽ:"v",ṿ:"v",ʋ:"v",ꝟ:"v",ʌ:"v",ꝡ:"vy","ⓦ":"w",w:"w",ẁ:"w",ẃ:"w",ŵ:"w",ẇ:"w",ẅ:"w",ẘ:"w",ẉ:"w",ⱳ:"w","ⓧ":"x",x:"x",ẋ:"x",ẍ:"x","ⓨ":"y",y:"y",ỳ:"y",ý:"y",ŷ:"y",ỹ:"y",ȳ:"y",ẏ:"y",ÿ:"y",ỷ:"y",ẙ:"y",ỵ:"y",ƴ:"y",ɏ:"y",ỿ:"y","ⓩ":"z",z:"z",ź:"z",ẑ:"z",ż:"z",ž:"z",ẓ:"z",ẕ:"z",ƶ:"z",ȥ:"z",ɀ:"z",ⱬ:"z",ꝣ:"z",Ά:"Α",Έ:"Ε",Ή:"Η",Ί:"Ι",Ϊ:"Ι",Ό:"Ο",Ύ:"Υ",Ϋ:"Υ",Ώ:"Ω",ά:"α",έ:"ε",ή:"η",ί:"ι",ϊ:"ι",ΐ:"ι",ό:"ο",ύ:"υ",ϋ:"υ",ΰ:"υ",ω:"ω",ς:"σ"};N=e(document),M=function(){var e=1;return function(){return e++}}(),R=k(Object,{bind:function(e){var t=this;return function(){e.apply(t,arguments)}},init:function(s){var i,n,a=".select2-results";this.opts=s=this.prepareOpts(s),this.id=s.id,s.element.data("select2")!==t&&null!==s.element.data("select2")&&s.element.data("select2").destroy(),this.container=this.createContainer(),this.liveRegion=e("<span>",{role:"status","aria-live":"polite"}).addClass("select2-hidden-accessible").appendTo(document.body),this.containerId="s2id_"+(s.element.attr("id")||"autogen"+M()),this.containerEventName=this.containerId.replace(/([.])/g,"_").replace(/([;&,\-\.\+\*\~':"\!\^#$%@\[\]\(\)=>\|])/g,"\\$1"),this.container.attr("id",this.containerId),this.container.attr("title",s.element.attr("title")),this.body=e("body"),w(this.container,this.opts.element,this.opts.adaptContainerCssClass),this.container.attr("style",s.element.attr("style")),this.container.css(T(s.containerCss,this.opts.element)),this.container.addClass(T(s.containerCssClass,this.opts.element)),this.elementTabIndex=this.opts.element.attr("tabindex"),this.opts.element.data("select2",this).attr("tabindex","-1").before(this.container).on("click.select2",g),this.container.data("select2",this),this.dropdown=this.container.find(".select2-drop"),w(this.dropdown,this.opts.element,this.opts.adaptDropdownCssClass),this.dropdown.addClass(T(s.dropdownCssClass,this.opts.element)),this.dropdown.data("select2",this),this.dropdown.on("click",g),this.results=i=this.container.find(a),this.search=n=this.container.find("input.select2-input"),this.queryCount=0,this.resultsPage=0,this.context=null,this.initContainer(),this.container.on("click",g),h(this.results),this.dropdown.on("mousemove-filtered",a,this.bind(this.highlightUnderEvent)),this.dropdown.on("touchstart touchmove touchend",a,this.bind(function(e){this._touchEvent=!0,this.highlightUnderEvent(e)})),this.dropdown.on("touchmove",a,this.bind(this.touchMoved)),this.dropdown.on("touchstart touchend",a,this.bind(this.clearTouchMoved)),this.dropdown.on("click",this.bind(function(){this._touchEvent&&(this._touchEvent=!1,this.selectHighlighted())})),d(80,this.results),this.dropdown.on("scroll-debounced",a,this.bind(this.loadMoreIfNeeded)),e(this.container).on("change",".select2-input",function(e){e.stopPropagation()}),e(this.dropdown).on("change",".select2-input",function(e){e.stopPropagation()}),e.fn.mousewheel&&i.mousewheel(function(e,t,s,n){var o=i.scrollTop();n>0&&0>=o-n?(i.scrollTop(0),g(e)):0>n&&i.get(0).scrollHeight-i.scrollTop()+n<=i.height()&&(i.scrollTop(i.get(0).scrollHeight-i.height()),g(e))}),l(n),n.on("keyup-change input paste",this.bind(this.updateResults)),n.on("focus",function(){n.addClass("select2-focused")}),n.on("blur",function(){n.removeClass("select2-focused")}),this.dropdown.on("mouseup",a,this.bind(function(t){e(t.target).closest(".select2-result-selectable").length>0&&(this.highlightUnderEvent(t),this.selectHighlighted(t))})),this.dropdown.on("click mouseup mousedown touchstart touchend focusin",function(e){e.stopPropagation()}),this.nextSearchTerm=t,e.isFunction(this.opts.initSelection)&&(this.initSelection(),this.monitorSource()),null!==s.maximumInputLength&&this.search.attr("maxlength",s.maximumInputLength);var r=s.element.prop("disabled");r===t&&(r=!1),this.enable(!r);var c=s.element.prop("readonly");c===t&&(c=!1),this.readonly(c),U=U||o(),this.autofocus=s.element.prop("autofocus"),s.element.prop("autofocus",!1),this.autofocus&&this.focus(),this.search.attr("placeholder",s.searchInputPlaceholder)},destroy:function(){var e=this.opts.element,s=e.data("select2");this.close(),e.length&&e[0].detachEvent&&e.each(function(){this.detachEvent("onpropertychange",this._sync)}),this.propertyObserver&&(this.propertyObserver.disconnect(),this.propertyObserver=null),this._sync=null,s!==t&&(s.container.remove(),s.liveRegion.remove(),s.dropdown.remove(),e.removeClass("select2-offscreen").removeData("select2").off(".select2").prop("autofocus",this.autofocus||!1),this.elementTabIndex?e.attr({tabindex:this.elementTabIndex}):e.removeAttr("tabindex"),e.show()),I.call(this,"container","liveRegion","dropdown","results","search")},optionToData:function(e){return e.is("option")?{id:e.prop("value"),text:e.text(),element:e.get(),css:e.attr("class"),disabled:e.prop("disabled"),locked:a(e.attr("locked"),"locked")||a(e.data("locked"),!0)}:e.is("optgroup")?{text:e.attr("label"),children:[],element:e.get(),css:e.attr("class")}:void 0},prepareOpts:function(s){var i,n,o,c,l=this;if(i=s.element,"select"===i.get(0).tagName.toLowerCase()&&(this.select=n=s.element),n&&e.each(["id","multiple","ajax","query","createSearchChoice","initSelection","data","tags"],function(){if(this in s)throw new Error("Option '"+this+"' is not allowed for Select2 when attached to a <select> element.")}),s=e.extend({},{populateResults:function(i,n,o){var a,r=this.opts.id,c=this.liveRegion;a=function(i,n,h){var u,d,p,f,g,m,v,w,b,C;i=s.sortResults(i,n,o);var S=[];for(u=0,d=i.length;d>u;u+=1)p=i[u],g=p.disabled===!0,f=!g&&r(p)!==t,m=p.children&&p.children.length>0,v=e("<li></li>"),v.addClass("select2-results-dept-"+h),v.addClass("select2-result"),v.addClass(f?"select2-result-selectable":"select2-result-unselectable"),g&&v.addClass("select2-disabled"),m&&v.addClass("select2-result-with-children"),v.addClass(l.opts.formatResultCssClass(p)),v.attr("role","presentation"),w=e(document.createElement("div")),w.addClass("select2-result-label"),w.attr("id","select2-result-label-"+M()),w.attr("role","option"),C=s.formatResult(p,w,o,l.opts.escapeMarkup),C!==t&&(w.html(C),v.append(w)),m&&(b=e("<ul></ul>"),b.addClass("select2-result-sub"),a(p.children,b,h+1),v.append(b)),v.data("select2-data",p),S.push(v[0]);n.append(S),c.text(s.formatMatches(i.length))},a(n,i,0)}},e.fn.select2.defaults,s),"function"!=typeof s.id&&(o=s.id,s.id=function(e){return e[o]}),e.isArray(s.element.data("select2Tags"))){if("tags"in s)throw"tags specified as both an attribute 'data-select2-tags' and in options of Select2 "+s.element.attr("id");s.tags=s.element.data("select2Tags")}if(n?(s.query=this.bind(function(e){var s,n,o,a={results:[],more:!1},r=e.term;o=function(t,s){var i;t.is("option")?e.matcher(r,t.text(),t)&&s.push(l.optionToData(t)):t.is("optgroup")&&(i=l.optionToData(t),t.children().each2(function(e,t){o(t,i.children)}),i.children.length>0&&s.push(i))},s=i.children(),this.getPlaceholder()!==t&&s.length>0&&(n=this.getPlaceholderOption(),n&&(s=s.not(n))),s.each2(function(e,t){o(t,a.results)}),e.callback(a)}),s.id=function(e){return e.id}):"query"in s||("ajax"in s?(c=s.element.data("ajax-url"),c&&c.length>0&&(s.ajax.url=c),s.query=S.call(s.element,s.ajax)):"data"in s?s.query=y(s.data):"tags"in s&&(s.query=E(s.tags),s.createSearchChoice===t&&(s.createSearchChoice=function(t){return{id:e.trim(t),text:e.trim(t)}}),s.initSelection===t&&(s.initSelection=function(t,i){var n=[];e(r(t.val(),s.separator)).each(function(){var t={id:this,text:this},i=s.tags;e.isFunction(i)&&(i=i()),e(i).each(function(){return a(this.id,t.id)?(t=this,!1):void 0}),n.push(t)}),i(n)}))),"function"!=typeof s.query)throw"query function not defined for Select2 "+s.element.attr("id");if("top"===s.createSearchChoicePosition)s.createSearchChoicePosition=function(e,t){e.unshift(t)};else if("bottom"===s.createSearchChoicePosition)s.createSearchChoicePosition=function(e,t){e.push(t)};else if("function"!=typeof s.createSearchChoicePosition)throw"invalid createSearchChoicePosition option must be 'top', 'bottom' or a custom function";return s},monitorSource:function(){var s,i=this.opts.element,n=this;i.on("change.select2",this.bind(function(){this.opts.element.data("select2-change-triggered")!==!0&&this.initSelection()})),this._sync=this.bind(function(){var e=i.prop("disabled");e===t&&(e=!1),this.enable(!e);var s=i.prop("readonly");s===t&&(s=!1),this.readonly(s),w(this.container,this.opts.element,this.opts.adaptContainerCssClass),this.container.addClass(T(this.opts.containerCssClass,this.opts.element)),w(this.dropdown,this.opts.element,this.opts.adaptDropdownCssClass),this.dropdown.addClass(T(this.opts.dropdownCssClass,this.opts.element))}),i.length&&i[0].attachEvent&&i.each(function(){this.attachEvent("onpropertychange",n._sync)}),s=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver,s!==t&&(this.propertyObserver&&(delete this.propertyObserver,this.propertyObserver=null),this.propertyObserver=new s(function(t){e.each(t,n._sync)}),this.propertyObserver.observe(i.get(0),{attributes:!0,subtree:!1}))},triggerSelect:function(t){var s=e.Event("select2-selecting",{val:this.id(t),object:t,choice:t});return this.opts.element.trigger(s),!s.isDefaultPrevented()},triggerChange:function(t){t=t||{},t=e.extend({},t,{type:"change",val:this.val()}),this.opts.element.data("select2-change-triggered",!0),this.opts.element.trigger(t),this.opts.element.data("select2-change-triggered",!1),this.opts.element.click(),this.opts.blurOnChange&&this.opts.element.blur()},isInterfaceEnabled:function(){return this.enabledInterface===!0},enableInterface:function(){var e=this._enabled&&!this._readonly,t=!e;return e===this.enabledInterface?!1:(this.container.toggleClass("select2-container-disabled",t),this.close(),this.enabledInterface=e,!0)},enable:function(e){e===t&&(e=!0),this._enabled!==e&&(this._enabled=e,this.opts.element.prop("disabled",!e),this.enableInterface())},disable:function(){this.enable(!1)},readonly:function(e){e===t&&(e=!1),this._readonly!==e&&(this._readonly=e,this.opts.element.prop("readonly",e),this.enableInterface())},opened:function(){return this.container?this.container.hasClass("select2-dropdown-open"):!1},positionDropdown:function(){var t,s,i,n,o,a=this.dropdown,r=this.container.offset(),c=this.container.outerHeight(!1),l=this.container.outerWidth(!1),h=a.outerHeight(!1),u=e(window),d=u.width(),p=u.height(),f=u.scrollLeft()+d,g=u.scrollTop()+p,m=r.top+c,v=r.left,w=g>=m+h,b=r.top-h>=u.scrollTop(),C=a.outerWidth(!1),S=f>=v+C,y=a.hasClass("select2-drop-above");y?(s=!0,!b&&w&&(i=!0,s=!1)):(s=!1,!w&&b&&(i=!0,s=!0)),i&&(a.hide(),r=this.container.offset(),c=this.container.outerHeight(!1),l=this.container.outerWidth(!1),h=a.outerHeight(!1),f=u.scrollLeft()+d,g=u.scrollTop()+p,m=r.top+c,v=r.left,C=a.outerWidth(!1),S=f>=v+C,a.show(),this.focusSearch()),this.opts.dropdownAutoWidth?(o=e(".select2-results",a)[0],a.addClass("select2-drop-auto-width"),a.css("width",""),C=a.outerWidth(!1)+(o.scrollHeight===o.clientHeight?0:U.width),C>l?l=C:C=l,h=a.outerHeight(!1),S=f>=v+C):this.container.removeClass("select2-drop-auto-width"),"static"!==this.body.css("position")&&(t=this.body.offset(),m-=t.top,v-=t.left),S||(v=r.left+this.container.outerWidth(!1)-C),n={left:v,width:l},s?(n.top=r.top-h,n.bottom="auto",this.container.addClass("select2-drop-above"),a.addClass("select2-drop-above")):(n.top=m,n.bottom="auto",this.container.removeClass("select2-drop-above"),a.removeClass("select2-drop-above")),n=e.extend(n,T(this.opts.dropdownCss,this.opts.element)),a.css(n)},shouldOpen:function(){var t;return this.opened()?!1:this._enabled===!1||this._readonly===!0?!1:(t=e.Event("select2-opening"),this.opts.element.trigger(t),!t.isDefaultPrevented())},clearDropdownAlignmentPreference:function(){this.container.removeClass("select2-drop-above"),this.dropdown.removeClass("select2-drop-above")},open:function(){return this.shouldOpen()?(this.opening(),N.on("mousemove.select2Event",function(e){F.x=e.pageX,F.y=e.pageY}),!0):!1},opening:function(){var t,i=this.containerEventName,n="scroll."+i,o="resize."+i,a="orientationchange."+i;this.container.addClass("select2-dropdown-open").addClass("select2-container-active"),this.clearDropdownAlignmentPreference(),this.dropdown[0]!==this.body.children().last()[0]&&this.dropdown.detach().appendTo(this.body),t=e("#select2-drop-mask"),0==t.length&&(t=e(document.createElement("div")),t.attr("id","select2-drop-mask").attr("class","select2-drop-mask"),t.hide(),t.appendTo(this.body),t.on("mousedown touchstart click",function(i){s(t);var n,o=e("#select2-drop");o.length>0&&(n=o.data("select2"),n.opts.selectOnBlur&&n.selectHighlighted({noFocus:!0}),n.close(),i.preventDefault(),i.stopPropagation())})),this.dropdown.prev()[0]!==t[0]&&this.dropdown.before(t),e("#select2-drop").removeAttr("id"),this.dropdown.attr("id","select2-drop"),t.show(),this.positionDropdown(),this.dropdown.show(),this.positionDropdown(),this.dropdown.addClass("select2-drop-active");var r=this;this.container.parents().add(window).each(function(){e(this).on(o+" "+n+" "+a,function(){r.opened()&&r.positionDropdown()})})},close:function(){if(this.opened()){var t=this.containerEventName,s="scroll."+t,i="resize."+t,n="orientationchange."+t;this.container.parents().add(window).each(function(){e(this).off(s).off(i).off(n)}),this.clearDropdownAlignmentPreference(),e("#select2-drop-mask").hide(),this.dropdown.removeAttr("id"),this.dropdown.hide(),this.container.removeClass("select2-dropdown-open").removeClass("select2-container-active"),this.results.empty(),N.off("mousemove.select2Event"),this.clearSearch(),this.search.removeClass("select2-active"),this.opts.element.trigger(e.Event("select2-close"))}},externalSearch:function(e){this.open(),this.search.val(e),this.updateResults(!1)},clearSearch:function(){},getMaximumSelectionSize:function(){return T(this.opts.maximumSelectionSize,this.opts.element)},ensureHighlightVisible:function(){var t,s,i,n,o,a,r,c,l=this.results;if(s=this.highlight(),!(0>s)){if(0==s)return l.scrollTop(0),void 0;t=this.findHighlightableChoices().find(".select2-result-label"),i=e(t[s]),c=(i.offset()||{}).top||0,n=c+i.outerHeight(!0),s===t.length-1&&(r=l.find("li.select2-more-results"),r.length>0&&(n=r.offset().top+r.outerHeight(!0))),o=l.offset().top+l.outerHeight(!0),n>o&&l.scrollTop(l.scrollTop()+(n-o)),a=c-l.offset().top,0>a&&"none"!=i.css("display")&&l.scrollTop(l.scrollTop()+a)}},findHighlightableChoices:function(){return this.results.find(".select2-result-selectable:not(.select2-disabled):not(.select2-selected)")},moveHighlight:function(t){for(var s=this.findHighlightableChoices(),i=this.highlight();i>-1&&i<s.length;){i+=t;var n=e(s[i]);if(n.hasClass("select2-result-selectable")&&!n.hasClass("select2-disabled")&&!n.hasClass("select2-selected")){this.highlight(i);break}}},highlight:function(t){var s,i,o=this.findHighlightableChoices();return 0===arguments.length?n(o.filter(".select2-highlighted")[0],o.get()):(t>=o.length&&(t=o.length-1),0>t&&(t=0),this.removeHighlight(),s=e(o[t]),s.addClass("select2-highlighted"),this.search.attr("aria-activedescendant",s.find(".select2-result-label").attr("id")),this.ensureHighlightVisible(),this.liveRegion.text(s.text()),i=s.data("select2-data"),i&&this.opts.element.trigger({type:"select2-highlight",val:this.id(i),choice:i}),void 0)},removeHighlight:function(){this.results.find(".select2-highlighted").removeClass("select2-highlighted")},touchMoved:function(){this._touchMoved=!0},clearTouchMoved:function(){this._touchMoved=!1},countSelectableResults:function(){return this.findHighlightableChoices().length},highlightUnderEvent:function(t){var s=e(t.target).closest(".select2-result-selectable");if(s.length>0&&!s.is(".select2-highlighted")){var i=this.findHighlightableChoices();this.highlight(i.index(s))}else 0==s.length&&this.removeHighlight()},loadMoreIfNeeded:function(){var e,t=this.results,s=t.find("li.select2-more-results"),i=this.resultsPage+1,n=this,o=this.search.val(),a=this.context;0!==s.length&&(e=s.offset().top-t.offset().top-t.height(),e<=this.opts.loadMorePadding&&(s.addClass("select2-active"),this.opts.query({element:this.opts.element,term:o,page:i,context:a,matcher:this.opts.matcher,callback:this.bind(function(e){n.opened()&&(n.opts.populateResults.call(this,t,e.results,{term:o,page:i,context:a}),n.postprocessResults(e,!1,!1),e.more===!0?(s.detach().appendTo(t).text(T(n.opts.formatLoadMore,n.opts.element,i+1)),window.setTimeout(function(){n.loadMoreIfNeeded()},10)):s.remove(),n.positionDropdown(),n.resultsPage=i,n.context=e.context,this.opts.element.trigger({type:"select2-loaded",items:e}))})})))},tokenize:function(){},updateResults:function(s){function i(){l.removeClass("select2-active"),d.positionDropdown(),h.find(".select2-no-results,.select2-selection-limit,.select2-searching").length?d.liveRegion.text(h.text()):d.liveRegion.text(d.opts.formatMatches(h.find(".select2-result-selectable").length))}function n(e){h.html(e),i()}var o,r,c,l=this.search,h=this.results,u=this.opts,d=this,p=l.val(),f=e.data(this.container,"select2-last-term");if((s===!0||!f||!a(p,f))&&(e.data(this.container,"select2-last-term",p),s===!0||this.showSearchInput!==!1&&this.opened())){c=++this.queryCount;var g=this.getMaximumSelectionSize();if(g>=1&&(o=this.data(),e.isArray(o)&&o.length>=g&&x(u.formatSelectionTooBig,"formatSelectionTooBig")))return n("<li class='select2-selection-limit'>"+T(u.formatSelectionTooBig,u.element,g)+"</li>"),void 0;if(l.val().length<u.minimumInputLength)return x(u.formatInputTooShort,"formatInputTooShort")?n("<li class='select2-no-results'>"+T(u.formatInputTooShort,u.element,l.val(),u.minimumInputLength)+"</li>"):n(""),s&&this.showSearch&&this.showSearch(!0),void 0;if(u.maximumInputLength&&l.val().length>u.maximumInputLength)return x(u.formatInputTooLong,"formatInputTooLong")?n("<li class='select2-no-results'>"+T(u.formatInputTooLong,u.element,l.val(),u.maximumInputLength)+"</li>"):n(""),void 0;u.formatSearching&&0===this.findHighlightableChoices().length&&n("<li class='select2-searching'>"+T(u.formatSearching,u.element)+"</li>"),l.addClass("select2-active"),this.removeHighlight(),r=this.tokenize(),r!=t&&null!=r&&l.val(r),this.resultsPage=1,u.query({element:u.element,term:l.val(),page:this.resultsPage,context:null,matcher:u.matcher,callback:this.bind(function(o){var r;if(c==this.queryCount){if(!this.opened())return this.search.removeClass("select2-active"),void 0;if(this.context=o.context===t?null:o.context,this.opts.createSearchChoice&&""!==l.val()&&(r=this.opts.createSearchChoice.call(d,l.val(),o.results),r!==t&&null!==r&&d.id(r)!==t&&null!==d.id(r)&&0===e(o.results).filter(function(){return a(d.id(this),d.id(r))}).length&&this.opts.createSearchChoicePosition(o.results,r)),0===o.results.length&&x(u.formatNoMatches,"formatNoMatches"))return n("<li class='select2-no-results'>"+T(u.formatNoMatches,u.element,l.val())+"</li>"),void 0;h.empty(),d.opts.populateResults.call(this,h,o.results,{term:l.val(),page:this.resultsPage,context:null}),o.more===!0&&x(u.formatLoadMore,"formatLoadMore")&&(h.append("<li class='select2-more-results'>"+u.escapeMarkup(T(u.formatLoadMore,u.element,this.resultsPage))+"</li>"),window.setTimeout(function(){d.loadMoreIfNeeded()},10)),this.postprocessResults(o,s),i(),this.opts.element.trigger({type:"select2-loaded",items:o})}})})}},cancel:function(){this.close()},blur:function(){this.opts.selectOnBlur&&this.selectHighlighted({noFocus:!0}),this.close(),this.container.removeClass("select2-container-active"),this.search[0]===document.activeElement&&this.search.blur(),this.clearSearch(),this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus")},focusSearch:function(){p(this.search)},selectHighlighted:function(e){if(this._touchMoved)return this.clearTouchMoved(),void 0;var t=this.highlight(),s=this.results.find(".select2-highlighted"),i=s.closest(".select2-result").data("select2-data");i?(this.highlight(t),this.onSelect(i,e)):e&&e.noFocus&&this.close()},getPlaceholder:function(){var e;return this.opts.element.attr("placeholder")||this.opts.element.attr("data-placeholder")||this.opts.element.data("placeholder")||this.opts.placeholder||((e=this.getPlaceholderOption())!==t?e.text():t)},getPlaceholderOption:function(){if(this.select){var s=this.select.children("option").first();if(this.opts.placeholderOption!==t)return"first"===this.opts.placeholderOption&&s||"function"==typeof this.opts.placeholderOption&&this.opts.placeholderOption(this.select);if(""===e.trim(s.text())&&""===s.val())return s}},initContainerWidth:function(){function s(){var s,i,n,o,a,r;
2
- if("off"===this.opts.width)return null;if("element"===this.opts.width)return 0===this.opts.element.outerWidth(!1)?"auto":this.opts.element.outerWidth(!1)+"px";if("copy"===this.opts.width||"resolve"===this.opts.width){if(s=this.opts.element.attr("style"),s!==t)for(i=s.split(";"),o=0,a=i.length;a>o;o+=1)if(r=i[o].replace(/\s/g,""),n=r.match(/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i),null!==n&&n.length>=1)return n[1];return"resolve"===this.opts.width?(s=this.opts.element.css("width"),s.indexOf("%")>0?s:0===this.opts.element.outerWidth(!1)?"auto":this.opts.element.outerWidth(!1)+"px"):null}return e.isFunction(this.opts.width)?this.opts.width():this.opts.width}var i=s.call(this);null!==i&&this.container.css("width",i)}}),D=k(R,{createContainer:function(){var t=e(document.createElement("div")).attr({"class":"select2-container"}).html(["<a href='javascript:void(0)' class='select2-choice' tabindex='-1'>"," <span class='select2-chosen'>&#160;</span><abbr class='select2-search-choice-close'></abbr>"," <span class='select2-arrow' role='presentation'><b role='presentation'></b></span>","</a>","<label for='' class='select2-offscreen'></label>","<input class='select2-focusser select2-offscreen' type='text' aria-haspopup='true' role='button' />","<div class='select2-drop select2-display-none'>"," <div class='select2-search'>"," <label for='' class='select2-offscreen'></label>"," <input type='text' autocomplete='off' autocorrect='off' autocapitalize='off' spellcheck='false' class='select2-input' role='combobox' aria-expanded='true'"," aria-autocomplete='list' />"," </div>"," <ul class='select2-results' role='listbox'>"," </ul>","</div>"].join(""));return t},enableInterface:function(){this.parent.enableInterface.apply(this,arguments)&&this.focusser.prop("disabled",!this.isInterfaceEnabled())},opening:function(){var s,i,n;this.opts.minimumResultsForSearch>=0&&this.showSearch(!0),this.parent.opening.apply(this,arguments),this.showSearchInput!==!1&&this.search.val(this.focusser.val()),this.opts.shouldFocusInput(this)&&(this.search.focus(),s=this.search.get(0),s.createTextRange?(i=s.createTextRange(),i.collapse(!1),i.select()):s.setSelectionRange&&(n=this.search.val().length,s.setSelectionRange(n,n))),""===this.search.val()&&this.nextSearchTerm!=t&&(this.search.val(this.nextSearchTerm),this.search.select()),this.focusser.prop("disabled",!0).val(""),this.updateResults(!0),this.opts.element.trigger(e.Event("select2-open"))},close:function(){this.opened()&&(this.parent.close.apply(this,arguments),this.focusser.prop("disabled",!1),this.opts.shouldFocusInput(this)&&this.focusser.focus())},focus:function(){this.opened()?this.close():(this.focusser.prop("disabled",!1),this.opts.shouldFocusInput(this)&&this.focusser.focus())},isFocused:function(){return this.container.hasClass("select2-container-active")},cancel:function(){this.parent.cancel.apply(this,arguments),this.focusser.prop("disabled",!1),this.opts.shouldFocusInput(this)&&this.focusser.focus()},destroy:function(){e("label[for='"+this.focusser.attr("id")+"']").attr("for",this.opts.element.attr("id")),this.parent.destroy.apply(this,arguments),I.call(this,"selection","focusser")},initContainer:function(){var t,i,n=this.container,o=this.dropdown,a=M();this.opts.minimumResultsForSearch<0?this.showSearch(!1):this.showSearch(!0),this.selection=t=n.find(".select2-choice"),this.focusser=n.find(".select2-focusser"),t.find(".select2-chosen").attr("id","select2-chosen-"+a),this.focusser.attr("aria-labelledby","select2-chosen-"+a),this.results.attr("id","select2-results-"+a),this.search.attr("aria-owns","select2-results-"+a),this.focusser.attr("id","s2id_autogen"+a),i=e("label[for='"+this.opts.element.attr("id")+"']"),this.focusser.prev().text(i.text()).attr("for",this.focusser.attr("id"));var r=this.opts.element.attr("title");this.opts.element.attr("title",r||i.text()),this.focusser.attr("tabindex",this.elementTabIndex),this.search.attr("id",this.focusser.attr("id")+"_search"),this.search.prev().text(e("label[for='"+this.focusser.attr("id")+"']").text()).attr("for",this.search.attr("id")),this.search.on("keydown",this.bind(function(e){if(this.isInterfaceEnabled()){if(e.which===A.PAGE_UP||e.which===A.PAGE_DOWN)return g(e),void 0;switch(e.which){case A.UP:case A.DOWN:return this.moveHighlight(e.which===A.UP?-1:1),g(e),void 0;case A.ENTER:return this.selectHighlighted(),g(e),void 0;case A.TAB:return this.selectHighlighted({noFocus:!0}),void 0;case A.ESC:return this.cancel(e),g(e),void 0}}})),this.search.on("blur",this.bind(function(){document.activeElement===this.body.get(0)&&window.setTimeout(this.bind(function(){this.opened()&&this.search.focus()}),0)})),this.focusser.on("keydown",this.bind(function(e){if(this.isInterfaceEnabled()&&e.which!==A.TAB&&!A.isControl(e)&&!A.isFunctionKey(e)&&e.which!==A.ESC){if(this.opts.openOnEnter===!1&&e.which===A.ENTER)return g(e),void 0;if(e.which==A.DOWN||e.which==A.UP||e.which==A.ENTER&&this.opts.openOnEnter){if(e.altKey||e.ctrlKey||e.shiftKey||e.metaKey)return;return this.open(),g(e),void 0}return e.which==A.DELETE||e.which==A.BACKSPACE?(this.opts.allowClear&&this.clear(),g(e),void 0):void 0}})),l(this.focusser),this.focusser.on("keyup-change input",this.bind(function(e){if(this.opts.minimumResultsForSearch>=0){if(e.stopPropagation(),this.opened())return;this.open()}})),t.on("mousedown touchstart","abbr",this.bind(function(e){this.isInterfaceEnabled()&&(this.clear(),m(e),this.close(),this.selection.focus())})),t.on("mousedown touchstart",this.bind(function(i){s(t),this.container.hasClass("select2-container-active")||this.opts.element.trigger(e.Event("select2-focus")),this.opened()?this.close():this.isInterfaceEnabled()&&this.open(),g(i)})),o.on("mousedown touchstart",this.bind(function(){this.opts.shouldFocusInput(this)&&this.search.focus()})),t.on("focus",this.bind(function(e){g(e)})),this.focusser.on("focus",this.bind(function(){this.container.hasClass("select2-container-active")||this.opts.element.trigger(e.Event("select2-focus")),this.container.addClass("select2-container-active")})).on("blur",this.bind(function(){this.opened()||(this.container.removeClass("select2-container-active"),this.opts.element.trigger(e.Event("select2-blur")))})),this.search.on("focus",this.bind(function(){this.container.hasClass("select2-container-active")||this.opts.element.trigger(e.Event("select2-focus")),this.container.addClass("select2-container-active")})),this.initContainerWidth(),this.opts.element.addClass("select2-offscreen"),this.setPlaceholder()},clear:function(t){var s=this.selection.data("select2-data");if(s){var i=e.Event("select2-clearing");if(this.opts.element.trigger(i),i.isDefaultPrevented())return;var n=this.getPlaceholderOption();this.opts.element.val(n?n.val():""),this.selection.find(".select2-chosen").empty(),this.selection.removeData("select2-data"),this.setPlaceholder(),t!==!1&&(this.opts.element.trigger({type:"select2-removed",val:this.id(s),choice:s}),this.triggerChange({removed:s}))}},initSelection:function(){if(this.isPlaceholderOptionSelected())this.updateSelection(null),this.close(),this.setPlaceholder();else{var e=this;this.opts.initSelection.call(null,this.opts.element,function(s){s!==t&&null!==s&&(e.updateSelection(s),e.close(),e.setPlaceholder(),e.nextSearchTerm=e.opts.nextSearchTerm(s,e.search.val()))})}},isPlaceholderOptionSelected:function(){var e;return this.getPlaceholder()===t?!1:(e=this.getPlaceholderOption())!==t&&e.prop("selected")||""===this.opts.element.val()||this.opts.element.val()===t||null===this.opts.element.val()},prepareOpts:function(){var t=this.parent.prepareOpts.apply(this,arguments),s=this;return"select"===t.element.get(0).tagName.toLowerCase()?t.initSelection=function(e,t){var i=e.find("option").filter(function(){return this.selected&&!this.disabled});t(s.optionToData(i))}:"data"in t&&(t.initSelection=t.initSelection||function(s,i){var n=s.val(),o=null;t.query({matcher:function(e,s,i){var r=a(n,t.id(i));return r&&(o=i),r},callback:e.isFunction(i)?function(){i(o)}:e.noop})}),t},getPlaceholder:function(){return this.select&&this.getPlaceholderOption()===t?t:this.parent.getPlaceholder.apply(this,arguments)},setPlaceholder:function(){var e=this.getPlaceholder();if(this.isPlaceholderOptionSelected()&&e!==t){if(this.select&&this.getPlaceholderOption()===t)return;this.selection.find(".select2-chosen").html(this.opts.escapeMarkup(e)),this.selection.addClass("select2-default"),this.container.removeClass("select2-allowclear")}},postprocessResults:function(e,t,s){var i=0,n=this;if(this.findHighlightableChoices().each2(function(e,t){return a(n.id(t.data("select2-data")),n.opts.element.val())?(i=e,!1):void 0}),s!==!1&&(t===!0&&i>=0?this.highlight(i):this.highlight(0)),t===!0){var o=this.opts.minimumResultsForSearch;o>=0&&this.showSearch(O(e.results)>=o)}},showSearch:function(t){this.showSearchInput!==t&&(this.showSearchInput=t,this.dropdown.find(".select2-search").toggleClass("select2-search-hidden",!t),this.dropdown.find(".select2-search").toggleClass("select2-offscreen",!t),e(this.dropdown,this.container).toggleClass("select2-with-searchbox",t))},onSelect:function(e,t){if(this.triggerSelect(e)){var s=this.opts.element.val(),i=this.data();this.opts.element.val(this.id(e)),this.updateSelection(e),this.opts.element.trigger({type:"select2-selected",val:this.id(e),choice:e}),this.nextSearchTerm=this.opts.nextSearchTerm(e,this.search.val()),this.close(),t&&t.noFocus||!this.opts.shouldFocusInput(this)||this.focusser.focus(),a(s,this.id(e))||this.triggerChange({added:e,removed:i})}},updateSelection:function(e){var s,i,n=this.selection.find(".select2-chosen");this.selection.data("select2-data",e),n.empty(),null!==e&&(s=this.opts.formatSelection(e,n,this.opts.escapeMarkup)),s!==t&&n.append(s),i=this.opts.formatSelectionCssClass(e,n),i!==t&&n.addClass(i),this.selection.removeClass("select2-default"),this.opts.allowClear&&this.getPlaceholder()!==t&&this.container.addClass("select2-allowclear")},val:function(){var e,s=!1,i=null,n=this,o=this.data();if(0===arguments.length)return this.opts.element.val();if(e=arguments[0],arguments.length>1&&(s=arguments[1]),this.select)this.select.val(e).find("option").filter(function(){return this.selected}).each2(function(e,t){return i=n.optionToData(t),!1}),this.updateSelection(i),this.setPlaceholder(),s&&this.triggerChange({added:i,removed:o});else{if(!e&&0!==e)return this.clear(s),void 0;if(this.opts.initSelection===t)throw new Error("cannot call val() if initSelection() is not defined");this.opts.element.val(e),this.opts.initSelection(this.opts.element,function(e){n.opts.element.val(e?n.id(e):""),n.updateSelection(e),n.setPlaceholder(),s&&n.triggerChange({added:e,removed:o})})}},clearSearch:function(){this.search.val(""),this.focusser.val("")},data:function(e){var s,i=!1;return 0===arguments.length?(s=this.selection.data("select2-data"),s==t&&(s=null),s):(arguments.length>1&&(i=arguments[1]),e?(s=this.data(),this.opts.element.val(e?this.id(e):""),this.updateSelection(e),i&&this.triggerChange({added:e,removed:s})):this.clear(i),void 0)}}),H=k(R,{createContainer:function(){var t=e(document.createElement("div")).attr({"class":"select2-container select2-container-multi"}).html(["<ul class='select2-choices'>"," <li class='select2-search-field'>"," <label for='' class='select2-offscreen'></label>"," <input type='text' autocomplete='off' autocorrect='off' autocapitalize='off' spellcheck='false' class='select2-input'>"," </li>","</ul>","<div class='select2-drop select2-drop-multi select2-display-none'>"," <ul class='select2-results'>"," </ul>","</div>"].join(""));return t},prepareOpts:function(){var t=this.parent.prepareOpts.apply(this,arguments),s=this;return"select"===t.element.get(0).tagName.toLowerCase()?t.initSelection=function(e,t){var i=[];e.find("option").filter(function(){return this.selected&&!this.disabled}).each2(function(e,t){i.push(s.optionToData(t))}),t(i)}:"data"in t&&(t.initSelection=t.initSelection||function(s,i){var n=r(s.val(),t.separator),o=[];t.query({matcher:function(s,i,r){var c=e.grep(n,function(e){return a(e,t.id(r))}).length;return c&&o.push(r),c},callback:e.isFunction(i)?function(){for(var e=[],s=0;s<n.length;s++)for(var r=n[s],c=0;c<o.length;c++){var l=o[c];if(a(r,t.id(l))){e.push(l),o.splice(c,1);break}}i(e)}:e.noop})}),t},selectChoice:function(e){var t=this.container.find(".select2-search-choice-focus");t.length&&e&&e[0]==t[0]||(t.length&&this.opts.element.trigger("choice-deselected",t),t.removeClass("select2-search-choice-focus"),e&&e.length&&(this.close(),e.addClass("select2-search-choice-focus"),this.opts.element.trigger("choice-selected",e)))},destroy:function(){e("label[for='"+this.search.attr("id")+"']").attr("for",this.opts.element.attr("id")),this.parent.destroy.apply(this,arguments),I.call(this,"searchContainer","selection")},initContainer:function(){var t,s=".select2-choices";this.searchContainer=this.container.find(".select2-search-field"),this.selection=t=this.container.find(s);var i=this;this.selection.on("click",".select2-search-choice:not(.select2-locked)",function(){i.search[0].focus(),i.selectChoice(e(this))}),this.search.attr("id","s2id_autogen"+M()),this.search.prev().text(e("label[for='"+this.opts.element.attr("id")+"']").text()).attr("for",this.search.attr("id")),this.search.on("input paste",this.bind(function(){this.search.attr("placeholder")&&0==this.search.val().length||this.isInterfaceEnabled()&&(this.opened()||this.open())})),this.search.attr("tabindex",this.elementTabIndex),this.keydowns=0,this.search.on("keydown",this.bind(function(e){if(this.isInterfaceEnabled()){++this.keydowns;var s=t.find(".select2-search-choice-focus"),i=s.prev(".select2-search-choice:not(.select2-locked)"),n=s.next(".select2-search-choice:not(.select2-locked)"),o=f(this.search);if(s.length&&(e.which==A.LEFT||e.which==A.RIGHT||e.which==A.BACKSPACE||e.which==A.DELETE||e.which==A.ENTER)){var a=s;return e.which==A.LEFT&&i.length?a=i:e.which==A.RIGHT?a=n.length?n:null:e.which===A.BACKSPACE?this.unselect(s.first())&&(this.search.width(10),a=i.length?i:n):e.which==A.DELETE?this.unselect(s.first())&&(this.search.width(10),a=n.length?n:null):e.which==A.ENTER&&(a=null),this.selectChoice(a),g(e),a&&a.length||this.open(),void 0}if((e.which===A.BACKSPACE&&1==this.keydowns||e.which==A.LEFT)&&0==o.offset&&!o.length)return this.selectChoice(t.find(".select2-search-choice:not(.select2-locked)").last()),g(e),void 0;if(this.selectChoice(null),this.opened())switch(e.which){case A.UP:case A.DOWN:return this.moveHighlight(e.which===A.UP?-1:1),g(e),void 0;case A.ENTER:return this.selectHighlighted(),g(e),void 0;case A.TAB:return this.selectHighlighted({noFocus:!0}),this.close(),void 0;case A.ESC:return this.cancel(e),g(e),void 0}if(e.which!==A.TAB&&!A.isControl(e)&&!A.isFunctionKey(e)&&e.which!==A.BACKSPACE&&e.which!==A.ESC){if(e.which===A.ENTER){if(this.opts.openOnEnter===!1)return;if(e.altKey||e.ctrlKey||e.shiftKey||e.metaKey)return}this.open(),(e.which===A.PAGE_UP||e.which===A.PAGE_DOWN)&&g(e),e.which===A.ENTER&&g(e)}}})),this.search.on("keyup",this.bind(function(){this.keydowns=0,this.resizeSearch()})),this.search.on("blur",this.bind(function(t){this.container.removeClass("select2-container-active"),this.search.removeClass("select2-focused"),this.selectChoice(null),this.opened()||this.clearSearch(),t.stopImmediatePropagation(),this.opts.element.trigger(e.Event("select2-blur"))})),this.container.on("click",s,this.bind(function(t){this.isInterfaceEnabled()&&(e(t.target).closest(".select2-search-choice").length>0||(this.selectChoice(null),this.clearPlaceholder(),this.container.hasClass("select2-container-active")||this.opts.element.trigger(e.Event("select2-focus")),this.open(),this.focusSearch(),t.preventDefault()))})),this.container.on("focus",s,this.bind(function(){this.isInterfaceEnabled()&&(this.container.hasClass("select2-container-active")||this.opts.element.trigger(e.Event("select2-focus")),this.container.addClass("select2-container-active"),this.dropdown.addClass("select2-drop-active"),this.clearPlaceholder())})),this.initContainerWidth(),this.opts.element.addClass("select2-offscreen"),this.clearSearch()},enableInterface:function(){this.parent.enableInterface.apply(this,arguments)&&this.search.prop("disabled",!this.isInterfaceEnabled())},initSelection:function(){if(""===this.opts.element.val()&&""===this.opts.element.text()&&(this.updateSelection([]),this.close(),this.clearSearch()),this.select||""!==this.opts.element.val()){var e=this;this.opts.initSelection.call(null,this.opts.element,function(s){s!==t&&null!==s&&(e.updateSelection(s),e.close(),e.clearSearch())})}},clearSearch:function(){var e=this.getPlaceholder(),s=this.getMaxSearchWidth();e!==t&&0===this.getVal().length&&this.search.hasClass("select2-focused")===!1?(this.search.val(e).addClass("select2-default"),this.search.width(s>0?s:this.container.css("width"))):this.search.val("").width(10)},clearPlaceholder:function(){this.search.hasClass("select2-default")&&this.search.val("").removeClass("select2-default")},opening:function(){this.clearPlaceholder(),this.resizeSearch(),this.parent.opening.apply(this,arguments),this.focusSearch(),""===this.search.val()&&this.nextSearchTerm!=t&&(this.search.val(this.nextSearchTerm),this.search.select()),this.updateResults(!0),this.opts.shouldFocusInput(this)&&this.search.focus(),this.opts.element.trigger(e.Event("select2-open"))},close:function(){this.opened()&&this.parent.close.apply(this,arguments)},focus:function(){this.close(),this.search.focus()},isFocused:function(){return this.search.hasClass("select2-focused")},updateSelection:function(t){var s=[],i=[],o=this;e(t).each(function(){n(o.id(this),s)<0&&(s.push(o.id(this)),i.push(this))}),t=i,this.selection.find(".select2-search-choice").remove(),e(t).each(function(){o.addSelectedChoice(this)}),o.postprocessResults()},tokenize:function(){var e=this.search.val();e=this.opts.tokenizer.call(this,e,this.data(),this.bind(this.onSelect),this.opts),null!=e&&e!=t&&(this.search.val(e),e.length>0&&this.open())},onSelect:function(e,s){this.triggerSelect(e)&&(this.addSelectedChoice(e),this.opts.element.trigger({type:"selected",val:this.id(e),choice:e}),this.nextSearchTerm=this.opts.nextSearchTerm(e,this.search.val()),this.clearSearch(),this.updateResults(),(this.select||!this.opts.closeOnSelect)&&this.postprocessResults(e,!1,this.opts.closeOnSelect===!0),this.opts.closeOnSelect?(this.close(),this.search.width(10)):this.countSelectableResults()>0?(this.search.width(10),this.resizeSearch(),this.getMaximumSelectionSize()>0&&this.val().length>=this.getMaximumSelectionSize()?this.updateResults(!0):this.nextSearchTerm!=t&&(this.search.val(this.nextSearchTerm),this.updateResults(),this.search.select()),this.positionDropdown()):(this.close(),this.search.width(10)),this.triggerChange({added:e}),s&&s.noFocus||this.focusSearch())},cancel:function(){this.close(),this.focusSearch()},addSelectedChoice:function(s){var i,n,o=!s.locked,a=e("<li class='select2-search-choice'> <div></div> <a href='#' class='select2-search-choice-close' tabindex='-1'></a></li>"),r=e("<li class='select2-search-choice select2-locked'><div></div></li>"),c=o?a:r,l=this.id(s),h=this.getVal();i=this.opts.formatSelection(s,c.find("div"),this.opts.escapeMarkup),i!=t&&c.find("div").replaceWith("<div>"+i+"</div>"),n=this.opts.formatSelectionCssClass(s,c.find("div")),n!=t&&c.addClass(n),o&&c.find(".select2-search-choice-close").on("mousedown",g).on("click dblclick",this.bind(function(t){this.isInterfaceEnabled()&&(this.unselect(e(t.target)),this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus"),g(t),this.close(),this.focusSearch())})).on("focus",this.bind(function(){this.isInterfaceEnabled()&&(this.container.addClass("select2-container-active"),this.dropdown.addClass("select2-drop-active"))})),c.data("select2-data",s),c.insertBefore(this.searchContainer),h.push(l),this.setVal(h)},unselect:function(t){var s,i,o=this.getVal();if(t=t.closest(".select2-search-choice"),0===t.length)throw"Invalid argument: "+t+". Must be .select2-search-choice";if(s=t.data("select2-data")){var a=e.Event("select2-removing");if(a.val=this.id(s),a.choice=s,this.opts.element.trigger(a),a.isDefaultPrevented())return!1;for(;(i=n(this.id(s),o))>=0;)o.splice(i,1),this.setVal(o),this.select&&this.postprocessResults();return t.remove(),this.opts.element.trigger({type:"select2-removed",val:this.id(s),choice:s}),this.triggerChange({removed:s}),!0}},postprocessResults:function(e,t,s){var i=this.getVal(),o=this.results.find(".select2-result"),a=this.results.find(".select2-result-with-children"),r=this;o.each2(function(e,t){var s=r.id(t.data("select2-data"));n(s,i)>=0&&(t.addClass("select2-selected"),t.find(".select2-result-selectable").addClass("select2-selected"))}),a.each2(function(e,t){t.is(".select2-result-selectable")||0!==t.find(".select2-result-selectable:not(.select2-selected)").length||t.addClass("select2-selected")}),-1==this.highlight()&&s!==!1&&r.highlight(0),!this.opts.createSearchChoice&&!o.filter(".select2-result:not(.select2-selected)").length>0&&(!e||e&&!e.more&&0===this.results.find(".select2-no-results").length)&&x(r.opts.formatNoMatches,"formatNoMatches")&&this.results.append("<li class='select2-no-results'>"+T(r.opts.formatNoMatches,r.opts.element,r.search.val())+"</li>")},getMaxSearchWidth:function(){return this.selection.width()-c(this.search)},resizeSearch:function(){var e,t,s,i,n,o=c(this.search);e=v(this.search)+10,t=this.search.offset().left,s=this.selection.width(),i=this.selection.offset().left,n=s-(t-i)-o,e>n&&(n=s-o),40>n&&(n=s-o),0>=n&&(n=e),this.search.width(Math.floor(n))},getVal:function(){var e;return this.select?(e=this.select.val(),null===e?[]:e):(e=this.opts.element.val(),r(e,this.opts.separator))},setVal:function(t){var s;this.select?this.select.val(t):(s=[],e(t).each(function(){n(this,s)<0&&s.push(this)}),this.opts.element.val(0===s.length?"":s.join(this.opts.separator)))},buildChangeDetails:function(e,t){for(var t=t.slice(0),e=e.slice(0),s=0;s<t.length;s++)for(var i=0;i<e.length;i++)a(this.opts.id(t[s]),this.opts.id(e[i]))&&(t.splice(s,1),s>0&&s--,e.splice(i,1),i--);return{added:t,removed:e}},val:function(s,i){var n,o=this;if(0===arguments.length)return this.getVal();if(n=this.data(),n.length||(n=[]),!s&&0!==s)return this.opts.element.val(""),this.updateSelection([]),this.clearSearch(),i&&this.triggerChange({added:this.data(),removed:n}),void 0;if(this.setVal(s),this.select)this.opts.initSelection(this.select,this.bind(this.updateSelection)),i&&this.triggerChange(this.buildChangeDetails(n,this.data()));else{if(this.opts.initSelection===t)throw new Error("val() cannot be called if initSelection() is not defined");this.opts.initSelection(this.opts.element,function(t){var s=e.map(t,o.id);o.setVal(s),o.updateSelection(t),o.clearSearch(),i&&o.triggerChange(o.buildChangeDetails(n,o.data()))})}this.clearSearch()},onSortStart:function(){if(this.select)throw new Error("Sorting of elements is not supported when attached to <select>. Attach to <input type='hidden'/> instead.");this.search.width(0),this.searchContainer.hide()},onSortEnd:function(){var t=[],s=this;this.searchContainer.show(),this.searchContainer.appendTo(this.searchContainer.parent()),this.resizeSearch(),this.selection.find(".select2-search-choice").each(function(){t.push(s.opts.id(e(this).data("select2-data")))}),this.setVal(t),this.triggerChange()},data:function(t,s){var i,n,o=this;return 0===arguments.length?this.selection.children(".select2-search-choice").map(function(){return e(this).data("select2-data")}).get():(n=this.data(),t||(t=[]),i=e.map(t,function(e){return o.opts.id(e)}),this.setVal(i),this.updateSelection(t),this.clearSearch(),s&&this.triggerChange(this.buildChangeDetails(n,this.data())),void 0)}}),e.fn.select2=function(){var s,i,o,a,r,c=Array.prototype.slice.call(arguments,0),l=["val","destroy","opened","open","close","focus","isFocused","container","dropdown","onSortStart","onSortEnd","enable","disable","readonly","positionDropdown","data","search"],h=["opened","isFocused","container","dropdown"],u=["val","data"],d={search:"externalSearch"};return this.each(function(){if(0===c.length||"object"==typeof c[0])s=0===c.length?{}:e.extend({},c[0]),s.element=e(this),"select"===s.element.get(0).tagName.toLowerCase()?r=s.element.prop("multiple"):(r=s.multiple||!1,"tags"in s&&(s.multiple=r=!0)),i=r?new window.Select2["class"].multi:new window.Select2["class"].single,i.init(s);else{if("string"!=typeof c[0])throw"Invalid arguments to select2 plugin: "+c;if(n(c[0],l)<0)throw"Unknown method: "+c[0];if(a=t,i=e(this).data("select2"),i===t)return;if(o=c[0],"container"===o?a=i.container:"dropdown"===o?a=i.dropdown:(d[o]&&(o=d[o]),a=i[o].apply(i,c.slice(1))),n(c[0],h)>=0||n(c[0],u)>=0&&1==c.length)return!1}}),a===t?this:a},e.fn.select2.defaults={width:"copy",loadMorePadding:0,closeOnSelect:!0,openOnEnter:!0,containerCss:{},dropdownCss:{},containerCssClass:"",dropdownCssClass:"",formatResult:function(e,t,s,i){var n=[];return b(e.text,s.term,n,i),n.join("")},formatSelection:function(e,s,i){return e?i(e.text):t},sortResults:function(e){return e},formatResultCssClass:function(e){return e.css},formatSelectionCssClass:function(){return t},formatMatches:function(e){return 1===e?"One result is available, press enter to select it.":e+" results are available, use up and down arrow keys to navigate."},formatNoMatches:function(){return"No matches found"},formatInputTooShort:function(e,t){var s=t-e.length;return"Please enter "+s+" or more character"+(1==s?"":"s")},formatInputTooLong:function(e,t){var s=e.length-t;return"Please delete "+s+" character"+(1==s?"":"s")},formatSelectionTooBig:function(e){return"You can only select "+e+" item"+(1==e?"":"s")},formatLoadMore:function(){return"Loading more results…"},formatSearching:function(){return"Searching…"},minimumResultsForSearch:0,minimumInputLength:0,maximumInputLength:null,maximumSelectionSize:0,id:function(e){return e==t?null:e.id},matcher:function(e,t){return i(""+t).toUpperCase().indexOf(i(""+e).toUpperCase())>=0},separator:",",tokenSeparators:[],tokenizer:P,escapeMarkup:C,blurOnChange:!1,selectOnBlur:!1,adaptContainerCssClass:function(e){return e},adaptDropdownCssClass:function(){return null},nextSearchTerm:function(){return t},searchInputPlaceholder:"",createSearchChoicePosition:"top",shouldFocusInput:function(e){var t="ontouchstart"in window||navigator.msMaxTouchPoints>0;return t?e.opts.minimumResultsForSearch<0?!1:!0:!0}},e.fn.select2.ajaxDefaults={transport:e.ajax,params:{type:"GET",cache:!1,dataType:"json"}},window.Select2={query:{ajax:S,local:y,tags:E},util:{debounce:u,markMatch:b,escapeMarkup:C,stripDiacritics:i},"class":{"abstract":R,single:D,multi:H}}}}(jQuery);
1
+ !function(e){"undefined"==typeof e.fn.each2&&e.extend(e.fn,{each2:function(t){for(var s=e([0]),i=-1,n=this.length;++i<n&&(s.context=s[0]=this[i])&&t.call(s[0],i,s)!==!1;);return this}})}(jQuery),function(e,t){"use strict";function s(t){var s=e(document.createTextNode(""));t.before(s),s.before(t),s.remove()}function i(e){function t(e){return j[e]||e}return e.replace(/[^\u0000-\u007E]/g,t)}function n(e,t){for(var s=0,i=t.length;i>s;s+=1)if(a(e,t[s]))return s;return-1}function o(){var t=e(z);t.appendTo("body");var s={width:t.width()-t[0].clientWidth,height:t.height()-t[0].clientHeight};return t.remove(),s}function a(e,s){return e===s?!0:e===t||s===t?!1:null===e||null===s?!1:e.constructor===String?e+""==s+"":s.constructor===String?s+""==e+"":!1}function r(t,s){var i,n,o;if(null===t||t.length<1)return[];for(i=t.split(s),n=0,o=i.length;o>n;n+=1)i[n]=e.trim(i[n]);return i}function c(e){return e.outerWidth(!1)-e.width()}function l(s){var i="keyup-change-value";s.on("keydown",function(){e.data(s,i)===t&&e.data(s,i,s.val())}),s.on("keyup",function(){var n=e.data(s,i);n!==t&&s.val()!==n&&(e.removeData(s,i),s.trigger("keyup-change"))})}function h(s){s.on("mousemove",function(s){var i=F;(i===t||i.x!==s.pageX||i.y!==s.pageY)&&e(s.target).trigger("mousemove-filtered",s)})}function u(e,s,i){i=i||t;var n;return function(){var t=arguments;window.clearTimeout(n),n=window.setTimeout(function(){s.apply(i,t)},e)}}function d(e,t){var s=u(e,function(e){t.trigger("scroll-debounced",e)});t.on("scroll",function(e){n(e.target,t.get())>=0&&s(e)})}function p(e){e[0]!==document.activeElement&&window.setTimeout(function(){var t,s=e[0],i=e.val().length;e.focus();var n=s.offsetWidth>0||s.offsetHeight>0;n&&s===document.activeElement&&(s.setSelectionRange?s.setSelectionRange(i,i):s.createTextRange&&(t=s.createTextRange(),t.collapse(!1),t.select()))},0)}function f(t){t=e(t)[0];var s=0,i=0;if("selectionStart"in t)s=t.selectionStart,i=t.selectionEnd-s;else if("selection"in document){t.focus();var n=document.selection.createRange();i=document.selection.createRange().text.length,n.moveStart("character",-t.value.length),s=n.text.length-i}return{offset:s,length:i}}function g(e){e.preventDefault(),e.stopPropagation()}function m(e){e.preventDefault(),e.stopImmediatePropagation()}function v(t){if(!L){var s=t[0].currentStyle||window.getComputedStyle(t[0],null);L=e(document.createElement("div")).css({position:"absolute",left:"-10000px",top:"-10000px",display:"none",fontSize:s.fontSize,fontFamily:s.fontFamily,fontStyle:s.fontStyle,fontWeight:s.fontWeight,letterSpacing:s.letterSpacing,textTransform:s.textTransform,whiteSpace:"nowrap"}),L.attr("class","select2-sizer"),e("body").append(L)}return L.text(t.val()),L.width()}function w(t,s,i){var n,o,a=[];n=e.trim(t.attr("class")),n&&(n=""+n,e(n.split(/\s+/)).each2(function(){0===this.indexOf("select2-")&&a.push(this)})),n=e.trim(s.attr("class")),n&&(n=""+n,e(n.split(/\s+/)).each2(function(){0!==this.indexOf("select2-")&&(o=i(this),o&&a.push(o))})),t.attr("class",a.join(" "))}function b(e,t,s,n){var o=i(e.toUpperCase()).indexOf(i(t.toUpperCase())),a=t.length;return 0>o?(s.push(n(e)),void 0):(s.push(n(e.substring(0,o))),s.push("<span class='select2-match'>"),s.push(n(e.substring(o,o+a))),s.push("</span>"),s.push(n(e.substring(o+a,e.length))),void 0)}function C(e){var t={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return String(e).replace(/[&<>"'\/\\]/g,function(e){return t[e]})}function S(s){var i,n=null,o=s.quietMillis||100,a=s.url,r=this;return function(c){window.clearTimeout(i),i=window.setTimeout(function(){var i=s.data,o=a,l=s.transport||e.fn.select2.ajaxDefaults.transport,h={type:s.type||"GET",cache:s.cache||!1,jsonpCallback:s.jsonpCallback||t,dataType:s.dataType||"json"},u=e.extend({},e.fn.select2.ajaxDefaults.params,h);i=i?i.call(r,c.term,c.page,c.context):null,o="function"==typeof o?o.call(r,c.term,c.page,c.context):o,n&&"function"==typeof n.abort&&n.abort(),s.params&&(e.isFunction(s.params)?e.extend(u,s.params.call(r)):e.extend(u,s.params)),e.extend(u,{url:o,dataType:s.dataType,data:i,success:function(e){var t=s.results(e,c.page,c);c.callback(t)},error:function(e,t,s){var i={hasError:!0,jqXHR:e,textStatus:t,errorThrown:s};c.callback(i)}}),n=l.call(r,u)},o)}}function y(t){var s,i,n=t,o=function(e){return""+e.text};e.isArray(n)&&(i=n,n={results:i}),e.isFunction(n)===!1&&(i=n,n=function(){return i});var a=n();return a.text&&(o=a.text,e.isFunction(o)||(s=a.text,o=function(e){return e[s]})),function(t){var s,i=t.term,a={results:[]};return""===i?(t.callback(n()),void 0):(s=function(n,a){var r,c;if(n=n[0],n.children){r={};for(c in n)n.hasOwnProperty(c)&&(r[c]=n[c]);r.children=[],e(n.children).each2(function(e,t){s(t,r.children)}),(r.children.length||t.matcher(i,o(r),n))&&a.push(r)}else t.matcher(i,o(n),n)&&a.push(n)},e(n().results).each2(function(e,t){s(t,a.results)}),t.callback(a),void 0)}}function E(s){var i=e.isFunction(s);return function(n){var o=n.term,a={results:[]},r=i?s(n):s;e.isArray(r)&&(e(r).each(function(){var e=this.text!==t,s=e?this.text:this;(""===o||n.matcher(o,s))&&a.results.push(e?this:{id:this,text:this})}),n.callback(a))}}function x(t,s){if(e.isFunction(t))return!0;if(!t)return!1;if("string"==typeof t)return!0;throw new Error(s+" must be a string, function, or falsy value")}function T(t,s){if(e.isFunction(t)){var i=Array.prototype.slice.call(arguments,2);return t.apply(s,i)}return t}function O(t){var s=0;return e.each(t,function(e,t){t.children?s+=O(t.children):s++}),s}function P(e,s,i,n){var o,r,c,l,h,u=e,d=!1;if(!n.createSearchChoice||!n.tokenSeparators||n.tokenSeparators.length<1)return t;for(;;){for(r=-1,c=0,l=n.tokenSeparators.length;l>c&&(h=n.tokenSeparators[c],r=e.indexOf(h),!(r>=0));c++);if(0>r)break;if(o=e.substring(0,r),e=e.substring(r+h.length),o.length>0&&(o=n.createSearchChoice.call(this,o,s),o!==t&&null!==o&&n.id(o)!==t&&null!==n.id(o))){for(d=!1,c=0,l=s.length;l>c;c++)if(a(n.id(o),n.id(s[c]))){d=!0;break}d||i(o)}}return u!==e?e:void 0}function I(){var t=this;e.each(arguments,function(e,s){t[s].remove(),t[s]=null})}function k(t,s){var i=function(){};return i.prototype=new t,i.prototype.constructor=i,i.prototype.parent=t.prototype,i.prototype=e.extend(i.prototype,s),i}if(window.Select2===t){var A,R,D,H,M,L,N,U,F={x:0,y:0},A={TAB:9,ENTER:13,ESC:27,SPACE:32,LEFT:37,UP:38,RIGHT:39,DOWN:40,SHIFT:16,CTRL:17,ALT:18,PAGE_UP:33,PAGE_DOWN:34,HOME:36,END:35,BACKSPACE:8,DELETE:46,isArrow:function(e){switch(e=e.which?e.which:e){case A.LEFT:case A.RIGHT:case A.UP:case A.DOWN:return!0}return!1},isControl:function(e){var t=e.which;switch(t){case A.SHIFT:case A.CTRL:case A.ALT:return!0}return e.metaKey?!0:!1},isFunctionKey:function(e){return e=e.which?e.which:e,e>=112&&123>=e}},z="<div class='select2-measure-scrollbar'></div>",j={"Ⓐ":"A",A:"A",À:"A",Á:"A",Â:"A",Ầ:"A",Ấ:"A",Ẫ:"A",Ẩ:"A",Ã:"A",Ā:"A",Ă:"A",Ằ:"A",Ắ:"A",Ẵ:"A",Ẳ:"A",Ȧ:"A",Ǡ:"A",Ä:"A",Ǟ:"A",Ả:"A",Å:"A",Ǻ:"A",Ǎ:"A",Ȁ:"A",Ȃ:"A",Ạ:"A",Ậ:"A",Ặ:"A",Ḁ:"A",Ą:"A",Ⱥ:"A",Ɐ:"A",Ꜳ:"AA",Æ:"AE",Ǽ:"AE",Ǣ:"AE",Ꜵ:"AO",Ꜷ:"AU",Ꜹ:"AV",Ꜻ:"AV",Ꜽ:"AY","Ⓑ":"B",B:"B",Ḃ:"B",Ḅ:"B",Ḇ:"B",Ƀ:"B",Ƃ:"B",Ɓ:"B","Ⓒ":"C",C:"C",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",Ç:"C",Ḉ:"C",Ƈ:"C",Ȼ:"C",Ꜿ:"C","Ⓓ":"D",D:"D",Ḋ:"D",Ď:"D",Ḍ:"D",Ḑ:"D",Ḓ:"D",Ḏ:"D",Đ:"D",Ƌ:"D",Ɗ:"D",Ɖ:"D",Ꝺ:"D",DZ:"DZ",DŽ:"DZ",Dz:"Dz",Dž:"Dz","Ⓔ":"E",E:"E",È:"E",É:"E",Ê:"E",Ề:"E",Ế:"E",Ễ:"E",Ể:"E",Ẽ:"E",Ē:"E",Ḕ:"E",Ḗ:"E",Ĕ:"E",Ė:"E",Ë:"E",Ẻ:"E",Ě:"E",Ȅ:"E",Ȇ:"E",Ẹ:"E",Ệ:"E",Ȩ:"E",Ḝ:"E",Ę:"E",Ḙ:"E",Ḛ:"E",Ɛ:"E",Ǝ:"E","Ⓕ":"F",F:"F",Ḟ:"F",Ƒ:"F",Ꝼ:"F","Ⓖ":"G",G:"G",Ǵ:"G",Ĝ:"G",Ḡ:"G",Ğ:"G",Ġ:"G",Ǧ:"G",Ģ:"G",Ǥ:"G",Ɠ:"G","Ꞡ":"G",Ᵹ:"G",Ꝿ:"G","Ⓗ":"H",H:"H",Ĥ:"H",Ḣ:"H",Ḧ:"H",Ȟ:"H",Ḥ:"H",Ḩ:"H",Ḫ:"H",Ħ:"H",Ⱨ:"H",Ⱶ:"H","Ɥ":"H","Ⓘ":"I",I:"I",Ì:"I",Í:"I",Î:"I",Ĩ:"I",Ī:"I",Ĭ:"I",İ:"I",Ï:"I",Ḯ:"I",Ỉ:"I",Ǐ:"I",Ȉ:"I",Ȋ:"I",Ị:"I",Į:"I",Ḭ:"I",Ɨ:"I","Ⓙ":"J",J:"J",Ĵ:"J",Ɉ:"J","Ⓚ":"K",K:"K",Ḱ:"K",Ǩ:"K",Ḳ:"K",Ķ:"K",Ḵ:"K",Ƙ:"K",Ⱪ:"K",Ꝁ:"K",Ꝃ:"K",Ꝅ:"K","Ꞣ":"K","Ⓛ":"L",L:"L",Ŀ:"L",Ĺ:"L",Ľ:"L",Ḷ:"L",Ḹ:"L",Ļ:"L",Ḽ:"L",Ḻ:"L",Ł:"L",Ƚ:"L",Ɫ:"L",Ⱡ:"L",Ꝉ:"L",Ꝇ:"L",Ꞁ:"L",LJ:"LJ",Lj:"Lj","Ⓜ":"M",M:"M",Ḿ:"M",Ṁ:"M",Ṃ:"M",Ɱ:"M",Ɯ:"M","Ⓝ":"N",N:"N",Ǹ:"N",Ń:"N",Ñ:"N",Ṅ:"N",Ň:"N",Ṇ:"N",Ņ:"N",Ṋ:"N",Ṉ:"N",Ƞ:"N",Ɲ:"N","Ꞑ":"N","Ꞥ":"N",NJ:"NJ",Nj:"Nj","Ⓞ":"O",O:"O",Ò:"O",Ó:"O",Ô:"O",Ồ:"O",Ố:"O",Ỗ:"O",Ổ:"O",Õ:"O",Ṍ:"O",Ȭ:"O",Ṏ:"O",Ō:"O",Ṑ:"O",Ṓ:"O",Ŏ:"O",Ȯ:"O",Ȱ:"O",Ö:"O",Ȫ:"O",Ỏ:"O",Ő:"O",Ǒ:"O",Ȍ:"O",Ȏ:"O",Ơ:"O",Ờ:"O",Ớ:"O",Ỡ:"O",Ở:"O",Ợ:"O",Ọ:"O",Ộ:"O",Ǫ:"O",Ǭ:"O",Ø:"O",Ǿ:"O",Ɔ:"O",Ɵ:"O",Ꝋ:"O",Ꝍ:"O",Ƣ:"OI",Ꝏ:"OO",Ȣ:"OU","Ⓟ":"P",P:"P",Ṕ:"P",Ṗ:"P",Ƥ:"P",Ᵽ:"P",Ꝑ:"P",Ꝓ:"P",Ꝕ:"P","Ⓠ":"Q",Q:"Q",Ꝗ:"Q",Ꝙ:"Q",Ɋ:"Q","Ⓡ":"R",R:"R",Ŕ:"R",Ṙ:"R",Ř:"R",Ȑ:"R",Ȓ:"R",Ṛ:"R",Ṝ:"R",Ŗ:"R",Ṟ:"R",Ɍ:"R",Ɽ:"R",Ꝛ:"R","Ꞧ":"R",Ꞃ:"R","Ⓢ":"S",S:"S",ẞ:"S",Ś:"S",Ṥ:"S",Ŝ:"S",Ṡ:"S",Š:"S",Ṧ:"S",Ṣ:"S",Ṩ:"S",Ș:"S",Ş:"S","Ȿ":"S","Ꞩ":"S",Ꞅ:"S","Ⓣ":"T",T:"T",Ṫ:"T",Ť:"T",Ṭ:"T",Ț:"T",Ţ:"T",Ṱ:"T",Ṯ:"T",Ŧ:"T",Ƭ:"T",Ʈ:"T",Ⱦ:"T",Ꞇ:"T",Ꜩ:"TZ","Ⓤ":"U",U:"U",Ù:"U",Ú:"U",Û:"U",Ũ:"U",Ṹ:"U",Ū:"U",Ṻ:"U",Ŭ:"U",Ü:"U",Ǜ:"U",Ǘ:"U",Ǖ:"U",Ǚ:"U",Ủ:"U",Ů:"U",Ű:"U",Ǔ:"U",Ȕ:"U",Ȗ:"U",Ư:"U",Ừ:"U",Ứ:"U",Ữ:"U",Ử:"U",Ự:"U",Ụ:"U",Ṳ:"U",Ų:"U",Ṷ:"U",Ṵ:"U",Ʉ:"U","Ⓥ":"V",V:"V",Ṽ:"V",Ṿ:"V",Ʋ:"V",Ꝟ:"V",Ʌ:"V",Ꝡ:"VY","Ⓦ":"W",W:"W",Ẁ:"W",Ẃ:"W",Ŵ:"W",Ẇ:"W",Ẅ:"W",Ẉ:"W",Ⱳ:"W","Ⓧ":"X",X:"X",Ẋ:"X",Ẍ:"X","Ⓨ":"Y",Y:"Y",Ỳ:"Y",Ý:"Y",Ŷ:"Y",Ỹ:"Y",Ȳ:"Y",Ẏ:"Y",Ÿ:"Y",Ỷ:"Y",Ỵ:"Y",Ƴ:"Y",Ɏ:"Y",Ỿ:"Y","Ⓩ":"Z",Z:"Z",Ź:"Z",Ẑ:"Z",Ż:"Z",Ž:"Z",Ẓ:"Z",Ẕ:"Z",Ƶ:"Z",Ȥ:"Z","Ɀ":"Z",Ⱬ:"Z",Ꝣ:"Z","ⓐ":"a",a:"a",ẚ:"a",à:"a",á:"a",â:"a",ầ:"a",ấ:"a",ẫ:"a",ẩ:"a",ã:"a",ā:"a",ă:"a",ằ:"a",ắ:"a",ẵ:"a",ẳ:"a",ȧ:"a",ǡ:"a",ä:"a",ǟ:"a",ả:"a",å:"a",ǻ:"a",ǎ:"a",ȁ:"a",ȃ:"a",ạ:"a",ậ:"a",ặ:"a",ḁ:"a",ą:"a",ⱥ:"a",ɐ:"a",ꜳ:"aa",æ:"ae",ǽ:"ae",ǣ:"ae",ꜵ:"ao",ꜷ:"au",ꜹ:"av",ꜻ:"av",ꜽ:"ay","ⓑ":"b",b:"b",ḃ:"b",ḅ:"b",ḇ:"b",ƀ:"b",ƃ:"b",ɓ:"b","ⓒ":"c",c:"c",ć:"c",ĉ:"c",ċ:"c",č:"c",ç:"c",ḉ:"c",ƈ:"c",ȼ:"c",ꜿ:"c",ↄ:"c","ⓓ":"d",d:"d",ḋ:"d",ď:"d",ḍ:"d",ḑ:"d",ḓ:"d",ḏ:"d",đ:"d",ƌ:"d",ɖ:"d",ɗ:"d",ꝺ:"d",dz:"dz",dž:"dz","ⓔ":"e",e:"e",è:"e",é:"e",ê:"e",ề:"e",ế:"e",ễ:"e",ể:"e",ẽ:"e",ē:"e",ḕ:"e",ḗ:"e",ĕ:"e",ė:"e",ë:"e",ẻ:"e",ě:"e",ȅ:"e",ȇ:"e",ẹ:"e",ệ:"e",ȩ:"e",ḝ:"e",ę:"e",ḙ:"e",ḛ:"e",ɇ:"e",ɛ:"e",ǝ:"e","ⓕ":"f",f:"f",ḟ:"f",ƒ:"f",ꝼ:"f","ⓖ":"g",g:"g",ǵ:"g",ĝ:"g",ḡ:"g",ğ:"g",ġ:"g",ǧ:"g",ģ:"g",ǥ:"g",ɠ:"g","ꞡ":"g",ᵹ:"g",ꝿ:"g","ⓗ":"h",h:"h",ĥ:"h",ḣ:"h",ḧ:"h",ȟ:"h",ḥ:"h",ḩ:"h",ḫ:"h",ẖ:"h",ħ:"h",ⱨ:"h",ⱶ:"h",ɥ:"h",ƕ:"hv","ⓘ":"i",i:"i",ì:"i",í:"i",î:"i",ĩ:"i",ī:"i",ĭ:"i",ï:"i",ḯ:"i",ỉ:"i",ǐ:"i",ȉ:"i",ȋ:"i",ị:"i",į:"i",ḭ:"i",ɨ:"i",ı:"i","ⓙ":"j",j:"j",ĵ:"j",ǰ:"j",ɉ:"j","ⓚ":"k",k:"k",ḱ:"k",ǩ:"k",ḳ:"k",ķ:"k",ḵ:"k",ƙ:"k",ⱪ:"k",ꝁ:"k",ꝃ:"k",ꝅ:"k","ꞣ":"k","ⓛ":"l",l:"l",ŀ:"l",ĺ:"l",ľ:"l",ḷ:"l",ḹ:"l",ļ:"l",ḽ:"l",ḻ:"l",ſ:"l",ł:"l",ƚ:"l",ɫ:"l",ⱡ:"l",ꝉ:"l",ꞁ:"l",ꝇ:"l",lj:"lj","ⓜ":"m",m:"m",ḿ:"m",ṁ:"m",ṃ:"m",ɱ:"m",ɯ:"m","ⓝ":"n",n:"n",ǹ:"n",ń:"n",ñ:"n",ṅ:"n",ň:"n",ṇ:"n",ņ:"n",ṋ:"n",ṉ:"n",ƞ:"n",ɲ:"n",ʼn:"n","ꞑ":"n","ꞥ":"n",nj:"nj","ⓞ":"o",o:"o",ò:"o",ó:"o",ô:"o",ồ:"o",ố:"o",ỗ:"o",ổ:"o",õ:"o",ṍ:"o",ȭ:"o",ṏ:"o",ō:"o",ṑ:"o",ṓ:"o",ŏ:"o",ȯ:"o",ȱ:"o",ö:"o",ȫ:"o",ỏ:"o",ő:"o",ǒ:"o",ȍ:"o",ȏ:"o",ơ:"o",ờ:"o",ớ:"o",ỡ:"o",ở:"o",ợ:"o",ọ:"o",ộ:"o",ǫ:"o",ǭ:"o",ø:"o",ǿ:"o",ɔ:"o",ꝋ:"o",ꝍ:"o",ɵ:"o",ƣ:"oi",ȣ:"ou",ꝏ:"oo","ⓟ":"p",p:"p",ṕ:"p",ṗ:"p",ƥ:"p",ᵽ:"p",ꝑ:"p",ꝓ:"p",ꝕ:"p","ⓠ":"q",q:"q",ɋ:"q",ꝗ:"q",ꝙ:"q","ⓡ":"r",r:"r",ŕ:"r",ṙ:"r",ř:"r",ȑ:"r",ȓ:"r",ṛ:"r",ṝ:"r",ŗ:"r",ṟ:"r",ɍ:"r",ɽ:"r",ꝛ:"r","ꞧ":"r",ꞃ:"r","ⓢ":"s",s:"s",ß:"s",ś:"s",ṥ:"s",ŝ:"s",ṡ:"s",š:"s",ṧ:"s",ṣ:"s",ṩ:"s",ș:"s",ş:"s",ȿ:"s","ꞩ":"s",ꞅ:"s",ẛ:"s","ⓣ":"t",t:"t",ṫ:"t",ẗ:"t",ť:"t",ṭ:"t",ț:"t",ţ:"t",ṱ:"t",ṯ:"t",ŧ:"t",ƭ:"t",ʈ:"t",ⱦ:"t",ꞇ:"t",ꜩ:"tz","ⓤ":"u",u:"u",ù:"u",ú:"u",û:"u",ũ:"u",ṹ:"u",ū:"u",ṻ:"u",ŭ:"u",ü:"u",ǜ:"u",ǘ:"u",ǖ:"u",ǚ:"u",ủ:"u",ů:"u",ű:"u",ǔ:"u",ȕ:"u",ȗ:"u",ư:"u",ừ:"u",ứ:"u",ữ:"u",ử:"u",ự:"u",ụ:"u",ṳ:"u",ų:"u",ṷ:"u",ṵ:"u",ʉ:"u","ⓥ":"v",v:"v",ṽ:"v",ṿ:"v",ʋ:"v",ꝟ:"v",ʌ:"v",ꝡ:"vy","ⓦ":"w",w:"w",ẁ:"w",ẃ:"w",ŵ:"w",ẇ:"w",ẅ:"w",ẘ:"w",ẉ:"w",ⱳ:"w","ⓧ":"x",x:"x",ẋ:"x",ẍ:"x","ⓨ":"y",y:"y",ỳ:"y",ý:"y",ŷ:"y",ỹ:"y",ȳ:"y",ẏ:"y",ÿ:"y",ỷ:"y",ẙ:"y",ỵ:"y",ƴ:"y",ɏ:"y",ỿ:"y","ⓩ":"z",z:"z",ź:"z",ẑ:"z",ż:"z",ž:"z",ẓ:"z",ẕ:"z",ƶ:"z",ȥ:"z",ɀ:"z",ⱬ:"z",ꝣ:"z",Ά:"Α",Έ:"Ε",Ή:"Η",Ί:"Ι",Ϊ:"Ι",Ό:"Ο",Ύ:"Υ",Ϋ:"Υ",Ώ:"Ω",ά:"α",έ:"ε",ή:"η",ί:"ι",ϊ:"ι",ΐ:"ι",ό:"ο",ύ:"υ",ϋ:"υ",ΰ:"υ",ω:"ω",ς:"σ"};N=e(document),M=function(){var e=1;return function(){return e++}}(),R=k(Object,{bind:function(e){var t=this;return function(){e.apply(t,arguments)}},init:function(s){var i,n,a=".select2-results";this.opts=s=this.prepareOpts(s),this.id=s.id,s.element.data("select2")!==t&&null!==s.element.data("select2")&&s.element.data("select2").destroy(),this.container=this.createContainer(),this.liveRegion=e("<span>",{role:"status","aria-live":"polite"}).addClass("select2-hidden-accessible").appendTo(document.body),this.containerId="s2id_"+(s.element.attr("id")||"autogen"+M()),this.containerEventName=this.containerId.replace(/([.])/g,"_").replace(/([;&,\-\.\+\*\~':"\!\^#$%@\[\]\(\)=>\|])/g,"\\$1"),this.container.attr("id",this.containerId),this.container.attr("title",s.element.attr("title")),this.body=e("body"),w(this.container,this.opts.element,this.opts.adaptContainerCssClass),this.container.attr("style",s.element.attr("style")),this.container.css(T(s.containerCss,this.opts.element)),this.container.addClass(T(s.containerCssClass,this.opts.element)),this.elementTabIndex=this.opts.element.attr("tabindex"),this.opts.element.data("select2",this).attr("tabindex","-1").before(this.container).on("click.select2",g),this.container.data("select2",this),this.dropdown=this.container.find(".select2-drop"),w(this.dropdown,this.opts.element,this.opts.adaptDropdownCssClass),this.dropdown.addClass(T(s.dropdownCssClass,this.opts.element)),this.dropdown.data("select2",this),this.dropdown.on("click",g),this.results=i=this.container.find(a),this.search=n=this.container.find("input.select2-input"),this.queryCount=0,this.resultsPage=0,this.context=null,this.initContainer(),this.container.on("click",g),h(this.results),this.dropdown.on("mousemove-filtered",a,this.bind(this.highlightUnderEvent)),this.dropdown.on("touchstart touchmove touchend",a,this.bind(function(e){this._touchEvent=!0,this.highlightUnderEvent(e)})),this.dropdown.on("touchmove",a,this.bind(this.touchMoved)),this.dropdown.on("touchstart touchend",a,this.bind(this.clearTouchMoved)),this.dropdown.on("click",this.bind(function(){this._touchEvent&&(this._touchEvent=!1,this.selectHighlighted())})),d(80,this.results),this.dropdown.on("scroll-debounced",a,this.bind(this.loadMoreIfNeeded)),e(this.container).on("change",".select2-input",function(e){e.stopPropagation()}),e(this.dropdown).on("change",".select2-input",function(e){e.stopPropagation()}),e.fn.mousewheel&&i.mousewheel(function(e,t,s,n){var o=i.scrollTop();n>0&&0>=o-n?(i.scrollTop(0),g(e)):0>n&&i.get(0).scrollHeight-i.scrollTop()+n<=i.height()&&(i.scrollTop(i.get(0).scrollHeight-i.height()),g(e))}),l(n),n.on("keyup-change input paste",this.bind(this.updateResults)),n.on("focus",function(){n.addClass("select2-focused")}),n.on("blur",function(){n.removeClass("select2-focused")}),this.dropdown.on("mouseup",a,this.bind(function(t){e(t.target).closest(".select2-result-selectable").length>0&&(this.highlightUnderEvent(t),this.selectHighlighted(t))})),this.dropdown.on("click mouseup mousedown touchstart touchend focusin",function(e){e.stopPropagation()}),this.nextSearchTerm=t,e.isFunction(this.opts.initSelection)&&(this.initSelection(),this.monitorSource()),null!==s.maximumInputLength&&this.search.attr("maxlength",s.maximumInputLength);var r=s.element.prop("disabled");r===t&&(r=!1),this.enable(!r);var c=s.element.prop("readonly");c===t&&(c=!1),this.readonly(c),U=U||o(),this.autofocus=s.element.prop("autofocus"),s.element.prop("autofocus",!1),this.autofocus&&this.focus(),this.search.attr("placeholder",s.searchInputPlaceholder)},destroy:function(){var e=this.opts.element,s=e.data("select2"),i=this;this.close(),e.length&&e[0].detachEvent&&e.each(function(){this.detachEvent("onpropertychange",i._sync)}),this.propertyObserver&&(this.propertyObserver.disconnect(),this.propertyObserver=null),this._sync=null,s!==t&&(s.container.remove(),s.liveRegion.remove(),s.dropdown.remove(),e.removeClass("select2-offscreen").removeData("select2").off(".select2").prop("autofocus",this.autofocus||!1),this.elementTabIndex?e.attr({tabindex:this.elementTabIndex}):e.removeAttr("tabindex"),e.show()),I.call(this,"container","liveRegion","dropdown","results","search")},optionToData:function(e){return e.is("option")?{id:e.prop("value"),text:e.text(),element:e.get(),css:e.attr("class"),disabled:e.prop("disabled"),locked:a(e.attr("locked"),"locked")||a(e.data("locked"),!0)}:e.is("optgroup")?{text:e.attr("label"),children:[],element:e.get(),css:e.attr("class")}:void 0},prepareOpts:function(s){var i,n,o,c,l=this;if(i=s.element,"select"===i.get(0).tagName.toLowerCase()&&(this.select=n=s.element),n&&e.each(["id","multiple","ajax","query","createSearchChoice","initSelection","data","tags"],function(){if(this in s)throw new Error("Option '"+this+"' is not allowed for Select2 when attached to a <select> element.")}),s=e.extend({},{populateResults:function(i,n,o){var a,r=this.opts.id,c=this.liveRegion;a=function(i,n,h){var u,d,p,f,g,m,v,w,b,C;i=s.sortResults(i,n,o);var S=[];for(u=0,d=i.length;d>u;u+=1)p=i[u],g=p.disabled===!0,f=!g&&r(p)!==t,m=p.children&&p.children.length>0,v=e("<li></li>"),v.addClass("select2-results-dept-"+h),v.addClass("select2-result"),v.addClass(f?"select2-result-selectable":"select2-result-unselectable"),g&&v.addClass("select2-disabled"),m&&v.addClass("select2-result-with-children"),v.addClass(l.opts.formatResultCssClass(p)),v.attr("role","presentation"),w=e(document.createElement("div")),w.addClass("select2-result-label"),w.attr("id","select2-result-label-"+M()),w.attr("role","option"),C=s.formatResult(p,w,o,l.opts.escapeMarkup),C!==t&&(w.html(C),v.append(w)),m&&(b=e("<ul></ul>"),b.addClass("select2-result-sub"),a(p.children,b,h+1),v.append(b)),v.data("select2-data",p),S.push(v[0]);n.append(S),c.text(s.formatMatches(i.length))},a(n,i,0)}},e.fn.select2.defaults,s),"function"!=typeof s.id&&(o=s.id,s.id=function(e){return e[o]}),e.isArray(s.element.data("select2Tags"))){if("tags"in s)throw"tags specified as both an attribute 'data-select2-tags' and in options of Select2 "+s.element.attr("id");s.tags=s.element.data("select2Tags")}if(n?(s.query=this.bind(function(e){var s,n,o,a={results:[],more:!1},r=e.term;o=function(t,s){var i;t.is("option")?e.matcher(r,t.text(),t)&&s.push(l.optionToData(t)):t.is("optgroup")&&(i=l.optionToData(t),t.children().each2(function(e,t){o(t,i.children)}),i.children.length>0&&s.push(i))},s=i.children(),this.getPlaceholder()!==t&&s.length>0&&(n=this.getPlaceholderOption(),n&&(s=s.not(n))),s.each2(function(e,t){o(t,a.results)}),e.callback(a)}),s.id=function(e){return e.id}):"query"in s||("ajax"in s?(c=s.element.data("ajax-url"),c&&c.length>0&&(s.ajax.url=c),s.query=S.call(s.element,s.ajax)):"data"in s?s.query=y(s.data):"tags"in s&&(s.query=E(s.tags),s.createSearchChoice===t&&(s.createSearchChoice=function(t){return{id:e.trim(t),text:e.trim(t)}}),s.initSelection===t&&(s.initSelection=function(t,i){var n=[];e(r(t.val(),s.separator)).each(function(){var t={id:this,text:this},i=s.tags;e.isFunction(i)&&(i=i()),e(i).each(function(){return a(this.id,t.id)?(t=this,!1):void 0}),n.push(t)}),i(n)}))),"function"!=typeof s.query)throw"query function not defined for Select2 "+s.element.attr("id");if("top"===s.createSearchChoicePosition)s.createSearchChoicePosition=function(e,t){e.unshift(t)};else if("bottom"===s.createSearchChoicePosition)s.createSearchChoicePosition=function(e,t){e.push(t)};else if("function"!=typeof s.createSearchChoicePosition)throw"invalid createSearchChoicePosition option must be 'top', 'bottom' or a custom function";return s},monitorSource:function(){var s,i=this.opts.element,n=this;i.on("change.select2",this.bind(function(){this.opts.element.data("select2-change-triggered")!==!0&&this.initSelection()})),this._sync=this.bind(function(){var e=i.prop("disabled");e===t&&(e=!1),this.enable(!e);var s=i.prop("readonly");s===t&&(s=!1),this.readonly(s),w(this.container,this.opts.element,this.opts.adaptContainerCssClass),this.container.addClass(T(this.opts.containerCssClass,this.opts.element)),w(this.dropdown,this.opts.element,this.opts.adaptDropdownCssClass),this.dropdown.addClass(T(this.opts.dropdownCssClass,this.opts.element))}),i.length&&i[0].attachEvent&&i.each(function(){this.attachEvent("onpropertychange",n._sync)}),s=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver,s!==t&&(this.propertyObserver&&(delete this.propertyObserver,this.propertyObserver=null),this.propertyObserver=new s(function(t){e.each(t,n._sync)}),this.propertyObserver.observe(i.get(0),{attributes:!0,subtree:!1}))},triggerSelect:function(t){var s=e.Event("select2-selecting",{val:this.id(t),object:t,choice:t});return this.opts.element.trigger(s),!s.isDefaultPrevented()},triggerChange:function(t){t=t||{},t=e.extend({},t,{type:"change",val:this.val()}),this.opts.element.data("select2-change-triggered",!0),this.opts.element.trigger(t),this.opts.element.data("select2-change-triggered",!1),this.opts.element.click(),this.opts.blurOnChange&&this.opts.element.blur()},isInterfaceEnabled:function(){return this.enabledInterface===!0},enableInterface:function(){var e=this._enabled&&!this._readonly,t=!e;return e===this.enabledInterface?!1:(this.container.toggleClass("select2-container-disabled",t),this.close(),this.enabledInterface=e,!0)},enable:function(e){e===t&&(e=!0),this._enabled!==e&&(this._enabled=e,this.opts.element.prop("disabled",!e),this.enableInterface())},disable:function(){this.enable(!1)},readonly:function(e){e===t&&(e=!1),this._readonly!==e&&(this._readonly=e,this.opts.element.prop("readonly",e),this.enableInterface())},opened:function(){return this.container?this.container.hasClass("select2-dropdown-open"):!1},positionDropdown:function(){var t,s,i,n,o,a=this.dropdown,r=this.container.offset(),c=this.container.outerHeight(!1),l=this.container.outerWidth(!1),h=a.outerHeight(!1),u=e(window),d=u.width(),p=u.height(),f=u.scrollLeft()+d,g=u.scrollTop()+p,m=r.top+c,v=r.left,w=g>=m+h,b=r.top-h>=u.scrollTop(),C=a.outerWidth(!1),S=f>=v+C,y=a.hasClass("select2-drop-above");y?(s=!0,!b&&w&&(i=!0,s=!1)):(s=!1,!w&&b&&(i=!0,s=!0)),i&&(a.hide(),r=this.container.offset(),c=this.container.outerHeight(!1),l=this.container.outerWidth(!1),h=a.outerHeight(!1),f=u.scrollLeft()+d,g=u.scrollTop()+p,m=r.top+c,v=r.left,C=a.outerWidth(!1),S=f>=v+C,a.show(),this.focusSearch()),this.opts.dropdownAutoWidth?(o=e(".select2-results",a)[0],a.addClass("select2-drop-auto-width"),a.css("width",""),C=a.outerWidth(!1)+(o.scrollHeight===o.clientHeight?0:U.width),C>l?l=C:C=l,h=a.outerHeight(!1),S=f>=v+C):this.container.removeClass("select2-drop-auto-width"),"static"!==this.body.css("position")&&(t=this.body.offset(),m-=t.top,v-=t.left),S||(v=r.left+this.container.outerWidth(!1)-C),n={left:v,width:l},s?(n.top=r.top-h,n.bottom="auto",this.container.addClass("select2-drop-above"),a.addClass("select2-drop-above")):(n.top=m,n.bottom="auto",this.container.removeClass("select2-drop-above"),a.removeClass("select2-drop-above")),n=e.extend(n,T(this.opts.dropdownCss,this.opts.element)),a.css(n)},shouldOpen:function(){var t;return this.opened()?!1:this._enabled===!1||this._readonly===!0?!1:(t=e.Event("select2-opening"),this.opts.element.trigger(t),!t.isDefaultPrevented())},clearDropdownAlignmentPreference:function(){this.container.removeClass("select2-drop-above"),this.dropdown.removeClass("select2-drop-above")},open:function(){return this.shouldOpen()?(this.opening(),N.on("mousemove.select2Event",function(e){F.x=e.pageX,F.y=e.pageY}),!0):!1},opening:function(){var t,i=this.containerEventName,n="scroll."+i,o="resize."+i,a="orientationchange."+i;this.container.addClass("select2-dropdown-open").addClass("select2-container-active"),this.clearDropdownAlignmentPreference(),this.dropdown[0]!==this.body.children().last()[0]&&this.dropdown.detach().appendTo(this.body),t=e("#select2-drop-mask"),0==t.length&&(t=e(document.createElement("div")),t.attr("id","select2-drop-mask").attr("class","select2-drop-mask"),t.hide(),t.appendTo(this.body),t.on("mousedown touchstart click",function(i){s(t);var n,o=e("#select2-drop");o.length>0&&(n=o.data("select2"),n.opts.selectOnBlur&&n.selectHighlighted({noFocus:!0}),n.close(),i.preventDefault(),i.stopPropagation())})),this.dropdown.prev()[0]!==t[0]&&this.dropdown.before(t),e("#select2-drop").removeAttr("id"),this.dropdown.attr("id","select2-drop"),t.show(),this.positionDropdown(),this.dropdown.show(),this.positionDropdown(),this.dropdown.addClass("select2-drop-active");var r=this;this.container.parents().add(window).each(function(){e(this).on(o+" "+n+" "+a,function(){r.opened()&&r.positionDropdown()})})},close:function(){if(this.opened()){var t=this.containerEventName,s="scroll."+t,i="resize."+t,n="orientationchange."+t;this.container.parents().add(window).each(function(){e(this).off(s).off(i).off(n)}),this.clearDropdownAlignmentPreference(),e("#select2-drop-mask").hide(),this.dropdown.removeAttr("id"),this.dropdown.hide(),this.container.removeClass("select2-dropdown-open").removeClass("select2-container-active"),this.results.empty(),N.off("mousemove.select2Event"),this.clearSearch(),this.search.removeClass("select2-active"),this.opts.element.trigger(e.Event("select2-close"))}},externalSearch:function(e){this.open(),this.search.val(e),this.updateResults(!1)},clearSearch:function(){},getMaximumSelectionSize:function(){return T(this.opts.maximumSelectionSize,this.opts.element)},ensureHighlightVisible:function(){var t,s,i,n,o,a,r,c,l=this.results;if(s=this.highlight(),!(0>s)){if(0==s)return l.scrollTop(0),void 0;t=this.findHighlightableChoices().find(".select2-result-label"),i=e(t[s]),c=(i.offset()||{}).top||0,n=c+i.outerHeight(!0),s===t.length-1&&(r=l.find("li.select2-more-results"),r.length>0&&(n=r.offset().top+r.outerHeight(!0))),o=l.offset().top+l.outerHeight(!0),n>o&&l.scrollTop(l.scrollTop()+(n-o)),a=c-l.offset().top,0>a&&"none"!=i.css("display")&&l.scrollTop(l.scrollTop()+a)}},findHighlightableChoices:function(){return this.results.find(".select2-result-selectable:not(.select2-disabled):not(.select2-selected)")},moveHighlight:function(t){for(var s=this.findHighlightableChoices(),i=this.highlight();i>-1&&i<s.length;){i+=t;var n=e(s[i]);if(n.hasClass("select2-result-selectable")&&!n.hasClass("select2-disabled")&&!n.hasClass("select2-selected")){this.highlight(i);break}}},highlight:function(t){var s,i,o=this.findHighlightableChoices();return 0===arguments.length?n(o.filter(".select2-highlighted")[0],o.get()):(t>=o.length&&(t=o.length-1),0>t&&(t=0),this.removeHighlight(),s=e(o[t]),s.addClass("select2-highlighted"),this.search.attr("aria-activedescendant",s.find(".select2-result-label").attr("id")),this.ensureHighlightVisible(),this.liveRegion.text(s.text()),i=s.data("select2-data"),i&&this.opts.element.trigger({type:"select2-highlight",val:this.id(i),choice:i}),void 0)},removeHighlight:function(){this.results.find(".select2-highlighted").removeClass("select2-highlighted")},touchMoved:function(){this._touchMoved=!0},clearTouchMoved:function(){this._touchMoved=!1},countSelectableResults:function(){return this.findHighlightableChoices().length},highlightUnderEvent:function(t){var s=e(t.target).closest(".select2-result-selectable");if(s.length>0&&!s.is(".select2-highlighted")){var i=this.findHighlightableChoices();this.highlight(i.index(s))}else 0==s.length&&this.removeHighlight()},loadMoreIfNeeded:function(){var e,t=this.results,s=t.find("li.select2-more-results"),i=this.resultsPage+1,n=this,o=this.search.val(),a=this.context;0!==s.length&&(e=s.offset().top-t.offset().top-t.height(),e<=this.opts.loadMorePadding&&(s.addClass("select2-active"),this.opts.query({element:this.opts.element,term:o,page:i,context:a,matcher:this.opts.matcher,callback:this.bind(function(e){n.opened()&&(n.opts.populateResults.call(this,t,e.results,{term:o,page:i,context:a}),n.postprocessResults(e,!1,!1),e.more===!0?(s.detach().appendTo(t).text(T(n.opts.formatLoadMore,n.opts.element,i+1)),window.setTimeout(function(){n.loadMoreIfNeeded()},10)):s.remove(),n.positionDropdown(),n.resultsPage=i,n.context=e.context,this.opts.element.trigger({type:"select2-loaded",items:e}))})})))},tokenize:function(){},updateResults:function(s){function i(){l.removeClass("select2-active"),d.positionDropdown(),h.find(".select2-no-results,.select2-selection-limit,.select2-searching").length?d.liveRegion.text(h.text()):d.liveRegion.text(d.opts.formatMatches(h.find(".select2-result-selectable").length))}function n(e){h.html(e),i()}var o,r,c,l=this.search,h=this.results,u=this.opts,d=this,p=l.val(),f=e.data(this.container,"select2-last-term");if((s===!0||!f||!a(p,f))&&(e.data(this.container,"select2-last-term",p),s===!0||this.showSearchInput!==!1&&this.opened())){c=++this.queryCount;var g=this.getMaximumSelectionSize();if(g>=1&&(o=this.data(),e.isArray(o)&&o.length>=g&&x(u.formatSelectionTooBig,"formatSelectionTooBig")))return n("<li class='select2-selection-limit'>"+T(u.formatSelectionTooBig,u.element,g)+"</li>"),void 0;if(l.val().length<u.minimumInputLength)return x(u.formatInputTooShort,"formatInputTooShort")?n("<li class='select2-no-results'>"+T(u.formatInputTooShort,u.element,l.val(),u.minimumInputLength)+"</li>"):n(""),s&&this.showSearch&&this.showSearch(!0),void 0;if(u.maximumInputLength&&l.val().length>u.maximumInputLength)return x(u.formatInputTooLong,"formatInputTooLong")?n("<li class='select2-no-results'>"+T(u.formatInputTooLong,u.element,l.val(),u.maximumInputLength)+"</li>"):n(""),void 0;u.formatSearching&&0===this.findHighlightableChoices().length&&n("<li class='select2-searching'>"+T(u.formatSearching,u.element)+"</li>"),l.addClass("select2-active"),this.removeHighlight(),r=this.tokenize(),r!=t&&null!=r&&l.val(r),this.resultsPage=1,u.query({element:u.element,term:l.val(),page:this.resultsPage,context:null,matcher:u.matcher,callback:this.bind(function(o){var r;if(c==this.queryCount){if(!this.opened())return this.search.removeClass("select2-active"),void 0;if(o.hasError!==t&&x(u.formatAjaxError,"formatAjaxError"))return n("<li class='select2-ajax-error'>"+T(u.formatAjaxError,u.element,o.jqXHR,o.textStatus,o.errorThrown)+"</li>"),void 0;if(this.context=o.context===t?null:o.context,this.opts.createSearchChoice&&""!==l.val()&&(r=this.opts.createSearchChoice.call(d,l.val(),o.results),r!==t&&null!==r&&d.id(r)!==t&&null!==d.id(r)&&0===e(o.results).filter(function(){return a(d.id(this),d.id(r))}).length&&this.opts.createSearchChoicePosition(o.results,r)),0===o.results.length&&x(u.formatNoMatches,"formatNoMatches"))return n("<li class='select2-no-results'>"+T(u.formatNoMatches,u.element,l.val())+"</li>"),void 0;h.empty(),d.opts.populateResults.call(this,h,o.results,{term:l.val(),page:this.resultsPage,context:null}),o.more===!0&&x(u.formatLoadMore,"formatLoadMore")&&(h.append("<li class='select2-more-results'>"+u.escapeMarkup(T(u.formatLoadMore,u.element,this.resultsPage))+"</li>"),window.setTimeout(function(){d.loadMoreIfNeeded()},10)),this.postprocessResults(o,s),i(),this.opts.element.trigger({type:"select2-loaded",items:o})}})})}},cancel:function(){this.close()},blur:function(){this.opts.selectOnBlur&&this.selectHighlighted({noFocus:!0}),this.close(),this.container.removeClass("select2-container-active"),this.search[0]===document.activeElement&&this.search.blur(),this.clearSearch(),this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus")},focusSearch:function(){p(this.search)},selectHighlighted:function(e){if(this._touchMoved)return this.clearTouchMoved(),void 0;var t=this.highlight(),s=this.results.find(".select2-highlighted"),i=s.closest(".select2-result").data("select2-data");i?(this.highlight(t),this.onSelect(i,e)):e&&e.noFocus&&this.close()},getPlaceholder:function(){var e;return this.opts.element.attr("placeholder")||this.opts.element.attr("data-placeholder")||this.opts.element.data("placeholder")||this.opts.placeholder||((e=this.getPlaceholderOption())!==t?e.text():t)},getPlaceholderOption:function(){if(this.select){var s=this.select.children("option").first();
2
+ if(this.opts.placeholderOption!==t)return"first"===this.opts.placeholderOption&&s||"function"==typeof this.opts.placeholderOption&&this.opts.placeholderOption(this.select);if(""===e.trim(s.text())&&""===s.val())return s}},initContainerWidth:function(){function s(){var s,i,n,o,a,r;if("off"===this.opts.width)return null;if("element"===this.opts.width)return 0===this.opts.element.outerWidth(!1)?"auto":this.opts.element.outerWidth(!1)+"px";if("copy"===this.opts.width||"resolve"===this.opts.width){if(s=this.opts.element.attr("style"),s!==t)for(i=s.split(";"),o=0,a=i.length;a>o;o+=1)if(r=i[o].replace(/\s/g,""),n=r.match(/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i),null!==n&&n.length>=1)return n[1];return"resolve"===this.opts.width?(s=this.opts.element.css("width"),s.indexOf("%")>0?s:0===this.opts.element.outerWidth(!1)?"auto":this.opts.element.outerWidth(!1)+"px"):null}return e.isFunction(this.opts.width)?this.opts.width():this.opts.width}var i=s.call(this);null!==i&&this.container.css("width",i)}}),D=k(R,{createContainer:function(){var t=e(document.createElement("div")).attr({"class":"select2-container"}).html(["<a href='javascript:void(0)' class='select2-choice' tabindex='-1'>"," <span class='select2-chosen'>&#160;</span><abbr class='select2-search-choice-close'></abbr>"," <span class='select2-arrow' role='presentation'><b role='presentation'></b></span>","</a>","<label for='' class='select2-offscreen'></label>","<input class='select2-focusser select2-offscreen' type='text' aria-haspopup='true' role='button' />","<div class='select2-drop select2-display-none'>"," <div class='select2-search'>"," <label for='' class='select2-offscreen'></label>"," <input type='text' autocomplete='off' autocorrect='off' autocapitalize='off' spellcheck='false' class='select2-input' role='combobox' aria-expanded='true'"," aria-autocomplete='list' />"," </div>"," <ul class='select2-results' role='listbox'>"," </ul>","</div>"].join(""));return t},enableInterface:function(){this.parent.enableInterface.apply(this,arguments)&&this.focusser.prop("disabled",!this.isInterfaceEnabled())},opening:function(){var s,i,n;this.opts.minimumResultsForSearch>=0&&this.showSearch(!0),this.parent.opening.apply(this,arguments),this.showSearchInput!==!1&&this.search.val(this.focusser.val()),this.opts.shouldFocusInput(this)&&(this.search.focus(),s=this.search.get(0),s.createTextRange?(i=s.createTextRange(),i.collapse(!1),i.select()):s.setSelectionRange&&(n=this.search.val().length,s.setSelectionRange(n,n))),""===this.search.val()&&this.nextSearchTerm!=t&&(this.search.val(this.nextSearchTerm),this.search.select()),this.focusser.prop("disabled",!0).val(""),this.updateResults(!0),this.opts.element.trigger(e.Event("select2-open"))},close:function(){this.opened()&&(this.parent.close.apply(this,arguments),this.focusser.prop("disabled",!1),this.opts.shouldFocusInput(this)&&this.focusser.focus())},focus:function(){this.opened()?this.close():(this.focusser.prop("disabled",!1),this.opts.shouldFocusInput(this)&&this.focusser.focus())},isFocused:function(){return this.container.hasClass("select2-container-active")},cancel:function(){this.parent.cancel.apply(this,arguments),this.focusser.prop("disabled",!1),this.opts.shouldFocusInput(this)&&this.focusser.focus()},destroy:function(){e("label[for='"+this.focusser.attr("id")+"']").attr("for",this.opts.element.attr("id")),this.parent.destroy.apply(this,arguments),I.call(this,"selection","focusser")},initContainer:function(){var t,i,n=this.container,o=this.dropdown,a=M();this.opts.minimumResultsForSearch<0?this.showSearch(!1):this.showSearch(!0),this.selection=t=n.find(".select2-choice"),this.focusser=n.find(".select2-focusser"),t.find(".select2-chosen").attr("id","select2-chosen-"+a),this.focusser.attr("aria-labelledby","select2-chosen-"+a),this.results.attr("id","select2-results-"+a),this.search.attr("aria-owns","select2-results-"+a),this.focusser.attr("id","s2id_autogen"+a),i=e("label[for='"+this.opts.element.attr("id")+"']"),this.focusser.prev().text(i.text()).attr("for",this.focusser.attr("id"));var r=this.opts.element.attr("title");this.opts.element.attr("title",r||i.text()),this.focusser.attr("tabindex",this.elementTabIndex),this.search.attr("id",this.focusser.attr("id")+"_search"),this.search.prev().text(e("label[for='"+this.focusser.attr("id")+"']").text()).attr("for",this.search.attr("id")),this.search.on("keydown",this.bind(function(e){if(this.isInterfaceEnabled()&&229!=e.keyCode){if(e.which===A.PAGE_UP||e.which===A.PAGE_DOWN)return g(e),void 0;switch(e.which){case A.UP:case A.DOWN:return this.moveHighlight(e.which===A.UP?-1:1),g(e),void 0;case A.ENTER:return this.selectHighlighted(),g(e),void 0;case A.TAB:return this.selectHighlighted({noFocus:!0}),void 0;case A.ESC:return this.cancel(e),g(e),void 0}}})),this.search.on("blur",this.bind(function(){document.activeElement===this.body.get(0)&&window.setTimeout(this.bind(function(){this.opened()&&this.search.focus()}),0)})),this.focusser.on("keydown",this.bind(function(e){if(this.isInterfaceEnabled()&&e.which!==A.TAB&&!A.isControl(e)&&!A.isFunctionKey(e)&&e.which!==A.ESC){if(this.opts.openOnEnter===!1&&e.which===A.ENTER)return g(e),void 0;if(e.which==A.DOWN||e.which==A.UP||e.which==A.ENTER&&this.opts.openOnEnter){if(e.altKey||e.ctrlKey||e.shiftKey||e.metaKey)return;return this.open(),g(e),void 0}return e.which==A.DELETE||e.which==A.BACKSPACE?(this.opts.allowClear&&this.clear(),g(e),void 0):void 0}})),l(this.focusser),this.focusser.on("keyup-change input",this.bind(function(e){if(this.opts.minimumResultsForSearch>=0){if(e.stopPropagation(),this.opened())return;this.open()}})),t.on("mousedown touchstart","abbr",this.bind(function(e){this.isInterfaceEnabled()&&(this.clear(),m(e),this.close(),this.selection.focus())})),t.on("mousedown touchstart",this.bind(function(i){s(t),this.container.hasClass("select2-container-active")||this.opts.element.trigger(e.Event("select2-focus")),this.opened()?this.close():this.isInterfaceEnabled()&&this.open(),g(i)})),o.on("mousedown touchstart",this.bind(function(){this.opts.shouldFocusInput(this)&&this.search.focus()})),t.on("focus",this.bind(function(e){g(e)})),this.focusser.on("focus",this.bind(function(){this.container.hasClass("select2-container-active")||this.opts.element.trigger(e.Event("select2-focus")),this.container.addClass("select2-container-active")})).on("blur",this.bind(function(){this.opened()||(this.container.removeClass("select2-container-active"),this.opts.element.trigger(e.Event("select2-blur")))})),this.search.on("focus",this.bind(function(){this.container.hasClass("select2-container-active")||this.opts.element.trigger(e.Event("select2-focus")),this.container.addClass("select2-container-active")})),this.initContainerWidth(),this.opts.element.addClass("select2-offscreen"),this.setPlaceholder()},clear:function(t){var s=this.selection.data("select2-data");if(s){var i=e.Event("select2-clearing");if(this.opts.element.trigger(i),i.isDefaultPrevented())return;var n=this.getPlaceholderOption();this.opts.element.val(n?n.val():""),this.selection.find(".select2-chosen").empty(),this.selection.removeData("select2-data"),this.setPlaceholder(),t!==!1&&(this.opts.element.trigger({type:"select2-removed",val:this.id(s),choice:s}),this.triggerChange({removed:s}))}},initSelection:function(){if(this.isPlaceholderOptionSelected())this.updateSelection(null),this.close(),this.setPlaceholder();else{var e=this;this.opts.initSelection.call(null,this.opts.element,function(s){s!==t&&null!==s&&(e.updateSelection(s),e.close(),e.setPlaceholder(),e.nextSearchTerm=e.opts.nextSearchTerm(s,e.search.val()))})}},isPlaceholderOptionSelected:function(){var e;return this.getPlaceholder()===t?!1:(e=this.getPlaceholderOption())!==t&&e.prop("selected")||""===this.opts.element.val()||this.opts.element.val()===t||null===this.opts.element.val()},prepareOpts:function(){var t=this.parent.prepareOpts.apply(this,arguments),s=this;return"select"===t.element.get(0).tagName.toLowerCase()?t.initSelection=function(e,t){var i=e.find("option").filter(function(){return this.selected&&!this.disabled});t(s.optionToData(i))}:"data"in t&&(t.initSelection=t.initSelection||function(s,i){var n=s.val(),o=null;t.query({matcher:function(e,s,i){var r=a(n,t.id(i));return r&&(o=i),r},callback:e.isFunction(i)?function(){i(o)}:e.noop})}),t},getPlaceholder:function(){return this.select&&this.getPlaceholderOption()===t?t:this.parent.getPlaceholder.apply(this,arguments)},setPlaceholder:function(){var e=this.getPlaceholder();if(this.isPlaceholderOptionSelected()&&e!==t){if(this.select&&this.getPlaceholderOption()===t)return;this.selection.find(".select2-chosen").html(this.opts.escapeMarkup(e)),this.selection.addClass("select2-default"),this.container.removeClass("select2-allowclear")}},postprocessResults:function(e,t,s){var i=0,n=this;if(this.findHighlightableChoices().each2(function(e,t){return a(n.id(t.data("select2-data")),n.opts.element.val())?(i=e,!1):void 0}),s!==!1&&(t===!0&&i>=0?this.highlight(i):this.highlight(0)),t===!0){var o=this.opts.minimumResultsForSearch;o>=0&&this.showSearch(O(e.results)>=o)}},showSearch:function(t){this.showSearchInput!==t&&(this.showSearchInput=t,this.dropdown.find(".select2-search").toggleClass("select2-search-hidden",!t),this.dropdown.find(".select2-search").toggleClass("select2-offscreen",!t),e(this.dropdown,this.container).toggleClass("select2-with-searchbox",t))},onSelect:function(e,t){if(this.triggerSelect(e)){var s=this.opts.element.val(),i=this.data();this.opts.element.val(this.id(e)),this.updateSelection(e),this.opts.element.trigger({type:"select2-selected",val:this.id(e),choice:e}),this.nextSearchTerm=this.opts.nextSearchTerm(e,this.search.val()),this.close(),t&&t.noFocus||!this.opts.shouldFocusInput(this)||this.focusser.focus(),a(s,this.id(e))||this.triggerChange({added:e,removed:i})}},updateSelection:function(e){var s,i,n=this.selection.find(".select2-chosen");this.selection.data("select2-data",e),n.empty(),null!==e&&(s=this.opts.formatSelection(e,n,this.opts.escapeMarkup)),s!==t&&n.append(s),i=this.opts.formatSelectionCssClass(e,n),i!==t&&n.addClass(i),this.selection.removeClass("select2-default"),this.opts.allowClear&&this.getPlaceholder()!==t&&this.container.addClass("select2-allowclear")},val:function(){var e,s=!1,i=null,n=this,o=this.data();if(0===arguments.length)return this.opts.element.val();if(e=arguments[0],arguments.length>1&&(s=arguments[1]),this.select)this.select.val(e).find("option").filter(function(){return this.selected}).each2(function(e,t){return i=n.optionToData(t),!1}),this.updateSelection(i),this.setPlaceholder(),s&&this.triggerChange({added:i,removed:o});else{if(!e&&0!==e)return this.clear(s),void 0;if(this.opts.initSelection===t)throw new Error("cannot call val() if initSelection() is not defined");this.opts.element.val(e),this.opts.initSelection(this.opts.element,function(e){n.opts.element.val(e?n.id(e):""),n.updateSelection(e),n.setPlaceholder(),s&&n.triggerChange({added:e,removed:o})})}},clearSearch:function(){this.search.val(""),this.focusser.val("")},data:function(e){var s,i=!1;return 0===arguments.length?(s=this.selection.data("select2-data"),s==t&&(s=null),s):(arguments.length>1&&(i=arguments[1]),e?(s=this.data(),this.opts.element.val(e?this.id(e):""),this.updateSelection(e),i&&this.triggerChange({added:e,removed:s})):this.clear(i),void 0)}}),H=k(R,{createContainer:function(){var t=e(document.createElement("div")).attr({"class":"select2-container select2-container-multi"}).html(["<ul class='select2-choices'>"," <li class='select2-search-field'>"," <label for='' class='select2-offscreen'></label>"," <input type='text' autocomplete='off' autocorrect='off' autocapitalize='off' spellcheck='false' class='select2-input'>"," </li>","</ul>","<div class='select2-drop select2-drop-multi select2-display-none'>"," <ul class='select2-results'>"," </ul>","</div>"].join(""));return t},prepareOpts:function(){var t=this.parent.prepareOpts.apply(this,arguments),s=this;return"select"===t.element.get(0).tagName.toLowerCase()?t.initSelection=function(e,t){var i=[];e.find("option").filter(function(){return this.selected&&!this.disabled}).each2(function(e,t){i.push(s.optionToData(t))}),t(i)}:"data"in t&&(t.initSelection=t.initSelection||function(s,i){var n=r(s.val(),t.separator),o=[];t.query({matcher:function(s,i,r){var c=e.grep(n,function(e){return a(e,t.id(r))}).length;return c&&o.push(r),c},callback:e.isFunction(i)?function(){for(var e=[],s=0;s<n.length;s++)for(var r=n[s],c=0;c<o.length;c++){var l=o[c];if(a(r,t.id(l))){e.push(l),o.splice(c,1);break}}i(e)}:e.noop})}),t},selectChoice:function(e){var t=this.container.find(".select2-search-choice-focus");t.length&&e&&e[0]==t[0]||(t.length&&this.opts.element.trigger("choice-deselected",t),t.removeClass("select2-search-choice-focus"),e&&e.length&&(this.close(),e.addClass("select2-search-choice-focus"),this.opts.element.trigger("choice-selected",e)))},destroy:function(){e("label[for='"+this.search.attr("id")+"']").attr("for",this.opts.element.attr("id")),this.parent.destroy.apply(this,arguments),I.call(this,"searchContainer","selection")},initContainer:function(){var t,s=".select2-choices";this.searchContainer=this.container.find(".select2-search-field"),this.selection=t=this.container.find(s);var i=this;this.selection.on("click",".select2-search-choice:not(.select2-locked)",function(){i.search[0].focus(),i.selectChoice(e(this))}),this.search.attr("id","s2id_autogen"+M()),this.search.prev().text(e("label[for='"+this.opts.element.attr("id")+"']").text()).attr("for",this.search.attr("id")),this.search.on("input paste",this.bind(function(){this.search.attr("placeholder")&&0==this.search.val().length||this.isInterfaceEnabled()&&(this.opened()||this.open())})),this.search.attr("tabindex",this.elementTabIndex),this.keydowns=0,this.search.on("keydown",this.bind(function(e){if(this.isInterfaceEnabled()){++this.keydowns;var s=t.find(".select2-search-choice-focus"),i=s.prev(".select2-search-choice:not(.select2-locked)"),n=s.next(".select2-search-choice:not(.select2-locked)"),o=f(this.search);if(s.length&&(e.which==A.LEFT||e.which==A.RIGHT||e.which==A.BACKSPACE||e.which==A.DELETE||e.which==A.ENTER)){var a=s;return e.which==A.LEFT&&i.length?a=i:e.which==A.RIGHT?a=n.length?n:null:e.which===A.BACKSPACE?this.unselect(s.first())&&(this.search.width(10),a=i.length?i:n):e.which==A.DELETE?this.unselect(s.first())&&(this.search.width(10),a=n.length?n:null):e.which==A.ENTER&&(a=null),this.selectChoice(a),g(e),a&&a.length||this.open(),void 0}if((e.which===A.BACKSPACE&&1==this.keydowns||e.which==A.LEFT)&&0==o.offset&&!o.length)return this.selectChoice(t.find(".select2-search-choice:not(.select2-locked)").last()),g(e),void 0;if(this.selectChoice(null),this.opened())switch(e.which){case A.UP:case A.DOWN:return this.moveHighlight(e.which===A.UP?-1:1),g(e),void 0;case A.ENTER:return this.selectHighlighted(),g(e),void 0;case A.TAB:return this.selectHighlighted({noFocus:!0}),this.close(),void 0;case A.ESC:return this.cancel(e),g(e),void 0}if(e.which!==A.TAB&&!A.isControl(e)&&!A.isFunctionKey(e)&&e.which!==A.BACKSPACE&&e.which!==A.ESC){if(e.which===A.ENTER){if(this.opts.openOnEnter===!1)return;if(e.altKey||e.ctrlKey||e.shiftKey||e.metaKey)return}this.open(),(e.which===A.PAGE_UP||e.which===A.PAGE_DOWN)&&g(e),e.which===A.ENTER&&g(e)}}})),this.search.on("keyup",this.bind(function(){this.keydowns=0,this.resizeSearch()})),this.search.on("blur",this.bind(function(t){this.container.removeClass("select2-container-active"),this.search.removeClass("select2-focused"),this.selectChoice(null),this.opened()||this.clearSearch(),t.stopImmediatePropagation(),this.opts.element.trigger(e.Event("select2-blur"))})),this.container.on("click",s,this.bind(function(t){this.isInterfaceEnabled()&&(e(t.target).closest(".select2-search-choice").length>0||(this.selectChoice(null),this.clearPlaceholder(),this.container.hasClass("select2-container-active")||this.opts.element.trigger(e.Event("select2-focus")),this.open(),this.focusSearch(),t.preventDefault()))})),this.container.on("focus",s,this.bind(function(){this.isInterfaceEnabled()&&(this.container.hasClass("select2-container-active")||this.opts.element.trigger(e.Event("select2-focus")),this.container.addClass("select2-container-active"),this.dropdown.addClass("select2-drop-active"),this.clearPlaceholder())})),this.initContainerWidth(),this.opts.element.addClass("select2-offscreen"),this.clearSearch()},enableInterface:function(){this.parent.enableInterface.apply(this,arguments)&&this.search.prop("disabled",!this.isInterfaceEnabled())},initSelection:function(){if(""===this.opts.element.val()&&""===this.opts.element.text()&&(this.updateSelection([]),this.close(),this.clearSearch()),this.select||""!==this.opts.element.val()){var e=this;this.opts.initSelection.call(null,this.opts.element,function(s){s!==t&&null!==s&&(e.updateSelection(s),e.close(),e.clearSearch())})}},clearSearch:function(){var e=this.getPlaceholder(),s=this.getMaxSearchWidth();e!==t&&0===this.getVal().length&&this.search.hasClass("select2-focused")===!1?(this.search.val(e).addClass("select2-default"),this.search.width(s>0?s:this.container.css("width"))):this.search.val("").width(10)},clearPlaceholder:function(){this.search.hasClass("select2-default")&&this.search.val("").removeClass("select2-default")},opening:function(){this.clearPlaceholder(),this.resizeSearch(),this.parent.opening.apply(this,arguments),this.focusSearch(),""===this.search.val()&&this.nextSearchTerm!=t&&(this.search.val(this.nextSearchTerm),this.search.select()),this.updateResults(!0),this.opts.shouldFocusInput(this)&&this.search.focus(),this.opts.element.trigger(e.Event("select2-open"))},close:function(){this.opened()&&this.parent.close.apply(this,arguments)},focus:function(){this.close(),this.search.focus()},isFocused:function(){return this.search.hasClass("select2-focused")},updateSelection:function(t){var s=[],i=[],o=this;e(t).each(function(){n(o.id(this),s)<0&&(s.push(o.id(this)),i.push(this))}),t=i,this.selection.find(".select2-search-choice").remove(),e(t).each(function(){o.addSelectedChoice(this)}),o.postprocessResults()},tokenize:function(){var e=this.search.val();e=this.opts.tokenizer.call(this,e,this.data(),this.bind(this.onSelect),this.opts),null!=e&&e!=t&&(this.search.val(e),e.length>0&&this.open())},onSelect:function(e,s){this.triggerSelect(e)&&""!==e.text&&(this.addSelectedChoice(e),this.opts.element.trigger({type:"selected",val:this.id(e),choice:e}),this.nextSearchTerm=this.opts.nextSearchTerm(e,this.search.val()),this.clearSearch(),this.updateResults(),(this.select||!this.opts.closeOnSelect)&&this.postprocessResults(e,!1,this.opts.closeOnSelect===!0),this.opts.closeOnSelect?(this.close(),this.search.width(10)):this.countSelectableResults()>0?(this.search.width(10),this.resizeSearch(),this.getMaximumSelectionSize()>0&&this.val().length>=this.getMaximumSelectionSize()?this.updateResults(!0):this.nextSearchTerm!=t&&(this.search.val(this.nextSearchTerm),this.updateResults(),this.search.select()),this.positionDropdown()):(this.close(),this.search.width(10)),this.triggerChange({added:e}),s&&s.noFocus||this.focusSearch())},cancel:function(){this.close(),this.focusSearch()},addSelectedChoice:function(s){var i,n,o=!s.locked,a=e("<li class='select2-search-choice'> <div></div> <a href='#' class='select2-search-choice-close' tabindex='-1'></a></li>"),r=e("<li class='select2-search-choice select2-locked'><div></div></li>"),c=o?a:r,l=this.id(s),h=this.getVal();i=this.opts.formatSelection(s,c.find("div"),this.opts.escapeMarkup),i!=t&&c.find("div").replaceWith("<div>"+i+"</div>"),n=this.opts.formatSelectionCssClass(s,c.find("div")),n!=t&&c.addClass(n),o&&c.find(".select2-search-choice-close").on("mousedown",g).on("click dblclick",this.bind(function(t){this.isInterfaceEnabled()&&(this.unselect(e(t.target)),this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus"),g(t),this.close(),this.focusSearch())})).on("focus",this.bind(function(){this.isInterfaceEnabled()&&(this.container.addClass("select2-container-active"),this.dropdown.addClass("select2-drop-active"))})),c.data("select2-data",s),c.insertBefore(this.searchContainer),h.push(l),this.setVal(h)},unselect:function(t){var s,i,o=this.getVal();if(t=t.closest(".select2-search-choice"),0===t.length)throw"Invalid argument: "+t+". Must be .select2-search-choice";if(s=t.data("select2-data")){var a=e.Event("select2-removing");if(a.val=this.id(s),a.choice=s,this.opts.element.trigger(a),a.isDefaultPrevented())return!1;for(;(i=n(this.id(s),o))>=0;)o.splice(i,1),this.setVal(o),this.select&&this.postprocessResults();return t.remove(),this.opts.element.trigger({type:"select2-removed",val:this.id(s),choice:s}),this.triggerChange({removed:s}),!0}},postprocessResults:function(e,t,s){var i=this.getVal(),o=this.results.find(".select2-result"),a=this.results.find(".select2-result-with-children"),r=this;o.each2(function(e,t){var s=r.id(t.data("select2-data"));n(s,i)>=0&&(t.addClass("select2-selected"),t.find(".select2-result-selectable").addClass("select2-selected"))}),a.each2(function(e,t){t.is(".select2-result-selectable")||0!==t.find(".select2-result-selectable:not(.select2-selected)").length||t.addClass("select2-selected")}),-1==this.highlight()&&s!==!1&&r.highlight(0),!this.opts.createSearchChoice&&!o.filter(".select2-result:not(.select2-selected)").length>0&&(!e||e&&!e.more&&0===this.results.find(".select2-no-results").length)&&x(r.opts.formatNoMatches,"formatNoMatches")&&this.results.append("<li class='select2-no-results'>"+T(r.opts.formatNoMatches,r.opts.element,r.search.val())+"</li>")},getMaxSearchWidth:function(){return this.selection.width()-c(this.search)},resizeSearch:function(){var e,t,s,i,n,o=c(this.search);e=v(this.search)+10,t=this.search.offset().left,s=this.selection.width(),i=this.selection.offset().left,n=s-(t-i)-o,e>n&&(n=s-o),40>n&&(n=s-o),0>=n&&(n=e),this.search.width(Math.floor(n))},getVal:function(){var e;return this.select?(e=this.select.val(),null===e?[]:e):(e=this.opts.element.val(),r(e,this.opts.separator))},setVal:function(t){var s;this.select?this.select.val(t):(s=[],e(t).each(function(){n(this,s)<0&&s.push(this)}),this.opts.element.val(0===s.length?"":s.join(this.opts.separator)))},buildChangeDetails:function(e,t){for(var t=t.slice(0),e=e.slice(0),s=0;s<t.length;s++)for(var i=0;i<e.length;i++)a(this.opts.id(t[s]),this.opts.id(e[i]))&&(t.splice(s,1),s>0&&s--,e.splice(i,1),i--);return{added:t,removed:e}},val:function(s,i){var n,o=this;if(0===arguments.length)return this.getVal();if(n=this.data(),n.length||(n=[]),!s&&0!==s)return this.opts.element.val(""),this.updateSelection([]),this.clearSearch(),i&&this.triggerChange({added:this.data(),removed:n}),void 0;if(this.setVal(s),this.select)this.opts.initSelection(this.select,this.bind(this.updateSelection)),i&&this.triggerChange(this.buildChangeDetails(n,this.data()));else{if(this.opts.initSelection===t)throw new Error("val() cannot be called if initSelection() is not defined");this.opts.initSelection(this.opts.element,function(t){var s=e.map(t,o.id);o.setVal(s),o.updateSelection(t),o.clearSearch(),i&&o.triggerChange(o.buildChangeDetails(n,o.data()))})}this.clearSearch()},onSortStart:function(){if(this.select)throw new Error("Sorting of elements is not supported when attached to <select>. Attach to <input type='hidden'/> instead.");this.search.width(0),this.searchContainer.hide()},onSortEnd:function(){var t=[],s=this;this.searchContainer.show(),this.searchContainer.appendTo(this.searchContainer.parent()),this.resizeSearch(),this.selection.find(".select2-search-choice").each(function(){t.push(s.opts.id(e(this).data("select2-data")))}),this.setVal(t),this.triggerChange()},data:function(t,s){var i,n,o=this;return 0===arguments.length?this.selection.children(".select2-search-choice").map(function(){return e(this).data("select2-data")}).get():(n=this.data(),t||(t=[]),i=e.map(t,function(e){return o.opts.id(e)}),this.setVal(i),this.updateSelection(t),this.clearSearch(),s&&this.triggerChange(this.buildChangeDetails(n,this.data())),void 0)}}),e.fn.select2=function(){var s,i,o,a,r,c=Array.prototype.slice.call(arguments,0),l=["val","destroy","opened","open","close","focus","isFocused","container","dropdown","onSortStart","onSortEnd","enable","disable","readonly","positionDropdown","data","search"],h=["opened","isFocused","container","dropdown"],u=["val","data"],d={search:"externalSearch"};return this.each(function(){if(0===c.length||"object"==typeof c[0])s=0===c.length?{}:e.extend({},c[0]),s.element=e(this),"select"===s.element.get(0).tagName.toLowerCase()?r=s.element.prop("multiple"):(r=s.multiple||!1,"tags"in s&&(s.multiple=r=!0)),i=r?new window.Select2["class"].multi:new window.Select2["class"].single,i.init(s);else{if("string"!=typeof c[0])throw"Invalid arguments to select2 plugin: "+c;if(n(c[0],l)<0)throw"Unknown method: "+c[0];if(a=t,i=e(this).data("select2"),i===t)return;if(o=c[0],"container"===o?a=i.container:"dropdown"===o?a=i.dropdown:(d[o]&&(o=d[o]),a=i[o].apply(i,c.slice(1))),n(c[0],h)>=0||n(c[0],u)>=0&&1==c.length)return!1}}),a===t?this:a},e.fn.select2.defaults={width:"copy",loadMorePadding:0,closeOnSelect:!0,openOnEnter:!0,containerCss:{},dropdownCss:{},containerCssClass:"",dropdownCssClass:"",formatResult:function(e,t,s,i){var n=[];return b(e.text,s.term,n,i),n.join("")},formatSelection:function(e,s,i){return e?i(e.text):t},sortResults:function(e){return e},formatResultCssClass:function(e){return e.css},formatSelectionCssClass:function(){return t},minimumResultsForSearch:0,minimumInputLength:0,maximumInputLength:null,maximumSelectionSize:0,id:function(e){return e==t?null:e.id},matcher:function(e,t){return i(""+t).toUpperCase().indexOf(i(""+e).toUpperCase())>=0},separator:",",tokenSeparators:[],tokenizer:P,escapeMarkup:C,blurOnChange:!1,selectOnBlur:!1,adaptContainerCssClass:function(e){return e},adaptDropdownCssClass:function(){return null},nextSearchTerm:function(){return t},searchInputPlaceholder:"",createSearchChoicePosition:"top",shouldFocusInput:function(e){var t="ontouchstart"in window||navigator.msMaxTouchPoints>0;return t?e.opts.minimumResultsForSearch<0?!1:!0:!0}},e.fn.select2.locales=[],e.fn.select2.locales.en={formatMatches:function(e){return 1===e?"One result is available, press enter to select it.":e+" results are available, use up and down arrow keys to navigate."},formatNoMatches:function(){return"No matches found"},formatAjaxError:function(){return"Loading failed"},formatInputTooShort:function(e,t){var s=t-e.length;return"Please enter "+s+" or more character"+(1==s?"":"s")},formatInputTooLong:function(e,t){var s=e.length-t;return"Please delete "+s+" character"+(1==s?"":"s")},formatSelectionTooBig:function(e){return"You can only select "+e+" item"+(1==e?"":"s")},formatLoadMore:function(){return"Loading more results…"},formatSearching:function(){return"Searching…"}},e.extend(e.fn.select2.defaults,e.fn.select2.locales.en),e.fn.select2.ajaxDefaults={transport:e.ajax,params:{type:"GET",cache:!1,dataType:"json"}},window.Select2={query:{ajax:S,local:y,tags:E},util:{debounce:u,markMatch:b,escapeMarkup:C,stripDiacritics:i},"class":{"abstract":R,single:D,multi:H}}}}(jQuery);
inc/external/wpmu-lib/js/wpmu-ui.min.js CHANGED
@@ -1 +1 @@
1
- !function(t){function e(){null==s&&(r=jQuery(document),s=jQuery("html"),c=jQuery("body"),o(),a(),t.upgrade_multiselect(),t.upgrade_tooltips())}function i(){null===u&&(u=jQuery("<div></div>").addClass("wpmui-overlay").appendTo(c)),c.addClass("wpmui-has-overlay"),s.addClass("wpmui-no-scroll")}function n(){c.removeClass("wpmui-has-overlay"),s.removeClass("wpmui-no-scroll")}function o(){var t=function(t){var e=jQuery(this).closest(".wpmui-box");return t.preventDefault(),e.hasClass("static")?!1:(e.toggleClass("closed"),!1)};c.on("click",".wpmui-box > h3",t),c.on("click",".wpmui-box > h3 > .toggle",t)}function a(){var t=function(t){var e=jQuery(this),i=e.closest(".wpmui-tabs"),n=i.next(".wpmui-tab-contents"),o=i.find(".active.tab"),a=e.attr("href"),r=o.attr("href"),s=n.find(a);return content_active=n.find(r),e.hasClass("active")||(o.removeClass("active"),content_active.removeClass("active")),e.addClass("active"),s.addClass("active"),t.preventDefault(),!1};c.on("click",".wpmui-tabs .tab",t)}var r=null,s=null,c=null,u=null;t.popup=function(){return e(),new l},t.ajax=function(t,i){return e(),new d(t,i)},t.upgrade_multiselect=function(t){e(),t=jQuery(t||c);var i={closeOnSelect:!1,width:"100%"};t.find("select[multiple]").each(function(){var t=jQuery(this);"1"!=t.data("wpmui-chosen")&&(t.data("wpmui-chosen","1"),window.setTimeout(function(){t.select2(i)},1))})},t.message=function(t){var i,n,o,a;e();var r=function(t){return t.preventDefault(),n.remove(),!1},s=function(){var t=jQuery(this).closest(".wpmui-msg");t.find(".debug").toggle()};return"undefined"==typeof t?!1:(("string"==typeof t||t instanceof Array)&&(t={message:t}),t.message instanceof Array&&(t.message=t.message.join("<br />")),t.message?(t.type=void 0==t.type?"ok":t.type.toString().toLowerCase(),t.close=void 0==t.close?!0:t.close,t.parent=void 0==t.parent?".wrap":t.parent,t.insert_after=void 0==t.insert_after?"h2":t.insert_after,t.id=void 0==t.id?"":t.id.toString().toLowerCase(),t["class"]=void 0==t["class"]?"":t["class"].toString().toLowerCase(),t.details=void 0==t.details?!1:t.details,("error"==t.type||"red"==t.type)&&(t.type="err"),("success"==t.type||"green"==t.type)&&(t.type="ok"),i=jQuery(t.parent).first(),i.length?(t.id&&jQuery('.wpmui-msg[data-id="'+t.id+'"]').length?(n=jQuery('.wpmui-msg[data-id="'+t.id+'"]').first(),a=!1):(n=jQuery("<div><p></p></div>"),t.id&&n.attr("data-id",t.id),a=!0),n.find("p").html(t.message),"err"==t.type&&t.details&&window.JSON&&(jQuery('<div class="debug" style="display:none"></div>').appendTo(n).text(JSON.stringify(t.details)),jQuery('<i class="dashicons dashicons-editor-help light"></i>').prependTo(n.find("p:first")).click(s).after(" ")),n.removeClass().addClass("updated wpmui-msg "+t["class"]),"err"==t.type&&n.addClass("error"),a&&(t.close&&(o=jQuery('<a href="#" class="wpmui-close">&times;</a>'),o.prependTo(n),o.click(r)),t.insert_after&&i.find(t.insert_after).length?(i=i.find(t.insert_after).first(),i.after(n)):i.prepend(n)),!0):!1):!1)},t.tooltip=function(t,i){var n,o;e();var a=function(e){var n=e.outerWidth(),o=e.outerHeight(),a=5,r=t.outerWidth(),s=t.outerHeight(),c={};switch(c.left=(r-n)/2,c.top=(s-o)/2,c[i.pos]="auto",i.pos){case"top":c.bottom=s+a;break;case"bottom":c.top=s+a;break;case"left":c.right=r+a;break;case"right":c.left=r+a}e.css(c)},r=function(){var t=jQuery(this).closest(".wpmui-tip-box").find(".wpmui-tip");t.addClass("wpmui-visible"),t.show(),a(t),setTimeout(function(){a(t)},35)},s=function(){var t=jQuery(this).closest(".wpmui-tip-box").find(".wpmui-tip");t.removeClass("wpmui-visible"),t.hide()},c=function(t){n.hasClass("wpmui-visible")?s.call(this,t):r.call(this,t)};return"string"==typeof i&&(i={content:i}),void 0===i.content?!1:(t=jQuery(t),t.length?(i.trigger=void 0==i.trigger?"hover":i.trigger.toString().toLowerCase(),i.pos=void 0==i.pos?"top":i.pos.toString().toLowerCase(),i["class"]=void 0==i["class"]?"":i["class"].toString().toLowerCase(),o=t.parent(),o.hasClass("wpmui-tip-box")||(o=t.wrap('<span class="wpmui-tip-box"></span>').parent().addClass(i["class"]+"-box")),n=o.find("> .wpmui-tip"),n.length||(n=jQuery('<div class="wpmui-tip"></div>'),n.addClass(i["class"]).addClass(i.pos).appendTo(t.parent()).hide(),isNaN(i.width)||n.width(i.width),"hover"==i.trigger?t.hover(r,s):"click"==i.trigger&&t.click(c)),n.html(i.content),!0):!1)},t.upgrade_tooltips=function(){var e=jQuery("[data-tooltip]");e.each(function(){var e=jQuery(this),i={content:e.attr("data-tooltip"),pos:e.attr("data-pos"),trigger:e.attr("data-trigger"),"class":e.attr("data-class"),width:e.attr("data-width")};t.tooltip(e,i)})},t.obj=function(t){var e={};if(t instanceof Object)e=t;else if(t instanceof Array)if("function"==typeof t.reduce)e=t.reduce(function(t,e,i){return t[i]=e,t},{});else for(var i=t.length-1;i>0;i-=1)void 0!==t[i]&&(e[i]=t[i]);else"string"==typeof t?e.scalar=t:"number"==typeof t?e.scalar=t:"boolean"==typeof t&&(e.scalar=t);return e},jQuery(function(){e()});var l=function(){function t(){C=jQuery('<div class="wpmui-wnd"></div>'),x=jQuery('<div class="wpmui-wnd-title"><span class="the-title"></span></div>'),_=jQuery('<a href="#" class="wpmui-wnd-close"><i class="dashicons dashicons-no-alt"></i></a>'),T=jQuery('<div class="wpmui-wnd-content"></div>'),x.appendTo(C),T.appendTo(C),_.appendTo(x),C.appendTo(c).hide(),e(),f=!1,a()}function e(){C&&(C.on("click",".wpmui-wnd-close",p.close),C.on("click","thead .check-column :checkbox",l),C.on("click","tfoot .check-column :checkbox",l),C.on("click","tbody .check-column :checkbox",d),jQuery(window).on("resize",s))}function o(){C&&(C.off("click",".wpmui-wnd-close",p.close),C.off("click",".check-column :checkbox",l),jQuery(window).off("resize",s))}function a(t,e){if(!C)return!1;t=t||m,e=e||v;var o={width:t,height:e,"margin-left":-1*(t/2),"margin-top":-1*(e/2)};if(x.find(".the-title").text(y),g){C.find(".buttons").remove(),C.addClass("no-buttons"),w instanceof jQuery?T.html(w.html()):T.html(jQuery(w).html());var a=T.find(".buttons");a.length&&(a.appendTo(C),C.removeClass("no-buttons")),g=!1}C.is(":visible")?C.animate(o,200):C.css(o),u instanceof jQuery&&u.off("click",r),f?(C.show(),h&&i(),u.on("click",r),j&&(j=!1,s())):(C.hide(),n())}function r(){return C?!u instanceof jQuery?!1:(u.off("click",r),p.close(),void 0):!1}function s(){if(!C)return!1;var t=jQuery(this),e=t.innerWidth(),i=t.innerHeight(),n=m,o=v;m>e&&(n=e),v>i&&(o=i),a(n,o)}function l(t){{var e=jQuery(this),i=e.prop("checked");t.shiftKey}e.closest("table").children("tbody, thead, tfoot").filter(":visible").children().children(".check-column").find(":checkbox").prop("checked",i)}function d(){var t=jQuery(this),e=t.closest("tbody").find(":checkbox").filter(":visible").not(":checked");return t.closest("table").children("thead, tfoot").find(":checkbox").prop("checked",0===e.length),!0}var p=this,f=!1,h=!1,m=740,v=400,y="Window",w="",g=!1,j=!1,b=null,Q=null,k=null,C=null,x=null,_=null,T=null;this.modal=function(t){return h=t?!0:!1,a(),p},this.size=function(t,e){var i=Math.abs(parseFloat(t)),n=Math.abs(parseFloat(e));return isNaN(i)||(m=i),isNaN(n)||(v=n),j=!0,a(),p},this.title=function S(S){return y=S,a(),p},this.content=function(t){return w=t,j=!0,g=!0,a(),p},this.onshow=function(t){return b=t,p},this.onhide=function(t){return Q=t,p},this.onclose=function(t){return k=t,p},this.loading=function(t){return t?C.addClass("wpmui-loading"):C.removeClass("wpmui-loading"),p},this.show=function(){return f=!0,j=!0,a(),"function"==typeof b&&b.apply(p,[p.$()]),p},this.hide=function(){return f=!1,a(),"function"==typeof Q&&Q.apply(p,[p.$()]),p},this.close=function(){p.hide(),"function"==typeof k&&k.apply(p,[p.$()]),o(),C.remove(),C=null},this.$=function(){return C},p=this,t()},d=function(t,e){function i(){t||"string"!=typeof window.ajaxurl||(t=window.ajaxurl),p=c.find("#wpmui_void"),p.length||(p=jQuery("<iframe></iframe>").attr("name","wpmui_void").attr("id","wpmui_void").css({width:1,height:1,display:"none",visibility:"hidden",position:"absolute",left:-1e3,top:-1e3}).hide().appendTo(c)),n(),d.reset()}function n(){var t=document.createElement("INPUT"),e=new XMLHttpRequest;t.type="file",y="files"in t,v=!!(e&&"upload"in e&&"onprogress"in e.upload),w=!!window.FormData}function o(){var t=new window.XMLHttpRequest;return v&&(t.upload.addEventListener("progress",function(t){if(t.lengthComputable){var e=t.loaded/t.total;a(e)}else a(-1)},!1),t.addEventListener("progress",function(t){if(t.lengthComputable){var e=t.loaded/t.total;a(e)}else a(-1)},!1)),t}function a(t){v&&"function"==typeof h&&h(t)}function r(t,e,i){a(100),"function"==typeof m&&m(t,e,i)}function s(t,e){var i={};if(e=e&&w,f instanceof jQuery)if(f.find(".wp-editor-area").each(function(){var t=jQuery(this).attr("id"),e="#wp-"+t+"-wrap",i=jQuery(e),n=tinyMCE.get(t);n&&i.hasClass("tmce-active")&&n.save()}),e)i=new FormData(f[0]);else{i={};var n={},o={validate:/^[a-zA-Z][a-zA-Z0-9_-]*(?:\[(?:\d*|[a-zA-Z0-9_]+)\])*$/,key:/[a-zA-Z0-9_-]+|(?=\[\])/g,push:/^$/,fixed:/^\d+$/,named:/^[a-zA-Z0-9_-]+$/},a=function(t,e,i){return t[e]=i,t},r=function(t){return void 0===n[t]&&(n[t]=0),n[t]++};jQuery.each(f.serializeArray(),function(){if(o.validate.test(this.name)){for(var t,e=this.name.match(o.key),n=this.value,s=this.name;void 0!==(t=e.pop());)s=s.replace(new RegExp("\\["+t+"\\]$"),""),t.match(o.push)?n=a([],r(s),n):t.match(o.fixed)?n=a([],t,n):t.match(o.named)&&(n=a({},t,n));i=jQuery.extend(!0,i,n)}}),f.find("input[type=file]").each(function(){var t=jQuery(this),e=t.attr("name"),n=t.clone(!0)[0];i[":files"]=i[":files"]||{},i[":files"][e]=n})}else if("string"==typeof f){temp=f.split("&").map(function(t){return t.split("=",2)}),i=e?new FormData:{};for(var s in temp){var c=decodeURI(temp[s][0]),u=decodeURI(temp[s][1]);e?i.append(c,u):void 0!==i[c]?("object"!=typeof i[c]&&(i[c]=[i[c]]),i[c].push(u)):i[c]=u}}else if("object"==typeof f)if(e){i=new FormData;for(var c in f)f.hasOwnProperty(c)&&i.append(c,f[c])}else i=jQuery.extend({},f);return i instanceof FormData?i.append("action",t):i.action=t,i}function u(e,i){var n=s(e,!0),c={},u=null,l=!1;"json"!=i&&(i="text"),a(-1),c={url:t,type:"POST",dataType:"html",data:n,xhr:o,success:function(t){if(l=!0,u=t,"json"==i)try{u=jQuery.parseJSON(t)}catch(e){u={status:"ERR",data:t}}},error:function(t,e,i){l=!1,u=i},complete:function(t){u instanceof Object&&"ERR"==u.status&&(l=!1),r(u,l,t)}},n instanceof FormData&&(c.processData=!1,c.contentType=!1),jQuery.ajax(c)}function l(e,i){var n=s(e,!1),o=jQuery("<form></form>"),a="";for(var r in n)if(n.hasOwnProperty(r))if(":files"==r)for(var c in n[r]){var u=n[r][c];o.append(u)}else"action"==r?a=r+"="+n[r].toString():jQuery('<input type="hidden" />').attr("name",r).attr("value",n[r]).appendTo(o);a=-1==t.indexOf("?")?"?"+a:"&"+a,o.attr("action",t+a).attr("method","POST").attr("enctype","multipart/form-data").attr("target",i),o.submit()}var d=this,p=null,f={},h=null,m=null,v=!1,y=!1,w=!1;this.data=function(t){return f=t,d},this.extract_data=function(t){return f=t,s("",!1)},this.onprogress=function(t){return h=t,d},this.ondone=function(t){return m=t,d},this.reset=function(){return f={},h=null,m=null,d},this.load_text=function(t){return t=t||e,u(t,"text"),d},this.load_json=function(t){return t=t||e,u(t,"json"),d},this.load_http=function(t,i){return t=t||"wpmui_void",i=i||e,l(i,t),d},d=this,i()}}(window.wpmUi=window.wpmUi||{});
1
+ !function(t){function e(){null==s&&(r=jQuery(document),s=jQuery("html"),c=jQuery("body"),a(),o(),t.upgrade_multiselect(),t.upgrade_tooltips())}function i(){null===u&&(u=jQuery("<div></div>").addClass("wpmui-overlay").appendTo(c)),c.addClass("wpmui-has-overlay"),s.addClass("wpmui-no-scroll")}function n(){c.removeClass("wpmui-has-overlay"),s.removeClass("wpmui-no-scroll")}function a(){var t=function(t){var e=jQuery(this).closest(".wpmui-box");return t.preventDefault(),e.hasClass("static")?!1:(e.toggleClass("closed"),!1)};c.on("click",".wpmui-box > h3",t),c.on("click",".wpmui-box > h3 > .toggle",t)}function o(){var t=function(t){var e=jQuery(this),i=e.closest(".wpmui-tabs"),n=i.next(".wpmui-tab-contents"),a=i.find(".active.tab"),o=e.attr("href"),r=a.attr("href"),s=n.find(o);return content_active=n.find(r),e.hasClass("active")||(a.removeClass("active"),content_active.removeClass("active")),e.addClass("active"),s.addClass("active"),t.preventDefault(),!1};c.on("click",".wpmui-tabs .tab",t)}var r=null,s=null,c=null,u=null;t.popup=function(){return e(),new l},t.ajax=function(t,i){return e(),new d(t,i)},t.upgrade_multiselect=function(t){e(),t=jQuery(t||c);var i=t.find("select[multiple]"),n=t.find("input[data-select-ajax]"),a=function(){var t=jQuery(this),e={closeOnSelect:!1,width:"100%"};"1"!=t.data("wpmui-select")&&(t.data("wpmui-select","1"),window.setTimeout(function(){t.select2(e)},1))},o=function(){var t=function(t){return t.val},e=function(t){return t.key},i=function(t,e){var i=t.val(),n=[];plain=[],jQuery(i.split(",")).each(function(){var t=this.split("::");plain.push(t[0]),n.push({key:t[0],val:t[1]})}),t.val(plain.join(",")),e(n)},n=jQuery(this),a={closeOnSelect:!1,width:"100%",multiple:!0,minimumInputLength:1,ajax:{url:n.attr("data-select-ajax"),dataType:"json",quietMillis:100,cache:!0,data:function(t){return{q:t}},results:function(t){return{results:t.items}}},id:e,formatResult:t,formatSelection:t,initSelection:i};"1"!=n.data("wpmui-select")&&(n.data("wpmui-select","1"),window.setTimeout(function(){n.select2(a)},1))};"function"==typeof jQuery.fn.each2?(i.each2(a),n.each2(o)):(i.each(a),n.each(o))},t.message=function(t){var i,n,a,o;e();var r=function(t){return t.preventDefault(),n.remove(),!1},s=function(){var t=jQuery(this).closest(".wpmui-msg");t.find(".debug").toggle()};return"undefined"==typeof t?!1:(("string"==typeof t||t instanceof Array)&&(t={message:t}),t.message instanceof Array&&(t.message=t.message.join("<br />")),t.message?(t.type=void 0==t.type?"ok":t.type.toString().toLowerCase(),t.close=void 0==t.close?!0:t.close,t.parent=void 0==t.parent?".wrap":t.parent,t.insert_after=void 0==t.insert_after?"h2":t.insert_after,t.id=void 0==t.id?"":t.id.toString().toLowerCase(),t["class"]=void 0==t["class"]?"":t["class"].toString().toLowerCase(),t.details=void 0==t.details?!1:t.details,("error"==t.type||"red"==t.type)&&(t.type="err"),("success"==t.type||"green"==t.type)&&(t.type="ok"),i=jQuery(t.parent).first(),i.length?(t.id&&jQuery('.wpmui-msg[data-id="'+t.id+'"]').length?(n=jQuery('.wpmui-msg[data-id="'+t.id+'"]').first(),o=!1):(n=jQuery("<div><p></p></div>"),t.id&&n.attr("data-id",t.id),o=!0),n.find("p").html(t.message),"err"==t.type&&t.details&&window.JSON&&(jQuery('<div class="debug" style="display:none"></div>').appendTo(n).text(JSON.stringify(t.details)),jQuery('<i class="dashicons dashicons-editor-help light"></i>').prependTo(n.find("p:first")).click(s).after(" ")),n.removeClass().addClass("updated wpmui-msg "+t["class"]),"err"==t.type&&n.addClass("error"),o&&(t.close&&(a=jQuery('<a href="#" class="wpmui-close">&times;</a>'),a.prependTo(n),a.click(r)),t.insert_after&&i.find(t.insert_after).length?(i=i.find(t.insert_after).first(),i.after(n)):i.prepend(n)),!0):!1):!1)},t.tooltip=function(t,i){var n,a;e();var o=function(e){var n=e.outerWidth(),a=e.outerHeight(),o=5,r=t.outerWidth(),s=t.outerHeight(),c={};switch(c.left=(r-n)/2,c.top=(s-a)/2,c[i.pos]="auto",i.pos){case"top":c.bottom=s+o;break;case"bottom":c.top=s+o;break;case"left":c.right=r+o;break;case"right":c.left=r+o}e.css(c)},r=function(){var t=jQuery(this).closest(".wpmui-tip-box").find(".wpmui-tip");t.addClass("wpmui-visible"),t.show(),o(t),setTimeout(function(){o(t)},35)},s=function(){var t=jQuery(this).closest(".wpmui-tip-box").find(".wpmui-tip");t.removeClass("wpmui-visible"),t.hide()},c=function(t){n.hasClass("wpmui-visible")?s.call(this,t):r.call(this,t)};return"string"==typeof i&&(i={content:i}),void 0===i.content?!1:(t=jQuery(t),t.length?(i.trigger=void 0==i.trigger?"hover":i.trigger.toString().toLowerCase(),i.pos=void 0==i.pos?"top":i.pos.toString().toLowerCase(),i["class"]=void 0==i["class"]?"":i["class"].toString().toLowerCase(),a=t.parent(),a.hasClass("wpmui-tip-box")||(a=t.wrap('<span class="wpmui-tip-box"></span>').parent().addClass(i["class"]+"-box")),n=a.find("> .wpmui-tip"),n.length||(n=jQuery('<div class="wpmui-tip"></div>'),n.addClass(i["class"]).addClass(i.pos).appendTo(t.parent()).hide(),isNaN(i.width)||n.width(i.width),"hover"==i.trigger?t.hover(r,s):"click"==i.trigger&&t.click(c)),n.html(i.content),!0):!1)},t.upgrade_tooltips=function(){var e=jQuery("[data-tooltip]");e.each(function(){var e=jQuery(this),i={content:e.attr("data-tooltip"),pos:e.attr("data-pos"),trigger:e.attr("data-trigger"),"class":e.attr("data-class"),width:e.attr("data-width")};t.tooltip(e,i)})},t.obj=function(t){var e={};if(t instanceof Object)e=t;else if(t instanceof Array)if("function"==typeof t.reduce)e=t.reduce(function(t,e,i){return t[i]=e,t},{});else for(var i=t.length-1;i>0;i-=1)void 0!==t[i]&&(e[i]=t[i]);else"string"==typeof t?e.scalar=t:"number"==typeof t?e.scalar=t:"boolean"==typeof t&&(e.scalar=t);return e},jQuery(function(){e()});var l=function(){function t(){x=jQuery('<div class="wpmui-wnd"></div>'),C=jQuery('<div class="wpmui-wnd-title"><span class="the-title"></span></div>'),_=jQuery('<a href="#" class="wpmui-wnd-close"><i class="dashicons dashicons-no-alt"></i></a>'),T=jQuery('<div class="wpmui-wnd-content"></div>'),C.appendTo(x),T.appendTo(x),_.appendTo(C),x.appendTo(c).hide(),e(),f=!1,o()}function e(){x&&(x.on("click",".wpmui-wnd-close",p.close),x.on("click","thead .check-column :checkbox",l),x.on("click","tfoot .check-column :checkbox",l),x.on("click","tbody .check-column :checkbox",d),jQuery(window).on("resize",s))}function a(){x&&(x.off("click",".wpmui-wnd-close",p.close),x.off("click",".check-column :checkbox",l),jQuery(window).off("resize",s))}function o(t,e){if(!x)return!1;t=t||m,e=e||v;var a={width:t,height:e,"margin-left":-1*(t/2),"margin-top":-1*(e/2)};if(C.find(".the-title").text(y),g){x.find(".buttons").remove(),x.addClass("no-buttons"),w instanceof jQuery?T.html(w.html()):T.html(jQuery(w).html());var o=T.find(".buttons");o.length&&(o.appendTo(x),x.removeClass("no-buttons")),g=!1}x.is(":visible")?x.animate(a,200):x.css(a),u instanceof jQuery&&u.off("click",r),f?(x.show(),h&&i(),u.on("click",r),j&&(j=!1,s())):(x.hide(),n())}function r(){return x?!u instanceof jQuery?!1:(u.off("click",r),p.close(),void 0):!1}function s(){if(!x)return!1;var t=jQuery(this),e=t.innerWidth(),i=t.innerHeight(),n=m,a=v;m>e&&(n=e),v>i&&(a=i),o(n,a)}function l(t){{var e=jQuery(this),i=e.prop("checked");t.shiftKey}e.closest("table").children("tbody, thead, tfoot").filter(":visible").children().children(".check-column").find(":checkbox").prop("checked",i)}function d(){var t=jQuery(this),e=t.closest("tbody").find(":checkbox").filter(":visible").not(":checked");return t.closest("table").children("thead, tfoot").find(":checkbox").prop("checked",0===e.length),!0}var p=this,f=!1,h=!1,m=740,v=400,y="Window",w="",g=!1,j=!1,b=null,Q=null,k=null,x=null,C=null,_=null,T=null;this.modal=function(t){return h=t?!0:!1,o(),p},this.size=function(t,e){var i=Math.abs(parseFloat(t)),n=Math.abs(parseFloat(e));return isNaN(i)||(m=i),isNaN(n)||(v=n),j=!0,o(),p},this.title=function S(S){return y=S,o(),p},this.content=function(t){return w=t,j=!0,g=!0,o(),p},this.onshow=function(t){return b=t,p},this.onhide=function(t){return Q=t,p},this.onclose=function(t){return k=t,p},this.loading=function(t){return t?x.addClass("wpmui-loading"):x.removeClass("wpmui-loading"),p},this.show=function(){return f=!0,j=!0,o(),"function"==typeof b&&b.apply(p,[p.$()]),p},this.hide=function(){return f=!1,o(),"function"==typeof Q&&Q.apply(p,[p.$()]),p},this.close=function(){p.hide(),"function"==typeof k&&k.apply(p,[p.$()]),a(),x.remove(),x=null},this.$=function(){return x},p=this,t()},d=function(t,e){function i(){t||"string"!=typeof window.ajaxurl||(t=window.ajaxurl),p=c.find("#wpmui_void"),p.length||(p=jQuery("<iframe></iframe>").attr("name","wpmui_void").attr("id","wpmui_void").css({width:1,height:1,display:"none",visibility:"hidden",position:"absolute",left:-1e3,top:-1e3}).hide().appendTo(c)),n(),d.reset()}function n(){var t=document.createElement("INPUT"),e=new XMLHttpRequest;t.type="file",y="files"in t,v=!!(e&&"upload"in e&&"onprogress"in e.upload),w=!!window.FormData}function a(){var t=new window.XMLHttpRequest;return v&&(t.upload.addEventListener("progress",function(t){if(t.lengthComputable){var e=t.loaded/t.total;o(e)}else o(-1)},!1),t.addEventListener("progress",function(t){if(t.lengthComputable){var e=t.loaded/t.total;o(e)}else o(-1)},!1)),t}function o(t){v&&"function"==typeof h&&h(t)}function r(t,e,i){o(100),"function"==typeof m&&m(t,e,i)}function s(t,e){var i={};if(e=e&&w,f instanceof jQuery)if(f.find(".wp-editor-area").each(function(){var t=jQuery(this).attr("id"),e="#wp-"+t+"-wrap",i=jQuery(e),n=tinyMCE.get(t);n&&i.hasClass("tmce-active")&&n.save()}),e)i=new FormData(f[0]);else{i={};var n={},a={validate:/^[a-zA-Z][a-zA-Z0-9_-]*(?:\[(?:\d*|[a-zA-Z0-9_]+)\])*$/,key:/[a-zA-Z0-9_-]+|(?=\[\])/g,push:/^$/,fixed:/^\d+$/,named:/^[a-zA-Z0-9_-]+$/},o=function(t,e,i){return t[e]=i,t},r=function(t){return void 0===n[t]&&(n[t]=0),n[t]++};jQuery.each(f.serializeArray(),function(){if(a.validate.test(this.name)){for(var t,e=this.name.match(a.key),n=this.value,s=this.name;void 0!==(t=e.pop());)s=s.replace(new RegExp("\\["+t+"\\]$"),""),t.match(a.push)?n=o([],r(s),n):t.match(a.fixed)?n=o([],t,n):t.match(a.named)&&(n=o({},t,n));i=jQuery.extend(!0,i,n)}}),f.find("input[type=file]").each(function(){var t=jQuery(this),e=t.attr("name"),n=t.clone(!0)[0];i[":files"]=i[":files"]||{},i[":files"][e]=n})}else if("string"==typeof f){temp=f.split("&").map(function(t){return t.split("=",2)}),i=e?new FormData:{};for(var s in temp){var c=decodeURI(temp[s][0]),u=decodeURI(temp[s][1]);e?i.append(c,u):void 0!==i[c]?("object"!=typeof i[c]&&(i[c]=[i[c]]),i[c].push(u)):i[c]=u}}else if("object"==typeof f)if(e){i=new FormData;for(var c in f)f.hasOwnProperty(c)&&i.append(c,f[c])}else i=jQuery.extend({},f);return i instanceof FormData?i.append("action",t):i.action=t,i}function u(e,i){var n=s(e,!0),c={},u=null,l=!1;"json"!=i&&(i="text"),o(-1),c={url:t,type:"POST",dataType:"html",data:n,xhr:a,success:function(t){if(l=!0,u=t,"json"==i)try{u=jQuery.parseJSON(t)}catch(e){u={status:"ERR",data:t}}},error:function(t,e,i){l=!1,u=i},complete:function(t){u instanceof Object&&"ERR"==u.status&&(l=!1),r(u,l,t)}},n instanceof FormData&&(c.processData=!1,c.contentType=!1),jQuery.ajax(c)}function l(e,i){var n=s(e,!1),a=jQuery("<form></form>"),o="";for(var r in n)if(n.hasOwnProperty(r))if(":files"==r)for(var c in n[r]){var u=n[r][c];a.append(u)}else"action"==r?o=r+"="+n[r].toString():jQuery('<input type="hidden" />').attr("name",r).attr("value",n[r]).appendTo(a);o=-1==t.indexOf("?")?"?"+o:"&"+o,a.attr("action",t+o).attr("method","POST").attr("enctype","multipart/form-data").attr("target",i),a.submit()}var d=this,p=null,f={},h=null,m=null,v=!1,y=!1,w=!1;this.data=function(t){return f=t,d},this.extract_data=function(t){return f=t,s("",!1)},this.onprogress=function(t){return h=t,d},this.ondone=function(t){return m=t,d},this.reset=function(){return f={},h=null,m=null,d},this.load_text=function(t){return t=t||e,u(t,"text"),d},this.load_json=function(t){return t=t||e,u(t,"json"),d},this.load_http=function(t,i){return t=t||"wpmui_void",i=i||e,l(i,t),d},d=this,i()}}(window.wpmUi=window.wpmUi||{});
inc/rules/class-popup-rule-url.php CHANGED
@@ -189,7 +189,7 @@ class IncPopupRule_Url extends IncPopupRule {
189
  if ( empty( $_REQUEST['thefrom'] ) ) {
190
  $current_url = home_url( $wp->request );
191
  } else {
192
- $current_url = $_REQUEST['thefrom'];
193
  }
194
 
195
  return $current_url;
@@ -211,8 +211,16 @@ class IncPopupRule_Url extends IncPopupRule {
211
  $response = true;
212
  } else {
213
  foreach ( $list as $match ) {
214
- $res = stripos( $test_url, $match );
215
- if ( false !== $res ) {
 
 
 
 
 
 
 
 
216
  $response = true;
217
  break;
218
  }
@@ -224,4 +232,4 @@ class IncPopupRule_Url extends IncPopupRule {
224
 
225
  };
226
 
227
- IncPopupRules::register( 'IncPopupRule_Url' );
189
  if ( empty( $_REQUEST['thefrom'] ) ) {
190
  $current_url = home_url( $wp->request );
191
  } else {
192
+ $current_url = strtok( $_REQUEST['thefrom'], '#' );
193
  }
194
 
195
  return $current_url;
211
  $response = true;
212
  } else {
213
  foreach ( $list as $match ) {
214
+ if ( false === strpos( $match, '://' ) ) {
215
+ $match = 'https?://' . $match;
216
+ }
217
+ if ( substr( $match, -1 ) != '/' ) {
218
+ $match .= '/?';
219
+ } else {
220
+ $match .= '?';
221
+ }
222
+ $res = preg_match( '#^' . $match . '$#i', $test_url );
223
+ if ( $res ) {
224
  $response = true;
225
  break;
226
  }
232
 
233
  };
234
 
235
+ IncPopupRules::register( 'IncPopupRule_Url' );
js/public.min.js CHANGED
@@ -1 +1 @@
1
- !function(){function e(e){"closed"===p?e._show()?(d=e,p="open"):t(e):n[n.length]=e}function t(){p="closed",d=null,n.length>0&&(item=n.shift(),e(item))}function o(e,t,o){var a,p,n=0,d=window.location,r=document.referrer,u=null,s=function(t){u=jQuery.extend({},e),u.popup=t,i(u)};return"undefined"!=typeof force_popover&&(n=force_popover.toString()),"undefined"!=typeof t&&(n=t.toString()),e.ajax_data=e.ajax_data||{},p=jQuery.extend({},e.ajax_data),p.action="inc_popup",p["do"]=e["do"],p.thefrom=d.toString(),p.thereferrer=r.toString(),n&&(p.po_id=n),o&&(p.data=o),e.preview&&(p.preview=!0),a={url:e.ajaxurl,dataType:"jsonp",jsonpCallback:"po_data",data:p,success:function(e){s(e)},complete:function(){jQuery(document).trigger("popup-load-done",[u])}},jQuery.ajax(a)}function i(e){if(void 0!==e){var t=function(e){void 0!==e&&(void 0!==e.popup&&void 0!==e.popup.html&&(jQuery('<style type="text/css">'+e.popup.styles+"</style>").appendTo("head"),jQuery(e.popup.html).appendTo("body").hide()),window.inc_popup=new a(e),window.inc_popups[window.inc_popups.length]=window.inc_popup,jQuery(document).trigger("popup-initialized",[window.inc_popup]),e.noinit||e.preview||inc_popup.init())};if(e.popup instanceof Array)for(var o=0;o<e.popup.length;o+=1){var i=jQuery.extend({},e);i.popup=e.popup[o],t(i)}else e instanceof Object&&t(e)}}var a=function(i){var a=this,p=jQuery(document),n=jQuery(window),d=null,r=null,u=null,s=null,c=null,l=null,h=null,f=null;return this.data={},this.have_popup=!1,this.ajax_data={},this.opened=0,this.close_forever=function(){var e=a.data.expiry||365;return a.close_popup(),i.preview?!1:(a.set_cookie("po_h",1,e),!1)},this.close_popup=function(){return jQuery("html").removeClass("has-popup"),a.data.display_data.click_multi?(f.hide(),d.hide()):(f.remove(),d.remove(),a.have_popup=!1),p.trigger("popup-closed"),p.trigger("popover-closed"),t(a),!1},this.background_clicked=function(e){var t=jQuery(e.target);if(t.hasClass("wdpu-background")){if(!a.data.overlay_close)return;a.close_popup()}},this.move_popup=function(){var e,t,o,i=0,p=0;a.data.custom_size&&(a.data.height&&!isNaN(a.data.height)&&(l.data("reduce-height")&&(o=jQuery(l.data("reduce-height")),p=o.outerHeight()),t=a.data.height-p,100>t&&(t=100),l.height(t)),a.data.width&&!isNaN(a.data.width)&&(l.data("reduce-width")&&(o=jQuery(l.data("reduce-width")),i=o.outerWidth()),e=a.data.width-i,100>e&&(e=100),l.width(e)));var d=function(){if(!c.hasClass("no-move-x")){var e=n.width(),t=r.outerWidth(),o=(e-t)/2;10>o&&(o=10),c.css({left:o})}if(!c.hasClass("no-move-y")){var i=n.height(),a=r.outerHeight(),p=(i-a)/2;10>p&&(p=10),c.css({top:p})}if(h.length){var d,u,s=h.width(),l=h.height(),f=h.parent().width(),_=h.parent().height();s>f?(d=(f-s)/2,h.css({"margin-left":d})):h.css({"margin-left":0}),l>_?(u=(_-l)/2,h.css({"margin-top":u})):h.css({"margin-top":0})}};window.setTimeout(d,20),d()},this.reject=function(){a.have_popup=!1,a.data={}},this.prepare=function(){if(a.fetch_dom(),d.css({opacity:0,"z-index":-1,position:"absolute",left:-1e3,width:100,right:"auto",top:-1e3,height:100,bottom:"auto"}).show(),p.trigger("popup-init",[a,a.data]),a.have_popup)switch(a.data.display){case"scroll":n.on("scroll",a.show_at_position);break;case"anchor":n.on("scroll",a.show_at_element);break;case"delay":var t=1e3*a.data.display_data.delay;"m"==a.data.display_data.delay_type&&(t*=60),window.setTimeout(function(){e(a)},t);break;default:setTimeout(function(){"function"==typeof a.custom_handler&&a.custom_handler(a)},20)}},this.show_at_position=function(){var t,o,i=jQuery(this),d=i.scrollTop();switch(a.data.display_data.scroll_type){case"px":d>=a.data.display_data.scroll&&(n.off("scroll",a.show_at_position),e(a));break;case"%":default:t=p.height()-n.height(),o=100*d/t,o>=a.data.display_data.scroll&&(n.off("scroll",a.show_at_position),e(a))}},this.show_at_element=function(){var t=jQuery(a.data.display_data.anchor),o=n.scrollTop(),i=o+n.height(),p=t.offset().top,d=i-p;d>10&&(n.off("scroll",a.show_at_element),e(a))},this.show_popup=function(){e(a)},this._show=function(){return d.length?(count=parseInt(a.get_cookie("po_c")),isNaN(count)&&(count=0),a.set_cookie("po_c",count+1),a.opened+=1,f.on("click",a.background_clicked),n.off("resize.popup").on("resize.popup",function(){a.move_popup(a.data)}),d.show().removeAttr("style"),f.show(),jQuery("html").addClass("has-popup"),a.move_popup(a.data),s.off("click",a.close_forever).on("click",a.close_forever),a.data&&a.data.close_hide?u.off("click",a.close_forever).on("click",a.close_forever):u.off("click",a.close_popup).on("click",a.close_popup),r.hover(function(){jQuery(".claimbutton").removeClass("hide")},function(){jQuery(".claimbutton").addClass("hide")}),p.trigger("popup-displayed",[a.data,a]),p.trigger("popover-displayed",[a.data,a]),!0):!1},this.fetch_dom=function(){d=jQuery("#"+a.data.html_id),d.length||a.reject(),l=d.find(".resize"),c=d.find(".move"),r=d.find(".wdpu-msg"),u=d.find(".wdpu-close"),s=d.find(".wdpu-hide-forever"),h=d.find(".wdpu-image > img"),d.hasClass("wdpu-background")?f=d:(f=d.find(".wdpu-background"),f.length||(f=d.parents(".wdpu-background"))),c.length||(c=d),l.length||(l=d)},this.load_popup=function(e,t){(void 0!==e||1!=i.preview)&&(a.have_popup=!1,o(i,e,t))},this.init=function(){i.popup?(a.have_popup=!0,a.data=i.popup,a.exec_scripts(),a.prepare()):a.load_popup()},this.exec_scripts=function(){if(void 0!==a.data.script){var e=new Function("me",a.data.script);e(a)}},this.get_cookie=function(e){var t,o,i,p=document.cookie.split(";");for(i=a.data&&a.data.popup_id?e+"-"+a.data.popup_id+"=":e+"=",t=0;t<p.length;t+=1){for(o=p[t];" "===o.charAt(0);)o=o.substring(1,o.length);if(0===o.indexOf(i))return o.substring(i.length,o.length)}return null},this.set_cookie=function(e,t,o){var p,n,d;i.preview||(isNaN(o)?n="":(p=new Date,p.setTime(p.getTime()+24*o*60*60*1e3),n="; expires="+p.toGMTString()),d=a.data&&a.data.popup_id?e+"-"+a.data.popup_id:e,document.cookie=d+"="+t+n+"; path=/")},{init:a.init,load:a.load_popup,extend:a}},p="closed",n=[],d=null;jQuery(function(){window.inc_popups=[],i(_popup_data)})}();
1
+ !function(){function e(e){"closed"===p?e._show()?(d=e,p="open"):t(e):n[n.length]=e}function t(){p="closed",d=null,n.length>0&&(item=n.shift(),e(item))}function o(e,t,o){var a,p,n=0,d=window.location,r=document.referrer,u=null,s=function(t){u=jQuery.extend({},e),u.popup=t,i(u)};return"undefined"!=typeof force_popover&&(n=force_popover.toString()),"undefined"!=typeof t&&(n=t.toString()),e.ajax_data=e.ajax_data||{},p=jQuery.extend({},e.ajax_data),p.action="inc_popup",p["do"]=e["do"],p.thefrom=d.toString(),p.thereferrer=r.toString(),n&&(p.po_id=n),o&&(p.data=o),e.preview&&(p.preview=!0),a={url:e.ajaxurl,dataType:"jsonp",jsonpCallback:"po_data",data:p,success:function(e){s(e)},complete:function(){jQuery(document).trigger("popup-load-done",[u])}},jQuery.ajax(a)}function i(e){if(void 0!==e){var t=function(e){void 0!==e&&(void 0!==e.popup&&void 0!==e.popup.html&&(jQuery('<style type="text/css">'+e.popup.styles+"</style>").appendTo("head"),jQuery(e.popup.html).appendTo("body").hide()),window.inc_popup=new a(e),window.inc_popups[window.inc_popups.length]=window.inc_popup,jQuery(document).trigger("popup-initialized",[window.inc_popup]),e.noinit||e.preview||inc_popup.init())};if(e.popup instanceof Array)for(var o=0;o<e.popup.length;o+=1){var i=jQuery.extend({},e);i.popup=e.popup[o],t(i)}else e instanceof Object&&t(e)}}var a=function(i){var a=this,p=jQuery(document),n=jQuery(window),d=null,r=null,u=null,s=null,c=null,l=null,h=null,f=null;return this.data={},this.have_popup=!1,this.ajax_data={},this.opened=0,this.close_forever=function(){var e=a.data.expiry||365;return a.close_popup(),i.preview?!1:(a.set_cookie("po_h",1,e),!1)},this.close_popup=function(){return jQuery("html").removeClass("has-popup"),a.data.display_data.click_multi?(f.hide(),d.hide()):(f.remove(),d.remove(),a.have_popup=!1),p.trigger("popup-closed"),p.trigger("popover-closed"),t(a),!1},this.background_clicked=function(e){var t=jQuery(e.target);if(t.hasClass("wdpu-background")){if(!a.data.overlay_close)return;a.data.close_hide?a.close_forever():a.close_popup()}},this.move_popup=function(){var e,t,o,i=0,p=0;a.data.custom_size&&(a.data.height&&!isNaN(a.data.height)&&(l.data("reduce-height")&&(o=jQuery(l.data("reduce-height")),p=o.outerHeight()),t=a.data.height-p,100>t&&(t=100),l.height(t)),a.data.width&&!isNaN(a.data.width)&&(l.data("reduce-width")&&(o=jQuery(l.data("reduce-width")),i=o.outerWidth()),e=a.data.width-i,100>e&&(e=100),l.width(e)));var d=function(){if(!c.hasClass("no-move-x")){var e=n.width(),t=r.outerWidth(),o=(e-t)/2;10>o&&(o=10),c.css({left:o})}if(!c.hasClass("no-move-y")){var i=n.height(),a=r.outerHeight(),p=(i-a)/2;10>p&&(p=10),c.css({top:p})}if(h.length){var d,u,s=h.width(),l=h.height(),f=h.parent().width(),_=h.parent().height();s>f?(d=(f-s)/2,h.css({"margin-left":d})):h.css({"margin-left":0}),l>_?(u=(_-l)/2,h.css({"margin-top":u})):h.css({"margin-top":0})}};window.setTimeout(d,20),d()},this.reject=function(){a.have_popup=!1,a.data={}},this.prepare=function(){if(a.fetch_dom(),d.css({opacity:0,"z-index":-1,position:"absolute",left:-1e3,width:100,right:"auto",top:-1e3,height:100,bottom:"auto"}).show(),p.trigger("popup-init",[a,a.data]),a.have_popup)switch(a.data.display){case"scroll":n.on("scroll",a.show_at_position);break;case"anchor":n.on("scroll",a.show_at_element);break;case"delay":var t=1e3*a.data.display_data.delay;"m"==a.data.display_data.delay_type&&(t*=60),window.setTimeout(function(){e(a)},t);break;default:setTimeout(function(){"function"==typeof a.custom_handler&&a.custom_handler(a)},20)}},this.show_at_position=function(){var t,o,i=jQuery(this),d=i.scrollTop();switch(a.data.display_data.scroll_type){case"px":d>=a.data.display_data.scroll&&(n.off("scroll",a.show_at_position),e(a));break;case"%":default:t=p.height()-n.height(),o=100*d/t,o>=a.data.display_data.scroll&&(n.off("scroll",a.show_at_position),e(a))}},this.show_at_element=function(){var t=jQuery(a.data.display_data.anchor),o=n.scrollTop(),i=o+n.height(),p=t.offset().top,d=i-p;d>10&&(n.off("scroll",a.show_at_element),e(a))},this.show_popup=function(){e(a)},this._show=function(){return d.length?(count=parseInt(a.get_cookie("po_c")),isNaN(count)&&(count=0),a.set_cookie("po_c",count+1),a.opened+=1,f.on("click",a.background_clicked),n.off("resize.popup").on("resize.popup",function(){a.move_popup(a.data)}),d.show().removeAttr("style"),f.show(),jQuery("html").addClass("has-popup"),a.move_popup(a.data),s.off("click",a.close_forever).on("click",a.close_forever),a.data&&a.data.close_hide?u.off("click",a.close_forever).on("click",a.close_forever):u.off("click",a.close_popup).on("click",a.close_popup),r.hover(function(){jQuery(".claimbutton").removeClass("hide")},function(){jQuery(".claimbutton").addClass("hide")}),p.trigger("popup-displayed",[a.data,a]),p.trigger("popover-displayed",[a.data,a]),!0):!1},this.fetch_dom=function(){d=jQuery("#"+a.data.html_id),d.length||a.reject(),l=d.find(".resize"),c=d.find(".move"),r=d.find(".wdpu-msg"),u=d.find(".wdpu-close"),s=d.find(".wdpu-hide-forever"),h=d.find(".wdpu-image > img"),d.hasClass("wdpu-background")?f=d:(f=d.find(".wdpu-background"),f.length||(f=d.parents(".wdpu-background"))),c.length||(c=d),l.length||(l=d)},this.load_popup=function(e,t){(void 0!==e||1!=i.preview)&&(a.have_popup=!1,o(i,e,t))},this.init=function(){i.popup?(a.have_popup=!0,a.data=i.popup,a.exec_scripts(),a.prepare()):a.load_popup()},this.exec_scripts=function(){if(void 0!==a.data.script){var e=new Function("me",a.data.script);e(a)}},this.get_cookie=function(e){var t,o,i,p=document.cookie.split(";");for(i=a.data&&a.data.popup_id?e+"-"+a.data.popup_id+"=":e+"=",t=0;t<p.length;t+=1){for(o=p[t];" "===o.charAt(0);)o=o.substring(1,o.length);if(0===o.indexOf(i))return o.substring(i.length,o.length)}return null},this.set_cookie=function(e,t,o){var p,n,d;i.preview||(isNaN(o)?n="":(p=new Date,p.setTime(p.getTime()+24*o*60*60*1e3),n="; expires="+p.toGMTString()),d=a.data&&a.data.popup_id?e+"-"+a.data.popup_id:e,document.cookie=d+"="+t+n+"; path=/")},{init:a.init,load:a.load_popup,extend:a}},p="closed",n=[],d=null;jQuery(function(){window.inc_popups=[],i(_popup_data)})}();
lang/popover-en_EN.mo ADDED
Binary file
lang/popover-en_EN.po ADDED
@@ -0,0 +1,2233 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: PopUp\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2014-08-28 22:04+0100\n"
6
+ "PO-Revision-Date: 2014-08-28 22:05+0100\n"
7
+ "Last-Translator: Philipp Stracker <philipp@stracker.net>\n"
8
+ "Language-Team: \n"
9
+ "Language: en\n"
10
+ "MIME-Version: 1.0\n"
11
+ "Content-Type: text/plain; charset=UTF-8\n"
12
+ "Content-Transfer-Encoding: 8bit\n"
13
+ "X-Poedit-KeywordsList: __;gettext;gettext_noop;_e;_x;_ex\n"
14
+ "X-Poedit-Basepath: ..\n"
15
+ "X-Generator: Poedit 1.6.8\n"
16
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
17
+ "X-Poedit-SourceCharset: UTF-8\n"
18
+ "X-Poedit-SearchPath-0: .\n"
19
+
20
+ #: css/tpl/cabriolet/style.php:2
21
+ msgid "Cabriolet"
22
+ msgstr "Cabriolet"
23
+
24
+ #: css/tpl/cabriolet/template.php:61 css/tpl/minimal/template.php:46
25
+ #: css/tpl/old-default/template.php:24 css/tpl/old-fixed/template.php:24
26
+ #: css/tpl/old-fullbackground/template.php:24 css/tpl/simple/template.php:43
27
+ msgid "Close this box"
28
+ msgstr "Close this box"
29
+
30
+ #: css/tpl/cabriolet/template.php:87 css/tpl/minimal/template.php:90
31
+ #: css/tpl/old-default/template.php:33 css/tpl/old-fixed/template.php:33
32
+ #: css/tpl/old-fullbackground/template.php:33 css/tpl/simple/template.php:83
33
+ msgid "Never see this message again."
34
+ msgstr "Never see this message again."
35
+
36
+ #: css/tpl/minimal/style.php:2
37
+ msgid "Minimal"
38
+ msgstr "Minimal"
39
+
40
+ #: css/tpl/old-default/style.php:2
41
+ msgid "Default"
42
+ msgstr "Default"
43
+
44
+ #: css/tpl/old-fixed/style.php:2
45
+ msgid "Default Fixed"
46
+ msgstr "Default Fixed"
47
+
48
+ #: css/tpl/old-fullbackground/style.php:2
49
+ msgid "Dark Background Fixed"
50
+ msgstr "Dark Background Fixed"
51
+
52
+ #: css/tpl/simple/style.php:2
53
+ msgid "Simple"
54
+ msgstr "Simple"
55
+
56
+ #: inc/addons/class-popup-addon-anonymous.php:80
57
+ msgid "Anonymous Script"
58
+ msgstr "Anonymous Script"
59
+
60
+ #: inc/addons/class-popup-addon-anonymous.php:82
61
+ msgid ""
62
+ "Load PopUp like WordPress AJAX, but the URL to the JavaScript file will be "
63
+ "masked."
64
+ msgstr ""
65
+ "Load PopUp like WordPress AJAX, but the URL to the JavaScript file will be "
66
+ "masked."
67
+
68
+ #: inc/addons/class-popup-addon-headerfooter.php:122
69
+ msgid ""
70
+ "Critical: Call to <code>wp_head();</code> is missing! It should appear "
71
+ "directly before <code>&lt;/head&gt;</code>"
72
+ msgstr ""
73
+ "Critical: Call to <code>wp_head();</code> is missing! It should appear "
74
+ "directly before <code>&lt;/head&gt;</code>"
75
+
76
+ #: inc/addons/class-popup-addon-headerfooter.php:128
77
+ msgid ""
78
+ "Notice: Call to <code>wp_head();</code> exists but it is not called directly "
79
+ "before <code>&lt;/head&gt;</code>"
80
+ msgstr ""
81
+ "Notice: Call to <code>wp_head();</code> exists but it is not called directly "
82
+ "before <code>&lt;/head&gt;</code>"
83
+
84
+ #: inc/addons/class-popup-addon-headerfooter.php:136
85
+ msgid ""
86
+ "Critical: Call to <code>wp_footer();</code> is missing! It should appear "
87
+ "directly before <code>&lt;/body&gt;</code>"
88
+ msgstr ""
89
+ "Critical: Call to <code>wp_footer();</code> is missing! It should appear "
90
+ "directly before <code>&lt;/body&gt;</code>"
91
+
92
+ #: inc/addons/class-popup-addon-headerfooter.php:142
93
+ msgid ""
94
+ "Notice: Call to <code>wp_footer();</code> exists but it is not called "
95
+ "directly before <code>&lt;/body&gt;</code>"
96
+ msgstr ""
97
+ "Notice: Call to <code>wp_footer();</code> exists but it is not called "
98
+ "directly before <code>&lt;/body&gt;</code>"
99
+
100
+ #: inc/addons/class-popup-addon-headerfooter.php:158
101
+ msgid ""
102
+ "Okay: Your current theme uses <code>wp_head();</code> and <code>wp_footer();"
103
+ "</code> correctly!"
104
+ msgstr ""
105
+ "Okay: Your current theme uses <code>wp_head();</code> and <code>wp_footer();"
106
+ "</code> correctly!"
107
+
108
+ #: inc/class-popup-admin.php:103 inc/class-popup-admin.php:448
109
+ msgid "Activate"
110
+ msgstr "Activate"
111
+
112
+ #: inc/class-popup-admin.php:104 inc/class-popup-admin.php:437
113
+ msgid "Deactivate"
114
+ msgstr "Deactivate"
115
+
116
+ #: inc/class-popup-admin.php:105
117
+ msgid "Toggle activation"
118
+ msgstr "Toggle activation"
119
+
120
+ #: inc/class-popup-admin.php:251 inc/class-popup-admin.php:252
121
+ #: inc/class-popup-posttype.php:76 inc/class-popup-posttype.php:77
122
+ #: inc/class-popup-posttype.php:97
123
+ msgid "PopUp"
124
+ msgstr "PopUp"
125
+
126
+ #: inc/class-popup-admin.php:262 inc/class-popup-admin.php:263
127
+ #: inc/class-popup-posttype.php:82
128
+ msgid "Add New"
129
+ msgstr "Add New"
130
+
131
+ #: inc/class-popup-admin.php:271 inc/class-popup-admin.php:272
132
+ #: inc/class-popup-admin.php:283 inc/class-popup-admin.php:284
133
+ msgid "Settings"
134
+ msgstr "Settings"
135
+
136
+ #: inc/class-popup-admin.php:279 inc/class-popup-posttype.php:91
137
+ #: inc/class-popup-posttype.php:93 views/network.php:29
138
+ msgid "Global PopUps"
139
+ msgstr "Global PopUps"
140
+
141
+ #: inc/class-popup-admin.php:361
142
+ msgid "Your settings have been updated."
143
+ msgstr "Your settings have been updated."
144
+
145
+ #: inc/class-popup-admin.php:395
146
+ msgid "PopUp Name"
147
+ msgstr "PopUp Name"
148
+
149
+ #: inc/class-popup-admin.php:396
150
+ msgid "Conditions"
151
+ msgstr "Conditions"
152
+
153
+ #: inc/class-popup-admin.php:399
154
+ msgid "Order"
155
+ msgstr "Order"
156
+
157
+ #: inc/class-popup-admin.php:400 inc/class-popup-item.php:737
158
+ msgid "Active"
159
+ msgstr "Active"
160
+
161
+ #: inc/class-popup-admin.php:425 inc/class-popup-admin.php:489
162
+ msgid "Edit this PopUp"
163
+ msgstr "Edit this PopUp"
164
+
165
+ #: inc/class-popup-admin.php:426
166
+ #, fuzzy
167
+ msgid "Edit"
168
+ msgstr "Edit"
169
+
170
+ #: inc/class-popup-admin.php:436
171
+ msgid "Deactivate this PopUp"
172
+ msgstr "Deactivate this PopUp"
173
+
174
+ #: inc/class-popup-admin.php:447
175
+ msgid "Activate this PopUp"
176
+ msgstr "Activate this PopUp"
177
+
178
+ #: inc/class-popup-admin.php:454
179
+ msgid "Preview this PopUp"
180
+ msgstr "Preview this PopUp"
181
+
182
+ #: inc/class-popup-admin.php:456 views/settings.php:258
183
+ #, fuzzy
184
+ msgid "Preview"
185
+ msgstr "Preview"
186
+
187
+ #: inc/class-popup-admin.php:466
188
+ msgid "Restore this PopUp from the Trash"
189
+ msgstr "Restore this PopUp from the Trash"
190
+
191
+ #: inc/class-popup-admin.php:467
192
+ msgid "Restore"
193
+ msgstr "Restore"
194
+
195
+ #: inc/class-popup-admin.php:472
196
+ msgid "Move this PopUp to the Trash"
197
+ msgstr "Move this PopUp to the Trash"
198
+
199
+ #: inc/class-popup-admin.php:474
200
+ msgid "Trash"
201
+ msgstr "Trash"
202
+
203
+ #: inc/class-popup-admin.php:480
204
+ msgid "Delete this PopUp permanently"
205
+ msgstr "Delete this PopUp permanently"
206
+
207
+ #: inc/class-popup-admin.php:482
208
+ msgid "Delete Permanently"
209
+ msgstr "Delete Permanently"
210
+
211
+ #: inc/class-popup-admin.php:527
212
+ msgid "Always Show PopUp"
213
+ msgstr "Always Show PopUp"
214
+
215
+ #: inc/class-popup-admin.php:566
216
+ #, php-format
217
+ msgid "All <span class=\"count\">(%1$s)</span>"
218
+ msgstr "All <span class=\"count\">(%1$s)</span>"
219
+
220
+ #: inc/class-popup-admin.php:567
221
+ #, php-format
222
+ msgid "Active <span class=\"count\">(%1$s)</span>"
223
+ msgstr "Active <span class=\"count\">(%1$s)</span>"
224
+
225
+ #: inc/class-popup-admin.php:568
226
+ #, php-format
227
+ msgid "Inactive <span class=\"count\">(%1$s)</span>"
228
+ msgstr "Inactive <span class=\"count\">(%1$s)</span>"
229
+
230
+ #: inc/class-popup-admin.php:569
231
+ #, php-format
232
+ msgid "Trash <span class=\"count\">(%1$s)</span>"
233
+ msgstr "Trash <span class=\"count\">(%1$s)</span>"
234
+
235
+ #: inc/class-popup-admin.php:697
236
+ msgid "One PopUp activated"
237
+ msgstr "One PopUp activated"
238
+
239
+ #: inc/class-popup-admin.php:698
240
+ #, php-format
241
+ msgid "%1$s PopUps activated"
242
+ msgstr "%1$s PopUps activated"
243
+
244
+ #: inc/class-popup-admin.php:703
245
+ msgid "One PopUp deactivated"
246
+ msgstr "One PopUp deactivated"
247
+
248
+ #: inc/class-popup-admin.php:704
249
+ #, php-format
250
+ msgid "%1$s PopUps deactivated"
251
+ msgstr "%1$s PopUps deactivated"
252
+
253
+ #: inc/class-popup-admin.php:709
254
+ msgid "One PopUp toggled"
255
+ msgstr "One PopUp toggled"
256
+
257
+ #: inc/class-popup-admin.php:710
258
+ #, php-format
259
+ msgid "%1$s PopUps toggled"
260
+ msgstr "%1$s PopUps toggled"
261
+
262
+ #: inc/class-popup-admin.php:897
263
+ msgid "PopUp Contents"
264
+ msgstr "PopUp Contents"
265
+
266
+ #: inc/class-popup-admin.php:906
267
+ msgid "Appearance"
268
+ msgstr "Appearance"
269
+
270
+ #: inc/class-popup-admin.php:915
271
+ msgid "Behavior"
272
+ msgstr "Behavior"
273
+
274
+ #: inc/class-popup-admin.php:924
275
+ msgid "Displaying Conditions (optional)"
276
+ msgstr "Displaying Conditions (optional)"
277
+
278
+ #: inc/class-popup-admin.php:933
279
+ msgid "Save PopUp"
280
+ msgstr "Save PopUp"
281
+
282
+ #: inc/class-popup-admin.php:955
283
+ msgid "PopUp Name (not displayed on the PopUp)"
284
+ msgstr "PopUp Name (not displayed on the PopUp)"
285
+
286
+ #: inc/class-popup-admin.php:958
287
+ msgid "Name this PopUp"
288
+ msgstr "Name this PopUp"
289
+
290
+ #: inc/class-popup-database.php:294
291
+ #, php-format
292
+ msgid ""
293
+ "<strong>PopUp Pro</strong><br />Your installation was successfully updated "
294
+ "to use the latest version of the plugin!<br /><em>Note: Some PopUp options "
295
+ "changed or were replaced. You should have a look at your <a href=\"%s"
296
+ "\">PopUps</a> to see if they still look as intended.</em>"
297
+ msgstr ""
298
+ "<strong>PopUp Pro</strong><br />Your installation was successfully updated "
299
+ "to use the latest version of the plugin!<br /><em>Note: Some PopUp options "
300
+ "changed or were replaced. You should have a look at your <a href=\"%s"
301
+ "\">PopUps</a> to see if they still look as intended.</em>"
302
+
303
+ #: inc/class-popup-item.php:376
304
+ msgid "New PopUp"
305
+ msgstr "New PopUp"
306
+
307
+ #: inc/class-popup-item.php:537
308
+ #, php-format
309
+ msgid "Saved PopUp \"<strong>%1$s</strong>\""
310
+ msgstr "Saved PopUp \"<strong>%1$s</strong>\""
311
+
312
+ #: inc/class-popup-item.php:541
313
+ #, php-format
314
+ msgid "Activated PopUp \"<strong>%1$s</strong>\"."
315
+ msgstr "Activated PopUp \"<strong>%1$s</strong>\"."
316
+
317
+ #: inc/class-popup-item.php:545
318
+ #, php-format
319
+ msgid "Deactivated PopUp \"<strong>%1$s</strong>\"."
320
+ msgstr "Deactivated PopUp \"<strong>%1$s</strong>\"."
321
+
322
+ #: inc/class-popup-item.php:549
323
+ #, php-format
324
+ msgid "Moved PopUp \"<strong>%1$s</strong>\" to trash."
325
+ msgstr "Moved PopUp \"<strong>%1$s</strong>\" to trash."
326
+
327
+ #: inc/class-popup-item.php:553
328
+ #, php-format
329
+ msgid "Saved PopUp \"<strong>%1$s</strong>\"."
330
+ msgstr "Saved PopUp \"<strong>%1$s</strong>\"."
331
+
332
+ #: inc/class-popup-item.php:559
333
+ msgid "Could not save PopUp."
334
+ msgstr "Could not save PopUp."
335
+
336
+ #: inc/class-popup-item.php:712 inc/rules/class-popup-rule-user.php:30
337
+ msgid "Visitor is logged in"
338
+ msgstr "Visitor is logged in"
339
+
340
+ #: inc/class-popup-item.php:713 inc/rules/class-popup-rule-user.php:39
341
+ msgid "Visitor is not logged in"
342
+ msgstr "Visitor is not logged in"
343
+
344
+ #: inc/class-popup-item.php:714 inc/rules/class-popup-rule-url.php:30
345
+ msgid "On specific URL"
346
+ msgstr "On specific URL"
347
+
348
+ #: inc/class-popup-item.php:715 inc/rules/class-popup-rule-url.php:39
349
+ msgid "Not on specific URL"
350
+ msgstr "Not on specific URL"
351
+
352
+ #: inc/class-popup-item.php:716
353
+ msgid "In a specific country"
354
+ msgstr "In a specific country"
355
+
356
+ #: inc/class-popup-item.php:717
357
+ msgid "Not in a specific country"
358
+ msgstr "Not in a specific country"
359
+
360
+ #: inc/class-popup-item.php:718
361
+ msgid "Site is not a Pro-site"
362
+ msgstr "Site is not a Pro-site"
363
+
364
+ #: inc/class-popup-item.php:719
365
+ msgid "Visit via a search engine"
366
+ msgstr "Visit via a search engine"
367
+
368
+ #: inc/class-popup-item.php:720 inc/rules/class-popup-rule-user.php:61
369
+ msgid "Visitor has never commented"
370
+ msgstr "Visitor has never commented"
371
+
372
+ #: inc/class-popup-item.php:721
373
+ msgid "Visit not via an Internal link"
374
+ msgstr "Visit not via an Internal link"
375
+
376
+ #: inc/class-popup-item.php:722
377
+ msgid "Visit via specific referer"
378
+ msgstr "Visit via specific referer"
379
+
380
+ #: inc/class-popup-item.php:723
381
+ msgid "Popover shown less than x times"
382
+ msgstr "Popover shown less than x times"
383
+
384
+ #: inc/class-popup-item.php:738
385
+ msgid "Inactive"
386
+ msgstr "Inactive"
387
+
388
+ #: inc/class-popup-item.php:739
389
+ msgid "Trashed"
390
+ msgstr "Trashed"
391
+
392
+ #: inc/class-popup-posttype.php:75 inc/class-popup-posttype.php:79
393
+ msgid "PopUps"
394
+ msgstr "PopUps"
395
+
396
+ #: inc/class-popup-posttype.php:78
397
+ msgid "Parent Item:"
398
+ msgstr "Parent Item:"
399
+
400
+ #: inc/class-popup-posttype.php:80
401
+ msgid "View Item"
402
+ msgstr "View Item"
403
+
404
+ #: inc/class-popup-posttype.php:81
405
+ msgid "Add New PopUp"
406
+ msgstr "Add New PopUp"
407
+
408
+ #: inc/class-popup-posttype.php:83
409
+ msgid "Edit PopUp"
410
+ msgstr "Edit PopUp"
411
+
412
+ #: inc/class-popup-posttype.php:84
413
+ msgid "Update PopUp"
414
+ msgstr "Update PopUp"
415
+
416
+ #: inc/class-popup-posttype.php:85
417
+ msgid "Search PopUp"
418
+ msgstr "Search PopUp"
419
+
420
+ #: inc/class-popup-posttype.php:86
421
+ msgid "Not found"
422
+ msgstr "Not found"
423
+
424
+ #: inc/class-popup-posttype.php:87
425
+ msgid "No PopUp found in Trash"
426
+ msgstr "No PopUp found in Trash"
427
+
428
+ #: inc/class-popup-posttype.php:92
429
+ msgid "Global PopUp"
430
+ msgstr "Global PopUp"
431
+
432
+ #: inc/class-popup-posttype.php:98
433
+ msgid "Display PopUp messages on your website!"
434
+ msgstr "Display PopUp messages on your website!"
435
+
436
+ #: inc/rules/class-popup-rule-advurl.php:31
437
+ msgid "On approximate URL"
438
+ msgstr "On approximate URL"
439
+
440
+ #: inc/rules/class-popup-rule-advurl.php:32
441
+ #: inc/rules/class-popup-rule-url.php:31
442
+ msgid "Shows the PopUp if the user is on a certain URL."
443
+ msgstr "Shows the PopUp if the user is on a certain URL."
444
+
445
+ #: inc/rules/class-popup-rule-advurl.php:40
446
+ msgid "Not on approximate URL"
447
+ msgstr "Not on approximate URL"
448
+
449
+ #: inc/rules/class-popup-rule-advurl.php:41
450
+ #: inc/rules/class-popup-rule-url.php:40
451
+ msgid "Shows the PopUp if the user is not on a certain URL."
452
+ msgstr "Shows the PopUp if the user is not on a certain URL."
453
+
454
+ #: inc/rules/class-popup-rule-advurl.php:84
455
+ #: inc/rules/class-popup-rule-advurl.php:139
456
+ msgid "URL regex (one per line):"
457
+ msgstr "URL regex (one per line):"
458
+
459
+ #: inc/rules/class-popup-rule-browser.php:30
460
+ msgid "Only on mobile devices"
461
+ msgstr "Only on mobile devices"
462
+
463
+ #: inc/rules/class-popup-rule-browser.php:31
464
+ msgid ""
465
+ "Shows the PopUp to visitors that are using a mobile device (Phone or Tablet)."
466
+ msgstr ""
467
+ "Shows the PopUp to visitors that are using a mobile device (Phone or Tablet)."
468
+
469
+ #: inc/rules/class-popup-rule-browser.php:39
470
+ msgid "Not on mobile devices"
471
+ msgstr "Not on mobile devices"
472
+
473
+ #: inc/rules/class-popup-rule-browser.php:40
474
+ msgid ""
475
+ "Shows the PopUp to visitors that are using a normal computer or laptop (i.e. "
476
+ "not a Phone or Tablet)."
477
+ msgstr ""
478
+ "Shows the PopUp to visitors that are using a normal computer or laptop (i.e. "
479
+ "not a Phone or Tablet)."
480
+
481
+ #: inc/rules/class-popup-rule-category.php:33
482
+ msgid "On post category"
483
+ msgstr "On post category"
484
+
485
+ #: inc/rules/class-popup-rule-category.php:34
486
+ msgid "Shows the PopUp on pages that match any of the specified categories."
487
+ msgstr "Shows the PopUp on pages that match any of the specified categories."
488
+
489
+ #: inc/rules/class-popup-rule-category.php:42
490
+ msgid "Not on post category"
491
+ msgstr "Not on post category"
492
+
493
+ #: inc/rules/class-popup-rule-category.php:43
494
+ msgid ""
495
+ "Shows the PopUp on pages that do not match any of the specified categories."
496
+ msgstr ""
497
+ "Shows the PopUp on pages that do not match any of the specified categories."
498
+
499
+ #: inc/rules/class-popup-rule-category.php:64
500
+ #: inc/rules/class-popup-rule-posttype.php:63
501
+ msgid "Singular"
502
+ msgstr "Singular"
503
+
504
+ #: inc/rules/class-popup-rule-category.php:65
505
+ #: inc/rules/class-popup-rule-posttype.php:64
506
+ msgid "Archive"
507
+ msgstr "Archive"
508
+
509
+ #: inc/rules/class-popup-rule-category.php:120
510
+ msgid "Show on these post categories:"
511
+ msgstr "Show on these post categories:"
512
+
513
+ #: inc/rules/class-popup-rule-category.php:121
514
+ msgid "Show on these category type URLs:"
515
+ msgstr "Show on these category type URLs:"
516
+
517
+ #: inc/rules/class-popup-rule-category.php:168
518
+ msgid "Hide on these post categories:"
519
+ msgstr "Hide on these post categories:"
520
+
521
+ #: inc/rules/class-popup-rule-category.php:169
522
+ msgid "Hide on these category type URLs:"
523
+ msgstr "Hide on these category type URLs:"
524
+
525
+ #: inc/rules/class-popup-rule-events.php:81
526
+ msgid "Appear when the mouse leaves the browser window"
527
+ msgstr "Appear when the mouse leaves the browser window"
528
+
529
+ #: inc/rules/class-popup-rule-events.php:143
530
+ msgid "Appear when user clicks on a CSS selector"
531
+ msgstr "Appear when user clicks on a CSS selector"
532
+
533
+ #: inc/rules/class-popup-rule-events.php:150 views/meta-behavior.php:91
534
+ msgid ".class or #id"
535
+ msgstr ".class or #id"
536
+
537
+ #: inc/rules/class-popup-rule-events.php:157
538
+ msgid "Repeated"
539
+ msgstr "Repeated"
540
+
541
+ #: inc/rules/class-popup-rule-geo.php:31
542
+ msgid "In a specific Country"
543
+ msgstr "In a specific Country"
544
+
545
+ #: inc/rules/class-popup-rule-geo.php:32
546
+ msgid "Shows the PopUp if the user is in a certain country."
547
+ msgstr "Shows the PopUp if the user is in a certain country."
548
+
549
+ #: inc/rules/class-popup-rule-geo.php:40
550
+ msgid "Not in a specific Country"
551
+ msgstr "Not in a specific Country"
552
+
553
+ #: inc/rules/class-popup-rule-geo.php:41
554
+ msgid "Shows the PopUp if the user is not in a certain country."
555
+ msgstr "Shows the PopUp if the user is not in a certain country."
556
+
557
+ #: inc/rules/class-popup-rule-geo.php:84
558
+ msgid "Included countries:"
559
+ msgstr "Included countries:"
560
+
561
+ #: inc/rules/class-popup-rule-geo.php:89
562
+ #: inc/rules/class-popup-rule-geo.php:153
563
+ msgid "Click here to select a country"
564
+ msgstr "Click here to select a country"
565
+
566
+ #: inc/rules/class-popup-rule-geo.php:148
567
+ msgid "Excluded countries:"
568
+ msgstr "Excluded countries:"
569
+
570
+ #: inc/rules/class-popup-rule-geo.php:303
571
+ msgid "Australia"
572
+ msgstr "Australia"
573
+
574
+ #: inc/rules/class-popup-rule-geo.php:304
575
+ msgid "Afghanistan"
576
+ msgstr "Afghanistan"
577
+
578
+ #: inc/rules/class-popup-rule-geo.php:305
579
+ msgid "Albania"
580
+ msgstr "Albania"
581
+
582
+ #: inc/rules/class-popup-rule-geo.php:306
583
+ msgid "Algeria"
584
+ msgstr "Algeria"
585
+
586
+ #: inc/rules/class-popup-rule-geo.php:307
587
+ msgid "American Samoa"
588
+ msgstr "American Samoa"
589
+
590
+ #: inc/rules/class-popup-rule-geo.php:308
591
+ msgid "Andorra"
592
+ msgstr "Andorra"
593
+
594
+ #: inc/rules/class-popup-rule-geo.php:309
595
+ msgid "Angola"
596
+ msgstr "Angola"
597
+
598
+ #: inc/rules/class-popup-rule-geo.php:310
599
+ msgid "Anguilla"
600
+ msgstr "Anguilla"
601
+
602
+ #: inc/rules/class-popup-rule-geo.php:311
603
+ msgid "Antarctica"
604
+ msgstr "Antarctica"
605
+
606
+ #: inc/rules/class-popup-rule-geo.php:312
607
+ msgid "Antigua & Barbuda"
608
+ msgstr "Antigua & Barbuda"
609
+
610
+ #: inc/rules/class-popup-rule-geo.php:313
611
+ msgid "Argentina"
612
+ msgstr "Argentina"
613
+
614
+ #: inc/rules/class-popup-rule-geo.php:314
615
+ msgid "Armenia"
616
+ msgstr "Armenia"
617
+
618
+ #: inc/rules/class-popup-rule-geo.php:315
619
+ msgid "Aruba"
620
+ msgstr "Aruba"
621
+
622
+ #: inc/rules/class-popup-rule-geo.php:316
623
+ msgid "Austria"
624
+ msgstr "Austria"
625
+
626
+ #: inc/rules/class-popup-rule-geo.php:317
627
+ msgid "Azerbaijan"
628
+ msgstr "Azerbaijan"
629
+
630
+ #: inc/rules/class-popup-rule-geo.php:318
631
+ msgid "Bahamas"
632
+ msgstr "Bahamas"
633
+
634
+ #: inc/rules/class-popup-rule-geo.php:319
635
+ msgid "Bahrain"
636
+ msgstr "Bahrain"
637
+
638
+ #: inc/rules/class-popup-rule-geo.php:320
639
+ msgid "Bangladesh"
640
+ msgstr "Bangladesh"
641
+
642
+ #: inc/rules/class-popup-rule-geo.php:321
643
+ msgid "Barbados"
644
+ msgstr "Barbados"
645
+
646
+ #: inc/rules/class-popup-rule-geo.php:322
647
+ msgid "Belarus"
648
+ msgstr "Belarus"
649
+
650
+ #: inc/rules/class-popup-rule-geo.php:323
651
+ msgid "Belgium"
652
+ msgstr "Belgium"
653
+
654
+ #: inc/rules/class-popup-rule-geo.php:324
655
+ msgid "Belize"
656
+ msgstr "Belize"
657
+
658
+ #: inc/rules/class-popup-rule-geo.php:325
659
+ msgid "Benin"
660
+ msgstr "Benin"
661
+
662
+ #: inc/rules/class-popup-rule-geo.php:326
663
+ msgid "Bermuda"
664
+ msgstr "Bermuda"
665
+
666
+ #: inc/rules/class-popup-rule-geo.php:327
667
+ msgid "Bhutan"
668
+ msgstr "Bhutan"
669
+
670
+ #: inc/rules/class-popup-rule-geo.php:328
671
+ msgid "Bolivia"
672
+ msgstr "Bolivia"
673
+
674
+ #: inc/rules/class-popup-rule-geo.php:329
675
+ msgid "Bosnia/Hercegovina"
676
+ msgstr "Bosnia/Hercegovina"
677
+
678
+ #: inc/rules/class-popup-rule-geo.php:330
679
+ msgid "Botswana"
680
+ msgstr "Botswana"
681
+
682
+ #: inc/rules/class-popup-rule-geo.php:331
683
+ msgid "Bouvet Island"
684
+ msgstr "Bouvet Island"
685
+
686
+ #: inc/rules/class-popup-rule-geo.php:332
687
+ msgid "Brazil"
688
+ msgstr "Brazil"
689
+
690
+ #: inc/rules/class-popup-rule-geo.php:333
691
+ msgid "British Indian Ocean Territory"
692
+ msgstr "British Indian Ocean Territory"
693
+
694
+ #: inc/rules/class-popup-rule-geo.php:334
695
+ msgid "Brunei Darussalam"
696
+ msgstr "Brunei Darussalam"
697
+
698
+ #: inc/rules/class-popup-rule-geo.php:335
699
+ msgid "Bulgaria"
700
+ msgstr "Bulgaria"
701
+
702
+ #: inc/rules/class-popup-rule-geo.php:336
703
+ msgid "Burkina Faso"
704
+ msgstr "Burkina Faso"
705
+
706
+ #: inc/rules/class-popup-rule-geo.php:337
707
+ msgid "Burundi"
708
+ msgstr "Burundi"
709
+
710
+ #: inc/rules/class-popup-rule-geo.php:338
711
+ msgid "Cambodia"
712
+ msgstr "Cambodia"
713
+
714
+ #: inc/rules/class-popup-rule-geo.php:339
715
+ msgid "Cameroon"
716
+ msgstr "Cameroon"
717
+
718
+ #: inc/rules/class-popup-rule-geo.php:340
719
+ msgid "Canada"
720
+ msgstr "Canada"
721
+
722
+ #: inc/rules/class-popup-rule-geo.php:341
723
+ msgid "Cape Verde"
724
+ msgstr "Cape Verde"
725
+
726
+ #: inc/rules/class-popup-rule-geo.php:342
727
+ msgid "Cayman Is"
728
+ msgstr "Cayman Is"
729
+
730
+ #: inc/rules/class-popup-rule-geo.php:343
731
+ msgid "Central African Republic"
732
+ msgstr "Central African Republic"
733
+
734
+ #: inc/rules/class-popup-rule-geo.php:344
735
+ msgid "Chad"
736
+ msgstr "Chad"
737
+
738
+ #: inc/rules/class-popup-rule-geo.php:345
739
+ msgid "Chile"
740
+ msgstr "Chile"
741
+
742
+ #: inc/rules/class-popup-rule-geo.php:346
743
+ msgid "China, People's Republic of"
744
+ msgstr "China, People's Republic of"
745
+
746
+ #: inc/rules/class-popup-rule-geo.php:347
747
+ msgid "Christmas Island"
748
+ msgstr "Christmas Island"
749
+
750
+ #: inc/rules/class-popup-rule-geo.php:348
751
+ msgid "Cocos Islands"
752
+ msgstr "Cocos Islands"
753
+
754
+ #: inc/rules/class-popup-rule-geo.php:349
755
+ msgid "Colombia"
756
+ msgstr "Colombia"
757
+
758
+ #: inc/rules/class-popup-rule-geo.php:350
759
+ msgid "Comoros"
760
+ msgstr "Comoros"
761
+
762
+ #: inc/rules/class-popup-rule-geo.php:351
763
+ msgid "Congo"
764
+ msgstr "Congo"
765
+
766
+ #: inc/rules/class-popup-rule-geo.php:352
767
+ msgid "Congo, Democratic Republic"
768
+ msgstr "Congo, Democratic Republic"
769
+
770
+ #: inc/rules/class-popup-rule-geo.php:353
771
+ msgid "Cook Islands"
772
+ msgstr "Cook Islands"
773
+
774
+ #: inc/rules/class-popup-rule-geo.php:354
775
+ msgid "Costa Rica"
776
+ msgstr "Costa Rica"
777
+
778
+ #: inc/rules/class-popup-rule-geo.php:355
779
+ msgid "Cote d'Ivoire"
780
+ msgstr "Cote d'Ivoire"
781
+
782
+ #: inc/rules/class-popup-rule-geo.php:356
783
+ msgid "Croatia"
784
+ msgstr "Croatia"
785
+
786
+ #: inc/rules/class-popup-rule-geo.php:357
787
+ msgid "Cuba"
788
+ msgstr "Cuba"
789
+
790
+ #: inc/rules/class-popup-rule-geo.php:358
791
+ msgid "Cyprus"
792
+ msgstr "Cyprus"
793
+
794
+ #: inc/rules/class-popup-rule-geo.php:359
795
+ msgid "Czech Republic"
796
+ msgstr "Czech Republic"
797
+
798
+ #: inc/rules/class-popup-rule-geo.php:360
799
+ msgid "Denmark"
800
+ msgstr "Denmark"
801
+
802
+ #: inc/rules/class-popup-rule-geo.php:361
803
+ msgid "Djibouti"
804
+ msgstr "Djibouti"
805
+
806
+ #: inc/rules/class-popup-rule-geo.php:362
807
+ msgid "Dominica"
808
+ msgstr "Dominica"
809
+
810
+ #: inc/rules/class-popup-rule-geo.php:363
811
+ msgid "Dominican Republic"
812
+ msgstr "Dominican Republic"
813
+
814
+ #: inc/rules/class-popup-rule-geo.php:364
815
+ msgid "East Timor"
816
+ msgstr "East Timor"
817
+
818
+ #: inc/rules/class-popup-rule-geo.php:365
819
+ msgid "Ecuador"
820
+ msgstr "Ecuador"
821
+
822
+ #: inc/rules/class-popup-rule-geo.php:366
823
+ msgid "Egypt"
824
+ msgstr "Egypt"
825
+
826
+ #: inc/rules/class-popup-rule-geo.php:367
827
+ msgid "El Salvador"
828
+ msgstr "El Salvador"
829
+
830
+ #: inc/rules/class-popup-rule-geo.php:368
831
+ msgid "Equatorial Guinea"
832
+ msgstr "Equatorial Guinea"
833
+
834
+ #: inc/rules/class-popup-rule-geo.php:369
835
+ msgid "Eritrea"
836
+ msgstr "Eritrea"
837
+
838
+ #: inc/rules/class-popup-rule-geo.php:370
839
+ msgid "Estonia"
840
+ msgstr "Estonia"
841
+
842
+ #: inc/rules/class-popup-rule-geo.php:371
843
+ msgid "Ethiopia"
844
+ msgstr "Ethiopia"
845
+
846
+ #: inc/rules/class-popup-rule-geo.php:372
847
+ msgid "Falkland Islands"
848
+ msgstr "Falkland Islands"
849
+
850
+ #: inc/rules/class-popup-rule-geo.php:373
851
+ msgid "Faroe Islands"
852
+ msgstr "Faroe Islands"
853
+
854
+ #: inc/rules/class-popup-rule-geo.php:374
855
+ msgid "Fiji"
856
+ msgstr "Fiji"
857
+
858
+ #: inc/rules/class-popup-rule-geo.php:375
859
+ msgid "Finland"
860
+ msgstr "Finland"
861
+
862
+ #: inc/rules/class-popup-rule-geo.php:376
863
+ msgid "France"
864
+ msgstr "France"
865
+
866
+ #: inc/rules/class-popup-rule-geo.php:377
867
+ msgid "France, Metropolitan"
868
+ msgstr "France, Metropolitan"
869
+
870
+ #: inc/rules/class-popup-rule-geo.php:378
871
+ msgid "French Guiana"
872
+ msgstr "French Guiana"
873
+
874
+ #: inc/rules/class-popup-rule-geo.php:379
875
+ msgid "French Polynesia"
876
+ msgstr "French Polynesia"
877
+
878
+ #: inc/rules/class-popup-rule-geo.php:380
879
+ msgid "French South Territories"
880
+ msgstr "French South Territories"
881
+
882
+ #: inc/rules/class-popup-rule-geo.php:381
883
+ msgid "Gabon"
884
+ msgstr "Gabon"
885
+
886
+ #: inc/rules/class-popup-rule-geo.php:382
887
+ msgid "Gambia"
888
+ msgstr "Gambia"
889
+
890
+ #: inc/rules/class-popup-rule-geo.php:383
891
+ msgid "Georgia"
892
+ msgstr "Georgia"
893
+
894
+ #: inc/rules/class-popup-rule-geo.php:384
895
+ msgid "Germany"
896
+ msgstr "Germany"
897
+
898
+ #: inc/rules/class-popup-rule-geo.php:385
899
+ msgid "Ghana"
900
+ msgstr "Ghana"
901
+
902
+ #: inc/rules/class-popup-rule-geo.php:386
903
+ msgid "Gibraltar"
904
+ msgstr "Gibraltar"
905
+
906
+ #: inc/rules/class-popup-rule-geo.php:387
907
+ msgid "Greece"
908
+ msgstr "Greece"
909
+
910
+ #: inc/rules/class-popup-rule-geo.php:388
911
+ msgid "Greenland"
912
+ msgstr "Greenland"
913
+
914
+ #: inc/rules/class-popup-rule-geo.php:389
915
+ msgid "Grenada"
916
+ msgstr "Grenada"
917
+
918
+ #: inc/rules/class-popup-rule-geo.php:390
919
+ msgid "Guadeloupe"
920
+ msgstr "Guadeloupe"
921
+
922
+ #: inc/rules/class-popup-rule-geo.php:391
923
+ msgid "Guam"
924
+ msgstr "Guam"
925
+
926
+ #: inc/rules/class-popup-rule-geo.php:392
927
+ msgid "Guatemala"
928
+ msgstr "Guatemala"
929
+
930
+ #: inc/rules/class-popup-rule-geo.php:393
931
+ msgid "Guinea"
932
+ msgstr "Guinea"
933
+
934
+ #: inc/rules/class-popup-rule-geo.php:394
935
+ msgid "Guinea-Bissau"
936
+ msgstr "Guinea-Bissau"
937
+
938
+ #: inc/rules/class-popup-rule-geo.php:395
939
+ msgid "Guyana"
940
+ msgstr "Guyana"
941
+
942
+ #: inc/rules/class-popup-rule-geo.php:396
943
+ msgid "Haiti"
944
+ msgstr "Haiti"
945
+
946
+ #: inc/rules/class-popup-rule-geo.php:397
947
+ msgid "Heard Island And Mcdonald Island"
948
+ msgstr "Heard Island And Mcdonald Island"
949
+
950
+ #: inc/rules/class-popup-rule-geo.php:398
951
+ msgid "Honduras"
952
+ msgstr "Honduras"
953
+
954
+ #: inc/rules/class-popup-rule-geo.php:399
955
+ msgid "Hong Kong"
956
+ msgstr "Hong Kong"
957
+
958
+ #: inc/rules/class-popup-rule-geo.php:400
959
+ msgid "Hungary"
960
+ msgstr "Hungary"
961
+
962
+ #: inc/rules/class-popup-rule-geo.php:401
963
+ msgid "Iceland"
964
+ msgstr "Iceland"
965
+
966
+ #: inc/rules/class-popup-rule-geo.php:402
967
+ msgid "India"
968
+ msgstr "India"
969
+
970
+ #: inc/rules/class-popup-rule-geo.php:403
971
+ msgid "Indonesia"
972
+ msgstr "Indonesia"
973
+
974
+ #: inc/rules/class-popup-rule-geo.php:404
975
+ msgid "Iran"
976
+ msgstr "Iran"
977
+
978
+ #: inc/rules/class-popup-rule-geo.php:405
979
+ msgid "Iraq"
980
+ msgstr "Iraq"
981
+
982
+ #: inc/rules/class-popup-rule-geo.php:406
983
+ msgid "Ireland"
984
+ msgstr "Ireland"
985
+
986
+ #: inc/rules/class-popup-rule-geo.php:407
987
+ msgid "Israel"
988
+ msgstr "Israel"
989
+
990
+ #: inc/rules/class-popup-rule-geo.php:408
991
+ msgid "Italy"
992
+ msgstr "Italy"
993
+
994
+ #: inc/rules/class-popup-rule-geo.php:409
995
+ msgid "Jamaica"
996
+ msgstr "Jamaica"
997
+
998
+ #: inc/rules/class-popup-rule-geo.php:410
999
+ msgid "Japan"
1000
+ msgstr "Japan"
1001
+
1002
+ #: inc/rules/class-popup-rule-geo.php:411
1003
+ msgid "Johnston Island"
1004
+ msgstr "Johnston Island"
1005
+
1006
+ #: inc/rules/class-popup-rule-geo.php:412
1007
+ msgid "Jordan"
1008
+ msgstr "Jordan"
1009
+
1010
+ #: inc/rules/class-popup-rule-geo.php:413
1011
+ msgid "Kazakhstan"
1012
+ msgstr "Kazakhstan"
1013
+
1014
+ #: inc/rules/class-popup-rule-geo.php:414
1015
+ msgid "Kenya"
1016
+ msgstr "Kenya"
1017
+
1018
+ #: inc/rules/class-popup-rule-geo.php:415
1019
+ msgid "Kiribati"
1020
+ msgstr "Kiribati"
1021
+
1022
+ #: inc/rules/class-popup-rule-geo.php:416
1023
+ msgid "Korea, Democratic Peoples Republic"
1024
+ msgstr "Korea, Democratic Peoples Republic"
1025
+
1026
+ #: inc/rules/class-popup-rule-geo.php:417
1027
+ msgid "Korea, Republic of"
1028
+ msgstr "Korea, Republic of"
1029
+
1030
+ #: inc/rules/class-popup-rule-geo.php:418
1031
+ msgid "Kuwait"
1032
+ msgstr "Kuwait"
1033
+
1034
+ #: inc/rules/class-popup-rule-geo.php:419
1035
+ msgid "Kyrgyzstan"
1036
+ msgstr "Kyrgyzstan"
1037
+
1038
+ #: inc/rules/class-popup-rule-geo.php:420
1039
+ msgid "Lao People's Democratic Republic"
1040
+ msgstr "Lao People's Democratic Republic"
1041
+
1042
+ #: inc/rules/class-popup-rule-geo.php:421
1043
+ msgid "Latvia"
1044
+ msgstr "Latvia"
1045
+
1046
+ #: inc/rules/class-popup-rule-geo.php:422
1047
+ msgid "Lebanon"
1048
+ msgstr "Lebanon"
1049
+
1050
+ #: inc/rules/class-popup-rule-geo.php:423
1051
+ msgid "Lesotho"
1052
+ msgstr "Lesotho"
1053
+
1054
+ #: inc/rules/class-popup-rule-geo.php:424
1055
+ msgid "Liberia"
1056
+ msgstr "Liberia"
1057
+
1058
+ #: inc/rules/class-popup-rule-geo.php:425
1059
+ msgid "Libyan Arab Jamahiriya"
1060
+ msgstr "Libyan Arab Jamahiriya"
1061
+
1062
+ #: inc/rules/class-popup-rule-geo.php:426
1063
+ msgid "Liechtenstein"
1064
+ msgstr "Liechtenstein"
1065
+
1066
+ #: inc/rules/class-popup-rule-geo.php:427
1067
+ msgid "Lithuania"
1068
+ msgstr "Lithuania"
1069
+
1070
+ #: inc/rules/class-popup-rule-geo.php:428
1071
+ msgid "Luxembourg"
1072
+ msgstr "Luxembourg"
1073
+
1074
+ #: inc/rules/class-popup-rule-geo.php:429
1075
+ msgid "Macau"
1076
+ msgstr "Macau"
1077
+
1078
+ #: inc/rules/class-popup-rule-geo.php:430
1079
+ msgid "Macedonia"
1080
+ msgstr "Macedonia"
1081
+
1082
+ #: inc/rules/class-popup-rule-geo.php:431
1083
+ msgid "Madagascar"
1084
+ msgstr "Madagascar"
1085
+
1086
+ #: inc/rules/class-popup-rule-geo.php:432
1087
+ msgid "Malawi"
1088
+ msgstr "Malawi"
1089
+
1090
+ #: inc/rules/class-popup-rule-geo.php:433
1091
+ msgid "Malaysia"
1092
+ msgstr "Malaysia"
1093
+
1094
+ #: inc/rules/class-popup-rule-geo.php:434
1095
+ msgid "Maldives"
1096
+ msgstr "Maldives"
1097
+
1098
+ #: inc/rules/class-popup-rule-geo.php:435
1099
+ msgid "Mali"
1100
+ msgstr "Mali"
1101
+
1102
+ #: inc/rules/class-popup-rule-geo.php:436
1103
+ msgid "Malta"
1104
+ msgstr "Malta"
1105
+
1106
+ #: inc/rules/class-popup-rule-geo.php:437
1107
+ msgid "Marshall Islands"
1108
+ msgstr "Marshall Islands"
1109
+
1110
+ #: inc/rules/class-popup-rule-geo.php:438
1111
+ msgid "Martinique"
1112
+ msgstr "Martinique"
1113
+
1114
+ #: inc/rules/class-popup-rule-geo.php:439
1115
+ msgid "Mauritania"
1116
+ msgstr "Mauritania"
1117
+
1118
+ #: inc/rules/class-popup-rule-geo.php:440
1119
+ msgid "Mauritius"
1120
+ msgstr "Mauritius"
1121
+
1122
+ #: inc/rules/class-popup-rule-geo.php:441
1123
+ msgid "Mayotte"
1124
+ msgstr "Mayotte"
1125
+
1126
+ #: inc/rules/class-popup-rule-geo.php:442
1127
+ msgid "Mexico"
1128
+ msgstr "Mexico"
1129
+
1130
+ #: inc/rules/class-popup-rule-geo.php:443
1131
+ msgid "Micronesia"
1132
+ msgstr "Micronesia"
1133
+
1134
+ #: inc/rules/class-popup-rule-geo.php:444
1135
+ msgid "Moldavia"
1136
+ msgstr "Moldavia"
1137
+
1138
+ #: inc/rules/class-popup-rule-geo.php:445
1139
+ msgid "Monaco"
1140
+ msgstr "Monaco"
1141
+
1142
+ #: inc/rules/class-popup-rule-geo.php:446
1143
+ msgid "Mongolia"
1144
+ msgstr "Mongolia"
1145
+
1146
+ #: inc/rules/class-popup-rule-geo.php:447
1147
+ msgid "Montserrat"
1148
+ msgstr "Montserrat"
1149
+
1150
+ #: inc/rules/class-popup-rule-geo.php:448
1151
+ msgid "Morocco"
1152
+ msgstr "Morocco"
1153
+
1154
+ #: inc/rules/class-popup-rule-geo.php:449
1155
+ msgid "Mozambique"
1156
+ msgstr "Mozambique"
1157
+
1158
+ #: inc/rules/class-popup-rule-geo.php:450
1159
+ msgid "Union Of Myanmar"
1160
+ msgstr "Union Of Myanmar"
1161
+
1162
+ #: inc/rules/class-popup-rule-geo.php:451
1163
+ msgid "Namibia"
1164
+ msgstr "Namibia"
1165
+
1166
+ #: inc/rules/class-popup-rule-geo.php:452
1167
+ msgid "Nauru Island"
1168
+ msgstr "Nauru Island"
1169
+
1170
+ #: inc/rules/class-popup-rule-geo.php:453
1171
+ msgid "Nepal"
1172
+ msgstr "Nepal"
1173
+
1174
+ #: inc/rules/class-popup-rule-geo.php:454
1175
+ msgid "Netherlands"
1176
+ msgstr "Netherlands"
1177
+
1178
+ #: inc/rules/class-popup-rule-geo.php:455
1179
+ msgid "Netherlands Antilles"
1180
+ msgstr "Netherlands Antilles"
1181
+
1182
+ #: inc/rules/class-popup-rule-geo.php:456
1183
+ msgid "New Caledonia"
1184
+ msgstr "New Caledonia"
1185
+
1186
+ #: inc/rules/class-popup-rule-geo.php:457
1187
+ msgid "New Zealand"
1188
+ msgstr "New Zealand"
1189
+
1190
+ #: inc/rules/class-popup-rule-geo.php:458
1191
+ msgid "Nicaragua"
1192
+ msgstr "Nicaragua"
1193
+
1194
+ #: inc/rules/class-popup-rule-geo.php:459
1195
+ msgid "Niger"
1196
+ msgstr "Niger"
1197
+
1198
+ #: inc/rules/class-popup-rule-geo.php:460
1199
+ msgid "Nigeria"
1200
+ msgstr "Nigeria"
1201
+
1202
+ #: inc/rules/class-popup-rule-geo.php:461
1203
+ msgid "Niue"
1204
+ msgstr "Niue"
1205
+
1206
+ #: inc/rules/class-popup-rule-geo.php:462
1207
+ msgid "Norfolk Island"
1208
+ msgstr "Norfolk Island"
1209
+
1210
+ #: inc/rules/class-popup-rule-geo.php:463
1211
+ msgid "Mariana Islands, Northern"
1212
+ msgstr "Mariana Islands, Northern"
1213
+
1214
+ #: inc/rules/class-popup-rule-geo.php:464
1215
+ msgid "Norway"
1216
+ msgstr "Norway"
1217
+
1218
+ #: inc/rules/class-popup-rule-geo.php:465
1219
+ msgid "Oman"
1220
+ msgstr "Oman"
1221
+
1222
+ #: inc/rules/class-popup-rule-geo.php:466
1223
+ msgid "Pakistan"
1224
+ msgstr "Pakistan"
1225
+
1226
+ #: inc/rules/class-popup-rule-geo.php:467
1227
+ msgid "Palau Islands"
1228
+ msgstr "Palau Islands"
1229
+
1230
+ #: inc/rules/class-popup-rule-geo.php:468
1231
+ msgid "Palestine"
1232
+ msgstr "Palestine"
1233
+
1234
+ #: inc/rules/class-popup-rule-geo.php:469
1235
+ msgid "Panama"
1236
+ msgstr "Panama"
1237
+
1238
+ #: inc/rules/class-popup-rule-geo.php:470
1239
+ msgid "Papua New Guinea"
1240
+ msgstr "Papua New Guinea"
1241
+
1242
+ #: inc/rules/class-popup-rule-geo.php:471
1243
+ msgid "Paraguay"
1244
+ msgstr "Paraguay"
1245
+
1246
+ #: inc/rules/class-popup-rule-geo.php:472
1247
+ msgid "Peru"
1248
+ msgstr "Peru"
1249
+
1250
+ #: inc/rules/class-popup-rule-geo.php:473
1251
+ msgid "Philippines"
1252
+ msgstr "Philippines"
1253
+
1254
+ #: inc/rules/class-popup-rule-geo.php:474
1255
+ msgid "Pitcairn"
1256
+ msgstr "Pitcairn"
1257
+
1258
+ #: inc/rules/class-popup-rule-geo.php:475
1259
+ msgid "Poland"
1260
+ msgstr "Poland"
1261
+
1262
+ #: inc/rules/class-popup-rule-geo.php:476
1263
+ msgid "Portugal"
1264
+ msgstr "Portugal"
1265
+
1266
+ #: inc/rules/class-popup-rule-geo.php:477
1267
+ msgid "Puerto Rico"
1268
+ msgstr "Puerto Rico"
1269
+
1270
+ #: inc/rules/class-popup-rule-geo.php:478
1271
+ msgid "Qatar"
1272
+ msgstr "Qatar"
1273
+
1274
+ #: inc/rules/class-popup-rule-geo.php:479
1275
+ msgid "Reunion Island"
1276
+ msgstr "Reunion Island"
1277
+
1278
+ #: inc/rules/class-popup-rule-geo.php:480
1279
+ msgid "Romania"
1280
+ msgstr "Romania"
1281
+
1282
+ #: inc/rules/class-popup-rule-geo.php:481
1283
+ msgid "Russian Federation"
1284
+ msgstr "Russian Federation"
1285
+
1286
+ #: inc/rules/class-popup-rule-geo.php:482
1287
+ msgid "Rwanda"
1288
+ msgstr "Rwanda"
1289
+
1290
+ #: inc/rules/class-popup-rule-geo.php:483
1291
+ msgid "Samoa"
1292
+ msgstr "Samoa"
1293
+
1294
+ #: inc/rules/class-popup-rule-geo.php:484
1295
+ msgid "St Helena"
1296
+ msgstr "St Helena"
1297
+
1298
+ #: inc/rules/class-popup-rule-geo.php:485
1299
+ msgid "St Kitts & Nevis"
1300
+ msgstr "St Kitts & Nevis"
1301
+
1302
+ #: inc/rules/class-popup-rule-geo.php:486
1303
+ msgid "St Lucia"
1304
+ msgstr "St Lucia"
1305
+
1306
+ #: inc/rules/class-popup-rule-geo.php:487
1307
+ msgid "St Pierre & Miquelon"
1308
+ msgstr "St Pierre & Miquelon"
1309
+
1310
+ #: inc/rules/class-popup-rule-geo.php:488
1311
+ msgid "St Vincent"
1312
+ msgstr "St Vincent"
1313
+
1314
+ #: inc/rules/class-popup-rule-geo.php:489
1315
+ msgid "San Marino"
1316
+ msgstr "San Marino"
1317
+
1318
+ #: inc/rules/class-popup-rule-geo.php:490
1319
+ msgid "Sao Tome & Principe"
1320
+ msgstr "Sao Tome & Principe"
1321
+
1322
+ #: inc/rules/class-popup-rule-geo.php:491
1323
+ msgid "Saudi Arabia"
1324
+ msgstr "Saudi Arabia"
1325
+
1326
+ #: inc/rules/class-popup-rule-geo.php:492
1327
+ msgid "Senegal"
1328
+ msgstr "Senegal"
1329
+
1330
+ #: inc/rules/class-popup-rule-geo.php:493
1331
+ msgid "Seychelles"
1332
+ msgstr "Seychelles"
1333
+
1334
+ #: inc/rules/class-popup-rule-geo.php:494
1335
+ msgid "Sierra Leone"
1336
+ msgstr "Sierra Leone"
1337
+
1338
+ #: inc/rules/class-popup-rule-geo.php:495
1339
+ msgid "Singapore"
1340
+ msgstr "Singapore"
1341
+
1342
+ #: inc/rules/class-popup-rule-geo.php:496
1343
+ msgid "Slovakia"
1344
+ msgstr "Slovakia"
1345
+
1346
+ #: inc/rules/class-popup-rule-geo.php:497
1347
+ msgid "Slovenia"
1348
+ msgstr "Slovenia"
1349
+
1350
+ #: inc/rules/class-popup-rule-geo.php:498
1351
+ msgid "Solomon Islands"
1352
+ msgstr "Solomon Islands"
1353
+
1354
+ #: inc/rules/class-popup-rule-geo.php:499
1355
+ msgid "Somalia"
1356
+ msgstr "Somalia"
1357
+
1358
+ #: inc/rules/class-popup-rule-geo.php:500
1359
+ msgid "South Africa"
1360
+ msgstr "South Africa"
1361
+
1362
+ #: inc/rules/class-popup-rule-geo.php:501
1363
+ msgid "South Georgia and South Sandwich"
1364
+ msgstr "South Georgia and South Sandwich"
1365
+
1366
+ #: inc/rules/class-popup-rule-geo.php:502
1367
+ msgid "Spain"
1368
+ msgstr "Spain"
1369
+
1370
+ #: inc/rules/class-popup-rule-geo.php:503
1371
+ msgid "Sri Lanka"
1372
+ msgstr "Sri Lanka"
1373
+
1374
+ #: inc/rules/class-popup-rule-geo.php:504
1375
+ msgid "Stateless Persons"
1376
+ msgstr "Stateless Persons"
1377
+
1378
+ #: inc/rules/class-popup-rule-geo.php:505
1379
+ msgid "Sudan"
1380
+ msgstr "Sudan"
1381
+
1382
+ #: inc/rules/class-popup-rule-geo.php:506
1383
+ msgid "Suriname"
1384
+ msgstr "Suriname"
1385
+
1386
+ #: inc/rules/class-popup-rule-geo.php:507
1387
+ msgid "Svalbard and Jan Mayen"
1388
+ msgstr "Svalbard and Jan Mayen"
1389
+
1390
+ #: inc/rules/class-popup-rule-geo.php:508
1391
+ msgid "Swaziland"
1392
+ msgstr "Swaziland"
1393
+
1394
+ #: inc/rules/class-popup-rule-geo.php:509
1395
+ msgid "Sweden"
1396
+ msgstr "Sweden"
1397
+
1398
+ #: inc/rules/class-popup-rule-geo.php:510
1399
+ msgid "Switzerland"
1400
+ msgstr "Switzerland"
1401
+
1402
+ #: inc/rules/class-popup-rule-geo.php:511
1403
+ msgid "Syrian Arab Republic"
1404
+ msgstr "Syrian Arab Republic"
1405
+
1406
+ #: inc/rules/class-popup-rule-geo.php:512
1407
+ msgid "Taiwan, Republic of China"
1408
+ msgstr "Taiwan, Republic of China"
1409
+
1410
+ #: inc/rules/class-popup-rule-geo.php:513
1411
+ msgid "Tajikistan"
1412
+ msgstr "Tajikistan"
1413
+
1414
+ #: inc/rules/class-popup-rule-geo.php:514
1415
+ msgid "Tanzania"
1416
+ msgstr "Tanzania"
1417
+
1418
+ #: inc/rules/class-popup-rule-geo.php:515
1419
+ msgid "Thailand"
1420
+ msgstr "Thailand"
1421
+
1422
+ #: inc/rules/class-popup-rule-geo.php:516
1423
+ msgid "Timor Leste"
1424
+ msgstr "Timor Leste"
1425
+
1426
+ #: inc/rules/class-popup-rule-geo.php:517
1427
+ msgid "Togo"
1428
+ msgstr "Togo"
1429
+
1430
+ #: inc/rules/class-popup-rule-geo.php:518
1431
+ msgid "Tokelau"
1432
+ msgstr "Tokelau"
1433
+
1434
+ #: inc/rules/class-popup-rule-geo.php:519
1435
+ msgid "Tonga"
1436
+ msgstr "Tonga"
1437
+
1438
+ #: inc/rules/class-popup-rule-geo.php:520
1439
+ msgid "Trinidad & Tobago"
1440
+ msgstr "Trinidad & Tobago"
1441
+
1442
+ #: inc/rules/class-popup-rule-geo.php:521
1443
+ msgid "Tunisia"
1444
+ msgstr "Tunisia"
1445
+
1446
+ #: inc/rules/class-popup-rule-geo.php:522
1447
+ msgid "Turkey"
1448
+ msgstr "Turkey"
1449
+
1450
+ #: inc/rules/class-popup-rule-geo.php:523
1451
+ msgid "Turkmenistan"
1452
+ msgstr "Turkmenistan"
1453
+
1454
+ #: inc/rules/class-popup-rule-geo.php:524
1455
+ msgid "Turks And Caicos Islands"
1456
+ msgstr "Turks And Caicos Islands"
1457
+
1458
+ #: inc/rules/class-popup-rule-geo.php:525
1459
+ msgid "Tuvalu"
1460
+ msgstr "Tuvalu"
1461
+
1462
+ #: inc/rules/class-popup-rule-geo.php:526
1463
+ msgid "Uganda"
1464
+ msgstr "Uganda"
1465
+
1466
+ #: inc/rules/class-popup-rule-geo.php:527
1467
+ msgid "Ukraine"
1468
+ msgstr "Ukraine"
1469
+
1470
+ #: inc/rules/class-popup-rule-geo.php:528
1471
+ msgid "United Arab Emirates"
1472
+ msgstr "United Arab Emirates"
1473
+
1474
+ #: inc/rules/class-popup-rule-geo.php:529
1475
+ msgid "United Kingdom"
1476
+ msgstr "United Kingdom"
1477
+
1478
+ #: inc/rules/class-popup-rule-geo.php:530
1479
+ msgid "US Minor Outlying Islands"
1480
+ msgstr "US Minor Outlying Islands"
1481
+
1482
+ #: inc/rules/class-popup-rule-geo.php:531
1483
+ msgid "USA"
1484
+ msgstr "USA"
1485
+
1486
+ #: inc/rules/class-popup-rule-geo.php:532
1487
+ msgid "Upper Volta"
1488
+ msgstr "Upper Volta"
1489
+
1490
+ #: inc/rules/class-popup-rule-geo.php:533
1491
+ msgid "Uruguay"
1492
+ msgstr "Uruguay"
1493
+
1494
+ #: inc/rules/class-popup-rule-geo.php:534
1495
+ msgid "Uzbekistan"
1496
+ msgstr "Uzbekistan"
1497
+
1498
+ #: inc/rules/class-popup-rule-geo.php:535
1499
+ msgid "Vanuatu"
1500
+ msgstr "Vanuatu"
1501
+
1502
+ #: inc/rules/class-popup-rule-geo.php:536
1503
+ msgid "Vatican City State"
1504
+ msgstr "Vatican City State"
1505
+
1506
+ #: inc/rules/class-popup-rule-geo.php:537
1507
+ msgid "Venezuela"
1508
+ msgstr "Venezuela"
1509
+
1510
+ #: inc/rules/class-popup-rule-geo.php:538
1511
+ msgid "Vietnam"
1512
+ msgstr "Vietnam"
1513
+
1514
+ #: inc/rules/class-popup-rule-geo.php:539
1515
+ msgid "Virgin Islands (British)"
1516
+ msgstr "Virgin Islands (British)"
1517
+
1518
+ #: inc/rules/class-popup-rule-geo.php:540
1519
+ msgid "Virgin Islands (US)"
1520
+ msgstr "Virgin Islands (US)"
1521
+
1522
+ #: inc/rules/class-popup-rule-geo.php:541
1523
+ msgid "Wallis And Futuna Islands"
1524
+ msgstr "Wallis And Futuna Islands"
1525
+
1526
+ #: inc/rules/class-popup-rule-geo.php:542
1527
+ msgid "Western Sahara"
1528
+ msgstr "Western Sahara"
1529
+
1530
+ #: inc/rules/class-popup-rule-geo.php:543
1531
+ msgid "Yemen Arab Rep."
1532
+ msgstr "Yemen Arab Rep."
1533
+
1534
+ #: inc/rules/class-popup-rule-geo.php:544
1535
+ msgid "Yemen Democratic"
1536
+ msgstr "Yemen Democratic"
1537
+
1538
+ #: inc/rules/class-popup-rule-geo.php:545
1539
+ msgid "Yugoslavia"
1540
+ msgstr "Yugoslavia"
1541
+
1542
+ #: inc/rules/class-popup-rule-geo.php:546
1543
+ msgid "Zaire"
1544
+ msgstr "Zaire"
1545
+
1546
+ #: inc/rules/class-popup-rule-geo.php:547
1547
+ msgid "Zambia"
1548
+ msgstr "Zambia"
1549
+
1550
+ #: inc/rules/class-popup-rule-geo.php:548
1551
+ msgid "Zimbabwe"
1552
+ msgstr "Zimbabwe"
1553
+
1554
+ #: inc/rules/class-popup-rule-membership.php:32
1555
+ msgid "By Membership Level"
1556
+ msgstr "By Membership Level"
1557
+
1558
+ #: inc/rules/class-popup-rule-membership.php:33
1559
+ msgid "Shows the PopUp if the user has a certain Membership Level."
1560
+ msgstr "Shows the PopUp if the user has a certain Membership Level."
1561
+
1562
+ #: inc/rules/class-popup-rule-membership.php:41
1563
+ msgid "By Membership Subscription"
1564
+ msgstr "By Membership Subscription"
1565
+
1566
+ #: inc/rules/class-popup-rule-membership.php:42
1567
+ msgid "Shows the PopUp if the user does not have a certain Membership Level."
1568
+ msgstr "Shows the PopUp if the user does not have a certain Membership Level."
1569
+
1570
+ #: inc/rules/class-popup-rule-membership.php:105
1571
+ msgid "Show to users that have one of these Membership Levels:"
1572
+ msgstr "Show to users that have one of these Membership Levels:"
1573
+
1574
+ #: inc/rules/class-popup-rule-membership.php:150
1575
+ msgid "Show to users that do not have one of these memberships:"
1576
+ msgstr "Show to users that do not have one of these memberships:"
1577
+
1578
+ #: inc/rules/class-popup-rule-membership.php:249
1579
+ #, php-format
1580
+ msgid ""
1581
+ "This condition requires that the <a href=\"%s\" target=\"_blank\">Membership "
1582
+ "Plugin</a> is installed and activated."
1583
+ msgstr ""
1584
+ "This condition requires that the <a href=\"%s\" target=\"_blank\">Membership "
1585
+ "Plugin</a> is installed and activated."
1586
+
1587
+ #: inc/rules/class-popup-rule-popup.php:30
1588
+ msgid "PopUp shown less than"
1589
+ msgstr "PopUp shown less than"
1590
+
1591
+ #: inc/rules/class-popup-rule-popup.php:31
1592
+ msgid ""
1593
+ "Shows the PopUp if the user has only seen it less than a specific number of "
1594
+ "times."
1595
+ msgstr ""
1596
+ "Shows the PopUp if the user has only seen it less than a specific number of "
1597
+ "times."
1598
+
1599
+ #: inc/rules/class-popup-rule-popup.php:72
1600
+ msgid "Display PopUp this often:"
1601
+ msgstr "Display PopUp this often:"
1602
+
1603
+ #: inc/rules/class-popup-rule-posttype.php:33
1604
+ msgid "For specific Post Types"
1605
+ msgstr "For specific Post Types"
1606
+
1607
+ #: inc/rules/class-popup-rule-posttype.php:34
1608
+ msgid "Shows the PopUp on pages that match any of the specified Post Types."
1609
+ msgstr "Shows the PopUp on pages that match any of the specified Post Types."
1610
+
1611
+ #: inc/rules/class-popup-rule-posttype.php:42
1612
+ msgid "Not for specific Post Types"
1613
+ msgstr "Not for specific Post Types"
1614
+
1615
+ #: inc/rules/class-popup-rule-posttype.php:43
1616
+ msgid ""
1617
+ "Shows the PopUp on pages that do not match any of the specified Post Type."
1618
+ msgstr ""
1619
+ "Shows the PopUp on pages that do not match any of the specified Post Type."
1620
+
1621
+ #: inc/rules/class-popup-rule-posttype.php:119
1622
+ msgid "Show for these Post Types:"
1623
+ msgstr "Show for these Post Types:"
1624
+
1625
+ #: inc/rules/class-popup-rule-posttype.php:120
1626
+ msgid "Show on these Post Type URLs:"
1627
+ msgstr "Show on these Post Type URLs:"
1628
+
1629
+ #: inc/rules/class-popup-rule-posttype.php:167
1630
+ msgid "Hide for these Post Types:"
1631
+ msgstr "Hide for these Post Types:"
1632
+
1633
+ #: inc/rules/class-popup-rule-posttype.php:168
1634
+ msgid "Hide on these Post Type URLs:"
1635
+ msgstr "Hide on these Post Type URLs:"
1636
+
1637
+ #: inc/rules/class-popup-rule-prosite.php:31
1638
+ msgid "Site is not a Pro Site"
1639
+ msgstr "Site is not a Pro Site"
1640
+
1641
+ #: inc/rules/class-popup-rule-prosite.php:32
1642
+ msgid "Shows the PopUp if the site is not a Pro Site."
1643
+ msgstr "Shows the PopUp if the site is not a Pro Site."
1644
+
1645
+ #: inc/rules/class-popup-rule-prosite.php:96
1646
+ #, php-format
1647
+ msgid ""
1648
+ "This condition requires that the <a href=\"%s\" target=\"_blank\">Pro Sites "
1649
+ "Plugin</a> is installed and activated."
1650
+ msgstr ""
1651
+ "This condition requires that the <a href=\"%s\" target=\"_blank\">Pro Sites "
1652
+ "Plugin</a> is installed and activated."
1653
+
1654
+ #: inc/rules/class-popup-rule-referrer.php:30
1655
+ msgid "From a specific referrer"
1656
+ msgstr "From a specific referrer"
1657
+
1658
+ #: inc/rules/class-popup-rule-referrer.php:31
1659
+ msgid "Shows the PopUp if the user arrived via a specific referrer."
1660
+ msgstr "Shows the PopUp if the user arrived via a specific referrer."
1661
+
1662
+ #: inc/rules/class-popup-rule-referrer.php:39
1663
+ msgid "Not from an internal link"
1664
+ msgstr "Not from an internal link"
1665
+
1666
+ #: inc/rules/class-popup-rule-referrer.php:40
1667
+ msgid ""
1668
+ "Shows the PopUp if the user did not arrive on this page via another page on "
1669
+ "your site."
1670
+ msgstr ""
1671
+ "Shows the PopUp if the user did not arrive on this page via another page on "
1672
+ "your site."
1673
+
1674
+ #: inc/rules/class-popup-rule-referrer.php:48
1675
+ msgid "From a search engine"
1676
+ msgstr "From a search engine"
1677
+
1678
+ #: inc/rules/class-popup-rule-referrer.php:49
1679
+ msgid "Shows the PopUp if the user arrived via a search engine."
1680
+ msgstr "Shows the PopUp if the user arrived via a search engine."
1681
+
1682
+ #: inc/rules/class-popup-rule-referrer.php:88
1683
+ msgid "Referrers (one per line):"
1684
+ msgstr "Referrers (one per line):"
1685
+
1686
+ #: inc/rules/class-popup-rule-role.php:31
1687
+ msgid "Visitor has role"
1688
+ msgstr "Visitor has role"
1689
+
1690
+ #: inc/rules/class-popup-rule-role.php:32
1691
+ msgid ""
1692
+ "Shows the PopUp if the user is logged in and is assigned to a certain role."
1693
+ msgstr ""
1694
+ "Shows the PopUp if the user is logged in and is assigned to a certain role."
1695
+
1696
+ #: inc/rules/class-popup-rule-role.php:40
1697
+ msgid "Visitor does not have role"
1698
+ msgstr "Visitor does not have role"
1699
+
1700
+ #: inc/rules/class-popup-rule-role.php:41
1701
+ msgid ""
1702
+ "Shows the PopUp if the user is logged in and is not assigned to a certain "
1703
+ "role."
1704
+ msgstr ""
1705
+ "Shows the PopUp if the user is logged in and is not assigned to a certain "
1706
+ "role."
1707
+
1708
+ #: inc/rules/class-popup-rule-role.php:82
1709
+ msgid "Show to users that have one of these roles:"
1710
+ msgstr "Show to users that have one of these roles:"
1711
+
1712
+ #: inc/rules/class-popup-rule-role.php:127
1713
+ msgid "Show to users that do not have one of these roles:"
1714
+ msgstr "Show to users that do not have one of these roles:"
1715
+
1716
+ #: inc/rules/class-popup-rule-url.php:81
1717
+ #: inc/rules/class-popup-rule-url.php:134
1718
+ msgid "URLs (one per line):"
1719
+ msgstr "URLs (one per line):"
1720
+
1721
+ #: inc/rules/class-popup-rule-user.php:31
1722
+ msgid "Shows the PopUp if the user is logged in to your site."
1723
+ msgstr "Shows the PopUp if the user is logged in to your site."
1724
+
1725
+ #: inc/rules/class-popup-rule-user.php:40
1726
+ msgid "Shows the PopUp if the user is not logged in to your site."
1727
+ msgstr "Shows the PopUp if the user is not logged in to your site."
1728
+
1729
+ #: inc/rules/class-popup-rule-user.php:48
1730
+ msgid "Visitor has commented before"
1731
+ msgstr "Visitor has commented before"
1732
+
1733
+ #: inc/rules/class-popup-rule-user.php:50
1734
+ msgid ""
1735
+ "Shows the PopUp if the user has already left a comment. You may want to "
1736
+ "combine this condition with either \"Visitor is logged in\" or \"Visitor is "
1737
+ "not logged in\"."
1738
+ msgstr ""
1739
+ "Shows the PopUp if the user has already left a comment. You may want to "
1740
+ "combine this condition with either \"Visitor is logged in\" or \"Visitor is "
1741
+ "not logged in\"."
1742
+
1743
+ #: inc/rules/class-popup-rule-user.php:63
1744
+ msgid ""
1745
+ "Shows the PopUp if the user has never left a comment. You may want to "
1746
+ "combine this condition with either \"Visitor is logged in\" or \"Visitor is "
1747
+ "not logged in\"."
1748
+ msgstr ""
1749
+ "Shows the PopUp if the user has never left a comment. You may want to "
1750
+ "combine this condition with either \"Visitor is logged in\" or \"Visitor is "
1751
+ "not logged in\"."
1752
+
1753
+ #: inc/rules/class-popup-rule-width.php:31
1754
+ msgid "Depending on screen size"
1755
+ msgstr "Depending on screen size"
1756
+
1757
+ #: inc/rules/class-popup-rule-width.php:33
1758
+ msgid ""
1759
+ "Shows the PopUp if the window-width is within the defined limits. Note: The "
1760
+ "window size is checked upon page load! when the user resizes the window "
1761
+ "after the page is loaded it will not affect this rule."
1762
+ msgstr ""
1763
+ "Shows the PopUp if the window-width is within the defined limits. Note: The "
1764
+ "window size is checked upon page load! when the user resizes the window "
1765
+ "after the page is loaded it will not affect this rule."
1766
+
1767
+ #: inc/rules/class-popup-rule-width.php:126
1768
+ msgid "At least:"
1769
+ msgstr "At least:"
1770
+
1771
+ #: inc/rules/class-popup-rule-width.php:142
1772
+ #: inc/rules/class-popup-rule-width.php:162
1773
+ msgid "Any size"
1774
+ msgstr "Any size"
1775
+
1776
+ #: inc/rules/class-popup-rule-width.php:146
1777
+ msgid "At most:"
1778
+ msgstr "At most:"
1779
+
1780
+ #: inc/rules/class-popup-rule-xprofile.php:31
1781
+ msgid "On XProfile match"
1782
+ msgstr "On XProfile match"
1783
+
1784
+ #: inc/rules/class-popup-rule-xprofile.php:32
1785
+ msgid "Shows the PopUp if the users XProfile field matches the condition."
1786
+ msgstr "Shows the PopUp if the users XProfile field matches the condition."
1787
+
1788
+ #: inc/rules/class-popup-rule-xprofile.php:40
1789
+ msgid "Not on XProfile match"
1790
+ msgstr "Not on XProfile match"
1791
+
1792
+ #: inc/rules/class-popup-rule-xprofile.php:41
1793
+ msgid ""
1794
+ "Shows the PopUp if the users XProfile field does not match the condition."
1795
+ msgstr ""
1796
+ "Shows the PopUp if the users XProfile field does not match the condition."
1797
+
1798
+ #: inc/rules/class-popup-rule-xprofile.php:181
1799
+ msgid ""
1800
+ "This condition requires that the BuddyPress Extended Profile component is "
1801
+ "active."
1802
+ msgstr ""
1803
+ "This condition requires that the BuddyPress Extended Profile component is "
1804
+ "active."
1805
+
1806
+ #: inc/rules/class-popup-rule-xprofile.php:196
1807
+ msgid "No XProfile fields found."
1808
+ msgstr "No XProfile fields found."
1809
+
1810
+ #: inc/rules/class-popup-rule-xprofile.php:201
1811
+ msgid "Field:"
1812
+ msgstr "Field:"
1813
+
1814
+ #: inc/rules/class-popup-rule-xprofile.php:221
1815
+ msgid "equals"
1816
+ msgstr "equals"
1817
+
1818
+ #: inc/rules/class-popup-rule-xprofile.php:224
1819
+ msgid "is not"
1820
+ msgstr "is not"
1821
+
1822
+ #: inc/rules/class-popup-rule-xprofile.php:227
1823
+ msgid "matches regex"
1824
+ msgstr "matches regex"
1825
+
1826
+ #: inc/rules/class-popup-rule-xprofile.php:230
1827
+ msgid "does not match regex"
1828
+ msgstr "does not match regex"
1829
+
1830
+ #: views/meta-appearance.php:16
1831
+ msgid "Select which style you want to use:"
1832
+ msgstr "Select which style you want to use:"
1833
+
1834
+ #: views/meta-appearance.php:48
1835
+ msgid "No rounded corners"
1836
+ msgstr "No rounded corners"
1837
+
1838
+ #: views/meta-appearance.php:57
1839
+ msgid ""
1840
+ "*) This style is outdated and does not support all options on this page. "
1841
+ "Once you save your PopUp with a new style you cannot revert to this style!"
1842
+ "<br />Tipp: Use the Preview function to test this PopUp with one of the new "
1843
+ "styles before saving it."
1844
+ msgstr ""
1845
+ "*) This style is outdated and does not support all options on this page. "
1846
+ "Once you save your PopUp with a new style you cannot revert to this style!"
1847
+ "<br />Tipp: Use the Preview function to test this PopUp with one of the new "
1848
+ "styles before saving it."
1849
+
1850
+ #: views/meta-appearance.php:77
1851
+ msgid "Use custom colors"
1852
+ msgstr "Use custom colors"
1853
+
1854
+ #: views/meta-appearance.php:88
1855
+ msgid "Links, button background, heading and subheading"
1856
+ msgstr "Links, button background, heading and subheading"
1857
+
1858
+ #: views/meta-appearance.php:96
1859
+ msgid "Button text"
1860
+ msgstr "Button text"
1861
+
1862
+ #: views/meta-appearance.php:108
1863
+ msgid "Use custom size (if selected the PopUp won't be responsive)"
1864
+ msgstr "Use custom size (if selected the PopUp won't be responsive)"
1865
+
1866
+ #: views/meta-appearance.php:114
1867
+ msgid "Width:"
1868
+ msgstr "Width:"
1869
+
1870
+ #: views/meta-appearance.php:123
1871
+ msgid "Height:"
1872
+ msgstr "Height:"
1873
+
1874
+ #: views/meta-behavior.php:12
1875
+ msgid "When to show the PopUp:"
1876
+ msgstr "When to show the PopUp:"
1877
+
1878
+ #: views/meta-behavior.php:24 views/meta-behavior.php:54
1879
+ msgid "Appear after"
1880
+ msgstr "Appear after"
1881
+
1882
+ #: views/meta-behavior.php:37
1883
+ msgid "Seconds"
1884
+ msgstr "Seconds"
1885
+
1886
+ #: views/meta-behavior.php:40
1887
+ msgid "Minutes"
1888
+ msgstr "Minutes"
1889
+
1890
+ #: views/meta-behavior.php:67
1891
+ msgid "%"
1892
+ msgstr "%"
1893
+
1894
+ #: views/meta-behavior.php:70
1895
+ msgid "px"
1896
+ msgstr "px"
1897
+
1898
+ #: views/meta-behavior.php:74
1899
+ msgid "of the page has been scrolled."
1900
+ msgstr "of the page has been scrolled."
1901
+
1902
+ #: views/meta-behavior.php:84
1903
+ msgid "Appear after user scrolled until CSS selector"
1904
+ msgstr "Appear after user scrolled until CSS selector"
1905
+
1906
+ #: views/meta-behavior.php:101
1907
+ msgid "\"Never see this message again\" settings:"
1908
+ msgstr "\"Never see this message again\" settings:"
1909
+
1910
+ #: views/meta-behavior.php:113
1911
+ msgid "Add \"Never see this message again\" link"
1912
+ msgstr "Add \"Never see this message again\" link"
1913
+
1914
+ #: views/meta-behavior.php:124
1915
+ msgid "Close button acts as \"Never see this message again\" link"
1916
+ msgstr "Close button acts as \"Never see this message again\" link"
1917
+
1918
+ #: views/meta-behavior.php:129
1919
+ msgid "Expiry time"
1920
+ msgstr "Expiry time"
1921
+
1922
+ #: views/meta-behavior.php:136
1923
+ msgid "days"
1924
+ msgstr "days"
1925
+
1926
+ #: views/meta-behavior.php:137
1927
+ msgid "(upon expiry, user will see this PopUp again)"
1928
+ msgstr "(upon expiry, user will see this PopUp again)"
1929
+
1930
+ #: views/meta-behavior.php:146
1931
+ msgid "Closing Pop-up conditions"
1932
+ msgstr "Closing Pop-up conditions"
1933
+
1934
+ #: views/meta-behavior.php:156
1935
+ msgid "Click on the background does not close PopUp."
1936
+ msgstr "Click on the background does not close PopUp."
1937
+
1938
+ #: views/meta-content.php:15
1939
+ msgid "Heading (optional)"
1940
+ msgstr "Heading (optional)"
1941
+
1942
+ #: views/meta-content.php:18
1943
+ msgid "Subheading (optional)"
1944
+ msgstr "Subheading (optional)"
1945
+
1946
+ #: views/meta-content.php:27
1947
+ msgid "Enter your heading here..."
1948
+ msgstr "Enter your heading here..."
1949
+
1950
+ #: views/meta-content.php:35
1951
+ msgid "Enter your subheading here..."
1952
+ msgstr "Enter your subheading here..."
1953
+
1954
+ #: views/meta-content.php:42
1955
+ msgid "Main PopUp Content"
1956
+ msgstr "Main PopUp Content"
1957
+
1958
+ #: views/meta-content.php:57
1959
+ msgid "Call To Action Button (optional)"
1960
+ msgstr "Call To Action Button (optional)"
1961
+
1962
+ #: views/meta-content.php:66
1963
+ msgid "Button Label"
1964
+ msgstr "Button Label"
1965
+
1966
+ #: views/meta-content.php:74
1967
+ msgid "Button Link (http://www.example.com)"
1968
+ msgstr "Button Link (http://www.example.com)"
1969
+
1970
+ #: views/meta-content.php:84
1971
+ msgid "PopUp Feature Image (optional)"
1972
+ msgstr "PopUp Feature Image (optional)"
1973
+
1974
+ #: views/meta-content.php:90
1975
+ msgid "Add featured image to PopUp."
1976
+ msgstr "Add featured image to PopUp."
1977
+
1978
+ #: views/meta-content.php:91
1979
+ msgid "PopUp Featured Image"
1980
+ msgstr "PopUp Featured Image"
1981
+
1982
+ #: views/meta-content.php:92
1983
+ msgid "Select Image"
1984
+ msgstr "Select Image"
1985
+
1986
+ #: views/meta-content.php:94
1987
+ msgid "Add Image"
1988
+ msgstr "Add Image"
1989
+
1990
+ #: views/meta-content.php:113
1991
+ msgid "(No image selected)"
1992
+ msgstr "(No image selected)"
1993
+
1994
+ #: views/meta-content.php:116
1995
+ msgid "Drop here"
1996
+ msgstr "Drop here"
1997
+
1998
+ #: views/meta-content.php:122
1999
+ msgid "Remove image"
2000
+ msgstr "Remove image"
2001
+
2002
+ #: views/meta-content.php:136
2003
+ msgid "Hide image for mobile devices"
2004
+ msgstr "Hide image for mobile devices"
2005
+
2006
+ #: views/meta-rules.php:13 views/settings.php:285
2007
+ msgid "Available Conditions"
2008
+ msgstr "Available Conditions"
2009
+
2010
+ #: views/meta-rules.php:16
2011
+ msgid "Show this PopUp if the following conditions are met"
2012
+ msgstr "Show this PopUp if the following conditions are met"
2013
+
2014
+ #: views/meta-submitdiv.php:18 views/meta-submitdiv.php:65
2015
+ #: views/meta-submitdiv.php:84
2016
+ msgid "Save"
2017
+ msgstr "Save"
2018
+
2019
+ #: views/meta-submitdiv.php:30
2020
+ msgid "Status: <strong>Active</strong>"
2021
+ msgstr "Status: <strong>Active</strong>"
2022
+
2023
+ #: views/meta-submitdiv.php:31
2024
+ msgid "Status: Inactive"
2025
+ msgstr "Status: Inactive"
2026
+
2027
+ #: views/meta-submitdiv.php:39 views/meta-submitdiv.php:91
2028
+ msgid "Preview PopUp"
2029
+ msgstr "Preview PopUp"
2030
+
2031
+ #: views/meta-submitdiv.php:52 views/meta-submitdiv.php:77
2032
+ msgid "Move to Trash"
2033
+ msgstr "Move to Trash"
2034
+
2035
+ #: views/meta-submitdiv.php:61 views/meta-submitdiv.php:99
2036
+ msgid "Duplicate"
2037
+ msgstr "Duplicate"
2038
+
2039
+ #: views/network.php:34
2040
+ #, php-format
2041
+ msgid ""
2042
+ "Please note:<br />We moved the global PopUp menu items to the <strong>Main "
2043
+ "Blog</strong> of your multisite network!<br />The Main Blog of this network "
2044
+ "is \"%1$s\" - <a href=\"%2$s\">Go to the Main Blog now</a>!"
2045
+ msgstr ""
2046
+ "Please note:<br />We moved the global PopUp menu items to the <strong>Main "
2047
+ "Blog</strong> of your multisite network!<br />The Main Blog of this network "
2048
+ "is \"%1$s\" - <a href=\"%2$s\">Go to the Main Blog now</a>!"
2049
+
2050
+ #: views/network.php:46
2051
+ msgid ""
2052
+ "Because the \"PopUp\" menu items here on the <strong>Network Admin</strong> "
2053
+ "are not used anymore you can <strong>hide them</strong> at any time:"
2054
+ msgstr ""
2055
+ "Because the \"PopUp\" menu items here on the <strong>Network Admin</strong> "
2056
+ "are not used anymore you can <strong>hide them</strong> at any time:"
2057
+
2058
+ #: views/network.php:53
2059
+ msgid "Hide the menu items here!"
2060
+ msgstr "Hide the menu items here!"
2061
+
2062
+ #: views/settings.php:12 views/settings.php:238
2063
+ msgid "Page Footer"
2064
+ msgstr "Page Footer"
2065
+
2066
+ #: views/settings.php:14
2067
+ msgid "Include PopUp as part of your site's HTML (no AJAX call)."
2068
+ msgstr "Include PopUp as part of your site's HTML (no AJAX call)."
2069
+
2070
+ #: views/settings.php:21
2071
+ msgid "WordPress AJAX"
2072
+ msgstr "WordPress AJAX"
2073
+
2074
+ #: views/settings.php:23
2075
+ msgid ""
2076
+ "Load PopUp separately from the page via a WordPress AJAX call. This is the "
2077
+ "best option if you use caching."
2078
+ msgstr ""
2079
+ "Load PopUp separately from the page via a WordPress AJAX call. This is the "
2080
+ "best option if you use caching."
2081
+
2082
+ #: views/settings.php:31
2083
+ msgid "Custom AJAX"
2084
+ msgstr "Custom AJAX"
2085
+
2086
+ #: views/settings.php:33
2087
+ msgid "Load PopUp separately from the page via a custom front-end AJAX call."
2088
+ msgstr "Load PopUp separately from the page via a custom front-end AJAX call."
2089
+
2090
+ #: views/settings.php:76
2091
+ #, php-format
2092
+ msgid ""
2093
+ "<strong>Note</strong>: This option is unavailable because a geo-data table "
2094
+ "was not found in your database. For details, read the \"Using a Local Geo-"
2095
+ "Database\" in the <a href=\"%1$s\" target=\"_blank\">PopUp usage guide</a>."
2096
+ msgstr ""
2097
+ "<strong>Note</strong>: This option is unavailable because a geo-data table "
2098
+ "was not found in your database. For details, read the \"Using a Local Geo-"
2099
+ "Database\" in the <a href=\"%1$s\" target=\"_blank\">PopUp usage guide</a>."
2100
+
2101
+ #: views/settings.php:99
2102
+ msgid "PopUp Settings"
2103
+ msgstr "PopUp Settings"
2104
+
2105
+ #: views/settings.php:110
2106
+ msgid "PopUp Loading Method"
2107
+ msgstr "PopUp Loading Method"
2108
+
2109
+ #: views/settings.php:115
2110
+ msgid "Select how you would like to load PopUp."
2111
+ msgstr "Select how you would like to load PopUp."
2112
+
2113
+ #: views/settings.php:124
2114
+ msgid "Load PopUp using"
2115
+ msgstr "Load PopUp using"
2116
+
2117
+ #: views/settings.php:156
2118
+ msgid "Country Lookup"
2119
+ msgstr "Country Lookup"
2120
+
2121
+ #: views/settings.php:164
2122
+ msgid ""
2123
+ "Use a local IP cache table instead of a web service to resolve IP addresses "
2124
+ "to a country code."
2125
+ msgstr ""
2126
+ "Use a local IP cache table instead of a web service to resolve IP addresses "
2127
+ "to a country code."
2128
+
2129
+ #: views/settings.php:170
2130
+ msgid "This option is relevant for the \"Visitor Location\" condition."
2131
+ msgstr "This option is relevant for the \"Visitor Location\" condition."
2132
+
2133
+ #: views/settings.php:185 views/settings.php:205
2134
+ #, fuzzy
2135
+ msgid "Click to toggle"
2136
+ msgstr "Click to toggle"
2137
+
2138
+ #: views/settings.php:186
2139
+ msgid "Theme compatibility"
2140
+ msgstr "Theme compatibility"
2141
+
2142
+ #: views/settings.php:191
2143
+ msgid ""
2144
+ "Here you can see if your theme is compatible with the \"Page Footer\" "
2145
+ "loading method."
2146
+ msgstr ""
2147
+ "Here you can see if your theme is compatible with the \"Page Footer\" "
2148
+ "loading method."
2149
+
2150
+ #: views/settings.php:206
2151
+ msgid "Supported Shortcodes"
2152
+ msgstr "Supported Shortcodes"
2153
+
2154
+ #: views/settings.php:211
2155
+ msgid ""
2156
+ "You can use all your shortcodes inside the PopUp contents, however some "
2157
+ "Plugins or Themes might provide shortcodes that only work with the loading "
2158
+ "method \"Page Footer\".<br /> This list explains which shortcodes can be "
2159
+ "used with each loading method:"
2160
+ msgstr ""
2161
+ "You can use all your shortcodes inside the PopUp contents, however some "
2162
+ "Plugins or Themes might provide shortcodes that only work with the loading "
2163
+ "method \"Page Footer\".<br /> This list explains which shortcodes can be "
2164
+ "used with each loading method:"
2165
+
2166
+ #: views/settings.php:220
2167
+ msgid ""
2168
+ "Important notice for shortcodes in <strong>Global PopUps</strong>:<br /"
2169
+ ">Shortcodes can be provided by a plugin or theme, so each blog can have a "
2170
+ "different list of shortcodes. The following list is valid for the current "
2171
+ "blog only!"
2172
+ msgstr ""
2173
+ "Important notice for shortcodes in <strong>Global PopUps</strong>:<br /"
2174
+ ">Shortcodes can be provided by a plugin or theme, so each blog can have a "
2175
+ "different list of shortcodes. The following list is valid for the current "
2176
+ "blog only!"
2177
+
2178
+ #: views/settings.php:233
2179
+ msgid "Shortcode"
2180
+ msgstr "Shortcode"
2181
+
2182
+ #: views/settings.php:237
2183
+ msgid "Loading method 'Page Footer'"
2184
+ msgstr "Loading method 'Page Footer'"
2185
+
2186
+ #: views/settings.php:242
2187
+ msgid "Loading method 'WordPress AJAX'"
2188
+ msgstr "Loading method 'WordPress AJAX'"
2189
+
2190
+ #: views/settings.php:243
2191
+ msgid "WP AJAX"
2192
+ msgstr "WP AJAX"
2193
+
2194
+ #: views/settings.php:247
2195
+ msgid "Loading method 'Custom AJAX'"
2196
+ msgstr "Loading method 'Custom AJAX'"
2197
+
2198
+ #: views/settings.php:248
2199
+ msgid "Cust AJAX"
2200
+ msgstr "Cust AJAX"
2201
+
2202
+ #: views/settings.php:252
2203
+ msgid "Loading method 'Anonymous Script'"
2204
+ msgstr "Loading method 'Anonymous Script'"
2205
+
2206
+ #: views/settings.php:253
2207
+ msgid "Script"
2208
+ msgstr "Script"
2209
+
2210
+ #: views/settings.php:257
2211
+ msgid "When opening a PopUp-Preview in the Editor"
2212
+ msgstr "When opening a PopUp-Preview in the Editor"
2213
+
2214
+ #: views/settings.php:281 views/settings.php:376
2215
+ msgid "Save All Changes"
2216
+ msgstr "Save All Changes"
2217
+
2218
+ #: views/settings.php:296
2219
+ #, fuzzy
2220
+ msgid "Name"
2221
+ msgstr "Name"
2222
+
2223
+ #: views/settings.php:299
2224
+ msgid "Activated Rules"
2225
+ msgstr "Activated Rules"
2226
+
2227
+ #: views/settings.php:325
2228
+ msgid "Available in the PRO version"
2229
+ msgstr "Available in the PRO version"
2230
+
2231
+ #: views/settings.php:327
2232
+ msgid "Not available for global PopUps"
2233
+ msgstr "Not available for global PopUps"
popover.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: WordPress PopUp
4
  Plugin URI: http://premium.wpmudev.org/project/the-pop-over-plugin/
5
  Description: Allows you to display a fancy PopUp to visitors sitewide or per blog. A *very* effective way of advertising a mailing list, special offer or running a plain old ad.
6
- Version: 4.6
7
  Author: WPMU DEV
8
  Author URI: http://premium.wpmudev.org
9
  Textdomain: popover
@@ -80,6 +80,6 @@ function inc_popup_free_init() {
80
  }
81
 
82
  // Initialize the plugin as soon as we have identified the current user.
83
- add_action( 'set_current_user', array( 'IncPopup', 'instance' ) );
84
  }
85
- }
3
  Plugin Name: WordPress PopUp
4
  Plugin URI: http://premium.wpmudev.org/project/the-pop-over-plugin/
5
  Description: Allows you to display a fancy PopUp to visitors sitewide or per blog. A *very* effective way of advertising a mailing list, special offer or running a plain old ad.
6
+ Version: 4.6.1.1
7
  Author: WPMU DEV
8
  Author URI: http://premium.wpmudev.org
9
  Textdomain: popover
80
  }
81
 
82
  // Initialize the plugin as soon as we have identified the current user.
83
+ IncPopup::instance();
84
  }
85
+ }
readme.txt CHANGED
@@ -3,46 +3,43 @@ Contributors: WPMUDEV
3
  Tags: Popup, Pop-up, Pop Over, popover, Responsive Popup, Advertise, Promotion, Marketing, Lightbox, Mailing list pop-up
4
  Requires at least: 3.1
5
  Tested up to: 4.0
6
- Stable tag: 4.6
7
 
8
- Allows you to display a fancy popup to visitors, a *very* effective way of advertising a mailing list, special offer or running a plain old ad.
9
 
10
  == Description ==
11
 
12
- One of the most effective ways to advertise your mailing list, special offer or simply to show ads is via javascript ‘pop over’ on your site. And that’s exactly what his easy-to-use and guaranteed-to-work plugin does.
13
 
14
- Here is just a taste of what it can do:
15
 
16
- - Display fancy pop up(s) (powered as a popover!) to visitors network wide, per site or on specific URLs
17
- - Hassle-free interface. Creating your new pop over is as simple as adding a new post to your WordPress blog.
18
- - Extensive options for customizing who sees your pop overs including logged out users, visitors who have never commented , search engine visitors.
19
- - Includes optional hide a pop over forever.
20
- - Ability to set the amount of time that passes between when the user hits your site and when the pop up displays
21
- - Compatible with any WordPress theme. Customize the style and layout of your pop over to fit with your existing site design.
22
- - Works perfectly with WordPress, Multisite and BuddyPress.
23
- - Use this plugin on any WordPress project you like.
24
 
25
- Visitors from our pop over on WPMU.org results in double the number of pages and twice the length of stay compared to visitors that come via Adwords!
 
26
 
27
- And of course it even contains a link allowing users to click it and never see the popover again… just to take care of the complainers! Not that we’ve ever had a single complaint!
28
 
29
- Like I said, we use it and now so can you!
 
 
30
 
31
- Once installed, it’s really simple, just activate it and go to Pop Over > Create New to get started.
32
 
33
- Then paste in your ad code… whether its javascript or, like us, an image. And select it’s size, borders, background color, position and even font color.
 
 
 
 
 
 
 
 
 
 
 
34
 
35
- Then, set the display rules, namely: Show the Pop Over if one of the following checked rules is true:
36
-
37
- - Visitor is not logged in.
38
- - Visitor has never commented here before.
39
- - Visitor came from a search engine.
40
- - Visitor did not come from an internal page.
41
- - Visitor referrer matches
42
- - And the visitor has seen the pop over less than X times
43
- - Visitor is arriving from a specific link
44
-
45
- And you’re good to go!
46
 
47
  == Installation ==
48
 
@@ -65,6 +62,8 @@ For blog by blog, leave as is.
65
 
66
  For network wide control - add the line define('PO_GLOBAL', true); to your wp-config.php file.
67
 
 
 
68
  == Screenshots ==
69
 
70
  1. The PopUp in action
@@ -73,7 +72,18 @@ For network wide control - add the line define('PO_GLOBAL', true); to your wp-co
73
 
74
  == Changelog ==
75
 
 
 
 
 
 
 
 
 
 
 
76
  = 4.6 =
 
77
  * Completely re-build the UI from ground up!
78
  * Migrated PopUps to a much more flexible data structure.
79
  * Merged sections "Add-Ons" and "Settings" to a single page.
@@ -82,12 +92,66 @@ For network wide control - add the line define('PO_GLOBAL', true); to your wp-co
82
  * Three new, modern PopUp styles added.
83
  * Featured Image support for new PopUp styles.
84
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
85
  = 4.3.2 =
 
86
  * Major rewrite
87
  * Multiple PopUps can be created
 
 
88
 
89
  = 3.1.4 =
 
90
  * WP3.3 style updating
91
 
92
  = 3.0 =
93
- * Initial release
 
3
  Tags: Popup, Pop-up, Pop Over, popover, Responsive Popup, Advertise, Promotion, Marketing, Lightbox, Mailing list pop-up
4
  Requires at least: 3.1
5
  Tested up to: 4.0
6
+ Stable tag: trunk
7
 
8
+ WordPress PopUp is the smart, responsive, customizable and beautifully coded pop-up and pop-over plugin for WordPress and Multisite.
9
 
10
  == Description ==
11
 
12
+ WordPress PopUp brings a proven solution for effective advertising to your site or network. Introduce mailing lists, exclusive offers and other advertisements to your clients, users or visitors with a polished pop-up ad.
13
 
14
+ [youtube https://www.youtube.com/watch?v=lxyomzQkQKc]
15
 
16
+ Because the WordPress PopUp interface provides a simple, flexible design template in a familiar workspace, you can spend more time creating and less time building. Plus, with this fully-responsive plugin, your pop-ups will look fantastic on every device.
 
 
 
 
 
 
 
17
 
18
+ ★★★★★<br />
19
+ “The plugin works great on Multisite. It is amazingly fast, easy to install and very flexible.” - <a href="http://profiles.wordpress.org/spkane">spkane</a>
20
 
21
+ <strong>Need More?</strong>
22
 
23
+ <blockquote>
24
+ While WordPress PopUp is feature-rich and flexible, you may need more - so we created <a href="http://premium.wpmudev.org/project/the-pop-over-plugin/">PopUp Pro</a>. PopUp Pro takes everything you love about the free version and adds more templates, greater design control and an unlimited number of pop-ups with extended powerful behaviors for setting specific times, locations and who the pop-ups are displayed to.<br /><br />
25
+ </blockquote>
26
 
27
+ <strong>See What WordPress PopUp and PopUp Pro Can Do For You:</strong>
28
 
29
+ <ul>
30
+ <li>Design pop-ups from a familiar intuitive interface</li>
31
+ <li>Unlimited pop-ups that display across an entire network, on individual sites or on specific URLs - limited to 1 active pop-up in free version</li>
32
+ <li>Both responsive and fixed design options mean your pop-ups look great on every device</li>
33
+ <li>3 built-in modern templates for displaying clean, simple or sophisticated pop-ups - 1 easy-to-use layout in the free version</li>
34
+ <li>Choose to hide pop-ups from mobile devices - pro version only</li>
35
+ <li>Control who sees a pop-up including logged out users, visitors who have never commented and search engine visitors - limited with free version</li>
36
+ <li>Set when a pop-up appears based on time, location, CSS markers and clicks - limited on free version</li>
37
+ <li>Allow visitors to hide a pop-up from ever displaying again</li>
38
+ <li>Display your pop-ups to visitors from specific geographic locations - pro version only</li>
39
+ <li>Access to our brilliant fast 24/7 support team</li>
40
+ </ul>
41
 
42
+ If you are looking to build your mailing list, increase sales or even promote an event, use WordPress PopUp or <a href="http://premium.wpmudev.org/project/the-pop-over-plugin/">PopUp Pro</a> - it just works.
 
 
 
 
 
 
 
 
 
 
43
 
44
  == Installation ==
45
 
62
 
63
  For network wide control - add the line define('PO_GLOBAL', true); to your wp-config.php file.
64
 
65
+ * You can find <a href='http://premium.wpmudev.org/manuals/installing-regular-plugins-on-wpmu/'>in-depth setup and usage instructions with screenshots here &raquo;</a>
66
+
67
  == Screenshots ==
68
 
69
  1. The PopUp in action
72
 
73
  == Changelog ==
74
 
75
+ = 4.6.1.1 =
76
+ * New: Added Contextual Help to the PopUp editor to show supported shortcodes.
77
+ * Fix: Logic of rule "[Not] On specific URL" corrected.
78
+ * Fix: Close forever now works also via click on background layer.
79
+ * Better: Improved info on supported shortcodes.
80
+
81
+ = 4.6.1 =
82
+ * Fix: For some users the plugin was not loading after update to 4.6
83
+ * Fix: Old Popups will now replace shortcodes correctly.
84
+
85
  = 4.6 =
86
+
87
  * Completely re-build the UI from ground up!
88
  * Migrated PopUps to a much more flexible data structure.
89
  * Merged sections "Add-Ons" and "Settings" to a single page.
92
  * Three new, modern PopUp styles added.
93
  * Featured Image support for new PopUp styles.
94
 
95
+ = 4.4.5.4 =
96
+
97
+ * Performance improvements
98
+ * Fixed issue with dynamic JavaScript loading
99
+ * Added PO_PLUGIN_DIR in config for changing plugin directory name
100
+
101
+ = 4.4.5.2 =
102
+
103
+ * Added missing translatable strings
104
+ * Updated language file
105
+
106
+ = 4.4.5.1 =
107
+
108
+ * added collation to tables creation code
109
+ * updated require calls to include directory path
110
+ * moved custom loading out of experimental status
111
+ * set default loading method to custom loading
112
+
113
+ = 4.4.5 =
114
+
115
+ * Added different custom loading method that should be cache resistant and remove issues with other ajax loading method.
116
+ * Made On URL rule more specific so that it doesn't match child pages when the main page is specified
117
+
118
+ = 4.4.4 =
119
+
120
+ * Added option to switch from JS loading to standard loading of pop ups.
121
+ * Added ability to use regular expressions in the referrers and on url conditions.
122
+ * Prepared code to make it easy to upgrade interface for future releases.
123
+
124
+ = 4.4.3 =
125
+
126
+ * Updated for WP 3.5
127
+ * Added initial attempt to distinguish referrers from Google search and referrers from Google custom site search.
128
+
129
+ = 4.4.2 =
130
+
131
+ * Removed unneeded css and js files
132
+ * Updated language file
133
+
134
+ = 4.4.1 =
135
+
136
+ * Moved popover loading js to be created by a php file due to needing extra processing.
137
+ * Fixed issue with directory based sites loading popover script from main site.
138
+ * Fixed issue of popover loading on login and register pages.
139
+
140
+ = 4.4 =
141
+
142
+ * Updated Popover to load via ajax call rather than page creation for cache plugin compatibility
143
+
144
  = 4.3.2 =
145
+
146
  * Major rewrite
147
  * Multiple PopUps can be created
148
+ * Fixed issue of network activation not creating tables until admin area visited
149
+ * Updated code to remove all notifications, warnings and depreciated function calls ready for WP 3.4
150
 
151
  = 3.1.4 =
152
+
153
  * WP3.3 style updating
154
 
155
  = 3.0 =
156
+
157
+ * Initial release
screenshot-1.jpg ADDED
Binary file
screenshot-2.jpg ADDED
Binary file
screenshot-3.jpg ADDED
Binary file
screenshot1.jpg ADDED
Binary file
screenshot2.jpg ADDED
Binary file
screenshot3.jpg ADDED
Binary file
views/info-shortcodes.php ADDED
@@ -0,0 +1,118 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ global $shortcode_tags;
3
+
4
+
5
+ // Theme compatibility.
6
+ $theme_compat = IncPopupAddon_HeaderFooter::check();
7
+ $settings = IncPopupDatabase::get_settings();
8
+ $cur_method = @$settings['loadingmethod'];
9
+
10
+
11
+ // Shortcodes with restrictions.
12
+ $limited = array(
13
+ 'app_.*',
14
+ 'contact-form-7',
15
+ 'contact-form',
16
+ );
17
+
18
+ $shortcodes = array();
19
+ // Add Admin-Shortcodes to the list.
20
+ foreach ( $shortcode_tags as $code => $handler ) {
21
+ @$shortcodes[ $code ] .= 'sc-admin ';
22
+ }
23
+ // Add Front-End Shortcodes to the list.
24
+ foreach ( $theme_compat->shortcodes as $code ) {
25
+ @$shortcodes[ $code ] .= 'sc-front ';
26
+ }
27
+
28
+ foreach ( $shortcodes as $code => $compat ) {
29
+ foreach ( $limited as $pattern ) {
30
+ if ( preg_match( '/^' . $pattern . '$/i', $code ) ) {
31
+ $shortcodes[ $code ] = $compat . 'sc-limited ';
32
+ }
33
+ }
34
+ }
35
+
36
+
37
+ echo '<p>';
38
+ _e(
39
+ 'You can use all your shortcodes inside the PopUp contents, ' .
40
+ 'however some Plugins or Themes might provide shortcodes that ' .
41
+ 'only work with the loading method "Page Footer".<br /> ' .
42
+ 'This list explains which shortcodes can be used with each ' .
43
+ 'loading method:', PO_LANG
44
+ );
45
+ echo '</p>';
46
+
47
+ if ( IncPopup::use_global() ) :
48
+ ?>
49
+ <p><em>
50
+ <?php _e(
51
+ 'Important notice for shortcodes in <strong>Global ' .
52
+ 'PopUps</strong>:<br />' .
53
+ 'Shortcodes can be provided by a plugin or theme, so ' .
54
+ 'each blog can have a different list of shortcodes. The ' .
55
+ 'following list is valid for the current blog only!', PO_LANG
56
+ ); ?>
57
+ </em></p>
58
+ <?php
59
+
60
+ endif;
61
+
62
+ ?>
63
+ <div class="tbl-shortcodes">
64
+ <table class="widefat load-<?php echo esc_attr( $cur_method ); ?>">
65
+ <thead>
66
+ <tr>
67
+ <th width="40%">
68
+ <div>
69
+ <?php _e( 'Shortcode', PO_LANG ); ?>
70
+ </div>
71
+ </th>
72
+ <th class="flag load-footer">
73
+ <div data-tooltip="<?php _e( 'Loading method \'Page Footer\'', PO_LANG ); ?>">
74
+ <?php _e( 'Page Footer', PO_LANG ); ?>
75
+ </div>
76
+ </th>
77
+ <th class="flag load-ajax">
78
+ <div data-tooltip="<?php _e( 'Loading method \'WordPress AJAX\'', PO_LANG ); ?>">
79
+ <?php _e( 'WP AJAX', PO_LANG ); ?>
80
+ </div>
81
+ </th>
82
+ <th class="flag load-front">
83
+ <div data-tooltip="<?php _e( 'Loading method \'Custom AJAX\'', PO_LANG ); ?>">
84
+ <?php _e( 'Cust AJAX', PO_LANG ); ?>
85
+ </div>
86
+ </th>
87
+ <th class="flag">
88
+ <div data-tooltip="<?php _e( 'When opening a PopUp-Preview in the Editor', PO_LANG ); ?>">
89
+ <?php _e( 'Preview', PO_LANG ); ?>
90
+ </div>
91
+ </th>
92
+ </tr>
93
+ </thead>
94
+ <tbody>
95
+ <?php foreach ( $shortcodes as $code => $classes ) : ?>
96
+ <tr class="shortcode <?php echo esc_attr( $classes ); ?>">
97
+ <td><code>[<?php echo esc_html( $code ); ?>]</code></td>
98
+ <td class="flag sc-front load-footer"><i class="icon dashicons"></i></td>
99
+ <td class="flag sc-admin load-ajax"><i class="icon dashicons"></i></td>
100
+ <td class="flag sc-front load-front"><i class="icon dashicons"></i></td>
101
+ <td class="flag sc-admin"><i class="icon dashicons"></i></td>
102
+ </tr>
103
+ <?php endforeach; ?>
104
+ </tbody>
105
+ </table>
106
+ <div class="legend shortcode sc-admin">
107
+ <span class="sc-admin load-ajax"><i class="icon dashicons"></i></span>
108
+ <?php _e( 'Shortcode supported', PO_LANG ); ?>
109
+ </div>
110
+ <div class="legend shortcode sc-admin sc-limited">
111
+ <span class="sc-admin load-ajax"><i class="icon dashicons"></i></span>
112
+ <?php _e( 'Might have issues', PO_LANG ); ?>
113
+ </div>
114
+ <div class="legend shortcode sc-admin">
115
+ <span class="sc-front load-footer"><i class="icon dashicons"></i></span>
116
+ <?php _e( 'Shortcode does not work', PO_LANG ); ?>
117
+ </div>
118
+ </div>
views/settings.php CHANGED
@@ -3,62 +3,17 @@
3
  * Display the popup settings page.
4
  */
5
 
6
- global $shortcode_tags;
7
 
8
- $loading_methods = array();
9
-
10
- $loading_methods[] = (object) array(
11
- 'id' => 'footer',
12
- 'label' => __( 'Page Footer', PO_LANG ),
13
- 'info' => __(
14
- 'Include PopUp as part of your site\'s HTML (no AJAX call).',
15
- PO_LANG
16
- ),
17
- );
18
-
19
- $loading_methods[] = (object) array(
20
- 'id' => 'ajax',
21
- 'label' => __( 'WordPress AJAX', PO_LANG ),
22
- 'info' => __(
23
- 'Load PopUp separately from the page via a WordPress AJAX call. ' .
24
- 'This is the best option if you use caching.',
25
- PO_LANG
26
- ),
27
- );
28
-
29
- $loading_methods[] = (object) array(
30
- 'id' => 'front',
31
- 'label' => __( 'Custom AJAX', PO_LANG ),
32
- 'info' => __(
33
- 'Load PopUp separately from the page via a custom front-end AJAX call.',
34
- PO_LANG
35
- ),
36
- );
37
-
38
- /**
39
- * Allow addons to register additional loading methods.
40
- *
41
- * @var array
42
- */
43
- $loading_methods = apply_filters( 'popup-settings-loading-method', $loading_methods );
44
 
45
  $settings = IncPopupDatabase::get_settings();
46
  $cur_method = @$settings['loadingmethod'];
47
-
48
  $form_url = remove_query_arg( array( 'message', 'action', '_wpnonce' ) );
49
 
 
50
  // Theme compatibility.
51
  $theme_compat = IncPopupAddon_HeaderFooter::check();
52
  $theme_class = $theme_compat->okay ? 'msg-ok' : 'msg-err';
53
- $shortcodes = array();
54
- // Add Admin-Shortcodes to the list.
55
- foreach ( $shortcode_tags as $code => $handler ) {
56
- @$shortcodes[ $code ] .= 'sc-admin ';
57
- }
58
- // Add Front-End Shortcodes to the list.
59
- foreach ( $theme_compat->shortcodes as $code ) {
60
- @$shortcodes[ $code ] .= 'sc-front ';
61
- }
62
 
63
  $rules = IncPopup::get_rules();
64
  $rule_headers = array(
@@ -118,7 +73,7 @@ $ordered_rules = array();
118
  style="margin-left:-20px">
119
  </i><?php _e( $item->label, PO_LANG ); ?></strong>:
120
  <?php else : ?>
121
- <?php _e( $item->label, PO_LANG ); ?>:
122
  <?php endif; ?>
123
  <em><?php echo '' . $item->info; ?>
124
  </em></li>
@@ -159,60 +114,7 @@ $ordered_rules = array();
159
  </h3>
160
 
161
  <div class="inside">
162
- <?php _e(
163
- 'You can use all your shortcodes inside the PopUp contents, ' .
164
- 'however some Plugins or Themes might provide shortcodes that ' .
165
- 'only work with the loading method "Page Footer".<br /> ' .
166
- 'This list explains which shortcodes can be used with each ' .
167
- 'loading method:', PO_LANG
168
- ); ?>
169
- <?php if ( IncPopup::use_global() ) : ?>
170
- <p><em>
171
- <?php _e(
172
- 'Important notice for shortcodes in <strong>Global ' .
173
- 'PopUps</strong>:<br />' .
174
- 'Shortcodes can be provided by a plugin or theme, so ' .
175
- 'each blog can have a different list of shortcodes. The ' .
176
- 'following list is valid for the current blog only!', PO_LANG
177
- ); ?>
178
- </em></p>
179
- <?php endif; ?>
180
- <table class="widefat tbl-shortcodes load-<?php echo esc_attr( $cur_method ); ?>">
181
- <thead>
182
- <tr>
183
- <th width="40%">
184
- <div>
185
- <?php _e( 'Shortcode', PO_LANG ); ?>
186
- </div>
187
- </th>
188
- <th class="flag load-footer">
189
- <div data-tooltip="<?php _e( 'Loading method \'Page Footer\'', PO_LANG ); ?>">
190
- <?php _e( 'Page Footer', PO_LANG ); ?>
191
- </div>
192
- </th>
193
- <th class="flag load-ajax load-front">
194
- <div data-tooltip="<?php _e( 'Loading method \'WordPress AJAX\' and \'Custom AJAX\'', PO_LANG ); ?>">
195
- <?php _e( 'AJAX', PO_LANG ); ?>
196
- </div>
197
- </th>
198
- <th class="flag">
199
- <div data-tooltip="<?php _e( 'When opening a PopUp-Preview in the Editor', PO_LANG ); ?>">
200
- <?php _e( 'Preview', PO_LANG ); ?>
201
- </div>
202
- </th>
203
- </tr>
204
- </thead>
205
- <tbody>
206
- <?php foreach ( $shortcodes as $code => $classes ) : ?>
207
- <tr class="shortcode <?php echo esc_attr( $classes ); ?>">
208
- <td><code>[<?php echo esc_html( $code ); ?>]</code></td>
209
- <td class="flag sc-front load-footer"><i class="icon dashicons"></i></td>
210
- <td class="flag sc-admin load-ajax load-front"><i class="icon dashicons"></i></td>
211
- <td class="flag sc-admin"><i class="icon dashicons"></i></td>
212
- </tr>
213
- <?php endforeach; ?>
214
- </tbody>
215
- </table>
216
  </div>
217
  </div>
218
 
3
  * Display the popup settings page.
4
  */
5
 
6
+ $loading_methods = IncPopupDatabase::get_loading_methods();
7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8
 
9
  $settings = IncPopupDatabase::get_settings();
10
  $cur_method = @$settings['loadingmethod'];
 
11
  $form_url = remove_query_arg( array( 'message', 'action', '_wpnonce' ) );
12
 
13
+
14
  // Theme compatibility.
15
  $theme_compat = IncPopupAddon_HeaderFooter::check();
16
  $theme_class = $theme_compat->okay ? 'msg-ok' : 'msg-err';
 
 
 
 
 
 
 
 
 
17
 
18
  $rules = IncPopup::get_rules();
19
  $rule_headers = array(
73
  style="margin-left:-20px">
74
  </i><?php _e( $item->label, PO_LANG ); ?></strong>:
75
  <?php else : ?>
76
+ <?php _e( $item->label, PO_LANG ); ?>:
77
  <?php endif; ?>
78
  <em><?php echo '' . $item->info; ?>
79
  </em></li>
114
  </h3>
115
 
116
  <div class="inside">
117
+ <?php include PO_VIEWS_DIR . 'info-shortcodes.php'; ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
118
  </div>
119
  </div>
120