Version Description
New: Added onboarding campaign creation guide
=
Download this release
Release Info
Developer | Icegram |
Plugin | Popups, Welcome Bar, Optins and Lead Generation Plugin – Icegram |
Version | 2.1.3 |
Comparing to | |
See all releases |
Code changes from version 2.1.2 to 2.1.3
- icegram.php +3 -3
- lite/assets/css/select2.min.css +1 -0
- lite/assets/images/action-bar-158X127.png +0 -0
- lite/assets/images/badges-158X127.png +0 -0
- lite/assets/images/icegram_logo.svg +1 -0
- lite/assets/images/sketch-inline-158X127.png +0 -0
- lite/assets/images/sketch-messenger-158X127.png +0 -0
- lite/assets/images/sketch-overlay-158X127.png +0 -0
- lite/assets/images/sketch-popup-158X127.png +0 -0
- lite/assets/images/sketch-ribbons-158X127.png +0 -0
- lite/assets/images/sketch-sidebar-158X127.png +0 -0
- lite/assets/images/sketch-stickies-158X127.png +0 -0
- lite/assets/images/sketch-tab-158X127.png +0 -0
- lite/assets/images/sketch-toast-notification-158X127.png +0 -0
- lite/assets/js/gallery.js +163 -2
- lite/assets/js/gallery.min.js +1 -1
- lite/assets/js/select2.min.js +2 -0
- lite/class-icegram.php +67 -5
- lite/dist/main.css +3 -0
- lite/dist/main.js +1 -0
- lite/gallery.php +591 -201
- readme.txt +8 -4
icegram.php
CHANGED
@@ -3,8 +3,8 @@
|
|
3 |
* Plugin Name: Icegram - Popups, Optins, CTAs & lot more...
|
4 |
* Plugin URI: https://www.icegram.com/
|
5 |
* Description: All in one solution to inspire, convert and engage your audiences. Action bars, Popup windows, Messengers, Toast notifications and more. Awesome themes and powerful rules.
|
6 |
-
* Version: 2.1.
|
7 |
-
* Tested up to: 5.9.
|
8 |
* Author: icegram
|
9 |
* Author URI: https://www.icegram.com/
|
10 |
* Copyright (c) 2014-22 Icegram
|
@@ -122,7 +122,7 @@ if ( ! defined( 'IG_PLUGIN_FILE' ) ) {
|
|
122 |
}
|
123 |
|
124 |
if ( ! defined( 'IG_PLUGIN_VERSION' ) ) {
|
125 |
-
define( 'IG_PLUGIN_VERSION', '2.1.
|
126 |
}
|
127 |
|
128 |
if ( ! defined( 'IG_PRODUCT_ID' ) ) {
|
3 |
* Plugin Name: Icegram - Popups, Optins, CTAs & lot more...
|
4 |
* Plugin URI: https://www.icegram.com/
|
5 |
* Description: All in one solution to inspire, convert and engage your audiences. Action bars, Popup windows, Messengers, Toast notifications and more. Awesome themes and powerful rules.
|
6 |
+
* Version: 2.1.3
|
7 |
+
* Tested up to: 5.9.1
|
8 |
* Author: icegram
|
9 |
* Author URI: https://www.icegram.com/
|
10 |
* Copyright (c) 2014-22 Icegram
|
122 |
}
|
123 |
|
124 |
if ( ! defined( 'IG_PLUGIN_VERSION' ) ) {
|
125 |
+
define( 'IG_PLUGIN_VERSION', '2.1.3' );
|
126 |
}
|
127 |
|
128 |
if ( ! defined( 'IG_PRODUCT_ID' ) ) {
|
lite/assets/css/select2.min.css
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
.select2-container{box-sizing:border-box;display:inline-block;margin:0;position:relative;vertical-align:middle}.select2-container .select2-selection--single{box-sizing:border-box;cursor:pointer;display:block;height:28px;user-select:none;-webkit-user-select:none}.select2-container .select2-selection--single .select2-selection__rendered{display:block;padding-left:8px;padding-right:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.select2-container .select2-selection--single .select2-selection__clear{position:relative}.select2-container[dir="rtl"] .select2-selection--single .select2-selection__rendered{padding-right:8px;padding-left:20px}.select2-container .select2-selection--multiple{box-sizing:border-box;cursor:pointer;display:block;min-height:32px;user-select:none;-webkit-user-select:none}.select2-container .select2-selection--multiple .select2-selection__rendered{display:inline-block;overflow:hidden;padding-left:8px;text-overflow:ellipsis;white-space:nowrap}.select2-container .select2-search--inline{float:left}.select2-container .select2-search--inline .select2-search__field{box-sizing:border-box;border:none;font-size:100%;margin-top:5px;padding:0}.select2-container .select2-search--inline .select2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select2-dropdown{background-color:white;border:1px solid #aaa;border-radius:4px;box-sizing:border-box;display:block;position:absolute;left:-100000px;width:100%;z-index:1051}.select2-results{display:block}.select2-results__options{list-style:none;margin:0;padding:0}.select2-results__option{padding:6px;user-select:none;-webkit-user-select:none}.select2-results__option[aria-selected]{cursor:pointer}.select2-container--open .select2-dropdown{left:0}.select2-container--open .select2-dropdown--above{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--open .select2-dropdown--below{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select2-search--dropdown{display:block;padding:4px}.select2-search--dropdown .select2-search__field{padding:4px;width:100%;box-sizing:border-box}.select2-search--dropdown .select2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select2-search--dropdown.select2-search--hide{display:none}.select2-close-mask{border:0;margin:0;padding:0;display:block;position:fixed;left:0;top:0;min-height:100%;min-width:100%;height:auto;width:auto;opacity:0;z-index:99;background-color:#fff;filter:alpha(opacity=0)}.select2-hidden-accessible{border:0 !important;clip:rect(0 0 0 0) !important;-webkit-clip-path:inset(50%) !important;clip-path:inset(50%) !important;height:1px !important;overflow:hidden !important;padding:0 !important;position:absolute !important;width:1px !important;white-space:nowrap !important}.select2-container--default .select2-selection--single{background-color:#fff;border:1px solid #aaa;border-radius:4px}.select2-container--default .select2-selection--single .select2-selection__rendered{color:#444;line-height:28px}.select2-container--default .select2-selection--single .select2-selection__clear{cursor:pointer;float:right;font-weight:bold}.select2-container--default .select2-selection--single .select2-selection__placeholder{color:#999}.select2-container--default .select2-selection--single .select2-selection__arrow{height:26px;position:absolute;top:1px;right:1px;width:20px}.select2-container--default .select2-selection--single .select2-selection__arrow b{border-color:#888 transparent transparent transparent;border-style:solid;border-width:5px 4px 0 4px;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__clear{float:left}.select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__arrow{left:1px;right:auto}.select2-container--default.select2-container--disabled .select2-selection--single{background-color:#eee;cursor:default}.select2-container--default.select2-container--disabled .select2-selection--single .select2-selection__clear{display:none}.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #888 transparent;border-width:0 4px 5px 4px}.select2-container--default .select2-selection--multiple{background-color:white;border:1px solid #aaa;border-radius:4px;cursor:text}.select2-container--default .select2-selection--multiple .select2-selection__rendered{box-sizing:border-box;list-style:none;margin:0;padding:0 5px;width:100%}.select2-container--default .select2-selection--multiple .select2-selection__rendered li{list-style:none}.select2-container--default .select2-selection--multiple .select2-selection__clear{cursor:pointer;float:right;font-weight:bold;margin-top:5px;margin-right:10px;padding:1px}.select2-container--default .select2-selection--multiple .select2-selection__choice{background-color:#e4e4e4;border:1px solid #aaa;border-radius:4px;cursor:default;float:left;margin-right:5px;margin-top:5px;padding:0 5px}.select2-container--default .select2-selection--multiple .select2-selection__choice__remove{color:#999;cursor:pointer;display:inline-block;font-weight:bold;margin-right:2px}.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover{color:#333}.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice,.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-search--inline{float:right}.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice{margin-left:5px;margin-right:auto}.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove{margin-left:2px;margin-right:auto}.select2-container--default.select2-container--focus .select2-selection--multiple{border:solid black 1px;outline:0}.select2-container--default.select2-container--disabled .select2-selection--multiple{background-color:#eee;cursor:default}.select2-container--default.select2-container--disabled .select2-selection__choice__remove{display:none}.select2-container--default.select2-container--open.select2-container--above .select2-selection--single,.select2-container--default.select2-container--open.select2-container--above .select2-selection--multiple{border-top-left-radius:0;border-top-right-radius:0}.select2-container--default.select2-container--open.select2-container--below .select2-selection--single,.select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple{border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--default .select2-search--dropdown .select2-search__field{border:1px solid #aaa}.select2-container--default .select2-search--inline .select2-search__field{background:transparent;border:none;outline:0;box-shadow:none;-webkit-appearance:textfield}.select2-container--default .select2-results>.select2-results__options{max-height:200px;overflow-y:auto}.select2-container--default .select2-results__option[role=group]{padding:0}.select2-container--default .select2-results__option[aria-disabled=true]{color:#999}.select2-container--default .select2-results__option[aria-selected=true]{background-color:#ddd}.select2-container--default .select2-results__option .select2-results__option{padding-left:1em}.select2-container--default .select2-results__option .select2-results__option .select2-results__group{padding-left:0}.select2-container--default .select2-results__option .select2-results__option .select2-results__option{margin-left:-1em;padding-left:2em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-2em;padding-left:3em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-3em;padding-left:4em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-4em;padding-left:5em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-5em;padding-left:6em}.select2-container--default .select2-results__option--highlighted[aria-selected]{background-color:#5897fb;color:white}.select2-container--default .select2-results__group{cursor:default;display:block;padding:6px}.select2-container--classic .select2-selection--single{background-color:#f7f7f7;border:1px solid #aaa;border-radius:4px;outline:0;background-image:-webkit-linear-gradient(top, #fff 50%, #eee 100%);background-image:-o-linear-gradient(top, #fff 50%, #eee 100%);background-image:linear-gradient(to bottom, #fff 50%, #eee 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0)}.select2-container--classic .select2-selection--single:focus{border:1px solid #5897fb}.select2-container--classic .select2-selection--single .select2-selection__rendered{color:#444;line-height:28px}.select2-container--classic .select2-selection--single .select2-selection__clear{cursor:pointer;float:right;font-weight:bold;margin-right:10px}.select2-container--classic .select2-selection--single .select2-selection__placeholder{color:#999}.select2-container--classic .select2-selection--single .select2-selection__arrow{background-color:#ddd;border:none;border-left:1px solid #aaa;border-top-right-radius:4px;border-bottom-right-radius:4px;height:26px;position:absolute;top:1px;right:1px;width:20px;background-image:-webkit-linear-gradient(top, #eee 50%, #ccc 100%);background-image:-o-linear-gradient(top, #eee 50%, #ccc 100%);background-image:linear-gradient(to bottom, #eee 50%, #ccc 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFCCCCCC', GradientType=0)}.select2-container--classic .select2-selection--single .select2-selection__arrow b{border-color:#888 transparent transparent transparent;border-style:solid;border-width:5px 4px 0 4px;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.select2-container--classic[dir="rtl"] .select2-selection--single .select2-selection__clear{float:left}.select2-container--classic[dir="rtl"] .select2-selection--single .select2-selection__arrow{border:none;border-right:1px solid #aaa;border-radius:0;border-top-left-radius:4px;border-bottom-left-radius:4px;left:1px;right:auto}.select2-container--classic.select2-container--open .select2-selection--single{border:1px solid #5897fb}.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow{background:transparent;border:none}.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #888 transparent;border-width:0 4px 5px 4px}.select2-container--classic.select2-container--open.select2-container--above .select2-selection--single{border-top:none;border-top-left-radius:0;border-top-right-radius:0;background-image:-webkit-linear-gradient(top, #fff 0%, #eee 50%);background-image:-o-linear-gradient(top, #fff 0%, #eee 50%);background-image:linear-gradient(to bottom, #fff 0%, #eee 50%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0)}.select2-container--classic.select2-container--open.select2-container--below .select2-selection--single{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0;background-image:-webkit-linear-gradient(top, #eee 50%, #fff 100%);background-image:-o-linear-gradient(top, #eee 50%, #fff 100%);background-image:linear-gradient(to bottom, #eee 50%, #fff 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFFFFFFF', GradientType=0)}.select2-container--classic .select2-selection--multiple{background-color:white;border:1px solid #aaa;border-radius:4px;cursor:text;outline:0}.select2-container--classic .select2-selection--multiple:focus{border:1px solid #5897fb}.select2-container--classic .select2-selection--multiple .select2-selection__rendered{list-style:none;margin:0;padding:0 5px}.select2-container--classic .select2-selection--multiple .select2-selection__clear{display:none}.select2-container--classic .select2-selection--multiple .select2-selection__choice{background-color:#e4e4e4;border:1px solid #aaa;border-radius:4px;cursor:default;float:left;margin-right:5px;margin-top:5px;padding:0 5px}.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove{color:#888;cursor:pointer;display:inline-block;font-weight:bold;margin-right:2px}.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove:hover{color:#555}.select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice{float:right;margin-left:5px;margin-right:auto}.select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove{margin-left:2px;margin-right:auto}.select2-container--classic.select2-container--open .select2-selection--multiple{border:1px solid #5897fb}.select2-container--classic.select2-container--open.select2-container--above .select2-selection--multiple{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select2-container--classic.select2-container--open.select2-container--below .select2-selection--multiple{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--classic .select2-search--dropdown .select2-search__field{border:1px solid #aaa;outline:0}.select2-container--classic .select2-search--inline .select2-search__field{outline:0;box-shadow:none}.select2-container--classic .select2-dropdown{background-color:#fff;border:1px solid transparent}.select2-container--classic .select2-dropdown--above{border-bottom:none}.select2-container--classic .select2-dropdown--below{border-top:none}.select2-container--classic .select2-results>.select2-results__options{max-height:200px;overflow-y:auto}.select2-container--classic .select2-results__option[role=group]{padding:0}.select2-container--classic .select2-results__option[aria-disabled=true]{color:grey}.select2-container--classic .select2-results__option--highlighted[aria-selected]{background-color:#3875d7;color:#fff}.select2-container--classic .select2-results__group{cursor:default;display:block;padding:6px}.select2-container--classic.select2-container--open .select2-dropdown{border-color:#5897fb}
|
lite/assets/images/action-bar-158X127.png
ADDED
Binary file
|
lite/assets/images/badges-158X127.png
ADDED
Binary file
|
lite/assets/images/icegram_logo.svg
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<svg image-rendering="optimizeQuality" shape-rendering="geometricPrecision" viewBox="0 0 140 42" xmlns="http://www.w3.org/2000/svg"><path d="M59.1 13.8c0-1.2-1-2.1-2.3-2.1-1.2 0-2.2 1-2.2 2.1s1 2.1 2.2 2.1 2.3-.9 2.3-2.1m-.2 17.4V17.8h-4.1v13.4zm12-.7l-1.3-3c-.4.3-1.1.5-1.8.5-1.4 0-2.5-1.4-2.5-3.6 0-2.3 1-3.6 2.5-3.6.7 0 1.3.2 1.8.5l1.3-2.9c-.9-.6-1.9-.9-3.7-.9-3.3 0-6.1 2.3-6.1 7s2.8 7 6.1 7c1.8 0 2.8-.4 3.7-1m13.3-6.7c0-3.7-2.1-6.3-6-6.3-4 0-6.4 2.9-6.4 7 0 4 2.3 7 6.9 7 2 0 4-.4 5.2-1l-1.1-3c-1 .5-2.4.8-3.8.8-1.7 0-2.9-.7-3.3-2.2L84 25c.2-.4.2-.8.2-1.2m-3.9-.8l-4.7.6c0-2.2 1.1-3.2 2.6-3.2 1.3 0 2.1.9 2.1 2.6m16.8 8.2V18.5c-1-.6-2.6-.9-4.2-.9-3.7 0-6.4 2.1-6.4 6.8 0 4.1 2.4 6.4 5.7 6.4 1 0 2.2-.3 2.9-.6v1.1c0 2.4-1.2 3.8-3.6 3.8-1.4 0-2.8-.4-3.7-.9l-.6 1.6c1 .5 2.7 1 4.5 1 3.4 0 5.4-2.1 5.4-5.6m-2-2.7c-.6.3-1.6.5-2.5.5-2.3 0-4-1.6-4-4.8 0-3.6 1.9-5 4.2-5 .9 0 1.8.2 2.3.4zm11.8-10.9c-.4-.1-.8-.1-1.3-.1-1.8 0-3.7.4-4.9.9v12.7h2.1V19.7c.6-.3 1.6-.4 2.5-.4.4 0 .8 0 1.2.1zM118 30.5v-8.6c0-3.2-2-4.4-5-4.4-1.7 0-3.4.5-4.4.9l.5 1.4c.9-.4 2.4-.8 3.7-.8 1.9 0 3.2.6 3.2 2.6v1c-4 .2-8.2.8-8.2 4.6 0 2.5 1.8 4.1 5.5 4.1 1.8.1 3.7-.3 4.7-.8m-2-1c-.5.2-1.7.4-2.7.4-2.3 0-3.5-1-3.5-2.6 0-2.8 3.2-3 6.2-3.1zm22.7 1.7v-9.4c0-2.6-1.8-4.3-4.6-4.3-1.9 0-3.5.8-4.4 1.5-.7-.8-2.2-1.5-4.3-1.5-1.7 0-3.3.4-4.6.9v12.7h2.1V19.7c.7-.3 1.6-.5 2.7-.5 1.9 0 3.1.9 3.1 2.4v9.5h2.1V20.4c.7-.7 1.7-1.1 2.9-1.1 1.7 0 2.9 1 2.9 2.8v9.2z" fill="#373435"/><path clip-rule="evenodd" d="M21.3 1c-11.1 0-20 9-20 20s9 20 20 20 20-9 20-20-8.9-20-20-20m0 6.3C13.8 7.3 7.7 13.4 7.7 21c0 2.6.7 4.9 1.9 7l-1.3 5.8c-.1.4.4.8.7.8l6-1.4c1.9 1 4.1 1.6 6.4 1.6C28.9 34.7 35 28.6 35 21S28.9 7.3 21.3 7.3m-5.6 7.5H27c.5 0 .9.4.9.9s-.4.9-.9.9H15.7c-.5 0-.9-.4-.9-.9s.4-.9.9-.9m0 5.4H27c.5 0 .9.4.9.9s-.4.9-.9.9H15.7c-.5 0-.9-.4-.9-.9s.4-.9.9-.9m0 5.4H27c.5 0 .9.4.9.9s-.4.9-.9.9H15.7c-.5 0-.9-.4-.9-.9s.4-.9.9-.9" fill="#32009d" fill-rule="evenodd"/></svg>
|
lite/assets/images/sketch-inline-158X127.png
ADDED
Binary file
|
lite/assets/images/sketch-messenger-158X127.png
ADDED
Binary file
|
lite/assets/images/sketch-overlay-158X127.png
ADDED
Binary file
|
lite/assets/images/sketch-popup-158X127.png
ADDED
Binary file
|
lite/assets/images/sketch-ribbons-158X127.png
ADDED
Binary file
|
lite/assets/images/sketch-sidebar-158X127.png
ADDED
Binary file
|
lite/assets/images/sketch-stickies-158X127.png
ADDED
Binary file
|
lite/assets/images/sketch-tab-158X127.png
ADDED
Binary file
|
lite/assets/images/sketch-toast-notification-158X127.png
ADDED
Binary file
|
lite/assets/js/gallery.js
CHANGED
@@ -75,7 +75,7 @@ themes.view.Appearance = wp.Backbone.View.extend({
|
|
75 |
render: function() {
|
76 |
// Setup the main theme view
|
77 |
// with the current theme collection
|
78 |
-
|
79 |
this.view = new themes.view.Themes({
|
80 |
collection: this.collection,
|
81 |
parent: this
|
@@ -1485,6 +1485,11 @@ themes.view.Installer = themes.view.Appearance.extend({
|
|
1485 |
'click .favorites-form-submit' : 'saveUsername',
|
1486 |
'keyup #wporg-username-input': 'saveUsername',
|
1487 |
'click .igg-sidebar .category-type': 'filter',
|
|
|
|
|
|
|
|
|
|
|
1488 |
// 'click .igg-content .category-type':'filter',
|
1489 |
// 'click .category.custom':'customFilter'
|
1490 |
'click .category.not_have_sub_cat':'filter'
|
@@ -1667,10 +1672,133 @@ themes.view.Installer = themes.view.Appearance.extend({
|
|
1667 |
|
1668 |
this.collection.query( request );
|
1669 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1670 |
|
1671 |
filter: function( event ) {
|
1672 |
var element = $(event.currentTarget);
|
1673 |
-
|
1674 |
// Getting category-type and type-value
|
1675 |
// Eg: category-type="plan" and plan="free"
|
1676 |
// Eg: category-type="msg-type" and msg-type="badge"
|
@@ -2006,6 +2134,39 @@ $( document ).ready(function() {
|
|
2006 |
$( '.broken-themes .delete-theme' ).on( 'click', function() {
|
2007 |
return confirm( _wpThemeSettings.settings.confirmDelete );
|
2008 |
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009 |
});
|
2010 |
|
2011 |
})( jQuery );
|
75 |
render: function() {
|
76 |
// Setup the main theme view
|
77 |
// with the current theme collection
|
78 |
+
|
79 |
this.view = new themes.view.Themes({
|
80 |
collection: this.collection,
|
81 |
parent: this
|
1485 |
'click .favorites-form-submit' : 'saveUsername',
|
1486 |
'keyup #wporg-username-input': 'saveUsername',
|
1487 |
'click .igg-sidebar .category-type': 'filter',
|
1488 |
+
'click #ig-select-goal': 'setSubcat',
|
1489 |
+
'click .ig-message-type-select': 'setFilter',
|
1490 |
+
'click .igg-content .category-type': 'filter',
|
1491 |
+
'click .igg-filters .gallery_filters': 'galleryfilter',
|
1492 |
+
'click .igg-filters .category-type': 'filter',
|
1493 |
// 'click .igg-content .category-type':'filter',
|
1494 |
// 'click .category.custom':'customFilter'
|
1495 |
'click .category.not_have_sub_cat':'filter'
|
1672 |
|
1673 |
this.collection.query( request );
|
1674 |
},
|
1675 |
+
|
1676 |
+
setSubcat: function(event){
|
1677 |
+
$('.ig-onboarding-campaign-goal').hide();
|
1678 |
+
$('.ig-onboarding-campaign-type').show();
|
1679 |
+
},
|
1680 |
+
|
1681 |
+
setFilter: function(event){
|
1682 |
+
this.onboarding_filter();
|
1683 |
+
$('.igg-content, .description, .igg-filters').show();
|
1684 |
+
$('.ig-onboarding-campaign-type, .ig-logo').hide();
|
1685 |
+
},
|
1686 |
+
|
1687 |
+
onboarding_filter: function( event ) {
|
1688 |
+
var filter_type = [];
|
1689 |
+
var campaign_goal = $('[name="ig-campaign-goal"]:checked');
|
1690 |
+
var category_goal = campaign_goal.attr('category');
|
1691 |
+
var filtergoal = campaign_goal.attr(category_goal).split(',').map(Number);
|
1692 |
+
var message_type = $('[name="ig-campaign-type"]:checked');
|
1693 |
+
|
1694 |
+
var category_type = message_type.attr('category');
|
1695 |
+
$.each($('[name="ig-campaign-type"]:checked'), function(){
|
1696 |
+
filter_type.push(parseInt( $(this).attr(category_type ) ) );
|
1697 |
+
});
|
1698 |
+
|
1699 |
+
if( Object.keys(filter_type).length === 0){
|
1700 |
+
|
1701 |
+
var message_type = $('[name="ig-campaign-type"]:first');
|
1702 |
+
category_type = message_type.attr('category');
|
1703 |
+
$.each($('[name="ig-campaign-type"]'), function(){
|
1704 |
+
filter_type.push(parseInt( $(this).attr(category_type ) ) );
|
1705 |
+
});
|
1706 |
+
}
|
1707 |
+
|
1708 |
+
// To show title and sub-title after filtering..
|
1709 |
+
// var whereClause = '';
|
1710 |
+
var filteredResults;
|
1711 |
+
var template_count = 0;
|
1712 |
+
this.collection.reset( themes.data.themes, { silent: true } );
|
1713 |
+
|
1714 |
+
filteredResults = this.collection.filter(function(model){
|
1715 |
+
var valarray_type = _.intersection(model.get('custom_category'), filter_type);
|
1716 |
+
var valarray = _.intersection(model.get('custom_category'), filtergoal);
|
1717 |
+
if( valarray_type.length > 0 && valarray.length > 0 ){
|
1718 |
+
template_count++;
|
1719 |
+
return model ;
|
1720 |
+
}
|
1721 |
+
});
|
1722 |
+
|
1723 |
+
// trying filters..
|
1724 |
+
if(filteredResults !== undefined) {
|
1725 |
+
this.collection.reset(filteredResults);
|
1726 |
+
this.collection.filtered = true;
|
1727 |
+
delete filteredResults;
|
1728 |
+
}
|
1729 |
+
this.collection.trigger( 'update' );
|
1730 |
+
this.collection.trigger( 'query:success', template_count );
|
1731 |
+
|
1732 |
+
|
1733 |
+
},
|
1734 |
+
|
1735 |
+
galleryfilter: function( event ) {
|
1736 |
+
var filter_type = [];
|
1737 |
+
var filtergoal = [];
|
1738 |
+
var category_goal, category_type;
|
1739 |
+
|
1740 |
+
var campaign_goal = $('.gallery_campaign_goal option:selected');
|
1741 |
+
if( campaign_goal.attr('use-case') != 0 ) {
|
1742 |
+
campaign_goal = $('.gallery_campaign_goal option:selected');
|
1743 |
+
category_goal = campaign_goal.attr('category');
|
1744 |
+
$(campaign_goal).each( function(index, value) {
|
1745 |
+
filtergoal.push(parseInt( $(value).attr(category_goal ) ) );
|
1746 |
+
});
|
1747 |
+
}
|
1748 |
+
|
1749 |
+
var message_type = $('.gallery_message_type option:selected');
|
1750 |
+
if( message_type.attr('message-type') != 0 ) {
|
1751 |
+
message_type = $('.gallery_message_type option:selected');
|
1752 |
+
category_type = message_type.attr('category');
|
1753 |
+
$(message_type).each( function(index, value) {
|
1754 |
+
filter_type.push(parseInt( $(value).attr(category_type ) ) );
|
1755 |
+
});
|
1756 |
+
}
|
1757 |
+
|
1758 |
+
if( Object.keys(filtergoal).length === 0 && Object.keys(filter_type).length === 0 ){
|
1759 |
+
return;
|
1760 |
+
} else if ( Object.keys(filtergoal).length === 0 ) {
|
1761 |
+
category_goal = 'use-case';
|
1762 |
+
$(".gallery_campaign_goal option").each(function(){
|
1763 |
+
filtergoal.push(parseInt( $(this).attr(category_goal ) ) );
|
1764 |
+
});
|
1765 |
+
} else if ( Object.keys(filter_type).length === 0 ) {
|
1766 |
+
category_type = 'message-type';
|
1767 |
+
$(".gallery_message_type option").each(function(){
|
1768 |
+
filter_type.push(parseInt( $(this).attr(category_type ) ) );
|
1769 |
+
});
|
1770 |
+
}
|
1771 |
+
|
1772 |
+
// To show title and sub-title after filtering..
|
1773 |
+
// var whereClause = '';
|
1774 |
+
var filteredResults;
|
1775 |
+
var template_count = 0;
|
1776 |
+
this.collection.reset( themes.data.themes, { silent: true } );
|
1777 |
+
|
1778 |
+
filteredResults = this.collection.filter(function(model){
|
1779 |
+
var valarray_type = _.intersection(model.get('custom_category'), filter_type);
|
1780 |
+
var valarray = _.intersection(model.get('custom_category'), filtergoal);
|
1781 |
+
if( valarray_type.length > 0 && valarray.length > 0 ){
|
1782 |
+
template_count++;
|
1783 |
+
return model ;
|
1784 |
+
}
|
1785 |
+
});
|
1786 |
+
|
1787 |
+
// trying filters..
|
1788 |
+
if(filteredResults !== undefined) {
|
1789 |
+
this.collection.reset(filteredResults);
|
1790 |
+
this.collection.filtered = true;
|
1791 |
+
delete filteredResults;
|
1792 |
+
}
|
1793 |
+
this.collection.trigger( 'update' );
|
1794 |
+
this.collection.trigger( 'query:success', template_count );
|
1795 |
+
|
1796 |
+
|
1797 |
+
},
|
1798 |
|
1799 |
filter: function( event ) {
|
1800 |
var element = $(event.currentTarget);
|
1801 |
+
|
1802 |
// Getting category-type and type-value
|
1803 |
// Eg: category-type="plan" and plan="free"
|
1804 |
// Eg: category-type="msg-type" and msg-type="badge"
|
2134 |
$( '.broken-themes .delete-theme' ).on( 'click', function() {
|
2135 |
return confirm( _wpThemeSettings.settings.confirmDelete );
|
2136 |
});
|
2137 |
+
|
2138 |
+
var filter_type = [];
|
2139 |
+
var filter_goal = [];
|
2140 |
+
|
2141 |
+
jQuery('.ig-message-type-select').click(function() {
|
2142 |
+
jQuery('[name="ig-campaign-goal"]:checked').each( function() {
|
2143 |
+
var attr_goal = jQuery(this).val();
|
2144 |
+
filter_goal.push( attr_goal );
|
2145 |
+
});
|
2146 |
+
|
2147 |
+
jQuery('[name="ig-campaign-type"]:checked').each( function() {
|
2148 |
+
var attr_type = jQuery(this).val();
|
2149 |
+
filter_type.push( attr_type );
|
2150 |
+
});
|
2151 |
+
|
2152 |
+
jQuery('.gallery_campaign_goal').val(filter_goal).trigger('change');
|
2153 |
+
jQuery('.gallery_message_type').val(filter_type).trigger('change');
|
2154 |
+
});
|
2155 |
+
|
2156 |
+
jQuery('.gallery_campaign_goal, .gallery_message_type').select2();
|
2157 |
+
jQuery(".gallery_campaign_goal").select2({
|
2158 |
+
placeholder: "Choose your goals"
|
2159 |
+
});
|
2160 |
+
|
2161 |
+
jQuery(".gallery_message_type").select2({
|
2162 |
+
placeholder: "Select message types"
|
2163 |
+
});
|
2164 |
+
|
2165 |
+
jQuery(".ig-reset-button").click(function() {
|
2166 |
+
jQuery('.gallery_campaign_goal').val('').trigger('change');
|
2167 |
+
jQuery('.gallery_message_type').val('').trigger('change');
|
2168 |
+
});
|
2169 |
+
|
2170 |
});
|
2171 |
|
2172 |
})( jQuery );
|
lite/assets/js/gallery.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
window.wp=window.wp||{},function(a){var b,c;b=wp.themes=wp.themes||{},b.data=_wpThemeSettings,c=b.data.l10n,b.isInstall=b.data.settings.isInstall,_.extend(b,{model:{},view:{},routes:{},router:{},template:wp.template}),b.Model=Backbone.Model.extend({initialize:function(){var a;-1!==_.indexOf(b.data.installedThemes,this.get("slug"))&&this.set({installed:!0}),this.set({id:this.get("id")}),this.has("sections")&&(a=this.get("sections").description,this.set({description:a})),this.has("plan")&&this.set({plan_name:d(this.get("plan"))})}}),b.view.Appearance=wp.Backbone.View.extend({el:".wrap .theme-browser",events:{"click .filter-links li > a":"onSort"},window:a(window),page:0,activeClass:"current",initialize:function(a){_.bindAll(this,"scroller"),this.SearchView=a.SearchView?a.SearchView:b.view.Search,this.window.bind("scroll",_.throttle(this.scroller,300))},render:function(){this.view=new b.view.Themes({collection:this.collection,parent:this}),this.search(),this.view.render(),this.$el.append(this.view.el).addClass("rendered"),this.$el.append('<br class="clear"/>')},browse:function(a){if(this.collection.length<=0&&this.collection.query({browse:a}),"featured"==a||"all"==a)this.collection.query({browse:a});else{var b;if(b=this.collection.filter(function(b){var c=_.invert(b.attributes.tags);return c.hasOwnProperty(a)?!0:void 0})){this.collection.reset(b);var c=this.collection.length}}this.collection.trigger("update"),this.collection.trigger("query:success",c)},onSort:function(c){var d=a(c.target),e=d.data("sort");c.preventDefault(),a("body").removeClass("filters-applied show-filters"),d.hasClass(this.activeClass)||(this.collection.reset(b.data.themes,{silent:!0}),this.sort(e),b.router.navigate(b.router.baseUrl(b.router.browsePath+e)))},sort:function(b){this.clearSearch(),a(".filter-links li > a, .theme-filter").removeClass(this.activeClass),a('[data-sort="'+b+'"]').addClass(this.activeClass),"favorites"===b?a("body").addClass("show-favorites-form"):a("body").removeClass("show-favorites-form"),this.browse(b)},clearSearch:function(){a("#wp-filter-search-input").val("")},searchContainer:a(".search-form"),search:function(){var d,e=this;1!==b.data.themes.length&&(d=new this.SearchView({collection:e.collection,parent:this}),d.render(),this.searchContainer.append(a.parseHTML('<label class="screen-reader-text" for="wp-filter-search-input">'+c.search+"</label>")).append(d.el))},scroller:function(){var a,b,c=this;a=this.window.scrollTop()+c.window.height(),b=c.$el.offset().top+c.$el.outerHeight(!1)-c.window.height(),b=Math.round(.9*b),a>b&&this.trigger("theme:scroll")}}),b.Collection=Backbone.Collection.extend({model:b.Model,terms:"",doSearch:function(c){this.terms!==c&&(this.terms=c,this.terms.length>0&&this.search(this.terms),""===this.terms&&(this.reset(b.data.themes),a("body").removeClass("no-results")),this.trigger("update"))},search:function(c){var d,e,f,g,h,i;this.reset(b.data.themes,{silent:!0}),c=c.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"),c=c.replace(/ /g,")(?=.*"),d=new RegExp("^(?=.*"+c+").+","i"),e=this.filter(function(a){return g=a.get("name").replace(/(<([^>]+)>)/gi,""),h=a.get("description").replace(/(<([^>]+)>)/gi,""),i=a.get("author").replace(/(<([^>]+)>)/gi,""),f=_.union(g,a.get("id"),h,i,a.get("tags")),d.test(a.get("author"))&&c.length>2&&a.set("displayAuthor",!0),d.test(f)}),0===e.length?this.trigger("query:empty"):a("body").removeClass("no-results"),this.reset(e)},paginate:function(a){var b=this;return a=a||0,b=_(b.rest(20*a)),b=_(b.first(20))},count:!1,query:function(c){var d,e,f,g=this.queries,h=this;if(this.currentQuery.request=c,d=_.find(g,function(a){return _.isEqual(a.request,c)}),e=_.has(c,"page"),e||(this.currentQuery.page=1),d||e){if(e)return this.apiCall(c,e).then(function(a){h.add(a.themes),h.trigger("query:success"),h.loadingThemes=!1}).fail(function(){h.trigger("query:fail")});0===d.themes.length?h.trigger("query:empty"):a("body").removeClass("no-results"),_.isNumber(d.total)&&(this.count=d.total),this.reset(d.themes),d.total||(this.count=this.length),this.trigger("update"),this.trigger("query:success",this.count)}else{if(b.data.themes){data=b.data.themes,h.add(data),"undefined"!=typeof c.id&&(data=h.get(c.id),h.set(data));var i=_.sortBy(h.models,function(a){return a.attributes.modified});h.reset(i.reverse()),f=data.length,g.push({themes:data,request:c,total:f})}h.trigger("update"),h.trigger("query:success",f),data.themes&&0===data.themes.length&&h.trigger("query:empty")}},queries:[],currentQuery:{page:1,request:{}},loadingThemes:!1}),b.view.Theme=wp.Backbone.View.extend({className:"theme",state:"grid",html:b.template("theme"),events:{click:"preview",keydown:"preview",touchend:"preview",keyup:"addFocus",touchmove:"preventExpand"},touchDrag:!1,render:function(){var a=this.model.toJSON();this.$el.html(this.html(a)).attr({tabindex:0,"data-rating":a.rating,"data-plan":a.plan,"plan-name":a.plan_name}),a.custom_category&&a.custom_category.length>0&&this.$el.html(this.html(a)).attr({"data-categories":a.custom_category.join(" ")}),this.$el.addClass("igg-card"),this.$el.addClass(a.plan_name),this.model.get("displayAuthor")&&this.$el.addClass("display-author"),this.model.get("installed")&&this.$el.addClass("is-installed")},activeTheme:function(){this.model.get("active")&&this.$el.addClass("active")},addFocus:function(){var b=a(":focus").hasClass("theme")?a(":focus"):a(":focus").parents(".theme");a(".theme.focus").removeClass("focus"),b.addClass("focus")},expand:function(c){var d=this;return c=c||window.event,"keydown"!==c.type||13===c.which||32===c.which?this.touchDrag===!0?this.touchDrag=!1:void(a(c.target).is(".theme-actions a")||(b.focusedTheme=this.$el,this.trigger("theme:expand",d.model.cid))):void 0},preventExpand:function(){this.touchDrag=!0},preview:function(c){var d,e,f=this;return c=c||window.event,this.touchDrag===!0?this.touchDrag=!1:void(a(c.target).hasClass("button-primary")||"keydown"===c.type&&13!==c.which&&32!==c.which||"keydown"===c.type&&13!==c.which&&a(":focus").hasClass("button")||(c.preventDefault(),c=c||window.event,b.focusedTheme=this.$el,e=new b.view.Preview({model:this.model}),e.render(),this.setNavButtonsState(),1===this.model.collection.length?e.$el.addClass("no-navigation"):e.$el.removeClass("no-navigation"),this.listenTo(e,"theme:next",function(){return d=f.model,_.isUndefined(f.current)||(d=f.current),f.current=f.model.collection.at(f.model.collection.indexOf(d)+1),_.isUndefined(f.current)?(f.options.parent.parent.trigger("theme:end"),f.current=d):(e.model=f.current,e.render(),this.setNavButtonsState(),void a(".next-theme").focus())}).listenTo(e,"theme:previous",function(){d=f.model,0!==f.model.collection.indexOf(f.current)&&(_.isUndefined(f.current)||(d=f.current),f.current=f.model.collection.at(f.model.collection.indexOf(d)-1),_.isUndefined(f.current)||(e.model=f.current,e.render(),this.setNavButtonsState(),a(".previous-theme").focus()))}),this.listenTo(e,"preview:close",function(){f.current=f.model})))},setNavButtonsState:function(){var b=a(".theme-install-overlay"),c=_.isUndefined(this.current)?this.model:this.current;0===this.model.collection.indexOf(c)&&b.find(".previous-theme").addClass("disabled"),_.isUndefined(this.model.collection.at(this.model.collection.indexOf(c)+1))&&b.find(".next-theme").addClass("disabled")}}),b.view.Details=wp.Backbone.View.extend({className:"theme-overlay",events:{click:"collapse","click .delete-theme":"deleteTheme","click .left":"previousTheme","click .right":"nextTheme"},html:b.template("theme-single"),render:function(){var a=this.model.toJSON();this.$el.html(this.html(a)),this.activeTheme(),this.navigation(),this.screenshotCheck(this.$el),this.containFocus(this.$el)},activeTheme:function(){this.$el.toggleClass("active",this.model.get("active"))},containFocus:function(b){var c;_.delay(function(){a(".theme-wrap a.button-primary:visible").focus()},500),b.on("keydown.wp-themes",function(d){9===d.which&&(c=a(d.target),c.is("button.left")&&d.shiftKey?(b.find(".theme-actions a:last-child").focus(),d.preventDefault()):c.is(".theme-actions a:last-child")&&(b.find("button.left").focus(),d.preventDefault()))})},collapse:function(c){var d,e=this;c=c||window.event,1!==b.data.themes.length&&(a(c.target).is(".theme-backdrop")||a(c.target).is(".close")||27===c.keyCode)&&(a("body").addClass("closing-overlay"),this.$el.fadeOut(130,function(){a("body").removeClass("closing-overlay"),e.closeOverlay(),d=document.body.scrollTop,b.router.navigate(b.router.baseUrl("")),document.body.scrollTop=d,b.focusedTheme&&b.focusedTheme.focus()}))},navigation:function(){this.model.cid===this.model.collection.at(0).cid&&this.$el.find(".left").addClass("disabled"),this.model.cid===this.model.collection.at(this.model.collection.length-1).cid&&this.$el.find(".right").addClass("disabled")},closeOverlay:function(){a("body").removeClass("modal-open"),this.remove(),this.unbind(),this.trigger("theme:collapse")},deleteTheme:function(){return confirm(b.data.settings.confirmDelete)},nextTheme:function(){var a=this;return a.trigger("theme:next",a.model.cid),!1},previousTheme:function(){var a=this;return a.trigger("theme:previous",a.model.cid),!1},screenshotCheck:function(a){var b,c;b=a.find(".screenshot img"),c=new Image,c.src=b.attr("src"),c.width&&c.width<=300&&a.addClass("small-screenshot")}}),b.view.Preview=b.view.Details.extend({className:"wp-full-overlay expanded",el:".ig-gallery-wrap .theme-install-overlay",events:{"click .close-full-overlay":"close","click .collapse-sidebar":"collapse","click .previous-theme":"previousTheme","click .next-theme":"nextTheme",keyup:"keyEvent"},html:b.template("theme-preview"),render:function(){var c=this,d=this.model.toJSON();this.$el.removeClass("iframe-ready").html(this.html(d)),b.router.navigate(b.router.baseUrl(b.router.themePath+this.model.get("id")),{replace:!0}),this.$el.fadeIn(200,function(){a("body").addClass("theme-installer-active full-overlay-active"),a(".close-full-overlay").focus()}),this.$el.find("iframe").one("load",function(){c.iframeLoaded()}),d.plan<=b.data.settings.ig_plan?this.$el.find(".theme-install").show():this.$el.find(".ig-get-pro").show()},iframeLoaded:function(){this.$el.addClass("iframe-ready")},close:function(){return this.$el.hide(200,function(){a("body").removeClass("theme-installer-active full-overlay-active"),b.focusedTheme&&b.focusedTheme.focus()}).removeClass("iframe-ready"),b.router.navigate(b.router.baseUrl("")),this.trigger("preview:close"),this.undelegateEvents(),this.unbind(),!1},collapse:function(b){var d=a(b.currentTarget);return"true"===d.attr("aria-expanded")?d.attr({"aria-expanded":"false","aria-label":c.expandSidebar}):d.attr({"aria-expanded":"true","aria-label":c.collapseSidebar}),this.$el.toggleClass("collapsed").toggleClass("expanded"),!1},keyEvent:function(a){27===a.keyCode&&(this.undelegateEvents(),this.close()),39===a.keyCode&&_.once(this.nextTheme()),37===a.keyCode&&this.previousTheme()}}),b.view.Themes=wp.Backbone.View.extend({className:"themes",$overlay:a("div.theme-overlay"),index:0,count:a(".wp-core-ui .theme-count"),liveThemeCount:0,initialize:function(b){var c=this;this.parent=b.parent,this.setView("grid"),c.currentTheme(),this.listenTo(c.collection,"update",function(){c.parent.page=0,c.currentTheme(),c.render(this)}),this.listenTo(c.collection,"query:success",function(a){_.isNumber(a)?(c.count.text(a),c.announceSearchResults(a)):(c.count.text(c.collection.length),c.announceSearchResults(c.collection.length))}),this.listenTo(c.collection,"query:empty",function(){a("body").addClass("no-results")}),this.listenTo(this.parent,"theme:scroll",function(){c.renderThemes(c.parent.page)}),this.listenTo(this.parent,"theme:close",function(){c.overlay&&c.overlay.closeOverlay()}),a("body").on("keyup",function(a){c.overlay&&(39===a.keyCode&&c.overlay.nextTheme(),37===a.keyCode&&c.overlay.previousTheme(),27===a.keyCode&&c.overlay.collapse(a))})},render:function(){this.$el.empty(),1===b.data.themes.length&&(this.singleTheme=new b.view.Details({model:this.collection.models[0]}),this.singleTheme.render(),this.$el.addClass("single-theme"),this.$el.append(this.singleTheme.el)),this.options.collection.size()>0&&this.renderThemes(this.parent.page),this.liveThemeCount=this.collection.count?this.collection.count:this.collection.length,this.count.text(this.liveThemeCount),this.announceSearchResults(this.liveThemeCount)},renderThemes:function(d){var e=this;return e.instance=e.collection.paginate(d),0===e.instance.size()?void this.parent.trigger("theme:end"):(!b.isInstall&&d>=1&&a(".add-new-theme").remove(),e.instance.each(function(a){e.theme=new b.view.Theme({model:a,parent:e}),e.theme.render(),e.$el.append(e.theme.el),e.listenTo(e.theme,"theme:expand",e.expand,e)}),!b.isInstall&&b.data.settings.canInstall&&this.$el.append('<div class="theme add-new-theme"><a href="'+b.data.settings.installURI+'"><div class="theme-screenshot"><span></span></div><h2 class="theme-name">'+c.addNew+"</h2></a></div>"),void this.parent.page++)},currentTheme:function(){var a,b=this;a=b.collection.findWhere({active:!0}),a&&(b.collection.remove(a),b.collection.add(a,{at:0}))},setView:function(a){return a},expand:function(c){var d=this;this.model=d.collection.get(c),b.router.navigate(b.router.baseUrl(b.router.themePath+this.model.id)),this.setView("detail"),a("body").addClass("modal-open"),this.overlay=new b.view.Details({model:d.model}),this.overlay.render(),this.$overlay.html(this.overlay.el),this.listenTo(this.overlay,"theme:next",function(){d.next([d.model.cid])}).listenTo(this.overlay,"theme:previous",function(){d.previous([d.model.cid])})},next:function(a){var b,c,d=this;b=d.collection.get(a[0]),c=d.collection.at(d.collection.indexOf(b)+1),void 0!==c&&(this.overlay.closeOverlay(),d.theme.trigger("theme:expand",c.cid))},previous:function(a){var b,c,d=this;b=d.collection.get(a[0]),c=d.collection.at(d.collection.indexOf(b)-1),void 0!==c&&(this.overlay.closeOverlay(),d.theme.trigger("theme:expand",c.cid))},announceSearchResults:function(a){0===a?wp.a11y.speak(c.noThemesFound):wp.a11y.speak(c.themesFound.replace("%d",a))}}),b.view.Search=wp.Backbone.View.extend({tagName:"input",className:"wp-filter-search",id:"wp-filter-search-input",searching:!1,attributes:{placeholder:c.searchPlaceholder,type:"search","aria-describedby":"live-search-desc"},events:{input:"search",keyup:"search",blur:"pushState"},initialize:function(a){this.parent=a.parent,this.listenTo(this.parent,"theme:close",function(){this.searching=!1})},search:function(a){"keyup"===a.type&&27===a.which&&(a.target.value=""),this.doSearch(a)},doSearch:_.debounce(function(a){var c={};this.collection.doSearch(a.target.value),this.searching&&13!==a.which?c.replace=!0:this.searching=!0,a.target.value?b.router.navigate(b.router.baseUrl(b.router.searchPath+a.target.value),c):b.router.navigate(b.router.baseUrl(""))},500),pushState:function(a){var c=b.router.baseUrl("");a.target.value&&(c=b.router.baseUrl(b.router.searchPath+a.target.value)),this.searching=!1,b.router.navigate(c)}}),b.Router=Backbone.Router.extend({routes:{"demos/?item=:id":"preview","demos/?browse=:sort":"sort",demos:"sort","&search=:query":"search"},baseUrl:function(a){return"demos"+a},themePath:"?item=",browsePath:"?browse=",searchPath:"?search=",search:function(b){a(".wp-filter-search").val(b)},themes:function(){a(".wp-filter-search").val("")},navigate:function(){Backbone.history._hasPushState&&Backbone.Router.prototype.navigate.apply(this,arguments)}}),b.Run={init:function(){this.themes=new b.Collection(b.data.themes);var a=_.sortBy(this.themes.models,function(a){return a.attributes.modified});this.themes.reset(a.reverse()),this.view=new b.view.Appearance({collection:this.themes}),this.render()},render:function(){this.view.render(),this.routes(),Backbone.history.start({pushState:!0,hashChange:!1})},routes:function(){var c=this;request={},b.router=new b.Router,b.router.on("route:preview",function(a){request.id=a,c.view.collection.query(request),c.view.collection.once("update",function(){c.view.view.theme.preview()})}),b.router.on("route:themes",function(){c.themes.doSearch(""),c.view.trigger("theme:close")}),b.router.on("route:search",function(){a(".wp-filter-search").trigger("keyup")}),this.extraRoutes()},extraRoutes:function(){return!1}},b.view.InstallerSearch=b.view.Search.extend({events:{input:"search",keyup:"search"},search:function(a){("keyup"!==a.type||9!==a.which&&16!==a.which)&&(this.collection=this.options.parent.view.collection,"keyup"===a.type&&27===a.which&&(a.target.value=""),this.doSearch(a.target.value))},doSearch:_.debounce(function(c){var d,e,f,g,h,i;if(a(".filter-links li > a.current").removeClass("current"),a("body").removeClass("show-filters filters-applied show-favorites-form"),this.collection.filtered||this.collection.reset(b.data.themes,{silent:!0}),term=c.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"),""!==term&&(term=term.replace(/ /g,")(?=.*"),d=new RegExp("^(?=.*"+term+").+","i"),e=this.collection.filter(function(a){return g=a.get("description"),h=a.get("content").rendered.replace(/(<([^>]+)>)/gi,""),h=h.replace(/\n/g,""),i=a.get("message_type"),f=i+h+g,d.test(f)}))){this.collection.reset(e);var j=this.collection.length}""===term&&this.collection.reset(b.data.themes,{silent:!0}),this.collection.trigger("update"),this.collection.trigger("query:success",j),b.router.navigate(b.router.baseUrl(b.router.searchPath+c),{replace:!0})},500)}),b.view.Installer=b.view.Appearance.extend({el:".wrap",events:{"click .filter-links li > a":"onSort","click .theme-filter":"onFilter","click .drawer-toggle":"moreFilters","click .filter-drawer .apply-filters":"applyFilters",'click .filter-group [type="checkbox"]':"addFilter","click .filter-drawer .clear-filters":"clearFilters","click .filtered-by":"backToFilters","click .favorites-form-submit":"saveUsername","keyup #wporg-username-input":"saveUsername","click .igg-sidebar .category-type":"filter","click .category.not_have_sub_cat":"filter"},render:function(){var d=this;this.search(),this.uploader(),this.collection=new b.Collection,this.listenTo(this,"theme:end",function(){d.collection.loadingThemes||(d.collection.loadingThemes=!0,d.collection.currentQuery.page++,_.extend(d.collection.currentQuery.request,{page:d.collection.currentQuery.page}),d.collection.query(d.collection.currentQuery.request))}),this.listenTo(this.collection,"query:success",function(){a("body").removeClass("loading-content"),a(".theme-browser").find("div.error").remove()}),this.listenTo(this.collection,"query:fail",function(){a("body").removeClass("loading-content"),a(".theme-browser").find("div.error").remove(),a(".theme-browser").find("div.themes").before('<div class="error"><p>'+c.error+"</p></div>")}),this.view&&this.view.remove(),this.view=new b.view.Themes({collection:this.collection,parent:this}),this.page=0,this.$el.find(".themes").remove(),this.view.render(),this.$el.find(".theme-browser").append(this.view.el).addClass("rendered")},browse:function(a){if("featured"==a||"all"==a)this.collection.query({browse:a});else{var b;if(b=this.collection.filter(function(b){var c=_.invert(b.attributes.tags);return c.hasOwnProperty(a)?!0:void 0})){this.collection.reset(b);var c=this.collection.length}}this.collection.trigger("update"),this.collection.trigger("query:success",c)},onSort:function(c){var d=a(c.target),e=d.data("sort");c.preventDefault(),a("body").removeClass("filters-applied show-filters"),d.hasClass(this.activeClass)||(this.collection.reset(b.data.themes,{silent:!0}),this.sort(e),b.router.navigate(b.router.baseUrl(b.router.browsePath+e)))},sort:function(b){this.clearSearch(),a(".filter-links li > a, .theme-filter").removeClass(this.activeClass),a('[data-sort="'+b+'"]').addClass(this.activeClass),"favorites"===b?a("body").addClass("show-favorites-form"):a("body").removeClass("show-favorites-form"),this.browse(b)},onFilter:function(b){var c,d=a(b.target),e=d.data("filter");d.hasClass(this.activeClass)||(a(".filter-links li > a, .theme-section").removeClass(this.activeClass),d.addClass(this.activeClass),e&&(e=_.union(e,this.filtersChecked()),c={tag:[e]},this.collection.query(c)))},addFilter:function(){this.filtersChecked()},applyFilters:function(b){var c,d=this.filtersChecked(),e={tag:d},f=a(".filtered-by .tags");b&&b.preventDefault(),a("body").addClass("filters-applied"),a(".filter-links li > a.current").removeClass("current"),f.empty(),_.each(d,function(b){c=a('label[for="filter-id-'+b+'"]').text(),f.append('<span class="tag">'+c+"</span>")}),this.collection.query(e)},filter:function(c){var d,e=a(c.currentTarget),f=e.attr("category"),g=e.attr(f),h=0;if(this.collection.reset(b.data.themes,{silent:!0}),"reset"!=f&&(d=this.collection.filter(function(a){var b=Number(g);return a.get("custom_category").indexOf(Number(b))>-1?(h++,a):void 0})),h>0);void 0!==d&&(this.collection.reset(d),this.collection.filtered=!0,delete d),this.collection.trigger("update"),this.collection.trigger("query:success",h)},customFilter:function(a){var c,d=0;if(this.collection.reset(b.data.themes,{silent:!0}),c=this.collection.filter(function(a){var b=Number(51);return a.get("custom_category").indexOf(Number(b))>-1?(d++,a):void 0}),d>0);void 0!==c&&(this.collection.reset(c),this.collection.filtered=!0,delete c),this.collection.trigger("update"),this.collection.trigger("query:success",d)},saveUsername:function(b){var c=a("#wporg-username-input").val(),d={browse:"favorites",user:c},e=this;return b&&b.preventDefault(),"keyup"!==b.type||13===b.which?wp.ajax.send("save-wporg-username",{data:{username:c},success:function(){e.collection.query(d)}}):void 0},filtersChecked:function(){var b=a(".filter-group").find(":checkbox"),c=[];return _.each(b.filter(":checked"),function(b){c.push(a(b).prop("value"))}),0===c.length?(a(".filter-drawer .apply-filters").find("span").text(""),a(".filter-drawer .clear-filters").hide(),a("body").removeClass("filters-applied"),!1):(a(".filter-drawer .apply-filters").find("span").text(c.length),a(".filter-drawer .clear-filters").css("display","inline-block"),c)},activeClass:"current",searchContainer:a(".search-form"),uploader:function(){a("a.upload").on("click",function(c){c.preventDefault(),a("body").addClass("show-upload-theme"),b.router.navigate(b.router.baseUrl("?upload"),{replace:!0})}),a("a.browse-themes").on("click",function(c){c.preventDefault(),a("body").removeClass("show-upload-theme"),b.router.navigate(b.router.baseUrl(""),{replace:!0})})},moreFilters:function(c){return c.preventDefault(),a("body").hasClass("filters-applied")?this.backToFilters():a("body").hasClass("show-filters")&&this.filtersChecked()?this.addFilter():(this.clearSearch(),b.router.navigate(b.router.baseUrl("")),void a("body").toggleClass("show-filters"))},clearFilters:function(b){var c=a(".filter-group").find(":checkbox"),d=this;b.preventDefault(),_.each(c.filter(":checked"),function(b){return a(b).prop("checked",!1),d.filtersChecked()})},backToFilters:function(b){b&&b.preventDefault(),a("body").removeClass("filters-applied")},clearSearch:function(){a("#wp-filter-search-input").val("")}}),b.InstallerRouter=Backbone.Router.extend({routes:{"edit.php?post_type=ig_campaign&page=icegram-gallery&item=:id":"preview","edit.php?post_type=ig_campaign&page=icegram-gallery&browse=:sort":"sort","edit.php?post_type=ig_campaign&page=icegram-gallery":"sort","post-new.php?post_type=ig_campaign":"sort","edit.php?post_type=ig_campaign&page=icegram-gallery&search=:query":"search"},baseUrl:function(a){return"edit.php?post_type=ig_campaign&page=icegram-gallery"+a},themePath:"&item=",browsePath:"&browse=",searchPath:"&search=",search:function(b){a(".wp-filter-search").val(b)},navigate:function(){Backbone.history._hasPushState&&Backbone.Router.prototype.navigate.apply(this,arguments)}}),b.RunInstaller={init:function(){this.view=new b.view.Installer({section:"featured",SearchView:b.view.InstallerSearch}),this.render()},render:function(){this.view.render(),this.routes(),Backbone.history.start({root:b.data.settings.adminUrl,pushState:!0,hashChange:!1})},routes:function(){var c=this,d={};b.router=new b.InstallerRouter,b.router.on("route:preview",function(a){d.id=a,c.view.collection.query(d),c.view.collection.once("update",function(){c.view.view.theme.preview()})}),b.router.on("route:sort",function(a){a||(a="featured"),c.view.sort(a),c.view.trigger("theme:close")}),b.router.on("route:upload",function(){a("a.upload").trigger("click")}),b.router.on("route:search",function(){a(".wp-filter-search").focus().trigger("keyup")}),this.extraRoutes()},extraRoutes:function(){return!1}};var d=function(a){var b="";switch(a){case"0":b="free";break;case"1":b="plus";break;case"2":b="pro";break;case"3":b="max"}return b};a(document).ready(function(){b.isInstall?b.RunInstaller.init():b.Run.init(),a(".broken-themes .delete-theme").on("click",function(){return confirm(_wpThemeSettings.settings.confirmDelete)})})}(jQuery);var tb_position;jQuery(document).ready(function(a){tb_position=function(){var b=a("#TB_window"),c=a(window).width(),d=a(window).height(),e=c>1040?1040:c,f=0;a("#wpadminbar").length&&(f=parseInt(a("#wpadminbar").css("height"),10)),b.size()&&(b.width(e-50).height(d-45-f),a("#TB_iframeContent").width(e-50).height(d-75-f),b.css({"margin-left":"-"+parseInt((e-50)/2,10)+"px"}),"undefined"!=typeof document.body.style.maxWidth&&b.css({top:20+f+"px","margin-top":"0"}))},a(window).resize(function(){tb_position()})});
|
1 |
+
window.wp=window.wp||{},function(a){var b,c;b=wp.themes=wp.themes||{},b.data=_wpThemeSettings,c=b.data.l10n,b.isInstall=b.data.settings.isInstall,_.extend(b,{model:{},view:{},routes:{},router:{},template:wp.template}),b.Model=Backbone.Model.extend({initialize:function(){var a;-1!==_.indexOf(b.data.installedThemes,this.get("slug"))&&this.set({installed:!0}),this.set({id:this.get("id")}),this.has("sections")&&(a=this.get("sections").description,this.set({description:a})),this.has("plan")&&this.set({plan_name:d(this.get("plan"))})}}),b.view.Appearance=wp.Backbone.View.extend({el:".wrap .theme-browser",events:{"click .filter-links li > a":"onSort"},window:a(window),page:0,activeClass:"current",initialize:function(a){_.bindAll(this,"scroller"),this.SearchView=a.SearchView?a.SearchView:b.view.Search,this.window.bind("scroll",_.throttle(this.scroller,300))},render:function(){this.view=new b.view.Themes({collection:this.collection,parent:this}),this.search(),this.view.render(),this.$el.append(this.view.el).addClass("rendered"),this.$el.append('<br class="clear"/>')},browse:function(a){if(this.collection.length<=0&&this.collection.query({browse:a}),"featured"==a||"all"==a)this.collection.query({browse:a});else{var b;if(b=this.collection.filter(function(b){var c=_.invert(b.attributes.tags);return c.hasOwnProperty(a)?!0:void 0})){this.collection.reset(b);var c=this.collection.length}}this.collection.trigger("update"),this.collection.trigger("query:success",c)},onSort:function(c){var d=a(c.target),e=d.data("sort");c.preventDefault(),a("body").removeClass("filters-applied show-filters"),d.hasClass(this.activeClass)||(this.collection.reset(b.data.themes,{silent:!0}),this.sort(e),b.router.navigate(b.router.baseUrl(b.router.browsePath+e)))},sort:function(b){this.clearSearch(),a(".filter-links li > a, .theme-filter").removeClass(this.activeClass),a('[data-sort="'+b+'"]').addClass(this.activeClass),"favorites"===b?a("body").addClass("show-favorites-form"):a("body").removeClass("show-favorites-form"),this.browse(b)},clearSearch:function(){a("#wp-filter-search-input").val("")},searchContainer:a(".search-form"),search:function(){var d,e=this;1!==b.data.themes.length&&(d=new this.SearchView({collection:e.collection,parent:this}),d.render(),this.searchContainer.append(a.parseHTML('<label class="screen-reader-text" for="wp-filter-search-input">'+c.search+"</label>")).append(d.el))},scroller:function(){var a,b,c=this;a=this.window.scrollTop()+c.window.height(),b=c.$el.offset().top+c.$el.outerHeight(!1)-c.window.height(),b=Math.round(.9*b),a>b&&this.trigger("theme:scroll")}}),b.Collection=Backbone.Collection.extend({model:b.Model,terms:"",doSearch:function(c){this.terms!==c&&(this.terms=c,this.terms.length>0&&this.search(this.terms),""===this.terms&&(this.reset(b.data.themes),a("body").removeClass("no-results")),this.trigger("update"))},search:function(c){var d,e,f,g,h,i;this.reset(b.data.themes,{silent:!0}),c=c.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"),c=c.replace(/ /g,")(?=.*"),d=new RegExp("^(?=.*"+c+").+","i"),e=this.filter(function(a){return g=a.get("name").replace(/(<([^>]+)>)/gi,""),h=a.get("description").replace(/(<([^>]+)>)/gi,""),i=a.get("author").replace(/(<([^>]+)>)/gi,""),f=_.union(g,a.get("id"),h,i,a.get("tags")),d.test(a.get("author"))&&c.length>2&&a.set("displayAuthor",!0),d.test(f)}),0===e.length?this.trigger("query:empty"):a("body").removeClass("no-results"),this.reset(e)},paginate:function(a){var b=this;return a=a||0,b=_(b.rest(20*a)),b=_(b.first(20))},count:!1,query:function(c){var d,e,f,g=this.queries,h=this;if(this.currentQuery.request=c,d=_.find(g,function(a){return _.isEqual(a.request,c)}),e=_.has(c,"page"),e||(this.currentQuery.page=1),d||e){if(e)return this.apiCall(c,e).then(function(a){h.add(a.themes),h.trigger("query:success"),h.loadingThemes=!1}).fail(function(){h.trigger("query:fail")});0===d.themes.length?h.trigger("query:empty"):a("body").removeClass("no-results"),_.isNumber(d.total)&&(this.count=d.total),this.reset(d.themes),d.total||(this.count=this.length),this.trigger("update"),this.trigger("query:success",this.count)}else{if(b.data.themes){data=b.data.themes,h.add(data),"undefined"!=typeof c.id&&(data=h.get(c.id),h.set(data));var i=_.sortBy(h.models,function(a){return a.attributes.modified});h.reset(i.reverse()),f=data.length,g.push({themes:data,request:c,total:f})}h.trigger("update"),h.trigger("query:success",f),data.themes&&0===data.themes.length&&h.trigger("query:empty")}},queries:[],currentQuery:{page:1,request:{}},loadingThemes:!1}),b.view.Theme=wp.Backbone.View.extend({className:"theme",state:"grid",html:b.template("theme"),events:{click:"preview",keydown:"preview",touchend:"preview",keyup:"addFocus",touchmove:"preventExpand"},touchDrag:!1,render:function(){var a=this.model.toJSON();this.$el.html(this.html(a)).attr({tabindex:0,"data-rating":a.rating,"data-plan":a.plan,"plan-name":a.plan_name}),a.custom_category&&a.custom_category.length>0&&this.$el.html(this.html(a)).attr({"data-categories":a.custom_category.join(" ")}),this.$el.addClass("igg-card"),this.$el.addClass(a.plan_name),this.model.get("displayAuthor")&&this.$el.addClass("display-author"),this.model.get("installed")&&this.$el.addClass("is-installed")},activeTheme:function(){this.model.get("active")&&this.$el.addClass("active")},addFocus:function(){var b=a(":focus").hasClass("theme")?a(":focus"):a(":focus").parents(".theme");a(".theme.focus").removeClass("focus"),b.addClass("focus")},expand:function(c){var d=this;return c=c||window.event,"keydown"!==c.type||13===c.which||32===c.which?this.touchDrag===!0?this.touchDrag=!1:void(a(c.target).is(".theme-actions a")||(b.focusedTheme=this.$el,this.trigger("theme:expand",d.model.cid))):void 0},preventExpand:function(){this.touchDrag=!0},preview:function(c){var d,e,f=this;return c=c||window.event,this.touchDrag===!0?this.touchDrag=!1:void(a(c.target).hasClass("button-primary")||"keydown"===c.type&&13!==c.which&&32!==c.which||"keydown"===c.type&&13!==c.which&&a(":focus").hasClass("button")||(c.preventDefault(),c=c||window.event,b.focusedTheme=this.$el,e=new b.view.Preview({model:this.model}),e.render(),this.setNavButtonsState(),1===this.model.collection.length?e.$el.addClass("no-navigation"):e.$el.removeClass("no-navigation"),this.listenTo(e,"theme:next",function(){return d=f.model,_.isUndefined(f.current)||(d=f.current),f.current=f.model.collection.at(f.model.collection.indexOf(d)+1),_.isUndefined(f.current)?(f.options.parent.parent.trigger("theme:end"),f.current=d):(e.model=f.current,e.render(),this.setNavButtonsState(),void a(".next-theme").focus())}).listenTo(e,"theme:previous",function(){d=f.model,0!==f.model.collection.indexOf(f.current)&&(_.isUndefined(f.current)||(d=f.current),f.current=f.model.collection.at(f.model.collection.indexOf(d)-1),_.isUndefined(f.current)||(e.model=f.current,e.render(),this.setNavButtonsState(),a(".previous-theme").focus()))}),this.listenTo(e,"preview:close",function(){f.current=f.model})))},setNavButtonsState:function(){var b=a(".theme-install-overlay"),c=_.isUndefined(this.current)?this.model:this.current;0===this.model.collection.indexOf(c)&&b.find(".previous-theme").addClass("disabled"),_.isUndefined(this.model.collection.at(this.model.collection.indexOf(c)+1))&&b.find(".next-theme").addClass("disabled")}}),b.view.Details=wp.Backbone.View.extend({className:"theme-overlay",events:{click:"collapse","click .delete-theme":"deleteTheme","click .left":"previousTheme","click .right":"nextTheme"},html:b.template("theme-single"),render:function(){var a=this.model.toJSON();this.$el.html(this.html(a)),this.activeTheme(),this.navigation(),this.screenshotCheck(this.$el),this.containFocus(this.$el)},activeTheme:function(){this.$el.toggleClass("active",this.model.get("active"))},containFocus:function(b){var c;_.delay(function(){a(".theme-wrap a.button-primary:visible").focus()},500),b.on("keydown.wp-themes",function(d){9===d.which&&(c=a(d.target),c.is("button.left")&&d.shiftKey?(b.find(".theme-actions a:last-child").focus(),d.preventDefault()):c.is(".theme-actions a:last-child")&&(b.find("button.left").focus(),d.preventDefault()))})},collapse:function(c){var d,e=this;c=c||window.event,1!==b.data.themes.length&&(a(c.target).is(".theme-backdrop")||a(c.target).is(".close")||27===c.keyCode)&&(a("body").addClass("closing-overlay"),this.$el.fadeOut(130,function(){a("body").removeClass("closing-overlay"),e.closeOverlay(),d=document.body.scrollTop,b.router.navigate(b.router.baseUrl("")),document.body.scrollTop=d,b.focusedTheme&&b.focusedTheme.focus()}))},navigation:function(){this.model.cid===this.model.collection.at(0).cid&&this.$el.find(".left").addClass("disabled"),this.model.cid===this.model.collection.at(this.model.collection.length-1).cid&&this.$el.find(".right").addClass("disabled")},closeOverlay:function(){a("body").removeClass("modal-open"),this.remove(),this.unbind(),this.trigger("theme:collapse")},deleteTheme:function(){return confirm(b.data.settings.confirmDelete)},nextTheme:function(){var a=this;return a.trigger("theme:next",a.model.cid),!1},previousTheme:function(){var a=this;return a.trigger("theme:previous",a.model.cid),!1},screenshotCheck:function(a){var b,c;b=a.find(".screenshot img"),c=new Image,c.src=b.attr("src"),c.width&&c.width<=300&&a.addClass("small-screenshot")}}),b.view.Preview=b.view.Details.extend({className:"wp-full-overlay expanded",el:".ig-gallery-wrap .theme-install-overlay",events:{"click .close-full-overlay":"close","click .collapse-sidebar":"collapse","click .previous-theme":"previousTheme","click .next-theme":"nextTheme",keyup:"keyEvent"},html:b.template("theme-preview"),render:function(){var c=this,d=this.model.toJSON();this.$el.removeClass("iframe-ready").html(this.html(d)),b.router.navigate(b.router.baseUrl(b.router.themePath+this.model.get("id")),{replace:!0}),this.$el.fadeIn(200,function(){a("body").addClass("theme-installer-active full-overlay-active"),a(".close-full-overlay").focus()}),this.$el.find("iframe").one("load",function(){c.iframeLoaded()}),d.plan<=b.data.settings.ig_plan?this.$el.find(".theme-install").show():this.$el.find(".ig-get-pro").show()},iframeLoaded:function(){this.$el.addClass("iframe-ready")},close:function(){return this.$el.hide(200,function(){a("body").removeClass("theme-installer-active full-overlay-active"),b.focusedTheme&&b.focusedTheme.focus()}).removeClass("iframe-ready"),b.router.navigate(b.router.baseUrl("")),this.trigger("preview:close"),this.undelegateEvents(),this.unbind(),!1},collapse:function(b){var d=a(b.currentTarget);return"true"===d.attr("aria-expanded")?d.attr({"aria-expanded":"false","aria-label":c.expandSidebar}):d.attr({"aria-expanded":"true","aria-label":c.collapseSidebar}),this.$el.toggleClass("collapsed").toggleClass("expanded"),!1},keyEvent:function(a){27===a.keyCode&&(this.undelegateEvents(),this.close()),39===a.keyCode&&_.once(this.nextTheme()),37===a.keyCode&&this.previousTheme()}}),b.view.Themes=wp.Backbone.View.extend({className:"themes",$overlay:a("div.theme-overlay"),index:0,count:a(".wp-core-ui .theme-count"),liveThemeCount:0,initialize:function(b){var c=this;this.parent=b.parent,this.setView("grid"),c.currentTheme(),this.listenTo(c.collection,"update",function(){c.parent.page=0,c.currentTheme(),c.render(this)}),this.listenTo(c.collection,"query:success",function(a){_.isNumber(a)?(c.count.text(a),c.announceSearchResults(a)):(c.count.text(c.collection.length),c.announceSearchResults(c.collection.length))}),this.listenTo(c.collection,"query:empty",function(){a("body").addClass("no-results")}),this.listenTo(this.parent,"theme:scroll",function(){c.renderThemes(c.parent.page)}),this.listenTo(this.parent,"theme:close",function(){c.overlay&&c.overlay.closeOverlay()}),a("body").on("keyup",function(a){c.overlay&&(39===a.keyCode&&c.overlay.nextTheme(),37===a.keyCode&&c.overlay.previousTheme(),27===a.keyCode&&c.overlay.collapse(a))})},render:function(){this.$el.empty(),1===b.data.themes.length&&(this.singleTheme=new b.view.Details({model:this.collection.models[0]}),this.singleTheme.render(),this.$el.addClass("single-theme"),this.$el.append(this.singleTheme.el)),this.options.collection.size()>0&&this.renderThemes(this.parent.page),this.liveThemeCount=this.collection.count?this.collection.count:this.collection.length,this.count.text(this.liveThemeCount),this.announceSearchResults(this.liveThemeCount)},renderThemes:function(d){var e=this;return e.instance=e.collection.paginate(d),0===e.instance.size()?void this.parent.trigger("theme:end"):(!b.isInstall&&d>=1&&a(".add-new-theme").remove(),e.instance.each(function(a){e.theme=new b.view.Theme({model:a,parent:e}),e.theme.render(),e.$el.append(e.theme.el),e.listenTo(e.theme,"theme:expand",e.expand,e)}),!b.isInstall&&b.data.settings.canInstall&&this.$el.append('<div class="theme add-new-theme"><a href="'+b.data.settings.installURI+'"><div class="theme-screenshot"><span></span></div><h2 class="theme-name">'+c.addNew+"</h2></a></div>"),void this.parent.page++)},currentTheme:function(){var a,b=this;a=b.collection.findWhere({active:!0}),a&&(b.collection.remove(a),b.collection.add(a,{at:0}))},setView:function(a){return a},expand:function(c){var d=this;this.model=d.collection.get(c),b.router.navigate(b.router.baseUrl(b.router.themePath+this.model.id)),this.setView("detail"),a("body").addClass("modal-open"),this.overlay=new b.view.Details({model:d.model}),this.overlay.render(),this.$overlay.html(this.overlay.el),this.listenTo(this.overlay,"theme:next",function(){d.next([d.model.cid])}).listenTo(this.overlay,"theme:previous",function(){d.previous([d.model.cid])})},next:function(a){var b,c,d=this;b=d.collection.get(a[0]),c=d.collection.at(d.collection.indexOf(b)+1),void 0!==c&&(this.overlay.closeOverlay(),d.theme.trigger("theme:expand",c.cid))},previous:function(a){var b,c,d=this;b=d.collection.get(a[0]),c=d.collection.at(d.collection.indexOf(b)-1),void 0!==c&&(this.overlay.closeOverlay(),d.theme.trigger("theme:expand",c.cid))},announceSearchResults:function(a){0===a?wp.a11y.speak(c.noThemesFound):wp.a11y.speak(c.themesFound.replace("%d",a))}}),b.view.Search=wp.Backbone.View.extend({tagName:"input",className:"wp-filter-search",id:"wp-filter-search-input",searching:!1,attributes:{placeholder:c.searchPlaceholder,type:"search","aria-describedby":"live-search-desc"},events:{input:"search",keyup:"search",blur:"pushState"},initialize:function(a){this.parent=a.parent,this.listenTo(this.parent,"theme:close",function(){this.searching=!1})},search:function(a){"keyup"===a.type&&27===a.which&&(a.target.value=""),this.doSearch(a)},doSearch:_.debounce(function(a){var c={};this.collection.doSearch(a.target.value),this.searching&&13!==a.which?c.replace=!0:this.searching=!0,a.target.value?b.router.navigate(b.router.baseUrl(b.router.searchPath+a.target.value),c):b.router.navigate(b.router.baseUrl(""))},500),pushState:function(a){var c=b.router.baseUrl("");a.target.value&&(c=b.router.baseUrl(b.router.searchPath+a.target.value)),this.searching=!1,b.router.navigate(c)}}),b.Router=Backbone.Router.extend({routes:{"demos/?item=:id":"preview","demos/?browse=:sort":"sort",demos:"sort","&search=:query":"search"},baseUrl:function(a){return"demos"+a},themePath:"?item=",browsePath:"?browse=",searchPath:"?search=",search:function(b){a(".wp-filter-search").val(b)},themes:function(){a(".wp-filter-search").val("")},navigate:function(){Backbone.history._hasPushState&&Backbone.Router.prototype.navigate.apply(this,arguments)}}),b.Run={init:function(){this.themes=new b.Collection(b.data.themes);var a=_.sortBy(this.themes.models,function(a){return a.attributes.modified});this.themes.reset(a.reverse()),this.view=new b.view.Appearance({collection:this.themes}),this.render()},render:function(){this.view.render(),this.routes(),Backbone.history.start({pushState:!0,hashChange:!1})},routes:function(){var c=this;request={},b.router=new b.Router,b.router.on("route:preview",function(a){request.id=a,c.view.collection.query(request),c.view.collection.once("update",function(){c.view.view.theme.preview()})}),b.router.on("route:themes",function(){c.themes.doSearch(""),c.view.trigger("theme:close")}),b.router.on("route:search",function(){a(".wp-filter-search").trigger("keyup")}),this.extraRoutes()},extraRoutes:function(){return!1}},b.view.InstallerSearch=b.view.Search.extend({events:{input:"search",keyup:"search"},search:function(a){("keyup"!==a.type||9!==a.which&&16!==a.which)&&(this.collection=this.options.parent.view.collection,"keyup"===a.type&&27===a.which&&(a.target.value=""),this.doSearch(a.target.value))},doSearch:_.debounce(function(c){var d,e,f,g,h,i;if(a(".filter-links li > a.current").removeClass("current"),a("body").removeClass("show-filters filters-applied show-favorites-form"),this.collection.filtered||this.collection.reset(b.data.themes,{silent:!0}),term=c.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"),""!==term&&(term=term.replace(/ /g,")(?=.*"),d=new RegExp("^(?=.*"+term+").+","i"),e=this.collection.filter(function(a){return g=a.get("description"),h=a.get("content").rendered.replace(/(<([^>]+)>)/gi,""),h=h.replace(/\n/g,""),i=a.get("message_type"),f=i+h+g,d.test(f)}))){this.collection.reset(e);var j=this.collection.length}""===term&&this.collection.reset(b.data.themes,{silent:!0}),this.collection.trigger("update"),this.collection.trigger("query:success",j),b.router.navigate(b.router.baseUrl(b.router.searchPath+c),{replace:!0})},500)}),b.view.Installer=b.view.Appearance.extend({el:".wrap",events:{"click .filter-links li > a":"onSort","click .theme-filter":"onFilter","click .drawer-toggle":"moreFilters","click .filter-drawer .apply-filters":"applyFilters",'click .filter-group [type="checkbox"]':"addFilter","click .filter-drawer .clear-filters":"clearFilters","click .filtered-by":"backToFilters","click .favorites-form-submit":"saveUsername","keyup #wporg-username-input":"saveUsername","click .igg-sidebar .category-type":"filter","click #ig-select-goal":"setSubcat","click .ig-message-type-select":"setFilter","click .igg-content .category-type":"filter","click .igg-filters .gallery_filters":"galleryfilter","click .igg-filters .category-type":"filter","click .category.not_have_sub_cat":"filter"},render:function(){var d=this;this.search(),this.uploader(),this.collection=new b.Collection,this.listenTo(this,"theme:end",function(){d.collection.loadingThemes||(d.collection.loadingThemes=!0,d.collection.currentQuery.page++,_.extend(d.collection.currentQuery.request,{page:d.collection.currentQuery.page}),d.collection.query(d.collection.currentQuery.request))}),this.listenTo(this.collection,"query:success",function(){a("body").removeClass("loading-content"),a(".theme-browser").find("div.error").remove()}),this.listenTo(this.collection,"query:fail",function(){a("body").removeClass("loading-content"),a(".theme-browser").find("div.error").remove(),a(".theme-browser").find("div.themes").before('<div class="error"><p>'+c.error+"</p></div>")}),this.view&&this.view.remove(),this.view=new b.view.Themes({collection:this.collection,parent:this}),this.page=0,this.$el.find(".themes").remove(),this.view.render(),this.$el.find(".theme-browser").append(this.view.el).addClass("rendered")},browse:function(a){if("featured"==a||"all"==a)this.collection.query({browse:a});else{var b;if(b=this.collection.filter(function(b){var c=_.invert(b.attributes.tags);return c.hasOwnProperty(a)?!0:void 0})){this.collection.reset(b);var c=this.collection.length}}this.collection.trigger("update"),this.collection.trigger("query:success",c)},onSort:function(c){var d=a(c.target),e=d.data("sort");c.preventDefault(),a("body").removeClass("filters-applied show-filters"),d.hasClass(this.activeClass)||(this.collection.reset(b.data.themes,{silent:!0}),this.sort(e),b.router.navigate(b.router.baseUrl(b.router.browsePath+e)))},sort:function(b){this.clearSearch(),a(".filter-links li > a, .theme-filter").removeClass(this.activeClass),a('[data-sort="'+b+'"]').addClass(this.activeClass),"favorites"===b?a("body").addClass("show-favorites-form"):a("body").removeClass("show-favorites-form"),this.browse(b)},onFilter:function(b){var c,d=a(b.target),e=d.data("filter");d.hasClass(this.activeClass)||(a(".filter-links li > a, .theme-section").removeClass(this.activeClass),d.addClass(this.activeClass),e&&(e=_.union(e,this.filtersChecked()),c={tag:[e]},this.collection.query(c)))},addFilter:function(){this.filtersChecked()},applyFilters:function(b){var c,d=this.filtersChecked(),e={tag:d},f=a(".filtered-by .tags");b&&b.preventDefault(),a("body").addClass("filters-applied"),a(".filter-links li > a.current").removeClass("current"),f.empty(),_.each(d,function(b){c=a('label[for="filter-id-'+b+'"]').text(),f.append('<span class="tag">'+c+"</span>")}),this.collection.query(e)},setSubcat:function(b){a(".ig-onboarding-campaign-goal").hide(),a(".ig-onboarding-campaign-type").show()},setFilter:function(b){this.onboarding_filter(),a(".igg-content, .description, .igg-filters").show(),a(".ig-onboarding-campaign-type, .ig-logo").hide()},onboarding_filter:function(c){var d=[],e=a('[name="ig-campaign-goal"]:checked'),f=e.attr("category"),g=e.attr(f).split(",").map(Number),h=a('[name="ig-campaign-type"]:checked'),i=h.attr("category");if(a.each(a('[name="ig-campaign-type"]:checked'),function(){d.push(parseInt(a(this).attr(i)))}),0===Object.keys(d).length){var h=a('[name="ig-campaign-type"]:first');i=h.attr("category"),a.each(a('[name="ig-campaign-type"]'),function(){d.push(parseInt(a(this).attr(i)))})}var j,k=0;this.collection.reset(b.data.themes,{silent:!0}),j=this.collection.filter(function(a){var b=_.intersection(a.get("custom_category"),d),c=_.intersection(a.get("custom_category"),g);return b.length>0&&c.length>0?(k++,a):void 0}),void 0!==j&&(this.collection.reset(j),this.collection.filtered=!0,delete j),this.collection.trigger("update"),this.collection.trigger("query:success",k)},galleryfilter:function(c){var d,e,f=[],g=[],h=a(".gallery_campaign_goal option:selected");0!=h.attr("use-case")&&(h=a(".gallery_campaign_goal option:selected"),d=h.attr("category"),a(h).each(function(b,c){g.push(parseInt(a(c).attr(d)))}));var i=a(".gallery_message_type option:selected");if(0!=i.attr("message-type")&&(i=a(".gallery_message_type option:selected"),e=i.attr("category"),a(i).each(function(b,c){f.push(parseInt(a(c).attr(e)))})),0!==Object.keys(g).length||0!==Object.keys(f).length){0===Object.keys(g).length?(d="use-case",a(".gallery_campaign_goal option").each(function(){g.push(parseInt(a(this).attr(d)))})):0===Object.keys(f).length&&(e="message-type",a(".gallery_message_type option").each(function(){f.push(parseInt(a(this).attr(e)))}));var j,k=0;this.collection.reset(b.data.themes,{silent:!0}),j=this.collection.filter(function(a){var b=_.intersection(a.get("custom_category"),f),c=_.intersection(a.get("custom_category"),g);return b.length>0&&c.length>0?(k++,a):void 0}),void 0!==j&&(this.collection.reset(j),this.collection.filtered=!0,delete j),this.collection.trigger("update"),this.collection.trigger("query:success",k)}},filter:function(c){var d,e=a(c.currentTarget),f=e.attr("category"),g=e.attr(f),h=0;if(this.collection.reset(b.data.themes,{silent:!0}),"reset"!=f&&(d=this.collection.filter(function(a){var b=Number(g);return a.get("custom_category").indexOf(Number(b))>-1?(h++,a):void 0})),h>0);void 0!==d&&(this.collection.reset(d),this.collection.filtered=!0,delete d),this.collection.trigger("update"),this.collection.trigger("query:success",h)},customFilter:function(a){var c,d=0;if(this.collection.reset(b.data.themes,{silent:!0}),c=this.collection.filter(function(a){var b=Number(51);return a.get("custom_category").indexOf(Number(b))>-1?(d++,a):void 0}),d>0);void 0!==c&&(this.collection.reset(c),this.collection.filtered=!0,delete c),this.collection.trigger("update"),this.collection.trigger("query:success",d)},saveUsername:function(b){var c=a("#wporg-username-input").val(),d={browse:"favorites",user:c},e=this;return b&&b.preventDefault(),"keyup"!==b.type||13===b.which?wp.ajax.send("save-wporg-username",{data:{username:c},success:function(){e.collection.query(d)}}):void 0},filtersChecked:function(){var b=a(".filter-group").find(":checkbox"),c=[];return _.each(b.filter(":checked"),function(b){c.push(a(b).prop("value"))}),0===c.length?(a(".filter-drawer .apply-filters").find("span").text(""),a(".filter-drawer .clear-filters").hide(),a("body").removeClass("filters-applied"),!1):(a(".filter-drawer .apply-filters").find("span").text(c.length),a(".filter-drawer .clear-filters").css("display","inline-block"),c)},activeClass:"current",searchContainer:a(".search-form"),uploader:function(){a("a.upload").on("click",function(c){c.preventDefault(),a("body").addClass("show-upload-theme"),b.router.navigate(b.router.baseUrl("?upload"),{replace:!0})}),a("a.browse-themes").on("click",function(c){c.preventDefault(),a("body").removeClass("show-upload-theme"),b.router.navigate(b.router.baseUrl(""),{replace:!0})})},moreFilters:function(c){return c.preventDefault(),a("body").hasClass("filters-applied")?this.backToFilters():a("body").hasClass("show-filters")&&this.filtersChecked()?this.addFilter():(this.clearSearch(),b.router.navigate(b.router.baseUrl("")),void a("body").toggleClass("show-filters"))},clearFilters:function(b){var c=a(".filter-group").find(":checkbox"),d=this;b.preventDefault(),_.each(c.filter(":checked"),function(b){return a(b).prop("checked",!1),d.filtersChecked()})},backToFilters:function(b){b&&b.preventDefault(),a("body").removeClass("filters-applied")},clearSearch:function(){a("#wp-filter-search-input").val("")}}),b.InstallerRouter=Backbone.Router.extend({routes:{"edit.php?post_type=ig_campaign&page=icegram-gallery&item=:id":"preview","edit.php?post_type=ig_campaign&page=icegram-gallery&browse=:sort":"sort","edit.php?post_type=ig_campaign&page=icegram-gallery":"sort","post-new.php?post_type=ig_campaign":"sort","edit.php?post_type=ig_campaign&page=icegram-gallery&search=:query":"search"},baseUrl:function(a){return"edit.php?post_type=ig_campaign&page=icegram-gallery"+a},themePath:"&item=",browsePath:"&browse=",searchPath:"&search=",search:function(b){a(".wp-filter-search").val(b)},navigate:function(){Backbone.history._hasPushState&&Backbone.Router.prototype.navigate.apply(this,arguments)}}),b.RunInstaller={init:function(){this.view=new b.view.Installer({section:"featured",SearchView:b.view.InstallerSearch}),this.render()},render:function(){this.view.render(),this.routes(),Backbone.history.start({root:b.data.settings.adminUrl,pushState:!0,hashChange:!1})},routes:function(){var c=this,d={};b.router=new b.InstallerRouter,b.router.on("route:preview",function(a){d.id=a,c.view.collection.query(d),c.view.collection.once("update",function(){c.view.view.theme.preview()})}),b.router.on("route:sort",function(a){a||(a="featured"),c.view.sort(a),c.view.trigger("theme:close")}),b.router.on("route:upload",function(){a("a.upload").trigger("click")}),b.router.on("route:search",function(){a(".wp-filter-search").focus().trigger("keyup")}),this.extraRoutes()},extraRoutes:function(){return!1}};var d=function(a){var b="";switch(a){case"0":b="free";break;case"1":b="plus";break;case"2":b="pro";break;case"3":b="max"}return b};a(document).ready(function(){b.isInstall?b.RunInstaller.init():b.Run.init(),a(".broken-themes .delete-theme").on("click",function(){return confirm(_wpThemeSettings.settings.confirmDelete)});var c=[],d=[];jQuery(".ig-message-type-select").click(function(){jQuery('[name="ig-campaign-goal"]:checked').each(function(){var a=jQuery(this).val();d.push(a)}),jQuery('[name="ig-campaign-type"]:checked').each(function(){var a=jQuery(this).val();c.push(a)}),jQuery(".gallery_campaign_goal").val(d).trigger("change"),jQuery(".gallery_message_type").val(c).trigger("change")}),jQuery(".gallery_campaign_goal, .gallery_message_type").select2(),jQuery(".gallery_campaign_goal").select2({placeholder:"Choose your goals"}),jQuery(".gallery_message_type").select2({placeholder:"Select message types"}),jQuery(".ig-reset-button").click(function(){jQuery(".gallery_campaign_goal").val("").trigger("change"),jQuery(".gallery_message_type").val("").trigger("change")})})}(jQuery);var tb_position;jQuery(document).ready(function(a){tb_position=function(){var b=a("#TB_window"),c=a(window).width(),d=a(window).height(),e=c>1040?1040:c,f=0;a("#wpadminbar").length&&(f=parseInt(a("#wpadminbar").css("height"),10)),b.size()&&(b.width(e-50).height(d-45-f),a("#TB_iframeContent").width(e-50).height(d-75-f),b.css({"margin-left":"-"+parseInt((e-50)/2,10)+"px"}),"undefined"!=typeof document.body.style.maxWidth&&b.css({top:20+f+"px","margin-top":"0"}))},a(window).resize(function(){tb_position()})});
|
lite/assets/js/select2.min.js
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
1 |
+
/*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
2 |
+
!function(n){"function"==typeof define&&define.amd?define(["jquery"],n):"object"==typeof module&&module.exports?module.exports=function(e,t){return void 0===t&&(t="undefined"!=typeof window?require("jquery"):require("jquery")(e)),n(t),t}:n(jQuery)}(function(u){var e=function(){if(u&&u.fn&&u.fn.select2&&u.fn.select2.amd)var e=u.fn.select2.amd;var t,n,r,h,o,s,f,g,m,v,y,_,i,a,b;function w(e,t){return i.call(e,t)}function l(e,t){var n,r,i,o,s,a,l,c,u,d,p,h=t&&t.split("/"),f=y.map,g=f&&f["*"]||{};if(e){for(s=(e=e.split("/")).length-1,y.nodeIdCompat&&b.test(e[s])&&(e[s]=e[s].replace(b,"")),"."===e[0].charAt(0)&&h&&(e=h.slice(0,h.length-1).concat(e)),u=0;u<e.length;u++)if("."===(p=e[u]))e.splice(u,1),--u;else if(".."===p){if(0===u||1===u&&".."===e[2]||".."===e[u-1])continue;0<u&&(e.splice(u-1,2),u-=2)}e=e.join("/")}if((h||g)&&f){for(u=(n=e.split("/")).length;0<u;--u){if(r=n.slice(0,u).join("/"),h)for(d=h.length;0<d;--d)if(i=(i=f[h.slice(0,d).join("/")])&&i[r]){o=i,a=u;break}if(o)break;!l&&g&&g[r]&&(l=g[r],c=u)}!o&&l&&(o=l,a=c),o&&(n.splice(0,a,o),e=n.join("/"))}return e}function A(t,n){return function(){var e=a.call(arguments,0);return"string"!=typeof e[0]&&1===e.length&&e.push(null),s.apply(h,e.concat([t,n]))}}function x(t){return function(e){m[t]=e}}function D(e){if(w(v,e)){var t=v[e];delete v[e],_[e]=!0,o.apply(h,t)}if(!w(m,e)&&!w(_,e))throw new Error("No "+e);return m[e]}function c(e){var t,n=e?e.indexOf("!"):-1;return-1<n&&(t=e.substring(0,n),e=e.substring(n+1,e.length)),[t,e]}function S(e){return e?c(e):[]}return e&&e.requirejs||(e?n=e:e={},m={},v={},y={},_={},i=Object.prototype.hasOwnProperty,a=[].slice,b=/\.js$/,f=function(e,t){var n,r,i=c(e),o=i[0],s=t[1];return e=i[1],o&&(n=D(o=l(o,s))),o?e=n&&n.normalize?n.normalize(e,(r=s,function(e){return l(e,r)})):l(e,s):(o=(i=c(e=l(e,s)))[0],e=i[1],o&&(n=D(o))),{f:o?o+"!"+e:e,n:e,pr:o,p:n}},g={require:function(e){return A(e)},exports:function(e){var t=m[e];return void 0!==t?t:m[e]={}},module:function(e){return{id:e,uri:"",exports:m[e],config:(t=e,function(){return y&&y.config&&y.config[t]||{}})};var t}},o=function(e,t,n,r){var i,o,s,a,l,c,u,d=[],p=typeof n;if(c=S(r=r||e),"undefined"==p||"function"==p){for(t=!t.length&&n.length?["require","exports","module"]:t,l=0;l<t.length;l+=1)if("require"===(o=(a=f(t[l],c)).f))d[l]=g.require(e);else if("exports"===o)d[l]=g.exports(e),u=!0;else if("module"===o)i=d[l]=g.module(e);else if(w(m,o)||w(v,o)||w(_,o))d[l]=D(o);else{if(!a.p)throw new Error(e+" missing "+o);a.p.load(a.n,A(r,!0),x(o),{}),d[l]=m[o]}s=n?n.apply(m[e],d):void 0,e&&(i&&i.exports!==h&&i.exports!==m[e]?m[e]=i.exports:s===h&&u||(m[e]=s))}else e&&(m[e]=n)},t=n=s=function(e,t,n,r,i){if("string"==typeof e)return g[e]?g[e](t):D(f(e,S(t)).f);if(!e.splice){if((y=e).deps&&s(y.deps,y.callback),!t)return;t.splice?(e=t,t=n,n=null):e=h}return t=t||function(){},"function"==typeof n&&(n=r,r=i),r?o(h,e,t,n):setTimeout(function(){o(h,e,t,n)},4),s},s.config=function(e){return s(e)},t._defined=m,(r=function(e,t,n){if("string"!=typeof e)throw new Error("See almond README: incorrect module build, no module name");t.splice||(n=t,t=[]),w(m,e)||w(v,e)||(v[e]=[e,t,n])}).amd={jQuery:!0},e.requirejs=t,e.require=n,e.define=r),e.define("almond",function(){}),e.define("jquery",[],function(){var e=u||$;return null==e&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),e}),e.define("select2/utils",["jquery"],function(o){var i={};function u(e){var t=e.prototype,n=[];for(var r in t){"function"==typeof t[r]&&"constructor"!==r&&n.push(r)}return n}i.Extend=function(e,t){var n={}.hasOwnProperty;function r(){this.constructor=e}for(var i in t)n.call(t,i)&&(e[i]=t[i]);return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},i.Decorate=function(r,i){var e=u(i),t=u(r);function o(){var e=Array.prototype.unshift,t=i.prototype.constructor.length,n=r.prototype.constructor;0<t&&(e.call(arguments,r.prototype.constructor),n=i.prototype.constructor),n.apply(this,arguments)}i.displayName=r.displayName,o.prototype=new function(){this.constructor=o};for(var n=0;n<t.length;n++){var s=t[n];o.prototype[s]=r.prototype[s]}function a(e){var t=function(){};e in o.prototype&&(t=o.prototype[e]);var n=i.prototype[e];return function(){return Array.prototype.unshift.call(arguments,t),n.apply(this,arguments)}}for(var l=0;l<e.length;l++){var c=e[l];o.prototype[c]=a(c)}return o};function e(){this.listeners={}}e.prototype.on=function(e,t){this.listeners=this.listeners||{},e in this.listeners?this.listeners[e].push(t):this.listeners[e]=[t]},e.prototype.trigger=function(e){var t=Array.prototype.slice,n=t.call(arguments,1);this.listeners=this.listeners||{},null==n&&(n=[]),0===n.length&&n.push({}),(n[0]._type=e)in this.listeners&&this.invoke(this.listeners[e],t.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},e.prototype.invoke=function(e,t){for(var n=0,r=e.length;n<r;n++)e[n].apply(this,t)},i.Observable=e,i.generateChars=function(e){for(var t="",n=0;n<e;n++){t+=Math.floor(36*Math.random()).toString(36)}return t},i.bind=function(e,t){return function(){e.apply(t,arguments)}},i._convertData=function(e){for(var t in e){var n=t.split("-"),r=e;if(1!==n.length){for(var i=0;i<n.length;i++){var o=n[i];(o=o.substring(0,1).toLowerCase()+o.substring(1))in r||(r[o]={}),i==n.length-1&&(r[o]=e[t]),r=r[o]}delete e[t]}}return e},i.hasScroll=function(e,t){var n=o(t),r=t.style.overflowX,i=t.style.overflowY;return(r!==i||"hidden"!==i&&"visible"!==i)&&("scroll"===r||"scroll"===i||(n.innerHeight()<t.scrollHeight||n.innerWidth()<t.scrollWidth))},i.escapeMarkup=function(e){var t={"\\":"\","&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};return"string"!=typeof e?e:String(e).replace(/[&<>"'\/\\]/g,function(e){return t[e]})},i.appendMany=function(e,t){if("1.7"===o.fn.jquery.substr(0,3)){var n=o();o.map(t,function(e){n=n.add(e)}),t=n}e.append(t)},i.__cache={};var n=0;return i.GetUniqueElementId=function(e){var t=e.getAttribute("data-select2-id");return null==t&&(e.id?(t=e.id,e.setAttribute("data-select2-id",t)):(e.setAttribute("data-select2-id",++n),t=n.toString())),t},i.StoreData=function(e,t,n){var r=i.GetUniqueElementId(e);i.__cache[r]||(i.__cache[r]={}),i.__cache[r][t]=n},i.GetData=function(e,t){var n=i.GetUniqueElementId(e);return t?i.__cache[n]&&null!=i.__cache[n][t]?i.__cache[n][t]:o(e).data(t):i.__cache[n]},i.RemoveData=function(e){var t=i.GetUniqueElementId(e);null!=i.__cache[t]&&delete i.__cache[t],e.removeAttribute("data-select2-id")},i}),e.define("select2/results",["jquery","./utils"],function(h,f){function r(e,t,n){this.$element=e,this.data=n,this.options=t,r.__super__.constructor.call(this)}return f.Extend(r,f.Observable),r.prototype.render=function(){var e=h('<ul class="select2-results__options" role="listbox"></ul>');return this.options.get("multiple")&&e.attr("aria-multiselectable","true"),this.$results=e},r.prototype.clear=function(){this.$results.empty()},r.prototype.displayMessage=function(e){var t=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var n=h('<li role="alert" aria-live="assertive" class="select2-results__option"></li>'),r=this.options.get("translations").get(e.message);n.append(t(r(e.args))),n[0].className+=" select2-results__message",this.$results.append(n)},r.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},r.prototype.append=function(e){this.hideLoading();var t=[];if(null!=e.results&&0!==e.results.length){e.results=this.sort(e.results);for(var n=0;n<e.results.length;n++){var r=e.results[n],i=this.option(r);t.push(i)}this.$results.append(t)}else 0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"})},r.prototype.position=function(e,t){t.find(".select2-results").append(e)},r.prototype.sort=function(e){return this.options.get("sorter")(e)},r.prototype.highlightFirstItem=function(){var e=this.$results.find(".select2-results__option[aria-selected]"),t=e.filter("[aria-selected=true]");0<t.length?t.first().trigger("mouseenter"):e.first().trigger("mouseenter"),this.ensureHighlightVisible()},r.prototype.setClasses=function(){var t=this;this.data.current(function(e){var r=h.map(e,function(e){return e.id.toString()});t.$results.find(".select2-results__option[aria-selected]").each(function(){var e=h(this),t=f.GetData(this,"data"),n=""+t.id;null!=t.element&&t.element.selected||null==t.element&&-1<h.inArray(n,r)?e.attr("aria-selected","true"):e.attr("aria-selected","false")})})},r.prototype.showLoading=function(e){this.hideLoading();var t={disabled:!0,loading:!0,text:this.options.get("translations").get("searching")(e)},n=this.option(t);n.className+=" loading-results",this.$results.prepend(n)},r.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},r.prototype.option=function(e){var t=document.createElement("li");t.className="select2-results__option";var n={role:"option","aria-selected":"false"},r=window.Element.prototype.matches||window.Element.prototype.msMatchesSelector||window.Element.prototype.webkitMatchesSelector;for(var i in(null!=e.element&&r.call(e.element,":disabled")||null==e.element&&e.disabled)&&(delete n["aria-selected"],n["aria-disabled"]="true"),null==e.id&&delete n["aria-selected"],null!=e._resultId&&(t.id=e._resultId),e.title&&(t.title=e.title),e.children&&(n.role="group",n["aria-label"]=e.text,delete n["aria-selected"]),n){var o=n[i];t.setAttribute(i,o)}if(e.children){var s=h(t),a=document.createElement("strong");a.className="select2-results__group";h(a);this.template(e,a);for(var l=[],c=0;c<e.children.length;c++){var u=e.children[c],d=this.option(u);l.push(d)}var p=h("<ul></ul>",{class:"select2-results__options select2-results__options--nested"});p.append(l),s.append(a),s.append(p)}else this.template(e,t);return f.StoreData(t,"data",e),t},r.prototype.bind=function(t,e){var l=this,n=t.id+"-results";this.$results.attr("id",n),t.on("results:all",function(e){l.clear(),l.append(e.data),t.isOpen()&&(l.setClasses(),l.highlightFirstItem())}),t.on("results:append",function(e){l.append(e.data),t.isOpen()&&l.setClasses()}),t.on("query",function(e){l.hideMessages(),l.showLoading(e)}),t.on("select",function(){t.isOpen()&&(l.setClasses(),l.options.get("scrollAfterSelect")&&l.highlightFirstItem())}),t.on("unselect",function(){t.isOpen()&&(l.setClasses(),l.options.get("scrollAfterSelect")&&l.highlightFirstItem())}),t.on("open",function(){l.$results.attr("aria-expanded","true"),l.$results.attr("aria-hidden","false"),l.setClasses(),l.ensureHighlightVisible()}),t.on("close",function(){l.$results.attr("aria-expanded","false"),l.$results.attr("aria-hidden","true"),l.$results.removeAttr("aria-activedescendant")}),t.on("results:toggle",function(){var e=l.getHighlightedResults();0!==e.length&&e.trigger("mouseup")}),t.on("results:select",function(){var e=l.getHighlightedResults();if(0!==e.length){var t=f.GetData(e[0],"data");"true"==e.attr("aria-selected")?l.trigger("close",{}):l.trigger("select",{data:t})}}),t.on("results:previous",function(){var e=l.getHighlightedResults(),t=l.$results.find("[aria-selected]"),n=t.index(e);if(!(n<=0)){var r=n-1;0===e.length&&(r=0);var i=t.eq(r);i.trigger("mouseenter");var o=l.$results.offset().top,s=i.offset().top,a=l.$results.scrollTop()+(s-o);0===r?l.$results.scrollTop(0):s-o<0&&l.$results.scrollTop(a)}}),t.on("results:next",function(){var e=l.getHighlightedResults(),t=l.$results.find("[aria-selected]"),n=t.index(e)+1;if(!(n>=t.length)){var r=t.eq(n);r.trigger("mouseenter");var i=l.$results.offset().top+l.$results.outerHeight(!1),o=r.offset().top+r.outerHeight(!1),s=l.$results.scrollTop()+o-i;0===n?l.$results.scrollTop(0):i<o&&l.$results.scrollTop(s)}}),t.on("results:focus",function(e){e.element.addClass("select2-results__option--highlighted")}),t.on("results:message",function(e){l.displayMessage(e)}),h.fn.mousewheel&&this.$results.on("mousewheel",function(e){var t=l.$results.scrollTop(),n=l.$results.get(0).scrollHeight-t+e.deltaY,r=0<e.deltaY&&t-e.deltaY<=0,i=e.deltaY<0&&n<=l.$results.height();r?(l.$results.scrollTop(0),e.preventDefault(),e.stopPropagation()):i&&(l.$results.scrollTop(l.$results.get(0).scrollHeight-l.$results.height()),e.preventDefault(),e.stopPropagation())}),this.$results.on("mouseup",".select2-results__option[aria-selected]",function(e){var t=h(this),n=f.GetData(this,"data");"true"!==t.attr("aria-selected")?l.trigger("select",{originalEvent:e,data:n}):l.options.get("multiple")?l.trigger("unselect",{originalEvent:e,data:n}):l.trigger("close",{})}),this.$results.on("mouseenter",".select2-results__option[aria-selected]",function(e){var t=f.GetData(this,"data");l.getHighlightedResults().removeClass("select2-results__option--highlighted"),l.trigger("results:focus",{data:t,element:h(this)})})},r.prototype.getHighlightedResults=function(){return this.$results.find(".select2-results__option--highlighted")},r.prototype.destroy=function(){this.$results.remove()},r.prototype.ensureHighlightVisible=function(){var e=this.getHighlightedResults();if(0!==e.length){var t=this.$results.find("[aria-selected]").index(e),n=this.$results.offset().top,r=e.offset().top,i=this.$results.scrollTop()+(r-n),o=r-n;i-=2*e.outerHeight(!1),t<=2?this.$results.scrollTop(0):(o>this.$results.outerHeight()||o<0)&&this.$results.scrollTop(i)}},r.prototype.template=function(e,t){var n=this.options.get("templateResult"),r=this.options.get("escapeMarkup"),i=n(e,t);null==i?t.style.display="none":"string"==typeof i?t.innerHTML=r(i):h(t).append(i)},r}),e.define("select2/keys",[],function(){return{BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46}}),e.define("select2/selection/base",["jquery","../utils","../keys"],function(n,r,i){function o(e,t){this.$element=e,this.options=t,o.__super__.constructor.call(this)}return r.Extend(o,r.Observable),o.prototype.render=function(){var e=n('<span class="select2-selection" role="combobox" aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=r.GetData(this.$element[0],"old-tabindex")?this._tabindex=r.GetData(this.$element[0],"old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),e.attr("title",this.$element.attr("title")),e.attr("tabindex",this._tabindex),e.attr("aria-disabled","false"),this.$selection=e},o.prototype.bind=function(e,t){var n=this,r=e.id+"-results";this.container=e,this.$selection.on("focus",function(e){n.trigger("focus",e)}),this.$selection.on("blur",function(e){n._handleBlur(e)}),this.$selection.on("keydown",function(e){n.trigger("keypress",e),e.which===i.SPACE&&e.preventDefault()}),e.on("results:focus",function(e){n.$selection.attr("aria-activedescendant",e.data._resultId)}),e.on("selection:update",function(e){n.update(e.data)}),e.on("open",function(){n.$selection.attr("aria-expanded","true"),n.$selection.attr("aria-owns",r),n._attachCloseHandler(e)}),e.on("close",function(){n.$selection.attr("aria-expanded","false"),n.$selection.removeAttr("aria-activedescendant"),n.$selection.removeAttr("aria-owns"),n.$selection.trigger("focus"),n._detachCloseHandler(e)}),e.on("enable",function(){n.$selection.attr("tabindex",n._tabindex),n.$selection.attr("aria-disabled","false")}),e.on("disable",function(){n.$selection.attr("tabindex","-1"),n.$selection.attr("aria-disabled","true")})},o.prototype._handleBlur=function(e){var t=this;window.setTimeout(function(){document.activeElement==t.$selection[0]||n.contains(t.$selection[0],document.activeElement)||t.trigger("blur",e)},1)},o.prototype._attachCloseHandler=function(e){n(document.body).on("mousedown.select2."+e.id,function(e){var t=n(e.target).closest(".select2");n(".select2.select2-container--open").each(function(){this!=t[0]&&r.GetData(this,"element").select2("close")})})},o.prototype._detachCloseHandler=function(e){n(document.body).off("mousedown.select2."+e.id)},o.prototype.position=function(e,t){t.find(".selection").append(e)},o.prototype.destroy=function(){this._detachCloseHandler(this.container)},o.prototype.update=function(e){throw new Error("The `update` method must be defined in child classes.")},o.prototype.isEnabled=function(){return!this.isDisabled()},o.prototype.isDisabled=function(){return this.options.get("disabled")},o}),e.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(e,t,n,r){function i(){i.__super__.constructor.apply(this,arguments)}return n.Extend(i,t),i.prototype.render=function(){var e=i.__super__.render.call(this);return e.addClass("select2-selection--single"),e.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),e},i.prototype.bind=function(t,e){var n=this;i.__super__.bind.apply(this,arguments);var r=t.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",r).attr("role","textbox").attr("aria-readonly","true"),this.$selection.attr("aria-labelledby",r),this.$selection.on("mousedown",function(e){1===e.which&&n.trigger("toggle",{originalEvent:e})}),this.$selection.on("focus",function(e){}),this.$selection.on("blur",function(e){}),t.on("focus",function(e){t.isOpen()||n.$selection.trigger("focus")})},i.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},i.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},i.prototype.selectionContainer=function(){return e("<span></span>")},i.prototype.update=function(e){if(0!==e.length){var t=e[0],n=this.$selection.find(".select2-selection__rendered"),r=this.display(t,n);n.empty().append(r);var i=t.title||t.text;i?n.attr("title",i):n.removeAttr("title")}else this.clear()},i}),e.define("select2/selection/multiple",["jquery","./base","../utils"],function(i,e,l){function n(e,t){n.__super__.constructor.apply(this,arguments)}return l.Extend(n,e),n.prototype.render=function(){var e=n.__super__.render.call(this);return e.addClass("select2-selection--multiple"),e.html('<ul class="select2-selection__rendered"></ul>'),e},n.prototype.bind=function(e,t){var r=this;n.__super__.bind.apply(this,arguments),this.$selection.on("click",function(e){r.trigger("toggle",{originalEvent:e})}),this.$selection.on("click",".select2-selection__choice__remove",function(e){if(!r.isDisabled()){var t=i(this).parent(),n=l.GetData(t[0],"data");r.trigger("unselect",{originalEvent:e,data:n})}})},n.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},n.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},n.prototype.selectionContainer=function(){return i('<li class="select2-selection__choice"><span class="select2-selection__choice__remove" role="presentation">×</span></li>')},n.prototype.update=function(e){if(this.clear(),0!==e.length){for(var t=[],n=0;n<e.length;n++){var r=e[n],i=this.selectionContainer(),o=this.display(r,i);i.append(o);var s=r.title||r.text;s&&i.attr("title",s),l.StoreData(i[0],"data",r),t.push(i)}var a=this.$selection.find(".select2-selection__rendered");l.appendMany(a,t)}},n}),e.define("select2/selection/placeholder",["../utils"],function(e){function t(e,t,n){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n)}return t.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},t.prototype.createPlaceholder=function(e,t){var n=this.selectionContainer();return n.html(this.display(t)),n.addClass("select2-selection__placeholder").removeClass("select2-selection__choice"),n},t.prototype.update=function(e,t){var n=1==t.length&&t[0].id!=this.placeholder.id;if(1<t.length||n)return e.call(this,t);this.clear();var r=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(r)},t}),e.define("select2/selection/allowClear",["jquery","../keys","../utils"],function(i,r,a){function e(){}return e.prototype.bind=function(e,t,n){var r=this;e.call(this,t,n),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2-selection__clear",function(e){r._handleClear(e)}),t.on("keypress",function(e){r._handleKeyboardClear(e,t)})},e.prototype._handleClear=function(e,t){if(!this.isDisabled()){var n=this.$selection.find(".select2-selection__clear");if(0!==n.length){t.stopPropagation();var r=a.GetData(n[0],"data"),i=this.$element.val();this.$element.val(this.placeholder.id);var o={data:r};if(this.trigger("clear",o),o.prevented)this.$element.val(i);else{for(var s=0;s<r.length;s++)if(o={data:r[s]},this.trigger("unselect",o),o.prevented)return void this.$element.val(i);this.$element.trigger("input").trigger("change"),this.trigger("toggle",{})}}}},e.prototype._handleKeyboardClear=function(e,t,n){n.isOpen()||t.which!=r.DELETE&&t.which!=r.BACKSPACE||this._handleClear(t)},e.prototype.update=function(e,t){if(e.call(this,t),!(0<this.$selection.find(".select2-selection__placeholder").length||0===t.length)){var n=this.options.get("translations").get("removeAllItems"),r=i('<span class="select2-selection__clear" title="'+n()+'">×</span>');a.StoreData(r[0],"data",t),this.$selection.find(".select2-selection__rendered").prepend(r)}},e}),e.define("select2/selection/search",["jquery","../utils","../keys"],function(r,a,l){function e(e,t,n){e.call(this,t,n)}return e.prototype.render=function(e){var t=r('<li class="select2-search select2-search--inline"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></li>');this.$searchContainer=t,this.$search=t.find("input");var n=e.call(this);return this._transferTabIndex(),n},e.prototype.bind=function(e,t,n){var r=this,i=t.id+"-results";e.call(this,t,n),t.on("open",function(){r.$search.attr("aria-controls",i),r.$search.trigger("focus")}),t.on("close",function(){r.$search.val(""),r.$search.removeAttr("aria-controls"),r.$search.removeAttr("aria-activedescendant"),r.$search.trigger("focus")}),t.on("enable",function(){r.$search.prop("disabled",!1),r._transferTabIndex()}),t.on("disable",function(){r.$search.prop("disabled",!0)}),t.on("focus",function(e){r.$search.trigger("focus")}),t.on("results:focus",function(e){e.data._resultId?r.$search.attr("aria-activedescendant",e.data._resultId):r.$search.removeAttr("aria-activedescendant")}),this.$selection.on("focusin",".select2-search--inline",function(e){r.trigger("focus",e)}),this.$selection.on("focusout",".select2-search--inline",function(e){r._handleBlur(e)}),this.$selection.on("keydown",".select2-search--inline",function(e){if(e.stopPropagation(),r.trigger("keypress",e),r._keyUpPrevented=e.isDefaultPrevented(),e.which===l.BACKSPACE&&""===r.$search.val()){var t=r.$searchContainer.prev(".select2-selection__choice");if(0<t.length){var n=a.GetData(t[0],"data");r.searchRemoveChoice(n),e.preventDefault()}}}),this.$selection.on("click",".select2-search--inline",function(e){r.$search.val()&&e.stopPropagation()});var o=document.documentMode,s=o&&o<=11;this.$selection.on("input.searchcheck",".select2-search--inline",function(e){s?r.$selection.off("input.search input.searchcheck"):r.$selection.off("keyup.search")}),this.$selection.on("keyup.search input.search",".select2-search--inline",function(e){if(s&&"input"===e.type)r.$selection.off("input.search input.searchcheck");else{var t=e.which;t!=l.SHIFT&&t!=l.CTRL&&t!=l.ALT&&t!=l.TAB&&r.handleSearch(e)}})},e.prototype._transferTabIndex=function(e){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},e.prototype.createPlaceholder=function(e,t){this.$search.attr("placeholder",t.text)},e.prototype.update=function(e,t){var n=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),e.call(this,t),this.$selection.find(".select2-selection__rendered").append(this.$searchContainer),this.resizeSearch(),n&&this.$search.trigger("focus")},e.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var e=this.$search.val();this.trigger("query",{term:e})}this._keyUpPrevented=!1},e.prototype.searchRemoveChoice=function(e,t){this.trigger("unselect",{data:t}),this.$search.val(t.text),this.handleSearch()},e.prototype.resizeSearch=function(){this.$search.css("width","25px");var e="";""!==this.$search.attr("placeholder")?e=this.$selection.find(".select2-selection__rendered").width():e=.75*(this.$search.val().length+1)+"em";this.$search.css("width",e)},e}),e.define("select2/selection/eventRelay",["jquery"],function(s){function e(){}return e.prototype.bind=function(e,t,n){var r=this,i=["open","opening","close","closing","select","selecting","unselect","unselecting","clear","clearing"],o=["opening","closing","selecting","unselecting","clearing"];e.call(this,t,n),t.on("*",function(e,t){if(-1!==s.inArray(e,i)){t=t||{};var n=s.Event("select2:"+e,{params:t});r.$element.trigger(n),-1!==s.inArray(e,o)&&(t.prevented=n.isDefaultPrevented())}})},e}),e.define("select2/translation",["jquery","require"],function(t,n){function r(e){this.dict=e||{}}return r.prototype.all=function(){return this.dict},r.prototype.get=function(e){return this.dict[e]},r.prototype.extend=function(e){this.dict=t.extend({},e.all(),this.dict)},r._cache={},r.loadPath=function(e){if(!(e in r._cache)){var t=n(e);r._cache[e]=t}return new r(r._cache[e])},r}),e.define("select2/diacritics",[],function(){return{"Ⓐ":"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","Œ":"OE","Ƣ":"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","œ":"oe","ƣ":"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","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ώ":"ω","ς":"σ","’":"'"}}),e.define("select2/data/base",["../utils"],function(r){function n(e,t){n.__super__.constructor.call(this)}return r.Extend(n,r.Observable),n.prototype.current=function(e){throw new Error("The `current` method must be defined in child classes.")},n.prototype.query=function(e,t){throw new Error("The `query` method must be defined in child classes.")},n.prototype.bind=function(e,t){},n.prototype.destroy=function(){},n.prototype.generateResultId=function(e,t){var n=e.id+"-result-";return n+=r.generateChars(4),null!=t.id?n+="-"+t.id.toString():n+="-"+r.generateChars(4),n},n}),e.define("select2/data/select",["./base","../utils","jquery"],function(e,a,l){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return a.Extend(n,e),n.prototype.current=function(e){var n=[],r=this;this.$element.find(":selected").each(function(){var e=l(this),t=r.item(e);n.push(t)}),e(n)},n.prototype.select=function(i){var o=this;if(i.selected=!0,l(i.element).is("option"))return i.element.selected=!0,void this.$element.trigger("input").trigger("change");if(this.$element.prop("multiple"))this.current(function(e){var t=[];(i=[i]).push.apply(i,e);for(var n=0;n<i.length;n++){var r=i[n].id;-1===l.inArray(r,t)&&t.push(r)}o.$element.val(t),o.$element.trigger("input").trigger("change")});else{var e=i.id;this.$element.val(e),this.$element.trigger("input").trigger("change")}},n.prototype.unselect=function(i){var o=this;if(this.$element.prop("multiple")){if(i.selected=!1,l(i.element).is("option"))return i.element.selected=!1,void this.$element.trigger("input").trigger("change");this.current(function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n].id;r!==i.id&&-1===l.inArray(r,t)&&t.push(r)}o.$element.val(t),o.$element.trigger("input").trigger("change")})}},n.prototype.bind=function(e,t){var n=this;(this.container=e).on("select",function(e){n.select(e.data)}),e.on("unselect",function(e){n.unselect(e.data)})},n.prototype.destroy=function(){this.$element.find("*").each(function(){a.RemoveData(this)})},n.prototype.query=function(r,e){var i=[],o=this;this.$element.children().each(function(){var e=l(this);if(e.is("option")||e.is("optgroup")){var t=o.item(e),n=o.matches(r,t);null!==n&&i.push(n)}}),e({results:i})},n.prototype.addOptions=function(e){a.appendMany(this.$element,e)},n.prototype.option=function(e){var t;e.children?(t=document.createElement("optgroup")).label=e.text:void 0!==(t=document.createElement("option")).textContent?t.textContent=e.text:t.innerText=e.text,void 0!==e.id&&(t.value=e.id),e.disabled&&(t.disabled=!0),e.selected&&(t.selected=!0),e.title&&(t.title=e.title);var n=l(t),r=this._normalizeItem(e);return r.element=t,a.StoreData(t,"data",r),n},n.prototype.item=function(e){var t={};if(null!=(t=a.GetData(e[0],"data")))return t;if(e.is("option"))t={id:e.val(),text:e.text(),disabled:e.prop("disabled"),selected:e.prop("selected"),title:e.prop("title")};else if(e.is("optgroup")){t={text:e.prop("label"),children:[],title:e.prop("title")};for(var n=e.children("option"),r=[],i=0;i<n.length;i++){var o=l(n[i]),s=this.item(o);r.push(s)}t.children=r}return(t=this._normalizeItem(t)).element=e[0],a.StoreData(e[0],"data",t),t},n.prototype._normalizeItem=function(e){e!==Object(e)&&(e={id:e,text:e});return null!=(e=l.extend({},{text:""},e)).id&&(e.id=e.id.toString()),null!=e.text&&(e.text=e.text.toString()),null==e._resultId&&e.id&&null!=this.container&&(e._resultId=this.generateResultId(this.container,e)),l.extend({},{selected:!1,disabled:!1},e)},n.prototype.matches=function(e,t){return this.options.get("matcher")(e,t)},n}),e.define("select2/data/array",["./select","../utils","jquery"],function(e,f,g){function r(e,t){this._dataToConvert=t.get("data")||[],r.__super__.constructor.call(this,e,t)}return f.Extend(r,e),r.prototype.bind=function(e,t){r.__super__.bind.call(this,e,t),this.addOptions(this.convertToOptions(this._dataToConvert))},r.prototype.select=function(n){var e=this.$element.find("option").filter(function(e,t){return t.value==n.id.toString()});0===e.length&&(e=this.option(n),this.addOptions(e)),r.__super__.select.call(this,n)},r.prototype.convertToOptions=function(e){var t=this,n=this.$element.find("option"),r=n.map(function(){return t.item(g(this)).id}).get(),i=[];function o(e){return function(){return g(this).val()==e.id}}for(var s=0;s<e.length;s++){var a=this._normalizeItem(e[s]);if(0<=g.inArray(a.id,r)){var l=n.filter(o(a)),c=this.item(l),u=g.extend(!0,{},a,c),d=this.option(u);l.replaceWith(d)}else{var p=this.option(a);if(a.children){var h=this.convertToOptions(a.children);f.appendMany(p,h)}i.push(p)}}return i},r}),e.define("select2/data/ajax",["./array","../utils","jquery"],function(e,t,o){function n(e,t){this.ajaxOptions=this._applyDefaults(t.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),n.__super__.constructor.call(this,e,t)}return t.Extend(n,e),n.prototype._applyDefaults=function(e){var t={data:function(e){return o.extend({},e,{q:e.term})},transport:function(e,t,n){var r=o.ajax(e);return r.then(t),r.fail(n),r}};return o.extend({},t,e,!0)},n.prototype.processResults=function(e){return e},n.prototype.query=function(n,r){var i=this;null!=this._request&&(o.isFunction(this._request.abort)&&this._request.abort(),this._request=null);var t=o.extend({type:"GET"},this.ajaxOptions);function e(){var e=t.transport(t,function(e){var t=i.processResults(e,n);i.options.get("debug")&&window.console&&console.error&&(t&&t.results&&o.isArray(t.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),r(t)},function(){"status"in e&&(0===e.status||"0"===e.status)||i.trigger("results:message",{message:"errorLoading"})});i._request=e}"function"==typeof t.url&&(t.url=t.url.call(this.$element,n)),"function"==typeof t.data&&(t.data=t.data.call(this.$element,n)),this.ajaxOptions.delay&&null!=n.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(e,this.ajaxOptions.delay)):e()},n}),e.define("select2/data/tags",["jquery"],function(u){function e(e,t,n){var r=n.get("tags"),i=n.get("createTag");void 0!==i&&(this.createTag=i);var o=n.get("insertTag");if(void 0!==o&&(this.insertTag=o),e.call(this,t,n),u.isArray(r))for(var s=0;s<r.length;s++){var a=r[s],l=this._normalizeItem(a),c=this.option(l);this.$element.append(c)}}return e.prototype.query=function(e,c,u){var d=this;this._removeOldTags(),null!=c.term&&null==c.page?e.call(this,c,function e(t,n){for(var r=t.results,i=0;i<r.length;i++){var o=r[i],s=null!=o.children&&!e({results:o.children},!0);if((o.text||"").toUpperCase()===(c.term||"").toUpperCase()||s)return!n&&(t.data=r,void u(t))}if(n)return!0;var a=d.createTag(c);if(null!=a){var l=d.option(a);l.attr("data-select2-tag",!0),d.addOptions([l]),d.insertTag(r,a)}t.results=r,u(t)}):e.call(this,c,u)},e.prototype.createTag=function(e,t){var n=u.trim(t.term);return""===n?null:{id:n,text:n}},e.prototype.insertTag=function(e,t,n){t.unshift(n)},e.prototype._removeOldTags=function(e){this.$element.find("option[data-select2-tag]").each(function(){this.selected||u(this).remove()})},e}),e.define("select2/data/tokenizer",["jquery"],function(d){function e(e,t,n){var r=n.get("tokenizer");void 0!==r&&(this.tokenizer=r),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){e.call(this,t,n),this.$search=t.dropdown.$search||t.selection.$search||n.find(".select2-search__field")},e.prototype.query=function(e,t,n){var i=this;t.term=t.term||"";var r=this.tokenizer(t,this.options,function(e){var t,n=i._normalizeItem(e);if(!i.$element.find("option").filter(function(){return d(this).val()===n.id}).length){var r=i.option(n);r.attr("data-select2-tag",!0),i._removeOldTags(),i.addOptions([r])}t=n,i.trigger("select",{data:t})});r.term!==t.term&&(this.$search.length&&(this.$search.val(r.term),this.$search.trigger("focus")),t.term=r.term),e.call(this,t,n)},e.prototype.tokenizer=function(e,t,n,r){for(var i=n.get("tokenSeparators")||[],o=t.term,s=0,a=this.createTag||function(e){return{id:e.term,text:e.term}};s<o.length;){var l=o[s];if(-1!==d.inArray(l,i)){var c=o.substr(0,s),u=a(d.extend({},t,{term:c}));null!=u?(r(u),o=o.substr(s+1)||"",s=0):s++}else s++}return{term:o}},e}),e.define("select2/data/minimumInputLength",[],function(){function e(e,t,n){this.minimumInputLength=n.get("minimumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){t.term=t.term||"",t.term.length<this.minimumInputLength?this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:t.term,params:t}}):e.call(this,t,n)},e}),e.define("select2/data/maximumInputLength",[],function(){function e(e,t,n){this.maximumInputLength=n.get("maximumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){t.term=t.term||"",0<this.maximumInputLength&&t.term.length>this.maximumInputLength?this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:t.term,params:t}}):e.call(this,t,n)},e}),e.define("select2/data/maximumSelectionLength",[],function(){function e(e,t,n){this.maximumSelectionLength=n.get("maximumSelectionLength"),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){var r=this;e.call(this,t,n),t.on("select",function(){r._checkIfMaximumSelected()})},e.prototype.query=function(e,t,n){var r=this;this._checkIfMaximumSelected(function(){e.call(r,t,n)})},e.prototype._checkIfMaximumSelected=function(e,n){var r=this;this.current(function(e){var t=null!=e?e.length:0;0<r.maximumSelectionLength&&t>=r.maximumSelectionLength?r.trigger("results:message",{message:"maximumSelected",args:{maximum:r.maximumSelectionLength}}):n&&n()})},e}),e.define("select2/dropdown",["jquery","./utils"],function(t,e){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return e.Extend(n,e.Observable),n.prototype.render=function(){var e=t('<span class="select2-dropdown"><span class="select2-results"></span></span>');return e.attr("dir",this.options.get("dir")),this.$dropdown=e},n.prototype.bind=function(){},n.prototype.position=function(e,t){},n.prototype.destroy=function(){this.$dropdown.remove()},n}),e.define("select2/dropdown/search",["jquery","../utils"],function(o,e){function t(){}return t.prototype.render=function(e){var t=e.call(this),n=o('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></span>');return this.$searchContainer=n,this.$search=n.find("input"),t.prepend(n),t},t.prototype.bind=function(e,t,n){var r=this,i=t.id+"-results";e.call(this,t,n),this.$search.on("keydown",function(e){r.trigger("keypress",e),r._keyUpPrevented=e.isDefaultPrevented()}),this.$search.on("input",function(e){o(this).off("keyup")}),this.$search.on("keyup input",function(e){r.handleSearch(e)}),t.on("open",function(){r.$search.attr("tabindex",0),r.$search.attr("aria-controls",i),r.$search.trigger("focus"),window.setTimeout(function(){r.$search.trigger("focus")},0)}),t.on("close",function(){r.$search.attr("tabindex",-1),r.$search.removeAttr("aria-controls"),r.$search.removeAttr("aria-activedescendant"),r.$search.val(""),r.$search.trigger("blur")}),t.on("focus",function(){t.isOpen()||r.$search.trigger("focus")}),t.on("results:all",function(e){null!=e.query.term&&""!==e.query.term||(r.showSearch(e)?r.$searchContainer.removeClass("select2-search--hide"):r.$searchContainer.addClass("select2-search--hide"))}),t.on("results:focus",function(e){e.data._resultId?r.$search.attr("aria-activedescendant",e.data._resultId):r.$search.removeAttr("aria-activedescendant")})},t.prototype.handleSearch=function(e){if(!this._keyUpPrevented){var t=this.$search.val();this.trigger("query",{term:t})}this._keyUpPrevented=!1},t.prototype.showSearch=function(e,t){return!0},t}),e.define("select2/dropdown/hidePlaceholder",[],function(){function e(e,t,n,r){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n,r)}return e.prototype.append=function(e,t){t.results=this.removePlaceholder(t.results),e.call(this,t)},e.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},e.prototype.removePlaceholder=function(e,t){for(var n=t.slice(0),r=t.length-1;0<=r;r--){var i=t[r];this.placeholder.id===i.id&&n.splice(r,1)}return n},e}),e.define("select2/dropdown/infiniteScroll",["jquery"],function(n){function e(e,t,n,r){this.lastParams={},e.call(this,t,n,r),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return e.prototype.append=function(e,t){this.$loadingMore.remove(),this.loading=!1,e.call(this,t),this.showLoadingMore(t)&&(this.$results.append(this.$loadingMore),this.loadMoreIfNeeded())},e.prototype.bind=function(e,t,n){var r=this;e.call(this,t,n),t.on("query",function(e){r.lastParams=e,r.loading=!0}),t.on("query:append",function(e){r.lastParams=e,r.loading=!0}),this.$results.on("scroll",this.loadMoreIfNeeded.bind(this))},e.prototype.loadMoreIfNeeded=function(){var e=n.contains(document.documentElement,this.$loadingMore[0]);if(!this.loading&&e){var t=this.$results.offset().top+this.$results.outerHeight(!1);this.$loadingMore.offset().top+this.$loadingMore.outerHeight(!1)<=t+50&&this.loadMore()}},e.prototype.loadMore=function(){this.loading=!0;var e=n.extend({},{page:1},this.lastParams);e.page++,this.trigger("query:append",e)},e.prototype.showLoadingMore=function(e,t){return t.pagination&&t.pagination.more},e.prototype.createLoadingMore=function(){var e=n('<li class="select2-results__option select2-results__option--load-more"role="option" aria-disabled="true"></li>'),t=this.options.get("translations").get("loadingMore");return e.html(t(this.lastParams)),e},e}),e.define("select2/dropdown/attachBody",["jquery","../utils"],function(f,a){function e(e,t,n){this.$dropdownParent=f(n.get("dropdownParent")||document.body),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){var r=this;e.call(this,t,n),t.on("open",function(){r._showDropdown(),r._attachPositioningHandler(t),r._bindContainerResultHandlers(t)}),t.on("close",function(){r._hideDropdown(),r._detachPositioningHandler(t)}),this.$dropdownContainer.on("mousedown",function(e){e.stopPropagation()})},e.prototype.destroy=function(e){e.call(this),this.$dropdownContainer.remove()},e.prototype.position=function(e,t,n){t.attr("class",n.attr("class")),t.removeClass("select2"),t.addClass("select2-container--open"),t.css({position:"absolute",top:-999999}),this.$container=n},e.prototype.render=function(e){var t=f("<span></span>"),n=e.call(this);return t.append(n),this.$dropdownContainer=t},e.prototype._hideDropdown=function(e){this.$dropdownContainer.detach()},e.prototype._bindContainerResultHandlers=function(e,t){if(!this._containerResultsHandlersBound){var n=this;t.on("results:all",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("results:append",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("results:message",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("select",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("unselect",function(){n._positionDropdown(),n._resizeDropdown()}),this._containerResultsHandlersBound=!0}},e.prototype._attachPositioningHandler=function(e,t){var n=this,r="scroll.select2."+t.id,i="resize.select2."+t.id,o="orientationchange.select2."+t.id,s=this.$container.parents().filter(a.hasScroll);s.each(function(){a.StoreData(this,"select2-scroll-position",{x:f(this).scrollLeft(),y:f(this).scrollTop()})}),s.on(r,function(e){var t=a.GetData(this,"select2-scroll-position");f(this).scrollTop(t.y)}),f(window).on(r+" "+i+" "+o,function(e){n._positionDropdown(),n._resizeDropdown()})},e.prototype._detachPositioningHandler=function(e,t){var n="scroll.select2."+t.id,r="resize.select2."+t.id,i="orientationchange.select2."+t.id;this.$container.parents().filter(a.hasScroll).off(n),f(window).off(n+" "+r+" "+i)},e.prototype._positionDropdown=function(){var e=f(window),t=this.$dropdown.hasClass("select2-dropdown--above"),n=this.$dropdown.hasClass("select2-dropdown--below"),r=null,i=this.$container.offset();i.bottom=i.top+this.$container.outerHeight(!1);var o={height:this.$container.outerHeight(!1)};o.top=i.top,o.bottom=i.top+o.height;var s=this.$dropdown.outerHeight(!1),a=e.scrollTop(),l=e.scrollTop()+e.height(),c=a<i.top-s,u=l>i.bottom+s,d={left:i.left,top:o.bottom},p=this.$dropdownParent;"static"===p.css("position")&&(p=p.offsetParent());var h={top:0,left:0};(f.contains(document.body,p[0])||p[0].isConnected)&&(h=p.offset()),d.top-=h.top,d.left-=h.left,t||n||(r="below"),u||!c||t?!c&&u&&t&&(r="below"):r="above",("above"==r||t&&"below"!==r)&&(d.top=o.top-h.top-s),null!=r&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+r),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+r)),this.$dropdownContainer.css(d)},e.prototype._resizeDropdown=function(){var e={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(e.minWidth=e.width,e.position="relative",e.width="auto"),this.$dropdown.css(e)},e.prototype._showDropdown=function(e){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},e}),e.define("select2/dropdown/minimumResultsForSearch",[],function(){function e(e,t,n,r){this.minimumResultsForSearch=n.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),e.call(this,t,n,r)}return e.prototype.showSearch=function(e,t){return!(function e(t){for(var n=0,r=0;r<t.length;r++){var i=t[r];i.children?n+=e(i.children):n++}return n}(t.data.results)<this.minimumResultsForSearch)&&e.call(this,t)},e}),e.define("select2/dropdown/selectOnClose",["../utils"],function(o){function e(){}return e.prototype.bind=function(e,t,n){var r=this;e.call(this,t,n),t.on("close",function(e){r._handleSelectOnClose(e)})},e.prototype._handleSelectOnClose=function(e,t){if(t&&null!=t.originalSelect2Event){var n=t.originalSelect2Event;if("select"===n._type||"unselect"===n._type)return}var r=this.getHighlightedResults();if(!(r.length<1)){var i=o.GetData(r[0],"data");null!=i.element&&i.element.selected||null==i.element&&i.selected||this.trigger("select",{data:i})}},e}),e.define("select2/dropdown/closeOnSelect",[],function(){function e(){}return e.prototype.bind=function(e,t,n){var r=this;e.call(this,t,n),t.on("select",function(e){r._selectTriggered(e)}),t.on("unselect",function(e){r._selectTriggered(e)})},e.prototype._selectTriggered=function(e,t){var n=t.originalEvent;n&&(n.ctrlKey||n.metaKey)||this.trigger("close",{originalEvent:n,originalSelect2Event:t})},e}),e.define("select2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Please delete "+t+" character";return 1!=t&&(n+="s"),n},inputTooShort:function(e){return"Please enter "+(e.minimum-e.input.length)+" or more characters"},loadingMore:function(){return"Loading more results…"},maximumSelected:function(e){var t="You can only select "+e.maximum+" item";return 1!=e.maximum&&(t+="s"),t},noResults:function(){return"No results found"},searching:function(){return"Searching…"},removeAllItems:function(){return"Remove all items"}}}),e.define("select2/defaults",["jquery","require","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./i18n/en"],function(c,u,d,p,h,f,g,m,v,y,s,t,_,$,b,w,A,x,D,S,E,C,O,T,q,L,I,j,e){function n(){this.reset()}return n.prototype.apply=function(e){if(null==(e=c.extend(!0,{},this.defaults,e)).dataAdapter){if(null!=e.ajax?e.dataAdapter=b:null!=e.data?e.dataAdapter=$:e.dataAdapter=_,0<e.minimumInputLength&&(e.dataAdapter=y.Decorate(e.dataAdapter,x)),0<e.maximumInputLength&&(e.dataAdapter=y.Decorate(e.dataAdapter,D)),0<e.maximumSelectionLength&&(e.dataAdapter=y.Decorate(e.dataAdapter,S)),e.tags&&(e.dataAdapter=y.Decorate(e.dataAdapter,w)),null==e.tokenSeparators&&null==e.tokenizer||(e.dataAdapter=y.Decorate(e.dataAdapter,A)),null!=e.query){var t=u(e.amdBase+"compat/query");e.dataAdapter=y.Decorate(e.dataAdapter,t)}if(null!=e.initSelection){var n=u(e.amdBase+"compat/initSelection");e.dataAdapter=y.Decorate(e.dataAdapter,n)}}if(null==e.resultsAdapter&&(e.resultsAdapter=d,null!=e.ajax&&(e.resultsAdapter=y.Decorate(e.resultsAdapter,T)),null!=e.placeholder&&(e.resultsAdapter=y.Decorate(e.resultsAdapter,O)),e.selectOnClose&&(e.resultsAdapter=y.Decorate(e.resultsAdapter,I))),null==e.dropdownAdapter){if(e.multiple)e.dropdownAdapter=E;else{var r=y.Decorate(E,C);e.dropdownAdapter=r}if(0!==e.minimumResultsForSearch&&(e.dropdownAdapter=y.Decorate(e.dropdownAdapter,L)),e.closeOnSelect&&(e.dropdownAdapter=y.Decorate(e.dropdownAdapter,j)),null!=e.dropdownCssClass||null!=e.dropdownCss||null!=e.adaptDropdownCssClass){var i=u(e.amdBase+"compat/dropdownCss");e.dropdownAdapter=y.Decorate(e.dropdownAdapter,i)}e.dropdownAdapter=y.Decorate(e.dropdownAdapter,q)}if(null==e.selectionAdapter){if(e.multiple?e.selectionAdapter=h:e.selectionAdapter=p,null!=e.placeholder&&(e.selectionAdapter=y.Decorate(e.selectionAdapter,f)),e.allowClear&&(e.selectionAdapter=y.Decorate(e.selectionAdapter,g)),e.multiple&&(e.selectionAdapter=y.Decorate(e.selectionAdapter,m)),null!=e.containerCssClass||null!=e.containerCss||null!=e.adaptContainerCssClass){var o=u(e.amdBase+"compat/containerCss");e.selectionAdapter=y.Decorate(e.selectionAdapter,o)}e.selectionAdapter=y.Decorate(e.selectionAdapter,v)}e.language=this._resolveLanguage(e.language),e.language.push("en");for(var s=[],a=0;a<e.language.length;a++){var l=e.language[a];-1===s.indexOf(l)&&s.push(l)}return e.language=s,e.translations=this._processTranslations(e.language,e.debug),e},n.prototype.reset=function(){function a(e){return e.replace(/[^\u0000-\u007E]/g,function(e){return t[e]||e})}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:y.escapeMarkup,language:{},matcher:function e(t,n){if(""===c.trim(t.term))return n;if(n.children&&0<n.children.length){for(var r=c.extend(!0,{},n),i=n.children.length-1;0<=i;i--)null==e(t,n.children[i])&&r.children.splice(i,1);return 0<r.children.length?r:e(t,r)}var o=a(n.text).toUpperCase(),s=a(t.term).toUpperCase();return-1<o.indexOf(s)?n:null},minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,scrollAfterSelect:!1,sorter:function(e){return e},templateResult:function(e){return e.text},templateSelection:function(e){return e.text},theme:"default",width:"resolve"}},n.prototype.applyFromElement=function(e,t){var n=e.language,r=this.defaults.language,i=t.prop("lang"),o=t.closest("[lang]").prop("lang"),s=Array.prototype.concat.call(this._resolveLanguage(i),this._resolveLanguage(n),this._resolveLanguage(r),this._resolveLanguage(o));return e.language=s,e},n.prototype._resolveLanguage=function(e){if(!e)return[];if(c.isEmptyObject(e))return[];if(c.isPlainObject(e))return[e];var t;t=c.isArray(e)?e:[e];for(var n=[],r=0;r<t.length;r++)if(n.push(t[r]),"string"==typeof t[r]&&0<t[r].indexOf("-")){var i=t[r].split("-")[0];n.push(i)}return n},n.prototype._processTranslations=function(e,t){for(var n=new s,r=0;r<e.length;r++){var i=new s,o=e[r];if("string"==typeof o)try{i=s.loadPath(o)}catch(e){try{o=this.defaults.amdLanguageBase+o,i=s.loadPath(o)}catch(e){t&&window.console&&console.warn&&console.warn('Select2: The language file for "'+o+'" could not be automatically loaded. A fallback will be used instead.')}}else i=c.isPlainObject(o)?new s(o):o;n.extend(i)}return n},n.prototype.set=function(e,t){var n={};n[c.camelCase(e)]=t;var r=y._convertData(n);c.extend(!0,this.defaults,r)},new n}),e.define("select2/options",["require","jquery","./defaults","./utils"],function(r,d,i,p){function e(e,t){if(this.options=e,null!=t&&this.fromElement(t),null!=t&&(this.options=i.applyFromElement(this.options,t)),this.options=i.apply(this.options),t&&t.is("input")){var n=r(this.get("amdBase")+"compat/inputData");this.options.dataAdapter=p.Decorate(this.options.dataAdapter,n)}}return e.prototype.fromElement=function(e){var t=["select2"];null==this.options.multiple&&(this.options.multiple=e.prop("multiple")),null==this.options.disabled&&(this.options.disabled=e.prop("disabled")),null==this.options.dir&&(e.prop("dir")?this.options.dir=e.prop("dir"):e.closest("[dir]").prop("dir")?this.options.dir=e.closest("[dir]").prop("dir"):this.options.dir="ltr"),e.prop("disabled",this.options.disabled),e.prop("multiple",this.options.multiple),p.GetData(e[0],"select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),p.StoreData(e[0],"data",p.GetData(e[0],"select2Tags")),p.StoreData(e[0],"tags",!0)),p.GetData(e[0],"ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),e.attr("ajax--url",p.GetData(e[0],"ajaxUrl")),p.StoreData(e[0],"ajax-Url",p.GetData(e[0],"ajaxUrl")));var n={};function r(e,t){return t.toUpperCase()}for(var i=0;i<e[0].attributes.length;i++){var o=e[0].attributes[i].name,s="data-";if(o.substr(0,s.length)==s){var a=o.substring(s.length),l=p.GetData(e[0],a);n[a.replace(/-([a-z])/g,r)]=l}}d.fn.jquery&&"1."==d.fn.jquery.substr(0,2)&&e[0].dataset&&(n=d.extend(!0,{},e[0].dataset,n));var c=d.extend(!0,{},p.GetData(e[0]),n);for(var u in c=p._convertData(c))-1<d.inArray(u,t)||(d.isPlainObject(this.options[u])?d.extend(this.options[u],c[u]):this.options[u]=c[u]);return this},e.prototype.get=function(e){return this.options[e]},e.prototype.set=function(e,t){this.options[e]=t},e}),e.define("select2/core",["jquery","./options","./utils","./keys"],function(o,c,u,r){var d=function(e,t){null!=u.GetData(e[0],"select2")&&u.GetData(e[0],"select2").destroy(),this.$element=e,this.id=this._generateId(e),t=t||{},this.options=new c(t,e),d.__super__.constructor.call(this);var n=e.attr("tabindex")||0;u.StoreData(e[0],"old-tabindex",n),e.attr("tabindex","-1");var r=this.options.get("dataAdapter");this.dataAdapter=new r(e,this.options);var i=this.render();this._placeContainer(i);var o=this.options.get("selectionAdapter");this.selection=new o(e,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,i);var s=this.options.get("dropdownAdapter");this.dropdown=new s(e,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,i);var a=this.options.get("resultsAdapter");this.results=new a(e,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var l=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current(function(e){l.trigger("selection:update",{data:e})}),e.addClass("select2-hidden-accessible"),e.attr("aria-hidden","true"),this._syncAttributes(),u.StoreData(e[0],"select2",this),e.data("select2",this)};return u.Extend(d,u.Observable),d.prototype._generateId=function(e){return"select2-"+(null!=e.attr("id")?e.attr("id"):null!=e.attr("name")?e.attr("name")+"-"+u.generateChars(2):u.generateChars(4)).replace(/(:|\.|\[|\]|,)/g,"")},d.prototype._placeContainer=function(e){e.insertAfter(this.$element);var t=this._resolveWidth(this.$element,this.options.get("width"));null!=t&&e.css("width",t)},d.prototype._resolveWidth=function(e,t){var n=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==t){var r=this._resolveWidth(e,"style");return null!=r?r:this._resolveWidth(e,"element")}if("element"==t){var i=e.outerWidth(!1);return i<=0?"auto":i+"px"}if("style"!=t)return"computedstyle"!=t?t:window.getComputedStyle(e[0]).width;var o=e.attr("style");if("string"!=typeof o)return null;for(var s=o.split(";"),a=0,l=s.length;a<l;a+=1){var c=s[a].replace(/\s/g,"").match(n);if(null!==c&&1<=c.length)return c[1]}return null},d.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},d.prototype._registerDomEvents=function(){var t=this;this.$element.on("change.select2",function(){t.dataAdapter.current(function(e){t.trigger("selection:update",{data:e})})}),this.$element.on("focus.select2",function(e){t.trigger("focus",e)}),this._syncA=u.bind(this._syncAttributes,this),this._syncS=u.bind(this._syncSubtree,this),this.$element[0].attachEvent&&this.$element[0].attachEvent("onpropertychange",this._syncA);var e=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;null!=e?(this._observer=new e(function(e){t._syncA(),t._syncS(null,e)}),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})):this.$element[0].addEventListener&&(this.$element[0].addEventListener("DOMAttrModified",t._syncA,!1),this.$element[0].addEventListener("DOMNodeInserted",t._syncS,!1),this.$element[0].addEventListener("DOMNodeRemoved",t._syncS,!1))},d.prototype._registerDataEvents=function(){var n=this;this.dataAdapter.on("*",function(e,t){n.trigger(e,t)})},d.prototype._registerSelectionEvents=function(){var n=this,r=["toggle","focus"];this.selection.on("toggle",function(){n.toggleDropdown()}),this.selection.on("focus",function(e){n.focus(e)}),this.selection.on("*",function(e,t){-1===o.inArray(e,r)&&n.trigger(e,t)})},d.prototype._registerDropdownEvents=function(){var n=this;this.dropdown.on("*",function(e,t){n.trigger(e,t)})},d.prototype._registerResultsEvents=function(){var n=this;this.results.on("*",function(e,t){n.trigger(e,t)})},d.prototype._registerEvents=function(){var n=this;this.on("open",function(){n.$container.addClass("select2-container--open")}),this.on("close",function(){n.$container.removeClass("select2-container--open")}),this.on("enable",function(){n.$container.removeClass("select2-container--disabled")}),this.on("disable",function(){n.$container.addClass("select2-container--disabled")}),this.on("blur",function(){n.$container.removeClass("select2-container--focus")}),this.on("query",function(t){n.isOpen()||n.trigger("open",{}),this.dataAdapter.query(t,function(e){n.trigger("results:all",{data:e,query:t})})}),this.on("query:append",function(t){this.dataAdapter.query(t,function(e){n.trigger("results:append",{data:e,query:t})})}),this.on("keypress",function(e){var t=e.which;n.isOpen()?t===r.ESC||t===r.TAB||t===r.UP&&e.altKey?(n.close(e),e.preventDefault()):t===r.ENTER?(n.trigger("results:select",{}),e.preventDefault()):t===r.SPACE&&e.ctrlKey?(n.trigger("results:toggle",{}),e.preventDefault()):t===r.UP?(n.trigger("results:previous",{}),e.preventDefault()):t===r.DOWN&&(n.trigger("results:next",{}),e.preventDefault()):(t===r.ENTER||t===r.SPACE||t===r.DOWN&&e.altKey)&&(n.open(),e.preventDefault())})},d.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.isDisabled()?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},d.prototype._isChangeMutation=function(e,t){var n=!1,r=this;if(!e||!e.target||"OPTION"===e.target.nodeName||"OPTGROUP"===e.target.nodeName){if(t)if(t.addedNodes&&0<t.addedNodes.length)for(var i=0;i<t.addedNodes.length;i++){t.addedNodes[i].selected&&(n=!0)}else t.removedNodes&&0<t.removedNodes.length?n=!0:o.isArray(t)&&o.each(t,function(e,t){if(r._isChangeMutation(e,t))return!(n=!0)});else n=!0;return n}},d.prototype._syncSubtree=function(e,t){var n=this._isChangeMutation(e,t),r=this;n&&this.dataAdapter.current(function(e){r.trigger("selection:update",{data:e})})},d.prototype.trigger=function(e,t){var n=d.__super__.trigger,r={open:"opening",close:"closing",select:"selecting",unselect:"unselecting",clear:"clearing"};if(void 0===t&&(t={}),e in r){var i=r[e],o={prevented:!1,name:e,args:t};if(n.call(this,i,o),o.prevented)return void(t.prevented=!0)}n.call(this,e,t)},d.prototype.toggleDropdown=function(){this.isDisabled()||(this.isOpen()?this.close():this.open())},d.prototype.open=function(){this.isOpen()||this.isDisabled()||this.trigger("query",{})},d.prototype.close=function(e){this.isOpen()&&this.trigger("close",{originalEvent:e})},d.prototype.isEnabled=function(){return!this.isDisabled()},d.prototype.isDisabled=function(){return this.options.get("disabled")},d.prototype.isOpen=function(){return this.$container.hasClass("select2-container--open")},d.prototype.hasFocus=function(){return this.$container.hasClass("select2-container--focus")},d.prototype.focus=function(e){this.hasFocus()||(this.$container.addClass("select2-container--focus"),this.trigger("focus",{}))},d.prototype.enable=function(e){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.'),null!=e&&0!==e.length||(e=[!0]);var t=!e[0];this.$element.prop("disabled",t)},d.prototype.data=function(){this.options.get("debug")&&0<arguments.length&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var t=[];return this.dataAdapter.current(function(e){t=e}),t},d.prototype.val=function(e){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==e||0===e.length)return this.$element.val();var t=e[0];o.isArray(t)&&(t=o.map(t,function(e){return e.toString()})),this.$element.val(t).trigger("input").trigger("change")},d.prototype.destroy=function(){this.$container.remove(),this.$element[0].detachEvent&&this.$element[0].detachEvent("onpropertychange",this._syncA),null!=this._observer?(this._observer.disconnect(),this._observer=null):this.$element[0].removeEventListener&&(this.$element[0].removeEventListener("DOMAttrModified",this._syncA,!1),this.$element[0].removeEventListener("DOMNodeInserted",this._syncS,!1),this.$element[0].removeEventListener("DOMNodeRemoved",this._syncS,!1)),this._syncA=null,this._syncS=null,this.$element.off(".select2"),this.$element.attr("tabindex",u.GetData(this.$element[0],"old-tabindex")),this.$element.removeClass("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),u.RemoveData(this.$element[0]),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},d.prototype.render=function(){var e=o('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return e.attr("dir",this.options.get("dir")),this.$container=e,this.$container.addClass("select2-container--"+this.options.get("theme")),u.StoreData(e[0],"element",this.$element),e},d}),e.define("jquery-mousewheel",["jquery"],function(e){return e}),e.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults","./select2/utils"],function(i,e,o,t,s){if(null==i.fn.select2){var a=["open","close","destroy"];i.fn.select2=function(t){if("object"==typeof(t=t||{}))return this.each(function(){var e=i.extend(!0,{},t);new o(i(this),e)}),this;if("string"!=typeof t)throw new Error("Invalid arguments for Select2: "+t);var n,r=Array.prototype.slice.call(arguments,1);return this.each(function(){var e=s.GetData(this,"select2");null==e&&window.console&&console.error&&console.error("The select2('"+t+"') method was called on an element that is not using Select2."),n=e[t].apply(e,r)}),-1<i.inArray(t,a)?this:n}}return null==i.fn.select2.defaults&&(i.fn.select2.defaults=t),o}),{define:e.define,require:e.require}}(),t=e.require("jquery.select2");return u.fn.select2.amd=e,t});
|
lite/class-icegram.php
CHANGED
@@ -492,9 +492,13 @@ if ( ! class_exists( 'Icegram' ) ) {
|
|
492 |
|
493 |
// Delete the redirect transient
|
494 |
delete_option( '_icegram_activation_redirect' );
|
|
|
|
|
|
|
|
|
|
|
|
|
495 |
|
496 |
-
wp_redirect( admin_url( 'edit.php?post_type=ig_campaign&page=icegram-support' ) );
|
497 |
-
exit;
|
498 |
}
|
499 |
|
500 |
function db_update() {
|
@@ -1062,14 +1066,38 @@ if ( ! class_exists( 'Icegram' ) ) {
|
|
1062 |
function enqueue_admin_styles_and_scripts() {
|
1063 |
|
1064 |
$screen = get_current_screen();
|
1065 |
-
if (
|
1066 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1067 |
}
|
1068 |
|
|
|
1069 |
// Register scripts
|
1070 |
wp_register_script( 'icegram_writepanel', $this->plugin_url . '/assets/js/admin.min.js', array( 'jquery', 'wp-color-picker' ), $this->version );
|
1071 |
|
1072 |
wp_enqueue_script( 'icegram_writepanel' );
|
|
|
1073 |
|
1074 |
$icegram_writepanel_params = array( 'ajax_url' => admin_url( 'admin-ajax.php' ), 'search_message_nonce' => wp_create_nonce( "search-messages" ), 'ig_nonce' => wp_create_nonce( "ig-nonce" ), 'home_url' => home_url( '/' ) );
|
1075 |
$this->available_headlines = apply_filters( 'icegram_available_headlines', array() );
|
@@ -1599,6 +1627,11 @@ if ( ! class_exists( 'Icegram' ) ) {
|
|
1599 |
update_option( 'ig_imported_gallery_items', $imported_gallery_items );
|
1600 |
$location = admin_url( 'post.php?post=' . $new_campaign_ids[0] . '&action=edit' );
|
1601 |
header( 'Location:' . $location );
|
|
|
|
|
|
|
|
|
|
|
1602 |
exit;
|
1603 |
} else {
|
1604 |
wp_safe_redirect( $_SERVER['HTTP_REFERER'] );
|
@@ -2126,7 +2159,36 @@ if ( ! class_exists( 'Icegram' ) ) {
|
|
2126 |
* @since
|
2127 |
*/
|
2128 |
public function is_premium() {
|
2129 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2130 |
}
|
2131 |
|
2132 |
}
|
492 |
|
493 |
// Delete the redirect transient
|
494 |
delete_option( '_icegram_activation_redirect' );
|
495 |
+
|
496 |
+
if ( self::show_campaign_creation_guide() ) {
|
497 |
+
wp_redirect('post-new.php?post_type=ig_campaign');
|
498 |
+
} else {
|
499 |
+
wp_redirect( admin_url( 'edit.php?post_type=ig_campaign&page=icegram-support' ) );
|
500 |
+
}
|
501 |
|
|
|
|
|
502 |
}
|
503 |
|
504 |
function db_update() {
|
1066 |
function enqueue_admin_styles_and_scripts() {
|
1067 |
|
1068 |
$screen = get_current_screen();
|
1069 |
+
if ( in_array( $screen->id, array( 'ig_campaign', 'ig_message', 'edit-ig_campaign', 'edit-ig_message', 'ig_campaign_page_icegram-gallery' ), true ) ) {
|
1070 |
+
wp_enqueue_style( 'icegram_tailwind_style', $this->plugin_url . '/dist/main.css', array(), $this->version );
|
1071 |
+
|
1072 |
+
// Select2 CSS
|
1073 |
+
if ( ! wp_style_is( 'select2', 'registered' ) ) {
|
1074 |
+
wp_register_style( 'select2', $this->plugin_url . '/assets/css/select2.min.css', array(), '4.0.13' );
|
1075 |
+
}
|
1076 |
+
|
1077 |
+
if ( ! wp_style_is( 'select2' ) ) {
|
1078 |
+
wp_enqueue_style( 'select2' );
|
1079 |
+
}
|
1080 |
+
|
1081 |
+
// Select2 JS
|
1082 |
+
if ( ! wp_script_is( 'select2', 'registered' ) ) {
|
1083 |
+
wp_register_script( 'select2', $this->plugin_url . '/assets/js/select2.min.js', array( 'jquery' ), '4.0.13', true );
|
1084 |
+
}
|
1085 |
+
|
1086 |
+
if ( ! wp_script_is( 'select2' ) ) {
|
1087 |
+
wp_enqueue_script( 'select2' );
|
1088 |
+
}
|
1089 |
+
|
1090 |
+
if ( ! in_array( $screen->id, array( 'ig_campaign', 'ig_message', 'edit-ig_campaign' ), true ) ) {
|
1091 |
+
return;
|
1092 |
+
}
|
1093 |
}
|
1094 |
|
1095 |
+
|
1096 |
// Register scripts
|
1097 |
wp_register_script( 'icegram_writepanel', $this->plugin_url . '/assets/js/admin.min.js', array( 'jquery', 'wp-color-picker' ), $this->version );
|
1098 |
|
1099 |
wp_enqueue_script( 'icegram_writepanel' );
|
1100 |
+
|
1101 |
|
1102 |
$icegram_writepanel_params = array( 'ajax_url' => admin_url( 'admin-ajax.php' ), 'search_message_nonce' => wp_create_nonce( "search-messages" ), 'ig_nonce' => wp_create_nonce( "ig-nonce" ), 'home_url' => home_url( '/' ) );
|
1103 |
$this->available_headlines = apply_filters( 'icegram_available_headlines', array() );
|
1627 |
update_option( 'ig_imported_gallery_items', $imported_gallery_items );
|
1628 |
$location = admin_url( 'post.php?post=' . $new_campaign_ids[0] . '&action=edit' );
|
1629 |
header( 'Location:' . $location );
|
1630 |
+
|
1631 |
+
if( 'no' === get_option( 'ig_is_onboarding_completed', 'no' ) ){
|
1632 |
+
update_option( 'ig_is_onboarding_completed', 'yes' );
|
1633 |
+
}
|
1634 |
+
|
1635 |
exit;
|
1636 |
} else {
|
1637 |
wp_safe_redirect( $_SERVER['HTTP_REFERER'] );
|
2159 |
* @since
|
2160 |
*/
|
2161 |
public function is_premium() {
|
2162 |
+
|
2163 |
+
return self::is_max() || self::is_pro();
|
2164 |
+
}
|
2165 |
+
|
2166 |
+
/**
|
2167 |
+
* Method to check if onboarding is completed
|
2168 |
+
*
|
2169 |
+
* @return string
|
2170 |
+
*
|
2171 |
+
*/
|
2172 |
+
public function is_onboarding_completed() {
|
2173 |
+
|
2174 |
+
$onboarding_complete = get_option( 'ig_is_onboarding_completed', 'no' );
|
2175 |
+
|
2176 |
+
if ( 'yes' === $onboarding_complete ) {
|
2177 |
+
return true;
|
2178 |
+
}
|
2179 |
+
|
2180 |
+
return false;
|
2181 |
+
|
2182 |
+
}
|
2183 |
+
|
2184 |
+
public function show_campaign_creation_guide() {
|
2185 |
+
$installed_on = get_option( 'ig_installed_on' );
|
2186 |
+
$count_posts = wp_count_posts( 'ig_campaign' );
|
2187 |
+
|
2188 |
+
if( ( empty( $installed_on ) || 'no' === get_option( 'ig_is_onboarding_completed', 'no' ) ) && ! $count_posts->publish && ! $count_posts->draft ) {
|
2189 |
+
return true;
|
2190 |
+
}
|
2191 |
+
return false;
|
2192 |
}
|
2193 |
|
2194 |
}
|
lite/dist/main.css
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
1 |
+
.icegram_tw html{line-height:1.15;-webkit-text-size-adjust:100%}.icegram_tw body{margin:0}.icegram_tw main{display:block}.icegram_tw h1{font-size:2em;margin:.67em 0}.icegram_tw hr{-webkit-box-sizing:content-box;box-sizing:content-box;height:0;overflow:visible}.icegram_tw pre{font-family:monospace,monospace;font-size:1em}.icegram_tw a{background-color:transparent}.icegram_tw abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}.icegram_tw b,.icegram_tw strong{font-weight:bolder}.icegram_tw code,.icegram_tw kbd,.icegram_tw samp{font-family:monospace,monospace;font-size:1em}.icegram_tw small{font-size:80%}.icegram_tw sub,.icegram_tw sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}.icegram_tw sub{bottom:-.25em}.icegram_tw sup{top:-.5em}.icegram_tw img{border-style:none}.icegram_tw button,.icegram_tw input,.icegram_tw optgroup,.icegram_tw select,.icegram_tw textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}.icegram_tw button,.icegram_tw input{overflow:visible}.icegram_tw button,.icegram_tw select{text-transform:none}.icegram_tw [type=button],.icegram_tw [type=reset],.icegram_tw [type=submit],.icegram_tw button{-webkit-appearance:button}.icegram_tw [type=button]::-moz-focus-inner,.icegram_tw [type=reset]::-moz-focus-inner,.icegram_tw [type=submit]::-moz-focus-inner,.icegram_tw button::-moz-focus-inner{border-style:none;padding:0}.icegram_tw [type=button]:-moz-focusring,.icegram_tw [type=reset]:-moz-focusring,.icegram_tw [type=submit]:-moz-focusring,.icegram_tw button:-moz-focusring{outline:1px dotted ButtonText}.icegram_tw fieldset{padding:.35em .75em .625em}.icegram_tw legend{-webkit-box-sizing:border-box;box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}.icegram_tw progress{vertical-align:baseline}.icegram_tw textarea{overflow:auto}.icegram_tw [type=checkbox],.icegram_tw [type=radio]{-webkit-box-sizing:border-box;box-sizing:border-box;padding:0}.icegram_tw [type=number]::-webkit-inner-spin-button,.icegram_tw [type=number]::-webkit-outer-spin-button{height:auto}.icegram_tw [type=search]{-webkit-appearance:textfield;outline-offset:-2px}.icegram_tw [type=search]::-webkit-search-decoration{-webkit-appearance:none}.icegram_tw ::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}.icegram_tw details{display:block}.icegram_tw summary{display:list-item}.icegram_tw [hidden],.icegram_tw template{display:none}.icegram_tw blockquote,.icegram_tw dd,.icegram_tw dl,.icegram_tw figure,.icegram_tw h1,.icegram_tw h2,.icegram_tw h3,.icegram_tw h4,.icegram_tw h5,.icegram_tw h6,.icegram_tw hr,.icegram_tw p,.icegram_tw pre{margin:0}.icegram_tw button{background-color:transparent;background-image:none}.icegram_tw button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}.icegram_tw fieldset{margin:0;padding:0}.icegram_tw ol,.icegram_tw ul{list-style:none;margin:0;padding:0}.icegram_tw html{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5}.icegram_tw *,.icegram_tw :after,.icegram_tw :before{-webkit-box-sizing:border-box;box-sizing:border-box;border:0 solid #d2d6dc}.icegram_tw hr{border-top-width:1px}.icegram_tw img{border-style:solid}.icegram_tw textarea{resize:vertical}.icegram_tw input::-webkit-input-placeholder,.icegram_tw textarea::-webkit-input-placeholder{color:#a0aec0}.icegram_tw input::-moz-placeholder,.icegram_tw textarea::-moz-placeholder{color:#a0aec0}.icegram_tw input::-ms-input-placeholder,.icegram_tw textarea::-ms-input-placeholder{color:#a0aec0}.icegram_tw input::placeholder,.icegram_tw textarea::placeholder{color:#a0aec0}
|
2 |
+
|
3 |
+
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */.icegram_tw [role=button],.icegram_tw button{cursor:pointer}.icegram_tw table{border-collapse:collapse}.icegram_tw h1,.icegram_tw h2,.icegram_tw h3,.icegram_tw h4,.icegram_tw h5,.icegram_tw h6{font-size:inherit;font-weight:inherit}.icegram_tw a{color:inherit;text-decoration:inherit}.icegram_tw button,.icegram_tw input,.icegram_tw optgroup,.icegram_tw select,.icegram_tw textarea{padding:0;line-height:inherit;color:inherit}.icegram_tw code,.icegram_tw kbd,.icegram_tw pre,.icegram_tw samp{font-family:Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.icegram_tw audio,.icegram_tw canvas,.icegram_tw embed,.icegram_tw iframe,.icegram_tw img,.icegram_tw object,.icegram_tw svg,.icegram_tw video{display:block;vertical-align:middle}.icegram_tw img,.icegram_tw video{max-width:100%;height:auto}.icegram_tw a{--text-opacity:1!important;color:#5850ec!important;color:rgba(88,80,236,var(--text-opacity))!important}.icegram_tw img{border:0}.icegram_tw .container{width:100%}@media (min-width:640px){.icegram_tw .container{max-width:640px}}@media (min-width:768px){.icegram_tw .container{max-width:768px}}@media (min-width:1024px){.icegram_tw .container{max-width:1024px}}@media (min-width:1280px){.icegram_tw .container{max-width:1280px}}.icegram_tw .form-input{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#d2d6dc;border-width:1px;border-radius:.375rem;padding:.5rem .75rem;font-size:1rem;line-height:1.5}.icegram_tw .form-input::-webkit-input-placeholder{color:#9fa6b2;opacity:1}.icegram_tw .form-input::-moz-placeholder{color:#9fa6b2;opacity:1}.icegram_tw .form-input::-ms-input-placeholder{color:#9fa6b2;opacity:1}.icegram_tw .form-input::placeholder{color:#9fa6b2;opacity:1}.icegram_tw .form-input:focus{outline:none;-webkit-box-shadow:0 0 0 3px rgba(164,202,254,.45);box-shadow:0 0 0 3px rgba(164,202,254,.45);border-color:#a4cafe}.icegram_tw .form-textarea{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#d2d6dc;border-width:1px;border-radius:.375rem;padding:.5rem .75rem;font-size:1rem;line-height:1.5}.icegram_tw .form-textarea::-webkit-input-placeholder{color:#9fa6b2;opacity:1}.icegram_tw .form-textarea::-moz-placeholder{color:#9fa6b2;opacity:1}.icegram_tw .form-textarea::-ms-input-placeholder{color:#9fa6b2;opacity:1}.icegram_tw .form-textarea::placeholder{color:#9fa6b2;opacity:1}.icegram_tw .form-textarea:focus{outline:none;-webkit-box-shadow:0 0 0 3px rgba(164,202,254,.45);box-shadow:0 0 0 3px rgba(164,202,254,.45);border-color:#a4cafe}.icegram_tw .form-multiselect{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#d2d6dc;border-width:1px;border-radius:.375rem;padding:.5rem .75rem;font-size:1rem;line-height:1.5}.icegram_tw .form-multiselect:focus{outline:none;-webkit-box-shadow:0 0 0 3px rgba(164,202,254,.45);box-shadow:0 0 0 3px rgba(164,202,254,.45);border-color:#a4cafe}.icegram_tw .form-select{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M7 7l3-3 3 3m0 6l-3 3-3-3' stroke='%239fa6b2' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-print-color-adjust:exact;color-adjust:exact;background-repeat:no-repeat;background-color:#fff;border-color:#d2d6dc;border-width:1px;border-radius:.375rem;padding:.5rem 2.5rem .5rem .75rem;font-size:1rem;line-height:1.5;background-position:right .5rem center;background-size:1.5em 1.5em}.icegram_tw .form-select::-ms-expand{color:#9fa6b2;border:none}@media not print{.icegram_tw .form-select::-ms-expand{display:none}}@media print and (-ms-high-contrast:active),print and (-ms-high-contrast:none){.icegram_tw .form-select{padding-right:.75rem}}.icegram_tw .form-select:focus{outline:none;-webkit-box-shadow:0 0 0 3px rgba(164,202,254,.45);box-shadow:0 0 0 3px rgba(164,202,254,.45);border-color:#a4cafe}.icegram_tw .form-checkbox:checked{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 16 16' fill='%23fff' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.707 7.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4a1 1 0 00-1.414-1.414L7 8.586 5.707 7.293z'/%3E%3C/svg%3E");border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:50%;background-repeat:no-repeat}@media not print{.icegram_tw .form-checkbox::-ms-check{border-width:1px;color:transparent;background:inherit;border-color:inherit;border-radius:inherit}}.icegram_tw .form-checkbox{-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-print-color-adjust:exact;color-adjust:exact;display:inline-block;vertical-align:middle;background-origin:border-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-ms-flex-negative:0;flex-shrink:0;height:1rem;width:1rem;color:#3f83f8;background-color:#fff;border-color:#d2d6dc;border-width:1px;border-radius:.25rem}.icegram_tw .form-checkbox:focus{outline:none;-webkit-box-shadow:0 0 0 3px rgba(164,202,254,.45);box-shadow:0 0 0 3px rgba(164,202,254,.45);border-color:#a4cafe}.icegram_tw .form-checkbox:checked:focus{border-color:transparent}.icegram_tw .form-radio:checked{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 16 16' fill='%23fff' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='8' cy='8' r='3'/%3E%3C/svg%3E");border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:50%;background-repeat:no-repeat}@media not print{.icegram_tw .form-radio::-ms-check{border-width:1px;color:transparent;background:inherit;border-color:inherit;border-radius:inherit}}.icegram_tw .form-radio{-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-print-color-adjust:exact;color-adjust:exact;display:inline-block;vertical-align:middle;background-origin:border-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-ms-flex-negative:0;flex-shrink:0;border-radius:100%;height:1rem;width:1rem;color:#3f83f8;background-color:#fff;border-color:#d2d6dc;border-width:1px}.icegram_tw .form-radio:focus{outline:none;-webkit-box-shadow:0 0 0 3px rgba(164,202,254,.45);box-shadow:0 0 0 3px rgba(164,202,254,.45);border-color:#a4cafe}.icegram_tw .form-radio:checked:focus{border-color:transparent}.icegram_tw .form-select{padding:.15rem 2rem .15rem .75rem}li.menu-top div.wp-menu-image img{display:initial;border-style:none}.icegram_tw{@-webkit-keyframes spin{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}}.icegram_tw .bg-white{--bg-opacity:1!important;background-color:#fff!important;background-color:rgba(255,255,255,var(--bg-opacity))!important}.icegram_tw .bg-gray-50{--bg-opacity:1!important;background-color:#f9fafb!important;background-color:rgba(249,250,251,var(--bg-opacity))!important}.icegram_tw .bg-blue-700{--bg-opacity:1!important;background-color:#1a56db!important;background-color:rgba(26,86,219,var(--bg-opacity))!important}.icegram_tw .bg-indigo-800{--bg-opacity:1!important;background-color:#42389d!important;background-color:rgba(66,56,157,var(--bg-opacity))!important}.icegram_tw .bg-purple-100{--bg-opacity:1!important;background-color:#edebfe!important;background-color:rgba(237,235,254,var(--bg-opacity))!important}.icegram_tw .hover\:bg-indigo-600:hover{--bg-opacity:1!important;background-color:#5850ec!important;background-color:rgba(88,80,236,var(--bg-opacity))!important}.icegram_tw .border-transparent{border-color:transparent!important}.icegram_tw .border-gray-200{--border-opacity:1!important;border-color:#e5e7eb!important;border-color:rgba(229,231,235,var(--border-opacity))!important}.icegram_tw .border-gray-300{--border-opacity:1!important;border-color:#d2d6dc!important;border-color:rgba(210,214,220,var(--border-opacity))!important}.icegram_tw .rounded{border-radius:.25rem!important}.icegram_tw .rounded-md{border-radius:.375rem!important}.icegram_tw .rounded-lg{border-radius:.5rem!important}.icegram_tw .rounded-full{border-radius:9999px!important}.icegram_tw .border-0{border-width:0!important}.icegram_tw .border{border-width:1px!important}.icegram_tw .cursor-pointer{cursor:pointer!important}.icegram_tw .block{display:block!important}.icegram_tw .inline-block{display:inline-block!important}.icegram_tw .inline{display:inline!important}.icegram_tw .flex{display:-webkit-box!important;display:-ms-flexbox!important;display:flex!important}.icegram_tw .inline-flex{display:-webkit-inline-box!important;display:-ms-inline-flexbox!important;display:inline-flex!important}.icegram_tw .table{display:table!important}.icegram_tw .table-cell{display:table-cell!important}.icegram_tw .grid{display:grid!important}.icegram_tw .hidden{display:none!important}.icegram_tw .flex-wrap{-ms-flex-wrap:wrap!important;flex-wrap:wrap!important}.icegram_tw .items-center{-webkit-box-align:center!important;-ms-flex-align:center!important;align-items:center!important}.icegram_tw .justify-center{-webkit-box-pack:center!important;-ms-flex-pack:center!important;justify-content:center!important}.icegram_tw .flex-1{-webkit-box-flex:1!important;-ms-flex:1 1 0%!important;flex:1 1 0%!important}.icegram_tw .float-right{float:right!important}.icegram_tw .float-left{float:left!important}.icegram_tw .font-sans{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji!important}.icegram_tw .font-medium{font-weight:500!important}.icegram_tw .font-bold{font-weight:700!important}.icegram_tw .h-0{height:0!important}.icegram_tw .h-5{height:1.25rem!important}.icegram_tw .h-6{height:1.5rem!important}.icegram_tw .h-8{height:2rem!important}.icegram_tw .h-full{height:100%!important}.icegram_tw .text-sm{font-size:.875rem!important}.icegram_tw .text-base{font-size:1rem!important}.icegram_tw .text-lg{font-size:1.125rem!important}.icegram_tw .text-2xl{font-size:1.5rem!important}.icegram_tw .leading-5{line-height:1.25rem!important}.icegram_tw .leading-snug{line-height:1.375!important}.icegram_tw .leading-relaxed{line-height:1.625!important}.icegram_tw .-m-4{margin:-1rem!important}.icegram_tw .mx-1{margin-left:.25rem!important;margin-right:.25rem!important}.icegram_tw .my-3{margin-top:.75rem!important;margin-bottom:.75rem!important}.icegram_tw .my-6{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.icegram_tw .mx-auto{margin-left:auto!important;margin-right:auto!important}.icegram_tw .mx-1\.5{margin-left:.375rem!important;margin-right:.375rem!important}.icegram_tw .mb-1{margin-bottom:.25rem!important}.icegram_tw .ml-1{margin-left:.25rem!important}.icegram_tw .mb-2{margin-bottom:.5rem!important}.icegram_tw .mt-3{margin-top:.75rem!important}.icegram_tw .mb-3{margin-bottom:.75rem!important}.icegram_tw .ml-3{margin-left:.75rem!important}.icegram_tw .mt-4{margin-top:1rem!important}.icegram_tw .mb-4{margin-bottom:1rem!important}.icegram_tw .ml-4{margin-left:1rem!important}.icegram_tw .mt-6{margin-top:1.5rem!important}.icegram_tw .ml-6{margin-left:1.5rem!important}.icegram_tw .-mr-1{margin-right:-.25rem!important}.icegram_tw .-mt-2{margin-top:-.5rem!important}.icegram_tw .-mt-5{margin-top:-1.25rem!important}.icegram_tw .-ml-12{margin-left:-3rem!important}.icegram_tw .opacity-0{opacity:0!important}.icegram_tw .focus\:outline-none:focus{outline:0!important}.icegram_tw .overflow-hidden{overflow:hidden!important}.icegram_tw .p-2{padding:.5rem!important}.icegram_tw .p-4{padding:1rem!important}.icegram_tw .p-5{padding:1.25rem!important}.icegram_tw .py-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.icegram_tw .py-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.icegram_tw .px-2{padding-left:.5rem!important;padding-right:.5rem!important}.icegram_tw .py-3{padding-top:.75rem!important;padding-bottom:.75rem!important}.icegram_tw .px-3{padding-left:.75rem!important;padding-right:.75rem!important}.icegram_tw .px-4{padding-left:1rem!important;padding-right:1rem!important}.icegram_tw .px-5{padding-left:1.25rem!important;padding-right:1.25rem!important}.icegram_tw .py-0\.5{padding-top:.125rem!important;padding-bottom:.125rem!important}.icegram_tw .pointer-events-none{pointer-events:none!important}.icegram_tw .static{position:static!important}.icegram_tw .fixed{position:fixed!important}.icegram_tw .absolute{position:absolute!important}.icegram_tw .relative{position:relative!important}.icegram_tw .sticky{position:sticky!important}.icegram_tw .bottom-1{bottom:.25rem!important}.icegram_tw .focus\:shadow-outline:focus{-webkit-box-shadow:0 0 0 3px rgba(118,169,250,.45)!important;box-shadow:0 0 0 3px rgba(118,169,250,.45)!important}.icegram_tw .text-left{text-align:left!important}.icegram_tw .text-center{text-align:center!important}.icegram_tw .text-right{text-align:right!important}.icegram_tw .text-white{--text-opacity:1!important;color:#fff!important;color:rgba(255,255,255,var(--text-opacity))!important}.icegram_tw .text-gray-500{--text-opacity:1!important;color:#6b7280!important;color:rgba(107,114,128,var(--text-opacity))!important}.icegram_tw .text-gray-700{--text-opacity:1!important;color:#374151!important;color:rgba(55,65,81,var(--text-opacity))!important}.icegram_tw .text-gray-800{--text-opacity:1!important;color:#252f3f!important;color:rgba(37,47,63,var(--text-opacity))!important}.icegram_tw .text-gray-900{--text-opacity:1!important;color:#161e2e!important;color:rgba(22,30,46,var(--text-opacity))!important}.icegram_tw .text-purple-500{--text-opacity:1!important;color:#9061f9!important;color:rgba(144,97,249,var(--text-opacity))!important}.icegram_tw .hover\:text-gray-600:hover{--text-opacity:1!important;color:#4b5563!important;color:rgba(75,85,99,var(--text-opacity))!important}.icegram_tw .italic{font-style:italic!important}.icegram_tw .uppercase{text-transform:uppercase!important}.icegram_tw .lowercase{text-transform:lowercase!important}.icegram_tw .capitalize{text-transform:capitalize!important}.icegram_tw .hover\:underline:hover,.icegram_tw .underline{text-decoration:underline!important}.icegram_tw .antialiased{-webkit-font-smoothing:antialiased!important;-moz-osx-font-smoothing:grayscale!important}.icegram_tw .align-bottom{vertical-align:bottom!important}.icegram_tw .visible{visibility:visible!important}.icegram_tw .break-words{overflow-wrap:break-word!important}.icegram_tw .truncate{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}.icegram_tw .w-0{width:0!important}.icegram_tw .w-5{width:1.25rem!important}.icegram_tw .w-8{width:2rem!important}.icegram_tw .w-11\/12{width:91.666667%!important}.icegram_tw .w-full{width:100%!important}.icegram_tw .gap-x-4{grid-column-gap:1rem!important;-webkit-column-gap:1rem!important;-moz-column-gap:1rem!important;column-gap:1rem!important}.icegram_tw .gap-y-8{grid-row-gap:2rem!important;row-gap:2rem!important}.icegram_tw .transform{--transform-translate-x:0!important;--transform-translate-y:0!important;--transform-rotate:0!important;--transform-skew-x:0!important;--transform-skew-y:0!important;--transform-scale-x:1!important;--transform-scale-y:1!important;-webkit-transform:translateX(var(--transform-translate-x)) translateY(var(--transform-translate-y)) rotate(var(--transform-rotate)) skewX(var(--transform-skew-x)) skewY(var(--transform-skew-y)) scaleX(var(--transform-scale-x)) scaleY(var(--transform-scale-y))!important;transform:translateX(var(--transform-translate-x)) translateY(var(--transform-translate-y)) rotate(var(--transform-rotate)) skewX(var(--transform-skew-x)) skewY(var(--transform-skew-y)) scaleX(var(--transform-scale-x)) scaleY(var(--transform-scale-y))!important}.icegram_tw .transition{-webkit-transition-property:background-color,border-color,color,fill,stroke,opacity,-webkit-box-shadow,-webkit-transform!important;transition-property:background-color,border-color,color,fill,stroke,opacity,-webkit-box-shadow,-webkit-transform!important;transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform!important;transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform,-webkit-box-shadow,-webkit-transform!important}.icegram_tw .ease-in-out{-webkit-transition-timing-function:cubic-bezier(.4,0,.2,1)!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.icegram_tw .duration-150{-webkit-transition-duration:.15s!important;transition-duration:.15s!important}@keyframes spin{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes ping{75%,to{-webkit-transform:scale(2);transform:scale(2);opacity:0}}@keyframes pulse{50%{opacity:.5}}@keyframes bounce{0%,to{-webkit-transform:translateY(-25%);transform:translateY(-25%);-webkit-animation-timing-function:cubic-bezier(.8,0,1,1);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{-webkit-transform:none;transform:none;-webkit-animation-timing-function:cubic-bezier(0,0,.2,1);animation-timing-function:cubic-bezier(0,0,.2,1)}}@media (min-width:640px){.sm\:text-3xl{font-size:1.875rem!important}.sm\:my-7{margin-top:1.75rem!important;margin-bottom:1.75rem!important}.sm\:mt-5{margin-top:1.25rem!important}.sm\:w-full{width:100%!important}.sm\:gap-x-6{grid-column-gap:1.5rem!important;-webkit-column-gap:1.5rem!important;-moz-column-gap:1.5rem!important;column-gap:1.5rem!important}.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))!important}}@media (min-width:768px){.md\:rounded-lg{border-radius:.5rem!important}.md\:mx-auto{margin-left:auto!important;margin-right:auto!important}.md\:py-5{padding-top:1.25rem!important;padding-bottom:1.25rem!important}.md\:px-8{padding-left:2rem!important;padding-right:2rem!important}.md\:shadow-xl{-webkit-box-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 10px 10px -5px rgba(0,0,0,.04)!important;box-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 10px 10px -5px rgba(0,0,0,.04)!important}.md\:w-1\/2{width:50%!important}}@media (min-width:1024px){.lg\:flex{display:-webkit-box!important;display:-ms-flexbox!important;display:flex!important}.lg\:max-w-3xl{max-width:48rem!important}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))!important}}@media (min-width:1280px){.xl\:max-w-4xl{max-width:56rem!important}.xl\:w-1\/3{width:33.333333%!important}.xl\:gap-x-8{grid-column-gap:2rem!important;-webkit-column-gap:2rem!important;-moz-column-gap:2rem!important;column-gap:2rem!important}}
|
lite/dist/main.js
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
!function(r){var n={};function o(e){if(n[e])return n[e].exports;var t=n[e]={i:e,l:!1,exports:{}};return r[e].call(t.exports,t,t.exports,o),t.l=!0,t.exports}o.m=r,o.c=n,o.d=function(e,t,r){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(o.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)o.d(r,n,function(e){return t[e]}.bind(null,n));return r},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=0)}([function(e,t,r){"use strict";r.r(t);t=r(1)},function(e,t,r){}]);
|
lite/gallery.php
CHANGED
@@ -3,10 +3,10 @@
|
|
3 |
border-radius: 5px;
|
4 |
border: none;
|
5 |
margin-bottom: 5%;
|
6 |
-
|
7 |
}
|
8 |
.ig-gallery-wrap .theme-browser .theme:hover{
|
9 |
-
|
10 |
}
|
11 |
.ig-gallery-wrap.wrap > h2:first-child{
|
12 |
padding-left: 0 !important;
|
@@ -19,8 +19,8 @@
|
|
19 |
}
|
20 |
.ig-gallery-wrap .theme-browser .theme .theme-installed{
|
21 |
width: 2em;
|
22 |
-
|
23 |
-
|
24 |
}
|
25 |
.ig-gallery-wrap .theme-browser .theme .theme-installed:before{
|
26 |
font-size: 30px;
|
@@ -29,14 +29,14 @@
|
|
29 |
}
|
30 |
.expanded .wp-full-overlay-footer.ig-get-pro-footer{
|
31 |
position: fixed;
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
}
|
41 |
.expanded .wp-full-overlay-footer.ig-get-pro-footer span{
|
42 |
/*color: #900101;*/
|
@@ -75,139 +75,139 @@
|
|
75 |
/*.igg-sidebar .category > h2:hover{
|
76 |
background-color: orange;
|
77 |
color: #ffffff;
|
78 |
-
|
79 |
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
.igg-content .theme .unlocked {
|
184 |
-
color: #bdbdbd;
|
185 |
-
}
|
186 |
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
.ig-gallery-wrap .float-right {
|
191 |
-
float: right;
|
192 |
-
}
|
193 |
-
|
194 |
-
.ig-gallery-wrap .theme-browser {
|
195 |
-
clear:both;
|
196 |
-
}
|
197 |
-
.ig-gallery-wrap .theme-browser .themes{
|
198 |
-
clear:both;
|
199 |
-
}
|
200 |
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
211 |
/*margin-top: 1em;
|
212 |
padding-top: 0.5em;*/
|
213 |
display: inline-block;
|
@@ -222,7 +222,7 @@
|
|
222 |
.igg-content .filter-header .dashicons-arrow-right {``
|
223 |
color: #cacaca;
|
224 |
}
|
225 |
-
|
226 |
.igg-content .sub-category-title {
|
227 |
background-color: #7971f1;
|
228 |
cursor:pointer;
|
@@ -230,16 +230,16 @@
|
|
230 |
|
231 |
.igg-preview-sidebar .wp-full-overlay-sidebar-content .theme-screenshot {
|
232 |
padding: 0.5em;
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
}
|
237 |
.igg-preview-sidebar .wp-full-overlay-sidebar-content .theme-description {
|
238 |
float: none;
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
}
|
244 |
.igg-preview-sidebar .wp-full-overlay-sidebar-content .theme-name {
|
245 |
line-height: 18px;
|
@@ -256,7 +256,7 @@
|
|
256 |
.igg-preview-sidebar .wp-full-overlay-sidebar-content .theme-by a {
|
257 |
text-decoration: none;
|
258 |
color: #2a25de;
|
259 |
-
|
260 |
}
|
261 |
|
262 |
.igg-preview-sidebar .wp-full-overlay-sidebar-content .tags {
|
@@ -287,64 +287,454 @@
|
|
287 |
/*display: inline;*/
|
288 |
/*border-bottom: 1px solid #ddd;*/
|
289 |
}
|
290 |
-
|
291 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
292 |
</style>
|
|
|
293 |
<div class="wrap ig-gallery-wrap">
|
294 |
<div class="wp-clearfix">
|
295 |
-
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
300 |
</div>
|
301 |
-
|
302 |
-
|
303 |
-
|
304 |
-
<div class="
|
305 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
306 |
</div>
|
307 |
-
|
308 |
-
|
309 |
-
|
310 |
-
|
311 |
-
|
312 |
-
|
313 |
-
|
314 |
-
|
315 |
-
|
316 |
-
|
317 |
-
|
318 |
-
|
319 |
-
|
320 |
-
|
321 |
-
|
322 |
-
|
323 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
324 |
</div>
|
325 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
326 |
}
|
|
|
|
|
|
|
|
|
|
|
327 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
328 |
?>
|
|
|
|
|
|
|
|
|
329 |
</div>
|
330 |
-
<div class="
|
331 |
-
<
|
332 |
-
<div class="themes wp-clearfix"></div>
|
333 |
-
</div>
|
334 |
</div>
|
335 |
</div>
|
336 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
337 |
<!-- <div class="theme-overlay"></div> -->
|
338 |
</div><!-- .wrap -->
|
339 |
<script id="tmpl-theme" type="text/template">
|
340 |
<# if ( data.image ) { #>
|
341 |
-
|
342 |
-
|
343 |
-
|
344 |
-
</div>
|
345 |
</div>
|
|
|
346 |
<# } else { #>
|
347 |
-
|
348 |
<# } #>
|
349 |
<span class="more-details" id="{{ data.id }}-action"><?php _e( 'Preview' ); ?></span>
|
350 |
<div class="theme-author"><?php printf( __( 'By %s' ), '{{{ data.id }}}' ); ?></div>
|
@@ -354,7 +744,7 @@
|
|
354 |
|
355 |
<!-- Theme title or description.. -->
|
356 |
<# if( data.title.rendered ) { #>
|
357 |
-
|
358 |
<# } #>
|
359 |
|
360 |
<!-- For logos and labels-->
|
@@ -363,7 +753,7 @@
|
|
363 |
|
364 |
<!-- label -->
|
365 |
<# if( data.plan_name ) { #>
|
366 |
-
|
367 |
<# } #>
|
368 |
</div>
|
369 |
</div>
|
@@ -380,9 +770,9 @@
|
|
380 |
<a href="?action=fetch_messages&campaign_id={{data.campaign_id}}&gallery_item={{data.slug}}" class="btn purple theme-install" style="display:none"><?php _e( 'Use This', 'icegram' ); ?></a>
|
381 |
<a href="https://www.icegram.com/pricing/?utm_source=ig_inapp&utm_medium=ig_gallery&utm_campaign=get_pro" target="_blank" class="ig-get-pro btn green" style="display:none;">
|
382 |
<# if(data.plan === '3') { #>
|
383 |
-
|
384 |
<# } else if(data.plan === '2') { #>
|
385 |
-
|
386 |
<# } #>
|
387 |
</a>
|
388 |
</div>
|
@@ -400,14 +790,14 @@
|
|
400 |
<div class="tags">
|
401 |
<!-- plan-name -->
|
402 |
<# if(data.plan_name) { #>
|
403 |
-
|
404 |
<# } #>
|
405 |
<!-- categories -->
|
406 |
|
407 |
<# _.each(data.category_names,function(cname){ #>
|
408 |
-
|
409 |
-
|
410 |
-
|
411 |
<# }) #>
|
412 |
</div>
|
413 |
<!-- <div class="theme-info">Liked this template? <br/>Here's how you can customize it further </div> -->
|
@@ -421,10 +811,10 @@
|
|
421 |
</div>
|
422 |
</div>
|
423 |
<div class="wp-full-overlay-footer ig-get-pro ig-get-pro-footer " style="display:none">
|
424 |
-
|
425 |
-
|
426 |
<# } else if(data.plan === '2') { #>
|
427 |
-
|
428 |
<# } #>
|
429 |
</div>
|
430 |
<div class="wp-full-overlay-footer">
|
@@ -436,17 +826,17 @@
|
|
436 |
</div>
|
437 |
<div class="wp-full-overlay-main">
|
438 |
<iframe src="{{ data.link }}?utm_source=ig_inapp&utm_campaign=ig_gallery&utm_medium={{data.campaign_id}}" title="<?php esc_attr_e( 'Preview' ); ?>" />
|
439 |
-
|
440 |
-
</script>
|
441 |
|
442 |
-
<script type="text/javascript">
|
443 |
-
|
444 |
|
445 |
-
|
446 |
-
|
447 |
-
|
448 |
-
|
449 |
|
450 |
-
|
451 |
|
452 |
-
</script>
|
3 |
border-radius: 5px;
|
4 |
border: none;
|
5 |
margin-bottom: 5%;
|
6 |
+
box-shadow: 1px 3px 10px 0 rgba(0,0,0,0.15);
|
7 |
}
|
8 |
.ig-gallery-wrap .theme-browser .theme:hover{
|
9 |
+
box-shadow: 1px 3px 10px 0 rgba(0,0,0,0.2);
|
10 |
}
|
11 |
.ig-gallery-wrap.wrap > h2:first-child{
|
12 |
padding-left: 0 !important;
|
19 |
}
|
20 |
.ig-gallery-wrap .theme-browser .theme .theme-installed{
|
21 |
width: 2em;
|
22 |
+
padding: 0;
|
23 |
+
height: 2em;
|
24 |
}
|
25 |
.ig-gallery-wrap .theme-browser .theme .theme-installed:before{
|
26 |
font-size: 30px;
|
29 |
}
|
30 |
.expanded .wp-full-overlay-footer.ig-get-pro-footer{
|
31 |
position: fixed;
|
32 |
+
bottom: 60px;
|
33 |
+
left: 0;
|
34 |
+
height: 24px;
|
35 |
+
background: #dcdcdc;
|
36 |
+
text-align: center;
|
37 |
+
padding-top: 0.2em;
|
38 |
+
border-top: 1px dashed #ddd;
|
39 |
+
/*border-bottom: 1px dashed #ddd;*/
|
40 |
}
|
41 |
.expanded .wp-full-overlay-footer.ig-get-pro-footer span{
|
42 |
/*color: #900101;*/
|
75 |
/*.igg-sidebar .category > h2:hover{
|
76 |
background-color: orange;
|
77 |
color: #ffffff;
|
78 |
+
}*/
|
79 |
|
80 |
+
.igg-sidebar .category > ul{
|
81 |
+
/*margin-left: 1em;*/
|
82 |
+
padding-bottom: 0.5em;
|
83 |
+
margin-right: 1em;
|
84 |
+
margin-top:0.5em;
|
85 |
+
/*margin-bottom:1em;*/
|
86 |
+
cursor: pointer;
|
87 |
+
border-bottom: 1px solid #dedede;
|
88 |
+
}
|
89 |
|
90 |
+
.igg-sidebar .category > ul > li {
|
91 |
+
padding: 0.25em 1em;
|
92 |
+
margin: 0;
|
93 |
+
border-radius: 2px;
|
94 |
+
transition: all 0.1s;
|
95 |
+
}
|
96 |
+
.igg-sidebar .category > ul > li:hover, .igg-sidebar .category > ul > li.active {
|
97 |
+
background-color: #5f3af1;
|
98 |
+
color: white;
|
99 |
+
}
|
100 |
|
101 |
+
.igg-content .theme {
|
102 |
+
border: 7px solid white !important;
|
103 |
+
}
|
104 |
|
105 |
+
.igg-content .theme .title {
|
106 |
+
white-space: nowrap;
|
107 |
+
overflow: hidden;
|
108 |
+
text-overflow: ellipsis;
|
109 |
+
max-width: 75%;
|
110 |
+
color: #b7b7b7;
|
111 |
+
/*font-weight:200;*/
|
112 |
+
font-size: 0.85em;
|
113 |
+
}
|
114 |
|
115 |
+
.pills {
|
116 |
+
padding: 0.3em 0.6em;
|
117 |
+
background-color: #c5c5c5;
|
118 |
+
color: #ffffff;
|
119 |
+
font-size:1em;
|
120 |
+
}
|
121 |
+
.sq.pills {
|
122 |
+
border-radius: 3px;
|
123 |
+
}
|
124 |
+
.pills.sm{
|
125 |
+
font-size: 0.75em;
|
126 |
+
}
|
127 |
+
.pills.md{
|
128 |
+
font-size: 1em;
|
129 |
+
}
|
130 |
+
.pills.lg{
|
131 |
+
font-size: 1.3em;
|
132 |
+
padding: 0.4em 0.75em;
|
133 |
+
}
|
134 |
+
.pills.upc{
|
135 |
+
text-transform: uppercase;
|
136 |
+
}
|
137 |
+
.pills.cap{
|
138 |
+
text-transform: capitalize;
|
139 |
+
}
|
140 |
|
141 |
+
.btn {
|
142 |
+
padding: 0.75em 1em;
|
143 |
+
color: #ffffff;
|
144 |
+
border-radius: 3px;
|
145 |
+
text-decoration: none;
|
146 |
+
}
|
147 |
+
.btn:hover {
|
148 |
+
color: #ffffff;
|
149 |
+
background-color
|
150 |
+
}
|
151 |
|
152 |
+
.btn.purple {
|
153 |
+
background-color: hsl(244, 70%, 60%);
|
154 |
+
}
|
155 |
+
.btn.purple:hover {
|
156 |
+
background-color: hsl(244, 70%, 45%);
|
157 |
|
158 |
+
}
|
159 |
+
.btn.green {
|
160 |
+
background-color: hsl(169, 79%, 40%);;
|
161 |
+
}
|
162 |
+
.btn.green:hover {
|
163 |
+
background-color: hsl(169, 79%, 25%);;
|
164 |
+
}
|
165 |
|
166 |
+
.igg-content .theme .pills.free,
|
167 |
+
.igg-content .theme .pills.plus {
|
168 |
+
display: none;
|
169 |
+
}
|
170 |
|
171 |
+
.igg-content .theme .pills.pro {
|
172 |
+
background-color: #16b99a;
|
173 |
+
}
|
174 |
|
175 |
+
.igg-content .theme .pills.max {
|
176 |
+
background-color: #5f3af1;
|
177 |
+
}
|
178 |
|
179 |
+
.igg-content .theme .locked {
|
180 |
+
color: #e4951b;
|
181 |
+
}
|
|
|
|
|
|
|
|
|
182 |
|
183 |
+
.igg-content .theme .unlocked {
|
184 |
+
color: #bdbdbd;
|
185 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
186 |
|
187 |
+
.ig-gallery-wrap .float-left {
|
188 |
+
float: left;
|
189 |
+
}
|
190 |
+
.ig-gallery-wrap .float-right {
|
191 |
+
float: right;
|
192 |
+
}
|
193 |
+
|
194 |
+
.ig-gallery-wrap .theme-browser {
|
195 |
+
clear:both;
|
196 |
+
}
|
197 |
+
.ig-gallery-wrap .theme-browser .themes{
|
198 |
+
clear:both;
|
199 |
+
}
|
200 |
+
|
201 |
+
.igg-content .filter-header {
|
202 |
+
color: #888888;
|
203 |
+
margin: 0 0 2em 0;
|
204 |
+
/* display: none; */
|
205 |
+
border-bottom: 1px solid #e6e6e6;
|
206 |
+
padding-bottom: 1em;
|
207 |
+
}
|
208 |
+
.igg-content .filter-header .meta {
|
209 |
+
font-size: 1em;
|
210 |
+
color: #bbbbbb;
|
211 |
/*margin-top: 1em;
|
212 |
padding-top: 0.5em;*/
|
213 |
display: inline-block;
|
222 |
.igg-content .filter-header .dashicons-arrow-right {``
|
223 |
color: #cacaca;
|
224 |
}
|
225 |
+
|
226 |
.igg-content .sub-category-title {
|
227 |
background-color: #7971f1;
|
228 |
cursor:pointer;
|
230 |
|
231 |
.igg-preview-sidebar .wp-full-overlay-sidebar-content .theme-screenshot {
|
232 |
padding: 0.5em;
|
233 |
+
border-radius: 3px;
|
234 |
+
border: 1px solid #e4e4e4;
|
235 |
+
margin-bottom: 0 !important;
|
236 |
}
|
237 |
.igg-preview-sidebar .wp-full-overlay-sidebar-content .theme-description {
|
238 |
float: none;
|
239 |
+
margin-top: 0.25em;
|
240 |
+
margin-bottom: 0.5em;
|
241 |
+
border-bottom: 1px solid #e6e6e6;
|
242 |
+
padding-bottom: 0.5em;
|
243 |
}
|
244 |
.igg-preview-sidebar .wp-full-overlay-sidebar-content .theme-name {
|
245 |
line-height: 18px;
|
256 |
.igg-preview-sidebar .wp-full-overlay-sidebar-content .theme-by a {
|
257 |
text-decoration: none;
|
258 |
color: #2a25de;
|
259 |
+
font-style: italic;
|
260 |
}
|
261 |
|
262 |
.igg-preview-sidebar .wp-full-overlay-sidebar-content .tags {
|
287 |
/*display: inline;*/
|
288 |
/*border-bottom: 1px solid #ddd;*/
|
289 |
}
|
290 |
+
[type="checkbox"]:checked + .ig-select-campaign-type, [type="checkbox"]:checked + .ig-sub-selection-goal {
|
291 |
+
transition-property: all;
|
292 |
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
293 |
+
transition-duration: 100ms;
|
294 |
+
transform: scale(1.02);
|
295 |
+
box-shadow: 0 0 3px 1px rgba(90, 103, 216);
|
296 |
+
}
|
297 |
+
|
298 |
+
[type="checkbox"]:checked + .ig-select-campaign-type:hover, [type="checkbox"]:checked + .ig-sub-selection-goal:hover {
|
299 |
+
border-color: rgba(229,231,235,1);
|
300 |
+
}
|
301 |
+
|
302 |
+
.select2-container{
|
303 |
+
margin: 0 2px 0 2px;
|
304 |
+
}
|
305 |
+
|
306 |
+
@media only screen and (min-width: 1200px) {
|
307 |
+
.select2-container{
|
308 |
+
width: 36.5% !important;
|
309 |
+
}
|
310 |
+
}
|
311 |
+
@media only screen and (min-width: 1300px) {
|
312 |
+
.select2-container{
|
313 |
+
width: 37.75% !important;
|
314 |
+
margin: 0 2px 0 2px;
|
315 |
+
}
|
316 |
+
}
|
317 |
+
|
318 |
+
.select2-search__field{
|
319 |
+
width: 100% !important;
|
320 |
+
}
|
321 |
+
|
322 |
+
.select2-selection__rendered{
|
323 |
+
height:2.35rem;
|
324 |
+
}
|
325 |
+
|
326 |
+
.campaign_filters .select2-selection{
|
327 |
+
border: 1px solid #837e7e;
|
328 |
+
}
|
329 |
+
.campaign_filters .select2-container--default .select2-selection--multiple .select2-selection__choice {
|
330 |
+
margin-bottom: 0;
|
331 |
+
margin-top: 4px;
|
332 |
+
}
|
333 |
+
|
334 |
+
.campaign_filters .select2-container .select2-search--inline {
|
335 |
+
margin-bottom: 0;
|
336 |
+
}
|
337 |
+
|
338 |
+
.campaign_filters .select2-container:not(.select2-container--focus) .select2-search--inline:not(:only-child) {
|
339 |
+
display: none;
|
340 |
+
}
|
341 |
+
|
342 |
+
.campaign_filters .select2-container .select2-search--inline .select2-search__field {
|
343 |
+
margin-top: 0;
|
344 |
+
min-height: 20px;
|
345 |
+
height: 24px;
|
346 |
+
}
|
347 |
+
|
348 |
+
.campaign_filters .select2-container .select2-selection--multiple {
|
349 |
+
min-height: 30px;
|
350 |
+
}
|
351 |
+
|
352 |
+
.ig-sub-selection-goal {
|
353 |
+
height: 12rem !important;
|
354 |
+
}
|
355 |
+
|
356 |
</style>
|
357 |
+
|
358 |
<div class="wrap ig-gallery-wrap">
|
359 |
<div class="wp-clearfix">
|
360 |
+
<?php
|
361 |
+
global $icegram;
|
362 |
+
|
363 |
+
$campaign_types = array(
|
364 |
+
'popup' => array(
|
365 |
+
'term-id' => 25,
|
366 |
+
'category' => 'message-type',
|
367 |
+
'type' => 'popup',
|
368 |
+
'plan' => 'free',
|
369 |
+
'title' => __('Popup', 'icegram'),
|
370 |
+
'img-path' => 'lite/assets/images/sketch-popup-158X127.png',
|
371 |
+
),
|
372 |
+
'action-bar' => array(
|
373 |
+
'term-id' => 23,
|
374 |
+
'category' => 'message-type',
|
375 |
+
'type' => 'action-bar',
|
376 |
+
'plan' => 'free',
|
377 |
+
'title' => __('Action Bar', 'icegram'),
|
378 |
+
'img-path' => 'lite/assets/images/action-bar-158X127.png',
|
379 |
+
),
|
380 |
+
'messenger' => array(
|
381 |
+
'term-id' => 24,
|
382 |
+
'category' => 'message-type',
|
383 |
+
'type' => 'messenger',
|
384 |
+
'plan' => 'free',
|
385 |
+
'title' => __('Messenger', 'icegram'),
|
386 |
+
'img-path' => 'lite/assets/images/sketch-messenger-158X127.png',
|
387 |
+
),
|
388 |
+
'inline' => array(
|
389 |
+
'term-id' => 31,
|
390 |
+
'category' => 'message-type',
|
391 |
+
'type' => 'inline',
|
392 |
+
'plan' => 'free',
|
393 |
+
'title' => __('Inline', 'icegram'),
|
394 |
+
'img-path' => 'lite/assets/images/sketch-inline-158X127.png',
|
395 |
+
),
|
396 |
+
'badges' => array(
|
397 |
+
'term-id' => 35,
|
398 |
+
'category' => 'message-type',
|
399 |
+
'type' => 'badge',
|
400 |
+
'plan' => 'free',
|
401 |
+
'title' => __('Badges', 'icegram'),
|
402 |
+
'img-path' => 'lite/assets/images/badges-158X127.png',
|
403 |
+
),
|
404 |
+
'toast' => array(
|
405 |
+
'term-id' => 34,
|
406 |
+
'category' => 'message-type',
|
407 |
+
'type' => 'toast',
|
408 |
+
'plan' => 'free',
|
409 |
+
'title' => __('Toast', 'icegram'),
|
410 |
+
'img-path' => 'lite/assets/images/sketch-toast-notification-158X127.png',
|
411 |
+
),
|
412 |
+
'overlay' => array(
|
413 |
+
'term-id' => 39,
|
414 |
+
'category' => 'message-type',
|
415 |
+
'type' => 'overlay',
|
416 |
+
'plan' => 'free',
|
417 |
+
'title' => __('Overlay', 'icegram'),
|
418 |
+
'img-path' => 'lite/assets/images/sketch-overlay-158X127.png',
|
419 |
+
),
|
420 |
+
'sticky' => array(
|
421 |
+
'term-id' => 37,
|
422 |
+
'category' => 'message-type',
|
423 |
+
'type' => 'sticky',
|
424 |
+
'plan' => 'pro',
|
425 |
+
'title' => __('Sticky', 'icegram'),
|
426 |
+
'img-path' => 'lite/assets/images/sketch-stickies-158X127.png',
|
427 |
+
),
|
428 |
+
'ribbon' => array(
|
429 |
+
'term-id' => 36,
|
430 |
+
'category' => 'message-type',
|
431 |
+
'type' => 'ribbon',
|
432 |
+
'plan' => 'pro',
|
433 |
+
'title' => __('Ribbon', 'icegram'),
|
434 |
+
'img-path' => 'lite/assets/images/sketch-ribbons-158X127.png',
|
435 |
+
),
|
436 |
+
'tab' => array(
|
437 |
+
'term-id' => 41,
|
438 |
+
'category' => 'message-type',
|
439 |
+
'type' => 'tab',
|
440 |
+
'plan' => 'max',
|
441 |
+
'title' => __( 'Tab', 'icegram'),
|
442 |
+
'img-path' => 'lite/assets/images/sketch-tab-158X127.png',
|
443 |
+
),
|
444 |
+
'sidebar' => array(
|
445 |
+
'term-id' => 40,
|
446 |
+
'category' => 'message-type',
|
447 |
+
'type' => 'sidebar',
|
448 |
+
'plan' => 'max',
|
449 |
+
'title' => __('Sidebar', 'icegram'),
|
450 |
+
'img-path' => 'lite/assets/images/sketch-sidebar-158X127.png',
|
451 |
+
),
|
452 |
+
);
|
453 |
+
|
454 |
+
$campaign_types = apply_filters( 'ig_get_widget_message_types' , $campaign_types );
|
455 |
+
|
456 |
+
$campaign_goal = array(
|
457 |
+
'newsletter' => array(
|
458 |
+
'term-id' => 55,
|
459 |
+
'category' => 'use-case',
|
460 |
+
'title' => __('Grow audience', 'icegram'),
|
461 |
+
'desc' => __('Build your lists with newsletter subscription opt-ins', 'icegram'),
|
462 |
+
'icon' => '<svg xmlns="http://www.w3.org/2000/svg" class="w-5 h-5" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z" />/svg>',
|
463 |
+
'checked' => true,
|
464 |
+
),
|
465 |
+
'guide-visitors' => array(
|
466 |
+
'term-id' => 63,
|
467 |
+
'category' => 'use-case',
|
468 |
+
'title' => __('Guide visitors', 'icegram'),
|
469 |
+
'desc' => __('Call to actions to nudge people to visit a page or link', 'icegram'),
|
470 |
+
'icon' => '<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M11.049 2.927c.3-.921 1.603-.921 1.902 0l1.519 4.674a1 1 0 00.95.69h4.915c.969 0 1.371 1.24.588 1.81l-3.976 2.888a1 1 0 00-.363 1.118l1.518 4.674c.3.922-.755 1.688-1.538 1.118l-3.976-2.888a1 1 0 00-1.176 0l-3.976 2.888c-.783.57-1.838-.197-1.538-1.118l1.518-4.674a1 1 0 00-.363-1.118l-3.976-2.888c-.784-.57-.38-1.81.588-1.81h4.914a1 1 0 00.951-.69l1.519-4.674z" /></svg>',
|
471 |
+
),
|
472 |
+
'lead-magnet' => array(
|
473 |
+
'term-id' => 57,
|
474 |
+
'category' => 'use-case',
|
475 |
+
'title' => __('Giveaway downloadable resources', 'icegram'),
|
476 |
+
'desc' => __('Have a lead magnet? Deliver it when people sign up to your list', 'icegram'),
|
477 |
+
'icon' => '<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 10V3L4 14h7v7l9-11h-7z" /></svg>',
|
478 |
+
),
|
479 |
+
'announcement' => array(
|
480 |
+
'term-id' => 62,
|
481 |
+
'category' => 'use-case',
|
482 |
+
'title' => __('Make announcements', 'icegram'),
|
483 |
+
'desc' => __('Show important information or news to visitors', 'icegram'),
|
484 |
+
'icon' => '<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M11 5.882V19.24a1.76 1.76 0 01-3.417.592l-2.147-6.15M18 13a3 3 0 100-6M5.436 13.683A4.001 4.001 0 017 6h1.832c4.1 0 7.625-1.234 9.168-3v14c-1.543-1.766-5.067-3-9.168-3H7a3.988 3.988 0 01-1.564-.317z" /></svg>',
|
485 |
+
),
|
486 |
+
'drive-sales' => array(
|
487 |
+
'term-id' => 56,
|
488 |
+
'category' => 'use-case',
|
489 |
+
'title' => __('Grow revenue', 'icegram'),
|
490 |
+
'desc' => __('Make special offers, show coupons and reduce cart abandonment', 'icegram'),
|
491 |
+
'icon' => '<svg xmlns="http://www.w3.org/2000/svg" class="w-5 h-5" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 5v2m0 4v2m0 4v2M5 5a2 2 0 00-2 2v3a2 2 0 110 4v3a2 2 0 002 2h14a2 2 0 002-2v-3a2 2 0 110-4V7a2 2 0 00-2-2H5z" /></svg>',
|
492 |
+
),
|
493 |
+
'callback' => array(
|
494 |
+
'term-id' => 60,
|
495 |
+
'category' => 'use-case',
|
496 |
+
'title' => __('Get inbound leads', 'icegram'),
|
497 |
+
'desc' => __('Show phone call back, text SMS or mail contact information easily', 'icegram'),
|
498 |
+
'icon' => '<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 5a2 2 0 012-2h3.28a1 1 0 01.948.684l1.498 4.493a1 1 0 01-.502 1.21l-2.257 1.13a11.042 11.042 0 005.516 5.516l1.13-2.257a1 1 0 011.21-.502l4.493 1.498a1 1 0 01.684.949V19a2 2 0 01-2 2h-1C9.716 21 3 14.284 3 6V5z" /></svg>',
|
499 |
+
),
|
500 |
+
'social' => array(
|
501 |
+
'term-id' => 30,
|
502 |
+
'category' => 'use-case',
|
503 |
+
'title' => __('Increase social media followers', 'icegram'),
|
504 |
+
'desc' => __('Show elegant social media icons to gain followers', 'icegram'),
|
505 |
+
'icon' => '<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0zm6 3a2 2 0 11-4 0 2 2 0 014 0zM7 10a2 2 0 11-4 0 2 2 0 014 0z" /></svg>',
|
506 |
+
),
|
507 |
+
'yes-no' => array(
|
508 |
+
'term-id' => 44,
|
509 |
+
'category' => 'use-case',
|
510 |
+
'title' => __('Collect feedback', 'icegram'),
|
511 |
+
'desc' => __('Run a mini survey with Yes/No campaign and drive people to act', 'icegram'),
|
512 |
+
'icon' => '<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M14 10h4.764a2 2 0 011.789 2.894l-3.5 7A2 2 0 0115.263 21h-4.017c-.163 0-.326-.02-.485-.06L7 20m7-10V5a2 2 0 00-2-2h-.095c-.5 0-.905.405-.905.905 0 .714-.211 1.412-.608 2.006L7 11v9m7-10h-2M7 20H5a2 2 0 01-2-2v-6a2 2 0 012-2h2.5" /></svg>',
|
513 |
+
),
|
514 |
+
'scratch' => array(
|
515 |
+
'term-id' => 51,
|
516 |
+
'category' => 'use-case',
|
517 |
+
'title' => __('Build your own', 'icegram'),
|
518 |
+
'desc' => __('Start with a blank template and customize it your way', 'icegram'),
|
519 |
+
'icon' => '<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 4v16m8-8H4" /></svg>',
|
520 |
+
),
|
521 |
+
);
|
522 |
+
|
523 |
+
$show_onboarding = $icegram->show_campaign_creation_guide();
|
524 |
+
if ( $show_onboarding ) {
|
525 |
+
?>
|
526 |
+
|
527 |
+
<div class="select-item icegram_tw">
|
528 |
+
<div class="mx-auto mt-6 sm:mt-5 ig-logo">
|
529 |
+
<img src="<?php echo esc_url( IG_PLUGIN_URL . 'lite/assets/images/icegram_logo.svg' ); ?>" class="mx-auto h-6 border-0" alt="Icegram" />
|
530 |
</div>
|
531 |
+
|
532 |
+
<div id="slider-wrapper" class="font-sans">
|
533 |
+
<div id="slider">
|
534 |
+
<div class="ig-onboarding-campaign-goal" style="">
|
535 |
+
<section class="mx-auto my-6 sm:my-7">
|
536 |
+
<div class="w-full h-full overflow-hidden bg-white lg:flex md:rounded-lg md:shadow-xl md:mx-auto lg:max-w-3xl xl:max-w-4xl">
|
537 |
+
<div class="flex-1 ">
|
538 |
+
<div class="p-5 md:px-8 md:py-5">
|
539 |
+
<h3 class="text-center mb-1 text-2xl font-bold leading-snug text-gray-800">
|
540 |
+
<?php echo esc_html__( 'Goal for this campaign', 'icegram' ); ?>
|
541 |
+
</h3>
|
542 |
+
<p class="text-center title-font text-base text-gray-800 mb-3"><?php echo esc_html__( 'What should this campaign help you achieve? Please select a primary goal or more', 'icegram' ); ?></p>
|
543 |
+
<div class="select-item py-2">
|
544 |
+
<div class="inline-block p-2 overflow-hidden text-left align-bottom sm:w-full">
|
545 |
+
<div class="container px-5 py-2 mx-auto ig-section-sub">
|
546 |
+
<div class="flex flex-wrap -m-4">
|
547 |
+
<?php
|
548 |
+
foreach ($campaign_goal as $goal) {
|
549 |
+
?>
|
550 |
+
<div class="xl:w-1/3 md:w-1/2 p-4 h-full cursor-pointer ig-select-sub">
|
551 |
+
<label class="cursor-pointer">
|
552 |
+
<input type="checkbox" name="ig-campaign-goal" class="absolute w-0 h-0 opacity-0" category="usecase" usecase="<?php echo esc_attr( $goal['term-id'] ) ?>" value="<?php echo esc_html( $goal['title'] ) ?>" <?php echo isset( $goal['checked'] ) ? 'checked' : '' ?>>
|
553 |
+
<div class="border border-gray-200 p-4 rounded-lg ig-sub-selection-goal">
|
554 |
+
<div class="w-8 h-8 inline-flex items-center justify-center rounded-full bg-purple-100 text-purple-500 mb-4">
|
555 |
+
<?php echo $goal['icon'];
|
556 |
+
?>
|
557 |
+
</div>
|
558 |
+
<p class="text-lg text-gray-900 font-medium title-font inline break-words relative bottom-1"><?php echo esc_html( $goal['title'] ) ?></p>
|
559 |
+
<p class="leading-relaxed text-base"><?php echo esc_html( $goal['desc'] ) ?></p>
|
560 |
+
</div>
|
561 |
+
</label>
|
562 |
+
</div>
|
563 |
+
<?php
|
564 |
+
}
|
565 |
+
?>
|
566 |
+
</div>
|
567 |
+
</div>
|
568 |
+
</div>
|
569 |
+
|
570 |
+
</div>
|
571 |
+
</div>
|
572 |
+
<div class="px-4 py-3 text-right bg-gray-50 md:px-8 -mt-5">
|
573 |
+
<button
|
574 |
+
type="button" id="ig-select-goal" class="relative inline-flex items-center px-2 py-1 text-base font-medium leading-5 text-white bg-indigo-800 border border-transparent rounded-md hover:bg-indigo-600 focus:outline-none focus:shadow-outline">
|
575 |
+
<?php echo esc_html__( 'Continue →', 'icegram' ); ?>
|
576 |
+
</button>
|
577 |
+
</div>
|
578 |
+
</div>
|
579 |
+
</section>
|
580 |
</div>
|
581 |
+
<div class="ig-onboarding-campaign-type" style="display: none">
|
582 |
+
<section class="mx-auto my-6 sm:my-7">
|
583 |
+
<div class="w-full h-full overflow-hidden bg-white lg:flex md:rounded-lg md:shadow-xl md:mx-auto lg:max-w-3xl xl:max-w-4xl">
|
584 |
+
<div class="flex-1">
|
585 |
+
<div class="p-5 md:px-8 md:py-5">
|
586 |
+
<h3 class=" text-center mb-2 text-2xl font-bold leading-snug text-gray-800 sm:text-3xl">
|
587 |
+
<?php echo esc_html__( 'Message placement', 'icegram' ); ?>
|
588 |
+
</h3>
|
589 |
+
<p class="px-5 text-center title-font text-base text-gray-800 mb-3"><?php echo esc_html__( 'What message types would you like to use in this campaign? Select all that you like - or just continue without selecting if you’re not sure.', 'icegram' ); ?></p>
|
590 |
+
<div class="select-item py-2">
|
591 |
+
<div class="inline-block p-2 overflow-hidden text-left align-bottom sm:w-full">
|
592 |
+
<div class="container px-5 py-2 mx-auto">
|
593 |
+
<ul role="list" class="grid gap-x-4 gap-y-8 sm:grid-cols-3 sm:gap-x-6 lg:grid-cols-4 xl:gap-x-8">
|
594 |
+
<?php
|
595 |
+
foreach ($campaign_types as $campaign_type) {
|
596 |
+
?>
|
597 |
+
<li class="relative cursor-pointer radio-select ig-selection-section" >
|
598 |
+
<label class="inline-flex items-center cursor-pointer">
|
599 |
+
<input type="checkbox" name="ig-campaign-type" class="absolute w-0 h-0 opacity-0" category="message-type" message-type="<?php echo esc_attr( $campaign_type['term-id']) ?>" value="<?php echo esc_html( $campaign_type['title'] ) ?>">
|
600 |
+
<div class="ig-select-campaign-type text-center border border-gray-200 rounded-lg">
|
601 |
+
<div class="group block w-full aspect-w-10 aspect-h-7 rounded-lg focus-within:ring-2 focus-within:ring-offset-2 focus-within:ring-offset-gray-100 focus-within:ring-indigo-500 overflow-hidden">
|
602 |
+
|
603 |
+
<img src="<?php echo esc_url( IG_PLUGIN_URL . $campaign_type['img-path'] ); ?>" alt="" class="pointer-events-none">
|
604 |
+
|
605 |
+
</div>
|
606 |
+
<?php
|
607 |
+
if( ( $icegram->is_pro() && ! $icegram->is_max() && 'max' === $campaign_type['plan'] ) || ( ! $icegram->is_premium() && in_array( $campaign_type['plan'], array('max', 'pro') ) ) ) {
|
608 |
+
|
609 |
+
?>
|
610 |
+
<span class="float-right border border-blue rounded py-0.5 px-2 bg-blue-700 text-white -ml-12 -mr-1"><?php echo esc_html( ucfirst( $campaign_type['plan'] ) ); ?></span>
|
611 |
+
<?php
|
612 |
+
}
|
613 |
+
?>
|
614 |
+
<span class="text-center block text-sm font-medium text-gray-900 truncate pointer-events-none"><?php echo esc_html( $campaign_type['title']) ?></span>
|
615 |
+
</div>
|
616 |
+
</label>
|
617 |
+
</li>
|
618 |
+
<?php
|
619 |
+
}
|
620 |
+
?>
|
621 |
+
</ul>
|
622 |
+
</div>
|
623 |
+
</div>
|
624 |
+
</div>
|
625 |
+
|
626 |
+
</div>
|
627 |
+
<div class="px-4 py-3 text-right bg-gray-50 md:px-8">
|
628 |
+
<button type="button" class="ig-message-type-select relative inline-flex items-center px-3 py-1 text-base font-medium leading-5 text-white bg-indigo-800 border border-transparent rounded-md hover:bg-indigo-600 focus:outline-none focus:shadow-outline">
|
629 |
+
<?php echo esc_html__( 'Continue →', 'icegram' ); ?>
|
630 |
+
</button>
|
631 |
+
</div>
|
632 |
+
</div>
|
633 |
</div>
|
634 |
+
</section>
|
635 |
+
</div>
|
636 |
+
</div>
|
637 |
+
</div>
|
638 |
+
</div>
|
639 |
+
<?php
|
640 |
+
}
|
641 |
+
?>
|
642 |
+
<!-- Sidebar - quick filtering and searching -->
|
643 |
+
<div class="description" style="padding-bottom:2em; <?php echo ( $show_onboarding ) ? 'display: none' : '' ?>">
|
644 |
+
<h2 style="font-size:17px;font-weight: 500">
|
645 |
+
<?php echo ( $show_onboarding ) ? esc_html__('Choose a design', 'icegram') : esc_html__( 'Icegram design templates', 'icegram' ) ?>
|
646 |
+
|
647 |
+
</h2>
|
648 |
+
<div style="padding-bottom:3px;font-size:14px">
|
649 |
+
|
650 |
+
</div>
|
651 |
+
<div style="font-size:14px">
|
652 |
+
<?php echo ( $show_onboarding ) ? esc_html__('Here\'s some gallery templates filtered out for you. Simply ' ,'icegram') : sprintf( esc_html('Filter out the templates based on %1s and %2s and then simply','icegram_'), '<strong>your goals</strong>', '<strong>message type</strong>' );
|
653 |
+
|
654 |
+
echo sprintf( esc_html__(' click to %s and the campaign will automatically appear in your Icegram dashboard. No coding or special skills required.','icegram'), '<strong>Use This</strong>') ?>
|
655 |
+
</div>
|
656 |
+
</div>
|
657 |
+
<div class="igg-sidebar" style="display:none">
|
658 |
+
<form class="search-form"></form>
|
659 |
+
<div class="meta"></div>
|
660 |
+
<div class="category reset">
|
661 |
+
<ul><li class="category-type" category="reset">Reset</li></ul>
|
662 |
+
</div>
|
663 |
+
<?php
|
664 |
+
foreach ($cat_list as $category) {
|
665 |
+
$not_have_sub_cat = (empty($category['list'])) ? 'not_have_sub_cat' : '';
|
666 |
+
?>
|
667 |
+
<div class="category <?php echo $category['slug']?> <?php echo $not_have_sub_cat?>" category="<?php echo $category['slug']?>" <?php echo $category['slug']?>="<?php echo $category['term_id']?>" >
|
668 |
+
<h2><?php _e($category['name'], 'icegram')?></h2>
|
669 |
+
<ul>
|
670 |
+
<?php
|
671 |
+
if(!empty($category['list'])){
|
672 |
+
foreach ($category['list'] as $sub_cat) {
|
673 |
+
?>
|
674 |
+
<li class="category-type" category="<?php echo $category['slug']?>" <?php echo $category['slug']?>="<?php echo $sub_cat['term_id']?>" ><?php _e($sub_cat['name'], 'icegram')?></li>
|
675 |
+
<?php
|
676 |
+
}
|
677 |
}
|
678 |
+
?>
|
679 |
+
</ul>
|
680 |
+
</div>
|
681 |
+
<?php
|
682 |
+
}
|
683 |
|
684 |
+
?>
|
685 |
+
</div>
|
686 |
+
|
687 |
+
<div class="igg-filters campaign_filters align-right icegram_tw" style="<?php echo ( $show_onboarding ) ? 'display: none' : '' ?>">
|
688 |
+
<div class="inline-block ml-6 w-11/12 inline mb-2 campaign-goal">
|
689 |
+
<select class="gallery_campaign_goal select2-hidden-accessible overflow-hidden" multiple="multiple" name="gallery_campaign_goal" tabindex="-1" aria-hidden="true" placeholder="Select goal">
|
690 |
+
<option value=""><?php echo esc_html__( 'Any campaign', 'icegram' ); ?></option>
|
691 |
+
<?php
|
692 |
+
foreach ($campaign_goal as $goal) { ?>
|
693 |
+
<option category="<?php echo esc_attr( $goal['category'] ) ?>" use-case="<?php echo esc_attr( $goal['term-id'] ) ?>" value="<?php echo esc_attr( $goal['title'] ) ?>"><?php echo esc_html( $goal['title']); ?></option>
|
694 |
+
<?php }
|
695 |
+
?>
|
696 |
+
</select>
|
697 |
+
<select class="gallery_message_type select2-hidden-accessible" multiple="" name="gallery_message_type" tabindex="-1" aria-hidden="true" placeholder="Select message type">
|
698 |
+
<?php
|
699 |
+
foreach ($campaign_types as $campaign_type) { ?>
|
700 |
+
<option category="<?php echo esc_attr( $campaign_type['category'] ) ?>" message-type="<?php echo esc_attr( $campaign_type['term-id'] ) ?>" value="<?php echo esc_attr( $campaign_type['title'] ) ?>"><?php echo esc_html( $campaign_type['title']); ?></option>
|
701 |
+
<?php }
|
702 |
?>
|
703 |
+
</select>
|
704 |
+
|
705 |
+
<div class="inline-block mx-1 mt-4">
|
706 |
+
<p class="gallery_filters cursor-pointer relative inline-flex text-sm items-center -mt-2 mx-1.5 px-3 py-1 font-medium leading-5 text-white bg-indigo-800 border border-transparent rounded-md hover:bg-indigo-600 focus:outline-none focus:shadow-outline"><?php echo esc_html__('Filter Templates', 'icegram'); ?></p>
|
707 |
</div>
|
708 |
+
<div class="category inline-block mx-1 mt-3">
|
709 |
+
<p class="ig-reset-button category-type inline cursor-pointer border border-gray-300 text-sm leading-5 font-medium rounded-md text-gray-700 bg-white transition duration-150 ease-in-out px-3 py-1" category="reset"><?php echo esc_html__('Show All', 'icegram'); ?></p>
|
|
|
|
|
710 |
</div>
|
711 |
</div>
|
712 |
+
|
713 |
+
</div>
|
714 |
+
<hr style="margin:1.5rem 0;">
|
715 |
+
<div class="igg-content" style="width: 100%; <?php echo ( $show_onboarding ) ? 'display: none' : '' ?>">
|
716 |
+
|
717 |
+
|
718 |
+
|
719 |
+
<div class="theme-browser">
|
720 |
+
<div class="themes wp-clearfix"></div>
|
721 |
+
</div>
|
722 |
+
</div>
|
723 |
+
|
724 |
+
|
725 |
+
</div>
|
726 |
+
<div class="theme-install-overlay wp-full-overlay expanded"></div>
|
727 |
<!-- <div class="theme-overlay"></div> -->
|
728 |
</div><!-- .wrap -->
|
729 |
<script id="tmpl-theme" type="text/template">
|
730 |
<# if ( data.image ) { #>
|
731 |
+
<div class="theme-screenshot">
|
732 |
+
<div class="wp-clearfix">
|
733 |
+
<img src="{{ data.image.guid }}" alt="" />
|
|
|
734 |
</div>
|
735 |
+
</div>
|
736 |
<# } else { #>
|
737 |
+
<div class="theme-screenshot blank"></div>
|
738 |
<# } #>
|
739 |
<span class="more-details" id="{{ data.id }}-action"><?php _e( 'Preview' ); ?></span>
|
740 |
<div class="theme-author"><?php printf( __( 'By %s' ), '{{{ data.id }}}' ); ?></div>
|
744 |
|
745 |
<!-- Theme title or description.. -->
|
746 |
<# if( data.title.rendered ) { #>
|
747 |
+
<span class="float-left title" title="{{ data.title.rendered }}">{{ data.title.rendered }}</span>
|
748 |
<# } #>
|
749 |
|
750 |
<!-- For logos and labels-->
|
753 |
|
754 |
<!-- label -->
|
755 |
<# if( data.plan_name ) { #>
|
756 |
+
<span class="sq pills sm cap {{data.plan_name}}" title="{{ data.plan_name }}">{{ data.plan_name }}</span>
|
757 |
<# } #>
|
758 |
</div>
|
759 |
</div>
|
770 |
<a href="?action=fetch_messages&campaign_id={{data.campaign_id}}&gallery_item={{data.slug}}" class="btn purple theme-install" style="display:none"><?php _e( 'Use This', 'icegram' ); ?></a>
|
771 |
<a href="https://www.icegram.com/pricing/?utm_source=ig_inapp&utm_medium=ig_gallery&utm_campaign=get_pro" target="_blank" class="ig-get-pro btn green" style="display:none;">
|
772 |
<# if(data.plan === '3') { #>
|
773 |
+
<span><?php _e("Get The Max Plan", 'icegram') ?></span>
|
774 |
<# } else if(data.plan === '2') { #>
|
775 |
+
<span><?php _e("Get The Pro Plan", 'icegram') ?></span>
|
776 |
<# } #>
|
777 |
</a>
|
778 |
</div>
|
790 |
<div class="tags">
|
791 |
<!-- plan-name -->
|
792 |
<# if(data.plan_name) { #>
|
793 |
+
<span class="sq pills sm cap plan">{{data.plan_name}}</span>
|
794 |
<# } #>
|
795 |
<!-- categories -->
|
796 |
|
797 |
<# _.each(data.category_names,function(cname){ #>
|
798 |
+
<# if(cname != 'no category') { #>
|
799 |
+
<span class="sq pills sm cap category">{{cname}}</span>
|
800 |
+
<# } #>
|
801 |
<# }) #>
|
802 |
</div>
|
803 |
<!-- <div class="theme-info">Liked this template? <br/>Here's how you can customize it further </div> -->
|
811 |
</div>
|
812 |
</div>
|
813 |
<div class="wp-full-overlay-footer ig-get-pro ig-get-pro-footer " style="display:none">
|
814 |
+
<# if(data.plan === '3') { #>
|
815 |
+
<span><?php _e("This template is available in the 'Max Plan'", 'icegram') ?></span>
|
816 |
<# } else if(data.plan === '2') { #>
|
817 |
+
<span><?php _e("This template is available in the 'Pro Plan'", 'icegram') ?></span>
|
818 |
<# } #>
|
819 |
</div>
|
820 |
<div class="wp-full-overlay-footer">
|
826 |
</div>
|
827 |
<div class="wp-full-overlay-main">
|
828 |
<iframe src="{{ data.link }}?utm_source=ig_inapp&utm_campaign=ig_gallery&utm_medium={{data.campaign_id}}" title="<?php esc_attr_e( 'Preview' ); ?>" />
|
829 |
+
</div>
|
830 |
+
</script>
|
831 |
|
832 |
+
<script type="text/javascript">
|
833 |
+
jQuery(document).ready(function() {
|
834 |
|
835 |
+
jQuery('.category-type').on('click', function() {
|
836 |
+
jQuery('.category-type').removeClass('active');
|
837 |
+
jQuery(this).addClass('active');
|
838 |
+
});
|
839 |
|
840 |
+
});
|
841 |
|
842 |
+
</script>
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: icegram, storeapps, niravmehta, sandhyam, malayladu, putler, kisha
|
|
3 |
Donate link: https://www.icegram.com/
|
4 |
Tags: popup, optin, hellobar, lead capture, form
|
5 |
Requires at least: 3.9
|
6 |
-
Tested up to: 5.9.
|
7 |
-
Stable tag: 2.1.
|
8 |
License: GPLv3
|
9 |
|
10 |
The best WordPress popup plugin that lets you create popups and action bars within seconds. Customize exit-intent popup campaigns, action bars, badges, stickies, inline optin, fullscreen overlay, ribbons, sidebar panel and more in no time.
|
@@ -458,12 +458,16 @@ Contact Us, provide as much detail of the problem as you can. We will try to sol
|
|
458 |
|
459 |
== Upgrade Notice ==
|
460 |
|
461 |
-
= 2.1.
|
462 |
|
463 |
-
|
464 |
|
465 |
== Changelog ==
|
466 |
|
|
|
|
|
|
|
|
|
467 |
**2.1.2 (04.02.2022)**
|
468 |
|
469 |
* Update: UI/UX improvements
|
3 |
Donate link: https://www.icegram.com/
|
4 |
Tags: popup, optin, hellobar, lead capture, form
|
5 |
Requires at least: 3.9
|
6 |
+
Tested up to: 5.9.1
|
7 |
+
Stable tag: 2.1.3
|
8 |
License: GPLv3
|
9 |
|
10 |
The best WordPress popup plugin that lets you create popups and action bars within seconds. Customize exit-intent popup campaigns, action bars, badges, stickies, inline optin, fullscreen overlay, ribbons, sidebar panel and more in no time.
|
458 |
|
459 |
== Upgrade Notice ==
|
460 |
|
461 |
+
= 2.1.3 =
|
462 |
|
463 |
+
New: Added onboarding campaign creation guide
|
464 |
|
465 |
== Changelog ==
|
466 |
|
467 |
+
**2.1.3 (05.03.2022)**
|
468 |
+
|
469 |
+
* New: Added onboarding campaign creation guide
|
470 |
+
|
471 |
**2.1.2 (04.02.2022)**
|
472 |
|
473 |
* Update: UI/UX improvements
|