Version Description
Download this release
Release Info
Developer | bravenewcode |
Plugin | WPtouch |
Version | 4.0.4 |
Comparing to | |
See all releases |
Code changes from version 3.8.9 to 4.0.4
- INSTALL.txt +14 -17
- admin/bootstrap/css/bootstrap.css +0 -1257
- admin/bootstrap/js/bootstrap.min.js +0 -1
- admin/css/rtl.css +0 -427
- admin/css/wptouch-admin-4-wizard.css +1522 -0
- admin/css/wptouch-admin-4.css +2284 -0
- admin/css/wptouch-admin-remodal.css +330 -0
- admin/css/wptouch-admin-rtl.css +211 -0
- admin/css/wptouch-menu.css +122 -0
- admin/customizer/wptouch-customizer-shim.js +37 -0
- admin/customizer/wptouch-customizer-switch.js +25 -0
- admin/customizer/wptouch-customizer-theme.js +21 -0
- admin/customizer/wptouch-customizer.css +292 -0
- admin/customizer/wptouch-customizer.js +178 -0
- admin/customizer/wptouch-customizer.php +822 -0
- admin/fontello/LICENSE.txt +37 -0
- admin/fontello/README.txt +75 -0
- admin/fontello/config.json +330 -0
- admin/fontello/css/animation.css +85 -0
- admin/fontello/css/fontello-codes.css +33 -0
- admin/fontello/css/fontello-embedded.css +86 -0
- admin/fontello/css/fontello-ie7-codes.css +33 -0
- admin/fontello/css/fontello-ie7.css +44 -0
- admin/fontello/css/fontello.css +88 -0
- admin/fontello/demo.html +354 -0
- admin/fontello/font/fontello.eot +0 -0
- admin/fontello/font/fontello.svg +43 -0
- admin/fontello/font/fontello.ttf +0 -0
- admin/fontello/font/fontello.woff +0 -0
- admin/html/help.php +0 -8
- admin/html/license-modals.php +70 -0
- admin/html/notification-center.php +0 -22
- admin/html/notification-content.php +0 -25
- admin/html/plugin-area.php +16 -4
- admin/images/active_checkmark.png +0 -0
- admin/images/check.png +0 -0
- admin/images/cloud-off.png +0 -0
- admin/images/cloud-waiting.png +0 -0
- admin/images/customizer-setup-icon.jpg +0 -0
- admin/images/default-bookmark.png +0 -0
- admin/images/filler.png +0 -0
- admin/images/frown.png +0 -0
- admin/images/grid_square.png +0 -0
- admin/images/loading.gif +0 -0
- admin/images/marker.png +0 -0
- admin/images/mask.png +0 -0
- admin/images/menu-setup-icon.jpg +0 -0
- admin/images/no-icons.png +0 -0
- admin/images/no-notifications.png +0 -0
- admin/images/smartphone-sm-icon.png +0 -0
- admin/images/tablet-sm-icon.png +0 -0
- admin/images/team.jpg +0 -0
- admin/images/trash.png +0 -0
- admin/images/upload-placeholder.png +0 -0
- admin/images/wheel.png +0 -0
- admin/images/white-cloud.png +0 -0
- admin/images/wizard/blog.jpg +0 -0
- admin/images/wizard/home.jpg +0 -0
- admin/images/wizard/wizard-globe.png +0 -0
- admin/images/wizard/wizard-logo.png +0 -0
- admin/images/wptouch-admin-icon.png +0 -0
- admin/images/wptouch-logo.png +0 -0
- admin/images/wptouch_account.png +0 -0
- admin/images/wptouch_support.png +0 -0
- admin/images/yield.png +0 -0
- admin/js/wptouch-admin-3.js +0 -1268
- admin/js/wptouch-admin-4.js +922 -0
- admin/js/wptouch-admin-color.js +13 -0
- admin/js/wptouch-admin-migrate.js +50 -14
- admin/js/wptouch-admin-plugins.js +23 -6
- admin/js/wptouch-admin-pointer.js +0 -17
- admin/js/wptouch-admin-remodal.js +236 -0
- admin/js/wptouch-admin-wizard.js +330 -0
- admin/js/wptouch-ajax.js +61 -12
- admin/js/wptouch-menu.js +66 -0
- admin/js/wptouch-other-admin.js +0 -22
- admin/pages/custom/wptouch-admin-license.php +152 -55
- admin/pages/custom/wptouch-admin-upgrade-license.php +0 -17
- admin/pages/custom/wptouch-admin-upgrade.php +0 -3
- admin/pages/custom/wptouch-admin-wizard.php +361 -0
- admin/pages/wptouch-admin-addon-settings.php +0 -15
- admin/pages/wptouch-admin-general-settings.php +596 -305
- admin/pages/wptouch-admin-menus.php +0 -142
- admin/pages/wptouch-admin-themes-and-addons.php +0 -57
- admin/pages/wptouch-admin-touchboard.php +0 -24
- admin/settings/html/backup.php +0 -4
- admin/settings/html/button.php +5 -4
- admin/settings/html/checkbox.php +13 -9
- admin/settings/html/checklist.php +12 -25
- admin/settings/html/color.php +13 -25
- admin/settings/html/custom-latest-posts.php +2 -8
- admin/settings/html/custom_icon_management.php +13 -16
- admin/settings/html/custom_icon_upload.php +2 -8
- admin/settings/html/customizing_in_customizer.php +12 -0
- admin/settings/html/debuginfo.php +4 -5
- admin/settings/html/extension-browser-ajax.php +0 -10
- admin/settings/html/extension-browser-item-detail.php +71 -0
- admin/settings/html/extension-browser-item.php +11 -87
- admin/settings/html/extension-browser.php +36 -11
- admin/settings/html/gopro.php +20 -0
- admin/settings/html/icon_menu_area.php +0 -120
- admin/settings/html/image-upload.php +17 -11
- admin/settings/html/installed_icon_sets.php +6 -2
- admin/settings/html/installed_icon_sets_ajax.php +10 -6
- admin/settings/html/list.php +11 -18
- admin/settings/html/menus_in_menus.php +12 -0
- admin/settings/html/multiline-comma.php +29 -0
- admin/settings/html/multiline-newline.php +26 -0
- admin/settings/html/no-setting-text.php +6 -0
- admin/settings/html/no_tablet_support.php +8 -0
- admin/settings/html/numeric.php +4 -8
- admin/settings/html/plugin-compat-ajax.php +8 -9
- admin/settings/html/plugin-compat.php +1 -5
- admin/settings/html/post_type.php +12 -15
- admin/settings/html/radiolist.php +19 -18
- admin/settings/html/redirect.php +3 -4
- admin/settings/html/restore.php +0 -4
- admin/settings/html/text.php +9 -8
- admin/settings/html/textarea.php +14 -9
- admin/settings/html/theme-browser-ajax.php +0 -13
- admin/settings/html/theme-browser-item-detail.php +92 -0
- admin/settings/html/theme-browser-item.php +17 -144
- admin/settings/html/theme-browser.php +36 -22
- admin/settings/html/touchboard.php +1 -1
- admin/settings/html/updates-available.php +64 -0
- admin/settings/html/user-agent-list.php +0 -30
- admin/{css → settings/html}/wptouch-admin-3.css +0 -0
- admin/settings/include/checklist.php +1 -1
- admin/settings/include/custom-latest-posts.php +10 -13
- admin/settings/include/extension-browser.php +1 -2
- admin/settings/include/icon_menu_area.php +0 -2
- admin/settings/include/image-upload.php +1 -1
- admin/settings/include/installed_icon_sets.php +0 -0
- admin/settings/include/multiline-comma.php +15 -0
- admin/settings/include/multiline-newline.php +15 -0
- admin/settings/include/radiolist.php +1 -1
- admin/settings/include/textarea.php +1 -1
- core/addon-theme-installer.php +24 -8
- core/admin-ajax.php +183 -89
- core/admin-backup-restore.php +3 -1
- core/admin-extensions.php +26 -10
- core/admin-load.php +54 -23
- core/admin-menu.php +89 -49
- core/admin-render.php +122 -78
- core/admin-settings.php +4 -7
- core/admin-themes.php +66 -49
- core/bncid.php +16 -1
- core/class-bncapi.php +48 -3
- core/class-theme.php +69 -0
- core/class-wptouch-pro-settings.php +44 -41
- core/class-wptouch-pro.php +637 -330
- core/cloud-migrate.php +20 -4
- core/compat.php +3 -3
- core/config-functions.php +6 -6
- core/config.php +28 -19
- core/desktop-functions.php +0 -140
- core/file-operations.php +16 -0
- core/globals.php +177 -56
- core/menu-walkers.php +442 -85
- core/menu.php +48 -21
- core/mobile-user-agents.php +35 -22
- core/multisite.php +72 -0
- core/notifications.php +0 -221
- core/plugins.php +2 -6
- core/rtl.php +1 -2
- core/settings.php +6 -3
- core/theme-hashes.php +0 -129
- core/theme.php +27 -29
- general-public-license-3.0.txt +188 -0
- gpl-2.0.txt +0 -339
- include/add-ons/wordtwit-pro.php +0 -194
- include/html/pro.php +1 -1
- include/js/wptouch.js +3 -0
- lang/wptouch-pro-3.pot +0 -1928
INSTALL.txt
CHANGED
@@ -1,43 +1,40 @@
|
|
1 |
== Installation ==
|
2 |
|
3 |
-
Installing WPtouch
|
4 |
|
5 |
-
= WPtouch
|
6 |
|
7 |
-
- WordPress
|
8 |
- Administrative access in the WordPress admin
|
9 |
- Filesystem access
|
10 |
-
- PHP 5.
|
11 |
-
-
|
12 |
-
-
|
13 |
-
- WPtouch
|
|
|
14 |
|
15 |
= Uploading the Plugin =
|
16 |
|
17 |
You can upload the plugin 1 of 2 ways, via FTP/SFTP/SSH upload or through the WordPress administration panel.
|
18 |
|
19 |
-
It is strongly recommended for security, installation speed and reliability that you use the WordPress admin to upload WPtouch
|
20 |
|
21 |
= Uploading via the WordPress admin panel: =
|
22 |
|
23 |
1. Visit Plugins->Add New in the admin.
|
24 |
-
2. Click
|
25 |
3. Select the location of your wptouch-pro.zip in the file uploader input.
|
26 |
4. Click Upload, and the plugin will be uploaded and installed for you quickly and easily.
|
27 |
5. You will now be asked if you want to activate the plugin, choose yes.
|
28 |
|
29 |
= Uploading via FTP or SSH =
|
30 |
|
31 |
-
It is assumed for the purposes of this document that if you choose to upload WPtouch
|
32 |
|
33 |
-
= Directory Name =
|
34 |
|
35 |
-
WPtouch
|
36 |
|
37 |
= Activate Your License =
|
38 |
|
39 |
-
Follow the admin
|
40 |
-
|
41 |
-
= BraveNewCloud =
|
42 |
-
|
43 |
-
In order to access cloud themes and extensions, you'll need to license your installation first. Some themes and extensions are only available to customers, or customers with Business licenses or higher.
|
1 |
== Installation ==
|
2 |
|
3 |
+
Installing WPtouch 4 is just like any other WordPress plugin, with the addition of a couple extra steps to activate your upgrade & support license.
|
4 |
|
5 |
+
= WPtouch 4 Installation Requirements: =
|
6 |
|
7 |
+
- WordPress 4.0 or later (self-hosted installations only)
|
8 |
- Administrative access in the WordPress admin
|
9 |
- Filesystem access
|
10 |
+
- PHP 5.4.39 or later
|
11 |
+
- PHP allow_url_fopen or cURL extension to enable cloud install of themes, extensions, icons and languages
|
12 |
+
- MySQL 5 or later
|
13 |
+
- WPtouch 1.x - 2.x are not compatible and must be deactivated
|
14 |
+
- WPtouch 3.5 or higher is compatible with WPtouch 4, and will be upgraded
|
15 |
|
16 |
= Uploading the Plugin =
|
17 |
|
18 |
You can upload the plugin 1 of 2 ways, via FTP/SFTP/SSH upload or through the WordPress administration panel.
|
19 |
|
20 |
+
It is strongly recommended for security, installation speed and reliability that you use the WordPress admin to upload WPtouch 4.
|
21 |
|
22 |
= Uploading via the WordPress admin panel: =
|
23 |
|
24 |
1. Visit Plugins->Add New in the admin.
|
25 |
+
2. Click 'Upload Plugin' next to the page title at the top of the page.
|
26 |
3. Select the location of your wptouch-pro.zip in the file uploader input.
|
27 |
4. Click Upload, and the plugin will be uploaded and installed for you quickly and easily.
|
28 |
5. You will now be asked if you want to activate the plugin, choose yes.
|
29 |
|
30 |
= Uploading via FTP or SSH =
|
31 |
|
32 |
+
It is assumed for the purposes of this document that if you choose to upload WPtouch 4 via FTP or SSH that you know how to do so, and are comfortable with the process of configuring permissions, etc.
|
33 |
|
34 |
+
= Directory and Directory Name =
|
35 |
|
36 |
+
WPtouch 4 must be installed in a directory called ONLY wptouch-pro in the main WordPress /plugins directory.
|
37 |
|
38 |
= Activate Your License =
|
39 |
|
40 |
+
Follow the admin wizard to license WPtouch Pro 4. You'll need your account email address and product licence key to activate WPtouch Pro 4 and continue setup.
|
|
|
|
|
|
|
|
admin/bootstrap/css/bootstrap.css
DELETED
@@ -1,1257 +0,0 @@
|
|
1 |
-
/* Bootstrap v2.1.0
|
2 |
-
* Copyright 2012 Twitter, Inc
|
3 |
-
* Licensed under the Apache License v2.0
|
4 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
5 |
-
* Designed and built with all the love in the world @twitter by @mdo and @fat.
|
6 |
-
*/
|
7 |
-
.btn {
|
8 |
-
display: inline-block;
|
9 |
-
*display: inline;
|
10 |
-
/* IE7 inline-block hack */
|
11 |
-
|
12 |
-
*zoom: 1;
|
13 |
-
padding: 4px 14px;
|
14 |
-
margin-bottom: 0;
|
15 |
-
font-size: 14px;
|
16 |
-
line-height: 20px;
|
17 |
-
*line-height: 20px;
|
18 |
-
text-align: center;
|
19 |
-
vertical-align: middle;
|
20 |
-
cursor: pointer;
|
21 |
-
color: #333333;
|
22 |
-
text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
|
23 |
-
background-color: #f5f5f5;
|
24 |
-
background-image: -moz-linear-gradient(top, #ffffff, #e6e6e6);
|
25 |
-
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), to(#e6e6e6));
|
26 |
-
background-image: -webkit-linear-gradient(top, #ffffff, #e6e6e6);
|
27 |
-
background-image: -o-linear-gradient(top, #ffffff, #e6e6e6);
|
28 |
-
background-image: linear-gradient(to bottom, #ffffff, #e6e6e6);
|
29 |
-
background-repeat: repeat-x;
|
30 |
-
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#ffe6e6e6', GradientType=0);
|
31 |
-
border-color: #e6e6e6 #e6e6e6 #bfbfbf;
|
32 |
-
border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
|
33 |
-
*background-color: #e6e6e6;
|
34 |
-
/* Darken IE7 buttons by default so they stand out more given they won't have borders */
|
35 |
-
|
36 |
-
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
|
37 |
-
border: 1px solid #bbbbbb;
|
38 |
-
*border: 0;
|
39 |
-
border-bottom-color: #a2a2a2;
|
40 |
-
-webkit-border-radius: 4px;
|
41 |
-
-moz-border-radius: 4px;
|
42 |
-
border-radius: 4px;
|
43 |
-
*margin-left: .3em;
|
44 |
-
-webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);
|
45 |
-
-moz-box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);
|
46 |
-
box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);
|
47 |
-
}
|
48 |
-
.btn:hover,
|
49 |
-
.btn:active,
|
50 |
-
.btn.active,
|
51 |
-
.btn.disabled,
|
52 |
-
.btn[disabled] {
|
53 |
-
color: #333333;
|
54 |
-
background-color: #e6e6e6;
|
55 |
-
*background-color: #d9d9d9;
|
56 |
-
}
|
57 |
-
.btn:active,
|
58 |
-
.btn.active {
|
59 |
-
background-color: #cccccc \9;
|
60 |
-
}
|
61 |
-
.btn:first-child {
|
62 |
-
*margin-left: 0;
|
63 |
-
}
|
64 |
-
.btn:hover {
|
65 |
-
color: #333333;
|
66 |
-
text-decoration: none;
|
67 |
-
background-color: #e6e6e6;
|
68 |
-
*background-color: #d9d9d9;
|
69 |
-
/* Buttons in IE7 don't get borders, so darken on hover */
|
70 |
-
|
71 |
-
background-position: 0 -15px;
|
72 |
-
-webkit-transition: background-position 0.1s linear;
|
73 |
-
-moz-transition: background-position 0.1s linear;
|
74 |
-
-o-transition: background-position 0.1s linear;
|
75 |
-
transition: background-position 0.1s linear;
|
76 |
-
}
|
77 |
-
.btn:focus {
|
78 |
-
outline: thin dotted #333;
|
79 |
-
outline: 5px auto -webkit-focus-ring-color;
|
80 |
-
outline-offset: -2px;
|
81 |
-
}
|
82 |
-
.btn.active,
|
83 |
-
.btn:active {
|
84 |
-
background-color: #e6e6e6;
|
85 |
-
background-color: #d9d9d9 \9;
|
86 |
-
background-image: none;
|
87 |
-
outline: 0;
|
88 |
-
-webkit-box-shadow: inset 0 2px 4px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05);
|
89 |
-
-moz-box-shadow: inset 0 2px 4px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05);
|
90 |
-
box-shadow: inset 0 2px 4px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05);
|
91 |
-
}
|
92 |
-
.btn.disabled,
|
93 |
-
.btn[disabled] {
|
94 |
-
cursor: default;
|
95 |
-
background-color: #e6e6e6;
|
96 |
-
background-image: none;
|
97 |
-
opacity: 0.65;
|
98 |
-
filter: alpha(opacity=65);
|
99 |
-
-webkit-box-shadow: none;
|
100 |
-
-moz-box-shadow: none;
|
101 |
-
box-shadow: none;
|
102 |
-
}
|
103 |
-
.btn-large {
|
104 |
-
padding: 9px 14px;
|
105 |
-
font-size: 16px;
|
106 |
-
line-height: normal;
|
107 |
-
-webkit-border-radius: 5px;
|
108 |
-
-moz-border-radius: 5px;
|
109 |
-
border-radius: 5px;
|
110 |
-
}
|
111 |
-
.btn-large [class^="icon-"] {
|
112 |
-
margin-top: 2px;
|
113 |
-
}
|
114 |
-
.btn-small {
|
115 |
-
padding: 3px 9px;
|
116 |
-
font-size: 12px;
|
117 |
-
line-height: 18px;
|
118 |
-
}
|
119 |
-
.btn-small [class^="icon-"] {
|
120 |
-
margin-top: 0;
|
121 |
-
}
|
122 |
-
.btn-mini {
|
123 |
-
padding: 2px 6px;
|
124 |
-
font-size: 11px;
|
125 |
-
line-height: 16px;
|
126 |
-
}
|
127 |
-
.btn-block {
|
128 |
-
display: block;
|
129 |
-
width: 100%;
|
130 |
-
padding-left: 0;
|
131 |
-
padding-right: 0;
|
132 |
-
-webkit-box-sizing: border-box;
|
133 |
-
-moz-box-sizing: border-box;
|
134 |
-
box-sizing: border-box;
|
135 |
-
}
|
136 |
-
.btn-block + .btn-block {
|
137 |
-
margin-top: 5px;
|
138 |
-
}
|
139 |
-
.btn-primary.active,
|
140 |
-
.btn-warning.active,
|
141 |
-
.btn-danger.active,
|
142 |
-
.btn-success.active,
|
143 |
-
.btn-info.active,
|
144 |
-
.btn-inverse.active {
|
145 |
-
color: rgba(255, 255, 255, 0.75);
|
146 |
-
}
|
147 |
-
.btn {
|
148 |
-
border-color: #c5c5c5;
|
149 |
-
border-color: rgba(0, 0, 0, 0.15) rgba(0, 0, 0, 0.15) rgba(0, 0, 0, 0.25);
|
150 |
-
}
|
151 |
-
.btn-primary {
|
152 |
-
color: #ffffff;
|
153 |
-
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
|
154 |
-
background-color: #006dcc;
|
155 |
-
background-image: -moz-linear-gradient(top, #0088cc, #0044cc);
|
156 |
-
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#0044cc));
|
157 |
-
background-image: -webkit-linear-gradient(top, #0088cc, #0044cc);
|
158 |
-
background-image: -o-linear-gradient(top, #0088cc, #0044cc);
|
159 |
-
background-image: linear-gradient(to bottom, #0088cc, #0044cc);
|
160 |
-
background-repeat: repeat-x;
|
161 |
-
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff0088cc', endColorstr='#ff0044cc', GradientType=0);
|
162 |
-
border-color: #0044cc #0044cc #002a80;
|
163 |
-
border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
|
164 |
-
*background-color: #0044cc;
|
165 |
-
/* Darken IE7 buttons by default so they stand out more given they won't have borders */
|
166 |
-
|
167 |
-
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
|
168 |
-
}
|
169 |
-
.btn-primary:hover,
|
170 |
-
.btn-primary:active,
|
171 |
-
.btn-primary.active,
|
172 |
-
.btn-primary.disabled,
|
173 |
-
.btn-primary[disabled] {
|
174 |
-
color: #ffffff;
|
175 |
-
background-color: #0044cc;
|
176 |
-
*background-color: #003bb3;
|
177 |
-
}
|
178 |
-
.btn-primary:active,
|
179 |
-
.btn-primary.active {
|
180 |
-
background-color: #003399 \9;
|
181 |
-
}
|
182 |
-
.btn-warning {
|
183 |
-
color: #ffffff;
|
184 |
-
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
|
185 |
-
background-color: #faa732;
|
186 |
-
background-image: -moz-linear-gradient(top, #fbb450, #f89406);
|
187 |
-
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#fbb450), to(#f89406));
|
188 |
-
background-image: -webkit-linear-gradient(top, #fbb450, #f89406);
|
189 |
-
background-image: -o-linear-gradient(top, #fbb450, #f89406);
|
190 |
-
background-image: linear-gradient(to bottom, #fbb450, #f89406);
|
191 |
-
background-repeat: repeat-x;
|
192 |
-
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffbb450', endColorstr='#fff89406', GradientType=0);
|
193 |
-
border-color: #f89406 #f89406 #ad6704;
|
194 |
-
border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
|
195 |
-
*background-color: #f89406;
|
196 |
-
/* Darken IE7 buttons by default so they stand out more given they won't have borders */
|
197 |
-
|
198 |
-
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
|
199 |
-
}
|
200 |
-
.btn-warning:hover,
|
201 |
-
.btn-warning:active,
|
202 |
-
.btn-warning.active,
|
203 |
-
.btn-warning.disabled,
|
204 |
-
.btn-warning[disabled] {
|
205 |
-
color: #ffffff;
|
206 |
-
background-color: #f89406;
|
207 |
-
*background-color: #df8505;
|
208 |
-
}
|
209 |
-
.btn-warning:active,
|
210 |
-
.btn-warning.active {
|
211 |
-
background-color: #c67605 \9;
|
212 |
-
}
|
213 |
-
.btn-danger {
|
214 |
-
color: #ffffff;
|
215 |
-
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
|
216 |
-
background-color: #da4f49;
|
217 |
-
background-image: -moz-linear-gradient(top, #ee5f5b, #bd362f);
|
218 |
-
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ee5f5b), to(#bd362f));
|
219 |
-
background-image: -webkit-linear-gradient(top, #ee5f5b, #bd362f);
|
220 |
-
background-image: -o-linear-gradient(top, #ee5f5b, #bd362f);
|
221 |
-
background-image: linear-gradient(to bottom, #ee5f5b, #bd362f);
|
222 |
-
background-repeat: repeat-x;
|
223 |
-
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffee5f5b', endColorstr='#ffbd362f', GradientType=0);
|
224 |
-
border-color: #bd362f #bd362f #802420;
|
225 |
-
border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
|
226 |
-
*background-color: #bd362f;
|
227 |
-
/* Darken IE7 buttons by default so they stand out more given they won't have borders */
|
228 |
-
|
229 |
-
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
|
230 |
-
}
|
231 |
-
.btn-danger:hover,
|
232 |
-
.btn-danger:active,
|
233 |
-
.btn-danger.active,
|
234 |
-
.btn-danger.disabled,
|
235 |
-
.btn-danger[disabled] {
|
236 |
-
color: #ffffff;
|
237 |
-
background-color: #bd362f;
|
238 |
-
*background-color: #a9302a;
|
239 |
-
}
|
240 |
-
.btn-danger:active,
|
241 |
-
.btn-danger.active {
|
242 |
-
background-color: #942a25 \9;
|
243 |
-
}
|
244 |
-
.btn-success {
|
245 |
-
color: #ffffff;
|
246 |
-
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
|
247 |
-
background-color: #5bb75b;
|
248 |
-
background-image: -moz-linear-gradient(top, #62c462, #51a351);
|
249 |
-
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#62c462), to(#51a351));
|
250 |
-
background-image: -webkit-linear-gradient(top, #62c462, #51a351);
|
251 |
-
background-image: -o-linear-gradient(top, #62c462, #51a351);
|
252 |
-
background-image: linear-gradient(to bottom, #62c462, #51a351);
|
253 |
-
background-repeat: repeat-x;
|
254 |
-
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff62c462', endColorstr='#ff51a351', GradientType=0);
|
255 |
-
border-color: #51a351 #51a351 #387038;
|
256 |
-
border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
|
257 |
-
*background-color: #51a351;
|
258 |
-
/* Darken IE7 buttons by default so they stand out more given they won't have borders */
|
259 |
-
|
260 |
-
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
|
261 |
-
}
|
262 |
-
.btn-success:hover,
|
263 |
-
.btn-success:active,
|
264 |
-
.btn-success.active,
|
265 |
-
.btn-success.disabled,
|
266 |
-
.btn-success[disabled] {
|
267 |
-
color: #ffffff;
|
268 |
-
background-color: #51a351;
|
269 |
-
*background-color: #499249;
|
270 |
-
}
|
271 |
-
.btn-success:active,
|
272 |
-
.btn-success.active {
|
273 |
-
background-color: #408140 \9;
|
274 |
-
}
|
275 |
-
|
276 |
-
.btn-info {
|
277 |
-
color: #ffffff;
|
278 |
-
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
|
279 |
-
background-color: #0C83FF;
|
280 |
-
background-image: -moz-linear-gradient(top, #4AAEFF, #0C83FF);
|
281 |
-
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#4AAEFF), to(#0C83FF));
|
282 |
-
background-image: -webkit-linear-gradient(top, #4AAEFF, #0C83FF);
|
283 |
-
background-image: -o-linear-gradient(top, #4AAEFF, #0C83FF);
|
284 |
-
background-image: linear-gradient(to bottom, #4AAEFF, #0C83FF);
|
285 |
-
background-repeat: repeat-x;
|
286 |
-
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5bc0de', endColorstr='#ff2f96b4', GradientType=0);
|
287 |
-
border-color: #2f96b4 #2f96b4 #1f6377;
|
288 |
-
border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
|
289 |
-
*background-color: #2f96b4;
|
290 |
-
/* Darken IE7 buttons by default so they stand out more given they won't have borders */
|
291 |
-
|
292 |
-
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
|
293 |
-
}
|
294 |
-
.btn-info:hover,
|
295 |
-
.btn-info:active,
|
296 |
-
.btn-info.active,
|
297 |
-
.btn-info.disabled,
|
298 |
-
.btn-info[disabled] {
|
299 |
-
color: #ffffff;
|
300 |
-
background-color: #0C83FF;
|
301 |
-
*background-color: #0C83FF;
|
302 |
-
}
|
303 |
-
.btn-info:active,
|
304 |
-
.btn-info.active {
|
305 |
-
background-color: #0C83FF \9;
|
306 |
-
}
|
307 |
-
.btn-inverse {
|
308 |
-
color: #ffffff;
|
309 |
-
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
|
310 |
-
background-color: #363636;
|
311 |
-
background-image: -moz-linear-gradient(top, #444444, #222222);
|
312 |
-
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#444444), to(#222222));
|
313 |
-
background-image: -webkit-linear-gradient(top, #444444, #222222);
|
314 |
-
background-image: -o-linear-gradient(top, #444444, #222222);
|
315 |
-
background-image: linear-gradient(to bottom, #444444, #222222);
|
316 |
-
background-repeat: repeat-x;
|
317 |
-
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff444444', endColorstr='#ff222222', GradientType=0);
|
318 |
-
border-color: #222222 #222222 #000000;
|
319 |
-
border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
|
320 |
-
*background-color: #222222;
|
321 |
-
/* Darken IE7 buttons by default so they stand out more given they won't have borders */
|
322 |
-
|
323 |
-
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
|
324 |
-
}
|
325 |
-
.btn-inverse:hover,
|
326 |
-
.btn-inverse:active,
|
327 |
-
.btn-inverse.active,
|
328 |
-
.btn-inverse.disabled,
|
329 |
-
.btn-inverse[disabled] {
|
330 |
-
color: #ffffff;
|
331 |
-
background-color: #222222;
|
332 |
-
*background-color: #151515;
|
333 |
-
}
|
334 |
-
.btn-inverse:active,
|
335 |
-
.btn-inverse.active {
|
336 |
-
background-color: #080808 \9;
|
337 |
-
}
|
338 |
-
button.btn,
|
339 |
-
input[type="submit"].btn {
|
340 |
-
*padding-top: 3px;
|
341 |
-
*padding-bottom: 3px;
|
342 |
-
}
|
343 |
-
button.btn::-moz-focus-inner,
|
344 |
-
input[type="submit"].btn::-moz-focus-inner {
|
345 |
-
padding: 0;
|
346 |
-
border: 0;
|
347 |
-
}
|
348 |
-
button.btn.btn-large,
|
349 |
-
input[type="submit"].btn.btn-large {
|
350 |
-
*padding-top: 7px;
|
351 |
-
*padding-bottom: 7px;
|
352 |
-
}
|
353 |
-
button.btn.btn-small,
|
354 |
-
input[type="submit"].btn.btn-small {
|
355 |
-
*padding-top: 3px;
|
356 |
-
*padding-bottom: 3px;
|
357 |
-
}
|
358 |
-
button.btn.btn-mini,
|
359 |
-
input[type="submit"].btn.btn-mini {
|
360 |
-
*padding-top: 1px;
|
361 |
-
*padding-bottom: 1px;
|
362 |
-
}
|
363 |
-
.btn-link,
|
364 |
-
.btn-link:active {
|
365 |
-
background-color: transparent;
|
366 |
-
background-image: none;
|
367 |
-
-webkit-box-shadow: none;
|
368 |
-
-moz-box-shadow: none;
|
369 |
-
box-shadow: none;
|
370 |
-
}
|
371 |
-
.btn-link {
|
372 |
-
border-color: transparent;
|
373 |
-
cursor: pointer;
|
374 |
-
color: #0088cc;
|
375 |
-
-webkit-border-radius: 0;
|
376 |
-
-moz-border-radius: 0;
|
377 |
-
border-radius: 0;
|
378 |
-
}
|
379 |
-
.btn-link:hover {
|
380 |
-
color: #005580;
|
381 |
-
text-decoration: underline;
|
382 |
-
background-color: transparent;
|
383 |
-
}
|
384 |
-
[class^="icon-"],
|
385 |
-
[class*=" icon-"] {
|
386 |
-
display: inline-block;
|
387 |
-
width: 14px;
|
388 |
-
height: 14px;
|
389 |
-
*margin-right: .3em;
|
390 |
-
line-height: 14px;
|
391 |
-
vertical-align: text-top;
|
392 |
-
/*background-image: url("../img/glyphicons-halflings.png");*/
|
393 |
-
background-position: 14px 14px;
|
394 |
-
background-repeat: no-repeat;
|
395 |
-
margin-top: 1px;
|
396 |
-
}
|
397 |
-
.btn .caret {
|
398 |
-
margin-top: 8px;
|
399 |
-
margin-left: 0;
|
400 |
-
}
|
401 |
-
.btn-mini .caret,
|
402 |
-
.btn-small .caret,
|
403 |
-
.btn-large .caret {
|
404 |
-
margin-top: 6px;
|
405 |
-
}
|
406 |
-
.btn-large .caret {
|
407 |
-
border-left-width: 5px;
|
408 |
-
border-right-width: 5px;
|
409 |
-
border-top-width: 5px;
|
410 |
-
}
|
411 |
-
.dropup .btn-large .caret {
|
412 |
-
border-bottom: 5px solid #000000;
|
413 |
-
border-top: 0;
|
414 |
-
}
|
415 |
-
.btn-primary .caret,
|
416 |
-
.btn-warning .caret,
|
417 |
-
.btn-danger .caret,
|
418 |
-
.btn-info .caret,
|
419 |
-
.btn-success .caret,
|
420 |
-
.btn-inverse .caret {
|
421 |
-
border-top-color: #ffffff;
|
422 |
-
border-bottom-color: #ffffff;
|
423 |
-
}
|
424 |
-
@-webkit-keyframes progress-bar-stripes {
|
425 |
-
from {
|
426 |
-
background-position: 40px 0;
|
427 |
-
}
|
428 |
-
to {
|
429 |
-
background-position: 0 0;
|
430 |
-
}
|
431 |
-
}
|
432 |
-
@-moz-keyframes progress-bar-stripes {
|
433 |
-
from {
|
434 |
-
background-position: 40px 0;
|
435 |
-
}
|
436 |
-
to {
|
437 |
-
background-position: 0 0;
|
438 |
-
}
|
439 |
-
}
|
440 |
-
@-ms-keyframes progress-bar-stripes {
|
441 |
-
from {
|
442 |
-
background-position: 40px 0;
|
443 |
-
}
|
444 |
-
to {
|
445 |
-
background-position: 0 0;
|
446 |
-
}
|
447 |
-
}
|
448 |
-
@-o-keyframes progress-bar-stripes {
|
449 |
-
from {
|
450 |
-
background-position: 0 0;
|
451 |
-
}
|
452 |
-
to {
|
453 |
-
background-position: 40px 0;
|
454 |
-
}
|
455 |
-
}
|
456 |
-
@keyframes progress-bar-stripes {
|
457 |
-
from {
|
458 |
-
background-position: 40px 0;
|
459 |
-
}
|
460 |
-
to {
|
461 |
-
background-position: 0 0;
|
462 |
-
}
|
463 |
-
}
|
464 |
-
.progress {
|
465 |
-
overflow: hidden;
|
466 |
-
height: 20px;
|
467 |
-
margin-bottom: 20px;
|
468 |
-
background-color: #f7f7f7;
|
469 |
-
background-image: -moz-linear-gradient(top, #f5f5f5, #f9f9f9);
|
470 |
-
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#f5f5f5), to(#f9f9f9));
|
471 |
-
background-image: -webkit-linear-gradient(top, #f5f5f5, #f9f9f9);
|
472 |
-
background-image: -o-linear-gradient(top, #f5f5f5, #f9f9f9);
|
473 |
-
background-image: linear-gradient(to bottom, #f5f5f5, #f9f9f9);
|
474 |
-
background-repeat: repeat-x;
|
475 |
-
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff5f5f5', endColorstr='#fff9f9f9', GradientType=0);
|
476 |
-
-webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
|
477 |
-
-moz-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
|
478 |
-
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
|
479 |
-
-webkit-border-radius: 4px;
|
480 |
-
-moz-border-radius: 4px;
|
481 |
-
border-radius: 4px;
|
482 |
-
}
|
483 |
-
.progress .bar {
|
484 |
-
width: 0%;
|
485 |
-
height: 100%;
|
486 |
-
color: #ffffff;
|
487 |
-
float: left;
|
488 |
-
font-size: 12px;
|
489 |
-
text-align: center;
|
490 |
-
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
|
491 |
-
background-color: #0e90d2;
|
492 |
-
background-image: -moz-linear-gradient(top, #149bdf, #0480be);
|
493 |
-
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#149bdf), to(#0480be));
|
494 |
-
background-image: -webkit-linear-gradient(top, #149bdf, #0480be);
|
495 |
-
background-image: -o-linear-gradient(top, #149bdf, #0480be);
|
496 |
-
background-image: linear-gradient(to bottom, #149bdf, #0480be);
|
497 |
-
background-repeat: repeat-x;
|
498 |
-
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff149bdf', endColorstr='#ff0480be', GradientType=0);
|
499 |
-
-webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
|
500 |
-
-moz-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
|
501 |
-
box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
|
502 |
-
-webkit-box-sizing: border-box;
|
503 |
-
-moz-box-sizing: border-box;
|
504 |
-
box-sizing: border-box;
|
505 |
-
-webkit-transition: width 0.6s ease;
|
506 |
-
-moz-transition: width 0.6s ease;
|
507 |
-
-o-transition: width 0.6s ease;
|
508 |
-
transition: width 0.6s ease;
|
509 |
-
}
|
510 |
-
.progress .bar + .bar {
|
511 |
-
-webkit-box-shadow: inset 1px 0 0 rgba(0,0,0,.15), inset 0 -1px 0 rgba(0,0,0,.15);
|
512 |
-
-moz-box-shadow: inset 1px 0 0 rgba(0,0,0,.15), inset 0 -1px 0 rgba(0,0,0,.15);
|
513 |
-
box-shadow: inset 1px 0 0 rgba(0,0,0,.15), inset 0 -1px 0 rgba(0,0,0,.15);
|
514 |
-
}
|
515 |
-
.progress-striped .bar {
|
516 |
-
background-color: #149bdf;
|
517 |
-
background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent));
|
518 |
-
background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
|
519 |
-
background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
|
520 |
-
background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
|
521 |
-
background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
|
522 |
-
-webkit-background-size: 40px 40px;
|
523 |
-
-moz-background-size: 40px 40px;
|
524 |
-
-o-background-size: 40px 40px;
|
525 |
-
background-size: 40px 40px;
|
526 |
-
}
|
527 |
-
.progress.active .bar {
|
528 |
-
-webkit-animation: progress-bar-stripes 2s linear infinite;
|
529 |
-
-moz-animation: progress-bar-stripes 2s linear infinite;
|
530 |
-
-ms-animation: progress-bar-stripes 2s linear infinite;
|
531 |
-
-o-animation: progress-bar-stripes 2s linear infinite;
|
532 |
-
animation: progress-bar-stripes 2s linear infinite;
|
533 |
-
}
|
534 |
-
.progress-danger .bar,
|
535 |
-
.progress .bar-danger {
|
536 |
-
background-color: #dd514c;
|
537 |
-
background-image: -moz-linear-gradient(top, #ee5f5b, #c43c35);
|
538 |
-
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ee5f5b), to(#c43c35));
|
539 |
-
background-image: -webkit-linear-gradient(top, #ee5f5b, #c43c35);
|
540 |
-
background-image: -o-linear-gradient(top, #ee5f5b, #c43c35);
|
541 |
-
background-image: linear-gradient(to bottom, #ee5f5b, #c43c35);
|
542 |
-
background-repeat: repeat-x;
|
543 |
-
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffee5f5b', endColorstr='#ffc43c35', GradientType=0);
|
544 |
-
}
|
545 |
-
.progress-danger.progress-striped .bar,
|
546 |
-
.progress-striped .bar-danger {
|
547 |
-
background-color: #ee5f5b;
|
548 |
-
background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent));
|
549 |
-
background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
|
550 |
-
background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
|
551 |
-
background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
|
552 |
-
background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
|
553 |
-
}
|
554 |
-
.progress-success .bar,
|
555 |
-
.progress .bar-success {
|
556 |
-
background-color: #5eb95e;
|
557 |
-
background-image: -moz-linear-gradient(top, #62c462, #57a957);
|
558 |
-
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#62c462), to(#57a957));
|
559 |
-
background-image: -webkit-linear-gradient(top, #62c462, #57a957);
|
560 |
-
background-image: -o-linear-gradient(top, #62c462, #57a957);
|
561 |
-
background-image: linear-gradient(to bottom, #62c462, #57a957);
|
562 |
-
background-repeat: repeat-x;
|
563 |
-
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff62c462', endColorstr='#ff57a957', GradientType=0);
|
564 |
-
}
|
565 |
-
.progress-success.progress-striped .bar,
|
566 |
-
.progress-striped .bar-success {
|
567 |
-
background-color: #62c462;
|
568 |
-
background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent));
|
569 |
-
background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
|
570 |
-
background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
|
571 |
-
background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
|
572 |
-
background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
|
573 |
-
}
|
574 |
-
.progress-info .bar,
|
575 |
-
.progress .bar-info {
|
576 |
-
background-color: #4bb1cf;
|
577 |
-
background-image: -moz-linear-gradient(top, #5bc0de, #339bb9);
|
578 |
-
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#5bc0de), to(#339bb9));
|
579 |
-
background-image: -webkit-linear-gradient(top, #5bc0de, #339bb9);
|
580 |
-
background-image: -o-linear-gradient(top, #5bc0de, #339bb9);
|
581 |
-
background-image: linear-gradient(to bottom, #5bc0de, #339bb9);
|
582 |
-
background-repeat: repeat-x;
|
583 |
-
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5bc0de', endColorstr='#ff339bb9', GradientType=0);
|
584 |
-
}
|
585 |
-
.progress-info.progress-striped .bar,
|
586 |
-
.progress-striped .bar-info {
|
587 |
-
background-color: #5bc0de;
|
588 |
-
background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent));
|
589 |
-
background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
|
590 |
-
background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
|
591 |
-
background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
|
592 |
-
background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
|
593 |
-
}
|
594 |
-
.progress-warning .bar,
|
595 |
-
.progress .bar-warning {
|
596 |
-
background-color: #faa732;
|
597 |
-
background-image: -moz-linear-gradient(top, #fbb450, #f89406);
|
598 |
-
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#fbb450), to(#f89406));
|
599 |
-
background-image: -webkit-linear-gradient(top, #fbb450, #f89406);
|
600 |
-
background-image: -o-linear-gradient(top, #fbb450, #f89406);
|
601 |
-
background-image: linear-gradient(to bottom, #fbb450, #f89406);
|
602 |
-
background-repeat: repeat-x;
|
603 |
-
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffbb450', endColorstr='#fff89406', GradientType=0);
|
604 |
-
}
|
605 |
-
.progress-warning.progress-striped .bar,
|
606 |
-
.progress-striped .bar-warning {
|
607 |
-
background-color: #fbb450;
|
608 |
-
background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent));
|
609 |
-
background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
|
610 |
-
background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
|
611 |
-
background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
|
612 |
-
background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
|
613 |
-
}
|
614 |
-
.tooltip {
|
615 |
-
position: absolute;
|
616 |
-
z-index: 1030;
|
617 |
-
display: block;
|
618 |
-
visibility: visible;
|
619 |
-
padding: 5px;
|
620 |
-
font-size: 11px;
|
621 |
-
opacity: 0;
|
622 |
-
filter: alpha(opacity=0);
|
623 |
-
}
|
624 |
-
.tooltip.in {
|
625 |
-
opacity: 0.8;
|
626 |
-
filter: alpha(opacity=80);
|
627 |
-
}
|
628 |
-
.tooltip.top {
|
629 |
-
margin-top: -3px;
|
630 |
-
}
|
631 |
-
.tooltip.right {
|
632 |
-
margin-left: 3px;
|
633 |
-
}
|
634 |
-
.tooltip.bottom {
|
635 |
-
margin-top: 3px;
|
636 |
-
}
|
637 |
-
.tooltip.left {
|
638 |
-
margin-left: -3px;
|
639 |
-
}
|
640 |
-
.tooltip-inner {
|
641 |
-
max-width: 200px;
|
642 |
-
padding: 3px 8px;
|
643 |
-
color: #ffffff;
|
644 |
-
text-align: center;
|
645 |
-
text-decoration: none;
|
646 |
-
background-color: #000000;
|
647 |
-
-webkit-border-radius: 4px;
|
648 |
-
-moz-border-radius: 4px;
|
649 |
-
border-radius: 4px;
|
650 |
-
}
|
651 |
-
.tooltip-arrow {
|
652 |
-
position: absolute;
|
653 |
-
width: 0;
|
654 |
-
height: 0;
|
655 |
-
border-color: transparent;
|
656 |
-
border-style: solid;
|
657 |
-
}
|
658 |
-
.tooltip.top .tooltip-arrow {
|
659 |
-
bottom: 0;
|
660 |
-
left: 50%;
|
661 |
-
margin-left: -5px;
|
662 |
-
border-width: 5px 5px 0;
|
663 |
-
border-top-color: #000000;
|
664 |
-
}
|
665 |
-
.tooltip.right .tooltip-arrow {
|
666 |
-
top: 50%;
|
667 |
-
left: 0;
|
668 |
-
margin-top: -5px;
|
669 |
-
border-width: 5px 5px 5px 0;
|
670 |
-
border-right-color: #000000;
|
671 |
-
}
|
672 |
-
.tooltip.left .tooltip-arrow {
|
673 |
-
top: 50%;
|
674 |
-
right: 0;
|
675 |
-
margin-top: -5px;
|
676 |
-
border-width: 5px 0 5px 5px;
|
677 |
-
border-left-color: #000000;
|
678 |
-
}
|
679 |
-
.tooltip.bottom .tooltip-arrow {
|
680 |
-
top: 0;
|
681 |
-
left: 50%;
|
682 |
-
margin-left: -5px;
|
683 |
-
border-width: 0 5px 5px;
|
684 |
-
border-bottom-color: #000000;
|
685 |
-
}
|
686 |
-
.popover {
|
687 |
-
position: absolute;
|
688 |
-
top: 0;
|
689 |
-
left: 0;
|
690 |
-
z-index: 1010;
|
691 |
-
display: none;
|
692 |
-
width: 236px;
|
693 |
-
padding: 1px;
|
694 |
-
background-color: #ffffff;
|
695 |
-
-webkit-background-clip: padding-box;
|
696 |
-
-moz-background-clip: padding;
|
697 |
-
background-clip: padding-box;
|
698 |
-
border: 1px solid #ccc;
|
699 |
-
border: 1px solid rgba(0, 0, 0, 0.2);
|
700 |
-
-webkit-border-radius: 6px;
|
701 |
-
-moz-border-radius: 6px;
|
702 |
-
border-radius: 6px;
|
703 |
-
-webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
|
704 |
-
-moz-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
|
705 |
-
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
|
706 |
-
}
|
707 |
-
.popover.top {
|
708 |
-
margin-bottom: 10px;
|
709 |
-
}
|
710 |
-
.popover.right {
|
711 |
-
margin-left: 10px;
|
712 |
-
}
|
713 |
-
.popover.bottom {
|
714 |
-
margin-top: 10px;
|
715 |
-
}
|
716 |
-
.popover.left {
|
717 |
-
margin-right: 10px;
|
718 |
-
}
|
719 |
-
.popover-title {
|
720 |
-
margin: 0;
|
721 |
-
padding: 8px 14px;
|
722 |
-
font-size: 14px;
|
723 |
-
font-weight: normal;
|
724 |
-
line-height: 18px;
|
725 |
-
background-color: #f7f7f7;
|
726 |
-
border-bottom: 1px solid #ebebeb;
|
727 |
-
-webkit-border-radius: 5px 5px 0 0;
|
728 |
-
-moz-border-radius: 5px 5px 0 0;
|
729 |
-
border-radius: 5px 5px 0 0;
|
730 |
-
}
|
731 |
-
.popover-content {
|
732 |
-
padding: 9px 14px;
|
733 |
-
}
|
734 |
-
.popover-content p,
|
735 |
-
.popover-content ul,
|
736 |
-
.popover-content ol {
|
737 |
-
margin-bottom: 0;
|
738 |
-
}
|
739 |
-
.popover .arrow,
|
740 |
-
.popover .arrow:after {
|
741 |
-
position: absolute;
|
742 |
-
display: inline-block;
|
743 |
-
width: 0;
|
744 |
-
height: 0;
|
745 |
-
border-color: transparent;
|
746 |
-
border-style: solid;
|
747 |
-
}
|
748 |
-
.popover .arrow:after {
|
749 |
-
content: "";
|
750 |
-
z-index: -1;
|
751 |
-
}
|
752 |
-
.popover.top .arrow {
|
753 |
-
bottom: -10px;
|
754 |
-
left: 50%;
|
755 |
-
margin-left: -10px;
|
756 |
-
border-width: 10px 10px 0;
|
757 |
-
border-top-color: #ffffff;
|
758 |
-
}
|
759 |
-
.popover.top .arrow:after {
|
760 |
-
border-width: 11px 11px 0;
|
761 |
-
border-top-color: rgba(0, 0, 0, 0.25);
|
762 |
-
bottom: -1px;
|
763 |
-
left: -11px;
|
764 |
-
}
|
765 |
-
.popover.right .arrow {
|
766 |
-
top: 50%;
|
767 |
-
left: -10px;
|
768 |
-
margin-top: -10px;
|
769 |
-
border-width: 10px 10px 10px 0;
|
770 |
-
border-right-color: #ffffff;
|
771 |
-
}
|
772 |
-
.popover.right .arrow:after {
|
773 |
-
border-width: 11px 11px 11px 0;
|
774 |
-
border-right-color: rgba(0, 0, 0, 0.25);
|
775 |
-
bottom: -11px;
|
776 |
-
left: -1px;
|
777 |
-
}
|
778 |
-
.popover.bottom .arrow {
|
779 |
-
top: -10px;
|
780 |
-
left: 50%;
|
781 |
-
margin-left: -10px;
|
782 |
-
border-width: 0 10px 10px;
|
783 |
-
border-bottom-color: #ffffff;
|
784 |
-
}
|
785 |
-
.popover.bottom .arrow:after {
|
786 |
-
border-width: 0 11px 11px;
|
787 |
-
border-bottom-color: rgba(0, 0, 0, 0.25);
|
788 |
-
top: -1px;
|
789 |
-
left: -11px;
|
790 |
-
}
|
791 |
-
.popover.left .arrow {
|
792 |
-
top: 50%;
|
793 |
-
right: -10px;
|
794 |
-
margin-top: -10px;
|
795 |
-
border-width: 10px 0 10px 10px;
|
796 |
-
border-left-color: #ffffff;
|
797 |
-
}
|
798 |
-
.popover.left .arrow:after {
|
799 |
-
border-width: 11px 0 11px 11px;
|
800 |
-
border-left-color: rgba(0, 0, 0, 0.25);
|
801 |
-
bottom: -11px;
|
802 |
-
right: -1px;
|
803 |
-
}
|
804 |
-
.modal-open .dropdown-menu {
|
805 |
-
z-index: 2050;
|
806 |
-
}
|
807 |
-
.modal-open .dropdown.open {
|
808 |
-
*z-index: 2050;
|
809 |
-
}
|
810 |
-
.modal-open .popover {
|
811 |
-
z-index: 2060;
|
812 |
-
}
|
813 |
-
.modal-open .tooltip {
|
814 |
-
z-index: 2080;
|
815 |
-
}
|
816 |
-
.modal-backdrop {
|
817 |
-
position: fixed;
|
818 |
-
top: 0;
|
819 |
-
right: 0;
|
820 |
-
bottom: 0;
|
821 |
-
left: 0;
|
822 |
-
z-index: 1040;
|
823 |
-
background-color: #000000;
|
824 |
-
}
|
825 |
-
.modal-backdrop.fade {
|
826 |
-
opacity: 0;
|
827 |
-
}
|
828 |
-
.modal-backdrop,
|
829 |
-
.modal-backdrop.fade.in {
|
830 |
-
opacity: 0.8;
|
831 |
-
filter: alpha(opacity=80);
|
832 |
-
}
|
833 |
-
.modal {
|
834 |
-
position: fixed;
|
835 |
-
top: 50%;
|
836 |
-
left: 50%;
|
837 |
-
z-index: 1050;
|
838 |
-
overflow: auto;
|
839 |
-
width: 560px;
|
840 |
-
margin: -250px 0 0 -280px;
|
841 |
-
background-color: #ffffff;
|
842 |
-
border: 1px solid #999;
|
843 |
-
border: 1px solid rgba(0, 0, 0, 0.3);
|
844 |
-
*border: 1px solid #999;
|
845 |
-
/* IE6-7 */
|
846 |
-
|
847 |
-
-webkit-border-radius: 6px;
|
848 |
-
-moz-border-radius: 6px;
|
849 |
-
border-radius: 6px;
|
850 |
-
-webkit-box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3);
|
851 |
-
-moz-box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3);
|
852 |
-
box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3);
|
853 |
-
-webkit-background-clip: padding-box;
|
854 |
-
-moz-background-clip: padding-box;
|
855 |
-
background-clip: padding-box;
|
856 |
-
}
|
857 |
-
.modal.fade {
|
858 |
-
-webkit-transition: opacity .3s linear, top .3s ease-out;
|
859 |
-
-moz-transition: opacity .3s linear, top .3s ease-out;
|
860 |
-
-o-transition: opacity .3s linear, top .3s ease-out;
|
861 |
-
transition: opacity .3s linear, top .3s ease-out;
|
862 |
-
top: -25%;
|
863 |
-
}
|
864 |
-
.modal.fade.in {
|
865 |
-
top: 50%;
|
866 |
-
}
|
867 |
-
.modal-header {
|
868 |
-
padding: 9px 15px;
|
869 |
-
border-bottom: 1px solid #eee;
|
870 |
-
}
|
871 |
-
#wptouch-settings-area .modal-header .close {
|
872 |
-
margin-top: 2px;
|
873 |
-
}
|
874 |
-
.modal-header h3 {
|
875 |
-
margin: 0;
|
876 |
-
line-height: 30px;
|
877 |
-
}
|
878 |
-
.modal-body {
|
879 |
-
overflow-y: auto;
|
880 |
-
max-height: 400px;
|
881 |
-
padding: 15px;
|
882 |
-
}
|
883 |
-
.modal-form {
|
884 |
-
margin-bottom: 0;
|
885 |
-
}
|
886 |
-
.modal-footer {
|
887 |
-
padding: 14px 15px 15px;
|
888 |
-
margin-bottom: 0;
|
889 |
-
text-align: right;
|
890 |
-
background-color: #f5f5f5;
|
891 |
-
border-top: 1px solid #ddd;
|
892 |
-
-webkit-border-radius: 0 0 6px 6px;
|
893 |
-
-moz-border-radius: 0 0 6px 6px;
|
894 |
-
border-radius: 0 0 6px 6px;
|
895 |
-
-webkit-box-shadow: inset 0 1px 0 #ffffff;
|
896 |
-
-moz-box-shadow: inset 0 1px 0 #ffffff;
|
897 |
-
box-shadow: inset 0 1px 0 #ffffff;
|
898 |
-
*zoom: 1;
|
899 |
-
}
|
900 |
-
.modal-footer:before,
|
901 |
-
.modal-footer:after {
|
902 |
-
display: table;
|
903 |
-
content: "";
|
904 |
-
line-height: 0;
|
905 |
-
}
|
906 |
-
.modal-footer:after {
|
907 |
-
clear: both;
|
908 |
-
}
|
909 |
-
.modal-footer .btn + .btn {
|
910 |
-
margin-left: 5px;
|
911 |
-
margin-bottom: 0;
|
912 |
-
}
|
913 |
-
.modal-footer .btn-group .btn + .btn {
|
914 |
-
margin-left: -1px;
|
915 |
-
}
|
916 |
-
.dropup,
|
917 |
-
.dropdown {
|
918 |
-
position: relative;
|
919 |
-
}
|
920 |
-
.dropdown-toggle {
|
921 |
-
*margin-bottom: -3px;
|
922 |
-
}
|
923 |
-
.dropdown-toggle:active,
|
924 |
-
.open .dropdown-toggle {
|
925 |
-
outline: 0;
|
926 |
-
}
|
927 |
-
.caret {
|
928 |
-
display: inline-block;
|
929 |
-
width: 0;
|
930 |
-
height: 0;
|
931 |
-
vertical-align: top;
|
932 |
-
border-top: 4px solid #000000;
|
933 |
-
border-right: 4px solid transparent;
|
934 |
-
border-left: 4px solid transparent;
|
935 |
-
content: "";
|
936 |
-
}
|
937 |
-
.dropdown .caret {
|
938 |
-
margin-top: 8px;
|
939 |
-
margin-left: 2px;
|
940 |
-
}
|
941 |
-
.dropdown-menu {
|
942 |
-
position: absolute;
|
943 |
-
top: 100%;
|
944 |
-
left: 0;
|
945 |
-
z-index: 1000;
|
946 |
-
display: none;
|
947 |
-
float: left;
|
948 |
-
min-width: 160px;
|
949 |
-
padding: 5px 0;
|
950 |
-
margin: 2px 0 0;
|
951 |
-
list-style: none;
|
952 |
-
background-color: #ffffff;
|
953 |
-
border: 1px solid #ccc;
|
954 |
-
border: 1px solid rgba(0, 0, 0, 0.2);
|
955 |
-
*border-right-width: 2px;
|
956 |
-
*border-bottom-width: 2px;
|
957 |
-
-webkit-border-radius: 6px;
|
958 |
-
-moz-border-radius: 6px;
|
959 |
-
border-radius: 6px;
|
960 |
-
-webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
|
961 |
-
-moz-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
|
962 |
-
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
|
963 |
-
-webkit-background-clip: padding-box;
|
964 |
-
-moz-background-clip: padding;
|
965 |
-
background-clip: padding-box;
|
966 |
-
}
|
967 |
-
.dropdown-menu.pull-right {
|
968 |
-
right: 0;
|
969 |
-
left: auto;
|
970 |
-
}
|
971 |
-
.dropdown-menu .divider {
|
972 |
-
*width: 100%;
|
973 |
-
height: 1px;
|
974 |
-
margin: 9px 1px;
|
975 |
-
*margin: -5px 0 5px;
|
976 |
-
overflow: hidden;
|
977 |
-
background-color: #e5e5e5;
|
978 |
-
border-bottom: 1px solid #ffffff;
|
979 |
-
}
|
980 |
-
.dropdown-menu a {
|
981 |
-
display: block;
|
982 |
-
padding: 3px 20px;
|
983 |
-
clear: both;
|
984 |
-
font-weight: normal;
|
985 |
-
line-height: 20px;
|
986 |
-
color: #333333;
|
987 |
-
white-space: nowrap;
|
988 |
-
}
|
989 |
-
.dropdown-menu li > a:hover,
|
990 |
-
.dropdown-menu li > a:focus,
|
991 |
-
.dropdown-submenu:hover > a {
|
992 |
-
text-decoration: none;
|
993 |
-
color: #ffffff;
|
994 |
-
background-color: #0088cc;
|
995 |
-
background-color: #0081c2;
|
996 |
-
background-image: -moz-linear-gradient(top, #0088cc, #0077b3);
|
997 |
-
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#0077b3));
|
998 |
-
background-image: -webkit-linear-gradient(top, #0088cc, #0077b3);
|
999 |
-
background-image: -o-linear-gradient(top, #0088cc, #0077b3);
|
1000 |
-
background-image: linear-gradient(to bottom, #0088cc, #0077b3);
|
1001 |
-
background-repeat: repeat-x;
|
1002 |
-
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff0088cc', endColorstr='#ff0077b3', GradientType=0);
|
1003 |
-
}
|
1004 |
-
.dropdown-menu .active > a,
|
1005 |
-
.dropdown-menu .active > a:hover {
|
1006 |
-
color: #ffffff;
|
1007 |
-
text-decoration: none;
|
1008 |
-
outline: 0;
|
1009 |
-
background-color: #0088cc;
|
1010 |
-
background-color: #0081c2;
|
1011 |
-
background-image: -moz-linear-gradient(top, #0088cc, #0077b3);
|
1012 |
-
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#0077b3));
|
1013 |
-
background-image: -webkit-linear-gradient(top, #0088cc, #0077b3);
|
1014 |
-
background-image: -o-linear-gradient(top, #0088cc, #0077b3);
|
1015 |
-
background-image: linear-gradient(to bottom, #0088cc, #0077b3);
|
1016 |
-
background-repeat: repeat-x;
|
1017 |
-
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff0088cc', endColorstr='#ff0077b3', GradientType=0);
|
1018 |
-
}
|
1019 |
-
.dropdown-menu .disabled > a,
|
1020 |
-
.dropdown-menu .disabled > a:hover {
|
1021 |
-
color: #999999;
|
1022 |
-
}
|
1023 |
-
.dropdown-menu .disabled > a:hover {
|
1024 |
-
text-decoration: none;
|
1025 |
-
background-color: transparent;
|
1026 |
-
cursor: default;
|
1027 |
-
}
|
1028 |
-
.open {
|
1029 |
-
*z-index: 1000;
|
1030 |
-
}
|
1031 |
-
.open > .dropdown-menu {
|
1032 |
-
display: block;
|
1033 |
-
}
|
1034 |
-
.pull-right > .dropdown-menu {
|
1035 |
-
right: 0;
|
1036 |
-
left: auto;
|
1037 |
-
}
|
1038 |
-
.dropup .caret,
|
1039 |
-
.navbar-fixed-bottom .dropdown .caret {
|
1040 |
-
border-top: 0;
|
1041 |
-
border-bottom: 4px solid #000000;
|
1042 |
-
content: "\2191";
|
1043 |
-
}
|
1044 |
-
.dropup .dropdown-menu,
|
1045 |
-
.navbar-fixed-bottom .dropdown .dropdown-menu {
|
1046 |
-
top: auto;
|
1047 |
-
bottom: 100%;
|
1048 |
-
margin-bottom: 1px;
|
1049 |
-
}
|
1050 |
-
.dropdown-submenu {
|
1051 |
-
position: relative;
|
1052 |
-
}
|
1053 |
-
.dropdown-submenu > .dropdown-menu {
|
1054 |
-
top: 0;
|
1055 |
-
left: 100%;
|
1056 |
-
margin-top: -6px;
|
1057 |
-
margin-left: -1px;
|
1058 |
-
-webkit-border-radius: 0 6px 6px 6px;
|
1059 |
-
-moz-border-radius: 0 6px 6px 6px;
|
1060 |
-
border-radius: 0 6px 6px 6px;
|
1061 |
-
}
|
1062 |
-
.dropdown-submenu:hover .dropdown-menu {
|
1063 |
-
display: block;
|
1064 |
-
}
|
1065 |
-
.dropdown-submenu > a:after {
|
1066 |
-
display: block;
|
1067 |
-
content: " ";
|
1068 |
-
float: right;
|
1069 |
-
width: 0;
|
1070 |
-
height: 0;
|
1071 |
-
border-color: transparent;
|
1072 |
-
border-style: solid;
|
1073 |
-
border-width: 5px 0 5px 5px;
|
1074 |
-
border-left-color: #cccccc;
|
1075 |
-
margin-top: 5px;
|
1076 |
-
margin-right: -10px;
|
1077 |
-
}
|
1078 |
-
.dropdown-submenu:hover > a:after {
|
1079 |
-
border-left-color: #ffffff;
|
1080 |
-
}
|
1081 |
-
.dropdown .dropdown-menu .nav-header {
|
1082 |
-
padding-left: 20px;
|
1083 |
-
padding-right: 20px;
|
1084 |
-
}
|
1085 |
-
.typeahead {
|
1086 |
-
margin-top: 2px;
|
1087 |
-
-webkit-border-radius: 4px;
|
1088 |
-
-moz-border-radius: 4px;
|
1089 |
-
border-radius: 4px;
|
1090 |
-
}
|
1091 |
-
.carousel {
|
1092 |
-
position: relative;
|
1093 |
-
margin-bottom: 20px;
|
1094 |
-
line-height: 1;
|
1095 |
-
}
|
1096 |
-
.carousel-inner {
|
1097 |
-
overflow: hidden;
|
1098 |
-
width: 100%;
|
1099 |
-
position: relative;
|
1100 |
-
}
|
1101 |
-
.carousel .item {
|
1102 |
-
display: none;
|
1103 |
-
position: relative;
|
1104 |
-
-webkit-transition: 0.6s ease-in-out left;
|
1105 |
-
-moz-transition: 0.6s ease-in-out left;
|
1106 |
-
-o-transition: 0.6s ease-in-out left;
|
1107 |
-
transition: 0.6s ease-in-out left;
|
1108 |
-
}
|
1109 |
-
.carousel .item > img {
|
1110 |
-
display: block;
|
1111 |
-
line-height: 1;
|
1112 |
-
}
|
1113 |
-
.carousel .active,
|
1114 |
-
.carousel .next,
|
1115 |
-
.carousel .prev {
|
1116 |
-
display: block;
|
1117 |
-
}
|
1118 |
-
.carousel .active {
|
1119 |
-
left: 0;
|
1120 |
-
}
|
1121 |
-
.carousel .next,
|
1122 |
-
.carousel .prev {
|
1123 |
-
position: absolute;
|
1124 |
-
top: 0;
|
1125 |
-
width: 100%;
|
1126 |
-
}
|
1127 |
-
.carousel .next {
|
1128 |
-
left: 100%;
|
1129 |
-
}
|
1130 |
-
.carousel .prev {
|
1131 |
-
left: -100%;
|
1132 |
-
}
|
1133 |
-
.carousel .next.left,
|
1134 |
-
.carousel .prev.right {
|
1135 |
-
left: 0;
|
1136 |
-
}
|
1137 |
-
.carousel .active.left {
|
1138 |
-
left: -100%;
|
1139 |
-
}
|
1140 |
-
.carousel .active.right {
|
1141 |
-
left: 100%;
|
1142 |
-
}
|
1143 |
-
.carousel-control {
|
1144 |
-
position: absolute;
|
1145 |
-
top: 40%;
|
1146 |
-
left: 15px;
|
1147 |
-
width: 40px;
|
1148 |
-
height: 40px;
|
1149 |
-
margin-top: -20px;
|
1150 |
-
font-size: 60px;
|
1151 |
-
font-weight: 100;
|
1152 |
-
line-height: 30px;
|
1153 |
-
color: #ffffff;
|
1154 |
-
text-align: center;
|
1155 |
-
background: #222222;
|
1156 |
-
border: 3px solid #ffffff;
|
1157 |
-
-webkit-border-radius: 23px;
|
1158 |
-
-moz-border-radius: 23px;
|
1159 |
-
border-radius: 23px;
|
1160 |
-
opacity: 0.5;
|
1161 |
-
filter: alpha(opacity=50);
|
1162 |
-
}
|
1163 |
-
.carousel-control.right {
|
1164 |
-
left: auto;
|
1165 |
-
right: 15px;
|
1166 |
-
}
|
1167 |
-
.carousel-control:hover {
|
1168 |
-
color: #ffffff;
|
1169 |
-
text-decoration: none;
|
1170 |
-
opacity: 0.9;
|
1171 |
-
filter: alpha(opacity=90);
|
1172 |
-
}
|
1173 |
-
.carousel-caption {
|
1174 |
-
position: absolute;
|
1175 |
-
left: 0;
|
1176 |
-
right: 0;
|
1177 |
-
bottom: 0;
|
1178 |
-
padding: 15px;
|
1179 |
-
background: #333333;
|
1180 |
-
background: rgba(0, 0, 0, 0.75);
|
1181 |
-
}
|
1182 |
-
.carousel-caption h4,
|
1183 |
-
.carousel-caption p {
|
1184 |
-
color: #ffffff;
|
1185 |
-
line-height: 20px;
|
1186 |
-
}
|
1187 |
-
.carousel-caption h4 {
|
1188 |
-
margin: 0 0 5px;
|
1189 |
-
}
|
1190 |
-
.carousel-caption p {
|
1191 |
-
margin-bottom: 0;
|
1192 |
-
}
|
1193 |
-
#wptouch-settings-area .close {
|
1194 |
-
float: right;
|
1195 |
-
font-size: 20px;
|
1196 |
-
font-weight: bold;
|
1197 |
-
line-height: 20px;
|
1198 |
-
color: #000000;
|
1199 |
-
text-shadow: 0 1px 0 #ffffff;
|
1200 |
-
opacity: 0.2;
|
1201 |
-
filter: alpha(opacity=20);
|
1202 |
-
}
|
1203 |
-
#wptouch-settings-area .close:hover {
|
1204 |
-
color: #000000;
|
1205 |
-
text-decoration: none;
|
1206 |
-
cursor: pointer;
|
1207 |
-
opacity: 0.4;
|
1208 |
-
filter: alpha(opacity=40);
|
1209 |
-
}
|
1210 |
-
#wptouch-settings-area button.close {
|
1211 |
-
padding: 0;
|
1212 |
-
cursor: pointer;
|
1213 |
-
background: transparent;
|
1214 |
-
border: 0;
|
1215 |
-
-webkit-appearance: none;
|
1216 |
-
}
|
1217 |
-
.pull-right {
|
1218 |
-
float: right;
|
1219 |
-
}
|
1220 |
-
.pull-left {
|
1221 |
-
float: left;
|
1222 |
-
}
|
1223 |
-
.hide {
|
1224 |
-
display: none;
|
1225 |
-
}
|
1226 |
-
.show {
|
1227 |
-
display: block;
|
1228 |
-
}
|
1229 |
-
.invisible {
|
1230 |
-
visibility: hidden;
|
1231 |
-
}
|
1232 |
-
.affix {
|
1233 |
-
position: fixed;
|
1234 |
-
}
|
1235 |
-
.fade {
|
1236 |
-
opacity: 0;
|
1237 |
-
-webkit-transition: opacity 0.15s linear;
|
1238 |
-
-moz-transition: opacity 0.15s linear;
|
1239 |
-
-o-transition: opacity 0.15s linear;
|
1240 |
-
transition: opacity 0.15s linear;
|
1241 |
-
}
|
1242 |
-
.fade.in {
|
1243 |
-
opacity: 1;
|
1244 |
-
}
|
1245 |
-
.collapse {
|
1246 |
-
position: relative;
|
1247 |
-
height: 0;
|
1248 |
-
overflow: hidden;
|
1249 |
-
overflow: visible \9;
|
1250 |
-
-webkit-transition: height 0.35s ease;
|
1251 |
-
-moz-transition: height 0.35s ease;
|
1252 |
-
-o-transition: height 0.35s ease;
|
1253 |
-
transition: height 0.35s ease;
|
1254 |
-
}
|
1255 |
-
.collapse.in {
|
1256 |
-
height: auto;
|
1257 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/bootstrap/js/bootstrap.min.js
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
!function($){$(function(){$.support.transition=(function(){var transitionEnd=(function(){var el=document.createElement("bootstrap"),transEndEventNames={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},name;for(name in transEndEventNames){if(el.style[name]!==undefined){return transEndEventNames[name]}}}());return transitionEnd&&{end:transitionEnd}})()})}(window.jQuery);!function($){var Modal=function(element,options){this.options=options;this.$element=$(element).delegate('[data-dismiss="modal"]',"click.dismiss.modal",$.proxy(this.hide,this));this.options.remote&&this.$element.find(".modal-body").load(this.options.remote)};Modal.prototype={constructor:Modal,toggle:function(){return this[!this.isShown?"show":"hide"]()},show:function(){var that=this,e=$.Event("show");this.$element.trigger(e);if(this.isShown||e.isDefaultPrevented()){return}$("body").addClass("modal-open");this.isShown=true;this.escape();this.backdrop(function(){var transition=$.support.transition&&that.$element.hasClass("fade");if(!that.$element.parent().length){that.$element.appendTo(document.body)}that.$element.show();if(transition){that.$element[0].offsetWidth}that.$element.addClass("in").attr("aria-hidden",false).focus();that.enforceFocus();transition?that.$element.one($.support.transition.end,function(){that.$element.trigger("shown")}):that.$element.trigger("shown")})},hide:function(e){e&&e.preventDefault();var that=this;e=$.Event("hide");this.$element.trigger(e);if(!this.isShown||e.isDefaultPrevented()){return}this.isShown=false;$("body").removeClass("modal-open");this.escape();$(document).off("focusin.modal");this.$element.removeClass("in").attr("aria-hidden",true);$.support.transition&&this.$element.hasClass("fade")?this.hideWithTransition():this.hideModal()},enforceFocus:function(){var that=this;$(document).on("focusin.modal",function(e){if(that.$element[0]!==e.target&&!that.$element.has(e.target).length){that.$element.focus()}})},escape:function(){var that=this;if(this.isShown&&this.options.keyboard){this.$element.on("keyup.dismiss.modal",function(e){e.which==27&&that.hide()})}else{if(!this.isShown){this.$element.off("keyup.dismiss.modal")}}},hideWithTransition:function(){var that=this,timeout=setTimeout(function(){that.$element.off($.support.transition.end);that.hideModal()},500);this.$element.one($.support.transition.end,function(){clearTimeout(timeout);that.hideModal()})},hideModal:function(that){this.$element.hide().trigger("hidden");this.backdrop()},removeBackdrop:function(){this.$backdrop.remove();this.$backdrop=null},backdrop:function(callback){var that=this,animate=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var doAnimate=$.support.transition&&animate;this.$backdrop=$('<div class="modal-backdrop '+animate+'" />').appendTo(document.body);if(this.options.backdrop!="static"){this.$backdrop.click($.proxy(this.hide,this))}if(doAnimate){this.$backdrop[0].offsetWidth}this.$backdrop.addClass("in");doAnimate?this.$backdrop.one($.support.transition.end,callback):callback()}else{if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");$.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one($.support.transition.end,$.proxy(this.removeBackdrop,this)):this.removeBackdrop()}else{if(callback){callback()}}}}};$.fn.modal=function(option){return this.each(function(){var $this=$(this),data=$this.data("modal"),options=$.extend({},$.fn.modal.defaults,$this.data(),typeof option=="object"&&option);if(!data){$this.data("modal",(data=new Modal(this,options)))}if(typeof option=="string"){data[option]()}else{if(options.show){data.show()}}})};$.fn.modal.defaults={backdrop:true,keyboard:true,show:true};$.fn.modal.Constructor=Modal;$(function(){$("body").on("click.modal.data-api",'[data-toggle="modal"]',function(e){var $this=$(this),href=$this.attr("href"),$target=$($this.attr("data-target")||(href&&href.replace(/.*(?=#[^\s]+$)/,""))),option=$target.data("modal")?"toggle":$.extend({remote:!/#/.test(href)&&href},$target.data(),$this.data());e.preventDefault();$target.modal(option).one("hide",function(){$this.focus()})})})}(window.jQuery);!function($){var toggle="[data-toggle=dropdown]",Dropdown=function(element){var $el=$(element).on("click.dropdown.data-api",this.toggle);$("html").on("click.dropdown.data-api",function(){$el.parent().removeClass("open")})};Dropdown.prototype={constructor:Dropdown,toggle:function(e){var $this=$(this),$parent,isActive;if($this.is(".disabled, :disabled")){return}$parent=getParent($this);isActive=$parent.hasClass("open");clearMenus();if(!isActive){$parent.toggleClass("open");$this.focus()}return false},keydown:function(e){var $this,$items,$active,$parent,isActive,index;if(!/(38|40|27)/.test(e.keyCode)){return}$this=$(this);e.preventDefault();e.stopPropagation();if($this.is(".disabled, :disabled")){return}$parent=getParent($this);isActive=$parent.hasClass("open");if(!isActive||(isActive&&e.keyCode==27)){return $this.click()}$items=$("[role=menu] li:not(.divider) a",$parent);if(!$items.length){return}index=$items.index($items.filter(":focus"));if(e.keyCode==38&&index>0){index--}if(e.keyCode==40&&index<$items.length-1){index++}if(!~index){index=0}$items.eq(index).focus()}};function clearMenus(){getParent($(toggle)).removeClass("open")}function getParent($this){var selector=$this.attr("data-target"),$parent;if(!selector){selector=$this.attr("href");selector=selector&&selector.replace(/.*(?=#[^\s]*$)/,"")}$parent=$(selector);$parent.length||($parent=$this.parent());return $parent}$.fn.dropdown=function(option){return this.each(function(){var $this=$(this),data=$this.data("dropdown");if(!data){$this.data("dropdown",(data=new Dropdown(this)))}if(typeof option=="string"){data[option].call($this)}})};$.fn.dropdown.Constructor=Dropdown;$(function(){$("html").on("click.dropdown.data-api touchstart.dropdown.data-api",clearMenus);$("body").on("click.dropdown touchstart.dropdown.data-api",".dropdown",function(e){e.stopPropagation()}).on("click.dropdown.data-api touchstart.dropdown.data-api",toggle,Dropdown.prototype.toggle).on("keydown.dropdown.data-api touchstart.dropdown.data-api",toggle+", [role=menu]",Dropdown.prototype.keydown)})}(window.jQuery);!function($){var Tooltip=function(element,options){this.init("tooltip",element,options)};Tooltip.prototype={constructor:Tooltip,init:function(type,element,options){var eventIn,eventOut;this.type=type;this.$element=$(element);this.options=this.getOptions(options);this.enabled=true;if(this.options.trigger=="click"){this.$element.on("click."+this.type,this.options.selector,$.proxy(this.toggle,this))}else{if(this.options.trigger!="manual"){eventIn=this.options.trigger=="hover"?"mouseenter":"focus";eventOut=this.options.trigger=="hover"?"mouseleave":"blur";this.$element.on(eventIn+"."+this.type,this.options.selector,$.proxy(this.enter,this));this.$element.on(eventOut+"."+this.type,this.options.selector,$.proxy(this.leave,this))}}this.options.selector?(this._options=$.extend({},this.options,{trigger:"manual",selector:""})):this.fixTitle()},getOptions:function(options){options=$.extend({},$.fn[this.type].defaults,options,this.$element.data());if(options.delay&&typeof options.delay=="number"){options.delay={show:options.delay,hide:options.delay}}return options},enter:function(e){var self=$(e.currentTarget)[this.type](this._options).data(this.type);if(!self.options.delay||!self.options.delay.show){return self.show()}clearTimeout(this.timeout);self.hoverState="in";this.timeout=setTimeout(function(){if(self.hoverState=="in"){self.show()}},self.options.delay.show)},leave:function(e){var self=$(e.currentTarget)[this.type](this._options).data(this.type);if(this.timeout){clearTimeout(this.timeout)}if(!self.options.delay||!self.options.delay.hide){return self.hide()}self.hoverState="out";this.timeout=setTimeout(function(){if(self.hoverState=="out"){self.hide()}},self.options.delay.hide)},show:function(){var $tip,inside,pos,actualWidth,actualHeight,placement,tp;if(this.hasContent()&&this.enabled){$tip=this.tip();this.setContent();if(this.options.animation){$tip.addClass("fade")}placement=typeof this.options.placement=="function"?this.options.placement.call(this,$tip[0],this.$element[0]):this.options.placement;inside=/in/.test(placement);$tip.remove().css({top:0,left:0,display:"block"}).appendTo(inside?this.$element:document.body);pos=this.getPosition(inside);actualWidth=$tip[0].offsetWidth;actualHeight=$tip[0].offsetHeight;switch(inside?placement.split(" ")[1]:placement){case"bottom":tp={top:pos.top+pos.height,left:pos.left+pos.width/2-actualWidth/2};break;case"top":tp={top:pos.top-actualHeight,left:pos.left+pos.width/2-actualWidth/2};break;case"left":tp={top:pos.top+pos.height/2-actualHeight/2,left:pos.left-actualWidth};break;case"right":tp={top:pos.top+pos.height/2-actualHeight/2,left:pos.left+pos.width};break}$tip.css(tp).addClass(placement).addClass("in")}},setContent:function(){var $tip=this.tip(),title=this.getTitle();$tip.find(".tooltip-inner")[this.options.html?"html":"text"](title);$tip.removeClass("fade in top bottom left right")},hide:function(){var that=this,$tip=this.tip();$tip.removeClass("in");function removeWithAnimation(){var timeout=setTimeout(function(){$tip.off($.support.transition.end).remove()},500);$tip.one($.support.transition.end,function(){clearTimeout(timeout);$tip.remove()})}$.support.transition&&this.$tip.hasClass("fade")?removeWithAnimation():$tip.remove();return this},fixTitle:function(){var $e=this.$element;if($e.attr("title")||typeof($e.attr("data-original-title"))!="string"){$e.attr("data-original-title",$e.attr("title")||"").removeAttr("title")}},hasContent:function(){return this.getTitle()},getPosition:function(inside){return $.extend({},(inside?{top:0,left:0}:this.$element.offset()),{width:this.$element[0].offsetWidth,height:this.$element[0].offsetHeight})},getTitle:function(){var title,$e=this.$element,o=this.options;title=$e.attr("data-original-title")||(typeof o.title=="function"?o.title.call($e[0]):o.title);return title},tip:function(){return this.$tip=this.$tip||$(this.options.template)},validate:function(){if(!this.$element[0].parentNode){this.hide();this.$element=null;this.options=null}},enable:function(){this.enabled=true},disable:function(){this.enabled=false},toggleEnabled:function(){this.enabled=!this.enabled},toggle:function(){this[this.tip().hasClass("in")?"hide":"show"]()},destroy:function(){this.hide().$element.off("."+this.type).removeData(this.type)}};$.fn.tooltip=function(option){return this.each(function(){var $this=$(this),data=$this.data("tooltip"),options=typeof option=="object"&&option;if(!data){$this.data("tooltip",(data=new Tooltip(this,options)))}if(typeof option=="string"){data[option]()}})};$.fn.tooltip.Constructor=Tooltip;$.fn.tooltip.defaults={animation:true,placement:"top",selector:false,template:'<div class="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover",title:"",delay:0,html:true}}(window.jQuery);!function($){var Popover=function(element,options){this.init("popover",element,options)};Popover.prototype=$.extend({},$.fn.tooltip.Constructor.prototype,{constructor:Popover,setContent:function(){var $tip=this.tip(),title=this.getTitle(),content=this.getContent();$tip.find(".popover-title")[this.options.html?"html":"text"](title);$tip.find(".popover-content > *")[this.options.html?"html":"text"](content);$tip.removeClass("fade top bottom left right in")},hasContent:function(){return this.getTitle()||this.getContent()},getContent:function(){var content,$e=this.$element,o=this.options;content=$e.attr("data-content")||(typeof o.content=="function"?o.content.call($e[0]):o.content);return content},tip:function(){if(!this.$tip){this.$tip=$(this.options.template)}return this.$tip},destroy:function(){this.hide().$element.off("."+this.type).removeData(this.type)}});$.fn.popover=function(option){return this.each(function(){var $this=$(this),data=$this.data("popover"),options=typeof option=="object"&&option;if(!data){$this.data("popover",(data=new Popover(this,options)))}if(typeof option=="string"){data[option]()}})};$.fn.popover.Constructor=Popover;$.fn.popover.defaults=$.extend({},$.fn.tooltip.defaults,{placement:"right",trigger:"click",content:"",template:'<div class="popover"><div class="arrow"></div><div class="popover-inner"><h3 class="popover-title"></h3><div class="popover-content"><p></p></div></div></div>'})}(window.jQuery);!function($){var Button=function(element,options){this.$element=$(element);this.options=$.extend({},$.fn.button.defaults,options)};Button.prototype.setState=function(state){var d="disabled",$el=this.$element,data=$el.data(),val=$el.is("input")?"val":"html";state=state+"Text";data.resetText||$el.data("resetText",$el[val]());$el[val](data[state]||this.options[state]);setTimeout(function(){state=="loadingText"?$el.addClass(d).attr(d,d):$el.removeClass(d).removeAttr(d)},0)};Button.prototype.toggle=function(){var $parent=this.$element.parent('[data-toggle="buttons-radio"]');$parent&&$parent.find(".active").removeClass("active");this.$element.toggleClass("active")};$.fn.button=function(option){return this.each(function(){var $this=$(this),data=$this.data("button"),options=typeof option=="object"&&option;if(!data){$this.data("button",(data=new Button(this,options)))}if(option=="toggle"){data.toggle()}else{if(option){data.setState(option)}}})};$.fn.button.defaults={loadingText:"loading..."};$.fn.button.Constructor=Button;$(function(){$("body").on("click.button.data-api","[data-toggle^=button]",function(e){var $btn=$(e.target);if(!$btn.hasClass("btn")){$btn=$btn.closest(".btn")}$btn.button("toggle")})})}(window.jQuery);!function($){var Carousel=function(element,options){this.$element=$(element);this.options=options;this.options.slide&&this.slide(this.options.slide);this.options.pause=="hover"&&this.$element.on("mouseenter",$.proxy(this.pause,this)).on("mouseleave",$.proxy(this.cycle,this))};Carousel.prototype={cycle:function(e){if(!e){this.paused=false}this.options.interval&&!this.paused&&(this.interval=setInterval($.proxy(this.next,this),this.options.interval));return this},to:function(pos){var $active=this.$element.find(".item.active"),children=$active.parent().children(),activePos=children.index($active),that=this;if(pos>(children.length-1)||pos<0){return}if(this.sliding){return this.$element.one("slid",function(){that.to(pos)})}if(activePos==pos){return this.pause().cycle()}return this.slide(pos>activePos?"next":"prev",$(children[pos]))},pause:function(e){if(!e){this.paused=true}if(this.$element.find(".next, .prev").length&&$.support.transition.end){this.$element.trigger($.support.transition.end);this.cycle()}clearInterval(this.interval);this.interval=null;return this},next:function(){if(this.sliding){return}return this.slide("next")},prev:function(){if(this.sliding){return}return this.slide("prev")},slide:function(type,next){var $active=this.$element.find(".item.active"),$next=next||$active[type](),isCycling=this.interval,direction=type=="next"?"left":"right",fallback=type=="next"?"first":"last",that=this,e=$.Event("slide",{relatedTarget:$next[0]});this.sliding=true;isCycling&&this.pause();$next=$next.length?$next:this.$element.find(".item")[fallback]();if($next.hasClass("active")){return}if($.support.transition&&this.$element.hasClass("slide")){this.$element.trigger(e);if(e.isDefaultPrevented()){return}$next.addClass(type);$next[0].offsetWidth;$active.addClass(direction);$next.addClass(direction);this.$element.one($.support.transition.end,function(){$next.removeClass([type,direction].join(" ")).addClass("active");$active.removeClass(["active",direction].join(" "));that.sliding=false;setTimeout(function(){that.$element.trigger("slid")},0)})}else{this.$element.trigger(e);if(e.isDefaultPrevented()){return}$active.removeClass("active");$next.addClass("active");this.sliding=false;this.$element.trigger("slid")}isCycling&&this.cycle();return this}};$.fn.carousel=function(option){return this.each(function(){var $this=$(this),data=$this.data("carousel"),options=$.extend({},$.fn.carousel.defaults,typeof option=="object"&&option),action=typeof option=="string"?option:options.slide;if(!data){$this.data("carousel",(data=new Carousel(this,options)))}if(typeof option=="number"){data.to(option)}else{if(action){data[action]()}else{if(options.interval){data.cycle()}}}})};$.fn.carousel.defaults={interval:5000,pause:"hover"};$.fn.carousel.Constructor=Carousel;$(function(){$("body").on("click.carousel.data-api","[data-slide]",function(e){var $this=$(this),href,$target=$($this.attr("data-target")||(href=$this.attr("href"))&&href.replace(/.*(?=#[^\s]+$)/,"")),options=!$target.data("modal")&&$.extend({},$target.data(),$this.data());$target.carousel(options);e.preventDefault()})})}(window.jQuery);
|
|
admin/css/rtl.css
DELETED
@@ -1,427 +0,0 @@
|
|
1 |
-
/* @group General */
|
2 |
-
body {
|
3 |
-
direction: rtl;
|
4 |
-
unicode-bidi: embed;
|
5 |
-
}
|
6 |
-
|
7 |
-
#wptouch-settings-area.wrap {
|
8 |
-
margin-right: 0px;
|
9 |
-
margin-left: 20px;
|
10 |
-
}
|
11 |
-
|
12 |
-
#wptouch-settings-area h2.logo-title {
|
13 |
-
padding-left: 0px;
|
14 |
-
padding-right: 45px;
|
15 |
-
background-position: right;
|
16 |
-
}
|
17 |
-
|
18 |
-
#wptouch-settings-area h2.logo-title .title-orange {
|
19 |
-
unicode-bidi: isolate;
|
20 |
-
}
|
21 |
-
|
22 |
-
#wptouch-settings-area .wptouch-section .new,#wptouch-settings-area .wptouch-section .advanced {
|
23 |
-
margin-left: 0px;
|
24 |
-
margin-right: 2px;
|
25 |
-
}
|
26 |
-
|
27 |
-
#admin-spinner {
|
28 |
-
left: auto;
|
29 |
-
right: 8px;
|
30 |
-
}
|
31 |
-
|
32 |
-
#wptouch-settings-area .alert a.btn {
|
33 |
-
top: 3px;
|
34 |
-
left: 3px;
|
35 |
-
right: auto;
|
36 |
-
}
|
37 |
-
|
38 |
-
/* @end */
|
39 |
-
|
40 |
-
/* @group Nano */
|
41 |
-
|
42 |
-
.nano .content {
|
43 |
-
left: 0;
|
44 |
-
right: 0;
|
45 |
-
}
|
46 |
-
|
47 |
-
.nano > .pane {
|
48 |
-
right: auto;
|
49 |
-
left: 1px;
|
50 |
-
}
|
51 |
-
|
52 |
-
/* @end */
|
53 |
-
|
54 |
-
/* @group Colorpicker */
|
55 |
-
|
56 |
-
.farbtastic .color, .farbtastic .overlay {
|
57 |
-
left: auto;
|
58 |
-
right: 47px;
|
59 |
-
}
|
60 |
-
|
61 |
-
/* @end */
|
62 |
-
|
63 |
-
/* @group What's New */
|
64 |
-
|
65 |
-
#touchboard-left.overview-box-appearance {
|
66 |
-
margin-left: 265px;
|
67 |
-
margin-right: 0;
|
68 |
-
}
|
69 |
-
|
70 |
-
#touchboard-left .touchboard-top h2 {
|
71 |
-
padding-right: 5%;
|
72 |
-
padding-top: 4%;
|
73 |
-
}
|
74 |
-
|
75 |
-
#touchboard-left .touchboard-bottom img {
|
76 |
-
display: block;
|
77 |
-
margin-left: auto;
|
78 |
-
margin-right: auto;
|
79 |
-
}
|
80 |
-
|
81 |
-
#touchboard-left .touchboard-bottom h3 {
|
82 |
-
text-align: center;
|
83 |
-
margin-top: 10px;
|
84 |
-
}
|
85 |
-
|
86 |
-
#touchboard-left .touchboard-quote * {
|
87 |
-
text-align: left;
|
88 |
-
direction: ltr;
|
89 |
-
}
|
90 |
-
|
91 |
-
.overview-right-wrap {
|
92 |
-
float: left;
|
93 |
-
}
|
94 |
-
|
95 |
-
.rtl .overview-box-appearance h3 {
|
96 |
-
padding: 8px 15px 8px 8px;
|
97 |
-
text-align: right;
|
98 |
-
float: none;
|
99 |
-
}
|
100 |
-
|
101 |
-
#touchboard-left h3 span {
|
102 |
-
float: left;
|
103 |
-
padding-left: 8px;
|
104 |
-
}
|
105 |
-
|
106 |
-
#touchboard-left h3 span strong {
|
107 |
-
}
|
108 |
-
|
109 |
-
#touchboard-links ul {
|
110 |
-
padding-left: 0px;
|
111 |
-
padding-right: 15px;
|
112 |
-
}
|
113 |
-
|
114 |
-
.overview-right-wrap h3 a {
|
115 |
-
float: left;
|
116 |
-
}
|
117 |
-
|
118 |
-
#touchboard-left .cloud-top-text {
|
119 |
-
position: absolute;
|
120 |
-
top: 14%;
|
121 |
-
left: 60%;
|
122 |
-
width: 36%;
|
123 |
-
text-align: right;
|
124 |
-
}
|
125 |
-
|
126 |
-
/* @end */
|
127 |
-
|
128 |
-
/* @group Uploader */
|
129 |
-
|
130 |
-
.qq-upload-drop-area, .qq-upload-extra-drop-area {
|
131 |
-
left: auto;
|
132 |
-
right: 0;
|
133 |
-
}
|
134 |
-
|
135 |
-
.qq-upload-file, .qq-upload-spinner, .qq-upload-size, .qq-upload-cancel, .qq-upload-failed-text, .qq-upload-finished {
|
136 |
-
margin-right: 0px;
|
137 |
-
margin-left: 12px;
|
138 |
-
}
|
139 |
-
|
140 |
-
.uploader .spinner {
|
141 |
-
margin-right: auto;
|
142 |
-
margin-left: auto;
|
143 |
-
left: 0;
|
144 |
-
right: 0;
|
145 |
-
}
|
146 |
-
|
147 |
-
.uploader .image-placeholder {
|
148 |
-
margin-right: 0px;
|
149 |
-
float: right;
|
150 |
-
margin-left: 15px;
|
151 |
-
}
|
152 |
-
|
153 |
-
.uploader .image-placeholder img {
|
154 |
-
right: auto;
|
155 |
-
left: 1px;
|
156 |
-
}
|
157 |
-
|
158 |
-
/* @end */
|
159 |
-
|
160 |
-
/* @group Form Elements */
|
161 |
-
|
162 |
-
#wptouch-settings-area .button {
|
163 |
-
margin-right: 0px;
|
164 |
-
margin-left: 5px;
|
165 |
-
}
|
166 |
-
|
167 |
-
#wptouch-settings-area input[type="radio"] {
|
168 |
-
margin-right: 0px;
|
169 |
-
margin-left: 5px;
|
170 |
-
}
|
171 |
-
|
172 |
-
#wptouch-settings-area input[type="checkbox"] {
|
173 |
-
margin-right: 0px;
|
174 |
-
margin-left: 2px;
|
175 |
-
}
|
176 |
-
|
177 |
-
input#preview {
|
178 |
-
margin-left: 22px;
|
179 |
-
}
|
180 |
-
|
181 |
-
/* @end */
|
182 |
-
|
183 |
-
/* @group Sections & Misc */
|
184 |
-
|
185 |
-
.wptouch-section h3 {
|
186 |
-
text-align: left;
|
187 |
-
float: right;
|
188 |
-
padding-left: 10px;
|
189 |
-
}
|
190 |
-
|
191 |
-
#wptouch-settings-area .wptouch-section ul.padded {
|
192 |
-
padding-left: 0px;
|
193 |
-
border-left: 0px;
|
194 |
-
border-right: 1px solid #d0dfe9;
|
195 |
-
padding-right: 20px;
|
196 |
-
}
|
197 |
-
|
198 |
-
#wptouch-settings-area .wptouch-section ul.padded li {
|
199 |
-
margin-left: 0px;
|
200 |
-
margin-right: 0;
|
201 |
-
}
|
202 |
-
|
203 |
-
#wptouch-settings-area .wptouch-section table td a.dismiss {
|
204 |
-
margin-left: 0px;
|
205 |
-
margin-right: 10px;
|
206 |
-
}
|
207 |
-
|
208 |
-
#wptouch-settings-area #plugin-compat-setting.nano ul li {
|
209 |
-
padding-left: 0px;
|
210 |
-
padding-right: 5px;
|
211 |
-
}
|
212 |
-
|
213 |
-
/* @end */
|
214 |
-
|
215 |
-
/* @group Branding */
|
216 |
-
|
217 |
-
#section-foundation-colors .fdn-colors .dropdown-toggle span {
|
218 |
-
margin-right: 0px;
|
219 |
-
margin-left: 8px;
|
220 |
-
}
|
221 |
-
|
222 |
-
#section-foundation-colors .fdn-colors .dropdown-menu:after {
|
223 |
-
right: 10px;
|
224 |
-
}
|
225 |
-
|
226 |
-
#section-foundation-colors .fdn-colors .dropdown-menu:before {
|
227 |
-
right: 9px;
|
228 |
-
}
|
229 |
-
|
230 |
-
#section-foundation-colors .fdn-colors .dropdown-menu {
|
231 |
-
right: -5px;
|
232 |
-
}
|
233 |
-
|
234 |
-
#section-foundation-colors .fdn-colors .dropdown-menu p {
|
235 |
-
text-align: left;
|
236 |
-
}
|
237 |
-
|
238 |
-
#section-foundation-colors .fdn-colors .desktop-colors-ul {
|
239 |
-
padding-left: 0px;
|
240 |
-
margin-right: auto;
|
241 |
-
margin-left: auto;
|
242 |
-
padding-right: 18px;
|
243 |
-
}
|
244 |
-
|
245 |
-
#wptouch-settings-content .colorpicker, .selected-color {
|
246 |
-
margin-left: 0px;
|
247 |
-
margin-right: 20%;
|
248 |
-
}
|
249 |
-
|
250 |
-
/* @end */
|
251 |
-
|
252 |
-
/* @group Menus */
|
253 |
-
|
254 |
-
#pack-set-menu-area .section {
|
255 |
-
left: auto;
|
256 |
-
right: 5px;
|
257 |
-
float: right;
|
258 |
-
}
|
259 |
-
|
260 |
-
#left-area li div.title {
|
261 |
-
margin-right: auto;
|
262 |
-
margin-left: auto;
|
263 |
-
}
|
264 |
-
|
265 |
-
#left-area .header {
|
266 |
-
text-align: right;
|
267 |
-
}
|
268 |
-
|
269 |
-
#right-area {
|
270 |
-
margin-right: 1%;
|
271 |
-
margin-left: 5%;
|
272 |
-
}
|
273 |
-
|
274 |
-
#pack-set-menu-area #right-area .header {
|
275 |
-
text-align: right;
|
276 |
-
padding-right: 10px;
|
277 |
-
padding-left: 10px;
|
278 |
-
}
|
279 |
-
|
280 |
-
#pack-set-menu-area #right-area ul#menu-set-options {
|
281 |
-
float: left;
|
282 |
-
}
|
283 |
-
|
284 |
-
ul.menu-tree li {
|
285 |
-
clear: right;
|
286 |
-
}
|
287 |
-
ul.menu-tree li:before {
|
288 |
-
display:block;
|
289 |
-
content: '';
|
290 |
-
clear: both;
|
291 |
-
}
|
292 |
-
|
293 |
-
ul.menu-tree li input {
|
294 |
-
right: auto;
|
295 |
-
left: 10px;
|
296 |
-
float: left;
|
297 |
-
}
|
298 |
-
|
299 |
-
ul.menu-tree a.expand {
|
300 |
-
padding-left: 0px;
|
301 |
-
padding-right: 14px;
|
302 |
-
}
|
303 |
-
|
304 |
-
ul.menu-tree li .drop-target {
|
305 |
-
margin-right: 10px;
|
306 |
-
margin-left: 10px;
|
307 |
-
float: right;
|
308 |
-
}
|
309 |
-
|
310 |
-
#default-trash-area {
|
311 |
-
margin-left: 0px;
|
312 |
-
margin-right: 1.5%;
|
313 |
-
}
|
314 |
-
|
315 |
-
#default-trash-area span {
|
316 |
-
left: auto;
|
317 |
-
right: 5px;
|
318 |
-
}
|
319 |
-
|
320 |
-
#default-trash-area > div {
|
321 |
-
float: right;
|
322 |
-
}
|
323 |
-
|
324 |
-
#menu-icons-menus #default-area {
|
325 |
-
border-right: 0px;
|
326 |
-
border-left: 1px solid #ccc;
|
327 |
-
padding-right: 20px;
|
328 |
-
}
|
329 |
-
|
330 |
-
#default-trash-area span.text {
|
331 |
-
padding-left: 0px;
|
332 |
-
padding-right: 29px;
|
333 |
-
}
|
334 |
-
|
335 |
-
ul.menu-tree a.expand {
|
336 |
-
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAVCAMAAABMmV/8AAAAHlBMVEVmZmZmZmZgYGBmZmZmZmZjY2NmZmYAAABhYWFmZmaQeZ5ZAAAACHRSTlN4G+kGS7kkAGTyVF8AAABDSURBVHjanYs5DsBACAO5wf//cFiyEqkzBYxkm3LgHFGqEROgJRz4ykZb3vnwV7jQFFPSkX6pAoiejgH2lt3vKqLPA52IBF3mIq5eAAAAAElFTkSuQmCC) no-repeat 100% 3px;
|
337 |
-
padding-left: 14px;
|
338 |
-
}
|
339 |
-
|
340 |
-
ul.menu-tree a.expand.open {
|
341 |
-
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAVCAYAAAB7R6/OAAAAuElEQVQoFdVRsQ0CMRC7oBcVG9B+8RKjsEfSUsIA6Dv67AGjIFHQ/gZUNMGW4igBnh5LVnyOlSixSylZCGFtZhPYIMZoi+zcsO7BZZPAoMAKegSv4BYsUEBGD3HOpC4nUH9F9+beMe/Ai3xd8YBxADf1JkM6YYD+eCYDjv/wC7piNvMXAee9Z9Vsk4XV4OcNfAU/6FjvZE1v0jNPGNiDQE2vtPmEZkkCNb3SBTUbVItamwBD9Smc7QXZGiKWBjqp9wAAAABJRU5ErkJggg==) no-repeat 100% -11px;
|
342 |
-
}
|
343 |
-
|
344 |
-
/* @end */
|
345 |
-
|
346 |
-
/* @group Icons */
|
347 |
-
|
348 |
-
li.custom-icon {
|
349 |
-
float: right;
|
350 |
-
}
|
351 |
-
|
352 |
-
.custom-icon img {
|
353 |
-
margin-right: 0px;
|
354 |
-
float: right;
|
355 |
-
margin-left: 10px;
|
356 |
-
}
|
357 |
-
|
358 |
-
a.delete-custom-icon {
|
359 |
-
left: auto;
|
360 |
-
right: -8px;
|
361 |
-
}
|
362 |
-
|
363 |
-
ul.manage-sets li img {
|
364 |
-
margin-right: 0px;
|
365 |
-
float: right;
|
366 |
-
margin-left: 10px;
|
367 |
-
}
|
368 |
-
|
369 |
-
ul.manage-sets .installed {
|
370 |
-
right: auto;
|
371 |
-
padding-left: 18px;
|
372 |
-
left: 8px;
|
373 |
-
}
|
374 |
-
|
375 |
-
ul.manage-sets button {
|
376 |
-
right: auto;
|
377 |
-
left: 0;
|
378 |
-
}
|
379 |
-
|
380 |
-
ul.manage-sets button i.blue-cloud {
|
381 |
-
padding-left: 8px;
|
382 |
-
background-position: right 0;
|
383 |
-
}
|
384 |
-
|
385 |
-
/* @end */
|
386 |
-
|
387 |
-
/* @group Theme & Add-on Browser */
|
388 |
-
|
389 |
-
.cloud-browser i.icon-cloud-download {
|
390 |
-
margin-right: 0;
|
391 |
-
margin-left: 5px;
|
392 |
-
}
|
393 |
-
|
394 |
-
.cloud-browser li.cloud:before, .cloud-browser li.active:before {
|
395 |
-
left: 22px;
|
396 |
-
}
|
397 |
-
|
398 |
-
.cloud-browser > li {
|
399 |
-
text-align: right;
|
400 |
-
}
|
401 |
-
|
402 |
-
.cloud-browser .item-information .upgrade {
|
403 |
-
width: 197px;
|
404 |
-
margin-left: -2px;
|
405 |
-
margin-top: 3px;
|
406 |
-
}
|
407 |
-
|
408 |
-
/* @end */
|
409 |
-
|
410 |
-
/* @group License */
|
411 |
-
|
412 |
-
#wptouch-settings-area #license-area-left {
|
413 |
-
float: right;
|
414 |
-
text-align: left;
|
415 |
-
}
|
416 |
-
|
417 |
-
#wptouch-settings-area #license-area-right {
|
418 |
-
padding-left: 0px;
|
419 |
-
border-left: 0px;
|
420 |
-
margin-left: 0px;
|
421 |
-
float: right;
|
422 |
-
padding-right: 20px;
|
423 |
-
border-right: 1px solid #d0dfe9;
|
424 |
-
margin-right: 25px;
|
425 |
-
}
|
426 |
-
|
427 |
-
/* @end */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/css/wptouch-admin-4-wizard.css
ADDED
@@ -0,0 +1,1522 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/* @override
|
2 |
+
http://wptp3.local.com/wp-content/plugins/wptouch-pro/admin/css/wptouch-admin-4-wizard.css?ver=4.0rc3
|
3 |
+
http://multisite.local.com/wordpress/wp-content/plugins/wptouch-pro/admin/css/wptouch-admin-4-wizard.css?ver=4.0rc3
|
4 |
+
http://wptp3.local.com/wp-content/plugins/wptouch-pro/admin/css/wptouch-admin-4-wizard.css?ver=4.0rc4
|
5 |
+
http://wptp3.local.com/wp-content/plugins/wptouch-pro/admin/css/wptouch-admin-4-wizard.css?ver=76e991ef18f00ccead0908dad1e8ca36
|
6 |
+
http://local.free.com/wordpress/wp-content/plugins/wptouch-pro/admin/css/wptouch-admin-4-wizard.css?ver=ef6e6bd127f2d30c8e9b0f7ab4870428
|
7 |
+
*/
|
8 |
+
|
9 |
+
/* @group Clearfix */
|
10 |
+
|
11 |
+
.wptouch-clearfix:after {
|
12 |
+
content: '.';
|
13 |
+
display: block;
|
14 |
+
clear: both;
|
15 |
+
visibility: hidden;
|
16 |
+
line-height: 0;
|
17 |
+
height: 0;
|
18 |
+
}
|
19 |
+
|
20 |
+
.wptouch-clearfix {
|
21 |
+
display: inline-block;
|
22 |
+
}
|
23 |
+
|
24 |
+
html[xmlns] .wptouch-clearfix {
|
25 |
+
display: block;
|
26 |
+
}
|
27 |
+
|
28 |
+
* html .wptouch-clearfix {
|
29 |
+
height: 1%;
|
30 |
+
}
|
31 |
+
|
32 |
+
/* @end */
|
33 |
+
|
34 |
+
/* @group Animations */
|
35 |
+
|
36 |
+
.animated {
|
37 |
+
-webkit-animation-duration: 1s;
|
38 |
+
animation-duration: 1s;
|
39 |
+
-webkit-animation-fill-mode: both;
|
40 |
+
animation-fill-mode: both;
|
41 |
+
}
|
42 |
+
|
43 |
+
.animated.infinite {
|
44 |
+
-webkit-animation-iteration-count: infinite;
|
45 |
+
animation-iteration-count: infinite;
|
46 |
+
}
|
47 |
+
|
48 |
+
@-webkit-keyframes flipInX {
|
49 |
+
from {
|
50 |
+
-webkit-transform: perspective(400px) rotate3d(1, 0, 0, 90deg);
|
51 |
+
transform: perspective(400px) rotate3d(1, 0, 0, 90deg);
|
52 |
+
-webkit-animation-timing-function: ease-in;
|
53 |
+
animation-timing-function: ease-in;
|
54 |
+
opacity: 0;
|
55 |
+
}
|
56 |
+
|
57 |
+
40% {
|
58 |
+
-webkit-transform: perspective(400px) rotate3d(1, 0, 0, -20deg);
|
59 |
+
transform: perspective(400px) rotate3d(1, 0, 0, -20deg);
|
60 |
+
-webkit-animation-timing-function: ease-in;
|
61 |
+
animation-timing-function: ease-in;
|
62 |
+
}
|
63 |
+
|
64 |
+
60% {
|
65 |
+
-webkit-transform: perspective(400px) rotate3d(1, 0, 0, 10deg);
|
66 |
+
transform: perspective(400px) rotate3d(1, 0, 0, 10deg);
|
67 |
+
opacity: 1;
|
68 |
+
}
|
69 |
+
|
70 |
+
80% {
|
71 |
+
-webkit-transform: perspective(400px) rotate3d(1, 0, 0, -5deg);
|
72 |
+
transform: perspective(400px) rotate3d(1, 0, 0, -5deg);
|
73 |
+
}
|
74 |
+
|
75 |
+
to {
|
76 |
+
-webkit-transform: perspective(400px);
|
77 |
+
transform: perspective(400px);
|
78 |
+
}
|
79 |
+
}
|
80 |
+
|
81 |
+
@keyframes flipInX {
|
82 |
+
from {
|
83 |
+
-webkit-transform: perspective(400px) rotate3d(1, 0, 0, 90deg);
|
84 |
+
transform: perspective(400px) rotate3d(1, 0, 0, 90deg);
|
85 |
+
-webkit-animation-timing-function: ease-in;
|
86 |
+
animation-timing-function: ease-in;
|
87 |
+
opacity: 0;
|
88 |
+
}
|
89 |
+
|
90 |
+
40% {
|
91 |
+
-webkit-transform: perspective(400px) rotate3d(1, 0, 0, -20deg);
|
92 |
+
transform: perspective(400px) rotate3d(1, 0, 0, -20deg);
|
93 |
+
-webkit-animation-timing-function: ease-in;
|
94 |
+
animation-timing-function: ease-in;
|
95 |
+
}
|
96 |
+
|
97 |
+
60% {
|
98 |
+
-webkit-transform: perspective(400px) rotate3d(1, 0, 0, 10deg);
|
99 |
+
transform: perspective(400px) rotate3d(1, 0, 0, 10deg);
|
100 |
+
opacity: 1;
|
101 |
+
}
|
102 |
+
|
103 |
+
80% {
|
104 |
+
-webkit-transform: perspective(400px) rotate3d(1, 0, 0, -5deg);
|
105 |
+
transform: perspective(400px) rotate3d(1, 0, 0, -5deg);
|
106 |
+
}
|
107 |
+
|
108 |
+
to {
|
109 |
+
-webkit-transform: perspective(400px);
|
110 |
+
transform: perspective(400px);
|
111 |
+
}
|
112 |
+
}
|
113 |
+
|
114 |
+
.flipInX {
|
115 |
+
opacity: 1;
|
116 |
+
-webkit-backface-visibility: visible !important;
|
117 |
+
backface-visibility: visible !important;
|
118 |
+
-webkit-animation-name: flipInX;
|
119 |
+
animation-name: flipInX;
|
120 |
+
}
|
121 |
+
|
122 |
+
@-webkit-keyframes zoomOut {
|
123 |
+
from {
|
124 |
+
opacity: 1;
|
125 |
+
}
|
126 |
+
|
127 |
+
50% {
|
128 |
+
opacity: 0;
|
129 |
+
-webkit-transform: scale3d(.3, .3, .3);
|
130 |
+
transform: scale3d(.3, .3, .3);
|
131 |
+
}
|
132 |
+
|
133 |
+
to {
|
134 |
+
opacity: 0;
|
135 |
+
}
|
136 |
+
}
|
137 |
+
|
138 |
+
@keyframes zoomOut {
|
139 |
+
from {
|
140 |
+
opacity: 1;
|
141 |
+
}
|
142 |
+
|
143 |
+
50% {
|
144 |
+
opacity: 0;
|
145 |
+
-webkit-transform: scale3d(.3, .3, .3);
|
146 |
+
transform: scale3d(.3, .3, .3);
|
147 |
+
}
|
148 |
+
|
149 |
+
to {
|
150 |
+
opacity: 0;
|
151 |
+
}
|
152 |
+
}
|
153 |
+
|
154 |
+
.zoomOut {
|
155 |
+
-webkit-animation-name: zoomOut;
|
156 |
+
animation-name: zoomOut;
|
157 |
+
}
|
158 |
+
|
159 |
+
@-webkit-keyframes pulse {
|
160 |
+
from {
|
161 |
+
-webkit-transform: scale3d(1, 1, 1);
|
162 |
+
transform: scale3d(1, 1, 1);
|
163 |
+
}
|
164 |
+
|
165 |
+
50% {
|
166 |
+
-webkit-transform: scale3d(1.05, 1.05, 1.05);
|
167 |
+
transform: scale3d(1.05, 1.05, 1.05);
|
168 |
+
}
|
169 |
+
|
170 |
+
to {
|
171 |
+
-webkit-transform: scale3d(1, 1, 1);
|
172 |
+
transform: scale3d(1, 1, 1);
|
173 |
+
}
|
174 |
+
}
|
175 |
+
|
176 |
+
@keyframes pulse {
|
177 |
+
from {
|
178 |
+
-webkit-transform: scale3d(1, 1, 1);
|
179 |
+
transform: scale3d(1, 1, 1);
|
180 |
+
}
|
181 |
+
|
182 |
+
50% {
|
183 |
+
-webkit-transform: scale3d(1.05, 1.05, 1.05);
|
184 |
+
transform: scale3d(1.05, 1.05, 1.05);
|
185 |
+
}
|
186 |
+
|
187 |
+
to {
|
188 |
+
-webkit-transform: scale3d(1, 1, 1);
|
189 |
+
transform: scale3d(1, 1, 1);
|
190 |
+
}
|
191 |
+
}
|
192 |
+
|
193 |
+
.pulse {
|
194 |
+
-webkit-animation-name: pulse;
|
195 |
+
animation-name: pulse;
|
196 |
+
}
|
197 |
+
|
198 |
+
@-webkit-keyframes heartbeat {
|
199 |
+
from {
|
200 |
+
-webkit-transform: scale(1, 1);
|
201 |
+
transform: scale(1, 1);
|
202 |
+
}
|
203 |
+
94% {
|
204 |
+
-webkit-transform: scale(1.2, 1.2);
|
205 |
+
transform: scale(1.2, 1.2);
|
206 |
+
}
|
207 |
+
96% {
|
208 |
+
-webkit-transform: scale(1, 1);
|
209 |
+
transform: scale(1, 1);
|
210 |
+
}
|
211 |
+
98% {
|
212 |
+
-webkit-transform: scale(1.1, 1.1);
|
213 |
+
transform: scale(1.1, 1.1);
|
214 |
+
}
|
215 |
+
to {
|
216 |
+
-webkit-transform: scale(1, 1);
|
217 |
+
transform: scale(1, 1);
|
218 |
+
}
|
219 |
+
}
|
220 |
+
|
221 |
+
@keyframes heartbeat {
|
222 |
+
from {
|
223 |
+
-webkit-transform: scale(1, 1);
|
224 |
+
transform: scale(1, 1);
|
225 |
+
}
|
226 |
+
94% {
|
227 |
+
-webkit-transform: scale(1.2, 1.2);
|
228 |
+
transform: scale(1.2, 1.2);
|
229 |
+
}
|
230 |
+
96% {
|
231 |
+
-webkit-transform: scale(1, 1);
|
232 |
+
transform: scale(1, 1);
|
233 |
+
}
|
234 |
+
98% {
|
235 |
+
-webkit-transform: scale(1.1, 1.1);
|
236 |
+
transform: scale(1.1, 1.1);
|
237 |
+
}
|
238 |
+
to {
|
239 |
+
-webkit-transform: scale(1, 1);
|
240 |
+
transform: scale(1, 1);
|
241 |
+
}
|
242 |
+
}
|
243 |
+
|
244 |
+
.heartbeat {
|
245 |
+
-webkit-transform-origin: center;
|
246 |
+
-webkit-animation-name: heartbeat;
|
247 |
+
transform-origin: center;
|
248 |
+
animation-name: heartbeat;
|
249 |
+
-webkit-animation-fill-mode: forwards;
|
250 |
+
animation-fill-mode: forwards;
|
251 |
+
-webkit-animation-duration: 1s;
|
252 |
+
animation-duration: 1s;
|
253 |
+
}
|
254 |
+
|
255 |
+
|
256 |
+
/* @end */
|
257 |
+
|
258 |
+
/* @group WordPress Mods */
|
259 |
+
|
260 |
+
#wpbody-content > .update-nag, #wpbody-content > .error {
|
261 |
+
display: block;
|
262 |
+
margin: 0 0 0 -20px;
|
263 |
+
z-index: 1000;
|
264 |
+
}
|
265 |
+
|
266 |
+
#wpbody-content > .update-nag p, #wpbody-content > .error p {
|
267 |
+
margin: 0;
|
268 |
+
padding: 10px;
|
269 |
+
}
|
270 |
+
|
271 |
+
#wpbody-content .error a.button {
|
272 |
+
font-weight: 300;
|
273 |
+
border: none;
|
274 |
+
color: #fff;
|
275 |
+
-webkit-box-shadow: none;
|
276 |
+
-moz-box-shadow: none;
|
277 |
+
box-shadow: none;
|
278 |
+
font: 12px lato, 'open sans', sans-serif;
|
279 |
+
height: auto;
|
280 |
+
padding: 4px 16px;
|
281 |
+
float: right;
|
282 |
+
position: relative;
|
283 |
+
top: -2px;
|
284 |
+
background-color: #eb5768;
|
285 |
+
}
|
286 |
+
|
287 |
+
/* Reset WordPress here for anchors */
|
288 |
+
|
289 |
+
a:focus {
|
290 |
+
-webkit-box-shadow: none;
|
291 |
+
box-shadow: none;
|
292 |
+
}
|
293 |
+
|
294 |
+
#wpwrap {
|
295 |
+
background: url(../images/grid_square.png) repeat left top;
|
296 |
+
}
|
297 |
+
|
298 |
+
#wpcontent {
|
299 |
+
-webkit-font-smoothing: antialiased;
|
300 |
+
font-family: 'Lato', 'Open Sans', sans-serif;
|
301 |
+
padding-bottom: 20px;
|
302 |
+
}
|
303 |
+
|
304 |
+
#wpbody-content > form {
|
305 |
+
width: 97%;
|
306 |
+
max-width: 900px;
|
307 |
+
margin: auto;
|
308 |
+
}
|
309 |
+
|
310 |
+
ul#adminmenu a.wp-has-current-submenu:after, ul#adminmenu>li.current>a.current:after {
|
311 |
+
border-right-color: #454C56;
|
312 |
+
}
|
313 |
+
|
314 |
+
#wpfooter {
|
315 |
+
position: relative !important;
|
316 |
+
background-color: #23282D;
|
317 |
+
z-index: 3;
|
318 |
+
}
|
319 |
+
|
320 |
+
/* @end */
|
321 |
+
|
322 |
+
/* @group Wizard General */
|
323 |
+
|
324 |
+
a {
|
325 |
+
color: #42b0d9;
|
326 |
+
}
|
327 |
+
|
328 |
+
.toplevel_page_wptouch-admin-wizard #wpfooter {
|
329 |
+
position: fixed !important;
|
330 |
+
}
|
331 |
+
|
332 |
+
.toplevel_page_wptouch-admin-wizard #wptouch-settings-area {
|
333 |
+
background-color: #fff;
|
334 |
+
margin-top: 4%;
|
335 |
+
border-radius: 3px;
|
336 |
+
overflow: hidden;
|
337 |
+
}
|
338 |
+
|
339 |
+
/* FOUC Block */
|
340 |
+
#wptouch-wizard-container {
|
341 |
+
visibility: hidden;
|
342 |
+
height: 620px;
|
343 |
+
direction: ltr;
|
344 |
+
}
|
345 |
+
|
346 |
+
#wptouch-settings-content {
|
347 |
+
border-style: none;
|
348 |
+
width: auto;
|
349 |
+
margin: auto;
|
350 |
+
position: relative;
|
351 |
+
}
|
352 |
+
|
353 |
+
.wizard h2 {
|
354 |
+
font-family: 'lato', sans-serif !important;
|
355 |
+
font-weight: 300;
|
356 |
+
font-size: 38px;
|
357 |
+
line-height: 44px;
|
358 |
+
letter-spacing: -1px;
|
359 |
+
|
360 |
+
margin-top: 25px;
|
361 |
+
margin-bottom: 30px;
|
362 |
+
}
|
363 |
+
|
364 |
+
.wizard .body > p, .wizard .body > span p {
|
365 |
+
font-size: 15px;
|
366 |
+
width: 70%;
|
367 |
+
margin-left: auto;
|
368 |
+
margin-right: auto;
|
369 |
+
}
|
370 |
+
|
371 |
+
.body img {
|
372 |
+
margin-top: 10px;
|
373 |
+
margin-bottom: 24px;
|
374 |
+
}
|
375 |
+
|
376 |
+
/* @end */
|
377 |
+
|
378 |
+
/* @group Steps */
|
379 |
+
|
380 |
+
/*
|
381 |
+
Common
|
382 |
+
*/
|
383 |
+
|
384 |
+
.wizard,
|
385 |
+
.tabcontrol {
|
386 |
+
display: block;
|
387 |
+
width: 100%;
|
388 |
+
overflow: hidden;
|
389 |
+
}
|
390 |
+
|
391 |
+
.wizard a,
|
392 |
+
.tabcontrol a {
|
393 |
+
outline: 0;
|
394 |
+
}
|
395 |
+
|
396 |
+
.wizard > ul,
|
397 |
+
.tabcontrol > ul {
|
398 |
+
list-style: none !important;
|
399 |
+
padding: 0;
|
400 |
+
margin: 0;
|
401 |
+
}
|
402 |
+
|
403 |
+
.wizard > ul > li,
|
404 |
+
.tabcontrol > ul > li {
|
405 |
+
display: block;
|
406 |
+
padding: 0;
|
407 |
+
}
|
408 |
+
|
409 |
+
/* Accessibility */
|
410 |
+
|
411 |
+
.wizard > .content > .title,
|
412 |
+
.tabcontrol > .content > .title {
|
413 |
+
position: absolute;
|
414 |
+
left: -999em;
|
415 |
+
}
|
416 |
+
|
417 |
+
/* Wizard */
|
418 |
+
|
419 |
+
.wizard > .steps {
|
420 |
+
position: absolute;
|
421 |
+
display: block;
|
422 |
+
width: 50%;
|
423 |
+
margin-left: auto;
|
424 |
+
margin-right: auto;
|
425 |
+
left: 0;
|
426 |
+
right: 0;
|
427 |
+
bottom: 0;
|
428 |
+
text-align: center;
|
429 |
+
overflow: hidden;
|
430 |
+
z-index: 1;
|
431 |
+
}
|
432 |
+
|
433 |
+
.wizard > .steps > ul > li {
|
434 |
+
display: inline-block;
|
435 |
+
width: auto;
|
436 |
+
height: auto;
|
437 |
+
}
|
438 |
+
|
439 |
+
.wizard > .steps a,
|
440 |
+
.wizard > .steps a:hover,
|
441 |
+
.wizard > .steps a:active {
|
442 |
+
display: inline-block;
|
443 |
+
width: 7px;
|
444 |
+
text-decoration: none;
|
445 |
+
-webkit-border-radius: 5px;
|
446 |
+
-moz-border-radius: 5px;
|
447 |
+
border-radius: 5px;
|
448 |
+
background-color: #abb3bd;
|
449 |
+
color: #abb3bd;
|
450 |
+
height: 7px;
|
451 |
+
text-indent: -1000px;
|
452 |
+
border-radius: 20px;
|
453 |
+
margin: 4px;
|
454 |
+
border: 2px solid #fff;
|
455 |
+
-webkit-transition-duration: .2s;
|
456 |
+
transition-duration: .2s;
|
457 |
+
}
|
458 |
+
|
459 |
+
.wizard > .steps li.error a {
|
460 |
+
border-color: #eb5768;
|
461 |
+
background-color: #eb5768;
|
462 |
+
}
|
463 |
+
|
464 |
+
.wizard > .steps .disabled a,
|
465 |
+
.wizard > .steps .disabled a:hover,
|
466 |
+
.wizard > .steps .disabled a:active {
|
467 |
+
color: #aaa;
|
468 |
+
cursor: default;
|
469 |
+
}
|
470 |
+
|
471 |
+
.wizard > .steps .current a,
|
472 |
+
.wizard > .steps .current a:hover,
|
473 |
+
.wizard > .steps .current a:active {
|
474 |
+
background: #fff;
|
475 |
+
color: #fff;
|
476 |
+
cursor: default;
|
477 |
+
border: 2px solid #55c2e8;
|
478 |
+
width: 6px;
|
479 |
+
height: 6px;
|
480 |
+
position: relative;
|
481 |
+
top: 1px;
|
482 |
+
}
|
483 |
+
|
484 |
+
.wizard > .steps .done a,
|
485 |
+
.wizard > .steps .done a:hover,
|
486 |
+
.wizard > .steps .done a:active {
|
487 |
+
color: #aaa;
|
488 |
+
}
|
489 |
+
|
490 |
+
.wizard > .content {
|
491 |
+
display: block;
|
492 |
+
min-height: 480px;
|
493 |
+
position: relative;
|
494 |
+
width: auto;
|
495 |
+
-webkit-border-radius: 5px;
|
496 |
+
-moz-border-radius: 5px;
|
497 |
+
border-radius: 5px;
|
498 |
+
text-align: center;
|
499 |
+
}
|
500 |
+
|
501 |
+
.wizard > .content > .body {
|
502 |
+
float: left;
|
503 |
+
position: absolute;
|
504 |
+
width: 95%;
|
505 |
+
height: 100%;
|
506 |
+
padding: 2.5%;
|
507 |
+
}
|
508 |
+
|
509 |
+
.wizard > .content > .body input.error {
|
510 |
+
background: rgb(251, 227, 228);
|
511 |
+
border: 1px solid #eb5768;
|
512 |
+
color: #8a1f11;
|
513 |
+
}
|
514 |
+
|
515 |
+
.wizard > .content > .body label {
|
516 |
+
display: inline-block;
|
517 |
+
margin-bottom: 0.5em;
|
518 |
+
}
|
519 |
+
|
520 |
+
.wizard > .content > .body label.error {
|
521 |
+
color: #8a1f11;
|
522 |
+
display: inline-block;
|
523 |
+
margin-left: 1.5em;
|
524 |
+
}
|
525 |
+
|
526 |
+
.wizard > .actions {
|
527 |
+
position: relative;
|
528 |
+
display: block;
|
529 |
+
width: 30%;
|
530 |
+
margin-right: auto;
|
531 |
+
margin-left: auto;
|
532 |
+
margin-top: 30px;
|
533 |
+
}
|
534 |
+
|
535 |
+
.wizard > .actions > ul {
|
536 |
+
display: inline-blosck;
|
537 |
+
text-align: center;
|
538 |
+
}
|
539 |
+
|
540 |
+
.wizard > .actions > ul > li {
|
541 |
+
margin: 0 0.5em;
|
542 |
+
display: inline-block;
|
543 |
+
}
|
544 |
+
|
545 |
+
.wizard > .actions a,
|
546 |
+
.wizard > .actions a:hover,
|
547 |
+
.wizard > .actions a:active {
|
548 |
+
color: #abb3bd;
|
549 |
+
display: block;
|
550 |
+
text-decoration: none;
|
551 |
+
-webkit-border-radius: 5px;
|
552 |
+
-moz-border-radius: 5px;
|
553 |
+
border-radius: 5px;
|
554 |
+
background-color: #fff;
|
555 |
+
border: 1px solid #abb3bd;
|
556 |
+
border-radius: 100px;
|
557 |
+
font-size: 140%;
|
558 |
+
width: 40px;
|
559 |
+
height: 40px;
|
560 |
+
vertical-align: middle;
|
561 |
+
line-height: 215%;
|
562 |
+
}
|
563 |
+
|
564 |
+
.wizard > .actions .disabled a,
|
565 |
+
.wizard > .actions .disabled a:hover,
|
566 |
+
.wizard > .actions .disabled a:active {
|
567 |
+
color: #e7eaed;
|
568 |
+
border-color: #e7eaed;
|
569 |
+
}
|
570 |
+
|
571 |
+
.wizard > .actions a[href="#previous"]:last-child {
|
572 |
+
/* display: none; */
|
573 |
+
}
|
574 |
+
|
575 |
+
.wizard > .actions a[href="#finish"] {
|
576 |
+
display: none;
|
577 |
+
}
|
578 |
+
|
579 |
+
/* @end */
|
580 |
+
|
581 |
+
/* @group Checkbox Toggles */
|
582 |
+
|
583 |
+
.checkbox-wrap {
|
584 |
+
position: relative;
|
585 |
+
}
|
586 |
+
|
587 |
+
input.checkbox {
|
588 |
+
position: absolute;
|
589 |
+
margin-left: -9999px;
|
590 |
+
visibility: hidden;
|
591 |
+
width: auto;
|
592 |
+
}
|
593 |
+
|
594 |
+
input.checkbox + label {
|
595 |
+
display: block;
|
596 |
+
position: absolute;
|
597 |
+
cursor: pointer;
|
598 |
+
outline: none;
|
599 |
+
user-select: none;
|
600 |
+
-webkit-user-select: none;
|
601 |
+
right: 0;
|
602 |
+
top: 50%;
|
603 |
+
margin-top: -10px;
|
604 |
+
padding: 2px;
|
605 |
+
width: 40px;
|
606 |
+
height: 16px;
|
607 |
+
background-color: #eb5768;
|
608 |
+
border-radius: 16px;
|
609 |
+
transition: background 0.2s;
|
610 |
+
}
|
611 |
+
|
612 |
+
input.checkbox + label:before {
|
613 |
+
top: 2px;
|
614 |
+
left: 2px;
|
615 |
+
bottom: 2px;
|
616 |
+
right: 2px;
|
617 |
+
border-radius: 24px;
|
618 |
+
transition: background 0.2s;
|
619 |
+
}
|
620 |
+
|
621 |
+
input.checkbox + label:after {
|
622 |
+
top: 2px;
|
623 |
+
left: 2px;
|
624 |
+
bottom: 2px;
|
625 |
+
width: 16px;
|
626 |
+
background-color: #fff;
|
627 |
+
border-radius: 20px;
|
628 |
+
transition: margin 0.2s, background 0.2s;
|
629 |
+
}
|
630 |
+
|
631 |
+
input.checkbox + label:before,
|
632 |
+
input.checkbox + label:after {
|
633 |
+
display: block;
|
634 |
+
position: absolute;
|
635 |
+
content: '';
|
636 |
+
}
|
637 |
+
|
638 |
+
input.checkbox:checked + label {
|
639 |
+
background-color: #55c2e8;
|
640 |
+
}
|
641 |
+
|
642 |
+
input.checkbox:checked + label:after {
|
643 |
+
margin-left: 24px;
|
644 |
+
background-color: #fff;
|
645 |
+
}
|
646 |
+
|
647 |
+
input.checkbox:disabled + label {
|
648 |
+
background-color: #e7eaed;
|
649 |
+
}
|
650 |
+
|
651 |
+
input.checkbox:disabled + label:after {
|
652 |
+
margin-left: 0px;
|
653 |
+
background-color: #fff;
|
654 |
+
}
|
655 |
+
|
656 |
+
/* @end */
|
657 |
+
|
658 |
+
/* @group Selects */
|
659 |
+
|
660 |
+
#wptouch-settings-area select {
|
661 |
+
visibility: hidden;
|
662 |
+
width: 250px;
|
663 |
+
}
|
664 |
+
|
665 |
+
.select2-container {
|
666 |
+
box-sizing: border-box;
|
667 |
+
display: inline-block;
|
668 |
+
margin: 0;
|
669 |
+
position: relative;
|
670 |
+
vertical-align: middle;
|
671 |
+
}
|
672 |
+
|
673 |
+
.select2-container .select2-selection--single {
|
674 |
+
box-sizing: border-box;
|
675 |
+
cursor: pointer;
|
676 |
+
display: block;
|
677 |
+
height: 36px;
|
678 |
+
user-select: none;
|
679 |
+
-webkit-user-select: none;
|
680 |
+
outline: none;
|
681 |
+
}
|
682 |
+
|
683 |
+
.select2-container .select2-selection--single .select2-selection__rendered {
|
684 |
+
display: block;
|
685 |
+
overflow: hidden;
|
686 |
+
text-overflow: ellipsis;
|
687 |
+
white-space: nowrap;
|
688 |
+
padding-top: 4px;
|
689 |
+
padding-bottom: 4px;
|
690 |
+
padding-left: 15px;
|
691 |
+
}
|
692 |
+
|
693 |
+
.select2-container[dir="rtl"] .select2-selection--single .select2-selection__rendered {
|
694 |
+
padding-left: 15px;
|
695 |
+
padding-bottom: 4px;
|
696 |
+
padding-top: 4px;
|
697 |
+
}
|
698 |
+
|
699 |
+
.select2-container .select2-selection--multiple {
|
700 |
+
box-sizing: border-box;
|
701 |
+
cursor: pointer;
|
702 |
+
display: block;
|
703 |
+
min-height: 32px;
|
704 |
+
user-select: none;
|
705 |
+
-webkit-user-select: none;
|
706 |
+
}
|
707 |
+
|
708 |
+
.select2-container .select2-selection--multiple .select2-selection__rendered {
|
709 |
+
display: inline-block;
|
710 |
+
overflow: hidden;
|
711 |
+
padding-left: 8px;
|
712 |
+
text-overflow: ellipsis;
|
713 |
+
white-space: nowrap;
|
714 |
+
}
|
715 |
+
|
716 |
+
.select2-container .select2-search--inline {
|
717 |
+
float: left;
|
718 |
+
}
|
719 |
+
|
720 |
+
.select2-container .select2-search--inline .select2-search__field {
|
721 |
+
box-sizing: border-box;
|
722 |
+
border: none;
|
723 |
+
font-size: 100%;
|
724 |
+
margin-top: 5px;
|
725 |
+
}
|
726 |
+
|
727 |
+
.select2-container .select2-search--inline .select2-search__field::-webkit-search-cancel-button {
|
728 |
+
-webkit-appearance: none;
|
729 |
+
}
|
730 |
+
|
731 |
+
.select2-dropdown {
|
732 |
+
border: 1px solid #e7eaed;
|
733 |
+
border-radius: 4px;
|
734 |
+
box-sizing: border-box;
|
735 |
+
display: block;
|
736 |
+
position: absolute;
|
737 |
+
left: -100000px;
|
738 |
+
width: 100%;
|
739 |
+
z-index: 1051;
|
740 |
+
background-color: #e7eaed;
|
741 |
+
}
|
742 |
+
|
743 |
+
.select2-results {
|
744 |
+
display: block;
|
745 |
+
}
|
746 |
+
|
747 |
+
.select2-results__options {
|
748 |
+
list-style: none;
|
749 |
+
margin: 0;
|
750 |
+
padding: 0;
|
751 |
+
}
|
752 |
+
|
753 |
+
.select2-results__option {
|
754 |
+
padding: 10px;
|
755 |
+
user-select: none;
|
756 |
+
-webkit-user-select: none;
|
757 |
+
margin: 0;
|
758 |
+
line-height: 130%;
|
759 |
+
}
|
760 |
+
|
761 |
+
.select2-results__option[aria-selected] {
|
762 |
+
cursor: pointer;
|
763 |
+
}
|
764 |
+
|
765 |
+
.select2-container--open .select2-dropdown {
|
766 |
+
left: 0;
|
767 |
+
}
|
768 |
+
|
769 |
+
.select2-search--dropdown {
|
770 |
+
display: block;
|
771 |
+
padding: 4px;
|
772 |
+
}
|
773 |
+
|
774 |
+
.select2-search--dropdown .select2-search__field {
|
775 |
+
padding: 4px;
|
776 |
+
width: 100%;
|
777 |
+
box-sizing: border-box;
|
778 |
+
}
|
779 |
+
|
780 |
+
.select2-search--dropdown .select2-search__field::-webkit-search-cancel-button {
|
781 |
+
-webkit-appearance: none;
|
782 |
+
}
|
783 |
+
|
784 |
+
.select2-search--dropdown.select2-search--hide {
|
785 |
+
display: none;
|
786 |
+
}
|
787 |
+
|
788 |
+
.select2-close-mask {
|
789 |
+
border: 0;
|
790 |
+
margin: 0;
|
791 |
+
padding: 0;
|
792 |
+
display: block;
|
793 |
+
position: fixed;
|
794 |
+
left: 0;
|
795 |
+
top: 0;
|
796 |
+
min-height: 100%;
|
797 |
+
min-width: 100%;
|
798 |
+
height: auto;
|
799 |
+
width: auto;
|
800 |
+
opacity: 0;
|
801 |
+
z-index: 99;
|
802 |
+
background-color: #fff;
|
803 |
+
filter: alpha(opacity=0);
|
804 |
+
}
|
805 |
+
|
806 |
+
.select2-hidden-accessible {
|
807 |
+
border: 0 !important;
|
808 |
+
clip: rect(0 0 0 0) !important;
|
809 |
+
height: 1px !important;
|
810 |
+
margin: -1px !important;
|
811 |
+
overflow: hidden !important;
|
812 |
+
padding: 0 !important;
|
813 |
+
position: absolute !important;
|
814 |
+
width: 1px !important;
|
815 |
+
}
|
816 |
+
|
817 |
+
.select2-container--default .select2-selection--single {
|
818 |
+
border-radius: 4px;
|
819 |
+
font-style: italic;
|
820 |
+
text-align: left;
|
821 |
+
background-color: #e7eaed;
|
822 |
+
}
|
823 |
+
|
824 |
+
.rtl .select2-container--default .select2-selection--single {
|
825 |
+
text-align: right;
|
826 |
+
padding-right: 8px;
|
827 |
+
}
|
828 |
+
|
829 |
+
.select2-container--default .select2-selection--single .select2-selection__rendered {
|
830 |
+
line-height: 28px;
|
831 |
+
}
|
832 |
+
|
833 |
+
.select2-container--default .select2-selection--single .select2-selection__clear {
|
834 |
+
cursor: pointer;
|
835 |
+
font-weight: bold;
|
836 |
+
float: right;
|
837 |
+
}
|
838 |
+
|
839 |
+
.select2-container--default .select2-selection--single .select2-selection__placeholder {
|
840 |
+
}
|
841 |
+
|
842 |
+
.select2-container--default .select2-selection--single .select2-selection__arrow {
|
843 |
+
height: 34px;
|
844 |
+
position: absolute;
|
845 |
+
top: 1px;
|
846 |
+
right: 1px;
|
847 |
+
width: 32px;
|
848 |
+
background-color: #55c2e8;
|
849 |
+
}
|
850 |
+
|
851 |
+
.select2-container--default .select2-selection--single .select2-selection__arrow b {
|
852 |
+
border-color: #888 transparent transparent transparent;
|
853 |
+
border-style: solid;
|
854 |
+
border-width: 5px 4px 0 4px;
|
855 |
+
height: 0;
|
856 |
+
left: 50%;
|
857 |
+
margin-left: -4px;
|
858 |
+
margin-top: -2px;
|
859 |
+
position: absolute;
|
860 |
+
top: 50%;
|
861 |
+
width: 0;
|
862 |
+
border-top-width: 5px;
|
863 |
+
border-top-color: #fff;
|
864 |
+
}
|
865 |
+
|
866 |
+
.select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__clear {
|
867 |
+
float: left;
|
868 |
+
}
|
869 |
+
|
870 |
+
.select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__arrow {
|
871 |
+
left: 1px;
|
872 |
+
right: auto;
|
873 |
+
}
|
874 |
+
|
875 |
+
.select2-container--default.select2-container--disabled .select2-selection--single {
|
876 |
+
background-color: #eee;
|
877 |
+
cursor: default;
|
878 |
+
}
|
879 |
+
|
880 |
+
.select2-container--default.select2-container--disabled .select2-selection--single .select2-selection__clear {
|
881 |
+
display: none;
|
882 |
+
}
|
883 |
+
|
884 |
+
.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
|
885 |
+
border-color: transparent transparent #888 transparent;
|
886 |
+
border-width: 0 4px 5px 4px;
|
887 |
+
border-bottom-color: #fff;
|
888 |
+
border-bottom-width: 5px;
|
889 |
+
}
|
890 |
+
|
891 |
+
.select2-container--default .select2-selection--multiple {
|
892 |
+
background-color: white;
|
893 |
+
border: 1px solid #e7eaed;
|
894 |
+
border-radius: 4px;
|
895 |
+
cursor: text;
|
896 |
+
}
|
897 |
+
|
898 |
+
.select2-container--default .select2-selection--multiple .select2-selection__rendered {
|
899 |
+
box-sizing: border-box;
|
900 |
+
list-style: none;
|
901 |
+
margin: 0;
|
902 |
+
padding: 0 5px;
|
903 |
+
width: 100%;
|
904 |
+
}
|
905 |
+
|
906 |
+
.select2-container--default .select2-selection--multiple .select2-selection__placeholder {
|
907 |
+
margin-top: 5px;
|
908 |
+
float: left;
|
909 |
+
color: #999;
|
910 |
+
}
|
911 |
+
|
912 |
+
.select2-container--default .select2-selection--multiple .select2-selection__clear {
|
913 |
+
cursor: pointer;
|
914 |
+
float: right;
|
915 |
+
font-weight: bold;
|
916 |
+
margin-top: 5px;
|
917 |
+
margin-right: 10px;
|
918 |
+
}
|
919 |
+
|
920 |
+
.select2-container--default .select2-selection--multiple .select2-selection__choice {
|
921 |
+
background-color: #e4e4e4;
|
922 |
+
border: 1px solid #e7eaed;
|
923 |
+
border-radius: 4px;
|
924 |
+
cursor: default;
|
925 |
+
float: left;
|
926 |
+
margin-right: 5px;
|
927 |
+
margin-top: 5px;
|
928 |
+
padding: 0 5px;
|
929 |
+
}
|
930 |
+
|
931 |
+
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
|
932 |
+
cursor: pointer;
|
933 |
+
display: inline-block;
|
934 |
+
font-weight: bold;
|
935 |
+
margin-right: 2px;
|
936 |
+
color: #999;
|
937 |
+
}
|
938 |
+
|
939 |
+
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
|
940 |
+
color: #333;
|
941 |
+
}
|
942 |
+
|
943 |
+
.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice, .select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__placeholder, .select2-container--default[dir="rtl"] .select2-selection--multiple .select2-search--inline {
|
944 |
+
float: right;
|
945 |
+
}
|
946 |
+
|
947 |
+
.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice {
|
948 |
+
margin-left: 5px;
|
949 |
+
margin-right: auto;
|
950 |
+
}
|
951 |
+
|
952 |
+
.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove {
|
953 |
+
margin-left: 2px;
|
954 |
+
margin-right: auto;
|
955 |
+
}
|
956 |
+
|
957 |
+
.select2-container--default.select2-container--focus .select2-selection--multiple {
|
958 |
+
border: solid black 1px;
|
959 |
+
outline: 0;
|
960 |
+
}
|
961 |
+
|
962 |
+
.select2-container--default.select2-container--disabled .select2-selection--multiple {
|
963 |
+
background-color: #eee;
|
964 |
+
cursor: default;
|
965 |
+
}
|
966 |
+
|
967 |
+
.select2-container--default.select2-container--disabled .select2-selection__choice__remove {
|
968 |
+
display: none;
|
969 |
+
}
|
970 |
+
|
971 |
+
.select2-container--default.select2-container--open.select2-container--above .select2-selection--single, .select2-container--default.select2-container--open.select2-container--above .select2-selection--multiple {
|
972 |
+
border-top-left-radius: 0;
|
973 |
+
border-top-right-radius: 0;
|
974 |
+
}
|
975 |
+
|
976 |
+
.select2-container--default.select2-container--open.select2-container--below .select2-selection--single, .select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple {
|
977 |
+
border-bottom-left-radius: 0;
|
978 |
+
border-bottom-right-radius: 0;
|
979 |
+
}
|
980 |
+
|
981 |
+
.select2-container--default .select2-search--dropdown .select2-search__field {
|
982 |
+
border: 1px solid #e7eaed;
|
983 |
+
}
|
984 |
+
|
985 |
+
.select2-container--default .select2-search--inline .select2-search__field {
|
986 |
+
background: transparent;
|
987 |
+
border: none;
|
988 |
+
outline: 0;
|
989 |
+
box-shadow: none;
|
990 |
+
}
|
991 |
+
|
992 |
+
.select2-container--default .select2-results > .select2-results__options {
|
993 |
+
max-height: 200px;
|
994 |
+
overflow-y: auto;
|
995 |
+
}
|
996 |
+
|
997 |
+
.select2-container--default .select2-results__option[role=group] {
|
998 |
+
padding: 0;
|
999 |
+
}
|
1000 |
+
|
1001 |
+
.select2-container--default .select2-results__option[aria-disabled=true] {
|
1002 |
+
color: #999;
|
1003 |
+
}
|
1004 |
+
|
1005 |
+
.select2-container--default .select2-results__option[aria-selected=true] {
|
1006 |
+
background-color: #ddd;
|
1007 |
+
}
|
1008 |
+
|
1009 |
+
.select2-container--default .select2-results__option .select2-results__option {
|
1010 |
+
padding-left: 1em;
|
1011 |
+
}
|
1012 |
+
|
1013 |
+
.select2-container--default .select2-results__option .select2-results__option .select2-results__group {
|
1014 |
+
padding-left: 0;
|
1015 |
+
}
|
1016 |
+
|
1017 |
+
.select2-container--default .select2-results__option .select2-results__option .select2-results__option {
|
1018 |
+
margin-left: -1em;
|
1019 |
+
padding-left: 2em;
|
1020 |
+
}
|
1021 |
+
|
1022 |
+
.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
|
1023 |
+
margin-left: -2em;
|
1024 |
+
padding-left: 3em;
|
1025 |
+
}
|
1026 |
+
|
1027 |
+
.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
|
1028 |
+
margin-left: -3em;
|
1029 |
+
padding-left: 4em;
|
1030 |
+
}
|
1031 |
+
|
1032 |
+
.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
|
1033 |
+
margin-left: -4em;
|
1034 |
+
padding-left: 5em;
|
1035 |
+
}
|
1036 |
+
|
1037 |
+
.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
|
1038 |
+
margin-left: -5em;
|
1039 |
+
padding-left: 6em;
|
1040 |
+
}
|
1041 |
+
|
1042 |
+
.select2-container--default .select2-results__option--highlighted[aria-selected] {
|
1043 |
+
background-color: #55c2e8;
|
1044 |
+
color: white;
|
1045 |
+
}
|
1046 |
+
|
1047 |
+
.select2-container--default .select2-results__group {
|
1048 |
+
cursor: default;
|
1049 |
+
display: block;
|
1050 |
+
padding: 6px;
|
1051 |
+
}
|
1052 |
+
|
1053 |
+
/* @end */
|
1054 |
+
|
1055 |
+
/* @group Language */
|
1056 |
+
|
1057 |
+
.language img {
|
1058 |
+
z-index: 1;
|
1059 |
+
position: relative;
|
1060 |
+
}
|
1061 |
+
|
1062 |
+
.language p.set-language {
|
1063 |
+
display: none;
|
1064 |
+
position: absolute;
|
1065 |
+
top: 50%;
|
1066 |
+
right: 0;
|
1067 |
+
left: 0;
|
1068 |
+
margin-top: -40px;
|
1069 |
+
z-index: 0;
|
1070 |
+
}
|
1071 |
+
|
1072 |
+
|
1073 |
+
|
1074 |
+
/* @end */
|
1075 |
+
|
1076 |
+
/* @group License */
|
1077 |
+
|
1078 |
+
#license-settings-area input[type="text"], #license-settings-area input[type="password"] {
|
1079 |
+
position: relative;
|
1080 |
+
right: auto;
|
1081 |
+
top: auto;
|
1082 |
+
font-size: 15px;
|
1083 |
+
color: #807f80;
|
1084 |
+
margin-bottom: 10px;
|
1085 |
+
padding: 6px;
|
1086 |
+
display: block;
|
1087 |
+
margin-left: auto;
|
1088 |
+
margin-right: auto;
|
1089 |
+
width: 100%;
|
1090 |
+
text-align: center;
|
1091 |
+
}
|
1092 |
+
|
1093 |
+
#license-inputs{
|
1094 |
+
width: 100%;
|
1095 |
+
}
|
1096 |
+
#license-settings-area {
|
1097 |
+
margin: 15px auto;
|
1098 |
+
width: 320px;
|
1099 |
+
}
|
1100 |
+
|
1101 |
+
.activate-license i {
|
1102 |
+
display: block;
|
1103 |
+
font-size: 275px;
|
1104 |
+
color: #a2d36e;
|
1105 |
+
}
|
1106 |
+
|
1107 |
+
.license-issue {
|
1108 |
+
color: #eb5768;
|
1109 |
+
}
|
1110 |
+
|
1111 |
+
/* @end */
|
1112 |
+
|
1113 |
+
/* @group Multisite */
|
1114 |
+
|
1115 |
+
.multisite-panel i.icon-theme-settings {
|
1116 |
+
color: #ac95eb;
|
1117 |
+
font-size: 100px;
|
1118 |
+
display: block;
|
1119 |
+
margin-top: 30px;
|
1120 |
+
margin-bottom: 30px;
|
1121 |
+
}
|
1122 |
+
|
1123 |
+
.multisite-panel .checkbox-wrap {
|
1124 |
+
margin-left: auto;
|
1125 |
+
margin-right: auto;
|
1126 |
+
width: 400px;
|
1127 |
+
text-align: left;
|
1128 |
+
border-top: 1px solid #e6e6e6;
|
1129 |
+
padding-top: 20px;
|
1130 |
+
margin-top: 15px;
|
1131 |
+
}
|
1132 |
+
|
1133 |
+
.multisite-panel .checkbox-wrap label {
|
1134 |
+
position: relative;
|
1135 |
+
float: left;
|
1136 |
+
top: 8px;
|
1137 |
+
margin-right: 10px;
|
1138 |
+
margin-left: 30px;
|
1139 |
+
}
|
1140 |
+
|
1141 |
+
|
1142 |
+
|
1143 |
+
/* @end */
|
1144 |
+
|
1145 |
+
/* @group Choose A Theme */
|
1146 |
+
|
1147 |
+
.choose-a-theme ul {
|
1148 |
+
white-space: nowrap;
|
1149 |
+
overflow-y: hidden;
|
1150 |
+
overflow-x: scroll;
|
1151 |
+
background-color: #f6f8fb;
|
1152 |
+
border: 1px solid #cdd2d9;
|
1153 |
+
padding: 8px;
|
1154 |
+
border-radius: 3px;
|
1155 |
+
margin-right: 50px;
|
1156 |
+
margin-top: 30px;
|
1157 |
+
margin-left: 50px;
|
1158 |
+
}
|
1159 |
+
|
1160 |
+
.choose-a-theme li {
|
1161 |
+
display: inline-block;
|
1162 |
+
width: 140px;
|
1163 |
+
vertical-align: top;
|
1164 |
+
margin: 0;
|
1165 |
+
padding: 0;
|
1166 |
+
border: 1px solid rgba(0,0,0,0);
|
1167 |
+
border-radius: 3px;
|
1168 |
+
cursor: pointer;
|
1169 |
+
min-height: 200px;
|
1170 |
+
}
|
1171 |
+
|
1172 |
+
.choose-a-theme li.unlicensed {
|
1173 |
+
cursor: default;
|
1174 |
+
opacity: .1;
|
1175 |
+
}
|
1176 |
+
|
1177 |
+
.choose-a-theme li.unlicensed h3:after {
|
1178 |
+
content: none;
|
1179 |
+
}
|
1180 |
+
|
1181 |
+
.choose-a-theme li.active {
|
1182 |
+
background-color: #fff;
|
1183 |
+
border-color: #e7eaed;
|
1184 |
+
}
|
1185 |
+
|
1186 |
+
.choose-a-theme li img {
|
1187 |
+
width: 112px;
|
1188 |
+
margin-bottom: 0;
|
1189 |
+
height: 112px;
|
1190 |
+
}
|
1191 |
+
|
1192 |
+
.choose-a-theme h3 {
|
1193 |
+
font-weight: 400;
|
1194 |
+
white-space: nowrap;
|
1195 |
+
width: 85%;
|
1196 |
+
overflow: hidden;
|
1197 |
+
text-overflow: ellipsis;
|
1198 |
+
font-size: 15px;
|
1199 |
+
color: #656e78;
|
1200 |
+
text-transform: uppercase;
|
1201 |
+
margin: 5px auto 0;
|
1202 |
+
padding: 0;
|
1203 |
+
}
|
1204 |
+
|
1205 |
+
.choose-a-theme .active h3:after {
|
1206 |
+
content: '\e801';
|
1207 |
+
font: 26px fontello;
|
1208 |
+
display: block;
|
1209 |
+
color: #8ec159;
|
1210 |
+
margin: 10px auto;
|
1211 |
+
}
|
1212 |
+
|
1213 |
+
.choose-a-theme input[type="radio"] {
|
1214 |
+
display: none;
|
1215 |
+
}
|
1216 |
+
|
1217 |
+
|
1218 |
+
|
1219 |
+
/* @end */
|
1220 |
+
|
1221 |
+
/* @group Activate Extensions */
|
1222 |
+
|
1223 |
+
.activate-extensions ul {
|
1224 |
+
position: relative;
|
1225 |
+
background-color: #f6f8fb;
|
1226 |
+
border: 1px solid #cdd2d9;
|
1227 |
+
padding: 10px;
|
1228 |
+
overflow-y: scroll;
|
1229 |
+
overflow-x: hidden;
|
1230 |
+
max-height: 260px;
|
1231 |
+
border-radius: 3px;
|
1232 |
+
margin-right: 50px;
|
1233 |
+
margin-top: 30px;
|
1234 |
+
margin-left: 50px;
|
1235 |
+
}
|
1236 |
+
|
1237 |
+
.activate-extensions li {
|
1238 |
+
display: block;
|
1239 |
+
text-align: left;
|
1240 |
+
position: relative;
|
1241 |
+
border-bottom: 1px solid #e7eaed;
|
1242 |
+
padding-bottom: 20px;
|
1243 |
+
padding-top: 15px;
|
1244 |
+
}
|
1245 |
+
|
1246 |
+
.activate-extensions li.unlicensed {
|
1247 |
+
opacity: .5;
|
1248 |
+
}
|
1249 |
+
|
1250 |
+
.activate-extensions li:last-child {
|
1251 |
+
border-bottom-style: none;
|
1252 |
+
}
|
1253 |
+
|
1254 |
+
.activate-extensions li .checkbox-wrap {
|
1255 |
+
position: absolute;
|
1256 |
+
top: 50%;
|
1257 |
+
right: 0;
|
1258 |
+
margin-top: -6px;
|
1259 |
+
z-index: 12;
|
1260 |
+
margin-right: 6px;
|
1261 |
+
}
|
1262 |
+
|
1263 |
+
.activate-extensions li p {
|
1264 |
+
padding: 0;
|
1265 |
+
white-space: normal;
|
1266 |
+
color: #656e78;
|
1267 |
+
font-size: 13px;
|
1268 |
+
margin: 4px 0 0;
|
1269 |
+
width: 80%;
|
1270 |
+
}
|
1271 |
+
|
1272 |
+
.activate-extensions li img {
|
1273 |
+
border: 1px solid #cdd2d9;
|
1274 |
+
border-radius: 3px;
|
1275 |
+
width: 64px;
|
1276 |
+
height: 64px;
|
1277 |
+
float: left;
|
1278 |
+
margin: 0 15px 0 0;
|
1279 |
+
}
|
1280 |
+
|
1281 |
+
.activate-extensions h3 {
|
1282 |
+
font-weight: 400;
|
1283 |
+
font-size: 18px;
|
1284 |
+
color: #656e78;
|
1285 |
+
text-transform: uppercase;
|
1286 |
+
margin: 0;
|
1287 |
+
padding-top: 6px;
|
1288 |
+
}
|
1289 |
+
|
1290 |
+
|
1291 |
+
|
1292 |
+
/* @end */
|
1293 |
+
|
1294 |
+
/* @group WPtouch Love */
|
1295 |
+
|
1296 |
+
.show-love .checkbox-wrap {
|
1297 |
+
margin-left: auto;
|
1298 |
+
margin-right: auto;
|
1299 |
+
width: 280px;
|
1300 |
+
text-align: left;
|
1301 |
+
}
|
1302 |
+
|
1303 |
+
.show-love .checkbox-wrap label {
|
1304 |
+
position: relative;
|
1305 |
+
float: left;
|
1306 |
+
top: 8px;
|
1307 |
+
margin-right: 10px;
|
1308 |
+
margin-left: 30px;
|
1309 |
+
}
|
1310 |
+
|
1311 |
+
.show-love .icon-heart {
|
1312 |
+
font-size: 240px;
|
1313 |
+
color: #eb5768;
|
1314 |
+
}
|
1315 |
+
/* @end */
|
1316 |
+
|
1317 |
+
/* @group Home & Blog */
|
1318 |
+
|
1319 |
+
.home-blog table {
|
1320 |
+
width: 100%;
|
1321 |
+
}
|
1322 |
+
|
1323 |
+
.home-blog table img {
|
1324 |
+
margin-bottom: 10px;
|
1325 |
+
}
|
1326 |
+
|
1327 |
+
.home-blog table td {
|
1328 |
+
width: 50%;
|
1329 |
+
}
|
1330 |
+
|
1331 |
+
.home-blog .select2 {
|
1332 |
+
display: block;
|
1333 |
+
margin-left: auto;
|
1334 |
+
margin-right: auto;
|
1335 |
+
}
|
1336 |
+
|
1337 |
+
.home-blog p {
|
1338 |
+
width: 60%;
|
1339 |
+
margin-left: auto;
|
1340 |
+
margin-right: auto;
|
1341 |
+
}
|
1342 |
+
|
1343 |
+
td.blog_page {
|
1344 |
+
vertical-align: top;
|
1345 |
+
}
|
1346 |
+
|
1347 |
+
|
1348 |
+
|
1349 |
+
/* @end */
|
1350 |
+
|
1351 |
+
/* @group Analytics */
|
1352 |
+
|
1353 |
+
.analytics * {
|
1354 |
+
display: block;
|
1355 |
+
margin-left: auto;
|
1356 |
+
margin-right: auto;
|
1357 |
+
}
|
1358 |
+
|
1359 |
+
.analytics i {
|
1360 |
+
color: #42b0d9;
|
1361 |
+
font-size: 200px;
|
1362 |
+
margin-bottom: 30px;
|
1363 |
+
margin-top: 30px;
|
1364 |
+
}
|
1365 |
+
|
1366 |
+
.analytics .success {
|
1367 |
+
color: #8ec159;
|
1368 |
+
}
|
1369 |
+
|
1370 |
+
.analytics .notfound {
|
1371 |
+
color: #f5bb4f;
|
1372 |
+
}
|
1373 |
+
|
1374 |
+
|
1375 |
+
/* @end */
|
1376 |
+
|
1377 |
+
/* @group Support */
|
1378 |
+
|
1379 |
+
.support td {
|
1380 |
+
width: 50%;
|
1381 |
+
vertical-align: top;
|
1382 |
+
}
|
1383 |
+
|
1384 |
+
.support img {
|
1385 |
+
width: 230px;
|
1386 |
+
border: 1px solid #e7eaed;
|
1387 |
+
}
|
1388 |
+
|
1389 |
+
.support a {
|
1390 |
+
text-decoration: none;
|
1391 |
+
font-size: 18px;
|
1392 |
+
}
|
1393 |
+
|
1394 |
+
.support p {
|
1395 |
+
width: 65%;
|
1396 |
+
margin-left: auto;
|
1397 |
+
margin-right: auto;
|
1398 |
+
}
|
1399 |
+
|
1400 |
+
|
1401 |
+
|
1402 |
+
/* @end */
|
1403 |
+
|
1404 |
+
/* @group Complete */
|
1405 |
+
|
1406 |
+
.complete table {
|
1407 |
+
width: 80%;
|
1408 |
+
margin-left: auto;
|
1409 |
+
margin-right: auto;
|
1410 |
+
}
|
1411 |
+
|
1412 |
+
.complete td {
|
1413 |
+
width: 50%;
|
1414 |
+
vertical-align: top;
|
1415 |
+
}
|
1416 |
+
|
1417 |
+
.complete i {
|
1418 |
+
font-size: 170px;
|
1419 |
+
display: block;
|
1420 |
+
margin-bottom: 40px;
|
1421 |
+
margin-top: 20px;
|
1422 |
+
}
|
1423 |
+
|
1424 |
+
.complete i.icon-theme-customizer {
|
1425 |
+
color: #42b0d9;
|
1426 |
+
}
|
1427 |
+
|
1428 |
+
.complete i.icon-theme-settings {
|
1429 |
+
color: #abb3bd;
|
1430 |
+
}
|
1431 |
+
|
1432 |
+
|
1433 |
+
|
1434 |
+
/* @end */
|
1435 |
+
|
1436 |
+
/* @group Download / Upload */
|
1437 |
+
|
1438 |
+
.download-upload ul {
|
1439 |
+
height: 165px;
|
1440 |
+
text-align: left;
|
1441 |
+
white-space: nowrap;
|
1442 |
+
overflow-x: hidden;
|
1443 |
+
overflow-y: scroll;
|
1444 |
+
background-color: #f6f8fb;
|
1445 |
+
border: 1px solid #cdd2d9;
|
1446 |
+
padding: 8px;
|
1447 |
+
border-radius: 3px;
|
1448 |
+
width: 70%;
|
1449 |
+
margin: 20px auto 15px;
|
1450 |
+
}
|
1451 |
+
|
1452 |
+
.download-upload li {
|
1453 |
+
position: relative;
|
1454 |
+
min-height: 50px;
|
1455 |
+
clear: both;
|
1456 |
+
margin: 0;
|
1457 |
+
padding: 6px 0 2px;
|
1458 |
+
border-bottom: 1px solid #e7eaed;
|
1459 |
+
}
|
1460 |
+
|
1461 |
+
.download-upload li:last-child {
|
1462 |
+
border-style: none;
|
1463 |
+
}
|
1464 |
+
|
1465 |
+
.download-upload h3 {
|
1466 |
+
font-weight: 300;
|
1467 |
+
text-transform: uppercase;
|
1468 |
+
padding: 15px 0 0 60px;
|
1469 |
+
margin: 0;
|
1470 |
+
}
|
1471 |
+
|
1472 |
+
.download-upload img {
|
1473 |
+
border: 1px solid #cdd2d9;
|
1474 |
+
width: 44px;
|
1475 |
+
height: 44px;
|
1476 |
+
float: left;
|
1477 |
+
margin: 0;
|
1478 |
+
}
|
1479 |
+
|
1480 |
+
.download-upload ul button,
|
1481 |
+
.download-upload ul span {
|
1482 |
+
position: absolute;
|
1483 |
+
right: 0;
|
1484 |
+
display: block;
|
1485 |
+
top: 15px;
|
1486 |
+
}
|
1487 |
+
.download-upload ul span {
|
1488 |
+
top: 20px;
|
1489 |
+
right: 5px;
|
1490 |
+
font-style: italic;
|
1491 |
+
}
|
1492 |
+
|
1493 |
+
.download-upload p.upload {
|
1494 |
+
width: 30%;
|
1495 |
+
text-align: left;
|
1496 |
+
border-style: solid;
|
1497 |
+
border: 1px solid #cdd2d9;
|
1498 |
+
border-radius: 3px;
|
1499 |
+
line-height: 26px;
|
1500 |
+
margin: 0 auto;
|
1501 |
+
padding: 8px;
|
1502 |
+
}
|
1503 |
+
|
1504 |
+
.download-upload p.small {
|
1505 |
+
font-size: 12px;
|
1506 |
+
padding: 0;
|
1507 |
+
margin: 6px auto 0;
|
1508 |
+
color: #656e78;
|
1509 |
+
}
|
1510 |
+
|
1511 |
+
.download-upload span {
|
1512 |
+
vertical-align: middle;
|
1513 |
+
}
|
1514 |
+
|
1515 |
+
.download-upload button.upload {
|
1516 |
+
float: right;
|
1517 |
+
}
|
1518 |
+
|
1519 |
+
|
1520 |
+
|
1521 |
+
/* @end */
|
1522 |
+
|
admin/css/wptouch-admin-4.css
ADDED
@@ -0,0 +1,2284 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/* @override
|
2 |
+
http://local.free.com/wordpress/wp-content/plugins/wptouch/admin/css/wptouch-admin-4.css?ver=07078a97d66756f213dbca3e379bf084
|
3 |
+
http://local.free.com/wordpress/wp-content/plugins/wptouch/admin/css/wptouch-admin-4.css?ver=23fb94884a48c87b2205cae4ed48d2a6
|
4 |
+
http://wptouch.local.com/wp-content/plugins/wptouch-pro/admin/css/wptouch-admin-4.css?ver=8592ce708d0f07d31806215760a95116
|
5 |
+
*/
|
6 |
+
|
7 |
+
/* @group Clearfix */
|
8 |
+
|
9 |
+
.wptouch-clearfix:after {
|
10 |
+
content: '.';
|
11 |
+
display: block;
|
12 |
+
clear: both;
|
13 |
+
visibility: hidden;
|
14 |
+
line-height: 0;
|
15 |
+
height: 0;
|
16 |
+
}
|
17 |
+
|
18 |
+
.wptouch-clearfix {
|
19 |
+
display: inline-block;
|
20 |
+
}
|
21 |
+
|
22 |
+
html[xmlns] .wptouch-clearfix {
|
23 |
+
display: block;
|
24 |
+
}
|
25 |
+
|
26 |
+
* html .wptouch-clearfix {
|
27 |
+
height: 1%;
|
28 |
+
}
|
29 |
+
|
30 |
+
/* @end */
|
31 |
+
|
32 |
+
/* @group General */
|
33 |
+
|
34 |
+
/* @group WordPress Mods */
|
35 |
+
|
36 |
+
#wpbody-content .update-nag, #wpbody-content .error {
|
37 |
+
display: block;
|
38 |
+
margin: 0 0 0 -20px;
|
39 |
+
z-index: 1000;
|
40 |
+
}
|
41 |
+
|
42 |
+
#wpbody-content .update-nag p, #wpbody-content .error p {
|
43 |
+
margin: 0;
|
44 |
+
padding: 10px;
|
45 |
+
}
|
46 |
+
|
47 |
+
#wpbody-content .error a.button {
|
48 |
+
font-weight: 300;
|
49 |
+
border: none;
|
50 |
+
color: #fff;
|
51 |
+
-webkit-box-shadow: none;
|
52 |
+
-moz-box-shadow: none;
|
53 |
+
box-shadow: none;
|
54 |
+
font: 12px lato, 'open sans', sans-serif;
|
55 |
+
height: auto;
|
56 |
+
padding: 4px 16px;
|
57 |
+
float: right;
|
58 |
+
position: relative;
|
59 |
+
top: -2px;
|
60 |
+
background-color: #eb5768;
|
61 |
+
}
|
62 |
+
|
63 |
+
/* Reset WordPress here for anchors */
|
64 |
+
|
65 |
+
a:focus {
|
66 |
+
-webkit-box-shadow: none;
|
67 |
+
box-shadow: none;
|
68 |
+
}
|
69 |
+
|
70 |
+
#wpwrap {
|
71 |
+
background: url(../images/grid_square.png) repeat left top;
|
72 |
+
}
|
73 |
+
|
74 |
+
#wpcontent {
|
75 |
+
-webkit-font-smoothing: antialiased;
|
76 |
+
font-family: 'Lato', 'Open Sans', sans-serif;
|
77 |
+
padding-bottom: 20px;
|
78 |
+
}
|
79 |
+
|
80 |
+
#wpbody-content > form {
|
81 |
+
width: 97%;
|
82 |
+
}
|
83 |
+
|
84 |
+
ul#adminmenu a.wp-has-current-submenu:after, ul#adminmenu>li.current>a.current:after {
|
85 |
+
border-right-color: #454C56;
|
86 |
+
}
|
87 |
+
|
88 |
+
#wpfooter {
|
89 |
+
position: relative !important;
|
90 |
+
background-color: #23282D;
|
91 |
+
}
|
92 |
+
|
93 |
+
/* @end */
|
94 |
+
|
95 |
+
#wptouch-settings-area {
|
96 |
+
background-color: #fbfafc;
|
97 |
+
width: 96%;
|
98 |
+
max-width: 988px;
|
99 |
+
margin-left: auto;
|
100 |
+
margin-right: auto;
|
101 |
+
border-radius: 3px;
|
102 |
+
overflow: hidden;
|
103 |
+
position: relative;
|
104 |
+
}
|
105 |
+
|
106 |
+
#wptouch-settings-content {
|
107 |
+
padding: 45px;
|
108 |
+
margin-left: 300px;
|
109 |
+
background-color: #fff;
|
110 |
+
border-left: 1px solid #e7eaed;
|
111 |
+
min-height: 650px;
|
112 |
+
}
|
113 |
+
|
114 |
+
#wptouch-settings-area a:focus,#wptouch-settings-area a:active {
|
115 |
+
outline: 0;
|
116 |
+
}
|
117 |
+
|
118 |
+
#wptouch-settings-area a {
|
119 |
+
text-decoration: none;
|
120 |
+
}
|
121 |
+
|
122 |
+
h2.logo-title {
|
123 |
+
font-size: 26px;
|
124 |
+
font-weight: 300;
|
125 |
+
color: #fff;
|
126 |
+
letter-spacing: -1px;
|
127 |
+
margin-left: auto;
|
128 |
+
width: 90%;
|
129 |
+
margin-right: auto;
|
130 |
+
max-width: 950px;
|
131 |
+
line-height: 40px;
|
132 |
+
position: relative;
|
133 |
+
}
|
134 |
+
|
135 |
+
h2.logo-title img {
|
136 |
+
height: 40px;
|
137 |
+
width: auto;
|
138 |
+
float: left;
|
139 |
+
margin-right: 10px;
|
140 |
+
}
|
141 |
+
|
142 |
+
.title-grey {
|
143 |
+
color: #abb3bd;
|
144 |
+
}
|
145 |
+
|
146 |
+
h2 input#submit {
|
147 |
+
background-color: #55c2e8;
|
148 |
+
position: absolute;
|
149 |
+
right: 0;
|
150 |
+
top: 50%;
|
151 |
+
margin-top: -10px;
|
152 |
+
-webkit-box-shadow: none;
|
153 |
+
box-shadow: none;
|
154 |
+
}
|
155 |
+
|
156 |
+
input#reset {
|
157 |
+
-webkit-box-shadow: none;
|
158 |
+
box-shadow: none;
|
159 |
+
position: absolute;
|
160 |
+
bottom: 20px;
|
161 |
+
left: 20px;
|
162 |
+
}
|
163 |
+
|
164 |
+
input#wptouch-preview-theme {
|
165 |
+
font-weight: 400;
|
166 |
+
-webkit-box-shadow: none;
|
167 |
+
box-shadow: none;
|
168 |
+
float: right;
|
169 |
+
margin-top: 10px;
|
170 |
+
}
|
171 |
+
|
172 |
+
a#preview-theme {
|
173 |
+
float: right;
|
174 |
+
}
|
175 |
+
|
176 |
+
|
177 |
+
#wptouch-settings-area .wptouch-section .new,
|
178 |
+
#wptouch-settings-area .wptouch-section .advanced,
|
179 |
+
#wptouch-settings-area .wptouch-section .pro {
|
180 |
+
color: #fff;
|
181 |
+
border-radius: 3px;
|
182 |
+
margin-left: 2px;
|
183 |
+
letter-spacing: 0;
|
184 |
+
padding: 1px 4px;
|
185 |
+
text-transform: uppercase;
|
186 |
+
vertical-align: middle;
|
187 |
+
line-height: 12px;
|
188 |
+
font-weight: bold;
|
189 |
+
font-size: 9px;
|
190 |
+
display: inline-block;
|
191 |
+
overflow: hidden;
|
192 |
+
}
|
193 |
+
|
194 |
+
#wptouch-settings-area .wptouch-section .pro a {
|
195 |
+
color: #fff;
|
196 |
+
}
|
197 |
+
|
198 |
+
#wptouch-settings-area .wptouch-section .new {
|
199 |
+
background-color: #70c400;
|
200 |
+
display: none;
|
201 |
+
}
|
202 |
+
|
203 |
+
#wptouch-settings-area .wptouch-section .advanced, #wptouch-settings-area .wptouch-section .pro {
|
204 |
+
background-color: #55c2e8;
|
205 |
+
color: white;
|
206 |
+
font-size: 11px;
|
207 |
+
text-transform: uppercase;
|
208 |
+
padding: 1px 4px;
|
209 |
+
display: none;
|
210 |
+
}
|
211 |
+
|
212 |
+
#admin-spinner {
|
213 |
+
display: inline-block;
|
214 |
+
opacity: 0;
|
215 |
+
}
|
216 |
+
|
217 |
+
.small {
|
218 |
+
font-size: 12px;
|
219 |
+
text-align: center;
|
220 |
+
}
|
221 |
+
|
222 |
+
#wptouch-settings-area .wptouch-setting.setting-hidden {
|
223 |
+
display: none;
|
224 |
+
}
|
225 |
+
|
226 |
+
/* @end */
|
227 |
+
|
228 |
+
/* @group Sections */
|
229 |
+
|
230 |
+
.wptouch-section:first-child {
|
231 |
+
margin-top: 0;
|
232 |
+
}
|
233 |
+
|
234 |
+
.wptouch-section {
|
235 |
+
margin-top: 100px;
|
236 |
+
padding-left: 0;
|
237 |
+
}
|
238 |
+
|
239 |
+
.wptouch-section h3 {
|
240 |
+
text-transform: uppercase;
|
241 |
+
font-weight: 600;
|
242 |
+
font-size: 18px;
|
243 |
+
color: #434a54;
|
244 |
+
margin: 0;
|
245 |
+
}
|
246 |
+
|
247 |
+
.wptouch-section p.description {
|
248 |
+
margin-top: 10px;
|
249 |
+
margin-bottom: -5px;
|
250 |
+
}
|
251 |
+
|
252 |
+
.wptouch-section ul.padded {
|
253 |
+
border-top: 1px solid #f6f8fb;
|
254 |
+
margin-top: 20px;
|
255 |
+
}
|
256 |
+
|
257 |
+
.wptouch-section ul.padded li {
|
258 |
+
display: block;
|
259 |
+
border-bottom: 1px solid #f6f8fb;
|
260 |
+
width: 100%;
|
261 |
+
font-size: 15px;
|
262 |
+
margin: 0;
|
263 |
+
color: #656e78;
|
264 |
+
}
|
265 |
+
|
266 |
+
.wptouch-setting {
|
267 |
+
position: relative;
|
268 |
+
padding-top: 14px;
|
269 |
+
padding-bottom: 14px;
|
270 |
+
}
|
271 |
+
|
272 |
+
/* @end */
|
273 |
+
|
274 |
+
/* @group Left Tab Menu */
|
275 |
+
|
276 |
+
#wptouch-admin-menu {
|
277 |
+
float: left;
|
278 |
+
width: 300px;
|
279 |
+
background-color: #fbfafc;
|
280 |
+
font-size: 15px;
|
281 |
+
padding-bottom: 60px;
|
282 |
+
}
|
283 |
+
|
284 |
+
#wptouch-admin-menu h2 {
|
285 |
+
color: #656e78;
|
286 |
+
text-transform: uppercase;
|
287 |
+
margin-left: 25px;
|
288 |
+
font-size: 15px;
|
289 |
+
padding: 20px 0 5px;
|
290 |
+
}
|
291 |
+
|
292 |
+
#wptouch-admin-menu ul {
|
293 |
+
background-color: #fff;
|
294 |
+
border-top: 1px solid #e7eaed;
|
295 |
+
border-bottom: 1px solid #e7eaed;
|
296 |
+
margin: 0 0 20px;
|
297 |
+
}
|
298 |
+
|
299 |
+
#wptouch-admin-menu ul li {
|
300 |
+
margin: 0;
|
301 |
+
position: relative;
|
302 |
+
}
|
303 |
+
|
304 |
+
#wptouch-admin-menu ul li:after {
|
305 |
+
content: '';
|
306 |
+
position: absolute;
|
307 |
+
bottom: 0;
|
308 |
+
height: 1px;
|
309 |
+
border-bottom: 1px solid #e7eaed;
|
310 |
+
width: 245px;
|
311 |
+
right: 0;
|
312 |
+
}
|
313 |
+
|
314 |
+
#wptouch-admin-menu ul li a {
|
315 |
+
color: #656e78;
|
316 |
+
display: block;
|
317 |
+
padding: 16px 16px 16px 25px;
|
318 |
+
position: relative;
|
319 |
+
}
|
320 |
+
|
321 |
+
#wptouch-admin-menu ul li a:before {
|
322 |
+
margin-right: 10px;
|
323 |
+
color: #abb3bd;
|
324 |
+
content: '\e80f';
|
325 |
+
position: relative;
|
326 |
+
top: 1px;
|
327 |
+
font: 20px/20px 'fontello';
|
328 |
+
padding: 1px;
|
329 |
+
}
|
330 |
+
|
331 |
+
#wptouch-admin-menu ul li a.active:before {
|
332 |
+
background: -webkit-linear-gradient(#eb5768, #4e8bda);
|
333 |
+
-webkit-background-clip: text;
|
334 |
+
-webkit-text-fill-color: transparent;
|
335 |
+
}
|
336 |
+
|
337 |
+
#wptouch-admin-menu ul li a:after {
|
338 |
+
content: '\e815';
|
339 |
+
position: absolute;
|
340 |
+
right: 15px;
|
341 |
+
top: 50%;
|
342 |
+
margin-top: -8px;
|
343 |
+
color: #abb3bd;
|
344 |
+
font-family: 'fontello';
|
345 |
+
}
|
346 |
+
|
347 |
+
#wptouch-admin-menu ul li:last-child:after {
|
348 |
+
border-bottom: none;
|
349 |
+
}
|
350 |
+
|
351 |
+
#wptouch-admin-menu a.active {
|
352 |
+
background: -webkit-linear-gradient(#eb5768, #4e8bda);
|
353 |
+
-webkit-background-clip: text;
|
354 |
+
-webkit-text-fill-color: transparent;
|
355 |
+
}
|
356 |
+
|
357 |
+
#wptouch-admin-menu a.active:after {
|
358 |
+
content: '';
|
359 |
+
display: block;
|
360 |
+
position: absolute;
|
361 |
+
width: 0;
|
362 |
+
border-right: 1px solid #fff;
|
363 |
+
right: -1px;
|
364 |
+
height: 100%;
|
365 |
+
top: 8px;
|
366 |
+
}
|
367 |
+
|
368 |
+
#wptouch-admin-menu ul li a:focus {
|
369 |
+
outline: 0 !important;
|
370 |
+
}
|
371 |
+
|
372 |
+
/* @group Icons */
|
373 |
+
|
374 |
+
#wptouch-admin-menu ul li a.updates-available:before {
|
375 |
+
content: '\e81d';
|
376 |
+
}
|
377 |
+
|
378 |
+
#wptouch-admin-menu ul li a.setup-general-general:before {
|
379 |
+
content: '\e805';
|
380 |
+
}
|
381 |
+
|
382 |
+
#wptouch-admin-menu ul li a.setup-compat:before {
|
383 |
+
content: '\e80c';
|
384 |
+
}
|
385 |
+
|
386 |
+
#wptouch-admin-menu ul li a.setup-devices:before {
|
387 |
+
content: '\e803';
|
388 |
+
}
|
389 |
+
|
390 |
+
#wptouch-admin-menu ul li a.menu-icons-manage-icon-sets:before {
|
391 |
+
content: '\e80b';
|
392 |
+
}
|
393 |
+
|
394 |
+
#wptouch-admin-menu ul li a.setup-themes-browser:before {
|
395 |
+
content: '\e80d';
|
396 |
+
}
|
397 |
+
|
398 |
+
#wptouch-admin-menu ul li a.foundation-page-theme-settings:before {
|
399 |
+
content: '\e80f';
|
400 |
+
}
|
401 |
+
|
402 |
+
#wptouch-admin-menu ul li a.foundation-page-theme-customizer:before {
|
403 |
+
content: '\e80e';
|
404 |
+
}
|
405 |
+
|
406 |
+
#wptouch-admin-menu ul li a.setup-addons-browser:before {
|
407 |
+
content: '\e804';
|
408 |
+
}
|
409 |
+
|
410 |
+
#wptouch-admin-menu ul li a.wptouch-addon-advanced-type:before {
|
411 |
+
content: '\e802';
|
412 |
+
}
|
413 |
+
|
414 |
+
#wptouch-admin-menu ul li a.wptouch-addon-infinity-cache:before {
|
415 |
+
content: '\e806';
|
416 |
+
}
|
417 |
+
|
418 |
+
#wptouch-admin-menu ul li a.wptouch-addon-jquery-e:before {
|
419 |
+
content: '\e811';
|
420 |
+
}
|
421 |
+
|
422 |
+
#wptouch-admin-menu ul li a.wptouch-addon-mobile-content:before {
|
423 |
+
content: '\e807';
|
424 |
+
}
|
425 |
+
|
426 |
+
#wptouch-admin-menu ul li a.wptouch-addon-multi-ads:before {
|
427 |
+
content: '\e808';
|
428 |
+
}
|
429 |
+
|
430 |
+
#wptouch-admin-menu ul li a.wptouch-addon-responsive-images:before {
|
431 |
+
content: '\e80a';
|
432 |
+
}
|
433 |
+
|
434 |
+
#wptouch-admin-menu ul li a.wptouch-addon-webapp:before {
|
435 |
+
content: '\e810';
|
436 |
+
}
|
437 |
+
|
438 |
+
#wptouch-admin-menu ul li a.wptouch-addon-related:before {
|
439 |
+
content: '\e809';
|
440 |
+
}
|
441 |
+
|
442 |
+
#wptouch-admin-menu ul li a.wptouch-addon-advertising:before {
|
443 |
+
content: '\e818';
|
444 |
+
}
|
445 |
+
|
446 |
+
/* @end */
|
447 |
+
|
448 |
+
/* @end */
|
449 |
+
|
450 |
+
/* @group Tooltips */
|
451 |
+
|
452 |
+
.tooltip {
|
453 |
+
position: absolute;
|
454 |
+
z-index: 999;
|
455 |
+
display: block;
|
456 |
+
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
457 |
+
font-style: normal;
|
458 |
+
font-weight: normal;
|
459 |
+
letter-spacing: normal;
|
460 |
+
line-break: auto;
|
461 |
+
line-height: 1.42857143;
|
462 |
+
text-align: left;
|
463 |
+
text-align: start;
|
464 |
+
text-decoration: none;
|
465 |
+
text-shadow: none;
|
466 |
+
text-transform: none;
|
467 |
+
white-space: normal;
|
468 |
+
word-break: normal;
|
469 |
+
word-spacing: normal;
|
470 |
+
word-wrap: normal;
|
471 |
+
font-size: 12px;
|
472 |
+
opacity: 0;
|
473 |
+
filter: alpha(opacity=0);
|
474 |
+
margin-top: -5px;
|
475 |
+
}
|
476 |
+
|
477 |
+
.tooltip.in {
|
478 |
+
opacity: 1;
|
479 |
+
filter: alpha(opacity=100);
|
480 |
+
}
|
481 |
+
|
482 |
+
.tooltip.right {
|
483 |
+
margin-left: 30px;
|
484 |
+
padding: 0 5px;
|
485 |
+
}
|
486 |
+
|
487 |
+
.tooltip-inner {
|
488 |
+
max-width: 200px;
|
489 |
+
padding: 12px;
|
490 |
+
color: #ffffff;
|
491 |
+
text-align: left;
|
492 |
+
background-color: #434a54;
|
493 |
+
border-radius: 4px;
|
494 |
+
}
|
495 |
+
|
496 |
+
.tooltip-arrow {
|
497 |
+
position: absolute;
|
498 |
+
width: 0;
|
499 |
+
height: 0;
|
500 |
+
border-color: transparent;
|
501 |
+
border-style: solid;
|
502 |
+
}
|
503 |
+
|
504 |
+
|
505 |
+
.tooltip.top .tooltip-arrow {
|
506 |
+
bottom: -5px;
|
507 |
+
left: 50%;
|
508 |
+
border-width: 5px 5px 0px 5px;
|
509 |
+
border-top-color: #434a54;
|
510 |
+
text-align: center;
|
511 |
+
margin-left: -7px;
|
512 |
+
}
|
513 |
+
|
514 |
+
i.wptouch-tooltip {
|
515 |
+
height: 0;
|
516 |
+
width: 0;
|
517 |
+
cursor: help;
|
518 |
+
}
|
519 |
+
|
520 |
+
i.wptouch-tooltip:after {
|
521 |
+
color: #cdd2d9;
|
522 |
+
text-transform: none;
|
523 |
+
font-family: 'fontello';
|
524 |
+
font-style: normal;
|
525 |
+
content: '\e800';
|
526 |
+
margin-left: 2px;
|
527 |
+
margin-right: 5px;
|
528 |
+
vertical-align: bottom;
|
529 |
+
position: relative;
|
530 |
+
top: 2px;
|
531 |
+
}
|
532 |
+
|
533 |
+
.wptouch-tooltip:hover:after {
|
534 |
+
color: #656e78;
|
535 |
+
}
|
536 |
+
|
537 |
+
/* @end */
|
538 |
+
|
539 |
+
/* @group Spinners */
|
540 |
+
|
541 |
+
@-moz-keyframes three-quarters-loader {
|
542 |
+
0% {
|
543 |
+
-moz-transform: rotate(0deg);
|
544 |
+
transform: rotate(0deg);
|
545 |
+
}
|
546 |
+
|
547 |
+
100% {
|
548 |
+
-moz-transform: rotate(360deg);
|
549 |
+
transform: rotate(360deg);
|
550 |
+
}
|
551 |
+
|
552 |
+
}
|
553 |
+
@-webkit-keyframes three-quarters-loader {
|
554 |
+
0% {
|
555 |
+
-webkit-transform: rotate(0deg);
|
556 |
+
transform: rotate(0deg);
|
557 |
+
}
|
558 |
+
|
559 |
+
100% {
|
560 |
+
-webkit-transform: rotate(360deg);
|
561 |
+
transform: rotate(360deg);
|
562 |
+
}
|
563 |
+
|
564 |
+
}
|
565 |
+
@keyframes three-quarters-loader {
|
566 |
+
0% {
|
567 |
+
-moz-transform: rotate(0deg);
|
568 |
+
-ms-transform: rotate(0deg);
|
569 |
+
-webkit-transform: rotate(0deg);
|
570 |
+
transform: rotate(0deg);
|
571 |
+
}
|
572 |
+
|
573 |
+
100% {
|
574 |
+
-moz-transform: rotate(360deg);
|
575 |
+
-ms-transform: rotate(360deg);
|
576 |
+
-webkit-transform: rotate(360deg);
|
577 |
+
transform: rotate(360deg);
|
578 |
+
}
|
579 |
+
|
580 |
+
}
|
581 |
+
|
582 |
+
|
583 |
+
|
584 |
+
|
585 |
+
|
586 |
+
|
587 |
+
/* :not(:required) hides this rule from IE9 and below */
|
588 |
+
.wpt-spinner:not(:required) {
|
589 |
+
-moz-animation: three-quarters-loader 1500ms infinite linear;
|
590 |
+
-webkit-animation: three-quarters-loader 1500ms infinite linear;
|
591 |
+
animation: three-quarters-loader 1500ms infinite linear;
|
592 |
+
border: 2px solid #26B9D3;
|
593 |
+
border-right-color: transparent;
|
594 |
+
border-radius: 7px;
|
595 |
+
box-sizing: border-box;
|
596 |
+
display: inline-block;
|
597 |
+
position: relative;
|
598 |
+
overflow: hidden;
|
599 |
+
text-indent: -9999px;
|
600 |
+
width: 14px;
|
601 |
+
height: 14px;
|
602 |
+
}
|
603 |
+
|
604 |
+
/* @end */
|
605 |
+
|
606 |
+
/* @group Form Elements */
|
607 |
+
|
608 |
+
/* @group Checkbox Toggles */
|
609 |
+
|
610 |
+
.checkbox-wrap {
|
611 |
+
position: relative;
|
612 |
+
padding-right: 60px;
|
613 |
+
}
|
614 |
+
|
615 |
+
input.checkbox {
|
616 |
+
position: absolute;
|
617 |
+
margin-left: -9999px;
|
618 |
+
visibility: hidden;
|
619 |
+
width: auto;
|
620 |
+
}
|
621 |
+
|
622 |
+
input.checkbox + label {
|
623 |
+
display: block;
|
624 |
+
position: absolute;
|
625 |
+
cursor: pointer;
|
626 |
+
outline: none;
|
627 |
+
user-select: none;
|
628 |
+
-webkit-user-select: none;
|
629 |
+
right: 0;
|
630 |
+
top: 50%;
|
631 |
+
margin-top: -10px;
|
632 |
+
padding: 2px;
|
633 |
+
width: 40px;
|
634 |
+
height: 16px;
|
635 |
+
background-color: #eb5768;
|
636 |
+
border-radius: 16px;
|
637 |
+
transition: background 0.2s;
|
638 |
+
}
|
639 |
+
|
640 |
+
input.checkbox + label:before {
|
641 |
+
top: 2px;
|
642 |
+
left: 2px;
|
643 |
+
bottom: 2px;
|
644 |
+
right: 2px;
|
645 |
+
border-radius: 24px;
|
646 |
+
transition: background 0.2s;
|
647 |
+
}
|
648 |
+
|
649 |
+
input.checkbox + label:after {
|
650 |
+
top: 2px;
|
651 |
+
left: 2px;
|
652 |
+
bottom: 2px;
|
653 |
+
width: 16px;
|
654 |
+
background-color: #fff;
|
655 |
+
border-radius: 20px;
|
656 |
+
transition: margin 0.2s, background 0.2s;
|
657 |
+
box-shadow: rgba(0,0,0,.2) 0px 2px 4px;
|
658 |
+
}
|
659 |
+
|
660 |
+
input.checkbox + label:before,
|
661 |
+
input.checkbox + label:after {
|
662 |
+
display: block;
|
663 |
+
position: absolute;
|
664 |
+
content: '';
|
665 |
+
}
|
666 |
+
|
667 |
+
input.checkbox:checked + label {
|
668 |
+
background-color: #55c2e8;
|
669 |
+
}
|
670 |
+
|
671 |
+
input.checkbox:checked + label:after {
|
672 |
+
margin-left: 24px;
|
673 |
+
background-color: #fff;
|
674 |
+
}
|
675 |
+
|
676 |
+
input.checkbox:disabled + label {
|
677 |
+
background-color: #e7eaed;
|
678 |
+
}
|
679 |
+
|
680 |
+
input.checkbox:disabled + label:after {
|
681 |
+
margin-left: 0px;
|
682 |
+
background-color: #fff;
|
683 |
+
}
|
684 |
+
|
685 |
+
/* @end */
|
686 |
+
|
687 |
+
/* @group Selects */
|
688 |
+
|
689 |
+
#wptouch-settings-area select {
|
690 |
+
visibility: hidden;
|
691 |
+
width: 250px;
|
692 |
+
}
|
693 |
+
|
694 |
+
.select2-container {
|
695 |
+
box-sizing: border-box;
|
696 |
+
display: inline-block;
|
697 |
+
margin: 0;
|
698 |
+
position: absolute;
|
699 |
+
vertical-align: middle;
|
700 |
+
top: 8px;
|
701 |
+
right: 0;
|
702 |
+
}
|
703 |
+
|
704 |
+
.select2-container .select2-selection--single {
|
705 |
+
box-sizing: border-box;
|
706 |
+
cursor: pointer;
|
707 |
+
display: block;
|
708 |
+
height: 28px;
|
709 |
+
user-select: none;
|
710 |
+
-webkit-user-select: none;
|
711 |
+
outline: none;
|
712 |
+
}
|
713 |
+
|
714 |
+
.select2-container .select2-selection--single .select2-selection__rendered {
|
715 |
+
display: block;
|
716 |
+
padding-right: 25px;
|
717 |
+
overflow: hidden;
|
718 |
+
text-overflow: ellipsis;
|
719 |
+
white-space: nowrap;
|
720 |
+
}
|
721 |
+
|
722 |
+
|
723 |
+
|
724 |
+
.select2-container .select2-selection--multiple {
|
725 |
+
box-sizing: border-box;
|
726 |
+
cursor: pointer;
|
727 |
+
display: block;
|
728 |
+
min-height: 32px;
|
729 |
+
user-select: none;
|
730 |
+
-webkit-user-select: none;
|
731 |
+
}
|
732 |
+
|
733 |
+
.select2-container .select2-selection--multiple .select2-selection__rendered {
|
734 |
+
display: inline-block;
|
735 |
+
overflow: hidden;
|
736 |
+
padding-left: 8px;
|
737 |
+
text-overflow: ellipsis;
|
738 |
+
white-space: nowrap;
|
739 |
+
}
|
740 |
+
|
741 |
+
.select2-container .select2-search--inline {
|
742 |
+
float: left;
|
743 |
+
}
|
744 |
+
|
745 |
+
.select2-container .select2-search--inline .select2-search__field {
|
746 |
+
box-sizing: border-box;
|
747 |
+
border: none;
|
748 |
+
font-size: 100%;
|
749 |
+
margin-top: 5px;
|
750 |
+
}
|
751 |
+
|
752 |
+
.select2-container .select2-search--inline .select2-search__field::-webkit-search-cancel-button {
|
753 |
+
-webkit-appearance: none;
|
754 |
+
}
|
755 |
+
|
756 |
+
.select2-dropdown {
|
757 |
+
background-color: white;
|
758 |
+
border: 1px solid #e7eaed;
|
759 |
+
border-radius: 4px;
|
760 |
+
box-sizing: border-box;
|
761 |
+
display: block;
|
762 |
+
position: absolute;
|
763 |
+
left: -100000px;
|
764 |
+
width: 100%;
|
765 |
+
z-index: 1051;
|
766 |
+
}
|
767 |
+
|
768 |
+
.select2-results {
|
769 |
+
display: block;
|
770 |
+
}
|
771 |
+
|
772 |
+
.select2-results__options {
|
773 |
+
list-style: none;
|
774 |
+
margin: 0;
|
775 |
+
padding: 0;
|
776 |
+
}
|
777 |
+
|
778 |
+
.select2-results__option {
|
779 |
+
padding: 10px;
|
780 |
+
user-select: none;
|
781 |
+
-webkit-user-select: none;
|
782 |
+
margin: 0;
|
783 |
+
line-height: 130%;
|
784 |
+
}
|
785 |
+
|
786 |
+
.select2-results__option[aria-selected] {
|
787 |
+
cursor: pointer;
|
788 |
+
}
|
789 |
+
|
790 |
+
.select2-container--open .select2-dropdown {
|
791 |
+
box-shadow: rgba(0,0,0,.1) 0px 1px 3px;
|
792 |
+
left: 0;
|
793 |
+
}
|
794 |
+
|
795 |
+
.select2-search--dropdown {
|
796 |
+
display: block;
|
797 |
+
padding: 4px;
|
798 |
+
}
|
799 |
+
|
800 |
+
.select2-search--dropdown .select2-search__field {
|
801 |
+
padding: 4px;
|
802 |
+
width: 100%;
|
803 |
+
box-sizing: border-box;
|
804 |
+
}
|
805 |
+
|
806 |
+
.select2-search--dropdown .select2-search__field::-webkit-search-cancel-button {
|
807 |
+
-webkit-appearance: none;
|
808 |
+
}
|
809 |
+
|
810 |
+
.select2-search--dropdown.select2-search--hide {
|
811 |
+
display: none;
|
812 |
+
}
|
813 |
+
|
814 |
+
.select2-close-mask {
|
815 |
+
border: 0;
|
816 |
+
margin: 0;
|
817 |
+
padding: 0;
|
818 |
+
display: block;
|
819 |
+
position: fixed;
|
820 |
+
left: 0;
|
821 |
+
top: 0;
|
822 |
+
min-height: 100%;
|
823 |
+
min-width: 100%;
|
824 |
+
height: auto;
|
825 |
+
width: auto;
|
826 |
+
opacity: 0;
|
827 |
+
z-index: 99;
|
828 |
+
background-color: #fff;
|
829 |
+
filter: alpha(opacity=0);
|
830 |
+
}
|
831 |
+
|
832 |
+
.select2-hidden-accessible {
|
833 |
+
border: 0 !important;
|
834 |
+
clip: rect(0 0 0 0) !important;
|
835 |
+
height: 1px !important;
|
836 |
+
margin: -1px !important;
|
837 |
+
overflow: hidden !important;
|
838 |
+
padding: 0 !important;
|
839 |
+
position: absolute !important;
|
840 |
+
width: 1px !important;
|
841 |
+
}
|
842 |
+
|
843 |
+
.select2-container--default .select2-selection--single {
|
844 |
+
background-color: #fff;
|
845 |
+
border-radius: 4px;
|
846 |
+
font-style: italic;
|
847 |
+
text-align: right;
|
848 |
+
}
|
849 |
+
|
850 |
+
.select2-container--default .select2-selection--single .select2-selection__rendered {
|
851 |
+
line-height: 28px;
|
852 |
+
}
|
853 |
+
|
854 |
+
.select2-container--default .select2-selection--single .select2-selection__clear {
|
855 |
+
cursor: pointer;
|
856 |
+
float: right;
|
857 |
+
font-weight: bold;
|
858 |
+
}
|
859 |
+
|
860 |
+
.select2-container--default .select2-selection--single .select2-selection__placeholder {
|
861 |
+
color: #999;
|
862 |
+
}
|
863 |
+
|
864 |
+
.select2-container--default .select2-selection--single .select2-selection__arrow {
|
865 |
+
height: 26px;
|
866 |
+
position: absolute;
|
867 |
+
top: 1px;
|
868 |
+
right: 1px;
|
869 |
+
width: 20px;
|
870 |
+
}
|
871 |
+
|
872 |
+
.select2-container--default .select2-selection--single .select2-selection__arrow b {
|
873 |
+
border-color: #888 transparent transparent transparent;
|
874 |
+
border-style: solid;
|
875 |
+
border-width: 5px 4px 0 4px;
|
876 |
+
height: 0;
|
877 |
+
left: 50%;
|
878 |
+
margin-left: -4px;
|
879 |
+
margin-top: -2px;
|
880 |
+
position: absolute;
|
881 |
+
top: 50%;
|
882 |
+
width: 0;
|
883 |
+
border-top-width: 5px;
|
884 |
+
border-top-color: #656e78;
|
885 |
+
}
|
886 |
+
|
887 |
+
.select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__clear {
|
888 |
+
float: left;
|
889 |
+
}
|
890 |
+
|
891 |
+
.select2-container--default.select2-container--disabled .select2-selection--single {
|
892 |
+
background-color: #eee;
|
893 |
+
cursor: default;
|
894 |
+
}
|
895 |
+
|
896 |
+
.select2-container--default.select2-container--disabled .select2-selection--single .select2-selection__clear {
|
897 |
+
display: none;
|
898 |
+
}
|
899 |
+
|
900 |
+
.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
|
901 |
+
border-color: transparent transparent #888 transparent;
|
902 |
+
border-width: 0 4px 5px 4px;
|
903 |
+
border-bottom-color: #656e78;
|
904 |
+
border-bottom-width: 5px;
|
905 |
+
}
|
906 |
+
|
907 |
+
.select2-container--default .select2-selection--multiple {
|
908 |
+
background-color: white;
|
909 |
+
border: 1px solid #e7eaed;
|
910 |
+
border-radius: 4px;
|
911 |
+
cursor: text;
|
912 |
+
}
|
913 |
+
|
914 |
+
.select2-container--default .select2-selection--multiple .select2-selection__rendered {
|
915 |
+
box-sizing: border-box;
|
916 |
+
list-style: none;
|
917 |
+
margin: 0;
|
918 |
+
padding: 0 5px;
|
919 |
+
width: 100%;
|
920 |
+
}
|
921 |
+
|
922 |
+
.select2-container--default .select2-selection--multiple .select2-selection__placeholder {
|
923 |
+
margin-top: 5px;
|
924 |
+
float: left;
|
925 |
+
color: #999;
|
926 |
+
}
|
927 |
+
|
928 |
+
.select2-container--default .select2-selection--multiple .select2-selection__clear {
|
929 |
+
cursor: pointer;
|
930 |
+
float: right;
|
931 |
+
font-weight: bold;
|
932 |
+
margin-top: 5px;
|
933 |
+
margin-right: 10px;
|
934 |
+
}
|
935 |
+
|
936 |
+
.select2-container--default .select2-selection--multiple .select2-selection__choice {
|
937 |
+
background-color: #e4e4e4;
|
938 |
+
border: 1px solid #e7eaed;
|
939 |
+
border-radius: 4px;
|
940 |
+
cursor: default;
|
941 |
+
float: left;
|
942 |
+
margin-right: 5px;
|
943 |
+
margin-top: 5px;
|
944 |
+
padding: 0 5px;
|
945 |
+
}
|
946 |
+
|
947 |
+
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
|
948 |
+
cursor: pointer;
|
949 |
+
display: inline-block;
|
950 |
+
font-weight: bold;
|
951 |
+
margin-right: 2px;
|
952 |
+
color: #999;
|
953 |
+
}
|
954 |
+
|
955 |
+
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
|
956 |
+
color: #333;
|
957 |
+
}
|
958 |
+
|
959 |
+
.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice, .select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__placeholder, .select2-container--default[dir="rtl"] .select2-selection--multiple .select2-search--inline {
|
960 |
+
float: right;
|
961 |
+
}
|
962 |
+
|
963 |
+
.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice {
|
964 |
+
margin-left: 5px;
|
965 |
+
margin-right: auto;
|
966 |
+
}
|
967 |
+
|
968 |
+
.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove {
|
969 |
+
margin-left: 2px;
|
970 |
+
margin-right: auto;
|
971 |
+
}
|
972 |
+
|
973 |
+
.select2-container--default.select2-container--focus .select2-selection--multiple {
|
974 |
+
border: solid black 1px;
|
975 |
+
outline: 0;
|
976 |
+
}
|
977 |
+
|
978 |
+
.select2-container--default.select2-container--disabled .select2-selection--multiple {
|
979 |
+
background-color: #eee;
|
980 |
+
cursor: default;
|
981 |
+
}
|
982 |
+
|
983 |
+
.select2-container--default.select2-container--disabled .select2-selection__choice__remove {
|
984 |
+
display: none;
|
985 |
+
}
|
986 |
+
|
987 |
+
.select2-container--default.select2-container--open.select2-container--above .select2-selection--single, .select2-container--default.select2-container--open.select2-container--above .select2-selection--multiple {
|
988 |
+
border-top-left-radius: 0;
|
989 |
+
border-top-right-radius: 0;
|
990 |
+
}
|
991 |
+
|
992 |
+
.select2-container--default.select2-container--open.select2-container--below .select2-selection--single, .select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple {
|
993 |
+
border-bottom-left-radius: 0;
|
994 |
+
border-bottom-right-radius: 0;
|
995 |
+
}
|
996 |
+
|
997 |
+
.select2-container--default .select2-search--dropdown .select2-search__field {
|
998 |
+
border: 1px solid #e7eaed;
|
999 |
+
}
|
1000 |
+
|
1001 |
+
.select2-container--default .select2-search--inline .select2-search__field {
|
1002 |
+
background: transparent;
|
1003 |
+
border: none;
|
1004 |
+
outline: 0;
|
1005 |
+
box-shadow: none;
|
1006 |
+
}
|
1007 |
+
|
1008 |
+
.select2-container--default .select2-results > .select2-results__options {
|
1009 |
+
max-height: 200px;
|
1010 |
+
overflow-y: auto;
|
1011 |
+
}
|
1012 |
+
|
1013 |
+
.select2-container--default .select2-results__option[role=group] {
|
1014 |
+
padding: 0;
|
1015 |
+
}
|
1016 |
+
|
1017 |
+
.select2-container--default .select2-results__option[aria-disabled=true] {
|
1018 |
+
color: #999;
|
1019 |
+
}
|
1020 |
+
|
1021 |
+
.select2-container--default .select2-results__option[aria-selected=true] {
|
1022 |
+
background-color: #ddd;
|
1023 |
+
}
|
1024 |
+
|
1025 |
+
.select2-container--default .select2-results__option .select2-results__option {
|
1026 |
+
padding-left: 1em;
|
1027 |
+
}
|
1028 |
+
|
1029 |
+
.select2-container--default .select2-results__option .select2-results__option .select2-results__group {
|
1030 |
+
padding-left: 0;
|
1031 |
+
}
|
1032 |
+
|
1033 |
+
.select2-container--default .select2-results__option .select2-results__option .select2-results__option {
|
1034 |
+
margin-left: -1em;
|
1035 |
+
padding-left: 2em;
|
1036 |
+
}
|
1037 |
+
|
1038 |
+
.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
|
1039 |
+
margin-left: -2em;
|
1040 |
+
padding-left: 3em;
|
1041 |
+
}
|
1042 |
+
|
1043 |
+
.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
|
1044 |
+
margin-left: -3em;
|
1045 |
+
padding-left: 4em;
|
1046 |
+
}
|
1047 |
+
|
1048 |
+
.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
|
1049 |
+
margin-left: -4em;
|
1050 |
+
padding-left: 5em;
|
1051 |
+
}
|
1052 |
+
|
1053 |
+
.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
|
1054 |
+
margin-left: -5em;
|
1055 |
+
padding-left: 6em;
|
1056 |
+
}
|
1057 |
+
|
1058 |
+
.select2-container--default .select2-results__option--highlighted[aria-selected] {
|
1059 |
+
background-color: #55c2e8;
|
1060 |
+
color: white;
|
1061 |
+
}
|
1062 |
+
|
1063 |
+
.select2-container--default .select2-results__group {
|
1064 |
+
cursor: default;
|
1065 |
+
display: block;
|
1066 |
+
padding: 6px;
|
1067 |
+
}
|
1068 |
+
|
1069 |
+
/*
|
1070 |
+
|
1071 |
+
@end */
|
1072 |
+
|
1073 |
+
/* @group Buttons */
|
1074 |
+
|
1075 |
+
#wptouch-settings-content button, #wptouch-settings-content a.button, #wpbody-content .update-nag a.button, #wptouch-settings-content button, #wptouch-settings-content a.button, #wptouch-settings-content input.button{
|
1076 |
+
font-weight: 300;
|
1077 |
+
background-color: #656e78;
|
1078 |
+
border: none;
|
1079 |
+
color: #fff;
|
1080 |
+
-webkit-box-shadow: none;
|
1081 |
+
-moz-box-shadow: none;
|
1082 |
+
box-shadow: none;
|
1083 |
+
font: 12px lato, 'open sans', sans-serif;
|
1084 |
+
height: auto;
|
1085 |
+
padding: 6px 18px;
|
1086 |
+
border-radius: 2px;
|
1087 |
+
cursor: pointer;
|
1088 |
+
}
|
1089 |
+
|
1090 |
+
#wptouch-settings-content button.disabled, #wptouch-settings-content a.button.disabled, #wpbody-content .update-nag a.button.disabled, #wptouch-settings-content button.disabled, #wptouch-settings-content a.button.disabled, #wptouch-settings-content input.button.disabled {
|
1091 |
+
opacity: .6;
|
1092 |
+
}
|
1093 |
+
|
1094 |
+
/* @end */
|
1095 |
+
|
1096 |
+
/* @group Multiline */
|
1097 |
+
|
1098 |
+
#wptouch-settings-area .multiline textarea {
|
1099 |
+
display: none;
|
1100 |
+
}
|
1101 |
+
|
1102 |
+
#wptouch-settings-area .multiline .input-wrap {
|
1103 |
+
position: absolute;
|
1104 |
+
right: -5px;
|
1105 |
+
top: 8px;
|
1106 |
+
}
|
1107 |
+
|
1108 |
+
#wptouch-settings-area .multiline ul {
|
1109 |
+
margin-top: 10px;
|
1110 |
+
text-align: right;
|
1111 |
+
margin-bottom: 0;
|
1112 |
+
}
|
1113 |
+
|
1114 |
+
#wptouch-settings-area .multiline li {
|
1115 |
+
border-style: none;
|
1116 |
+
padding-top: 6px;
|
1117 |
+
padding-bottom: 6px;
|
1118 |
+
font-style: italic;
|
1119 |
+
}
|
1120 |
+
|
1121 |
+
#wptouch-settings-area .multiline input[type="text"] {
|
1122 |
+
position: relative;
|
1123 |
+
top: 0;
|
1124 |
+
}
|
1125 |
+
|
1126 |
+
#wptouch-settings-area .multiline a.add {
|
1127 |
+
display: inline-block;
|
1128 |
+
color: #55c2e8;
|
1129 |
+
font-size: 22px;
|
1130 |
+
position: relative;
|
1131 |
+
top: 2px;
|
1132 |
+
-webkit-transition: .15s;
|
1133 |
+
transition: .15s;
|
1134 |
+
}
|
1135 |
+
|
1136 |
+
#wptouch-settings-area .multiline a.add:active {
|
1137 |
+
-webkit-transform: scale(.90);
|
1138 |
+
transform: scale(.90);
|
1139 |
+
color: #42b0d9;
|
1140 |
+
}
|
1141 |
+
|
1142 |
+
#wptouch-settings-area .multiline a.remove {
|
1143 |
+
color: #eb5768;
|
1144 |
+
position: relative;
|
1145 |
+
top: 1px;
|
1146 |
+
opacity: 0.5;
|
1147 |
+
padding: 5px;
|
1148 |
+
}
|
1149 |
+
|
1150 |
+
#wptouch-settings-area .multiline a.remove:hover {
|
1151 |
+
opacity: 1;
|
1152 |
+
}
|
1153 |
+
|
1154 |
+
/* @end */
|
1155 |
+
|
1156 |
+
/* @group Color Picker */
|
1157 |
+
|
1158 |
+
#wptouch-settings-area .wp-picker-container {
|
1159 |
+
position: absolute;
|
1160 |
+
top: 10px;
|
1161 |
+
right: 0;
|
1162 |
+
}
|
1163 |
+
|
1164 |
+
#wptouch-settings-area .wp-picker-container input[type="text"] {
|
1165 |
+
position: relative;
|
1166 |
+
left: 73px;
|
1167 |
+
top: auto;
|
1168 |
+
width: 65px;
|
1169 |
+
z-index: 2;
|
1170 |
+
}
|
1171 |
+
|
1172 |
+
#wptouch-settings-area .wp-picker-container .wp-picker-clear {
|
1173 |
+
display: none;
|
1174 |
+
}
|
1175 |
+
|
1176 |
+
#wptouch-settings-area .iris-picker {
|
1177 |
+
z-index: 2;
|
1178 |
+
}
|
1179 |
+
|
1180 |
+
/* @end */
|
1181 |
+
|
1182 |
+
#wptouch-settings-area textarea {
|
1183 |
+
width: 100%;
|
1184 |
+
margin-bottom: 12px;
|
1185 |
+
margin-top: 12px;
|
1186 |
+
background-color: #f6f8fb;
|
1187 |
+
box-shadow: none;
|
1188 |
+
padding: 5px;
|
1189 |
+
border: 1px solid #e7eaed;
|
1190 |
+
}
|
1191 |
+
|
1192 |
+
#wptouch-settings-area input[type="text"], #wptouch-settings-area input[type="password"] {
|
1193 |
+
border: 1px solid #e7eaed;
|
1194 |
+
-webkit-box-shadow: none;
|
1195 |
+
-moz-box-shadow: none;
|
1196 |
+
box-shadow: none;
|
1197 |
+
position: absolute;
|
1198 |
+
right: 0;
|
1199 |
+
top: 8px;
|
1200 |
+
width: 180px;
|
1201 |
+
background-color: #f6f8fb;
|
1202 |
+
}
|
1203 |
+
|
1204 |
+
#wptouch-settings-area input[type="text"]:focus, #wptouch-settings-area textarea:focus {
|
1205 |
+
background-color: #fff;
|
1206 |
+
border-color: #55c2e8;
|
1207 |
+
}
|
1208 |
+
|
1209 |
+
/* @end */
|
1210 |
+
|
1211 |
+
/* @group Updates Available */
|
1212 |
+
|
1213 |
+
#section-updates-available button.update-all {
|
1214 |
+
position: absolute;
|
1215 |
+
top: -45px;
|
1216 |
+
right: 0;
|
1217 |
+
}
|
1218 |
+
|
1219 |
+
#section-updates-available .cloud-update-issue {
|
1220 |
+
margin-left: -45px;
|
1221 |
+
margin-top: -100px;
|
1222 |
+
}
|
1223 |
+
|
1224 |
+
#section-updates-available div > h3 {
|
1225 |
+
font-size: 15px;
|
1226 |
+
color: #656e78;
|
1227 |
+
text-transform: capitalize;
|
1228 |
+
margin-bottom: 10px;
|
1229 |
+
}
|
1230 |
+
|
1231 |
+
#section-updates-available div {
|
1232 |
+
margin-bottom: 50px;
|
1233 |
+
}
|
1234 |
+
|
1235 |
+
#section-updates-available div li {
|
1236 |
+
display: block;
|
1237 |
+
padding-top: 20px;
|
1238 |
+
padding-bottom: 20px;
|
1239 |
+
}
|
1240 |
+
|
1241 |
+
#section-updates-available div img {
|
1242 |
+
width: 32px;
|
1243 |
+
height: auto;
|
1244 |
+
float: left;
|
1245 |
+
margin-right: 12px;
|
1246 |
+
margin-top: -6px;
|
1247 |
+
}
|
1248 |
+
|
1249 |
+
#section-updates-available div h4 {
|
1250 |
+
text-transform: uppercase;
|
1251 |
+
font-weight: 400;
|
1252 |
+
font-size: 15px;
|
1253 |
+
display: inline-block;
|
1254 |
+
margin: 0;
|
1255 |
+
}
|
1256 |
+
|
1257 |
+
#section-updates-available div span.version {
|
1258 |
+
display: inline-block;
|
1259 |
+
color: #abb3bd;
|
1260 |
+
margin-left: 5px;
|
1261 |
+
}
|
1262 |
+
|
1263 |
+
#section-updates-available .update-version {
|
1264 |
+
display: inline-block;
|
1265 |
+
float: right;
|
1266 |
+
color: #8ec159;
|
1267 |
+
font-size: 12px;
|
1268 |
+
}
|
1269 |
+
|
1270 |
+
.ajax-install a.button {
|
1271 |
+
float: right;
|
1272 |
+
margin-left: 12px;
|
1273 |
+
position: relative;
|
1274 |
+
bottom: 5px;
|
1275 |
+
}
|
1276 |
+
|
1277 |
+
/* @end */
|
1278 |
+
|
1279 |
+
/* @group Settings */
|
1280 |
+
|
1281 |
+
/* @group Backup / Restore */
|
1282 |
+
|
1283 |
+
/* @end */
|
1284 |
+
|
1285 |
+
/* @group Custom Post Types */
|
1286 |
+
|
1287 |
+
#setting-custom_post_types_in_post_index {
|
1288 |
+
border-top: 4px solid #f6f8fb;
|
1289 |
+
}
|
1290 |
+
|
1291 |
+
/* @end */
|
1292 |
+
|
1293 |
+
/* @group Active Plugins */
|
1294 |
+
|
1295 |
+
ul.plugin-compat-list {
|
1296 |
+
margin-top: -10px;
|
1297 |
+
margin-bottom: -10px;
|
1298 |
+
}
|
1299 |
+
|
1300 |
+
#plugin-compat-setting p {
|
1301 |
+
text-align: center;
|
1302 |
+
width: 400px;
|
1303 |
+
margin-left: auto;
|
1304 |
+
margin-right: auto;
|
1305 |
+
font-style: italic;
|
1306 |
+
}
|
1307 |
+
|
1308 |
+
/* @end */
|
1309 |
+
|
1310 |
+
/* @group Devices */
|
1311 |
+
|
1312 |
+
.no-tablets {
|
1313 |
+
text-align: center;
|
1314 |
+
font-size: 12px;
|
1315 |
+
}
|
1316 |
+
|
1317 |
+
/* @end */
|
1318 |
+
|
1319 |
+
/* @group Menu Setup */
|
1320 |
+
|
1321 |
+
.new-in-four {
|
1322 |
+
text-align: center;
|
1323 |
+
padding-top: 15px;
|
1324 |
+
padding-bottom: 15px;
|
1325 |
+
}
|
1326 |
+
|
1327 |
+
.new-in-four p {
|
1328 |
+
width: 400px;
|
1329 |
+
margin-left: auto;
|
1330 |
+
margin-right: auto;
|
1331 |
+
}
|
1332 |
+
|
1333 |
+
.new-in-four img {
|
1334 |
+
width: 120px;
|
1335 |
+
display: block;
|
1336 |
+
margin-left: auto;
|
1337 |
+
margin-right: auto;
|
1338 |
+
margin-bottom: 20px;
|
1339 |
+
}
|
1340 |
+
|
1341 |
+
/* @group Icon Sets */
|
1342 |
+
|
1343 |
+
#setting-installed_icon_sets {
|
1344 |
+
border-bottom-style: none;
|
1345 |
+
}
|
1346 |
+
|
1347 |
+
/* @group Icon Sets */
|
1348 |
+
|
1349 |
+
ul.manage-sets {
|
1350 |
+
|
1351 |
+
}
|
1352 |
+
|
1353 |
+
ul.manage-sets li {
|
1354 |
+
border-bottom: 1px solid #e5e5e5;
|
1355 |
+
position: relative;
|
1356 |
+
padding-bottom: 16px;
|
1357 |
+
}
|
1358 |
+
|
1359 |
+
ul.manage-sets li img {
|
1360 |
+
border-radius: 2px;
|
1361 |
+
width: 32px;
|
1362 |
+
height: 32px;
|
1363 |
+
float: left;
|
1364 |
+
margin-right: 10px;
|
1365 |
+
margin-top: 4px;
|
1366 |
+
}
|
1367 |
+
|
1368 |
+
ul.manage-sets .set-title {
|
1369 |
+
margin: 0;
|
1370 |
+
font-size: 15px;
|
1371 |
+
}
|
1372 |
+
|
1373 |
+
ul.manage-sets .set-author {
|
1374 |
+
margin-top: 0;
|
1375 |
+
margin-bottom: 0;
|
1376 |
+
}
|
1377 |
+
|
1378 |
+
ul.manage-sets .installed, ul.manage-sets .error {
|
1379 |
+
position: absolute;
|
1380 |
+
right: 8px;
|
1381 |
+
top: 50%;
|
1382 |
+
margin-top: -10px;
|
1383 |
+
}
|
1384 |
+
|
1385 |
+
ul.manage-sets .error {
|
1386 |
+
color: darkorange;
|
1387 |
+
margin-top: -6px;
|
1388 |
+
}
|
1389 |
+
|
1390 |
+
ul.manage-sets .installed {
|
1391 |
+
color: #198c1c;
|
1392 |
+
background-image: none;
|
1393 |
+
font-size: 13px;
|
1394 |
+
}
|
1395 |
+
|
1396 |
+
ul.manage-sets .installed:before {
|
1397 |
+
font-family: 'fontello';
|
1398 |
+
content: '\e814';
|
1399 |
+
margin-right: 5px;
|
1400 |
+
}
|
1401 |
+
|
1402 |
+
ul.manage-sets button {
|
1403 |
+
position: absolute;
|
1404 |
+
right: 0;
|
1405 |
+
top: 20px;
|
1406 |
+
}
|
1407 |
+
|
1408 |
+
ul.manage-sets i.icon-cloud-download {
|
1409 |
+
margin-right: 6px;
|
1410 |
+
line-height: 11px;
|
1411 |
+
}
|
1412 |
+
|
1413 |
+
/* @end */
|
1414 |
+
|
1415 |
+
/* @group Custom Icons */
|
1416 |
+
|
1417 |
+
#setting-custom_icon_upload {
|
1418 |
+
border-style: none;
|
1419 |
+
margin: 0;
|
1420 |
+
height: 0;
|
1421 |
+
padding: 0;
|
1422 |
+
}
|
1423 |
+
|
1424 |
+
ul.padded li.no-icons {
|
1425 |
+
width: 400px;
|
1426 |
+
margin-left: auto;
|
1427 |
+
margin-right: auto;
|
1428 |
+
text-align: center;
|
1429 |
+
border-style: none;
|
1430 |
+
}
|
1431 |
+
|
1432 |
+
#section-admin_menu_icon_upload button {
|
1433 |
+
position: absolute;
|
1434 |
+
top: -38px;
|
1435 |
+
right: 0;
|
1436 |
+
}
|
1437 |
+
|
1438 |
+
#section-admin_menu_icon_upload .wpt-spinner {
|
1439 |
+
position: absolute;
|
1440 |
+
top: -33px;
|
1441 |
+
right: 105px;
|
1442 |
+
}
|
1443 |
+
|
1444 |
+
.wptouch-section ul li.custom-icon {
|
1445 |
+
width: 20%;
|
1446 |
+
position: relative;
|
1447 |
+
border-style: none;
|
1448 |
+
float: left;
|
1449 |
+
text-align: center;
|
1450 |
+
padding: 10px 0 0;
|
1451 |
+
}
|
1452 |
+
|
1453 |
+
.custom-icon img {
|
1454 |
+
width: 52px;
|
1455 |
+
height: 52px;
|
1456 |
+
border-radius: 4px;
|
1457 |
+
cursor: pointer;
|
1458 |
+
}
|
1459 |
+
|
1460 |
+
.custom-icon .name {
|
1461 |
+
-webkit-transition-duration: 300ms;
|
1462 |
+
-moz-transition-duration: 300ms;
|
1463 |
+
-o-transition-duration: 300ms;
|
1464 |
+
-ms-transition-duration: 300ms;
|
1465 |
+
transition-duration: 300ms;
|
1466 |
+
font-size: 11px;
|
1467 |
+
font-weight: bold;
|
1468 |
+
width: 60%;
|
1469 |
+
-o-text-overflow: ellipsis;
|
1470 |
+
-ms-text-overflow: ellipsis;
|
1471 |
+
text-overflow: ellipsis;
|
1472 |
+
overflow: hidden;
|
1473 |
+
white-space: nowrap;
|
1474 |
+
margin-left: auto;
|
1475 |
+
margin-right: auto;
|
1476 |
+
margin-bottom: 0;
|
1477 |
+
}
|
1478 |
+
|
1479 |
+
.custom-icon .size {
|
1480 |
+
font-size: 11px;
|
1481 |
+
color: #bbb;
|
1482 |
+
margin-top: 0;
|
1483 |
+
}
|
1484 |
+
|
1485 |
+
a.delete-custom-icon {
|
1486 |
+
font-size: 20px;
|
1487 |
+
display: inline-block;
|
1488 |
+
z-index: 1;
|
1489 |
+
position: absolute;
|
1490 |
+
padding: 5px;
|
1491 |
+
top: -10px;
|
1492 |
+
left: 12px;
|
1493 |
+
color: #eb5768;
|
1494 |
+
width: 18px;
|
1495 |
+
height: 18px;
|
1496 |
+
border-radius: 13px;
|
1497 |
+
background-color: #fff;
|
1498 |
+
text-align: center;
|
1499 |
+
}
|
1500 |
+
|
1501 |
+
/* @end */
|
1502 |
+
|
1503 |
+
/* @end */
|
1504 |
+
|
1505 |
+
/* @end */
|
1506 |
+
|
1507 |
+
/* @group Plugin Compatibility */
|
1508 |
+
|
1509 |
+
li#setting-plugin-compat {
|
1510 |
+
border-style: none;
|
1511 |
+
}
|
1512 |
+
|
1513 |
+
/* @end */
|
1514 |
+
|
1515 |
+
/* @group User Agents */
|
1516 |
+
|
1517 |
+
#user-agent-list .agents {
|
1518 |
+
display: block;
|
1519 |
+
font-style: italic;
|
1520 |
+
color: #777;
|
1521 |
+
margin-top: 8px;
|
1522 |
+
}
|
1523 |
+
|
1524 |
+
/* @end */
|
1525 |
+
|
1526 |
+
/* @end */
|
1527 |
+
|
1528 |
+
/* @group Theme & Extension Browsers */
|
1529 |
+
|
1530 |
+
/* @group Main */
|
1531 |
+
|
1532 |
+
/* @group No License Styling */
|
1533 |
+
|
1534 |
+
.no-license * {
|
1535 |
+
color: #aaa !important;
|
1536 |
+
font-style: italic;
|
1537 |
+
}
|
1538 |
+
|
1539 |
+
.no-license img {
|
1540 |
+
opacity: .5;
|
1541 |
+
}
|
1542 |
+
|
1543 |
+
.no-license:hover *, .no-license:hover img {
|
1544 |
+
font-style: inherit;
|
1545 |
+
opacity: 1;
|
1546 |
+
color: inherit !important;
|
1547 |
+
}
|
1548 |
+
|
1549 |
+
li.no-license:after {
|
1550 |
+
content: '' !important;
|
1551 |
+
}
|
1552 |
+
|
1553 |
+
li.no-license:hover:after {
|
1554 |
+
content: '\e815' !important;
|
1555 |
+
}
|
1556 |
+
|
1557 |
+
/* @end */
|
1558 |
+
|
1559 |
+
|
1560 |
+
.theme-panels, .extension-panels {
|
1561 |
+
visibility: hidden;
|
1562 |
+
margin-top: -20px;
|
1563 |
+
}
|
1564 |
+
|
1565 |
+
.SimpleSlideView-view {
|
1566 |
+
position: relative;
|
1567 |
+
}
|
1568 |
+
|
1569 |
+
.cloud-update-issue {
|
1570 |
+
background-color: #ffcd5f;
|
1571 |
+
padding: 30px 60px 30px 150px;
|
1572 |
+
position: relative;
|
1573 |
+
font-size: 13px;
|
1574 |
+
margin: -45px -45px 20px;
|
1575 |
+
}
|
1576 |
+
|
1577 |
+
#wptouch-settings-content .cloud-update-issue a {
|
1578 |
+
text-decoration: underline;
|
1579 |
+
font-weight: bold;
|
1580 |
+
}
|
1581 |
+
|
1582 |
+
.cloud-update-issue:before {
|
1583 |
+
content: '\e816';
|
1584 |
+
color: #eb5768;
|
1585 |
+
position: absolute;
|
1586 |
+
left: 50px;
|
1587 |
+
top: 50%;
|
1588 |
+
font: 60px/60px 'fontello';
|
1589 |
+
margin-top: -30px;
|
1590 |
+
}
|
1591 |
+
|
1592 |
+
#wptouch-settings-content ul.cloud-browser {
|
1593 |
+
margin-top: 0;
|
1594 |
+
}
|
1595 |
+
|
1596 |
+
#wptouch-settings-content ul.cloud-browser > li {
|
1597 |
+
display: block;
|
1598 |
+
color: #656e78;
|
1599 |
+
border-bottom: 1px solid #e7eaed;
|
1600 |
+
position: relative;
|
1601 |
+
min-height: 90px;
|
1602 |
+
padding: 20px 0;
|
1603 |
+
margin: 0;
|
1604 |
+
}
|
1605 |
+
|
1606 |
+
#wptouch-settings-content ul.cloud-browser > li .installed {
|
1607 |
+
color: green;
|
1608 |
+
font-style: italic;
|
1609 |
+
display: inline-block;
|
1610 |
+
font-size: 12px;
|
1611 |
+
position: relative;
|
1612 |
+
top: -5px;
|
1613 |
+
left: 5px;
|
1614 |
+
}
|
1615 |
+
|
1616 |
+
#wptouch-settings-content ul.cloud-browser > li:last-child {
|
1617 |
+
border-bottom-style: none;
|
1618 |
+
}
|
1619 |
+
|
1620 |
+
#wptouch-settings-content ul.cloud-browser.themes > li.active {
|
1621 |
+
border-bottom-width: 5px;
|
1622 |
+
}
|
1623 |
+
|
1624 |
+
#wptouch-settings-content ul.cloud-browser > li:hover {
|
1625 |
+
cursor: pointer;
|
1626 |
+
}
|
1627 |
+
|
1628 |
+
#wptouch-settings-content ul.cloud-browser > li:hover img {
|
1629 |
+
-webkit-transform: scale(1.05);
|
1630 |
+
transform: scale(1.05);
|
1631 |
+
}
|
1632 |
+
|
1633 |
+
#wptouch-settings-content ul.cloud-browser > li:hover h2, #wptouch-settings-content ul.cloud-browser > li:hover:after {
|
1634 |
+
color: #55c2e8;
|
1635 |
+
}
|
1636 |
+
|
1637 |
+
#wptouch-settings-content ul.cloud-browser > li:after {
|
1638 |
+
content: '\e815';
|
1639 |
+
position: absolute;
|
1640 |
+
right: 0;
|
1641 |
+
top: 50%;
|
1642 |
+
font: 26px/26px 'fontello';
|
1643 |
+
color: #abb3bd;
|
1644 |
+
margin-top: -13px;
|
1645 |
+
}
|
1646 |
+
|
1647 |
+
#wptouch-settings-content ul.cloud-browser > li.active h2 {
|
1648 |
+
color: #8ec159;
|
1649 |
+
}
|
1650 |
+
|
1651 |
+
#wptouch-settings-content ul.cloud-browser > li.active h2:after {
|
1652 |
+
content: '\e801';
|
1653 |
+
color: #8ec159;
|
1654 |
+
font: 22px 'fontello';
|
1655 |
+
position: relative;
|
1656 |
+
bottom: 4px;
|
1657 |
+
left: 0;
|
1658 |
+
}
|
1659 |
+
|
1660 |
+
#wptouch-settings-content ul.cloud-browser h2 {
|
1661 |
+
font-weight: 300;
|
1662 |
+
font-size: 24px;
|
1663 |
+
text-transform: uppercase;
|
1664 |
+
color: #434a54;
|
1665 |
+
margin-bottom: 8px;
|
1666 |
+
overflow: hidden;
|
1667 |
+
white-space: nowrap;
|
1668 |
+
text-overflow: ellipsis;
|
1669 |
+
line-height: 100%;
|
1670 |
+
display: block;
|
1671 |
+
margin-top: 8px;
|
1672 |
+
width: 70%;
|
1673 |
+
}
|
1674 |
+
|
1675 |
+
#wptouch-settings-content ul.cloud-browser li h2, #wptouch-settings-content ul.cloud-browser > li p {
|
1676 |
+
margin-left: 120px;
|
1677 |
+
padding-right: 60px;
|
1678 |
+
}
|
1679 |
+
|
1680 |
+
#wptouch-settings-content ul.cloud-browser .image-wrapper {
|
1681 |
+
width: 92px;
|
1682 |
+
height: 92px;
|
1683 |
+
margin-right: 20px;
|
1684 |
+
position: absolute;
|
1685 |
+
top: 50%;
|
1686 |
+
margin-top: -45px;
|
1687 |
+
}
|
1688 |
+
|
1689 |
+
#wptouch-settings-content ul.cloud-browser .image-wrapper img {
|
1690 |
+
-webkit-transition-duration: .25s;
|
1691 |
+
transition-duration: .25s;
|
1692 |
+
width: 100%;
|
1693 |
+
height: auto;
|
1694 |
+
min-height: 90px;
|
1695 |
+
border-radius: 4px;
|
1696 |
+
}
|
1697 |
+
|
1698 |
+
.none-available center i {
|
1699 |
+
font-size: 100px;
|
1700 |
+
display: block;
|
1701 |
+
margin-top: 100px;
|
1702 |
+
color: #eee;
|
1703 |
+
}
|
1704 |
+
|
1705 |
+
.none-available p {
|
1706 |
+
color: #eee;
|
1707 |
+
font-size: 18px;
|
1708 |
+
}
|
1709 |
+
|
1710 |
+
/* @end */
|
1711 |
+
|
1712 |
+
/* @group Single Theme or Extension */
|
1713 |
+
|
1714 |
+
.inner-section {
|
1715 |
+
border-top: 1px solid #e7eaed;
|
1716 |
+
padding-bottom: 25px;
|
1717 |
+
padding-top: 25px;
|
1718 |
+
min-height: 110px;
|
1719 |
+
}
|
1720 |
+
|
1721 |
+
#wptouch-settings-content .back-link {
|
1722 |
+
padding-top: 15px;
|
1723 |
+
padding-bottom: 15px;
|
1724 |
+
text-transform: uppercase;
|
1725 |
+
font-size: 15px;
|
1726 |
+
}
|
1727 |
+
|
1728 |
+
.inner-section h3 {
|
1729 |
+
font-size: 15px;
|
1730 |
+
margin-bottom: 20px;
|
1731 |
+
}
|
1732 |
+
|
1733 |
+
/* @group Item Info */
|
1734 |
+
|
1735 |
+
.inner-section .image-wrapper {
|
1736 |
+
width: 120px;
|
1737 |
+
height: 120px;
|
1738 |
+
position: absolute;
|
1739 |
+
top: 50%;
|
1740 |
+
margin-top: -55px;
|
1741 |
+
}
|
1742 |
+
|
1743 |
+
.inner-section .image-wrapper img {
|
1744 |
+
-webkit-transition-duration: .25s;
|
1745 |
+
transition-duration: .25s;
|
1746 |
+
width: 100%;
|
1747 |
+
height: auto;
|
1748 |
+
min-height: 90px;
|
1749 |
+
border-radius: 4px;
|
1750 |
+
}
|
1751 |
+
|
1752 |
+
.inner-section h2 {
|
1753 |
+
font-size: 32px;
|
1754 |
+
font-weight: 300;
|
1755 |
+
text-transform: uppercase;
|
1756 |
+
line-height: 100%;
|
1757 |
+
margin-top: 10px;
|
1758 |
+
margin-bottom: 10px;
|
1759 |
+
margin-left: 140px;
|
1760 |
+
}
|
1761 |
+
|
1762 |
+
/* @group My Group */
|
1763 |
+
|
1764 |
+
/* @end */
|
1765 |
+
|
1766 |
+
.active .inner-section h2 {
|
1767 |
+
color: #8ec159;
|
1768 |
+
}
|
1769 |
+
.inner-view i.icon-ok-circle {
|
1770 |
+
display: none;
|
1771 |
+
}
|
1772 |
+
|
1773 |
+
.active .inner-view i.icon-ok-circle {
|
1774 |
+
font-size: 22px;
|
1775 |
+
color: #8ec159;
|
1776 |
+
margin-left: -10px;
|
1777 |
+
line-height: 0;
|
1778 |
+
position: relative;
|
1779 |
+
bottom: 4px;
|
1780 |
+
}
|
1781 |
+
|
1782 |
+
.inner-section h2 .version {
|
1783 |
+
font-size: 15px;
|
1784 |
+
position: relative;
|
1785 |
+
color: #abb3bd;
|
1786 |
+
vertical-align: bottom;
|
1787 |
+
}
|
1788 |
+
|
1789 |
+
.inner-view img.item-logo {
|
1790 |
+
height: auto;
|
1791 |
+
width: 114px;
|
1792 |
+
position: absolute;
|
1793 |
+
top: 50%;
|
1794 |
+
left: 0;
|
1795 |
+
margin-top: -57px;
|
1796 |
+
}
|
1797 |
+
|
1798 |
+
.inner-view .item-information {
|
1799 |
+
position: relative;
|
1800 |
+
}
|
1801 |
+
|
1802 |
+
.inner-view .action-buttons {
|
1803 |
+
margin-left: 140px;
|
1804 |
+
}
|
1805 |
+
|
1806 |
+
#wptouch-settings-content .inner-view a.button {
|
1807 |
+
background-color: #42b0d9;
|
1808 |
+
border: none;
|
1809 |
+
box-shadow: none;
|
1810 |
+
text-shadow: none;
|
1811 |
+
padding-left: 16px;
|
1812 |
+
padding-right: 16px;
|
1813 |
+
color: #fff;
|
1814 |
+
}
|
1815 |
+
|
1816 |
+
#wptouch-settings-content .inner-view a.button.upgrade, #wptouch-settings-content .inner-view a.button.buynow {
|
1817 |
+
background-color: #8ec159;
|
1818 |
+
}
|
1819 |
+
|
1820 |
+
.inner-view .item-information p {
|
1821 |
+
margin: 0 0 10px 140px;
|
1822 |
+
}
|
1823 |
+
|
1824 |
+
/* @end */
|
1825 |
+
|
1826 |
+
/* @group Screenshots */
|
1827 |
+
|
1828 |
+
.screenshot-carousel {
|
1829 |
+
overflow: scroll;
|
1830 |
+
}
|
1831 |
+
|
1832 |
+
.screenshot-carousel > div {
|
1833 |
+
white-space: nowrap;
|
1834 |
+
}
|
1835 |
+
|
1836 |
+
.screenshot-carousel img {
|
1837 |
+
width: 150px;
|
1838 |
+
margin: 8px 5px;
|
1839 |
+
border: 1px solid #e7eaed;
|
1840 |
+
height: auto;
|
1841 |
+
}
|
1842 |
+
|
1843 |
+
/* @end */
|
1844 |
+
|
1845 |
+
/* @group Changelog */
|
1846 |
+
|
1847 |
+
.inner-section.changelog em {
|
1848 |
+
display: block;
|
1849 |
+
margin-bottom: 10px;
|
1850 |
+
margin-top: 30px;
|
1851 |
+
font-weight: bold;
|
1852 |
+
}
|
1853 |
+
|
1854 |
+
.inner-section.changelog {
|
1855 |
+
max-height: 500px;
|
1856 |
+
overflow-y: scroll;
|
1857 |
+
}
|
1858 |
+
|
1859 |
+
/* @end */
|
1860 |
+
|
1861 |
+
/* @end */
|
1862 |
+
|
1863 |
+
/* @end */
|
1864 |
+
|
1865 |
+
/* @group Unlicensed */
|
1866 |
+
|
1867 |
+
#wptouch-settings-area .alert-wrap {
|
1868 |
+
border-bottom: 1px solid #d0dfe9;
|
1869 |
+
padding-bottom: 10px;
|
1870 |
+
padding-top: 10px;
|
1871 |
+
}
|
1872 |
+
|
1873 |
+
#wptouch-settings-area .alert {
|
1874 |
+
-webkit-animation: pulse 1.5s infinite;
|
1875 |
+
-moz-animation: pulse 1.5s infinite;
|
1876 |
+
-ms-animation: pulse 1.5s infinite;
|
1877 |
+
-o-animation: pulse 1.5s infinite;
|
1878 |
+
animation: pulse 1.5s infinite;
|
1879 |
+
-webkit-animation-direction: alternate;
|
1880 |
+
-webkit-animation-timing-function: ease-out;
|
1881 |
+
-moz-animation-timing-function: ease-out;
|
1882 |
+
-ms-animation-timing-function: ease-out;
|
1883 |
+
-o-animation-timing-function: ease-out;
|
1884 |
+
animation-timing-function: ease-out;
|
1885 |
+
color: #ff6b49;
|
1886 |
+
padding: 8px;
|
1887 |
+
position: relative;
|
1888 |
+
font-weight: bold;
|
1889 |
+
font-size: 13px;
|
1890 |
+
margin: 0;
|
1891 |
+
border: 1px solid #fcc78a;
|
1892 |
+
}
|
1893 |
+
|
1894 |
+
#wptouch-settings-area .alert a.btn {
|
1895 |
+
color: #fff;
|
1896 |
+
position: absolute;
|
1897 |
+
top: 4px;
|
1898 |
+
right: 4px;
|
1899 |
+
text-transform: uppercase;
|
1900 |
+
}
|
1901 |
+
|
1902 |
+
/* @end */
|
1903 |
+
|
1904 |
+
/* @group License & Support */
|
1905 |
+
|
1906 |
+
/* @group Modal */
|
1907 |
+
|
1908 |
+
.remodal div button {
|
1909 |
+
margin-top: 30px;
|
1910 |
+
cursor: pointer;
|
1911 |
+
}
|
1912 |
+
|
1913 |
+
.remodal h1 {
|
1914 |
+
font-weight: 300;
|
1915 |
+
text-transform: uppercase;
|
1916 |
+
margin: 0;
|
1917 |
+
padding: 20px 0 10px;
|
1918 |
+
}
|
1919 |
+
|
1920 |
+
.remodal p {
|
1921 |
+
padding-top: 5px;
|
1922 |
+
margin-bottom: 0;
|
1923 |
+
}
|
1924 |
+
|
1925 |
+
.remodal-confirm {
|
1926 |
+
background-color: #8ec159;
|
1927 |
+
border: 0;
|
1928 |
+
color: #fff;
|
1929 |
+
padding: 6px 28px;
|
1930 |
+
border-radius: 2px;
|
1931 |
+
}
|
1932 |
+
|
1933 |
+
/* @group Progress Bars */
|
1934 |
+
|
1935 |
+
.progress {
|
1936 |
+
width: 80%;
|
1937 |
+
height: 12px;
|
1938 |
+
border-radius: 4px;
|
1939 |
+
overflow: hidden;
|
1940 |
+
border: 1px solid #cdd2d9;
|
1941 |
+
background-color: #e7eaed;
|
1942 |
+
margin: 20px auto;
|
1943 |
+
-webkit-transition: .5s;
|
1944 |
+
-moz-transition: .5s;
|
1945 |
+
-o-transition: .5s;
|
1946 |
+
transition: .5s;
|
1947 |
+
}
|
1948 |
+
|
1949 |
+
.progress .bar {
|
1950 |
+
width: 0%;
|
1951 |
+
height: 100%;
|
1952 |
+
text-align: center;
|
1953 |
+
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
|
1954 |
+
background-color: #55c2e8;
|
1955 |
+
-webkit-box-sizing: border-box;
|
1956 |
+
-moz-box-sizing: border-box;
|
1957 |
+
box-sizing: border-box;
|
1958 |
+
-webkit-transition: 1s;
|
1959 |
+
-moz-transition: 1s;
|
1960 |
+
-o-transition: 1s;
|
1961 |
+
transition: 1s;
|
1962 |
+
}
|
1963 |
+
|
1964 |
+
.progress .bar.bar-issue {
|
1965 |
+
background-color: #f5bb4f;
|
1966 |
+
}
|
1967 |
+
|
1968 |
+
.progress .bar.bar-license {
|
1969 |
+
background-color: #eb89c0;
|
1970 |
+
}
|
1971 |
+
|
1972 |
+
.progress .bar.bar-fail {
|
1973 |
+
background-color: #eb5768;
|
1974 |
+
}
|
1975 |
+
|
1976 |
+
.progress .bar.bar-success {
|
1977 |
+
background-color: #8ec159;
|
1978 |
+
}
|
1979 |
+
|
1980 |
+
.progress.complete {
|
1981 |
+
width: 140px;
|
1982 |
+
height: 140px;
|
1983 |
+
border-radius: 140px;
|
1984 |
+
}
|
1985 |
+
|
1986 |
+
.progress.complete .bar-issue:after {
|
1987 |
+
content: '\e81a';
|
1988 |
+
color: #fff;
|
1989 |
+
top: 35px;
|
1990 |
+
position: relative;
|
1991 |
+
font: 70px/70px fontello;
|
1992 |
+
}
|
1993 |
+
|
1994 |
+
.progress.complete .bar-fail:after {
|
1995 |
+
content: '\e812';
|
1996 |
+
color: #fff;
|
1997 |
+
top: 35px;
|
1998 |
+
position: relative;
|
1999 |
+
font: 70px/70px fontello;
|
2000 |
+
}
|
2001 |
+
|
2002 |
+
.progress.complete .bar-success:after {
|
2003 |
+
content: '\e814';
|
2004 |
+
color: #fff;
|
2005 |
+
top: 35px;
|
2006 |
+
position: relative;
|
2007 |
+
font: 70px/70px fontello;
|
2008 |
+
}
|
2009 |
+
|
2010 |
+
.progress.complete .bar-license:after {
|
2011 |
+
content: '\e81c';
|
2012 |
+
color: #fff;
|
2013 |
+
top: 35px;
|
2014 |
+
position: relative;
|
2015 |
+
font: 70px/70px fontello;
|
2016 |
+
}
|
2017 |
+
|
2018 |
+
.progress .bar.bar-success.circle {
|
2019 |
+
width: 80px;
|
2020 |
+
height: 80px;
|
2021 |
+
}
|
2022 |
+
|
2023 |
+
/* @end */
|
2024 |
+
|
2025 |
+
/* @end */
|
2026 |
+
|
2027 |
+
[class*="wptouch-admin-license"] #wpfooter {
|
2028 |
+
position: fixed !important;
|
2029 |
+
}
|
2030 |
+
|
2031 |
+
[class*="wptouch-admin-license"] #wptouch-settings-content {
|
2032 |
+
margin-right: auto;
|
2033 |
+
margin-left: auto;
|
2034 |
+
margin-bottom: -20px;
|
2035 |
+
}
|
2036 |
+
|
2037 |
+
[class*="wptouch-admin-license"] #wptouch-settings-area h2 {
|
2038 |
+
text-transform: uppercase;
|
2039 |
+
font-weight: 300;
|
2040 |
+
padding-bottom: 10px;
|
2041 |
+
border-bottom: 1px solid #e7eaed;
|
2042 |
+
color: #434a54;
|
2043 |
+
}
|
2044 |
+
|
2045 |
+
[class*="wptouch-admin-license"] #wptouch-settings-area h3 {
|
2046 |
+
text-transform: uppercase;
|
2047 |
+
font-weight: 300;
|
2048 |
+
font-size: 18px;
|
2049 |
+
margin: 0;
|
2050 |
+
}
|
2051 |
+
|
2052 |
+
[class*="wptouch-admin-license"] #wptouch-settings-area h5 {
|
2053 |
+
font-size: 13px;
|
2054 |
+
font-weight: normal;
|
2055 |
+
font-style: normal;
|
2056 |
+
margin: 5px 0;
|
2057 |
+
}
|
2058 |
+
|
2059 |
+
.wptouch-account tr td {
|
2060 |
+
padding-top: 5px;
|
2061 |
+
padding-bottom: 5px;
|
2062 |
+
}
|
2063 |
+
|
2064 |
+
[class*="wptouch-admin-license"] tr td:first-child {
|
2065 |
+
width: 40%;
|
2066 |
+
padding-right: 3%;
|
2067 |
+
}
|
2068 |
+
|
2069 |
+
[class*="wptouch-admin-license"] #wptouch-settings-content table {
|
2070 |
+
font-size: 15px;
|
2071 |
+
color: #656e78;
|
2072 |
+
margin-bottom: 40px;
|
2073 |
+
}
|
2074 |
+
|
2075 |
+
/* @group Account */
|
2076 |
+
|
2077 |
+
.wptouch-account {
|
2078 |
+
width: 48%;
|
2079 |
+
float: left;
|
2080 |
+
}
|
2081 |
+
|
2082 |
+
.unlicensed h5 {
|
2083 |
+
color: #fa6f57;
|
2084 |
+
}
|
2085 |
+
|
2086 |
+
.wptouch-account #license-settings-area {
|
2087 |
+
text-align: left;
|
2088 |
+
}
|
2089 |
+
|
2090 |
+
.wptouch-account img {
|
2091 |
+
border-radius: 80px;
|
2092 |
+
width: 74px;
|
2093 |
+
height: 74px;
|
2094 |
+
margin-right: 10px;
|
2095 |
+
}
|
2096 |
+
|
2097 |
+
.wptouch-account tr td:first-child {
|
2098 |
+
text-transform: uppercase;
|
2099 |
+
text-align: right;
|
2100 |
+
width: auto;
|
2101 |
+
min-width: 140px;
|
2102 |
+
padding-bottom: 6px;
|
2103 |
+
padding-top: 6px;
|
2104 |
+
}
|
2105 |
+
|
2106 |
+
.wptouch-account tr td a {
|
2107 |
+
font-size: 13px;
|
2108 |
+
}
|
2109 |
+
|
2110 |
+
.wptouch-account tr td a.remove-license {
|
2111 |
+
color: #eb5768;
|
2112 |
+
}
|
2113 |
+
|
2114 |
+
.wptouch-account tr td:last-child {
|
2115 |
+
width: 100%;
|
2116 |
+
}
|
2117 |
+
|
2118 |
+
#license-settings-area input[type="text"], #license-settings-area input[type="password"] {
|
2119 |
+
position: relative;
|
2120 |
+
right: auto;
|
2121 |
+
top: auto;
|
2122 |
+
font-size: 14px;
|
2123 |
+
color: #807f80;
|
2124 |
+
margin-bottom: 15px;
|
2125 |
+
padding: 6px;
|
2126 |
+
display: block;
|
2127 |
+
width: 90%;
|
2128 |
+
}
|
2129 |
+
|
2130 |
+
/* @end */
|
2131 |
+
|
2132 |
+
/* @group Support */
|
2133 |
+
|
2134 |
+
.wptouch-support {
|
2135 |
+
width: 48%;
|
2136 |
+
float: right;
|
2137 |
+
}
|
2138 |
+
|
2139 |
+
.wptouch-support h4 {
|
2140 |
+
margin-top: 0;
|
2141 |
+
}
|
2142 |
+
|
2143 |
+
.wptouch-support td {
|
2144 |
+
vertical-align: top;
|
2145 |
+
padding-bottom: 10px;
|
2146 |
+
padding-top: 10px;
|
2147 |
+
}
|
2148 |
+
|
2149 |
+
.wptouch-support td img {
|
2150 |
+
width: 150px;
|
2151 |
+
}
|
2152 |
+
|
2153 |
+
/* @end */
|
2154 |
+
|
2155 |
+
/* @group Installation */
|
2156 |
+
|
2157 |
+
.wptouch-installation {
|
2158 |
+
float: none;
|
2159 |
+
clear: both;
|
2160 |
+
}
|
2161 |
+
|
2162 |
+
.wptouch-installation tr td:first-child {
|
2163 |
+
width: 30%;
|
2164 |
+
}
|
2165 |
+
|
2166 |
+
#wptouch-settings-content .wptouch-installation .button {
|
2167 |
+
font-weight: 300;
|
2168 |
+
width: 175px;
|
2169 |
+
text-align: center;
|
2170 |
+
background-color: #eb5768;
|
2171 |
+
}
|
2172 |
+
|
2173 |
+
#wptouch-settings-content .wptouch-installation #backup-button, #wptouch-settings-content .wptouch-installation #restore-button {
|
2174 |
+
background-color: #434a54;
|
2175 |
+
}
|
2176 |
+
|
2177 |
+
/* @end */
|
2178 |
+
|
2179 |
+
/* @end */
|
2180 |
+
|
2181 |
+
/* @group 3.x Backwards Compatibility */
|
2182 |
+
|
2183 |
+
#wptouch-settings-content .setting-image-upload {
|
2184 |
+
min-height: 100px;
|
2185 |
+
}
|
2186 |
+
|
2187 |
+
#wptouch-settings-content .image-placeholder {
|
2188 |
+
border: 1px dashed #d2d1d3;
|
2189 |
+
padding: 5px;
|
2190 |
+
margin-right: 25px;
|
2191 |
+
float: left;
|
2192 |
+
margin-top: -25px;
|
2193 |
+
border-radius: 3px;
|
2194 |
+
width: 90px;
|
2195 |
+
height: 90px;
|
2196 |
+
background-color: #f9f9f9;
|
2197 |
+
position: relative;
|
2198 |
+
}
|
2199 |
+
|
2200 |
+
#wptouch-settings-content .image-placeholder > img {
|
2201 |
+
max-width: 100%;
|
2202 |
+
height: auto;
|
2203 |
+
position: relative;
|
2204 |
+
z-index: 1;
|
2205 |
+
}
|
2206 |
+
|
2207 |
+
#wptouch-settings-content .uploader {
|
2208 |
+
position: relative;
|
2209 |
+
margin-top: 25px;
|
2210 |
+
}
|
2211 |
+
|
2212 |
+
#wptouch-settings-content .upload-desc {
|
2213 |
+
display: block;
|
2214 |
+
padding-top: 5px;
|
2215 |
+
margin-top: 5px;
|
2216 |
+
width: 500px;
|
2217 |
+
font-size: 13px;
|
2218 |
+
}
|
2219 |
+
|
2220 |
+
#wptouch-settings-content .uploader .progress {
|
2221 |
+
height: 4px;
|
2222 |
+
width: 80px;
|
2223 |
+
position: absolute;
|
2224 |
+
display: inline-block;
|
2225 |
+
margin-bottom: 0;
|
2226 |
+
top: 50%;
|
2227 |
+
margin-top: -2px;
|
2228 |
+
right: 0;
|
2229 |
+
left: 0;
|
2230 |
+
z-index: 0;
|
2231 |
+
}
|
2232 |
+
|
2233 |
+
#wptouch-settings-content .uploader button.delete {
|
2234 |
+
background-color: #eb5768;
|
2235 |
+
}
|
2236 |
+
|
2237 |
+
/* @end */
|
2238 |
+
|
2239 |
+
/* @group Free Version */
|
2240 |
+
|
2241 |
+
#license-settings-area.wptouch-clearfix {
|
2242 |
+
height: 200px;
|
2243 |
+
}
|
2244 |
+
|
2245 |
+
#license-settings-area.wptouch-clearfix input[type="text"] {
|
2246 |
+
width: 300px;
|
2247 |
+
}
|
2248 |
+
|
2249 |
+
#section-handle-gopro > h3 {
|
2250 |
+
display: none;
|
2251 |
+
}
|
2252 |
+
|
2253 |
+
#section-handle-gopro ul.padded {
|
2254 |
+
border: none;
|
2255 |
+
margin-top: 0;
|
2256 |
+
}
|
2257 |
+
|
2258 |
+
#section-handle-gopro #license-settings-area {
|
2259 |
+
margin-bottom: 20px;
|
2260 |
+
}
|
2261 |
+
|
2262 |
+
#upgrade-area {
|
2263 |
+
padding: 40px;
|
2264 |
+
margin: -60px -45px -75px;
|
2265 |
+
}
|
2266 |
+
|
2267 |
+
/* @end */
|
2268 |
+
|
2269 |
+
@media all and (max-width: 768px) {
|
2270 |
+
|
2271 |
+
.wptouch-account, .wptouch-support {
|
2272 |
+
width: 100%;
|
2273 |
+
float: none;
|
2274 |
+
}
|
2275 |
+
|
2276 |
+
.wptouch-pro_page_wptouch-admin-license table {
|
2277 |
+
border-collapse: collapse;
|
2278 |
+
}
|
2279 |
+
|
2280 |
+
.wptouch-pro_page_wptouch-admin-license tr td {
|
2281 |
+
width: 100%;
|
2282 |
+
}
|
2283 |
+
|
2284 |
+
}
|
admin/css/wptouch-admin-remodal.css
ADDED
@@ -0,0 +1,330 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/* @group ReModal */
|
2 |
+
|
3 |
+
.remodal .status button {
|
4 |
+
font-weight: 300;
|
5 |
+
background-color: #656e78;
|
6 |
+
border: none;
|
7 |
+
color: #fff;
|
8 |
+
-webkit-box-shadow: none;
|
9 |
+
-moz-box-shadow: none;
|
10 |
+
box-shadow: none;
|
11 |
+
font: 12px lato, 'open sans', sans-serif;
|
12 |
+
height: auto;
|
13 |
+
padding: 6px 18px;
|
14 |
+
border-radius: 2px;
|
15 |
+
cursor: pointer;
|
16 |
+
}
|
17 |
+
|
18 |
+
.remodal .status button.disabled {
|
19 |
+
opacity: .6;
|
20 |
+
}
|
21 |
+
|
22 |
+
.remodal div button {
|
23 |
+
margin-top: 30px;
|
24 |
+
cursor: pointer;
|
25 |
+
}
|
26 |
+
|
27 |
+
.remodal h1 {
|
28 |
+
font-weight: 300;
|
29 |
+
text-transform: uppercase;
|
30 |
+
margin: 0;
|
31 |
+
padding: 20px 0 10px;
|
32 |
+
}
|
33 |
+
|
34 |
+
.remodal p {
|
35 |
+
padding-top: 5px;
|
36 |
+
margin-bottom: 0;
|
37 |
+
}
|
38 |
+
|
39 |
+
.remodal-confirm {
|
40 |
+
background-color: #8ec159;
|
41 |
+
border: 0;
|
42 |
+
color: #fff;
|
43 |
+
padding: 6px 28px;
|
44 |
+
border-radius: 2px;
|
45 |
+
}
|
46 |
+
|
47 |
+
html.remodal-is-locked {
|
48 |
+
overflow: hidden;
|
49 |
+
}
|
50 |
+
|
51 |
+
.remodal,
|
52 |
+
[data-remodal-id] {
|
53 |
+
display: none;
|
54 |
+
}
|
55 |
+
|
56 |
+
.remodal-overlay {
|
57 |
+
position: fixed;
|
58 |
+
z-index: 9999;
|
59 |
+
top: -5000px;
|
60 |
+
right: -5000px;
|
61 |
+
bottom: -5000px;
|
62 |
+
left: -5000px;
|
63 |
+
display: none;
|
64 |
+
}
|
65 |
+
|
66 |
+
.remodal-wrapper {
|
67 |
+
position: fixed;
|
68 |
+
z-index: 10000;
|
69 |
+
top: 0;
|
70 |
+
right: 0;
|
71 |
+
bottom: 0;
|
72 |
+
left: 0;
|
73 |
+
display: none;
|
74 |
+
overflow: auto;
|
75 |
+
text-align: center;
|
76 |
+
-webkit-overflow-scrolling: touch;
|
77 |
+
}
|
78 |
+
|
79 |
+
.remodal-wrapper:after {
|
80 |
+
display: inline-block;
|
81 |
+
height: 100%;
|
82 |
+
margin-left: -0.05em;
|
83 |
+
content: '';
|
84 |
+
}
|
85 |
+
|
86 |
+
/* Fix iPad, iPhone glitches */
|
87 |
+
|
88 |
+
.remodal-overlay,
|
89 |
+
.remodal-wrapper {
|
90 |
+
-webkit-backface-visibility: hidden;
|
91 |
+
backface-visibility: hidden;
|
92 |
+
}
|
93 |
+
|
94 |
+
/* Necessary styles of the modal dialog */
|
95 |
+
|
96 |
+
.remodal {
|
97 |
+
font-family: lato, 'open sans', sans-serif;
|
98 |
+
position: relative;
|
99 |
+
}
|
100 |
+
|
101 |
+
.remodal-is-initialized {
|
102 |
+
display: inline-block;
|
103 |
+
}
|
104 |
+
|
105 |
+
.remodal-bg.remodal-is-opening,
|
106 |
+
.remodal-bg.remodal-is-opened {
|
107 |
+
-webkit-filter: blur(3px);
|
108 |
+
filter: blur(3px);
|
109 |
+
}
|
110 |
+
|
111 |
+
/* Default theme styles of the overlay */
|
112 |
+
|
113 |
+
.remodal-overlay {
|
114 |
+
background: rgba(67,74,84,0.8);
|
115 |
+
}
|
116 |
+
|
117 |
+
.remodal-overlay.remodal-is-opening,
|
118 |
+
.remodal-overlay.remodal-is-closing {
|
119 |
+
-webkit-animation-fill-mode: forwards;
|
120 |
+
animation-fill-mode: forwards;
|
121 |
+
}
|
122 |
+
|
123 |
+
.remodal-overlay.remodal-is-opening {
|
124 |
+
-webkit-animation: remodal-overlay-opening-keyframes 0.33s;
|
125 |
+
animation: remodal-overlay-opening-keyframes 0.33s;
|
126 |
+
}
|
127 |
+
|
128 |
+
.remodal-overlay.remodal-is-closing {
|
129 |
+
-webkit-animation: remodal-overlay-closing-keyframes 0.33s;
|
130 |
+
animation: remodal-overlay-closing-keyframes 0.33s;
|
131 |
+
}
|
132 |
+
|
133 |
+
/* Default theme styles of the wrapper */
|
134 |
+
|
135 |
+
.remodal-wrapper {
|
136 |
+
padding: 10px 10px 0;
|
137 |
+
}
|
138 |
+
|
139 |
+
/* Default theme styles of the modal dialog */
|
140 |
+
|
141 |
+
.remodal {
|
142 |
+
-webkit-box-sizing: border-box;
|
143 |
+
box-sizing: border-box;
|
144 |
+
width: 100%;
|
145 |
+
margin-bottom: 10px;
|
146 |
+
padding: 35px;
|
147 |
+
-webkit-transform: translate3d(0, 0, 0);
|
148 |
+
transform: translate3d(0, 0, 0);
|
149 |
+
color: #656e78;
|
150 |
+
background: #fff;
|
151 |
+
}
|
152 |
+
|
153 |
+
.remodal.remodal-is-opening,
|
154 |
+
.remodal.remodal-is-closing {
|
155 |
+
-webkit-animation-fill-mode: forwards;
|
156 |
+
animation-fill-mode: forwards;
|
157 |
+
}
|
158 |
+
|
159 |
+
.remodal.remodal-is-opening {
|
160 |
+
-webkit-animation: remodal-opening-keyframes 0.33s;
|
161 |
+
animation: remodal-opening-keyframes 0.33s;
|
162 |
+
}
|
163 |
+
|
164 |
+
.remodal.remodal-is-closing {
|
165 |
+
-webkit-animation: remodal-closing-keyframes 0.33s;
|
166 |
+
animation: remodal-closing-keyframes 0.33s;
|
167 |
+
}
|
168 |
+
|
169 |
+
/* Vertical align of the modal dialog */
|
170 |
+
|
171 |
+
.remodal,
|
172 |
+
.remodal-wrapper:after {
|
173 |
+
vertical-align: middle;
|
174 |
+
}
|
175 |
+
|
176 |
+
/* Close button */
|
177 |
+
|
178 |
+
.remodal-close {
|
179 |
+
position: absolute;
|
180 |
+
top: 0;
|
181 |
+
left: 0;
|
182 |
+
display: block;
|
183 |
+
overflow: visible;
|
184 |
+
width: 40px;
|
185 |
+
height: 40px;
|
186 |
+
margin: 0;
|
187 |
+
padding: 0;
|
188 |
+
cursor: pointer;
|
189 |
+
-webkit-transition: 0.33s;
|
190 |
+
transition: 0.33s;
|
191 |
+
text-decoration: none;
|
192 |
+
color: #95979c;
|
193 |
+
border: 0;
|
194 |
+
outline: 0;
|
195 |
+
background: transparent;
|
196 |
+
}
|
197 |
+
|
198 |
+
.remodal-close:hover,
|
199 |
+
.remodal-close:focus {
|
200 |
+
color: #2b2e38;
|
201 |
+
-webkit-transform: rotate(-90deg);
|
202 |
+
}
|
203 |
+
|
204 |
+
.remodal-close:before {
|
205 |
+
font-size: 32px;
|
206 |
+
line-height: 40px;
|
207 |
+
position: absolute;
|
208 |
+
top: 0;
|
209 |
+
left: 3px;
|
210 |
+
display: block;
|
211 |
+
width: 35px;
|
212 |
+
content: "\00d7";
|
213 |
+
text-align: center;
|
214 |
+
}
|
215 |
+
|
216 |
+
/* Keyframes
|
217 |
+
========================================================================== */
|
218 |
+
|
219 |
+
@-webkit-keyframes remodal-opening-keyframes {
|
220 |
+
from {
|
221 |
+
-webkit-transform: scale(1.05);
|
222 |
+
transform: scale(1.05);
|
223 |
+
opacity: 0;
|
224 |
+
}
|
225 |
+
|
226 |
+
to {
|
227 |
+
-webkit-transform: none;
|
228 |
+
transform: none;
|
229 |
+
opacity: 1;
|
230 |
+
}
|
231 |
+
|
232 |
+
}
|
233 |
+
|
234 |
+
@keyframes remodal-opening-keyframes {
|
235 |
+
from {
|
236 |
+
-webkit-transform: scale(1.05);
|
237 |
+
transform: scale(1.05);
|
238 |
+
opacity: 0;
|
239 |
+
}
|
240 |
+
|
241 |
+
to {
|
242 |
+
-webkit-transform: none;
|
243 |
+
transform: none;
|
244 |
+
opacity: 1;
|
245 |
+
}
|
246 |
+
|
247 |
+
}
|
248 |
+
|
249 |
+
@-webkit-keyframes remodal-closing-keyframes {
|
250 |
+
from {
|
251 |
+
-webkit-transform: scale(1);
|
252 |
+
transform: scale(1);
|
253 |
+
opacity: 1;
|
254 |
+
}
|
255 |
+
|
256 |
+
to {
|
257 |
+
-webkit-transform: scale(0.95);
|
258 |
+
transform: scale(0.95);
|
259 |
+
opacity: 0;
|
260 |
+
}
|
261 |
+
|
262 |
+
}
|
263 |
+
|
264 |
+
@keyframes remodal-closing-keyframes {
|
265 |
+
from {
|
266 |
+
-webkit-transform: scale(1);
|
267 |
+
transform: scale(1);
|
268 |
+
opacity: 1;
|
269 |
+
}
|
270 |
+
|
271 |
+
to {
|
272 |
+
-webkit-transform: scale(0.95);
|
273 |
+
transform: scale(0.95);
|
274 |
+
opacity: 0;
|
275 |
+
}
|
276 |
+
|
277 |
+
}
|
278 |
+
|
279 |
+
@-webkit-keyframes remodal-overlay-opening-keyframes {
|
280 |
+
from {
|
281 |
+
opacity: 0;
|
282 |
+
}
|
283 |
+
|
284 |
+
to {
|
285 |
+
opacity: 1;
|
286 |
+
}
|
287 |
+
|
288 |
+
}
|
289 |
+
|
290 |
+
@keyframes remodal-overlay-opening-keyframes {
|
291 |
+
from {
|
292 |
+
opacity: 0;
|
293 |
+
}
|
294 |
+
|
295 |
+
to {
|
296 |
+
opacity: 1;
|
297 |
+
}
|
298 |
+
|
299 |
+
}
|
300 |
+
|
301 |
+
@-webkit-keyframes remodal-overlay-closing-keyframes {
|
302 |
+
from {
|
303 |
+
opacity: 1;
|
304 |
+
}
|
305 |
+
|
306 |
+
to {
|
307 |
+
opacity: 0;
|
308 |
+
}
|
309 |
+
|
310 |
+
}
|
311 |
+
|
312 |
+
@keyframes remodal-overlay-closing-keyframes {
|
313 |
+
from {
|
314 |
+
opacity: 1;
|
315 |
+
}
|
316 |
+
|
317 |
+
to {
|
318 |
+
opacity: 0;
|
319 |
+
}
|
320 |
+
|
321 |
+
}
|
322 |
+
|
323 |
+
@media only screen and (min-width: 641px) {
|
324 |
+
.remodal {
|
325 |
+
max-width: 700px;
|
326 |
+
}
|
327 |
+
|
328 |
+
}
|
329 |
+
|
330 |
+
/* @end */
|
admin/css/wptouch-admin-rtl.css
ADDED
@@ -0,0 +1,211 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/* WPtouch Admin Styles for RTL languages */
|
2 |
+
|
3 |
+
/* @group Global */
|
4 |
+
|
5 |
+
ul#adminmenu a.wp-has-current-submenu:after, ul#adminmenu>li.current>a.current:after {
|
6 |
+
display: none;
|
7 |
+
}
|
8 |
+
|
9 |
+
h2.logo-title {
|
10 |
+
margin-left: auto;
|
11 |
+
margin-right: auto;
|
12 |
+
width: 90%;
|
13 |
+
max-width: 950px;
|
14 |
+
line-height: 40px;
|
15 |
+
position: relative;
|
16 |
+
}
|
17 |
+
|
18 |
+
h2.logo-title img {
|
19 |
+
height: 40px;
|
20 |
+
width: auto;
|
21 |
+
float: right;
|
22 |
+
margin-left: 10px;
|
23 |
+
margin-right: auto;
|
24 |
+
}
|
25 |
+
|
26 |
+
/* Force Lato */
|
27 |
+
|
28 |
+
#wptouch-settings-form * {
|
29 |
+
font-family: 'Lato', 'Open Sans', sans-serif !important;
|
30 |
+
}
|
31 |
+
|
32 |
+
#wptouch-settings-content {
|
33 |
+
padding: 45px;
|
34 |
+
margin-left: auto;
|
35 |
+
margin-right: 300px;
|
36 |
+
background-color: #fff;
|
37 |
+
border-right: 1px solid #e7eaed;
|
38 |
+
border-left: none;
|
39 |
+
}
|
40 |
+
|
41 |
+
.tooltip-arrow {
|
42 |
+
display: none;
|
43 |
+
}
|
44 |
+
|
45 |
+
/* @end */
|
46 |
+
|
47 |
+
/* @group Left Tab Menu */
|
48 |
+
|
49 |
+
#wptouch-admin-menu {
|
50 |
+
float: right;
|
51 |
+
}
|
52 |
+
|
53 |
+
#wptouch-admin-menu h2 {
|
54 |
+
margin-left: auto;
|
55 |
+
margin-right: 25px;
|
56 |
+
}
|
57 |
+
|
58 |
+
#wptouch-admin-menu ul li:after {
|
59 |
+
position: absolute;
|
60 |
+
bottom: 0;
|
61 |
+
height: 1px;
|
62 |
+
border-bottom: 1px solid #e7eaed;
|
63 |
+
width: 255px;
|
64 |
+
left: 0;
|
65 |
+
right: auto;
|
66 |
+
}
|
67 |
+
|
68 |
+
#wptouch-admin-menu ul li a:before {
|
69 |
+
margin-right: auto;
|
70 |
+
margin-left: 10px;
|
71 |
+
position: relative;
|
72 |
+
top: -1px;
|
73 |
+
font: 20px/20px 'fontello';
|
74 |
+
padding: 1px;
|
75 |
+
float: right;
|
76 |
+
}
|
77 |
+
|
78 |
+
#wptouch-admin-menu ul li a:after {
|
79 |
+
content: '\e817';
|
80 |
+
left: 15px;
|
81 |
+
right: auto;
|
82 |
+
}
|
83 |
+
|
84 |
+
#wptouch-admin-menu a.active:after {
|
85 |
+
border-left: 1px solid #fff;
|
86 |
+
left: -1px;
|
87 |
+
right: auto;
|
88 |
+
}
|
89 |
+
|
90 |
+
/* @end */
|
91 |
+
|
92 |
+
/* @group Sections */
|
93 |
+
|
94 |
+
|
95 |
+
.wptouch-section {
|
96 |
+
padding-right: 0;
|
97 |
+
padding-left: auto;
|
98 |
+
}
|
99 |
+
|
100 |
+
/* @end */
|
101 |
+
|
102 |
+
/* @group Checkbox Toggles */
|
103 |
+
|
104 |
+
.checkbox-wrap {
|
105 |
+
padding-left: 60px;
|
106 |
+
padding-right: 0;
|
107 |
+
}
|
108 |
+
|
109 |
+
input.checkbox + label {
|
110 |
+
right: auto;
|
111 |
+
left: 0;
|
112 |
+
}
|
113 |
+
|
114 |
+
input.checkbox + label:after {
|
115 |
+
top: 2px;
|
116 |
+
right: 2px;
|
117 |
+
left: auto;
|
118 |
+
bottom: 2px;
|
119 |
+
width: 16px;
|
120 |
+
background-color: #fff;
|
121 |
+
border-radius: 20px;
|
122 |
+
transition: margin 0.2s, background 0.2s;
|
123 |
+
}
|
124 |
+
|
125 |
+
|
126 |
+
input.checkbox:checked + label:after {
|
127 |
+
margin-right: 24px;
|
128 |
+
margin-left: auto;
|
129 |
+
background-color: #fff;
|
130 |
+
}
|
131 |
+
|
132 |
+
input.checkbox:disabled + label:after {
|
133 |
+
margin-right: 0px;
|
134 |
+
margin-left: auto;
|
135 |
+
}
|
136 |
+
|
137 |
+
/* @end */
|
138 |
+
|
139 |
+
|
140 |
+
/* @group License & Support */
|
141 |
+
|
142 |
+
[class*="wptouch-admin-license"] #wptouch-settings-content .wptouch-account table {
|
143 |
+
direction: ltr;
|
144 |
+
}
|
145 |
+
|
146 |
+
[class*="wptouch-admin-license"] #wptouch-settings-content .wptouch-installation table {
|
147 |
+
direction: rtl;
|
148 |
+
}
|
149 |
+
|
150 |
+
.wptouch-support td img {
|
151 |
+
width: 150px;
|
152 |
+
padding: 0;
|
153 |
+
margin-left: 25px;
|
154 |
+
}
|
155 |
+
|
156 |
+
|
157 |
+
/* @end */
|
158 |
+
|
159 |
+
/* @group Themes & Extensions */
|
160 |
+
|
161 |
+
#wptouch-settings-content ul.cloud-browser .image-wrapper {
|
162 |
+
margin-right: auto;
|
163 |
+
left: 0;
|
164 |
+
}
|
165 |
+
|
166 |
+
.inner-section .image-wrapper {
|
167 |
+
left: 0;
|
168 |
+
}
|
169 |
+
|
170 |
+
|
171 |
+
|
172 |
+
/* @end */
|
173 |
+
|
174 |
+
/* @group Updates Available */
|
175 |
+
|
176 |
+
#section-updates-available button.update-all {
|
177 |
+
left: 0;
|
178 |
+
right: auto;
|
179 |
+
}
|
180 |
+
|
181 |
+
#section-updates-available .cloud-update-issue {
|
182 |
+
margin-left: auto;
|
183 |
+
margin-right: -45px;
|
184 |
+
}
|
185 |
+
|
186 |
+
#section-updates-available div img {
|
187 |
+
float: right;
|
188 |
+
margin-right: auto;
|
189 |
+
margin-left: 12px;
|
190 |
+
}
|
191 |
+
|
192 |
+
#section-updates-available div span.version {
|
193 |
+
display: inline-block;
|
194 |
+
color: #abb3bd;
|
195 |
+
margin-left: auto;
|
196 |
+
margin-right: 5px;
|
197 |
+
}
|
198 |
+
|
199 |
+
#section-updates-available .update-version {
|
200 |
+
float: left;
|
201 |
+
}
|
202 |
+
|
203 |
+
.ajax-install a.button {
|
204 |
+
float: left;
|
205 |
+
}
|
206 |
+
|
207 |
+
/* @end */
|
208 |
+
|
209 |
+
.setting-list, .setting-text, .setting-custom-latest-posts {
|
210 |
+
text-align: left;
|
211 |
+
}
|
admin/css/wptouch-menu.css
ADDED
@@ -0,0 +1,122 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/* @override http://wptp3.local.com/wp-content/plugins/wptouch-pro/admin/css/wptouch-menu.css?ver=4.0b4 */
|
2 |
+
|
3 |
+
#icon-picker {
|
4 |
+
display: none;
|
5 |
+
overflow: hidden;
|
6 |
+
}
|
7 |
+
|
8 |
+
#icon-packs {
|
9 |
+
width: 500px;
|
10 |
+
height: 350px;
|
11 |
+
overflow-y: scroll;
|
12 |
+
padding: 10px;
|
13 |
+
margin: -1px;
|
14 |
+
}
|
15 |
+
|
16 |
+
#icon-packs li {
|
17 |
+
display: inline-block;
|
18 |
+
margin: 5px;
|
19 |
+
}
|
20 |
+
|
21 |
+
#icon-packs img {
|
22 |
+
width: 32px;
|
23 |
+
height: 32px;
|
24 |
+
cursor: pointer;
|
25 |
+
}
|
26 |
+
|
27 |
+
.wptouch-menu-icon a.button.change_icon {
|
28 |
+
cursor: pointer;
|
29 |
+
margin-left: 10px;
|
30 |
+
vertical-align: bottom;
|
31 |
+
position: relative;
|
32 |
+
bottom: 8px;
|
33 |
+
}
|
34 |
+
|
35 |
+
.wptouch-menu-icon a.remove_icon {
|
36 |
+
cursor: pointer;
|
37 |
+
position: relative;
|
38 |
+
bottom: 12px;
|
39 |
+
margin-left: 10px;
|
40 |
+
font-size: 11px;
|
41 |
+
}
|
42 |
+
|
43 |
+
.wptouch-menu-icon img.icon-preview {
|
44 |
+
margin-top: 10px;
|
45 |
+
}
|
46 |
+
|
47 |
+
/* @group Popovers */
|
48 |
+
|
49 |
+
.wptouch-popover {
|
50 |
+
position: absolute;
|
51 |
+
top: 0;
|
52 |
+
left: 0;
|
53 |
+
z-index: 1999;
|
54 |
+
display: none;
|
55 |
+
padding: 1px;
|
56 |
+
background-color: #ffffff;
|
57 |
+
-webkit-background-clip: padding-box;
|
58 |
+
background-clip: padding-box;
|
59 |
+
border: 1px solid rgba(124,124,124,0.2);
|
60 |
+
border-radius: 6px;
|
61 |
+
-webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
|
62 |
+
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
|
63 |
+
}
|
64 |
+
|
65 |
+
.wptouch-popover.bottom {
|
66 |
+
margin-top: 10px;
|
67 |
+
}
|
68 |
+
|
69 |
+
#menu-to-edit h3.popover-title {
|
70 |
+
margin: 0;
|
71 |
+
padding: 8px 14px;
|
72 |
+
font-size: 14px;
|
73 |
+
background-color: #f7f7f7;
|
74 |
+
border-bottom: 1px solid #ebebeb;
|
75 |
+
border-radius: 5px 5px 0 0;
|
76 |
+
}
|
77 |
+
.wptouch-popover .popover-content {
|
78 |
+
margin: 0;
|
79 |
+
padding: 0;
|
80 |
+
}
|
81 |
+
|
82 |
+
.wptouch-popover > .wptouch-arrow,
|
83 |
+
.wptouch-popover > .wptouch-arrow:after {
|
84 |
+
position: absolute;
|
85 |
+
display: block;
|
86 |
+
width: 0;
|
87 |
+
height: 0;
|
88 |
+
border-color: transparent;
|
89 |
+
border-style: solid;
|
90 |
+
}
|
91 |
+
|
92 |
+
.wptouch-popover > .wptouch-arrow {
|
93 |
+
border-width: 11px;
|
94 |
+
}
|
95 |
+
|
96 |
+
.wptouch-popover > .wptouch-arrow:after {
|
97 |
+
content: ' ';
|
98 |
+
border-width: 10px;
|
99 |
+
-webkit-box-sizing: border-box;
|
100 |
+
-moz-box-sizing: border-box;
|
101 |
+
box-sizing: border-box;
|
102 |
+
}
|
103 |
+
|
104 |
+
.wptouch-popover.bottom > .wptouch-arrow {
|
105 |
+
top: -11px;
|
106 |
+
left: 50%;
|
107 |
+
margin-left: -11px;
|
108 |
+
border-top-width: 0;
|
109 |
+
border-bottom-color: #999;
|
110 |
+
border-bottom-color: rgba(0,0,0,.25);
|
111 |
+
}
|
112 |
+
|
113 |
+
.wptouch-popover.bottom > .wptouch-arrow:after {
|
114 |
+
top: 1px;
|
115 |
+
margin-left: -10px;
|
116 |
+
content: " ";
|
117 |
+
border-top-width: 0;
|
118 |
+
border-bottom-color: #fff;
|
119 |
+
}
|
120 |
+
|
121 |
+
/* @end */
|
122 |
+
|
admin/customizer/wptouch-customizer-shim.js
ADDED
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
// Bauhaus & CMS & Classic
|
3 |
+
function doShimCustomizerReady() {
|
4 |
+
|
5 |
+
// Post thumbnails select
|
6 |
+
jQuery( '[id$=_use_thumbnails]' ).on( 'change wptouch.customizerReady', 'select', function() {
|
7 |
+
var thumbSetting = jQuery( '[id$=_thumbnail_type] *' );
|
8 |
+
|
9 |
+
switch( jQuery( this ).val() ) {
|
10 |
+
default:
|
11 |
+
thumbSetting.show();
|
12 |
+
break;
|
13 |
+
case 'none':
|
14 |
+
thumbSetting.hide();
|
15 |
+
break;
|
16 |
+
}
|
17 |
+
});
|
18 |
+
|
19 |
+
// Thumbnail Image
|
20 |
+
var thumbnailSelect = jQuery( '[id$=_thumbnail_type]' );
|
21 |
+
|
22 |
+
thumbnailSelect.on( 'change wptouch.customizerReady', 'select', function(){
|
23 |
+
if ( jQuery( this ).val() == 'featured' ) {
|
24 |
+
thumbnailSelect.next().find( '*' ).hide();
|
25 |
+
} else {
|
26 |
+
thumbnailSelect.next().find( '*' ).show();
|
27 |
+
}
|
28 |
+
});
|
29 |
+
|
30 |
+
jQuery( '#accordion-section-foundation-web-theme-settings' ).find( 'select' ).change();
|
31 |
+
|
32 |
+
}
|
33 |
+
|
34 |
+
|
35 |
+
jQuery( window ).load( function() {
|
36 |
+
doShimCustomizerReady();
|
37 |
+
});
|
admin/customizer/wptouch-customizer-switch.js
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
//TODO: localize!
|
2 |
+
// Setup Customizer Switch between mobile and desktop themes
|
3 |
+
(function( exports, $ ){
|
4 |
+
var current = jQuery.cookie( 'wptouch_customizer_use' ) || 'desktop';
|
5 |
+
|
6 |
+
jQuery( '#customize-info .accordion-section-title' ).append( '<div><button style="margin-top: 10px;" id="switch_to" class="button">' + WPtouchCustomizerSwitch.mobile_switch + '</button></div>' );
|
7 |
+
|
8 |
+
if ( current == 'mobile' ) { var next = 'desktop'; } else { var next = 'mobile'; }
|
9 |
+
|
10 |
+
if ( next == 'mobile' ) {
|
11 |
+
jQuery( '#switch_to' ).text( WPtouchCustomizerSwitch.mobile_switch );
|
12 |
+
jQuery( '#customize-theme-controls' ).css( 'padding-top', '0px' );
|
13 |
+
} else {
|
14 |
+
jQuery( '#switch_to' ).text( WPtouchCustomizerSwitch.desktop_switch );
|
15 |
+
jQuery( '#customize-theme-controls' ).css( 'padding-top', '15px' );
|
16 |
+
}
|
17 |
+
|
18 |
+
jQuery( '#switch_to' ).click( function( e ) {
|
19 |
+
e.preventDefault();
|
20 |
+
e.stopImmediatePropagation();
|
21 |
+
jQuery.cookie( 'wptouch_customizer_use', next, { expires: 0, path: '/' } );
|
22 |
+
window.location.reload();
|
23 |
+
});
|
24 |
+
|
25 |
+
})( wp, jQuery )
|
admin/customizer/wptouch-customizer-theme.js
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
// Add the preview code to load more URLs to ensure they load the WPtouch version of blog posts
|
3 |
+
function wptouchCustomizerThemeReady(){
|
4 |
+
var loadMoreLnk = jQuery( 'a.load-more-link, a.infinite-link' );
|
5 |
+
var currentRel = loadMoreLnk.attr( 'rel' );
|
6 |
+
if ( loadMoreLnk.length ) {
|
7 |
+
if( currentRel.indexOf( '?' ) > -1 ) {
|
8 |
+
var toAppend = '&wptouch_preview_theme=enabled';
|
9 |
+
} else {
|
10 |
+
var toAppend = '?wptouch_preview_theme=enabled';
|
11 |
+
}
|
12 |
+
|
13 |
+
var newRel = currentRel + toAppend;
|
14 |
+
|
15 |
+
jQuery( 'a.load-more-link, a.infinite-link' ).attr( 'rel', newRel );
|
16 |
+
}
|
17 |
+
}
|
18 |
+
|
19 |
+
jQuery( document ).ready( function() {
|
20 |
+
wptouchCustomizerThemeReady();
|
21 |
+
});
|
admin/customizer/wptouch-customizer.css
ADDED
@@ -0,0 +1,292 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
/* WPtouch Customizer Styling */
|
3 |
+
|
4 |
+
a:focus {
|
5 |
+
-webkit-box-shadow: none;
|
6 |
+
box-shadow: none;
|
7 |
+
}
|
8 |
+
|
9 |
+
|
10 |
+
/* @group Customizer */
|
11 |
+
|
12 |
+
.wp-customizer .wp-full-overlay {
|
13 |
+
background-image: url(../images/grid_square.png);
|
14 |
+
}
|
15 |
+
|
16 |
+
#customize-theme-controls select {
|
17 |
+
font-size: 12px;
|
18 |
+
width: 100%;
|
19 |
+
}
|
20 |
+
|
21 |
+
#customize-theme-controls .rangeval {
|
22 |
+
display: inline-block;
|
23 |
+
position: relative;
|
24 |
+
bottom: 8px;
|
25 |
+
border: 1px solid #ccc;
|
26 |
+
border-radius: 100px;
|
27 |
+
min-height: 4px;
|
28 |
+
min-width: 10px;
|
29 |
+
padding: 6px;
|
30 |
+
line-height: 80%;
|
31 |
+
font-size: 11px;
|
32 |
+
text-align: center;
|
33 |
+
margin-right: 5px;
|
34 |
+
margin-left: 10px;
|
35 |
+
font-weight: bold;
|
36 |
+
background-color: #f5f5f7;
|
37 |
+
}
|
38 |
+
|
39 |
+
#customize-theme-controls .placeholder {
|
40 |
+
border: 1px dashed #aaa;
|
41 |
+
min-height: 40px;
|
42 |
+
max-width: 99%;
|
43 |
+
}
|
44 |
+
|
45 |
+
.customize-control-no-setting-text input {
|
46 |
+
display: none;
|
47 |
+
}
|
48 |
+
|
49 |
+
li#customize-control-blogname, li#customize-control-blogdescription {
|
50 |
+
display: none;
|
51 |
+
visibility: hidden;
|
52 |
+
width: 0;
|
53 |
+
height: 0;
|
54 |
+
}
|
55 |
+
|
56 |
+
#customize-theme-controls .customize-control-image .container {
|
57 |
+
max-height: 300px;
|
58 |
+
width: auto;
|
59 |
+
text-align: center;
|
60 |
+
}
|
61 |
+
|
62 |
+
#customize-theme-controls .customize-control-image .container * {
|
63 |
+
width: auto;
|
64 |
+
max-height: 100%;
|
65 |
+
margin-left: auto;
|
66 |
+
margin-right: auto;
|
67 |
+
}
|
68 |
+
|
69 |
+
/* @end */
|
70 |
+
|
71 |
+
/* @group Preview Area */
|
72 |
+
|
73 |
+
#customize-preview {
|
74 |
+
-webkit-transition-duration: .33s;
|
75 |
+
transition-duration: .33s;
|
76 |
+
position: relative;
|
77 |
+
margin-left: auto;
|
78 |
+
margin-right: auto;
|
79 |
+
height: 730px;
|
80 |
+
width: 374px;
|
81 |
+
z-index: 0;
|
82 |
+
top: 50%;
|
83 |
+
margin-top: -340px;
|
84 |
+
}
|
85 |
+
|
86 |
+
#customize-preview iframe {
|
87 |
+
-webkit-transition-duration: .33s;
|
88 |
+
transition-duration: .33s;
|
89 |
+
position: absolute;
|
90 |
+
top: 0;
|
91 |
+
right: 0;
|
92 |
+
left: 0;
|
93 |
+
bottom: 0;
|
94 |
+
z-index: 1;
|
95 |
+
border-radius: 18px;
|
96 |
+
background-color: rgba(255,255,255,.1);
|
97 |
+
padding: 50px 16px 70px;
|
98 |
+
width: 340px;
|
99 |
+
height: 600px;
|
100 |
+
}
|
101 |
+
|
102 |
+
/* @group Smartphone Landscape */
|
103 |
+
|
104 |
+
#customize-preview.landscape {
|
105 |
+
width: 730px;
|
106 |
+
height: 374px;
|
107 |
+
margin-top: -240px;
|
108 |
+
top: 50%;
|
109 |
+
}
|
110 |
+
|
111 |
+
#customize-preview.landscape iframe {
|
112 |
+
width: 600px;
|
113 |
+
height: 340px;
|
114 |
+
padding: 16px 70px 16px 50px;
|
115 |
+
}
|
116 |
+
|
117 |
+
/* @end */
|
118 |
+
|
119 |
+
/* @group Tablet Portrait */
|
120 |
+
|
121 |
+
#customize-preview.tablet {
|
122 |
+
margin-left: auto;
|
123 |
+
margin-right: auto;
|
124 |
+
margin-top: -570px;
|
125 |
+
z-index: 0;
|
126 |
+
width: 800px;
|
127 |
+
-webkit-transform: scale(.8);
|
128 |
+
transform: scale(.8);
|
129 |
+
height: 1150px;
|
130 |
+
}
|
131 |
+
|
132 |
+
#customize-preview.tablet iframe {
|
133 |
+
padding: 50px 18px 80px;
|
134 |
+
border-radius: 22px;
|
135 |
+
width: 768px;
|
136 |
+
height: 1024px;
|
137 |
+
z-index: 1;
|
138 |
+
}
|
139 |
+
|
140 |
+
/* @end */
|
141 |
+
|
142 |
+
/* @group Tablet Landscape */
|
143 |
+
|
144 |
+
#customize-preview.tablet.landscape {
|
145 |
+
width: 1152px;
|
146 |
+
height: 800px;
|
147 |
+
top: 50%;
|
148 |
+
margin-top: -450px;
|
149 |
+
}
|
150 |
+
|
151 |
+
#customize-preview.tablet.landscape iframe {
|
152 |
+
height: 768px;
|
153 |
+
width: 1024px;
|
154 |
+
padding: 16px 80px 16px 50px;
|
155 |
+
}
|
156 |
+
|
157 |
+
/* @end */
|
158 |
+
|
159 |
+
/* @group Device Toggles */
|
160 |
+
|
161 |
+
.toggle-wrapper {
|
162 |
+
position: absolute;
|
163 |
+
background-color: rgba(0,0,0,0.3);
|
164 |
+
padding: 6px;
|
165 |
+
top: 0;
|
166 |
+
right: 0;
|
167 |
+
width: 100%;
|
168 |
+
left: 0;
|
169 |
+
-webkit-touch-callout: none;
|
170 |
+
-webkit-user-select: none;
|
171 |
+
-khtml-user-select: none;
|
172 |
+
-moz-user-select: none;
|
173 |
+
-ms-user-select: none;
|
174 |
+
user-select: none;
|
175 |
+
height: 34px;
|
176 |
+
text-align: right;
|
177 |
+
}
|
178 |
+
|
179 |
+
.toggle-inner {
|
180 |
+
padding-right: 12px;
|
181 |
+
}
|
182 |
+
|
183 |
+
.toggle-wrapper span {
|
184 |
+
color: rgba(255,255,255,.6);
|
185 |
+
display: inline-block;
|
186 |
+
font-size: 11px;
|
187 |
+
margin-right: 10px;
|
188 |
+
}
|
189 |
+
|
190 |
+
.toggle-wrapper i {
|
191 |
+
display: inline-block;
|
192 |
+
position: relative;
|
193 |
+
font-size: 24px;
|
194 |
+
color: rgba(255,255,255,.15);
|
195 |
+
vertical-align: middle;
|
196 |
+
margin-top: 3px;
|
197 |
+
cursor: pointer;
|
198 |
+
}
|
199 |
+
|
200 |
+
.toggle-wrapper .icon-tablet {
|
201 |
+
font-size: 30px;
|
202 |
+
}
|
203 |
+
|
204 |
+
.toggle-wrapper .active {
|
205 |
+
color: #fff;
|
206 |
+
|
207 |
+
}
|
208 |
+
|
209 |
+
.toggle-wrapper .landscape .active {
|
210 |
+
-ms-transform: rotate(-90deg);
|
211 |
+
-webkit-transform: rotate(-90deg);
|
212 |
+
transform: rotate(-90deg);
|
213 |
+
}
|
214 |
+
|
215 |
+
|
216 |
+
|
217 |
+
/* @end */
|
218 |
+
|
219 |
+
|
220 |
+
|
221 |
+
/* @end */
|
222 |
+
|
223 |
+
/* @group Tooltips */
|
224 |
+
|
225 |
+
.tooltip {
|
226 |
+
position: absolute;
|
227 |
+
z-index: 1070;
|
228 |
+
display: block;
|
229 |
+
opacity: 0;
|
230 |
+
filter: alpha(opacity=0);
|
231 |
+
}
|
232 |
+
|
233 |
+
.tooltip.in {
|
234 |
+
opacity: 1;
|
235 |
+
filter: alpha(opacity=100);
|
236 |
+
}
|
237 |
+
|
238 |
+
.tooltip-inner {
|
239 |
+
max-width: 300px;
|
240 |
+
padding: 12px;
|
241 |
+
text-align: left;
|
242 |
+
background-color: #fff;
|
243 |
+
border-radius: 4px;
|
244 |
+
}
|
245 |
+
|
246 |
+
.tooltip-arrow {
|
247 |
+
position: absolute;
|
248 |
+
bottom: -4px;
|
249 |
+
left: 0;
|
250 |
+
right: 0;
|
251 |
+
width: 0;
|
252 |
+
height: 0;
|
253 |
+
border-color: transparent;
|
254 |
+
border-style: solid;
|
255 |
+
margin-left: -7px;
|
256 |
+
border-width: 7px 7px 0px 7px;
|
257 |
+
border-top-color: #fff;
|
258 |
+
}
|
259 |
+
|
260 |
+
.customize-tooltip {
|
261 |
+
cursor: pointer;
|
262 |
+
z-index: 1;
|
263 |
+
position: relative;
|
264 |
+
line-height: 0;
|
265 |
+
}
|
266 |
+
|
267 |
+
.customize-tooltip:after {
|
268 |
+
text-transform: none;
|
269 |
+
font-family: 'fontello';
|
270 |
+
font-style: normal;
|
271 |
+
font-weight: normal;
|
272 |
+
content: '\e800';
|
273 |
+
color: rgba(255,255,255,.3);
|
274 |
+
}
|
275 |
+
|
276 |
+
.customize-tooltip:hover:after {
|
277 |
+
color: rgba(255,255,255,.8);
|
278 |
+
}
|
279 |
+
|
280 |
+
/* @end */
|
281 |
+
|
282 |
+
@media all and (max-height: 820px) {
|
283 |
+
#customize-preview.tablet {
|
284 |
+
margin-top: -550px;
|
285 |
+
-webkit-transform: scale(.65);
|
286 |
+
transform: scale(.65);
|
287 |
+
}
|
288 |
+
|
289 |
+
#customize-preview.tablet.landscape {
|
290 |
+
margin-top: -400px;
|
291 |
+
}
|
292 |
+
}
|
admin/customizer/wptouch-customizer.js
ADDED
@@ -0,0 +1,178 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
function wptouchCustomizerCloseButton(){
|
2 |
+
jQuery( '#customize-header-actions' ).unbind().on( 'click', 'a.customize-controls-close', function( e ){
|
3 |
+
e.preventDefault();
|
4 |
+
window.location = WPtouchCustomizer.settings_url;
|
5 |
+
});
|
6 |
+
}
|
7 |
+
|
8 |
+
function wptouchCustomizerDeviceToggles() {
|
9 |
+
html = '<div class="toggle-wrapper">';
|
10 |
+
// html += '<i class="customize-tooltip" title="Click to change orientation"></i>';
|
11 |
+
html += '<div class="toggle-inner portrait">';
|
12 |
+
html += '<span>' + WPtouchCustomizer.device_orientation + ':</span>';
|
13 |
+
html += '<i class="icon-mobile toggle active"></i>';
|
14 |
+
if ( WPtouchCustomizer.device_tags.indexOf( 'tablet' ) > -1 ) {
|
15 |
+
html += '<i class="icon-tablet toggle"></i>';
|
16 |
+
}
|
17 |
+
html += '</div>';
|
18 |
+
html += '</div>';
|
19 |
+
|
20 |
+
jQuery( '.wp-full-overlay' ).append( html);
|
21 |
+
|
22 |
+
// jQuery( 'i.customize-tooltip' ).tooltip( { placement:'top' } );
|
23 |
+
|
24 |
+
jQuery( '.toggle-inner' ).on( 'click', 'i', function( e ){
|
25 |
+
|
26 |
+
var previewDiv = jQuery( '#customize-preview' );
|
27 |
+
var innerDiv = jQuery( '.toggle-inner' );
|
28 |
+
|
29 |
+
// Active device
|
30 |
+
if ( !jQuery( this ).hasClass( 'active' ) ) {
|
31 |
+
jQuery( '.toggle-inner i' ).removeClass( 'active' );
|
32 |
+
jQuery( this ).addClass( 'active' );
|
33 |
+
if ( jQuery( this ).hasClass( 'icon-tablet' ) ) {
|
34 |
+
previewDiv.addClass( 'tablet' );
|
35 |
+
} else {
|
36 |
+
previewDiv.removeClass( 'tablet' );
|
37 |
+
}
|
38 |
+
if ( jQuery( this ).hasClass( 'icon-mobile' ) ) {
|
39 |
+
previewDiv.removeClass( 'tablet' );
|
40 |
+
} else {
|
41 |
+
previewDiv.addClass( 'tablet' );
|
42 |
+
}
|
43 |
+
// Cleanup orientation on device switch
|
44 |
+
innerDiv.removeClass( 'landscape' ).addClass( 'portrait' );
|
45 |
+
previewDiv.removeClass( 'landscape' );
|
46 |
+
// Don't do the orientation change on active switch
|
47 |
+
return;
|
48 |
+
}
|
49 |
+
// Handle Orientation
|
50 |
+
if ( innerDiv.hasClass( 'portrait' ) ) {
|
51 |
+
innerDiv.removeClass( 'portrait' ).addClass( 'landscape' );
|
52 |
+
previewDiv.addClass( 'landscape' );
|
53 |
+
} else {
|
54 |
+
innerDiv.removeClass( 'landscape' ).addClass( 'portrait' );
|
55 |
+
previewDiv.removeClass( 'landscape' );
|
56 |
+
}
|
57 |
+
|
58 |
+
e.preventDefault();
|
59 |
+
|
60 |
+
});
|
61 |
+
}
|
62 |
+
|
63 |
+
function wptouchCustomizerAddRangeValue(){
|
64 |
+
jQuery( 'input[type="range"]', '#customize-theme-controls' ).each( function(){
|
65 |
+
jQuery( this ).after( '<span class="rangeval"></span>' );
|
66 |
+
jQuery( this ).on( 'click mousemove', function(){
|
67 |
+
rangeValue = jQuery( this ).val();
|
68 |
+
jQuery( this ).next( 'span' ).text( rangeValue );
|
69 |
+
}).click();
|
70 |
+
});
|
71 |
+
}
|
72 |
+
|
73 |
+
function wptouchCustomizerGetLuma( hexvalue ) {
|
74 |
+
var c = hexvalue.substring( 1 ); // strip #
|
75 |
+
var rgb = parseInt( c, 16 ); // convert rrggbb to decimal
|
76 |
+
var r = ( rgb >> 16 ) & 0xff; // extract red
|
77 |
+
var g = ( rgb >> 8 ) & 0xff; // extract green
|
78 |
+
var b = ( rgb >> 0 ) & 0xff; // extract blue
|
79 |
+
|
80 |
+
return 0.2126 * r + 0.7152 * g + 0.0722 * b; // per ITU-R BT.709'
|
81 |
+
}
|
82 |
+
|
83 |
+
function wptouchCustomizerFoundationSettings(){
|
84 |
+
|
85 |
+
// Sharing Links on/off
|
86 |
+
var sharingCheckbox = jQuery( '[id$=show_share]' );
|
87 |
+
sharingCheckbox.on( 'change wptouch.customizerReady', 'input', function(){
|
88 |
+
if ( jQuery( this ).is( ':checked' ) ) {
|
89 |
+
sharingCheckbox.nextAll( 'li' ).css( 'visibility', '' );
|
90 |
+
} else {
|
91 |
+
sharingCheckbox.nextAll( 'li' ).css( 'visibility', 'hidden' );
|
92 |
+
}
|
93 |
+
});
|
94 |
+
|
95 |
+
// Featured Slider on/off
|
96 |
+
var featuredCheckbox = jQuery( '[id$=featured_enabled]' );
|
97 |
+
featuredCheckbox.on( 'change wptouch.customizerReady', 'input', function(){
|
98 |
+
if ( jQuery( this ).is( ':checked' ) ) {
|
99 |
+
featuredCheckbox.nextAll( 'li' ).css( 'visibility', '' );
|
100 |
+
} else {
|
101 |
+
featuredCheckbox.nextAll( 'li' ).css( 'visibility', 'hidden' );
|
102 |
+
}
|
103 |
+
});
|
104 |
+
|
105 |
+
// Featured slider source select
|
106 |
+
jQuery( '[id$="featured_type"]' ).on( 'change wptouch.customizerReady', 'select', function() {
|
107 |
+
var tagSetting = jQuery( '[id$=featured_tag] *' );
|
108 |
+
var catSetting = jQuery( '[id$=featured_category] *' );
|
109 |
+
var posttySetting = jQuery( '[id$=featured_post_type] *' );
|
110 |
+
var postSetting = jQuery( '[id$=featured_post_ids] *' );
|
111 |
+
|
112 |
+
switch( jQuery( this ).val() ) {
|
113 |
+
case 'tag':
|
114 |
+
tagSetting.show();
|
115 |
+
catSetting.hide();
|
116 |
+
posttySetting.hide();
|
117 |
+
postSetting.hide();
|
118 |
+
break;
|
119 |
+
case 'category':
|
120 |
+
tagSetting.hide();
|
121 |
+
catSetting.show();
|
122 |
+
posttySetting.hide();
|
123 |
+
postSetting.hide();
|
124 |
+
break;
|
125 |
+
case 'post_type':
|
126 |
+
tagSetting.hide();
|
127 |
+
catSetting.hide();
|
128 |
+
posttySetting.show();
|
129 |
+
postSetting.hide();
|
130 |
+
break;
|
131 |
+
case 'posts':
|
132 |
+
tagSetting.hide();
|
133 |
+
catSetting.hide();
|
134 |
+
posttySetting.hide();
|
135 |
+
postSetting.show();
|
136 |
+
break;
|
137 |
+
case 'latest':
|
138 |
+
default:
|
139 |
+
tagSetting.hide();
|
140 |
+
catSetting.hide();
|
141 |
+
posttySetting.hide();
|
142 |
+
postSetting.hide();
|
143 |
+
break;
|
144 |
+
}
|
145 |
+
});
|
146 |
+
|
147 |
+
// Fire a change to deal with Customizer controlof .change()
|
148 |
+
jQuery( '#customize-theme-controls' ).find( 'input[type="checkbox"], select' ).trigger( 'wptouch.customizerReady' );
|
149 |
+
|
150 |
+
}
|
151 |
+
|
152 |
+
function wptouchCustomizerChecklist() {
|
153 |
+
jQuery( '.customize-control-checklist input[type="checkbox"]' ).on(
|
154 |
+
'change',
|
155 |
+
function() {
|
156 |
+
|
157 |
+
checkbox_values = jQuery( this ).parents( '.customize-control' ).find( 'input[type="checkbox"]:checked' ).map(
|
158 |
+
function() {
|
159 |
+
return this.value;
|
160 |
+
}
|
161 |
+
).get().join( ',' );
|
162 |
+
|
163 |
+
jQuery( this ).parents( '.customize-control' ).find( 'input[type="hidden"]' ).val( checkbox_values ).trigger( 'change' );
|
164 |
+
}
|
165 |
+
);
|
166 |
+
}
|
167 |
+
|
168 |
+
function wptouchCustomizerAdminReady(){
|
169 |
+
wptouchCustomizerCloseButton();
|
170 |
+
wptouchCustomizerDeviceToggles();
|
171 |
+
wptouchCustomizerAddRangeValue();
|
172 |
+
wptouchCustomizerFoundationSettings();
|
173 |
+
wptouchCustomizerChecklist();
|
174 |
+
}
|
175 |
+
|
176 |
+
jQuery( document ).ready( function() {
|
177 |
+
wptouchCustomizerAdminReady();
|
178 |
+
});
|
admin/customizer/wptouch-customizer.php
ADDED
@@ -0,0 +1,822 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
global $wptouch_pro;
|
3 |
+
$current_theme = $wptouch_pro->get_current_theme_info();
|
4 |
+
|
5 |
+
if ( $current_theme && !defined( 'WPTOUCH_IS_FREE' ) ) {
|
6 |
+
add_action( 'admin_init', 'wptouch_initialize_customizer' );
|
7 |
+
|
8 |
+
// Executed during the Customizer parent window load.
|
9 |
+
add_action( 'customize_register', 'wptouch_customizer_setup', 5 );
|
10 |
+
|
11 |
+
// Executed during the Customizer child window load (preview).
|
12 |
+
add_action( 'customize_controls_enqueue_scripts', 'wptouch_customizer_scripts' );
|
13 |
+
|
14 |
+
// Executed when a new setting is detected and its default value is merged into the settings object
|
15 |
+
add_action( 'wptouch_settings_after_merge_default', 'wptouch_customizer_merge_setting', 10, 3 );
|
16 |
+
|
17 |
+
// Executed after settings backup is loaded, replacing WPtouch settings.
|
18 |
+
add_action( 'wptouch_after_restore_settings', 'wptouch_customizer_restore_settings', 10, 2 );
|
19 |
+
|
20 |
+
// Executed after settings have been erased.
|
21 |
+
add_action( 'wptouch_after_reset_settings', 'wptouch_customizer_reset_settings' );
|
22 |
+
add_action( 'wptouch_after_self_destruct', 'wptouch_customizer_reset_settings' );
|
23 |
+
|
24 |
+
add_filter( 'wptouch_force_mobile_device', 'wptouch_is_customizing_mobile' );
|
25 |
+
|
26 |
+
// If we're in the customizer and we're editing the mobile theme...
|
27 |
+
if ( wptouch_is_customizing_mobile() ) {
|
28 |
+
add_filter( 'validate_current_theme', 'wptouch_return_false' );
|
29 |
+
|
30 |
+
add_filter( 'wptouch_show_mobile_switch_link', 'wptouch_return_false' );
|
31 |
+
|
32 |
+
add_action( 'customize_register', 'wptouch_customizer_remove_undesired_sections', 5 );
|
33 |
+
add_action( 'customize_register', 'wptouch_customizer_remove_desktop_sections', 999 );
|
34 |
+
|
35 |
+
// Force WPtouch to handle this as a mobile request
|
36 |
+
add_filter( 'wptouch_user_agent', 'customizer_user_override' );
|
37 |
+
|
38 |
+
// Make WordPress aware we're using the mobile theme not the desktop theme (not overriden by WPtouch)
|
39 |
+
add_filter( 'pre_option_stylesheet', 'wptouch_get_current_theme_name' );
|
40 |
+
add_filter( 'pre_option_template', 'wptouch_get_current_theme_friendly_name' );
|
41 |
+
|
42 |
+
// Prevent the 'custom landing page' setting from being applied.
|
43 |
+
add_filter( 'wptouch_redirect_target', 'wptouch_return_false' );
|
44 |
+
|
45 |
+
// Load the custom landing page instead of the homepage (if set).
|
46 |
+
$settings = $wptouch_pro->get_settings();
|
47 |
+
if ( $settings->homepage_landing == 'select' ) {
|
48 |
+
add_filter( 'request', 'wptouch_customizer_modify_homepage_query' );
|
49 |
+
}
|
50 |
+
|
51 |
+
// Allow settings modified in the customizer to be applied to the preview without save.
|
52 |
+
add_filter( 'wptouch_settings_domain', 'wptouch_customizer_override_settings', 10, 2 );
|
53 |
+
|
54 |
+
// Apply changes made in the customizer to the WPtouch settings objects.
|
55 |
+
add_action( 'customize_save_after', 'wptouch_customizer_save');
|
56 |
+
|
57 |
+
// Load JS required to enable theme events.
|
58 |
+
add_action( 'wp_enqueue_scripts', 'wptouch_customizer_load_theme_js' );
|
59 |
+
}
|
60 |
+
}
|
61 |
+
|
62 |
+
// Initialize the device switcher cookie. Values are toggled between 'desktop' and 'mobile' and used to control theme overrides.
|
63 |
+
if ( is_admin() && current_user_can( 'manage_options' ) && !isset( $_COOKIE[ 'wptouch_customizer_use' ] ) ) {
|
64 |
+
setcookie( 'wptouch_customizer_use', 'desktop', 0, '/' );
|
65 |
+
}
|
66 |
+
|
67 |
+
// Domains whose settings should be stored by the Customizer in site options instead of theme mods.
|
68 |
+
global $options_domains;
|
69 |
+
$options_domains = array(
|
70 |
+
'foundation',
|
71 |
+
'addons'
|
72 |
+
);
|
73 |
+
|
74 |
+
// Once instantiated, tracks which settings are being handled by the Customizer. Allows us to accelerate setting save & avoid manipulating non-customizer settings.
|
75 |
+
global $customizable_settings;
|
76 |
+
$customizable_settings = array();
|
77 |
+
|
78 |
+
function wptouch_customizer_remove_desktop_sections( $wp_customize ) {
|
79 |
+
// These are either not supported by WPtouch or should not appear to be separately managed.
|
80 |
+
// Widget & Menu sections are removed separately.
|
81 |
+
global $wp_version;
|
82 |
+
if ( $wp_version < 4.3 ) {
|
83 |
+
// We can show this section, but title and description are hidden with CSS, and only site icon is shown.
|
84 |
+
$wp_customize->remove_section( 'title_tagline' );
|
85 |
+
}
|
86 |
+
$wp_customize->remove_section( 'themes' );
|
87 |
+
$wp_customize->remove_section( 'header_image' );
|
88 |
+
$wp_customize->remove_section( 'static_front_page' );
|
89 |
+
}
|
90 |
+
|
91 |
+
function wptouch_customizer_reset_settings() {
|
92 |
+
// Called when the user resets WPtouch settings. WPtouch handles the settings object side, but we also need to clear out the data structures used by the Customizer. Settings defaults will be applied as normal.
|
93 |
+
global $wptouch_pro;
|
94 |
+
|
95 |
+
// Delete site option structures; no need to restrict these to the known options domains (n.b.: others should not exist at this point).
|
96 |
+
$domains = $wptouch_pro->get_active_setting_domains();
|
97 |
+
foreach ( $domains as $domain ) {
|
98 |
+
delete_option( 'wptouch_customizer_options_' . $domain );
|
99 |
+
}
|
100 |
+
|
101 |
+
// Rebuild settings and objects from the WPtouch objects (e.g., defaults)
|
102 |
+
$current_theme = wptouch_get_current_theme_name();
|
103 |
+
delete_option( 'wptouch_customizer_initialized_' . $current_theme );
|
104 |
+
|
105 |
+
// Delete theme mods – because we're not actively customizing here, WP believes the desktop theme is active, so override the value for the duration of the action. Disable the override once we're done so later requests execute normally.
|
106 |
+
wptouch_customizer_begin_theme_override();
|
107 |
+
remove_theme_mods();
|
108 |
+
wptouch_customizer_end_theme_override();
|
109 |
+
}
|
110 |
+
|
111 |
+
function wptouch_customizer_restore_settings( $domain, $settings ) {
|
112 |
+
// Called when the user restores WPtouch settings from a backup file. With the settings objects reconstructed, replace any existing Customizer values with those so that we complete the process.
|
113 |
+
// As in the rest we must override the active theme name so that theme mods are targeted appropriately.
|
114 |
+
// Only store values for settings that should appear in the customizer.
|
115 |
+
|
116 |
+
global $wptouch_pro;
|
117 |
+
global $options_domains;
|
118 |
+
|
119 |
+
$customizable_settings = wptouch_get_customizable_settings();
|
120 |
+
$current_theme = $wptouch_pro->get_current_theme_info();
|
121 |
+
|
122 |
+
wptouch_customizer_begin_theme_override();
|
123 |
+
if ( isset( $customizable_settings[ $domain ] ) || $domain == $current_theme->base ) {
|
124 |
+
if ( in_array( $domain, $options_domains ) ) {
|
125 |
+
$option_array = array();
|
126 |
+
|
127 |
+
foreach ( $settings as $setting => $value ) {
|
128 |
+
if ( in_array( $setting, $customizable_settings[ $domain ] ) || strstr( $setting, 'color' ) ) {
|
129 |
+
$setting_use_name = str_replace( '[', '-----', str_replace( ']', '_____', $setting ) );
|
130 |
+
$option_array[ $setting_use_name ] = $value;
|
131 |
+
}
|
132 |
+
}
|
133 |
+
|
134 |
+
update_option( 'wptouch_customizer_options_' . $domain, $option_array );
|
135 |
+
} else {
|
136 |
+
foreach ( $settings as $setting => $value ) {
|
137 |
+
if ( in_array( $setting, $customizable_settings[ $domain ] ) || strstr( $setting, 'color' ) || $domain == $current_theme->base ) {
|
138 |
+
set_theme_mod( 'wptouch_' . $setting, $value );
|
139 |
+
}
|
140 |
+
}
|
141 |
+
}
|
142 |
+
}
|
143 |
+
|
144 |
+
wptouch_customizer_end_theme_override();
|
145 |
+
}
|
146 |
+
|
147 |
+
global $merging_setting;
|
148 |
+
$merging_setting = false;
|
149 |
+
function wptouch_customizer_merge_setting( $domain, $setting, $value ) {
|
150 |
+
require_once( WPTOUCH_DIR . '/core/admin-load.php' );
|
151 |
+
|
152 |
+
global $merging_setting;
|
153 |
+
global $wptouch_pro;
|
154 |
+
global $options_domains;
|
155 |
+
|
156 |
+
if ( !$merging_setting ) {
|
157 |
+
$merging_setting = true;
|
158 |
+
$customizable_settings = wptouch_get_customizable_settings();
|
159 |
+
$current_theme = $wptouch_pro->get_current_theme_info();
|
160 |
+
|
161 |
+
wptouch_customizer_begin_theme_override();
|
162 |
+
if ( isset( $customizable_settings[ $domain ] ) || $domain == $current_theme->base ) {
|
163 |
+
if ( in_array( $domain, $options_domains ) ) {
|
164 |
+
$option_array = get_option( 'wptouch_customizer_options_' . $domain );
|
165 |
+
if ( in_array( $setting, $customizable_settings[ $domain ] ) || strstr( $setting, 'color' ) ) {
|
166 |
+
$setting_use_name = str_replace( '[', '-----', str_replace( ']', '_____', $setting ) );
|
167 |
+
$option_array[ $setting_use_name ] = $value;
|
168 |
+
}
|
169 |
+
update_option( 'wptouch_customizer_options_' . $domain, $option_array );
|
170 |
+
} else {
|
171 |
+
if ( in_array( $setting, $customizable_settings[ $domain ] ) || strstr( $setting, 'color' ) || $domain == $current_theme->base ) {
|
172 |
+
set_theme_mod( 'wptouch_' . $setting, $value );
|
173 |
+
}
|
174 |
+
}
|
175 |
+
}
|
176 |
+
wptouch_customizer_end_theme_override();
|
177 |
+
$merging_setting = false;
|
178 |
+
}
|
179 |
+
}
|
180 |
+
|
181 |
+
function wptouch_customizer_load_theme_js() {
|
182 |
+
// Provides a mechanism for loading JavaScript when customizing the mobile theme only.
|
183 |
+
wp_enqueue_script(
|
184 |
+
'wptouch-customizer-in-theme',
|
185 |
+
WPTOUCH_ADMIN_URL . '/customizer/wptouch-customizer-theme.js',
|
186 |
+
false,
|
187 |
+
md5( WPTOUCH_VERSION ),
|
188 |
+
true
|
189 |
+
);
|
190 |
+
}
|
191 |
+
|
192 |
+
function wptouch_customizer_save( $object ) {
|
193 |
+
wptouch_customizer_begin_theme_override();
|
194 |
+
|
195 |
+
// Apply changes made in the customizer to the WPtouch settings objects.
|
196 |
+
// Settings are prefixed with wptouch_ to avoid collision with other sources of theme mods & for clarity if viewing the database directly.
|
197 |
+
global $wptouch_pro, $options_domains;
|
198 |
+
|
199 |
+
// Colours are a special case in WPtouch, so they're handled separately
|
200 |
+
$colors = foundation_get_theme_colors();
|
201 |
+
foreach( $colors as $color ) {
|
202 |
+
$settings = wptouch_get_settings( $color->domain );
|
203 |
+
// Colours are stored by the customizer as theme mods
|
204 |
+
$new_color = get_theme_mod( 'wptouch_' . $color->setting );
|
205 |
+
if ( !$new_color ) {
|
206 |
+
// The customizer allows users to save an null value for colours. Rather than allowing it to stay, we'll treat this as a 'reset to default' action.
|
207 |
+
remove_theme_mod( 'wptouch_' . $color->setting );
|
208 |
+
|
209 |
+
// Now replace the saved setting with the appropriate default
|
210 |
+
$defaults = $wptouch_pro->get_setting_defaults( $color->domain );
|
211 |
+
$settings->{ $color->setting } = $defaults->{ $color->setting };
|
212 |
+
} else {
|
213 |
+
$settings->{ $color->setting } = $new_color;
|
214 |
+
}
|
215 |
+
|
216 |
+
// Because colours could conceivably be in more than one domain we do a precautionary persist after each one.
|
217 |
+
$settings->save();
|
218 |
+
}
|
219 |
+
|
220 |
+
$customizable_settings = wptouch_get_customizable_settings();
|
221 |
+
|
222 |
+
// Now iterate over each of the domains with settings managed in the customizer and transfer their settings
|
223 |
+
foreach ( $customizable_settings as $domain => $domain_customizable_settings ) {
|
224 |
+
// Determine whether we should retrieve data from theme mods or a site option.
|
225 |
+
if ( in_array( $domain, $options_domains ) ) {
|
226 |
+
$domain_options = get_option( 'wptouch_customizer_options_' . $domain );
|
227 |
+
$use_options = true;
|
228 |
+
} else {
|
229 |
+
$domain_options = false;
|
230 |
+
$use_options = false;
|
231 |
+
}
|
232 |
+
|
233 |
+
// Load the current settings object for this domain
|
234 |
+
$settings = wptouch_get_settings( $domain );
|
235 |
+
|
236 |
+
// Next, iterate over the settings that can be set for this domain using the customizer
|
237 |
+
foreach ( $domain_customizable_settings as $setting_name ) {
|
238 |
+
if ( $use_options ) {
|
239 |
+
// Persist from site option
|
240 |
+
$options_setting_name = str_replace( '[', '-----', str_replace( ']', '_____', $setting_name ) );
|
241 |
+
if ( isset( $domain_options[ $options_setting_name ] ) ) {
|
242 |
+
$new_setting = $domain_options[ $options_setting_name ];
|
243 |
+
$settings = apply_filters( 'wptouch_customizer_save__' . $domain . '__' . $setting_name, $settings, $new_setting );
|
244 |
+
$settings->$setting_name = $new_setting;
|
245 |
+
}
|
246 |
+
} else {
|
247 |
+
// Persist from theme mod
|
248 |
+
if ( $new_setting = get_theme_mod( 'wptouch_' . $setting_name ) ) {
|
249 |
+
$settings = apply_filters( 'wptouch_customizer_save__' . $domain . '__' . $setting_name, $settings, $new_setting );
|
250 |
+
$settings->$setting_name = $new_setting;
|
251 |
+
}
|
252 |
+
}
|
253 |
+
}
|
254 |
+
|
255 |
+
$settings->save();
|
256 |
+
}
|
257 |
+
|
258 |
+
wptouch_customizer_end_theme_override();
|
259 |
+
}
|
260 |
+
|
261 |
+
function wptouch_get_customizable_settings() {
|
262 |
+
global $customizable_settings;
|
263 |
+
if ( count( $customizable_settings ) > 0 ) {
|
264 |
+
return $customizable_settings;
|
265 |
+
} else {
|
266 |
+
$panel_options = apply_filters( 'wptouch_admin_page_render_wptouch-admin-theme-settings', false );
|
267 |
+
if ( isset( $panel_options[ 'Customizer' ] ) ) {
|
268 |
+
$customize_settings = $panel_options[ 'Customizer' ];
|
269 |
+
}
|
270 |
+
|
271 |
+
if ( isset( $customize_settings ) && count( $customize_settings->sections ) > 0 ) {
|
272 |
+
foreach ( $customize_settings->sections as $section ) {
|
273 |
+
if ( $section->settings ) {
|
274 |
+
foreach ( $section->settings as $setting ) {
|
275 |
+
$customizable_settings[ $setting->domain ][] = $setting->name;
|
276 |
+
}
|
277 |
+
}
|
278 |
+
}
|
279 |
+
}
|
280 |
+
|
281 |
+
return $customizable_settings;
|
282 |
+
}
|
283 |
+
}
|
284 |
+
|
285 |
+
function wptouch_initialize_customizer() {
|
286 |
+
$current_theme = wptouch_get_current_theme_name();
|
287 |
+
if ( !get_option( 'wptouch_customizer_initialized_' . $current_theme ) ) {
|
288 |
+
wptouch_customizer_initialize();
|
289 |
+
add_option( 'wptouch_customizer_initialized_' . $current_theme, true );
|
290 |
+
}
|
291 |
+
}
|
292 |
+
|
293 |
+
function wptouch_customizer_setup( $wp_customize ) {
|
294 |
+
// Registers settings and controls for the WordPress Customizer
|
295 |
+
|
296 |
+
global $wptouch_pro;
|
297 |
+
global $options_domains;
|
298 |
+
global $customizable_settings;
|
299 |
+
|
300 |
+
if ( wptouch_is_customizing_mobile() ) {
|
301 |
+
// We're in the customizer and editing the mobile theme.
|
302 |
+
|
303 |
+
class WPtouch_Customize_Control_Multiple_Checkbox extends WP_Customize_Control {
|
304 |
+
|
305 |
+
/**
|
306 |
+
* The type of customize control being rendered.
|
307 |
+
*/
|
308 |
+
public $type = 'checklist';
|
309 |
+
|
310 |
+
/**
|
311 |
+
* Displays the multiple select on the customize screen.
|
312 |
+
*/
|
313 |
+
public function render_content() {
|
314 |
+
if ( empty( $this->choices ) )
|
315 |
+
return; ?>
|
316 |
+
|
317 |
+
<?php if ( !empty( $this->label ) ) : ?>
|
318 |
+
<span class="customize-control-title"><?php echo esc_html( $this->label ); ?></span>
|
319 |
+
<?php endif; ?>
|
320 |
+
|
321 |
+
<?php if ( !empty( $this->description ) ) : ?>
|
322 |
+
<span class="description customize-control-description"><?php echo $this->description; ?></span>
|
323 |
+
<?php endif; ?>
|
324 |
+
|
325 |
+
<?php $multi_values = !is_array( $this->value() ) ? explode( ',', $this->value() ) : $this->value(); ?>
|
326 |
+
|
327 |
+
<ul>
|
328 |
+
<?php foreach ( $this->choices as $value => $label ) : ?>
|
329 |
+
|
330 |
+
<li>
|
331 |
+
<label>
|
332 |
+
<input type="checkbox" value="<?php echo esc_attr( $value ); ?>" <?php checked( in_array( $value, $multi_values ) ); ?> />
|
333 |
+
<?php echo esc_html( $label ); ?>
|
334 |
+
</label>
|
335 |
+
</li>
|
336 |
+
|
337 |
+
<?php endforeach; ?>
|
338 |
+
</ul>
|
339 |
+
|
340 |
+
<input type="hidden" <?php $this->link(); ?> value="<?php echo esc_attr( implode( ',', $multi_values ) ); ?>" />
|
341 |
+
<?php
|
342 |
+
}
|
343 |
+
}
|
344 |
+
|
345 |
+
// Prepare to set defaults; we'll need Foundation defaults for sure, but we'll load others as needed.
|
346 |
+
$defaults = array(
|
347 |
+
'foundation' => $wptouch_pro->get_setting_defaults( 'foundation' )
|
348 |
+
);
|
349 |
+
|
350 |
+
require_once( WPTOUCH_DIR . '/core/admin-load.php' );
|
351 |
+
|
352 |
+
// Allow other areas of the plugin to perform actions before we get set up. These might be 'first load'-type calls
|
353 |
+
do_action( 'wptouch_customizer_start_setup' );
|
354 |
+
|
355 |
+
// Again, colours are a special case and are handled separately
|
356 |
+
if ( foundation_has_theme_colors() ) {
|
357 |
+
$colors = foundation_get_theme_colors();
|
358 |
+
|
359 |
+
foreach( $colors as $color ) {
|
360 |
+
if ( !array_key_exists( $color->domain, $defaults ) ) {
|
361 |
+
$defaults[ $color->domain ] = $wptouch_pro->get_setting_defaults( $color->domain );
|
362 |
+
}
|
363 |
+
|
364 |
+
$setting_name = $color->setting;
|
365 |
+
|
366 |
+
$args = array(
|
367 |
+
'default' => $defaults[ $color->domain ]->$setting_name
|
368 |
+
);
|
369 |
+
|
370 |
+
if ( $color->live_preview ) {
|
371 |
+
$args[ 'transport' ] = 'postMessage';
|
372 |
+
}
|
373 |
+
|
374 |
+
// The Customizer constructs things in two parts
|
375 |
+
$wp_customize->add_setting( 'wptouch_' . $setting_name, $args );
|
376 |
+
|
377 |
+
$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'wptouch_' . $setting_name, array(
|
378 |
+
'label' => __( $color->desc, 'wptouch-pro' ),
|
379 |
+
'section' => 'colors'
|
380 |
+
) ) );
|
381 |
+
}
|
382 |
+
}
|
383 |
+
|
384 |
+
// TODO: Determine whether caching the settings structure is useful.
|
385 |
+
// $customize_settings = get_transient( 'wptouch_customizer_settings' );
|
386 |
+
$customize_settings = false;
|
387 |
+
if ( !$customize_settings ) {
|
388 |
+
global $panel_options;
|
389 |
+
// Trigger WPtouch's settings control generation, then extract settings being sent to the Customizer.
|
390 |
+
$panel_options = apply_filters( 'wptouch_admin_page_render_wptouch-admin-theme-settings', $panel_options );
|
391 |
+
|
392 |
+
if ( isset( $panel_options[ 'Customizer' ] ) ) {
|
393 |
+
$customize_settings = $panel_options[ 'Customizer' ];
|
394 |
+
}
|
395 |
+
|
396 |
+
// set_transient( 'wptouch_customizer_settings', $customize_settings, 60 * 60 );
|
397 |
+
}
|
398 |
+
|
399 |
+
if ( isset( $customize_settings ) && count( $customize_settings->sections ) > 0 ) {
|
400 |
+
|
401 |
+
asort( $customize_settings->sections );
|
402 |
+
|
403 |
+
foreach ( $customize_settings->sections as $section ) {
|
404 |
+
if ( $section->settings ) {
|
405 |
+
$wp_customize->add_section( $section->slug, array(
|
406 |
+
'title' => $section->name
|
407 |
+
) );
|
408 |
+
|
409 |
+
foreach ( $section->settings as $setting ) {
|
410 |
+
if ( !isset( $defaults[ $setting->domain ] ) ) {
|
411 |
+
$defaults[ $setting->domain ] = $wptouch_pro->get_setting_defaults( $setting->domain );
|
412 |
+
}
|
413 |
+
|
414 |
+
$args = array(
|
415 |
+
'label' => $setting->desc,
|
416 |
+
'section' => $section->slug,
|
417 |
+
'type' => $setting->type,
|
418 |
+
);
|
419 |
+
|
420 |
+
$setting_args = array();
|
421 |
+
|
422 |
+
if ( isset( $defaults[ $setting->domain ]->{ $setting->name } ) ) {
|
423 |
+
$args[ 'default' ] = $defaults[ $setting->domain ]->{ $setting->name };
|
424 |
+
}
|
425 |
+
|
426 |
+
if ( $setting->type == 'checklist' ) {
|
427 |
+
$setting_args[ 'sanitize_callback' ] = 'wptouch_sanitize_string_to_array';
|
428 |
+
}
|
429 |
+
|
430 |
+
if ( in_array( $setting->domain, $options_domains ) ) {
|
431 |
+
$setting_use_name = 'wptouch_customizer_options_' . $setting->domain . '[' . str_replace( '[', '-----', str_replace( ']', '_____', $setting->name ) ) . ']';
|
432 |
+
$wp_customize->add_setting( $setting_use_name, array_merge( array( 'type' => 'option' ), $setting_args ) );
|
433 |
+
} else {
|
434 |
+
$setting_use_name = 'wptouch_' . $setting->name;
|
435 |
+
$wp_customize->add_setting( $setting_use_name, array_merge( array( 'type' => 'theme_mod' ), $setting_args ) );
|
436 |
+
}
|
437 |
+
|
438 |
+
if ( $setting->type == 'image-upload' ) {
|
439 |
+
unset( $args[ 'type' ] );
|
440 |
+
|
441 |
+
$wp_customize->add_control(
|
442 |
+
new WP_Customize_Image_Control(
|
443 |
+
$wp_customize,
|
444 |
+
$setting_use_name,
|
445 |
+
$args
|
446 |
+
)
|
447 |
+
);
|
448 |
+
|
449 |
+
} elseif ( $setting->type == 'checklist' ) {
|
450 |
+
$args[ 'choices' ] = $setting->extra;
|
451 |
+
|
452 |
+
$wp_customize->add_control(
|
453 |
+
new WPtouch_Customize_Control_Multiple_Checkbox(
|
454 |
+
$wp_customize,
|
455 |
+
$setting_use_name,
|
456 |
+
$args
|
457 |
+
)
|
458 |
+
);
|
459 |
+
} else {
|
460 |
+
if ( $setting->type == 'list' || $setting->type == 'select' || $setting->type == 'radiolist' || $setting->type == 'radio' ) {
|
461 |
+
$args[ 'type' ] = 'select';
|
462 |
+
$args[ 'choices' ] = $setting->extra;
|
463 |
+
} elseif ( $setting->type == 'range' ) {
|
464 |
+
$args[ 'input_attrs' ] = $setting->extra;
|
465 |
+
}
|
466 |
+
$wp_customize->add_control(
|
467 |
+
$setting_use_name,
|
468 |
+
$args
|
469 |
+
);
|
470 |
+
}
|
471 |
+
}
|
472 |
+
}
|
473 |
+
}
|
474 |
+
|
475 |
+
if ( $wp_customize->is_preview() && !is_admin() ) {
|
476 |
+
add_action( 'wp_footer', 'wptouch_customizer_ajax_callbacks', 21 );
|
477 |
+
}
|
478 |
+
}
|
479 |
+
} else {
|
480 |
+
// In the customizer and editing the desktop theme. To keep things tidy, hide mobile menu locations in the menu picker
|
481 |
+
$menus = get_registered_nav_menus();
|
482 |
+
foreach( $menus as $identifier => $menu ) {
|
483 |
+
if ( strstr( $identifier, 'wptouch_' ) ) {
|
484 |
+
unregister_nav_menu( $identifier );
|
485 |
+
}
|
486 |
+
}
|
487 |
+
}
|
488 |
+
}
|
489 |
+
|
490 |
+
function wptouch_customizer_initialize() {
|
491 |
+
// When we first access the customizer, construct its settings data from the existing WPtouch settings object (if any). This will ensure any inherited values are shown correctly.
|
492 |
+
global $customizable_settings;
|
493 |
+
|
494 |
+
global $wptouch_pro;
|
495 |
+
$domains = $wptouch_pro->get_active_setting_domains();
|
496 |
+
|
497 |
+
foreach ( $domains as $domain ) {
|
498 |
+
$settings = wptouch_get_settings( $domain );
|
499 |
+
wptouch_customizer_restore_settings( $domain, $settings );
|
500 |
+
}
|
501 |
+
}
|
502 |
+
|
503 |
+
function wptouch_customizer_remove_undesired_sections( $wp_customize ) {
|
504 |
+
if ( isset( $wp_customize->nav_menus ) ) {
|
505 |
+
/** @var WP_Customize_Manager $wp_customize */
|
506 |
+
remove_action( 'customize_controls_enqueue_scripts', array( $wp_customize->nav_menus, 'enqueue_scripts' ) );
|
507 |
+
remove_action( 'customize_register', array( $wp_customize->nav_menus, 'customize_register' ), 11 );
|
508 |
+
remove_filter( 'customize_dynamic_setting_args', array( $wp_customize->nav_menus, 'filter_dynamic_setting_args' ) );
|
509 |
+
remove_filter( 'customize_dynamic_setting_class', array( $wp_customize->nav_menus, 'filter_dynamic_setting_class' ) );
|
510 |
+
remove_action( 'customize_controls_print_footer_scripts', array( $wp_customize->nav_menus, 'print_templates' ) );
|
511 |
+
remove_action( 'customize_controls_print_footer_scripts', array( $wp_customize->nav_menus, 'available_items_template' ) );
|
512 |
+
remove_action( 'customize_preview_init', array( $wp_customize->nav_menus, 'customize_preview_init' ) );
|
513 |
+
}
|
514 |
+
|
515 |
+
if ( isset( $wp_customize->widgets ) ) {
|
516 |
+
remove_filter( 'customize_dynamic_setting_args', array( $wp_customize->widgets, 'filter_customize_dynamic_setting_args' ), 10, 2 );
|
517 |
+
remove_action( 'customize_controls_init', array( $wp_customize->widgets, 'customize_controls_init' ) );
|
518 |
+
remove_action( 'customize_register', array( $wp_customize->widgets, 'schedule_customize_register' ), 1 );
|
519 |
+
remove_action( 'customize_controls_enqueue_scripts', array( $wp_customize->widgets, 'enqueue_scripts' ) );
|
520 |
+
remove_action( 'customize_controls_print_styles', array( $wp_customize->widgets, 'print_styles' ) );
|
521 |
+
remove_action( 'customize_controls_print_scripts', array( $wp_customize->widgets, 'print_scripts' ) );
|
522 |
+
remove_action( 'customize_controls_print_footer_scripts', array( $wp_customize->widgets, 'print_footer_scripts' ) );
|
523 |
+
remove_action( 'customize_controls_print_footer_scripts', array( $wp_customize->widgets, 'output_widget_control_templates' ) );
|
524 |
+
remove_action( 'customize_preview_init', array( $wp_customize->widgets, 'customize_preview_init' ) );
|
525 |
+
remove_filter( 'customize_refresh_nonces', array( $wp_customize->widgets, 'refresh_nonces' ) );
|
526 |
+
|
527 |
+
}
|
528 |
+
}
|
529 |
+
|
530 |
+
function wptouch_customizer_scripts() {
|
531 |
+
if ( wptouch_is_customizing_mobile() ) {
|
532 |
+
wp_enqueue_style(
|
533 |
+
'wptouch-theme-customizer-css',
|
534 |
+
WPTOUCH_URL . '/admin/customizer/wptouch-customizer.css',
|
535 |
+
'',
|
536 |
+
md5( WPTOUCH_VERSION )
|
537 |
+
);
|
538 |
+
|
539 |
+
wp_enqueue_style(
|
540 |
+
'wptouch-admin-fontello',
|
541 |
+
WPTOUCH_URL . '/admin/fontello/css/fontello-embedded.css',
|
542 |
+
'',
|
543 |
+
md5( WPTOUCH_VERSION )
|
544 |
+
);
|
545 |
+
|
546 |
+
wp_enqueue_script(
|
547 |
+
'wptouch-theme-customizer-js',
|
548 |
+
WPTOUCH_URL . '/admin/customizer/wptouch-customizer.js',
|
549 |
+
array( 'jquery' ),
|
550 |
+
md5( WPTOUCH_VERSION ),
|
551 |
+
true
|
552 |
+
);
|
553 |
+
|
554 |
+
global $wptouch_pro;
|
555 |
+
$theme = $wptouch_pro->get_current_theme_info();
|
556 |
+
$customizer_params = array(
|
557 |
+
'device_orientation' => __( 'Device + Orientation', 'wptouch-pro' ),
|
558 |
+
'device_tags' => $theme->tags,
|
559 |
+
'settings_url' => admin_url( 'admin.php?page=wptouch-admin-general-settings' )
|
560 |
+
);
|
561 |
+
|
562 |
+
wp_localize_script( 'wptouch-theme-customizer-js', 'WPtouchCustomizer', $customizer_params );
|
563 |
+
}
|
564 |
+
|
565 |
+
wp_enqueue_script(
|
566 |
+
'jquery-plugins',
|
567 |
+
WPTOUCH_URL . '/admin/js/wptouch-admin-plugins.js',
|
568 |
+
array( 'jquery' ),
|
569 |
+
md5( WPTOUCH_VERSION ),
|
570 |
+
true
|
571 |
+
);
|
572 |
+
|
573 |
+
wp_enqueue_script(
|
574 |
+
'wptouch-theme-customizer-switch',
|
575 |
+
WPTOUCH_URL . '/admin/customizer/wptouch-customizer-switch.js',
|
576 |
+
array( 'jquery' ),
|
577 |
+
md5( WPTOUCH_VERSION ),
|
578 |
+
true
|
579 |
+
);
|
580 |
+
|
581 |
+
$customizer_switch_params = array(
|
582 |
+
'mobile_switch' => __( 'Switch to Mobile Theme', 'wptouch-pro' ),
|
583 |
+
'desktop_switch' => __( 'Switch to Desktop Theme', 'wptouch-pro' )
|
584 |
+
);
|
585 |
+
wp_localize_script( 'wptouch-theme-customizer-switch', 'WPtouchCustomizerSwitch', $customizer_switch_params );
|
586 |
+
|
587 |
+
|
588 |
+
// It's a 3.x stock theme, or older copied theme, load the shim js file to help out displaced settings in the customizer
|
589 |
+
if ( wptouch_theme_version_compare( '4', '<' ) ) {
|
590 |
+
wp_enqueue_script(
|
591 |
+
'wptouch-theme-customizer-shim',
|
592 |
+
WPTOUCH_URL . '/admin/customizer/wptouch-customizer-shim.js',
|
593 |
+
array( 'jquery' ),
|
594 |
+
md5( WPTOUCH_VERSION ),
|
595 |
+
true
|
596 |
+
);
|
597 |
+
}
|
598 |
+
}
|
599 |
+
|
600 |
+
function wptouch_customizer_ajax_callbacks() {
|
601 |
+
?>
|
602 |
+
<script type="text/javascript">
|
603 |
+
function wptouchCustomizerGetLuma( hexvalue ) {
|
604 |
+
var c = hexvalue.substring(1); // strip #
|
605 |
+
var rgb = parseInt(c, 16); // convert rrggbb to decimal
|
606 |
+
var r = (rgb >> 16) & 0xff; // extract red
|
607 |
+
var g = (rgb >> 8) & 0xff; // extract green
|
608 |
+
var b = (rgb >> 0) & 0xff; // extract blue
|
609 |
+
|
610 |
+
return 0.2126 * r + 0.7152 * g + 0.0722 * b; // per ITU-R BT.709'
|
611 |
+
}
|
612 |
+
|
613 |
+
( function( jQuery ){
|
614 |
+
<?php
|
615 |
+
if ( foundation_has_theme_colors() ) {
|
616 |
+
$colors = foundation_get_theme_colors();
|
617 |
+
foreach( $colors as $color ) {
|
618 |
+
?>
|
619 |
+
wp.customize('wptouch_<?php echo $color->setting; ?>',function( value ) {
|
620 |
+
value.bind( function( to ) {
|
621 |
+
<?php if ( $color->fg_selectors ) { ?>
|
622 |
+
jQuery( '<?php echo $color->fg_selectors; ?>' ).css('color', to ? to : '' );
|
623 |
+
<?php } ?>
|
624 |
+
|
625 |
+
<?php if ( $color->bg_selectors ) { ?>
|
626 |
+
jQuery( '<?php echo $color->bg_selectors; ?>' ).css('background-color', to ? to : '' );
|
627 |
+
<?php } ?>
|
628 |
+
|
629 |
+
<?php if ( $color->luma_threshold ) { ?>
|
630 |
+
if ( wptouchCustomizerGetLuma( to ) < <?php echo $color->luma_threshold; ?> ) {
|
631 |
+
jQuery( 'body' ).removeClass( 'light-<?php echo $color->luma_class; ?>' );
|
632 |
+
jQuery( 'body' ).addClass( 'dark-<?php echo $color->luma_class; ?>' );
|
633 |
+
} else {
|
634 |
+
jQuery( 'body' ).addClass( 'light-<?php echo $color->luma_class; ?>' );
|
635 |
+
jQuery( 'body' ).removeClass( 'dark-<?php echo $color->luma_class; ?>' );
|
636 |
+
}
|
637 |
+
<?php } ?>
|
638 |
+
});
|
639 |
+
});
|
640 |
+
<?php
|
641 |
+
}
|
642 |
+
}
|
643 |
+
?>
|
644 |
+
} )( jQuery )
|
645 |
+
</script>
|
646 |
+
<?php
|
647 |
+
}
|
648 |
+
|
649 |
+
function wptouch_customizer_override_settings( $settings, $domain ) {
|
650 |
+
global $wptouch_pro;
|
651 |
+
|
652 |
+
if ( isset( $wptouch_pro->post[ 'customized' ] ) ) {
|
653 |
+
$customized = json_decode( $wptouch_pro->post[ 'customized' ], true );
|
654 |
+
if ( is_array( $customized ) ) {
|
655 |
+
foreach ( $customized as $setting_name => $setting_value ) {
|
656 |
+
$setting_value = apply_filters( 'wptouch_customizer_override_' . $setting_name, $setting_value );
|
657 |
+
|
658 |
+
if ( strstr( $setting_name, 'color' ) && !$setting_value) {
|
659 |
+
$true_setting_name = substr( $setting_name, 8 );
|
660 |
+
$defaults = $wptouch_pro->get_setting_defaults( $domain );
|
661 |
+
if ( isset( $defaults->$true_setting_name ) ) {
|
662 |
+
$setting_value = $defaults->$true_setting_name;
|
663 |
+
}
|
664 |
+
}
|
665 |
+
|
666 |
+
if ( substr( $setting_name, 0, 8 ) == 'wptouch_' ) {
|
667 |
+
if ( strstr( $setting_name, 'wptouch_customizer_options_' ) ) {
|
668 |
+
// Site option!
|
669 |
+
preg_match( '/(.*?)\[(.*?)\]/', $setting_name, $setting_name_parts );
|
670 |
+
$domain = substr( $setting_name_parts[ 1 ], 27 );
|
671 |
+
$setting_name = str_replace( '-----', '[', str_replace( '_____', ']', $setting_name_parts[ 2 ] ) );
|
672 |
+
}
|
673 |
+
|
674 |
+
if ( strpos( $setting_name, '[' ) ) {
|
675 |
+
// We have an array setting that we need to massage.
|
676 |
+
preg_match( '/(.*?)\[(.*?)\]/', $setting_name, $setting_name_parts );
|
677 |
+
|
678 |
+
if ( substr( $setting_name_parts[ 1 ], 0, 8 ) == 'wptouch_' ) {
|
679 |
+
$setting_name_parts[ 1 ] = substr( $setting_name_parts[ 1 ], 8 );
|
680 |
+
}
|
681 |
+
|
682 |
+
if ( isset( $settings->{ $setting_name_parts[ 1 ] } ) ) {
|
683 |
+
$settings->{ $setting_name_parts[ 1 ] }[ $setting_name_parts[ 2 ] ] = $setting_value;
|
684 |
+
}
|
685 |
+
} else {
|
686 |
+
if ( substr( $setting_name, 0, 8 ) == 'wptouch_' ) {
|
687 |
+
$setting_name = substr( $setting_name, 8 );
|
688 |
+
if ( isset( $settings->$setting_name ) ) {
|
689 |
+
$settings->$setting_name = $setting_value;
|
690 |
+
}
|
691 |
+
} else {
|
692 |
+
if ( isset( $settings->$setting_name ) ) {
|
693 |
+
$settings->$setting_name = $setting_value;
|
694 |
+
}
|
695 |
+
}
|
696 |
+
}
|
697 |
+
}
|
698 |
+
}
|
699 |
+
}
|
700 |
+
// $settings = apply_filters( 'wptouch_process_previewed_settings', $settings, $domain );
|
701 |
+
return $settings;
|
702 |
+
} else {
|
703 |
+
return $settings;
|
704 |
+
}
|
705 |
+
}
|
706 |
+
|
707 |
+
function wptouch_is_customizing() {
|
708 |
+
if ( !isset( $_COOKIE[ 'wptouch_customizer_use' ] ) ) {
|
709 |
+
return false;
|
710 |
+
} else {
|
711 |
+
if ( $_COOKIE[ 'wptouch_customizer_use' ] == 'desktop' ) {
|
712 |
+
return false;
|
713 |
+
} else {
|
714 |
+
global $wp_customize;
|
715 |
+
return is_a( $wp_customize, 'WP_Customize_Manager' );
|
716 |
+
}
|
717 |
+
}
|
718 |
+
}
|
719 |
+
|
720 |
+
function wptouch_is_customizing_mobile( $skip_override = false ) {
|
721 |
+
if ( $skip_override ) { // generally set by the 'is_mobile_device' filter. If true, don't worry about overrides.
|
722 |
+
return true;
|
723 |
+
}
|
724 |
+
|
725 |
+
if ( wptouch_is_customizing() && $_COOKIE[ 'wptouch_customizer_use' ] == 'mobile' ) {
|
726 |
+
return true;
|
727 |
+
} else {
|
728 |
+
return false;
|
729 |
+
}
|
730 |
+
}
|
731 |
+
|
732 |
+
function customizer_user_override( $user_agent ) {
|
733 |
+
return 'iPhone';
|
734 |
+
}
|
735 |
+
|
736 |
+
function wptouch_get_current_theme_friendly_name( $value=false ) {
|
737 |
+
// Override the value of 'stylesheet' on customizer.
|
738 |
+
global $wptouch_pro;
|
739 |
+
$settings = $wptouch_pro->get_settings();
|
740 |
+
return $settings->current_theme_friendly_name;
|
741 |
+
}
|
742 |
+
|
743 |
+
function wptouch_get_current_theme_name( $value=false ) {
|
744 |
+
// Override the value of 'stylesheet' on customizer.
|
745 |
+
global $wptouch_pro;
|
746 |
+
$settings = $wptouch_pro->get_settings();
|
747 |
+
return $settings->current_theme_name;
|
748 |
+
}
|
749 |
+
|
750 |
+
function wptouch_customizer_begin_theme_override() {
|
751 |
+
add_filter( 'pre_option_stylesheet', 'wptouch_get_current_theme_name' );
|
752 |
+
}
|
753 |
+
|
754 |
+
function wptouch_customizer_end_theme_override() {
|
755 |
+
remove_filter( 'pre_option_stylesheet', 'wptouch_get_current_theme_name' );
|
756 |
+
}
|
757 |
+
|
758 |
+
function wptouch_customizer_port_image( $customizer_setting, $source_setting, $settings_domain = 'foundation' ) {
|
759 |
+
global $options_domains, $wp_version;
|
760 |
+
$sideload_image = false;
|
761 |
+
$settings = wptouch_get_settings( $settings_domain );
|
762 |
+
$upload_dir = wp_upload_dir();
|
763 |
+
|
764 |
+
if ( $source_setting != false && $settings->$source_setting != false ) {
|
765 |
+
|
766 |
+
if ( in_array( $settings_domain, $options_domains ) ) {
|
767 |
+
$domain_options = get_option( 'wptouch_customizer_options_' . $settings_domain );
|
768 |
+
if ( strstr( $customizer_setting, 'wptouch_' ) ) {
|
769 |
+
$customizer_setting = substr( $customizer_setting, 8 );
|
770 |
+
}
|
771 |
+
$customizer_setting = str_replace( '[', '-----', str_replace( ']', '_____', $customizer_setting ) );
|
772 |
+
$use_options = true;
|
773 |
+
|
774 |
+
if ( !isset( $domain_options[ $customizer_setting ] ) || !strstr( $domain_options[ $customizer_setting ], $upload_dir[ 'baseurl' ] ) ) {
|
775 |
+
$sideload_image = true;
|
776 |
+
}
|
777 |
+
} else {
|
778 |
+
$use_options = false;
|
779 |
+
if ( ( !$customizer_image = get_theme_mod( $customizer_setting ) ) || !strstr( $customizer_image, $upload_dir[ 'baseurl' ] ) ) {
|
780 |
+
$sideload_image = true;
|
781 |
+
}
|
782 |
+
}
|
783 |
+
|
784 |
+
if ( $sideload_image ) {
|
785 |
+
require_once(ABSPATH . 'wp-admin/includes/media.php');
|
786 |
+
require_once(ABSPATH . 'wp-admin/includes/file.php');
|
787 |
+
require_once(ABSPATH . 'wp-admin/includes/image.php');
|
788 |
+
|
789 |
+
if ( isset( $settings->$source_setting ) && $settings->$source_setting != '' && $settings->$source_setting != false ) {
|
790 |
+
$image = media_sideload_image( foundation_prepare_uploaded_file_url( $settings->$source_setting ), 0 );
|
791 |
+
if ( !is_object( $image ) ) {
|
792 |
+
preg_match( '/\'(.*?)\'/', $image, $image_url);
|
793 |
+
if ( $use_options ) {
|
794 |
+
$domain_options[ $customizer_setting ] = $image_url[ 1 ];
|
795 |
+
update_option( 'wptouch_customizer_options_' . $settings_domain, $domain_options );
|
796 |
+
} else {
|
797 |
+
set_theme_mod( $customizer_setting, $image_url[ 1 ] );
|
798 |
+
}
|
799 |
+
}
|
800 |
+
}
|
801 |
+
}
|
802 |
+
}
|
803 |
+
}
|
804 |
+
|
805 |
+
function wptouch_sanitize_string_to_array( $values ) {
|
806 |
+
if ( $values == '' ) { return array(); }
|
807 |
+
$multi_values = !is_array( $values ) ? explode( ',', $values ) : $values;
|
808 |
+
return !empty( $multi_values ) ? array_map( 'sanitize_text_field', $multi_values ) : array();
|
809 |
+
}
|
810 |
+
|
811 |
+
function wptouch_customizer_modify_homepage_query( $query_vars ) {
|
812 |
+
$settings = wptouch_get_settings();
|
813 |
+
|
814 |
+
$dummy_query = new WP_Query(); // the query isn't run if we don't pass any query vars
|
815 |
+
$dummy_query->parse_query( $query_vars );
|
816 |
+
|
817 |
+
if ( count( $query_vars ) == 0 ) { // Front page
|
818 |
+
$query_vars[ 'page_id' ] = $settings->homepage_redirect_wp_target;
|
819 |
+
}
|
820 |
+
|
821 |
+
return $query_vars;
|
822 |
+
}
|
admin/fontello/LICENSE.txt
ADDED
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Font license info
|
2 |
+
|
3 |
+
|
4 |
+
## Entypo
|
5 |
+
|
6 |
+
Copyright (C) 2012 by Daniel Bruce
|
7 |
+
|
8 |
+
Author: Daniel Bruce
|
9 |
+
License: SIL (http://scripts.sil.org/OFL)
|
10 |
+
Homepage: http://www.entypo.com
|
11 |
+
|
12 |
+
|
13 |
+
## Iconic
|
14 |
+
|
15 |
+
Copyright (C) 2012 by P.J. Onori
|
16 |
+
|
17 |
+
Author: P.J. Onori
|
18 |
+
License: SIL (http://scripts.sil.org/OFL)
|
19 |
+
Homepage: http://somerandomdude.com/work/iconic/
|
20 |
+
|
21 |
+
|
22 |
+
## Modern Pictograms
|
23 |
+
|
24 |
+
Copyright (c) 2012 by John Caserta. All rights reserved.
|
25 |
+
|
26 |
+
Author: John Caserta
|
27 |
+
License: SIL (http://scripts.sil.org/OFL)
|
28 |
+
Homepage: http://thedesignoffice.org/project/modern-pictograms/
|
29 |
+
|
30 |
+
|
31 |
+
## Font Awesome
|
32 |
+
|
33 |
+
Copyright (C) 2012 by Dave Gandy
|
34 |
+
|
35 |
+
Author: Dave Gandy
|
36 |
+
License: SIL (http://scripts.sil.org/OFL)
|
37 |
+
Homepage: http://fortawesome.github.com/Font-Awesome/
|
admin/fontello/README.txt
ADDED
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
This webfont is generated by http://fontello.com open source project.
|
2 |
+
|
3 |
+
|
4 |
+
================================================================================
|
5 |
+
Please, note, that you should obey original font licences, used to make this
|
6 |
+
webfont pack. Details available in LICENSE.txt file.
|
7 |
+
|
8 |
+
- Usually, it's enough to publish content of LICENSE.txt file somewhere on your
|
9 |
+
site in "About" section.
|
10 |
+
|
11 |
+
- If your project is open-source, usually, it will be ok to make LICENSE.txt
|
12 |
+
file publically available in your repository.
|
13 |
+
|
14 |
+
- Fonts, used in Fontello, don't require a clickable link on your site.
|
15 |
+
But any kind of additional authors crediting is welcome.
|
16 |
+
================================================================================
|
17 |
+
|
18 |
+
|
19 |
+
Comments on archive content
|
20 |
+
---------------------------
|
21 |
+
|
22 |
+
- /font/* - fonts in different formats
|
23 |
+
|
24 |
+
- /css/* - different kinds of css, for all situations. Should be ok with
|
25 |
+
twitter bootstrap. Also, you can skip <i> style and assign icon classes
|
26 |
+
directly to text elements, if you don't mind about IE7.
|
27 |
+
|
28 |
+
- demo.html - demo file, to show your webfont content
|
29 |
+
|
30 |
+
- LICENSE.txt - license info about source fonts, used to build your one.
|
31 |
+
|
32 |
+
- config.json - keeps your settings. You can import it back into fontello
|
33 |
+
anytime, to continue your work
|
34 |
+
|
35 |
+
|
36 |
+
Why so many CSS files ?
|
37 |
+
-----------------------
|
38 |
+
|
39 |
+
Because we like to fit all your needs :)
|
40 |
+
|
41 |
+
- basic file, <your_font_name>.css - is usually enough, it contains @font-face
|
42 |
+
and character code definitions
|
43 |
+
|
44 |
+
- *-ie7.css - if you need IE7 support, but still don't wish to put char codes
|
45 |
+
directly into html
|
46 |
+
|
47 |
+
- *-codes.css and *-ie7-codes.css - if you like to use your own @font-face
|
48 |
+
rules, but still wish to benefit from css generation. That can be very
|
49 |
+
convenient for automated asset build systems. When you need to update font -
|
50 |
+
no need to manually edit files, just override old version with archive
|
51 |
+
content. See fontello source code for examples.
|
52 |
+
|
53 |
+
- *-embedded.css - basic css file, but with embedded WOFF font, to avoid
|
54 |
+
CORS issues in Firefox and IE9+, when fonts are hosted on the separate domain.
|
55 |
+
We strongly recommend to resolve this issue by `Access-Control-Allow-Origin`
|
56 |
+
server headers. But if you ok with dirty hack - this file is for you. Note,
|
57 |
+
that data url moved to separate @font-face to avoid problems with <IE9, when
|
58 |
+
string is too long.
|
59 |
+
|
60 |
+
- animate.css - use it to get ideas about spinner rotation animation.
|
61 |
+
|
62 |
+
|
63 |
+
Attention for server setup
|
64 |
+
--------------------------
|
65 |
+
|
66 |
+
You MUST setup server to reply with proper `mime-types` for font files -
|
67 |
+
otherwise some browsers will fail to show fonts.
|
68 |
+
|
69 |
+
Usually, `apache` already has necessary settings, but `nginx` and other
|
70 |
+
webservers should be tuned. Here is list of mime types for our file extensions:
|
71 |
+
|
72 |
+
- `application/vnd.ms-fontobject` - eot
|
73 |
+
- `application/x-font-woff` - woff
|
74 |
+
- `application/x-font-ttf` - ttf
|
75 |
+
- `image/svg+xml` - svg
|
admin/fontello/config.json
ADDED
@@ -0,0 +1,330 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "",
|
3 |
+
"css_prefix_text": "icon-",
|
4 |
+
"css_use_suffix": false,
|
5 |
+
"hinting": true,
|
6 |
+
"units_per_em": 1000,
|
7 |
+
"ascent": 850,
|
8 |
+
"glyphs": [
|
9 |
+
{
|
10 |
+
"uid": "3727d37ec9b75123aa3fab35073b4016",
|
11 |
+
"css": "advanced-type",
|
12 |
+
"code": 59394,
|
13 |
+
"src": "custom_icons",
|
14 |
+
"selected": true,
|
15 |
+
"svg": {
|
16 |
+
"path": "M686.4 2.5L313.6 562.2 65.1 935.2 3 935.2 3 997.4 251.5 997.4 251.5 935.2 127.2 935.2 295 686.5 690.4 686.5 748.5 935.2 686.4 935.2 686.4 997.4 997 997.4 997 935.2 934.9 935.2 686.4 2.5ZM379 562.2L588.8 251.3 661.4 562.2 379 562.2Z",
|
17 |
+
"width": 1000
|
18 |
+
},
|
19 |
+
"search": [
|
20 |
+
"advanced-type"
|
21 |
+
]
|
22 |
+
},
|
23 |
+
{
|
24 |
+
"uid": "a5a823dee6d3a9b1aa4a2efa00c9e43c",
|
25 |
+
"css": "devices",
|
26 |
+
"code": 59395,
|
27 |
+
"src": "custom_icons",
|
28 |
+
"selected": true,
|
29 |
+
"svg": {
|
30 |
+
"path": "M957.7 931.8L793.6 931.8C770.2 931.8 751.2 912 751.2 887.7L751.2 564.1C751.2 539.8 770.2 520 793.6 520L957.7 520C981 520 1000 539.8 1000 564.1L1000 887.7C1000 912 981 931.8 957.7 931.8ZM875.6 910.4C885.5 910.4 893.5 902.1 893.5 891.8 893.5 881.5 885.5 873.2 875.6 873.2 865.7 873.2 857.7 881.5 857.7 891.8 857.7 902 865.7 910.4 875.6 910.4ZM949.3 572.9L802 572.9 802 852.6 949.3 852.6 949.3 572.9ZM792.3 227.7L786.4 227.7 786.4 190.8C786.4 181.5 779 173.8 770 173.8L155.5 173.8 155.5 662.3 353.7 662.3 353.7 767.9 117.8 767.9C52.9 767.9 0 712.9 0 645.3L0 190.8C0 123.2 52.9 68.2 117.8 68.2L770 68.2C835 68.2 887.8 123.2 887.8 190.8L887.8 271C863.8 244.5 830 227.7 792.3 227.7ZM82.8 374.5C59.7 374.5 41 394 41 418.1 41 442.1 59.7 461.7 82.8 461.7 106 461.7 124.7 442.1 124.7 418.1 124.7 394 106 374.5 82.8 374.5ZM485.4 285.6L792.3 285.6C837 285.6 873.3 323.4 873.3 369.9L873.3 481 805.6 481 805.6 369.9C805.6 362.2 799.7 356 792.3 356L485.4 356C478.1 356 472.1 362.2 472.1 369.9L472.1 813.4 709 813.4 709 892.7C709 898.8 709.6 904.7 710.7 910.4 712.2 918 714.9 925.1 718.1 931.8L485.4 931.8C440.8 931.8 404.4 894 404.4 847.5L404.4 369.9C404.4 323.4 440.8 285.6 485.4 285.6ZM638.9 900.5C654.6 900.5 667.4 887.2 667.4 870.7 667.4 854.3 654.6 841 638.9 841 623.1 841 610.3 854.3 610.3 870.7 610.3 887.2 623.1 900.5 638.9 900.5Z",
|
31 |
+
"width": 1000
|
32 |
+
},
|
33 |
+
"search": [
|
34 |
+
"devices"
|
35 |
+
]
|
36 |
+
},
|
37 |
+
{
|
38 |
+
"uid": "b5f423b5cf93eb59d8c74aa7fe4e1eff",
|
39 |
+
"css": "extension-browser",
|
40 |
+
"code": 59396,
|
41 |
+
"src": "custom_icons",
|
42 |
+
"selected": true,
|
43 |
+
"svg": {
|
44 |
+
"path": "M778.6 642.6L778.6 585.9 1000 585.9 1000 642.6 778.6 642.6ZM778.6 207.9L1000 207.9 1000 264.6 778.6 264.6 778.6 207.9ZM723.3 661.5L723.3 567 723.3 283.5 723.3 189 723.3 0.1 760.2 0.1 760.2 37.9 760.2 793.7 760.2 850.4 723.3 850.4 723.3 661.5ZM280.6 622.3L280.6 245.7C289.9 224.4 531.5 25.7 558.3 18.9L704.9 19 704.9 831.5 557.8 831.5C528.2 824.3 294.8 648 280.6 622.3ZM98.1 530.4C82.3 586.4 163.9 667.6 193.3 707.9 246.9 781.4 354.2 928.3 232.2 993.8 179.9 1021.9 128.9 943.1 181.5 914.9 229.8 888.9 24.1 636 8.1 579.3-40.9 406.1 141.1 393.9 262.2 386.3L262.2 477.5C197.4 475.7 114.2 473.6 98.1 530.4Z",
|
45 |
+
"width": 1000
|
46 |
+
},
|
47 |
+
"search": [
|
48 |
+
"extension-browser"
|
49 |
+
]
|
50 |
+
},
|
51 |
+
{
|
52 |
+
"uid": "f1652af0e31eedf6f9a41a6f3d40edcc",
|
53 |
+
"css": "general-settings",
|
54 |
+
"code": 59397,
|
55 |
+
"src": "custom_icons",
|
56 |
+
"selected": true,
|
57 |
+
"svg": {
|
58 |
+
"path": "M973.9 54.2C957.2 37.4 934.8 28.2 911.1 28.2 887.4 28.2 865.1 37.4 848.3 54.2L451.4 451.1 577.1 576.8 973.9 179.9C1008.6 145.3 1008.6 88.9 973.9 54.2ZM938.1 125.2L597 466.3C592.1 471.1 585.8 473.6 579.4 473.6 573.1 473.6 566.7 471.1 561.9 466.3 552.2 456.6 552.2 440.9 561.9 431.2L903 90.1C912.7 80.4 928.4 80.4 938.1 90.1 947.8 99.8 947.8 115.5 938.1 125.2ZM961.6 791.4L697.1 526.9 612.2 611.9 625.2 625C634.9 634.6 634.9 650.3 625.2 660 620.4 664.9 614.1 667.3 607.7 667.3 601.4 667.3 595 664.9 590.2 660L559.6 629.4C559.5 629.4 559.5 629.4 559.5 629.4L496.7 566.6 496.7 566.6 461.6 531.5 461.6 531.5 398.8 468.7 398.8 468.7 368.2 438C358.5 428.4 358.5 412.6 368.2 403 377.9 393.3 393.6 393.3 403.3 403L416.3 416 501.3 331.1 425.2 255C438.5 185.6 416.5 113.1 366.3 62.8 325.8 22.3 271.9 0 214.6 0 194.2 0 173.9 2.9 154.3 8.6 145.9 11.1 139.4 17.8 137.2 26.3 135 34.8 137.5 43.8 143.7 50L225.5 131.8C242.8 149.1 242.8 177.3 225.5 194.6L194.7 225.5C186.3 233.9 175.1 238.5 163.2 238.5 151.4 238.5 140.2 233.9 131.8 225.5L50 143.7C43.8 137.5 34.8 135 26.3 137.2 17.8 139.4 11.1 145.9 8.6 154.3-15.2 236.1 11.7 324.5 77.2 379.4 115.8 411.8 164.6 429.6 214.5 429.6 228.2 429.6 242 428.3 255.5 425.6L411.5 581.7 156.8 836.4 143 822.7C137.8 817.4 130.6 814.8 123.1 815.5 115.8 816.2 109.1 820.2 105 826.3L32.5 933.3C25.8 943.1 27.1 956.3 35.5 964.7L63.5 992.7C68.3 997.5 74.7 1000 81.1 1000 85.9 1000 90.8 998.6 95 995.7L201.9 923.3C208.1 919.1 212 912.5 212.7 905.1 213.4 897.7 210.8 890.4 205.6 885.2L191.8 871.5 446.6 616.8 791.4 961.6C814.1 984.4 844.4 996.9 876.5 996.9 908.6 996.9 938.9 984.4 961.6 961.6 1008.5 914.7 1008.5 838.4 961.6 791.4ZM911.9 911.9C900 923.8 884.2 930.3 867.5 930.3 850.7 930.3 834.9 923.8 823 911.9 798.5 887.4 798.5 847.6 823 823.1 834.9 811.2 850.7 804.7 867.5 804.7 884.2 804.7 900 811.2 911.9 823.1 936.4 847.6 936.4 887.4 911.9 911.9Z",
|
59 |
+
"width": 1000
|
60 |
+
},
|
61 |
+
"search": [
|
62 |
+
"general-settings"
|
63 |
+
]
|
64 |
+
},
|
65 |
+
{
|
66 |
+
"uid": "02c5ca8f8ead0176d6dc9b764ba53358",
|
67 |
+
"css": "infinity-cache",
|
68 |
+
"code": 59398,
|
69 |
+
"src": "custom_icons",
|
70 |
+
"selected": true,
|
71 |
+
"svg": {
|
72 |
+
"path": "M228.6 760.4C370.5 760.4 464.3 636 547.2 526.3 617.9 432.5 684.8 343.9 766.2 343.9 850.8 343.9 902.7 437.2 902.7 504 902.7 566 845.7 656.1 756.4 656.1 669.8 656.1 624.6 581.7 622.3 577.9 608.3 553.5 578.5 545.8 555.7 560.8 532.7 575.8 525.4 607.9 539.4 632.5 542.4 637.7 613.8 760.4 756.4 760.4 900 760.4 1000 625.3 1000 504 1000 379 904 239.6 766.2 239.6 638.4 239.6 553.5 352 471.5 460.6 395.7 561.1 324 656.1 228.6 656.1 171.8 656.1 134.5 635.4 114.6 593 97.3 556.1 97.3 514.4 97.3 500 97.3 491.7 101.4 450.2 120.3 412.8 141.8 370.2 172.4 350.3 216.6 350.3 305.6 350.3 353.7 412.4 371.8 435.8 376.5 441.8 379.9 446.2 384.4 450.4 404.8 469.1 435.5 466.6 453 444.7 469.8 423.6 468.2 392.2 449.8 373.2 448.9 372.1 447.9 370.7 446.6 369.1 423 338.6 351.3 246 216.6 246 52.9 246 0 417.1 0 500.7 0 553.9 9.3 600.7 27.7 639.9 53.5 694.9 109.3 760.4 228.6 760.4Z",
|
73 |
+
"width": 1000
|
74 |
+
},
|
75 |
+
"search": [
|
76 |
+
"infinity-cache"
|
77 |
+
]
|
78 |
+
},
|
79 |
+
{
|
80 |
+
"uid": "d413dff7ca8fb8bb67d26059cb8fba0a",
|
81 |
+
"css": "mobile-phone",
|
82 |
+
"code": 59399,
|
83 |
+
"src": "custom_icons",
|
84 |
+
"selected": true,
|
85 |
+
"svg": {
|
86 |
+
"path": "M772.7 976.6L227.3 976.6C193.9 976.6 166.7 949.8 166.7 917L166.7 83C166.7 50.2 193.9 23.4 227.3 23.4L772.7 23.4C806.1 23.4 833.3 50.2 833.3 83L833.3 917C833.3 949.8 806.1 976.6 772.7 976.6ZM500 933.5C526 933.5 547.1 912.8 547.1 887.2 547.1 861.6 526 840.9 500 840.9 474 840.9 452.9 861.6 452.9 887.2 452.9 912.8 474 933.5 500 933.5ZM227.3 142.6L227.3 797.8 772.7 797.8 772.7 750.8 229.6 750.8 229.6 199 772.7 199 772.7 142.6 227.3 142.6ZM751.4 719.3L751.4 230.5 261.2 230.5 261.2 719.3 751.4 719.3ZM704 346.8L308.6 346.8 308.6 277.9 704 277.9 704 346.8ZM704 455.2L308.6 455.2 308.6 386.2 704 386.2 704 455.2ZM704 563.5L308.6 563.5 308.6 494.6 704 494.6 704 563.5ZM704 672L308.6 672 308.6 603 704 603 704 672Z",
|
87 |
+
"width": 1000
|
88 |
+
},
|
89 |
+
"search": [
|
90 |
+
"mobile-phone"
|
91 |
+
]
|
92 |
+
},
|
93 |
+
{
|
94 |
+
"uid": "cdc9367c40448a9dd210405d6501fe62",
|
95 |
+
"css": "multi-ads",
|
96 |
+
"code": 59400,
|
97 |
+
"src": "custom_icons",
|
98 |
+
"selected": true,
|
99 |
+
"svg": {
|
100 |
+
"path": "M916.6 957.1L144.8 957.1C144.7 957.1 144.6 957.2 144.6 957.2L131.4 957.2C118 964.9 101.1 965.7 86.4 958.2 83.8 958.1 81.2 957.7 78.6 957.2L22.1 957.2C10.6 957.2 1.3 947.8 1.3 936.3L1.3 914.6C1.2 913.2 1.1 911.8 1.1 910.5L1.1 891.6C-0.3 885.2-0.3 878.5 1.1 871.9L1.1 840.4C1.1 839 1.2 837.7 1.3 836.3L1.3 21C1.3 9.5 10.6 0.2 22.1 0.2L144.6 0.2C156.1 0.2 165.4 9.5 165.4 21L165.4 584.3 440.5 110.5C453.5 88.2 482.2 80.5 504.6 93.4L565.6 128.4C588.1 141.3 595.8 169.9 582.8 192.2L320.7 643.6 782.1 378.7C804.6 365.8 833.3 373.5 846.3 395.8L881.5 456.4C894.4 478.8 886.7 507.3 864.3 520.2L387.8 793.7 916.6 793.7C942.5 793.7 963.5 814.6 963.5 840.4L963.5 910.5C963.5 936.2 942.5 957.1 916.6 957.1Z",
|
101 |
+
"width": 1000
|
102 |
+
},
|
103 |
+
"search": [
|
104 |
+
"multi-ads"
|
105 |
+
]
|
106 |
+
},
|
107 |
+
{
|
108 |
+
"uid": "65454e673a68db8e8f0f56c079af1cc6",
|
109 |
+
"css": "related-posts",
|
110 |
+
"code": 59401,
|
111 |
+
"src": "custom_icons",
|
112 |
+
"selected": true,
|
113 |
+
"svg": {
|
114 |
+
"path": "M673.1 606.3L573 506.2 814.5 264.7C842.1 237.1 842.1 192.2 814.5 164.6 786.9 137 742 137 714.5 164.6L659.7 219.3 559.6 119.2 614.4 64.5C697.2-18.3 831.8-18.3 914.6 64.5 997.4 147.3 997.4 282 914.6 364.8L673.1 606.3ZM506.2 406.1L264.6 164.6C237 137 192.1 137 164.5 164.6 136.9 192.2 136.9 237.1 164.5 264.7L219.3 319.4 119.2 419.5 64.4 364.7C-18.3 282-18.3 147.3 64.4 64.5 147.2-18.3 281.9-18.3 364.7 64.5L606.3 306 506.2 406.1ZM306 372.8L406.1 472.9 164.5 714.5C136.9 742.1 136.9 787 164.5 814.6 192.1 842.2 237 842.2 264.6 814.6L319.3 759.9 419.4 860 364.7 914.7C323.3 956.1 268.9 976.8 214.6 976.8 160.2 976.8 105.8 956.1 64.4 914.7-18.3 831.9-18.3 697.2 64.4 614.4L306 372.8ZM472.9 573L714.5 814.6C742 842.2 786.9 842.2 814.5 814.6 842.1 787 842.1 742.1 814.5 714.5L759.8 659.8 859.9 559.7 914.6 614.4C997.4 697.2 997.4 831.9 914.6 914.7 873.2 956.1 818.9 976.8 764.5 976.8 710.1 976.8 655.8 956.1 614.4 914.7L372.8 673.1 472.9 573Z",
|
115 |
+
"width": 1000
|
116 |
+
},
|
117 |
+
"search": [
|
118 |
+
"related-posts"
|
119 |
+
]
|
120 |
+
},
|
121 |
+
{
|
122 |
+
"uid": "d5cd45992fc93810d908d470ed226ccf",
|
123 |
+
"css": "responsive-images",
|
124 |
+
"code": 59402,
|
125 |
+
"src": "custom_icons",
|
126 |
+
"selected": true,
|
127 |
+
"svg": {
|
128 |
+
"path": "M994 352L842.7 662.5C840.7 666.6 835.6 668.4 831.3 666.4L797 650.3 797 542.7 852.8 568.8 952 365.2 634.9 216.7 576.4 336.7 533 336.7 612.7 173.3C614.7 169.2 619.8 167.4 624.1 169.4L989.9 340.8C994.2 342.8 996 347.8 994 352ZM359.8 214.7L42.8 363.2 141.9 566.8 197.7 540.7 197.7 648.3 163.4 664.4C159.2 666.5 154.1 664.6 152 660.5L0.8 350C-1.2 345.8 0.6 340.8 4.9 338.8L370.7 167.4C374.9 165.4 380 167.2 382.1 171.3L461.7 334.7 418.3 334.7 359.8 214.7ZM247.6 364.8L762.4 364.8C768.5 364.8 773.3 369.5 773.3 375.4L773.3 812.4C773.3 818.2 768.5 823 762.4 823L247.6 823C241.6 823 236.7 818.2 236.7 812.4L236.7 375.4C236.7 369.5 241.6 364.8 247.6 364.8ZM286.4 699.7L364.1 699.7C364.1 699.7 421 476.8 479.8 534.4 538.5 592.1 559.7 699.7 559.7 699.7 559.7 699.7 580.5 604.4 622.1 594 657.7 585 681 652 700 699.7L732.7 699.7 732.7 413.2 286.4 413.2 286.4 699.7ZM653.5 502.9C643 502.9 633.3 500.9 625.4 497.6 618.5 498.9 610.9 499.8 602.8 499.8 574.7 499.8 552 490.9 552 480 552 470.7 568.2 463 589.9 460.7 590.9 452.2 598 445.5 607 445.5L614.1 445.5C618.9 445.5 623.2 447.4 626.3 450.4 634.1 447.3 643.4 445.5 653.5 445.5 680.2 445.5 702 458.4 702 474.2 702 490.1 680.2 502.9 653.5 502.9ZM358.4 510.3C338.3 510.3 322 494.3 322 474.6 322 454.8 338.3 438.9 358.4 438.9 378.5 438.9 394.8 454.8 394.8 474.6 394.8 494.3 378.5 510.3 358.4 510.3Z",
|
129 |
+
"width": 1000
|
130 |
+
},
|
131 |
+
"search": [
|
132 |
+
"responsive-images"
|
133 |
+
]
|
134 |
+
},
|
135 |
+
{
|
136 |
+
"uid": "4a87716fee5e90deb69ab18277cfd74e",
|
137 |
+
"css": "site-compatibility",
|
138 |
+
"code": 59404,
|
139 |
+
"src": "custom_icons",
|
140 |
+
"selected": true,
|
141 |
+
"svg": {
|
142 |
+
"path": "M856.1 475.9C871.7 503.9 903.5 520.2 936.5 514.3 978.3 506.8 1006.3 466.4 998.9 424 991.5 381.6 951.6 353.3 909.7 360.8 876.7 366.7 852.4 393 847.2 424.7L635.3 462.6C630.8 445.8 623.4 430.3 613.5 416.6L749.2 252.8C778.9 264 813.6 255.9 835.1 229.9 862.5 196.9 858.2 147.7 825.7 120 793.1 92.4 744.6 96.7 717.3 129.7 695.7 155.7 693.8 191.7 709.9 219.4L576.2 380.8C561.2 370.9 544.1 363.8 525.8 360.4L525.8 151.5C555.6 140.8 577.1 111.9 577.1 78 577.1 34.9 542.6 0 500.1 0 457.6 0 423.2 34.9 423.2 78 423.2 111.9 444.6 140.8 474.5 151.5L474.5 360.4C456.1 363.8 439.1 370.9 424 380.8L290.3 219.4C306.4 191.7 304.5 155.7 283 129.7 255.7 96.7 207.1 92.4 174.6 120 142 147.7 137.8 196.9 165.1 229.9 186.6 255.9 221.3 264 251 252.8L386.7 416.6C376.9 430.3 369.4 445.8 364.9 462.6L153 424.7C147.8 393 123.5 366.7 90.5 360.8 48.6 353.3 8.7 381.6 1.3 424-6 466.4 21.9 506.8 63.8 514.3 96.8 520.2 128.5 503.9 144.1 475.9L360.7 514.6C362.2 529.9 366.2 544.5 372.1 558L178.2 671.4C154.1 650.5 118.7 646.2 89.7 663.2 52.9 684.7 40.2 732.4 61.5 769.6 82.7 806.9 129.8 819.7 166.6 798.2 195.6 781.2 209.6 748 203.8 716.4L401.4 600.8C410.7 610.1 421.2 618.1 432.8 624.6L353.9 844C322.2 843.7 292.4 863.4 280.9 895.3 266.4 935.8 287 980.5 326.9 995.3 366.8 1010 411 989.1 425.5 948.7 437 916.8 426.6 882.2 402.1 861.8L481.6 640.7C487.6 641.5 493.8 642 500.1 642 506.4 642 512.6 641.5 518.7 640.7L598.1 861.8C573.6 882.2 563.2 916.8 574.7 948.7 589.2 989.1 633.4 1010 673.3 995.3 713.3 980.5 733.9 935.8 719.3 895.3 707.9 863.4 678 843.7 646.3 844L567.4 624.6C579 618.1 589.5 610.1 598.8 600.8L796.4 716.4C790.6 748 804.6 781.2 833.6 798.2 870.4 819.7 917.5 806.9 938.7 769.7 960 732.4 947.4 684.7 910.6 663.2 881.5 646.2 846.2 650.5 822.1 671.4L628.1 558C634 544.5 638 529.9 639.6 514.6L856.1 475.9Z",
|
143 |
+
"width": 1000
|
144 |
+
},
|
145 |
+
"search": [
|
146 |
+
"site-compatibility"
|
147 |
+
]
|
148 |
+
},
|
149 |
+
{
|
150 |
+
"uid": "9927cffbbf4436a36eba098e0e57fa4c",
|
151 |
+
"css": "theme-browser",
|
152 |
+
"code": 59405,
|
153 |
+
"src": "custom_icons",
|
154 |
+
"selected": true,
|
155 |
+
"svg": {
|
156 |
+
"path": "M965.8 469.9L850 562.2 686 358.7 801.8 266.3C807 262.2 813.5 259.9 820.1 259.9 829.1 259.9 837.4 263.9 843 270.8L970.4 428.8C980.5 441.4 978.4 459.8 965.8 469.9ZM629.7 317.2L401.1 189.5 473.7 60.8C478.9 51.6 488.7 45.9 499.3 45.9 504.3 45.9 509.3 47.2 513.7 49.6L691.2 148.8C698 152.6 703 158.8 705.1 166.3 707.2 173.8 706.2 181.7 702.4 188.5L629.7 317.2ZM509.9 529.5L334.8 431.7 334.8 307 373.9 237.6 602.6 365.3 509.9 529.5ZM342.9 890.6L373.1 837.1 424.8 901.2 309 993.6C303.8 997.7 297.3 1000 290.7 1000 281.7 1000 273.3 996 267.7 989.1L248.9 965.7 291.3 965.7C319.8 965.7 342.9 942.7 342.9 914.4L342.9 890.6ZM268.9 945L54 945C37.1 945 23.3 931.3 23.3 914.4L23.3 758.8 299.7 758.8 299.7 914.4C299.7 931.3 285.9 945 268.9 945ZM161.5 823.7C145.8 823.7 133.1 836.3 133.1 851.9 133.1 867.4 145.8 880.1 161.5 880.1 177.1 880.1 189.8 867.4 189.8 851.9 189.8 836.3 177.1 823.7 161.5 823.7ZM23.3 501.8L299.7 501.8 299.7 700.1 23.3 700.1 23.3 501.8ZM23.3 244.8L299.7 244.8 299.7 443.2 23.3 443.2 23.3 244.8ZM23.3 30.6C23.3 13.7 37.1 0 54 0L268.9 0C285.9 0 299.7 13.7 299.7 30.6L299.7 186.2 23.3 186.2 23.3 30.6ZM334.8 774.1L363 789.9 334.8 839.8 334.8 774.1ZM334.8 495L482.8 577.6 390.1 741.8 334.8 710.9 334.8 495ZM502.3 608.2L615.8 749 468.1 866.7 402.4 785.2 502.3 608.2ZM608.1 420.8L642.7 393.2 644.9 395.9 806.7 596.7 659 714.5 531.6 556.3 608.1 420.8Z",
|
157 |
+
"width": 1000
|
158 |
+
},
|
159 |
+
"search": [
|
160 |
+
"theme-browser"
|
161 |
+
]
|
162 |
+
},
|
163 |
+
{
|
164 |
+
"uid": "cddf7336099044f7a96da0c99fcae0cd",
|
165 |
+
"css": "theme-customizer",
|
166 |
+
"code": 59406,
|
167 |
+
"src": "custom_icons",
|
168 |
+
"selected": true,
|
169 |
+
"svg": {
|
170 |
+
"path": "M768.2 451.5L729.6 451.5 685.4 451.5 698.2 298.8C715 283.7 740.4 253 748.7 200.9 766.3 89.2 648.4 7.2 643.4 3.8 634.9-2 623.8-1.1 616.2 5.8 608.6 12.8 606.4 24.3 610.8 33.8 611.1 34.3 631.7 80.7 611.8 101.5 601.8 112 593.6 116.8 585.8 121.4 567.2 132.2 553.3 142.6 544.5 177.8 534.2 219.1 552.3 259.1 563.2 278.1L522.6 451.5 463.4 451.5 445.9 254.9C445.9 254.9 445.8 254.8 445.8 254.8 445.7 253.4 445.4 252.1 445.1 250.8 445 250.5 445 250.3 444.9 250.1 444.6 249 444.2 248 443.8 246.9L364.5 74 363.5 71.8 363.5 71.8 363.5 71.8C363.4 71.5 363.2 71.3 363.1 71.1 360.5 65.9 356.2 62 351.2 60 348.1 58.7 344.7 58.2 341.3 58.5 341.2 58.5 341.1 58.5 341 58.5 337.7 58.8 334.7 59.9 331.9 61.6 331.7 61.7 331.5 61.8 331.3 61.9 330.8 62.3 330.3 62.7 329.7 63.1 329.4 63.4 328.9 63.7 328.6 64 328.3 64.3 328 64.6 327.7 64.9 327.2 65.4 326.6 65.9 326.2 66.5 326 66.7 325.9 66.9 325.8 67 325.2 67.8 324.6 68.5 324.1 69.3 324.1 69.4 324 69.5 324 69.6 323.5 70.6 323 71.5 322.5 72.5 322.5 72.6 322.5 72.6 322.5 72.6 322.1 73.7 321.7 74.8 321.4 76L273.6 266C273.4 267.1 273.2 268.1 273.1 269.2 273 269.5 273 269.7 273 270 272.9 271.2 272.9 272.5 273 273.8 273 273.9 273 274 273 274.2L288.8 451.5 268 451.5 231.8 451.5C219.4 451.5 209.3 462 209.3 475 209.3 488 219.4 498.5 231.8 498.5L248.1 498.5 304.7 979.3C306.1 991.1 315.7 1000 327 1000L670.6 1000C682 1000 691.6 991.1 692.9 979.3L749.6 498.5 768.2 498.5C780.6 498.5 790.7 488 790.7 475 790.7 462 780.6 451.5 768.2 451.5ZM604 302L607.4 302.6 652 310.3 640.2 451.5 569 451.5 604 302ZM340.4 185.7L364.5 182.9 389.4 237.4 325.5 244.8 340.4 185.7ZM339.1 290.6L383.9 285.4 398.7 451.5 353.4 451.5 339.1 290.6Z",
|
171 |
+
"width": 1000
|
172 |
+
},
|
173 |
+
"search": [
|
174 |
+
"theme-customizer"
|
175 |
+
]
|
176 |
+
},
|
177 |
+
{
|
178 |
+
"uid": "eb4ce555b624858323735e7d86f8ba84",
|
179 |
+
"css": "theme-settings",
|
180 |
+
"code": 59407,
|
181 |
+
"src": "custom_icons",
|
182 |
+
"selected": true,
|
183 |
+
"svg": {
|
184 |
+
"path": "M979.8 585.2L859.4 607.7C852 632.6 842.2 656.5 830 678.9L899 779.7C905.4 789.2 904.1 803.3 896 811.4L810.1 897.3C802 905.4 787.8 906.8 778.4 900.3L676.9 830.9C654.5 842.9 630.7 852.6 605.8 859.9L583.4 979.8C581.2 991 570.3 1000.1 558.8 1000.1L437.2 1000.1C425.8 1000.1 414.9 991 412.7 979.8L390 858.7C366.2 851.4 343.3 842 321.8 830.3L221.6 898.8C212.2 905.3 198 904 190 895.9L104 809.9C95.9 801.8 94.6 787.6 101 778.2L169.5 678C157.6 655.9 147.9 632.3 140.6 607.7L20.2 585.2C8.9 583-0.2 572.1-0.2 560.6L-0.2 439.1C-0.2 427.6 8.9 416.7 20.2 414.5L140.6 392C147.9 367.9 157.3 344.8 169 323.1L99.7 221.8C93.3 212.3 94.6 198.2 102.7 190.1L188.6 104.1C196.7 96 210.9 94.7 220.3 101.1L321 170C342.8 158.2 365.9 148.6 390 141.2L412.7 20.2C414.8 8.9 425.8-0.2 437.2-0.2L558.8-0.2C570.2-0.2 581.2 8.9 583.3 20.2L605.8 140C630.9 147.4 655 157.2 677.6 169.4L779.6 99.7C789 93.2 803.2 94.5 811.3 102.6L897.2 188.6C905.3 196.7 906.7 210.8 900.2 220.3L830.5 322.2C842.4 344.2 852 367.6 859.3 392L979.8 414.5C991 416.7 1000.1 427.6 1000.1 439.1L1000.1 560.6C1000.1 572.1 991 583 979.8 585.2ZM500 291.4C384.8 291.4 291.4 384.8 291.4 500 291.4 615.2 384.8 708.6 500 708.6 615.2 708.6 708.6 615.2 708.6 500 708.6 384.8 615.2 291.4 500 291.4ZM500 586.2C452.4 586.2 413.8 547.6 413.8 500 413.8 452.4 452.4 413.8 500 413.8 547.6 413.8 586.2 452.4 586.2 500 586.2 547.6 547.6 586.2 500 586.2Z",
|
185 |
+
"width": 1000
|
186 |
+
},
|
187 |
+
"search": [
|
188 |
+
"theme-settings"
|
189 |
+
]
|
190 |
+
},
|
191 |
+
{
|
192 |
+
"uid": "f950d2562c11d9d0286c0638a0438057",
|
193 |
+
"css": "web-app-mode",
|
194 |
+
"code": 59408,
|
195 |
+
"src": "custom_icons",
|
196 |
+
"selected": true,
|
197 |
+
"svg": {
|
198 |
+
"path": "M5.2 598.7L5.2 466.7C5.2 454.7 15.3 444.8 27.7 444.8L265 444.8 161.7 620.7 27.7 620.7C15.3 620.7 5.2 610.8 5.2 598.7ZM174.2 868.8L98.5 919.3C88.3 926.1 81.1 921.8 82.5 909.7L92.6 823.5C94 811.5 104 806.6 114.7 812.6L173.3 845.5C184 851.5 184.4 862.1 174.2 868.8ZM192.4 820.2L133.8 787.3C123.1 781.3 119.3 767.8 125.6 757.3L396.9 295.1C403.1 284.6 417 280.9 427.7 287L486.3 319.9C497 325.9 500.7 339.4 494.5 349.9L223.2 812.2C217 822.6 203.1 826.2 192.4 820.2ZM399 620.7L502.3 444.8 561.8 444.8 645.7 620.7 399 620.7ZM735.4 673.2C712 661.7 595.1 397.9 565.2 329.1 535.2 260.3 444.7 77.2 474 62.9 494.8 52.7 569.6 196.9 625.6 283.5 681.6 370.1 798.6 593.4 813 618.8 827.3 644.3 799.2 665.5 783.6 671.9 768 678.2 758.9 684.6 735.4 673.2ZM812.2 794.4L776.9 739.8C769.6 728.5 773.4 714.5 785.3 708.5L818.9 691.6C830.8 685.6 845.6 690.4 851.9 702.3L879.8 754.7C886.1 766.6 881.8 781.8 870.4 788.5L846.3 802.5C834.9 809.3 819.5 805.6 812.2 794.4ZM942.2 937.5C934.8 914.4 878.5 912.8 853.3 878 828 843.3 848.9 825.5 857.7 817.2 959.9 760.9 942.2 937.5 942.2 937.5ZM994.8 598.7C994.8 610.8 984.7 620.7 972.3 620.7L853.5 620.7C852.2 613.9 850.1 607.1 846.5 600.7 843.4 595.3 835.6 580.7 824.7 560.4 809 531 786.4 489 762.2 444.8L972.3 444.8C984.7 444.8 994.8 454.7 994.8 466.7L994.8 598.7 994.8 598.7Z",
|
199 |
+
"width": 1000
|
200 |
+
},
|
201 |
+
"search": [
|
202 |
+
"web-app-mode"
|
203 |
+
]
|
204 |
+
},
|
205 |
+
{
|
206 |
+
"uid": "2e4dfa4fb1717e6f6d9133be3d9525aa",
|
207 |
+
"css": "js",
|
208 |
+
"code": 59409,
|
209 |
+
"src": "custom_icons",
|
210 |
+
"selected": true,
|
211 |
+
"svg": {
|
212 |
+
"path": "M916.7 83.6H614C612.6 83.6 611.3 83.7 610 83.8V0L19.1 78.9V919.1L610 1000V913.7C611.3 913.7 612.6 913.8 614 913.8H916.7C952.1 913.8 980.9 885 980.9 849.6V147.8C980.9 112.4 952.1 83.6 916.7 83.6ZM254 520.2C254 583.2 225.2 604.3 179.7 603.1 169.1 602.8 155.2 600.6 146.2 597.1L151.3 557.9C157.6 560.2 165.8 562 174.9 562.1 194.4 562.5 206.6 553.3 206.6 519.2V381.7L254 380.5V520.2ZM347.9 607.3C322.7 606.6 298.2 599.3 286 592.1L295.9 550.6C309.1 557.8 329.5 565.1 350.8 565.5 374 565.9 386.3 556.3 386.3 541.4 386.3 527.2 375.6 519 348.9 509.1 312.4 496 288.9 475.5 288.9 443.1 288.9 405.1 319.8 375.2 372 373.8 397.4 373.1 416.3 378.1 429.9 383.9L418.4 426C409.2 421.7 393 415.5 371 415.9 349.2 416.3 338.7 426.5 338.7 438.2 338.7 452.6 351.2 458.8 380 469.8 420 484.5 439.1 505.8 439.1 538.3 439.1 576.9 409.5 608.9 347.9 607.3ZM944.2 849.6C944.2 864.8 931.9 877.1 916.7 877.1H614C612.6 877.1 611.3 877 610 876.8V790.7C618.2 806.5 632 818.4 648.6 824 666.6 829.9 689.6 829.4 706.4 822.6 726.6 814.4 738.5 797.5 741.6 772.4 741.9 769.9 742.1 741.5 742.1 688V607.4H719.8 697.6L697.4 687.7 697.3 768.1 696.3 771.9C695 776.8 693.4 779.8 690.7 782.5 686.9 786.3 682 787.9 673.8 787.9 662.1 788 655.1 783 647 769.1 645.6 766.9 644.5 765.2 644.3 765.2 644.1 765.3 635.9 770.3 626.1 776.2L610 786V120.7C611.3 120.5 612.6 120.3 614 120.3H916.7C931.9 120.3 944.2 132.6 944.2 147.8V849.6ZM916.4 736.3C920.7 745 922.5 753.9 922.5 765.3 922.5 783 916.9 797.2 905.6 808.2 894.9 818.5 881.1 824.6 862.7 827.2 855.4 828.2 841.1 828.3 833.5 827.2 804.3 823.3 782.7 809.7 768.9 786.4 767.1 783.5 766.8 782.5 767.2 782.1 767.9 781.4 802.5 761.5 802.9 761.5 803.1 761.5 804.4 763.2 805.9 765.3 816.5 781 829.8 788.3 847.5 788.3 858 788.3 866.4 785.4 871.8 780 873.4 778.5 875.1 776.1 875.8 774.7 879.3 767.4 877.8 757.9 872.2 752 867.7 747.1 860.7 743.3 841.7 735.1 827.8 729.1 819.8 725.3 813.9 721.7 790.7 707.7 780.2 690 780.2 664.6 780.2 647.6 785.5 634.3 796.6 623.3 807.3 612.7 821.7 606.5 838.9 605.1 845.4 604.6 846.3 604.6 853.2 605.2 867.3 606.2 878 609.6 888 616.3 893.4 619.9 901.2 628.1 905.6 634.6 907.6 637.7 909.3 640.3 909.3 640.5 909.3 640.8 876.3 662.2 875.1 662.7 874.7 662.8 873.7 661.6 872.3 659.4 871.1 657.4 868.4 654.2 866.4 652.2 860.6 646.4 854.9 644.1 846.2 644.1 838.4 644.1 833.4 646 829.1 650.7 826.1 653.9 824.8 657.2 824.4 662.1 824.1 668.3 825.8 673.3 829.7 677.5 833.8 681.9 840.1 685.4 858.8 693.4 883.6 704.1 896 711.4 905.6 721.1 910.6 726.2 913.5 730.3 916.4 736.3Z",
|
213 |
+
"width": 1000
|
214 |
+
},
|
215 |
+
"search": [
|
216 |
+
"js"
|
217 |
+
]
|
218 |
+
},
|
219 |
+
{
|
220 |
+
"uid": "a76895f4e62f83739edda328b3de4ee5",
|
221 |
+
"css": "cloud307",
|
222 |
+
"code": 59414,
|
223 |
+
"src": "custom_icons",
|
224 |
+
"selected": true,
|
225 |
+
"svg": {
|
226 |
+
"path": "M808.3 375C779.2 233.3 654.2 125 500 125 437.5 125 379.2 141.7 333.3 175L395.8 237.5C425 216.7 462.5 208.3 500 208.3 625 208.3 729.2 312.5 729.2 437.5V458.3H791.7C862.5 458.3 916.7 512.5 916.7 583.3 916.7 629.2 891.7 670.8 850 691.7L912.5 754.2C966.7 716.7 1000 654.2 1000 583.3 1000 475 912.5 383.3 808.3 375ZM125 179.2L241.7 291.7C108.3 300 0 408.3 0 541.7 0 679.2 112.5 791.7 250 791.7H737.5L820.8 875 875 820.8 179.2 125 125 179.2ZM320.8 375L654.2 708.3H250C158.3 708.3 83.3 633.3 83.3 541.7 83.3 450 158.3 375 250 375H320.8Z",
|
227 |
+
"width": 1000
|
228 |
+
},
|
229 |
+
"search": [
|
230 |
+
"cloud307"
|
231 |
+
]
|
232 |
+
},
|
233 |
+
{
|
234 |
+
"uid": "f5999a012fc3752386635ec02a858447",
|
235 |
+
"css": "download-cloud",
|
236 |
+
"code": 59421,
|
237 |
+
"src": "fontawesome"
|
238 |
+
},
|
239 |
+
{
|
240 |
+
"uid": "554ee96588a6c9ee632624cd051fe6fc",
|
241 |
+
"css": "chart-pie",
|
242 |
+
"code": 59423,
|
243 |
+
"src": "fontawesome"
|
244 |
+
},
|
245 |
+
{
|
246 |
+
"uid": "14017aae737730faeda4a6fd8fb3a5f0",
|
247 |
+
"css": "check",
|
248 |
+
"code": 59412,
|
249 |
+
"src": "entypo"
|
250 |
+
},
|
251 |
+
{
|
252 |
+
"uid": "c759418c008e9562944080fee617fc76",
|
253 |
+
"css": "cancel-circled",
|
254 |
+
"code": 59410,
|
255 |
+
"src": "entypo"
|
256 |
+
},
|
257 |
+
{
|
258 |
+
"uid": "a66cdc7278e6b33b8bd44a141f5e1a8d",
|
259 |
+
"css": "plus-circled",
|
260 |
+
"code": 59411,
|
261 |
+
"src": "entypo"
|
262 |
+
},
|
263 |
+
{
|
264 |
+
"uid": "7e4164950ffa4990961958b2d6318658",
|
265 |
+
"css": "info-circled",
|
266 |
+
"code": 59392,
|
267 |
+
"src": "entypo"
|
268 |
+
},
|
269 |
+
{
|
270 |
+
"uid": "39a5a0d7ce8342d149373b2ce219503a",
|
271 |
+
"css": "alert",
|
272 |
+
"code": 59418,
|
273 |
+
"src": "entypo"
|
274 |
+
},
|
275 |
+
{
|
276 |
+
"uid": "51727ca007aa35ceabcaffc28934faee",
|
277 |
+
"css": "book-open",
|
278 |
+
"code": 59403,
|
279 |
+
"src": "entypo"
|
280 |
+
},
|
281 |
+
{
|
282 |
+
"uid": "884cfc3e6e2d456dd2a2ca0dbb9e6337",
|
283 |
+
"css": "left-open-big",
|
284 |
+
"code": 59415,
|
285 |
+
"src": "entypo"
|
286 |
+
},
|
287 |
+
{
|
288 |
+
"uid": "004882ab2d5c418c5b2060e80596279b",
|
289 |
+
"css": "right-open-big",
|
290 |
+
"code": 59413,
|
291 |
+
"src": "entypo"
|
292 |
+
},
|
293 |
+
{
|
294 |
+
"uid": "489090690d8bd1745e365485946e20a8",
|
295 |
+
"css": "megaphone",
|
296 |
+
"code": 59416,
|
297 |
+
"src": "entypo"
|
298 |
+
},
|
299 |
+
{
|
300 |
+
"uid": "8beac4a5fd5bed9f82ca7a96cc8ba218",
|
301 |
+
"css": "key",
|
302 |
+
"code": 59420,
|
303 |
+
"src": "entypo"
|
304 |
+
},
|
305 |
+
{
|
306 |
+
"uid": "b4cc17a45ed7d179a2cc815e2da7a383",
|
307 |
+
"css": "ok-circle",
|
308 |
+
"code": 59393,
|
309 |
+
"src": "iconic"
|
310 |
+
},
|
311 |
+
{
|
312 |
+
"uid": "pt5lb2orj9ms0n4yyxjavefdukcv1scl",
|
313 |
+
"css": "heart",
|
314 |
+
"code": 59422,
|
315 |
+
"src": "modernpics"
|
316 |
+
},
|
317 |
+
{
|
318 |
+
"uid": "m3m8301t2xdy30x4lp7txm0vztl67tcl",
|
319 |
+
"css": "mobile",
|
320 |
+
"code": 59419,
|
321 |
+
"src": "modernpics"
|
322 |
+
},
|
323 |
+
{
|
324 |
+
"uid": "r36ey62e6pi493s139u528739kjr3o8w",
|
325 |
+
"css": "tablet",
|
326 |
+
"code": 59417,
|
327 |
+
"src": "modernpics"
|
328 |
+
}
|
329 |
+
]
|
330 |
+
}
|
admin/fontello/css/animation.css
ADDED
@@ -0,0 +1,85 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*
|
2 |
+
Animation example, for spinners
|
3 |
+
*/
|
4 |
+
.animate-spin {
|
5 |
+
-moz-animation: spin 2s infinite linear;
|
6 |
+
-o-animation: spin 2s infinite linear;
|
7 |
+
-webkit-animation: spin 2s infinite linear;
|
8 |
+
animation: spin 2s infinite linear;
|
9 |
+
display: inline-block;
|
10 |
+
}
|
11 |
+
@-moz-keyframes spin {
|
12 |
+
0% {
|
13 |
+
-moz-transform: rotate(0deg);
|
14 |
+
-o-transform: rotate(0deg);
|
15 |
+
-webkit-transform: rotate(0deg);
|
16 |
+
transform: rotate(0deg);
|
17 |
+
}
|
18 |
+
|
19 |
+
100% {
|
20 |
+
-moz-transform: rotate(359deg);
|
21 |
+
-o-transform: rotate(359deg);
|
22 |
+
-webkit-transform: rotate(359deg);
|
23 |
+
transform: rotate(359deg);
|
24 |
+
}
|
25 |
+
}
|
26 |
+
@-webkit-keyframes spin {
|
27 |
+
0% {
|
28 |
+
-moz-transform: rotate(0deg);
|
29 |
+
-o-transform: rotate(0deg);
|
30 |
+
-webkit-transform: rotate(0deg);
|
31 |
+
transform: rotate(0deg);
|
32 |
+
}
|
33 |
+
|
34 |
+
100% {
|
35 |
+
-moz-transform: rotate(359deg);
|
36 |
+
-o-transform: rotate(359deg);
|
37 |
+
-webkit-transform: rotate(359deg);
|
38 |
+
transform: rotate(359deg);
|
39 |
+
}
|
40 |
+
}
|
41 |
+
@-o-keyframes spin {
|
42 |
+
0% {
|
43 |
+
-moz-transform: rotate(0deg);
|
44 |
+
-o-transform: rotate(0deg);
|
45 |
+
-webkit-transform: rotate(0deg);
|
46 |
+
transform: rotate(0deg);
|
47 |
+
}
|
48 |
+
|
49 |
+
100% {
|
50 |
+
-moz-transform: rotate(359deg);
|
51 |
+
-o-transform: rotate(359deg);
|
52 |
+
-webkit-transform: rotate(359deg);
|
53 |
+
transform: rotate(359deg);
|
54 |
+
}
|
55 |
+
}
|
56 |
+
@-ms-keyframes spin {
|
57 |
+
0% {
|
58 |
+
-moz-transform: rotate(0deg);
|
59 |
+
-o-transform: rotate(0deg);
|
60 |
+
-webkit-transform: rotate(0deg);
|
61 |
+
transform: rotate(0deg);
|
62 |
+
}
|
63 |
+
|
64 |
+
100% {
|
65 |
+
-moz-transform: rotate(359deg);
|
66 |
+
-o-transform: rotate(359deg);
|
67 |
+
-webkit-transform: rotate(359deg);
|
68 |
+
transform: rotate(359deg);
|
69 |
+
}
|
70 |
+
}
|
71 |
+
@keyframes spin {
|
72 |
+
0% {
|
73 |
+
-moz-transform: rotate(0deg);
|
74 |
+
-o-transform: rotate(0deg);
|
75 |
+
-webkit-transform: rotate(0deg);
|
76 |
+
transform: rotate(0deg);
|
77 |
+
}
|
78 |
+
|
79 |
+
100% {
|
80 |
+
-moz-transform: rotate(359deg);
|
81 |
+
-o-transform: rotate(359deg);
|
82 |
+
-webkit-transform: rotate(359deg);
|
83 |
+
transform: rotate(359deg);
|
84 |
+
}
|
85 |
+
}
|
admin/fontello/css/fontello-codes.css
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
.icon-info-circled:before { content: '\e800'; } /* '' */
|
3 |
+
.icon-ok-circle:before { content: '\e801'; } /* '' */
|
4 |
+
.icon-advanced-type:before { content: '\e802'; } /* '' */
|
5 |
+
.icon-devices:before { content: '\e803'; } /* '' */
|
6 |
+
.icon-extension-browser:before { content: '\e804'; } /* '' */
|
7 |
+
.icon-general-settings:before { content: '\e805'; } /* '' */
|
8 |
+
.icon-infinity-cache:before { content: '\e806'; } /* '' */
|
9 |
+
.icon-mobile-phone:before { content: '\e807'; } /* '' */
|
10 |
+
.icon-multi-ads:before { content: '\e808'; } /* '' */
|
11 |
+
.icon-related-posts:before { content: '\e809'; } /* '' */
|
12 |
+
.icon-responsive-images:before { content: '\e80a'; } /* '' */
|
13 |
+
.icon-book-open:before { content: '\e80b'; } /* '' */
|
14 |
+
.icon-site-compatibility:before { content: '\e80c'; } /* '' */
|
15 |
+
.icon-theme-browser:before { content: '\e80d'; } /* '' */
|
16 |
+
.icon-theme-customizer:before { content: '\e80e'; } /* '' */
|
17 |
+
.icon-theme-settings:before { content: '\e80f'; } /* '' */
|
18 |
+
.icon-web-app-mode:before { content: '\e810'; } /* '' */
|
19 |
+
.icon-js:before { content: '\e811'; } /* '' */
|
20 |
+
.icon-cancel-circled:before { content: '\e812'; } /* '' */
|
21 |
+
.icon-plus-circled:before { content: '\e813'; } /* '' */
|
22 |
+
.icon-check:before { content: '\e814'; } /* '' */
|
23 |
+
.icon-right-open-big:before { content: '\e815'; } /* '' */
|
24 |
+
.icon-cloud307:before { content: '\e816'; } /* '' */
|
25 |
+
.icon-left-open-big:before { content: '\e817'; } /* '' */
|
26 |
+
.icon-megaphone:before { content: '\e818'; } /* '' */
|
27 |
+
.icon-tablet:before { content: '\e819'; } /* '' */
|
28 |
+
.icon-alert:before { content: '\e81a'; } /* '' */
|
29 |
+
.icon-mobile:before { content: '\e81b'; } /* '' */
|
30 |
+
.icon-key:before { content: '\e81c'; } /* '' */
|
31 |
+
.icon-download-cloud:before { content: '\e81d'; } /* '' */
|
32 |
+
.icon-heart:before { content: '\e81e'; } /* '' */
|
33 |
+
.icon-chart-pie:before { content: '\e81f'; } /* '' */
|
admin/fontello/css/fontello-embedded.css
ADDED
@@ -0,0 +1,86 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
@font-face {
|
2 |
+
font-family: 'fontello';
|
3 |
+
src: url('../font/fontello.eot?41454967');
|
4 |
+
src: url('../font/fontello.eot?41454967#iefix') format('embedded-opentype'),
|
5 |
+
url('../font/fontello.svg?41454967#fontello') format('svg');
|
6 |
+
font-weight: normal;
|
7 |
+
font-style: normal;
|
8 |
+
}
|
9 |
+
@font-face {
|
10 |
+
font-family: 'fontello';
|
11 |
+
src: url('data:application/octet-stream;base64,d09GRgABAAAAAB9QAA4AAAAALfgAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABPUy8yAAABRAAAAEQAAABWPjNJMmNtYXAAAAGIAAAAOgAAAUrQMBm3Y3Z0IAAAAcQAAAAKAAAACgAAAABmcGdtAAAB0AAABZQAAAtwiJCQWWdhc3AAAAdkAAAACAAAAAgAAAAQZ2x5ZgAAB2wAABPJAAAZcsFRlvdoZWFkAAAbOAAAADUAAAA2B48cvmhoZWEAABtwAAAAIAAAACQH4AOiaG10eAAAG5AAAAA6AAAAhHOPAABsb2NhAAAbzAAAAEQAAABEbfR0X21heHAAABwQAAAAIAAAACAA0gwebmFtZQAAHDAAAAF3AAACzcydGx1wb3N0AAAdqAAAAUAAAAHgY5Y4AXByZXAAAB7oAAAAZQAAAHvdawOFeJxjYGRuYJzAwMrAwVTFtIeBgaEHQjM+YDBkZGJgYGJgZWbACgLSXFMYHF4wvJBnDvqfxRDFHMawECjMCJIDAO3qC+N4nGNgYGBmgGAZBkYGEHAB8hjBfBYGDSDNBqQZGZgYGF7I//8PUvCCAURLMELVAwEjG8OIBwCGSgbNAAAAAAAAAAAAAAAAAAB4nK1WaXMTRxCd1WHLNj6CDxI2gVnGcox2VpjLCBDG7EoW4BzylexCjl1Ldu6LT/wG/ZpekVSRb/y0vB4d2GAnVVQoSv2m9+1M9+ueXpPQksReWI+k3HwpprY2aWTnSUg3bFqO4kPZ2QspU0z+LoiCaLXUvu04JCISgap1hSWC2PfI0iTjQ48yWrYlvWpSbulJd9kaD+qt+vbT0FGO3QklNZuhQ+uRLanCqBJFMu2RkjYtw9VfSVrh5yvMfNUMJYLoJJLGm2EMj+Rn44xWGa3GdhxFkU2WG0WKRDM8iCKPslpin1wxQUD5oBlSXvk0onyEH5EVe5TTCnHJdprf9yU/6R3OvyTieouyJQf+QHZkB3unK/ki0toK46adbEehivB0fSfEI5uT6p/sUV7TaOB2RaYnzQiWyleQWPkJZfYPyWrhfMqXPBrVkoOcCFovc2Jf8g60HkdMiWsmyILujk6IoO6XnKHYY/q4+OO9XSwXIQTIOJb1jkq4EEYpYbOaJG0EOYiSskWV1HpHTJzyOi3iLWG/Tu3oS2e0Sag7MZ6th46tnKjkeDSp00ymTu2k5tGUBlFKOhM85tcBlB/RJK+2sZrEyqNpbDNjJJFQoIVzaSqIZSeWNAXRPJrRm7thmmvXokWaPFDPPXpPb26Fmzs9p+3AP2v8Z3UqpoO9MJ2eDshKfJp2uUnRun56hn8m8UPWAiqRLTbDlMVDtn4H5eVjS47CawNs957zK+h99kTIpIH4G/AeL9UpBUyFmFVQC9201rUsy9RqVotUZOq7IU0rX9ZpAk05Dn1jX8Y4/q+ZGUtMCd/vxOnZEZeeufYlyDSH3GZdj+Z1arFdgM5sz+k0y/Z9nebYfqDTPNvzOh1ha+t0lO2HOi2w/UinY2wvaEGT7jsEchGBXMAGEoGwdRAI20sIhK1CIGwXEQjbIgJhu4RA2H6MQNguIxC2l7Wsmn4qaRw7E8sARYgDoznuyGVuKldTyaUSrotGpzbkKXKrpKJ4Vv0rA/3ikTesgbVAukTW/IpJrnxUleOPrmh508S5Ao5Vf3tzXJ8TD2W/WPhT8L/amqqkV6x5ZHIVeSPQk+NE1yYVj67p8rmqR9f/i4oOa4F+A6UQC0VZlg2+mZDwUafTUA1c5RAzGzMP1/W6Zc3P4fybGCEL6H78NxQaC9yDTllJWe1gr9XXj2W5twflsCdYkmK+zOtb4YuMzEr7RWYpez7yecAVMCqVYasNXK3gzXsS85DpTfJMELcVZYOkjceZILGBYx4wb76TICRMXbWB2imcsIG8YMwp2O+EQ1RvlOVwe6F9Ho2Uf2tX7MgZFU0Q+G32Rtjrs1DyW6yBhCe/1NdAVSFNxbipgEsj5YZq8GFcrdtGMk6gr6jYDcuyig8fR9x3So5lIPlIEatHRz+tvUKd1Ln9yihu3zv9CIJBaWL+9r6Z4qCUd7WSZVZtA1O3GpVT15rDxasO3c2j7nvH2Sdy1jTddE/c9L6mVbeDg7lZEO3bHJSlTC6o68MOG6jLzaXQ6mVckt52DzAsMKDfoRUb/1f3cfg8V6oKo+NIvZ2oH6PPYgzyDzh/R/UF6OcxTLmGlOd7lxOfbtzD2TJdxV2sn+LfwKy15mbpGnBD0w2Yh6xaHbrKDXynBjo90tyO9BDwse4K8QBgE8Bi8InuWsbzKYDxfMYcH+Bz5jBoMofBFnMYbDNnDWCHOQx2mcNgjzkMvmDOOsCXzGEQModBxBwGT5gTADxlDoOvmMPga+Yw+IY59wG+ZQ6DmDkMEuYw2Nd0ayhzixd0F6htUBXowPQTFvewONRUGbK/44Vhf28Qs38wiKk/aro9pP7EC0P92SCm/mIQU3/VdGdI/Y0Xhvq7QUz9wyCmPtMvxnKZwV9GvkuFA8ouNp/z98T7B8IaQLYAAQAB//8AD3icVVkLmBxVla5Tt95dVV3VXa+u6en3YzKPnp5+zmQyPcmQhBBDMmTyBgKESQIBFEIyGzRAzLKIIugKKkZkkY3KgkaygOunfnysxogoCi66n7L4fT7YRRf5JPKhwXTNnluTsDjpW49bp86te885//nPDUPmz8x/nBwhg4zExJlFjPJvKUuXeSBDA9BiYgzHsIybE2zBqddazQaptdplIZ+bhFY+J4huq16LggAnnwJDCN4KbgteF0A91V9hc5lS5YnUtY1Y1dOVfr+amhs1Go6qFnzSzwZ/WZBU4CDEPlX1k5nBzOLusUbDK5QevHxxxc/l7ruKwZGZ+c+Rj5EsfpvOSE9GZIln8btqjIHfFWPiUIayCC98HYTg7eDjwV9Y4PbBJeuCP92yjvRi193BGQ5U2AN69320/81b1jLMgt7ryCtkmomiFulJ08BZDg3IQPJ2vZlvZ928nW3moQfYY8FHT3dO3/ww3Dk+Ce1O98WfrCLT3eeDOzud06c7HdgP7eD7VKeIOo+RV4mOOj0myTSZDrONuZKJLzUuu3hmcnGrUupJWIbIiEMDfL4CTbPRGoeaY5uWUK61GqWcYDnxvFkn+WajlM+adRulymYH2tkUuHYFeCpBJYthR75ZKmfRMChouY57Vjh+ThV56mgskYgdjXnerKQohqJcdM89nxNksXvk5Gu18wDOq7EfxXNspJtCmYLnwSGo54fgPNCC53jpDyzL/y5XAah8SzUMzzTXQyIGy+OJRDz4VixhK0YkYihwUfAqe0NRkgNvD6xswMnGSsDztOV+IlFM4G8LDBfe9z4NJCFYMS1LqgLVArxcGO4eiSVMMxFj+PnX5i/DdVvPEFxDjXGZfia6VC2nrZiqCBww/NBAsVm3Ca4HaZp1M1+ka4JnnLDguCkQhVK7VSqXWm27JJDIy/g3WiwGK+1f5u65p/DzH4tr/JELZvqHis4jfvJrs/UdPx4bg8fHgn3b2faZY7+FA8mvmWdejH7hpsFdmSVfbhkr/OyfR28+Dy4mBtqVm//z/NXkd/h9EmMxu5nrGW2pct3Vm6pmhAcOnbGUE8GFVkMEIVdqtKFVc6w4iK5jCblhqI4Ms6VGq5aGdhk/sgL5nKhDGhwLwwaflwQxnES91XbFcknAXgef1muT0IFhaIPjYsShdqqcqiY/8lf7wY23wF1+J3hUtKIibJTihhH8eaMmGXEpNZnfLkYtUdu4RkmXUmsH0ilNkNdrWlovaOuVHi5WHEmtLFn2/fO65IqreBCToiIJ18isqM/DlkLNGzTzG+P1YrFeJEl/YazkyoHgUSlqSTiYEe9uBwlHi0fFdKdwKY4u4WjNnaV0RuZ6lPVaQU9p2kWKqE0e6E/4QO4PNJnI10gmDsVdIHiSNh98KQcxs3jFhlhppFQaYRiYDxiGvMruYJYzwuO9DAwNtNHO+ENn10FEa1dAB1wqF/vwDvvwl8PedqOFcnV84rhOB9AVyuFz10LpV66+b6K5Z8nSVQBrly87j40U84rCXrfnvbex7K1XX3bnktH9Kzf2agLIujGcm1qjibxZ9lkd2Nj1szftYJOx7du4j22+YA/hdrVqOzh+SozLbl9cvU7k77/sygd57raNa/eSyd6GKtZ7M2nSsSVBZ3N9USA9F/PSY+dPjw+uZtB7mPkPkmVkPMSHDFNg+phBpso0GHtprD4yPDSwqFzMZX3ECImRECOy74p+U4diB84GtpltZrHh2QS8tN/VCN/9ZSIHkEuwufAc/Mzq6enz/S6b6/6KTTuBA98M9sOd7263ojiZWnjtzFOJXD/4ZR9/xOneMMz2jXafht8FLuxbcXzF8eXHVzDUVvPzd5MTGBM1tFVcAPq51ZG8DuVcOZ8rTUCp/Q68oR+nAaNUhhb1bEEEnFEvWAL55JkzuuJFCDcmqwCq/AFJBUspxCZMRQnehudiBaUgK2ZQYE2cxTUC5hlVHlQUMiOrqtx9Dn6BgnmlaAZLQFYUcwm+ELwOfvz8uI/5ga73C4jxBpPFVV5F43Z5p5JLJSIMxm2x3KZIGQU81zBYRb5MlzcNGIWNNg1Y3hUp4E6Ci46WK9HuouvU8DWMS/oG7R0G9vOzp6z+Mbs925p6ZFmnE+x+wxnrt1uz7YkJ7HgjeHH2Dbt/zGnNtjIXzlyYmZiAz5yyxxzLas+2O52w7403Z8+91Okse2Rq0bk3Qo2nzgufUvk0/mHfolOW5YQCKEz7TjFCGD+vsMfQv9LMALOEWc9czJhL9c0zqybGB0uZpKOyAuIVEYah6baLYr7dcnmnyLttWxTKpNQuttKQF7M1TElitlQ2W/F6hwaciPHVcty6meVzNPdXgMYbWpdmf4Q5/iw0CeTXn+ak3OiVwXfGB6Y5Ed4rdv8++M6Vo3mR+zQr4C03PfgIy0Yi3UABqK5ll1cGi5BO9xT1bLAMrjdVWXOSgD4ji6LEqQaaPTgRte20bcOp4FmRGNf4P7z3wFGRfJk7fO8P/WsMIkJL5L5MxKMpJXgPalXgSSU4bhzvqd7AC5s17vwypLfxrBpVWFHmedMzRStl2ynrbM6+n9xG+sLc8/8xiTmbxmMfpuGkKfIEMGcX7XKzjQ1oxhZ5IYeAnC8XS5jH6ToWW2AWMSJ5E2yxGccGG5555hn2104m2CtxAiewSrA34zge3AK3eMFo8DT72+Bp4FDo9eXTyw9hA0VNdQ/l1AdZ/HtQzbGHUqqhHDminPkvtnqo+3x4gMVUMoMHGodn5mfJaxiHH8I4vCKPcYiRhrapUGyMIhK2HTRdBQS8dcVSudmBZgWQt1mOawviQkYKQbXt4i0izkI+wrcQS8VQTagQFbkiviek0Pb4Vtttu+F7HQrL+TLKC+fAl+ptky3qYCJdiNQziRz3oqh/yB02bKE24RhEvd3tcZMwsGwQet2ke7tKDLtT4y2z4t4RFV/ksolMXeQLmcSA+nNW/nZ82Eka2fFeJ859N2quS5TliN8ZVSUtPh2Lr4vpstru+BG5nMDr73KWk1ySMXqcavzbMoE52+aE+rICz+e9km8dlSKW3xkQElbVfigqvCCV/ezgYNYvSy8I0YfsqpUQBjq+FZGOWn7Jy/P4Edm6wNl22bFvMHgtNr7YMLTBxI1a5KUeLzPq+ulExXgZ4GWjkkj77mjG63kpot2YGNQMY/F4TOONG2yHQVbDzO8h/4F2Uhib8ZkyM8IsRn44xaxh1jEzzGbmUia9NHnJ1k0b1k+vu/A9K5ZNToy3akN96WTCiUY40NCwIgJVvUYRlEJXuxaCKkGndNF4IoblMGC4tsUQf7M2sspzfJFgbjBpW4DkXsiiM5hINyjliLcp5JGT+47ukxRdvlUiwZdeuUA2JPF4RBCe/mr5leBMqhE+i/fju6v/U4uBHTugmqZnGJ8GO/hf2mIa9uPlaDJ576XtL+29d+pHefahe2+Fg5f84FIh8oDs/eOhQzpwVwquEjx6xc0rbu2eai3FJy70OumY9tnParGbDNToGTB1Er53Eu7XYtjdfcKowdaZo+ndd82th2uT5Pv7HwixfQ9xyQyzldnO7GB2UWzfObvj8ku3rVUoJxsIiQMlhTobMkRKFdBBxXy5OlJujCDvGsGH+eqIIFbz6Ni2aI2IVXpEAtaLrM3N09UbhzhSsywysHidrmQZ1ypPcNnQ/fOEKQ1pekrkr1QFNBLHqpqu6hhWhty3xASYBo4GPg/4x7LADoMxpmiaYoyBJsEWzHljMbw/RobU819JeJPaULQCH7svUi1vuobjQIlKbNWM8qLnp1vRr5zggHwVJMICgVAj/iNPAcsf1y0tSNOMCL/SLP2TIN4FMmlJFeGLtC4h4VpRfr0Zq5Frsb67anb7lgmT1ne4Lq6DlFNHphmeBsKMViojpR5GEJmE8DQBjRbWe22k2JNhNg9P1JXQG902TespRJvwRBM7KhLP0TRSgbO54cWbIrEVPCtsEmLSzmzJZTX5/bLGuoXMrBTDXuBWxCI3Saoq3aScExR3ZgvvCJZyu0QqyPIrzFAw8LbOsezc1oVjsVpdXa2C7BZzO8/JxSIHQoWquYKDcOTZ3FmFOusUsjuldwTDkQ/QTwSRjrwrW3RYnY4MhXfG2DoXvAR0mNVVuraU0z1MfkMsRsbagGaPMeYCzLuXUU538caLVq9aOlYtFQtJQxUIcrp2k0YgjdC4KEyeJUZtymDPkSRcukmop6HE0t4WrQxcB304XPoF/oQOWnIpUtOkHLeEAbQQhj5SLV5T/rD7dkX7l/fEWAV9bLEEymKJ5yHKmzJecMEfefPk7iUbtrp/l0yuM2LbBocPGnLCs5fkeU7OyXE+yfGyJ8cPSuOOqcmrjBFNmSOKMfkTRfvrbbL2mBb8tabEN8s8l+H1wSxvyPAjiePoRVCTuB889ljDAWZq4htx+NT5a/47FU9GuBtacow3UHETB9B57kOG5fm9Qu+HYaWsRWKZGzUZ15IP/fSn6Kc6Vs9LcA0/S+vAD+7aNrmkkjQFgnUgZPNN3uSbWXQtE0tTinGYizAnTSAGhpcsjVKsrpGy1GgCo1HsOiKSFEvIZ5tOSODazbyInIeCJkUB0WxhjDs2cRA1sdDC+qE00q66WIWhbCtMi+USVVmnBknTWKmGiQ4TKbVQiiWfDF7gusfZdVDvKQAUumv7clJc5CM9seHt8Ryy095szLSSmcFy0VZFN2vEnSUwxJaiavCc5utpNcMNYlATXpVVAdgcAsawGk2K2R7BFAZttkAMPypjTS4TTbckLBR0W+cUjrBRk+dEDytlgah6DJ0l2LDuzNcv2gSFHvapZD64cLgIhJQJxBIfZn8jC4t4GXQ7KioZr7cMSj8RNUuTrGqq75Qa3eQqHK8Xv3AR0jciyApns58BQ+0+oRk9aQ5AyHM25yIKaQonCjJnFf0My8okwvOsrEpEBpETZWQ7gqTp4T7LN8gqwoa1s/SkGQn3WRA4DCFTMlro+2JZDNG0DUePvfVWcPStt4A7sunIfVuOHNly35FNhF3ou+St4JIjm+67D5/Q49k9nHfrjmt/qzteb+abeTtv1+36O7p//cwzu559dte7tPbT+2fDmqaLSv+JfZqJI5dSaf1Zp/V5h+IaLPBgnP7pnPOEIQ0ujs1Bn9HyPVUPHrIKyde80YLkHYFfYAd2d5/PMKHOP80/BC+TJDIA4fEIjzpdGWujlgsOKiuXNNgVHPF934E7PC844Pi+BXthn48XwZzvYfOdsxj+P1gb/5TpQe5QRQxf1FcuOoRiODon3YdbqH9terDCW+R5RXcBiLO4ui7QehLjhvR5X5wb3pifdFrJyw+TydZKyGcmF1XY67rc/t13EHLXHnh1ptVddTdcGFx7/naW3X4+vHTdnWwi0Ynq5PDlNqxs5RcbneTW1sz+H94g3bl7z11kpsV+/e3gcXb7SnwD5/0mzvuXZ+eNPAzrQwdrDJw6tDAaAU7QSQcHPA/uwLn6wRGLzhk+4mHDJ37w0XCfbv70/L1kltSQlY+hjcfqAzYbclxRqLCU0y4AJA3lhaIfL8KdoA5PwRGJMEECS4i3OFZNTi29fX0yKTke18fphVoj5WV8YTSWknLTuumlbzm2elDwvOrRjMT5o2tHDc4bnR6FNz/yR0tN1bAz5Yw2FE/KqU5MaawZVRVf4dRqIbNdb1y/fdtUQ7GeCFZzyw8d3tuS1tx+255KaLeH2e9hfoiiVyXRbp5lGiJDwjnQql48V+UD1g7uuRKf3dnfBmj3d4P+UYDRfngtWPSa3dPT7/vEgrH+7qUDYwBjA+w/949Bt8pu6T78Aejpw0q/hyHz3flbyIfJUmYtZqJNOOaGmel1ozEcs7iQ62kSoRtPC3m/RPMJ5pazCZ8WtwtpfhgTN4qezTsp+sxZ2J2iyV6wXB7Dq23mTbLfkry1Xobl2IyzyakpFTVn1HKt9zuW1JI8b4+nWJss/FGpHCuknGmvplbUgopH5w7HkJYonr/Xl6xNsVjws9nZ2d8bOcERBv31nqUMqoazxWGttdXkSt3wjnp9rMoljTVGDdtZMd9SSorhTDssjq/rG1DuEafEquyC3MNXXfUgcMGZkDf+O7zE/hUxY2EPBnljLptMmDJH9wTeMQDJ/q15XJxuvdUox9FKr9u+39/T8w9QLw0B9GeCb2b6AYY+qOs36/rh4NY0JPt8vy9JEjBY6O6gD/sz7AOFwSYuHP66n4c/Bgb69tvz1xOfbGISzBD6dn+vp1LfdqgvR9kwzQ/TgCktZHrxbBlHlx8bW+tgJW9dvmtq6dzKq/TMGtViDckC1tNjd+/d86/XpmIbZlOSRHjWEc8zdE+3DHZ238mYqnxb/WKS0zlD35Hy4XBt5Z6HLOvwtwb3dKxB1ZEN0eJHVMlgdRp/8/OnuSqJ4GrV8RtLSUuk39goDWCGxUMOuXI+3DWh+yQtzLFiNlei+3HlBt0bCDcIbAtBiH1WkW5WxGtF5WZJ4U/wBjbYeXBb9/O774W1U/Dw3OaPZ/ua4xvcVdthjaSckBRFOqFQMf6EMLf1IHziqlUHU97cwzum8xvGB3LmXLgPhR95mn00xGyRYnYRvbi5sGm4cMRPgoPBb0YqsGPD6ov6+9ev3nAFVEZi0DOyuzqzA2Cy2ZwE2DFT3T0S8uX5YP54uLcVYQzGwfiJm4aKiZb+/wDdcKywiLXxLOqNZ80amvQrUB1/YPP+k9dzB5666Sr46tTEJcHM/hP74Irg+Ykp2Hfi9yf2BTNbHhiHA/CVvSf/Dzu31zEAAAB4nGNgZGBgAOKQ9ii/eH6brwzczC+AIgyXtBhXgWnN61X/3/yPZzFgDgNyORiYQKIAQwEL7gAAAHicY2BkYGAO+p/FEMWiz8Dw/zmLIQNQBAUoAgBv+ASKeJxjfsHAwDwDiBcA8QsicAseOQ8IZprNwMB4ESIGpmOAYseBdCuQfxtI8zAwsOgDxX5A1AAA+QcY6wAAAAAAAABOAHoApAFAAZACRAK0AxoDbAPkBH4E3gWyBloG8AeeCEQJLglcCYQJrgnSCioKTgquCugLdgu8DA4MXgyIDLkAAQAAACEAnAANAAAAAAACAAAAEABzAAAAMAtwAAAAAHicdZHNSsNAFEa/aWvVFlQU3HpXUhHTH+hGEAqVutFNkW4ljWmSkmbKZFroa/gOPowv4bP4NZ2KtJiQzLln7ty5mQA4xzcUNleXz4YVjhhtuIRDPDgu0z86rpCfHR+gjlfHVfo3xzXcInJcxwU+WEFVjhlN8elY4UydOi7hRF05LtPfOa6QHxwf4FK9OK7SB45rGKnccR3X6quv5yuTRLGVRv9GOq12V8Yr0VRJ5qfiL2ysTS49mejMhmmqvUDPtjwMo0Xqm224HUehyROdSdtrbdVTmIXGt+H7unq+jDrWTmRi9EwGLkPmRk/DwHqxtfP7ZvPvfuhDY44VDBIeVQwLQYP2hmMHLbT5IwRjZggzN1kJMvhIaXwsuCIuZnLGPT4TRhltyIyU7CHge7bnh6SI61NWMXuzu/GItN4jKbywL4/d7WY9kbIi0y/s+2/vOZbcrUNruWrdpSm6Egx2agjPYz03pQnoveJULO09mrz/+b4f4GSETQB4nG2PyVLDMBBEPYEsDrZJwr6TD1AVVRz4Hlma2CLaShonhK9HxAQuzGFqug9vurNB1s80+3+WWQYDOIJjGMIIxjCBHKZwAgWUUMEpzGAOCziDc7iAS7iCa7iBW7iDe3iAR3iCZ1gWyq4cEyoIjTJ365+z5HLDrUDJaOdxLHGjBMY5fhDaqJxldXDbiGHWoMXANYtIpGwTq8RTVtGOCS5aLIyrlUbmW2cxN50mxbiMZUDNKdG9ixTnAaN3ibtBpgxvMOa1S1GcR7uIipAJZzwnlVCJXFKLBn8T9Ep0kZxRnxiq3jgEKrZYM+49M07i4D1W4ruXPlQuvO7iQQxTYrGugmpa2n9ntWomQrtOvr68lRpXf3ZusOH7WiPitUYaco2BRn3hozXuKum2Vjsu2Z4wbJEHykWbNvMKs+wLIZ2NyXicY/DewXAiKGIjI2Nf5AbGnRwMHAzJBRsZWJ02MjBoQWgOFHonAwMDJzKLmcFlowpjR2DEBoeOiI3MKS4b1UC8XRwNDIwsDh3JIREgJZFAsJGBR2sH4//WDSy9G5kYXAAH0yK4AAAA') format('woff'),
|
12 |
+
url('data:application/octet-stream;base64,AAEAAAAOAIAAAwBgT1MvMj4zSTIAAADsAAAAVmNtYXDQMBm3AAABRAAAAUpjdnQgAAAAAAAAIgAAAAAKZnBnbYiQkFkAACIMAAALcGdhc3AAAAAQAAAh+AAAAAhnbHlmwVGW9wAAApAAABlyaGVhZAePHL4AABwEAAAANmhoZWEH4AOiAAAcPAAAACRobXR4c48AAAAAHGAAAACEbG9jYW30dF8AABzkAAAARG1heHAA0gweAAAdKAAAACBuYW1lzJ0bHQAAHUgAAALNcG9zdGOWOAEAACAYAAAB4HByZXDdawOFAAAtfAAAAHsAAQOAAZAABQAIAnoCvAAAAIwCegK8AAAB4AAxAQIAAAIABQMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUGZFZABA6ADoHwNS/2oAWgNWAKEAAAABAAAAAAAAAAAAAwAAAAMAAAAcAAEAAAAAAEQAAwABAAAAHAAEACgAAAAGAAQAAQACAADoH///AAAAAOgA//8AABgBAAEAAAAAAAAAAAEGAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//8/5ADmgMsAAgAEwApAAq3HhQOCQUBAy0rATYAEgAEAAIAFyIGFQYWMzI2NTQDMjY3JwYjIj8BNiMiBgcXNjMyDwEGAca+ARAG/vb+hP7uBgEM8iouAiIgJi60Hmw0EjAYDgoqGjAedjgQNBYMDCQaAyoC/vj+hP7uBgEKAXwBEpYwGhwgLCA6/a40NBgkJqBgOi4aIiKYaAAAAgAA/50DjwMhAAgADgAItQsJCAUCLSsBMgAQAAQAEgATAScBJwcB0bgBBv76/pD++AIBBHQBXE/+835PAx3++v6O/vwEAQwBagEO/W8BXE/+9H5OAAAAAAIAAP9tA+UDUAAPABIACLUREAQAAi0rCQEDIxUzNSM3IRcjFSE1IwEbAQKu/oz5Pvl9qAGLOz8BNz791NJIA1D90P6LPj75+T4+AXUBN/7JAAAAAAcAAP+uA+gDDgAPABgAHAA1AD4AWgBjABNAEF9bUz86Ni4mGxkUEAcABy0rBSMuATURNDY7ATIWFREUBicyNjQmIgYUFhMjETMDIzU0JiMhETMVIy4BJxE+ATchHgEXFS4BBSIGFBYyNjQmJSEeARcVIzUmJyEiBhURMxUUFxYXIy4BJxE+ARMyNjQmIgYUFgO+pBIZGRKkEhgYZAgKChAKClGTk50GCQf9msbsMkMBAUMyAowyQwESMf0eEhgYJBgYAYABMyMtAUMBDf7NBQjtAgIF6SIuAQEuvAwQEBgREVIBGRIBRBMZGRP+vBIZFQoQCwsQCgFR/ugCcSUICf4YagFGNAHGNEYBAUY0UBQXkhklGRklGVgBLyRvbw0BCAb+RVAJCAwKATAkAd0kL/2aEhkRERkSAAX/7P9fA+gDUgADAAcADQAXACoAD0AMJx8UEgwKBgQBAAUtKyU1MxUDMxUjAzURMxEjJRE+ATczESMuAScGFhceAQcGJjc2JicmNjcVJgYDC93d3d04JSX+RhXeIpOTJNnPB0waMUlTKi0lFqoaHLZkM2LPOTkBszn+dF4CN/yu5AF4HLYR/NQPpXksZiA8rDYQRRoh9zh9QwFbAxAAAAAE//f/aQPpA1IACAAUAGcAcAANQAptaVYwEQsFAQQtKwEmIgcBFwE2NAcBBiImNDcBNjIWFBMBBxcWFAYiLwEwMS8CJjQ2Mh8BNyc2JicuASMiBw4BHwEWFA8BBiIvASYGBwYWFx4BMzY3FwcnJgYPAQYWHwEWMzI/AT4BLwE3ARYXMjY3NjQHBiImNDYyFhQDzhpKGv5zfgGNGj7+qwcUDwcBVQgTEBD+91UNCBATCB4/I14HDxQHDVVMCh8mHk4rHx4NBglSDQ0fDiQNUgobBBIlMR5GJhQVnP8OCBcHSAUBBxwHCggGawkCBw7/AVgkMhgsESNVEzMlJTMlAxwaGv5zfgGNHEYr/qsIDxQIAVUIEBP9XgEIVQ0IEw8HHz4kXQgTEAgNVUw1ZSYfIAkEGwpSDSQOHg0NUQoHDT94KhkaAQOc/g0JAwlrCBEHHAcESQYYCA3//qciARIRJWFUEiYxJiYxAAAB//4AAAPoAmIARAAGsx0AAS0rNz4BNz4BNx4BFw4BBy4BJy4BDgEXHgEXPgE3LgEnDgEHDgEHIicuATc0Njc+ATMeARcWFxY+ASYnJicuAScOARcUFx4B5WmYPTVqPEBIAQFOREFDAgslIwoKAm1qboQCAn9pX4s8OHVGVR0NBgEJDhAvIkJMDQcFEScaAg4BAhJwZHliAhwSXloEj1dJagMEZjYyYgQFQgcTCRcoEwxtBwWcX2OgBQSEVU5yAz8dNAwHMx0gHwM+FQgGDgIiKA8BAxtbBQiwR1A7LEoAAAgAAP+BA0EDOwAPABgAIAAkACgALAAwADQAFUASMzEvLSspJyUiIRoZFBAIAAgtKwUhLgEnET4BNyEeARcRDgElPgE0JiIGFBYDESE1IREhNQMRIREBITUhFSE1IRUhNSEVITUhAwX93hkiAQEiGQIiGSIBASL+1hQbGygaGv0CIv3hAh8W/hYBu/51AYv+dQGL/nUBi/51AYt/ASIZA0IZIgEBIhn8vhkiKgEaJxoaJxoDFv1xLwIoOP3AAen+FwF0RbFFsUSxRQAAAAH///+OA8QDUgAyAAazEwYBLSsFITAxIw4BJyInIyImPQEmNxE0NjsBMhYVEQE+AR8BHgEHCQE2Fh8BFgYHASEeAR0BFAYDlfz8DgoYCwMEOQkMAQEMCXsIDAEUCiQSPREKCv76Ac0SJAokCQoR/iQCERQbG2sGAQYBDAksCgoDUwkMDAn9zQHaEQoKIwolEf48AQkKChE8EiQK/u4BGhNHExoABAAA/4ED0QNQABAAIQA0AEgADUAKRD4uIh4ZCwAELSslJzc2NCYiDwEnNzYyFxYUBwUnJiIGFB8BBycmNDc2Mh8BBRcHBhQWMj8BFwcOASImJyY0NyUXFjI3NjQvATcXFhQHDgEiJi8BAqFk8hQqORU3ZDZCqkE+Pv5n8RY5KhU2ZDc9PUKqQfH+1GTxFSo5FjZkNiBNU00gPT0BmfIVORYUFDdkNz4+IE1TTSDx9GTxFjkqFTZkNz4+QapCKfEVKjkWNmQ2QqpBPj7yQ2TxFjkqFDdkNx8fHx9CqkEp8hQUFjkWNmQ2QapCHx8fH/IABv/+AAAD5QKuAA8AHwArADwAUgBbABFADldTSD07LCYgHBYMAgYtKwEDBi8BNRc3JQcjNzYXBRYlBRc3FQcGJwMmNyU2HwEjByEyFREUByEmJxE2EzM+ARceAQc0Njc2FhczESEFIicGIyIuATY3PgE7ATIXNjMyFhQGBSImNDYyFhQGA+KXBAgiOGP+wzsrUAQHAW4H/YP+w2M4IwcElwIGAW4HBFAsqgICCwv9/goBATBOAkQuLCUBHx8bJQ4h/kEBcBEMCQ0WHAEVEQEJBwcIBAwQFBsb/sQPFRUfFRUB8v7KBwMQaxrMlHikBwOsBIKUzBprEAMHATYHBKwDB6QeCv5LCgEBCgG1Cv6xELEbMHEFBlcNBEcnAR9aBQIMDwoCBwkFBREYEQcUHhUVHhQAAAAHAAD/nAOEAygAAwAHACAAJAAoACwAMAATQBAvLSspKCYjIRwRBwUDAQctKyUVJzU3FSc1ARYVERQHBQYiBiImIyclJjURNDc2FwUlNgERJREhEQURARUHNRMVBzUBVMjIyALiFiD+cggEBgQGAgr+ciAWFhgBfgF+GP44/sAC5P7AAQTIyMjuRFBEgERQRAEKDB79gCIMoAICAgKgDCICgB4MEAqamgr83AIwgP3QAjCA/dABOkRQRAEgRFBEAAAB//z/ZAPsA1IAhwAGs2EjAS0rAR4BNz4BLgEHDgEPASYnNxY2NzYuAQYHDgEXByYnNT4BNS4BIgYHFBYXFQYHJzYmJy4BDgEXHgE3FwYHJy4BJyYGBwYWFxY2NxcWFwcuAQcOAR4BNz4BJzcWFwciBgcGHgE2NzYmJzcXNxcOARceAT4BJy4BIyc2NxcGFhcWPgEmJyYGByc2NwNYDCwZHyQLMyAZIgTUBw6HFy8QFQYyPRYQAwyGFxsXHAErQSwBHRccF4YMAxAVPjIFFBEuF4gPB9QEIRkgMwcFJCAZKwzZAgnCEy8WHBAhOx0WEwTFDxFPGScJCxo+OAwIDRNQEhNPEg4JDDc+GgsJJxlPEg7FBBQWHDwgEBsWMBPCCQMBdhUVBAYzQSQFBSMYJhoUpAgLFBo+KwYZFDAVog8G0QgnGiEsLCEaJwjRBg+iFTAUGQYrPhoUCwikFBomGCMFBSQgITMGBBUVJxYVcRAFDRI7OhAQDSwZcw0L2xsYIDgXGh8ZLhDdAQHdEC4ZHxoXOCAYG9sLDXMZLA0QEDo7Eg0FEHEVFgAADQAA/2oD0wNSAAoAFQAaACcAMQA6AD4AQgBMAE8AUwBXAF0AH0AcXFlWVFJQT01LRUE/PTs2Mi0oHxwZFg8LBAENLSsBByc3NjMyHwEWBiUnNzY3Mh8BHgEHAyc1NxcBNxcHBiMiLwEzPgE3ByMiJj0BIRUUBiciBhQWMjY0JgMhFSERIRUhETQ2OwEyFh0BIQEXBxEXByc3FwcnEzcfAQcnA8Z0pHQICg4JfwgD/qflSQkQCAexCwYGwK8n5f78HjR0CAoOCRMqFh0BStcNEgEVEngMEREYEBCXARX+6wEV/usSDdcNEv7rATgcHJRdN6dylELOIwKilH8BfFzLXQYLngkYkYCADgEEYwYXCv6rYX1Ff/3yNkBdBgsXAR0WHxINm5sNEnkQGBAQGBABQsYBx8YBnA0SEg2b/bQQMgFZU6QfZ412UgFsHAPJdZ4ABAAA/2oDFwNTAFkAXgBiAGYADUAKZWRiYF1aTgoELSsBKwE3PgE3NiYnJg4CFx4BBwYHDgEHBhYXByMnMDEnNDEvASYxJicmIzAxBgcwIwciBhUHFDEHMBUHFDEPAQYdATAxFyMiBhQWOwETHgEzITI2NxMzMjY0JicfAQcjAzcXBxc3FyMDACYtDQ4eBwVjDAYPCwQEAgwNDgwOFQYHEAkoPBEBAVABBAgEBgQFAQEBAQICAQIvARA5Cg0NChA5AQ0IAVgJDAE5EgoNDa4DLQxH5RkYPw0tDy4Bj5gLMCdWawQEAQoPCAIwEQ8FBxgaHzYPrcQEAQOvAQgDAgEDAQEBAQECAQIBA74BAgWxDhQN/h8JDAwJAeENFA6VAQeNAQkDNgguBqYAAAAAAwAA/2oD6ANSAFcAYwBsAAq3aGReWD0RAy0rAQcGBxcWBg8BDgEvAQYPAQ4BKwEiJi8BJicHBiYvAS4BPwEmLwEuAT0BNDY/ATY3JyY2PwE+AR8BNj8BPgE7ATIWHwEWFzc2Fh8BHgEPARYfAR4BHQEUBgEOAQceARc+ATcuAQMuATQ2MhYUBgPUeQsSRQUCBlYGEghlISYXAg0JegkNAhckIGQIEgZWBgEERRILeQgMDAh5ChJFBQIGVgYSB2UhJBcCDQl6CQ0CFyYiZgcSBlYGAgVFEQt5CAwM/hhZdgICdllZdgICdlklMDBKMDABCRclImUHEgZWBgIFRRILeAgMDAh5DBFFBAEGVgYSCGQiJBcCDQl6CQ4CFiQhZQgSBlYGAgVFEgt5CAwMCHgLEkUFAQdWBhIHZiElFgIOCXoJDQEkAnZZWXYCAnZZWXb+2wEwSjAwSjAAAAAACAAA/6gD4wMUAAkAFAAkACgAOQBJAFIAXwAVQBJbVVFKSEA5MCYlJBwQDAYDCC0rNzU0NjsBByMiJhMHBj8BPgEfAR4BNycuATcBPgEfAR4BBwEOAT8BMx8BJgInLgE3NhYXHgEXFg4CFycmNj8BNhYfARYGDwEGJhcuAScmNjc2FhMUBisBLgEvATMyFhUFDQrtZ4YKDalLEgIKAQ0IOggBCjoIBQUBDwURCToIBQT+8AURxmc8VFkXdxwcTxASWiwvfBAJGRgVPCMFBAkiCRMFHAQFCRgJE3wIOxYRDQlIEDENCnYDChA/0goN+4QJDbAN/vsyChNXCQUEIAUOLCEFEAkBzggEBCEFEAn+MggEy7CwNBYBAEI9uhMBlkdM5h4THAsEcTYJEgUQBAUJNQkTBQ4FBIcQFBgaHQYdiQFGCQ0LEiBzDQkAAAAFAAD/agPVA1IADgAcADwAXwCbAA9ADIFmWj88LhwRBgMFLSsBISM1BREFNSE+ATcRLgEBFAYnIiYnNx4BNj0BNxciJic3HgI2NCYnLgE1NDY3MhcHLgEiBhQWFxYHFAYFFAYjITUWFxYyNzY3NSMHFQcGBwYjIiYnJiMHETYzITIWFQMWFRQGBwYiJyYnJjE3MBcWMzI3Njc2Jy4BJyYnJjU0NjczFhceAR8BBg8BMCYnJgYHBgcUFx4BFx4CA5X+0QT9sQJPATMbJAEBJP1OKCIIEwcFCxsSL14TIgkKCh0hEhEUHCAsJyUVDAcXIRATFjwBLQImDwz+zQ0aDh8MIAQsAQECAwUMCQwGAQIiAgIBLwwPHAchGwYRBiwVAiQDEBoPCQICBQkDDQ4UCCIhGg4VDgQKBAMCDxEFBAcYBgQBBgMMDhIWDgL+VE/8uFFWASQbAr4cI/5NLyUBAwMnAwESGYkC4wkGKQUJAQ4VDwcKIBgdJwEKKgMHDRQNCBQwHijyDA9WFwoEBQ4lpVFQBAcDBgkKBBUCmQEQDP20DRAbHwQBAQYjBBUEFwgDAg0KBAcGCQQUJRogAgIJAwsFBQIJDAgDCQEHBAcJBgQGBggNDgACAAD/ugNIAwIACAAUAAi1EQsEAAItKwEyFhAGICYQNgE3JwcnBxcHFzcXNwGkrvb2/qT29gEEmlaamFiamliYmlYDAvb+pPb2AVz2/lyaVpiYVpqYVpiYVgAAAAIAAP+6A0gDAgAIABQACLUTDQQAAi0rATIWEAYgJhA2EzM1IzUjFSMVMxUzAaSu9vb+pPb24sjIZsrKZgMC9v6k9vYBXPb+KmbKymbKAAAAAf/9AAACnwLAABMABrMMAAEtKzMiLwEmPgEWHwEBPgEXHgEHAQYj+SIWtBAILDoSdgEoEDYaGAwO/qIUJBzsGDgkCBiaAdoYDA4QNhr90CAAAAAAAf/z/6IB3QMcAA0ABrMLBQEtKxcJASY3NhcBFgcBBicmDQFm/poaGhoWAYgYGP54FhoaFAFyAXQaFhoa/nYaGP52GhoWAAAAAwAA/+cD6ALVABsAJwAwAAq3KSgnJRYDAy0rAS4BJyIGBxc+ATMeARcVMx4BFxQGBxc+ATUuASUXDgEHHgEXIRc3ARcBIS4BJz4BNwMoGKZ2L1UjPxY2HGCCAz82RgEjID8pLgJt/QR1Z4gDA41qAehTNv1IjgFN/mxHXgICXkcB222LAhkZPg8OA4JgFQFGNiM6ED4cWTZTdcxxCItnao0DUzYCuPr+swJeRkdeAgAB//T/ogHeAxwADQAGswkDAS0rBRYHBicBJjcBNhcWBwEBxBoaGhb+eBgYAYgWGhoa/poUGhYaGgGKGBoBihoaFhr+jAAAAAAC//n/lANkAzIALAA5AAi1OTMrFQItKwEeAQcGLgIHDgEXFhceARcWBwYHBicmJy4BJwYHBiYnJjY3PgU3NhYTPgEuAw4BHgMDGDoSMBxCQIZSHBwIFhgEKAQOJDI0HhggGgY4Eh4IIlAOERgffq5KLAYYGDCkIAgEGjhOOBAEGDhQOAH0ivAUDB4yIAgEHhY4NAoYCCIMFhIKNEw4DAoaCgQMMCQgXg40cF5aQjQKFLT+SgREgIJyNghMhoRqLgADAAD/qALHAxQADwATABwACrcYFBEQBwADLSsBHgEXEQ4BByEuAScRPgE3AREhERc+ATQmIgYUFgJlKjcBATcq/f4qOAEBOCoB7P4p7BUbGyoaGgMUATkq/V0rOQEBOSsCoyo5Af0wAlj9qHsBGygbGygbAAP//f9+A4kDQABOAFIAVgAKt1RTUE84EgMtKyUWBg8BDgEfARYGLwEmBg8BDgEvASYPAQYmPwE2Ji8BLgE/ATY0LwEmNj8BPgEvATQ2HwEWNj8BNhYfAR4BPwE2Fg8BBhYfAR4BDwEGFBcFNSMVNxEjEQN1FAgYThggAgQCIBZWFjIKLgwiEDIiNnoWFAg2CBgYahgKFFYUFFYUCBhOGCICBh4WUBgyDC4MJAwyDC4WiBYQCDwKGBpyGggUVhIS/tZkZGTqECIGFgYsGlIYFAosDBAWWBYCFE4wHEYOEBikGCgCDAQcEEwQMhBMECIGFgYsGlIaFAomChAWUBYCFlYWDg5UDhAYqhYmAgwCHBBMEDIQqGhooAEE/vwABAAA/8EB2wL7AAgAGAAgACQADUAKIiEcGREJBAAELSsXPgE0JiIGFBYDIR4BFxEOAQchLgEnET4BFwYUFzM2NCcTESER7hUaGiobG4UBMyYtAQEqIP67ICoBAS2BDg59Dg6C/n8fARwoGhooHAMZASwk/WIgKgEBKiACniQsNQEeAQEeAf2hAfD+EAAC//r/cAMaA1YAGQAtAAi1Kh0YDAItKwEWBgcGJw8CBg8BBiYvASY3ASYnJjY3NhYHNi4BBgcOAR8BHgEfAR4CMj4BAwYUYGZCQHZGaA4gTAwUAhAIFAECGA4SjnJqsmweElRkHggIAwUCFgdDEA4YDhQQAmR0xhIMCsIMphwEDgQQDmIeGgGCMkZqohQUgrwsaj4ULAwWCRAHFAUxDAgQAg4AAAL////5BDADCwAYADMACLUmHBQHAi0rATQmKwE1NCYrASIGHQEjIgYUHwEWMj8BNgUUBgchIiY3NDY3JzQ2MzIWFzYzMhYVFAceAQLKCgh9CgdsBwp9CAoFxAUQBcQFAWV8Wv2hZ5QBTkIBqHZXkCEoNTtUF0heAUwICsQICgoIxAoQBcQFBcQGdll8AZJoSHweGHaoYlAjVDsrIhF2AAAB//8AAAL5AqsAEwAGswcAAS0rJQEuATU+ATceARc+ATceARcUBgcBfP7jMS4BYlRKUSoqUkpUYQEuMRIBGzFnMFNiAQE/NTU/AQFiUzBnMQAAAAAD//7/sQPEA1IACwAQABYACrcTERAMCgQDLSsJAQ4BByIuAj4BMxMhFAYHEyERMh4BAa0BMDueV3XGcAR4vnloAa9CPVz+U3XEdAFh/tA9QgF0xOrEdP5TWJ47AXgBrXLGAAAAAQAAAAEAAFSHWk5fDzz1AAsD6AAAAADSKgGqAAAAANIp13r/7P9fBDADVgAAAAgAAgAAAAAAAAABAAADUv9qAFoELwAA/+cEMQABAAAAAAAAAAAAAAAAAAAAIQPoAAADmAAAA6AAAAPoAAAD6AAAA+gAAAPoAAAD6AAAA+gAAAPoAAAD6AAAA+gAAAOEAAAD6AAAA+gAAAPoAAAD6AAAA+gAAAPoAAADSAAAA0gAAAKbAAAB0QAAA+gAAAHRAAADXAAAAscAAAOFAAAB2wAAAwwAAAQvAAAC+AAAA+gAAAAAAAAATgB6AKQBQAGQAkQCtAMaA2wD5AR+BN4FsgZaBvAHnghECS4JXAmECa4J0goqCk4KrgroC3YLvAwODF4MiAy5AAEAAAAhAJwADQAAAAAAAgAAABAAcwAAADALcAAAAAAAAAASAN4AAQAAAAAAAAA1AAAAAQAAAAAAAQAIADUAAQAAAAAAAgAHAD0AAQAAAAAAAwAIAEQAAQAAAAAABAAIAEwAAQAAAAAABQALAFQAAQAAAAAABgAIAF8AAQAAAAAACgArAGcAAQAAAAAACwATAJIAAwABBAkAAABqAKUAAwABBAkAAQAQAQ8AAwABBAkAAgAOAR8AAwABBAkAAwAQAS0AAwABBAkABAAQAT0AAwABBAkABQAWAU0AAwABBAkABgAQAWMAAwABBAkACgBWAXMAAwABBAkACwAmAclDb3B5cmlnaHQgKEMpIDIwMTUgYnkgb3JpZ2luYWwgYXV0aG9ycyBAIGZvbnRlbGxvLmNvbWZvbnRlbGxvUmVndWxhcmZvbnRlbGxvZm9udGVsbG9WZXJzaW9uIDEuMGZvbnRlbGxvR2VuZXJhdGVkIGJ5IHN2ZzJ0dGYgZnJvbSBGb250ZWxsbyBwcm9qZWN0Lmh0dHA6Ly9mb250ZWxsby5jb20AQwBvAHAAeQByAGkAZwBoAHQAIAAoAEMAKQAgADIAMAAxADUAIABiAHkAIABvAHIAaQBnAGkAbgBhAGwAIABhAHUAdABoAG8AcgBzACAAQAAgAGYAbwBuAHQAZQBsAGwAbwAuAGMAbwBtAGYAbwBuAHQAZQBsAGwAbwBSAGUAZwB1AGwAYQByAGYAbwBuAHQAZQBsAGwAbwBmAG8AbgB0AGUAbABsAG8AVgBlAHIAcwBpAG8AbgAgADEALgAwAGYAbwBuAHQAZQBsAGwAbwBHAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAHMAdgBnADIAdAB0AGYAIABmAHIAbwBtACAARgBvAG4AdABlAGwAbABvACAAcAByAG8AagBlAGMAdAAuAGgAdAB0AHAAOgAvAC8AZgBvAG4AdABlAGwAbABvAC4AYwBvAG0AAAAAAgAAAAAAAAAKAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAhAAABAgEDAQQBBQEGAQcBCAEJAQoBCwEMAQ0BDgEPARABEQESARMBFAEVARYBFwEYARkBGgEbARwBHQEeAR8BIAEhDGluZm8tY2lyY2xlZAlvay1jaXJjbGUNYWR2YW5jZWQtdHlwZQdkZXZpY2VzEWV4dGVuc2lvbi1icm93c2VyEGdlbmVyYWwtc2V0dGluZ3MOaW5maW5pdHktY2FjaGUMbW9iaWxlLXBob25lCW11bHRpLWFkcw1yZWxhdGVkLXBvc3RzEXJlc3BvbnNpdmUtaW1hZ2VzCWJvb2stb3BlbhJzaXRlLWNvbXBhdGliaWxpdHkNdGhlbWUtYnJvd3NlchB0aGVtZS1jdXN0b21pemVyDnRoZW1lLXNldHRpbmdzDHdlYi1hcHAtbW9kZQJqcw5jYW5jZWwtY2lyY2xlZAxwbHVzLWNpcmNsZWQFY2hlY2sOcmlnaHQtb3Blbi1iaWcIY2xvdWQzMDcNbGVmdC1vcGVuLWJpZwltZWdhcGhvbmUGdGFibGV0BWFsZXJ0Bm1vYmlsZQNrZXkOZG93bmxvYWQtY2xvdWQFaGVhcnQJY2hhcnQtcGllAAAAAQAB//8ADwAAAAAAAAAAAAAAALAALCCwAFVYRVkgIEu4AA5RS7AGU1pYsDQbsChZYGYgilVYsAIlYbkIAAgAY2MjYhshIbAAWbAAQyNEsgABAENgQi2wASywIGBmLbACLCBkILDAULAEJlqyKAEKQ0VjRVJbWCEjIRuKWCCwUFBYIbBAWRsgsDhQWCGwOFlZILEBCkNFY0VhZLAoUFghsQEKQ0VjRSCwMFBYIbAwWRsgsMBQWCBmIIqKYSCwClBYYBsgsCBQWCGwCmAbILA2UFghsDZgG2BZWVkbsAErWVkjsABQWGVZWS2wAywgRSCwBCVhZCCwBUNQWLAFI0KwBiNCGyEhWbABYC2wBCwjISMhIGSxBWJCILAGI0KxAQpDRWOxAQpDsABgRWOwAyohILAGQyCKIIqwASuxMAUlsAQmUVhgUBthUllYI1khILBAU1iwASsbIbBAWSOwAFBYZVktsAUssAdDK7IAAgBDYEItsAYssAcjQiMgsAAjQmGwAmJmsAFjsAFgsAUqLbAHLCAgRSCwC0NjuAQAYiCwAFBYsEBgWWawAWNgRLABYC2wCCyyBwsAQ0VCKiGyAAEAQ2BCLbAJLLAAQyNEsgABAENgQi2wCiwgIEUgsAErI7AAQ7AEJWAgRYojYSBkILAgUFghsAAbsDBQWLAgG7BAWVkjsABQWGVZsAMlI2FERLABYC2wCywgIEUgsAErI7AAQ7AEJWAgRYojYSBksCRQWLAAG7BAWSOwAFBYZVmwAyUjYUREsAFgLbAMLCCwACNCsgsKA0VYIRsjIVkqIS2wDSyxAgJFsGRhRC2wDiywAWAgILAMQ0qwAFBYILAMI0JZsA1DSrAAUlggsA0jQlktsA8sILAQYmawAWMguAQAY4ojYbAOQ2AgimAgsA4jQiMtsBAsS1RYsQRkRFkksA1lI3gtsBEsS1FYS1NYsQRkRFkbIVkksBNlI3gtsBIssQAPQ1VYsQ8PQ7ABYUKwDytZsABDsAIlQrEMAiVCsQ0CJUKwARYjILADJVBYsQEAQ2CwBCVCioogiiNhsA4qISOwAWEgiiNhsA4qIRuxAQBDYLACJUKwAiVhsA4qIVmwDENHsA1DR2CwAmIgsABQWLBAYFlmsAFjILALQ2O4BABiILAAUFiwQGBZZrABY2CxAAATI0SwAUOwAD6yAQEBQ2BCLbATLACxAAJFVFiwDyNCIEWwCyNCsAojsABgQiBgsAFhtRAQAQAOAEJCimCxEgYrsHIrGyJZLbAULLEAEystsBUssQETKy2wFiyxAhMrLbAXLLEDEystsBgssQQTKy2wGSyxBRMrLbAaLLEGEystsBsssQcTKy2wHCyxCBMrLbAdLLEJEystsB4sALANK7EAAkVUWLAPI0IgRbALI0KwCiOwAGBCIGCwAWG1EBABAA4AQkKKYLESBiuwcisbIlktsB8ssQAeKy2wICyxAR4rLbAhLLECHistsCIssQMeKy2wIyyxBB4rLbAkLLEFHistsCUssQYeKy2wJiyxBx4rLbAnLLEIHistsCgssQkeKy2wKSwgPLABYC2wKiwgYLAQYCBDI7ABYEOwAiVhsAFgsCkqIS2wKyywKiuwKiotsCwsICBHICCwC0NjuAQAYiCwAFBYsEBgWWawAWNgI2E4IyCKVVggRyAgsAtDY7gEAGIgsABQWLBAYFlmsAFjYCNhOBshWS2wLSwAsQACRVRYsAEWsCwqsAEVMBsiWS2wLiwAsA0rsQACRVRYsAEWsCwqsAEVMBsiWS2wLywgNbABYC2wMCwAsAFFY7gEAGIgsABQWLBAYFlmsAFjsAErsAtDY7gEAGIgsABQWLBAYFlmsAFjsAErsAAWtAAAAAAARD4jOLEvARUqLbAxLCA8IEcgsAtDY7gEAGIgsABQWLBAYFlmsAFjYLAAQ2E4LbAyLC4XPC2wMywgPCBHILALQ2O4BABiILAAUFiwQGBZZrABY2CwAENhsAFDYzgtsDQssQIAFiUgLiBHsAAjQrACJUmKikcjRyNhIFhiGyFZsAEjQrIzAQEVFCotsDUssAAWsAQlsAQlRyNHI2GwCUMrZYouIyAgPIo4LbA2LLAAFrAEJbAEJSAuRyNHI2EgsAQjQrAJQysgsGBQWCCwQFFYswIgAyAbswImAxpZQkIjILAIQyCKI0cjRyNhI0ZgsARDsAJiILAAUFiwQGBZZrABY2AgsAErIIqKYSCwAkNgZCOwA0NhZFBYsAJDYRuwA0NgWbADJbACYiCwAFBYsEBgWWawAWNhIyAgsAQmI0ZhOBsjsAhDRrACJbAIQ0cjRyNhYCCwBEOwAmIgsABQWLBAYFlmsAFjYCMgsAErI7AEQ2CwASuwBSVhsAUlsAJiILAAUFiwQGBZZrABY7AEJmEgsAQlYGQjsAMlYGRQWCEbIyFZIyAgsAQmI0ZhOFktsDcssAAWICAgsAUmIC5HI0cjYSM8OC2wOCywABYgsAgjQiAgIEYjR7ABKyNhOC2wOSywABawAyWwAiVHI0cjYbAAVFguIDwjIRuwAiWwAiVHI0cjYSCwBSWwBCVHI0cjYbAGJbAFJUmwAiVhuQgACABjYyMgWGIbIVljuAQAYiCwAFBYsEBgWWawAWNgIy4jICA8ijgjIVktsDossAAWILAIQyAuRyNHI2EgYLAgYGawAmIgsABQWLBAYFlmsAFjIyAgPIo4LbA7LCMgLkawAiVGUlggPFkusSsBFCstsDwsIyAuRrACJUZQWCA8WS6xKwEUKy2wPSwjIC5GsAIlRlJYIDxZIyAuRrACJUZQWCA8WS6xKwEUKy2wPiywNSsjIC5GsAIlRlJYIDxZLrErARQrLbA/LLA2K4ogIDywBCNCijgjIC5GsAIlRlJYIDxZLrErARQrsARDLrArKy2wQCywABawBCWwBCYgLkcjRyNhsAlDKyMgPCAuIzixKwEUKy2wQSyxCAQlQrAAFrAEJbAEJSAuRyNHI2EgsAQjQrAJQysgsGBQWCCwQFFYswIgAyAbswImAxpZQkIjIEewBEOwAmIgsABQWLBAYFlmsAFjYCCwASsgiophILACQ2BkI7ADQ2FkUFiwAkNhG7ADQ2BZsAMlsAJiILAAUFiwQGBZZrABY2GwAiVGYTgjIDwjOBshICBGI0ewASsjYTghWbErARQrLbBCLLA1Ky6xKwEUKy2wQyywNishIyAgPLAEI0IjOLErARQrsARDLrArKy2wRCywABUgR7AAI0KyAAEBFRQTLrAxKi2wRSywABUgR7AAI0KyAAEBFRQTLrAxKi2wRiyxAAEUE7AyKi2wRyywNCotsEgssAAWRSMgLiBGiiNhOLErARQrLbBJLLAII0KwSCstsEossgAAQSstsEsssgABQSstsEwssgEAQSstsE0ssgEBQSstsE4ssgAAQistsE8ssgABQistsFAssgEAQistsFEssgEBQistsFIssgAAPistsFMssgABPistsFQssgEAPistsFUssgEBPistsFYssgAAQCstsFcssgABQCstsFgssgEAQCstsFkssgEBQCstsFossgAAQystsFsssgABQystsFwssgEAQystsF0ssgEBQystsF4ssgAAPystsF8ssgABPystsGAssgEAPystsGEssgEBPystsGIssDcrLrErARQrLbBjLLA3K7A7Ky2wZCywNyuwPCstsGUssAAWsDcrsD0rLbBmLLA4Ky6xKwEUKy2wZyywOCuwOystsGgssDgrsDwrLbBpLLA4K7A9Ky2waiywOSsusSsBFCstsGsssDkrsDsrLbBsLLA5K7A8Ky2wbSywOSuwPSstsG4ssDorLrErARQrLbBvLLA6K7A7Ky2wcCywOiuwPCstsHEssDorsD0rLbByLLMJBAIDRVghGyMhWUIrsAhlsAMkUHiwARUwLQBLuADIUlixAQGOWbABuQgACABjcLEABUKxAAAqsQAFQrEACCqxAAVCsQAIKrEABUK5AAAACSqxAAVCuQAAAAkqsQMARLEkAYhRWLBAiFixA2REsSYBiFFYugiAAAEEQIhjVFixAwBEWVlZWbEADCq4Af+FsASNsQIARAA=') format('truetype');
|
13 |
+
}
|
14 |
+
/* Chrome hack: SVG is rendered more smooth in Windozze. 100% magic, uncomment if you need it. */
|
15 |
+
/* Note, that will break hinting! In other OS-es font will be not as sharp as it could be */
|
16 |
+
/*
|
17 |
+
@media screen and (-webkit-min-device-pixel-ratio:0) {
|
18 |
+
@font-face {
|
19 |
+
font-family: 'fontello';
|
20 |
+
src: url('../font/fontello.svg?41454967#fontello') format('svg');
|
21 |
+
}
|
22 |
+
}
|
23 |
+
*/
|
24 |
+
|
25 |
+
[class^="icon-"]:before, [class*=" icon-"]:before {
|
26 |
+
font-family: "fontello";
|
27 |
+
font-style: normal;
|
28 |
+
font-weight: normal;
|
29 |
+
speak: none;
|
30 |
+
|
31 |
+
display: inline-block;
|
32 |
+
text-decoration: inherit;
|
33 |
+
width: 1em;
|
34 |
+
margin-right: .2em;
|
35 |
+
text-align: center;
|
36 |
+
/* opacity: .8; */
|
37 |
+
|
38 |
+
/* For safety - reset parent styles, that can break glyph codes*/
|
39 |
+
font-variant: normal;
|
40 |
+
text-transform: none;
|
41 |
+
|
42 |
+
/* fix buttons height, for twitter bootstrap */
|
43 |
+
line-height: 1em;
|
44 |
+
|
45 |
+
/* Animation center compensation - margins should be symmetric */
|
46 |
+
/* remove if not needed */
|
47 |
+
margin-left: .2em;
|
48 |
+
|
49 |
+
/* you can be more comfortable with increased icons size */
|
50 |
+
/* font-size: 120%; */
|
51 |
+
|
52 |
+
/* Uncomment for 3D effect */
|
53 |
+
/* text-shadow: 1px 1px 1px rgba(127, 127, 127, 0.3); */
|
54 |
+
}
|
55 |
+
.icon-info-circled:before { content: '\e800'; } /* '' */
|
56 |
+
.icon-ok-circle:before { content: '\e801'; } /* '' */
|
57 |
+
.icon-advanced-type:before { content: '\e802'; } /* '' */
|
58 |
+
.icon-devices:before { content: '\e803'; } /* '' */
|
59 |
+
.icon-extension-browser:before { content: '\e804'; } /* '' */
|
60 |
+
.icon-general-settings:before { content: '\e805'; } /* '' */
|
61 |
+
.icon-infinity-cache:before { content: '\e806'; } /* '' */
|
62 |
+
.icon-mobile-phone:before { content: '\e807'; } /* '' */
|
63 |
+
.icon-multi-ads:before { content: '\e808'; } /* '' */
|
64 |
+
.icon-related-posts:before { content: '\e809'; } /* '' */
|
65 |
+
.icon-responsive-images:before { content: '\e80a'; } /* '' */
|
66 |
+
.icon-book-open:before { content: '\e80b'; } /* '' */
|
67 |
+
.icon-site-compatibility:before { content: '\e80c'; } /* '' */
|
68 |
+
.icon-theme-browser:before { content: '\e80d'; } /* '' */
|
69 |
+
.icon-theme-customizer:before { content: '\e80e'; } /* '' */
|
70 |
+
.icon-theme-settings:before { content: '\e80f'; } /* '' */
|
71 |
+
.icon-web-app-mode:before { content: '\e810'; } /* '' */
|
72 |
+
.icon-js:before { content: '\e811'; } /* '' */
|
73 |
+
.icon-cancel-circled:before { content: '\e812'; } /* '' */
|
74 |
+
.icon-plus-circled:before { content: '\e813'; } /* '' */
|
75 |
+
.icon-check:before { content: '\e814'; } /* '' */
|
76 |
+
.icon-right-open-big:before { content: '\e815'; } /* '' */
|
77 |
+
.icon-cloud307:before { content: '\e816'; } /* '' */
|
78 |
+
.icon-left-open-big:before { content: '\e817'; } /* '' */
|
79 |
+
.icon-megaphone:before { content: '\e818'; } /* '' */
|
80 |
+
.icon-tablet:before { content: '\e819'; } /* '' */
|
81 |
+
.icon-alert:before { content: '\e81a'; } /* '' */
|
82 |
+
.icon-mobile:before { content: '\e81b'; } /* '' */
|
83 |
+
.icon-key:before { content: '\e81c'; } /* '' */
|
84 |
+
.icon-download-cloud:before { content: '\e81d'; } /* '' */
|
85 |
+
.icon-heart:before { content: '\e81e'; } /* '' */
|
86 |
+
.icon-chart-pie:before { content: '\e81f'; } /* '' */
|
admin/fontello/css/fontello-ie7-codes.css
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
.icon-info-circled { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
|
3 |
+
.icon-ok-circle { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
|
4 |
+
.icon-advanced-type { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
|
5 |
+
.icon-devices { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
|
6 |
+
.icon-extension-browser { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
|
7 |
+
.icon-general-settings { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
|
8 |
+
.icon-infinity-cache { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
|
9 |
+
.icon-mobile-phone { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
|
10 |
+
.icon-multi-ads { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
|
11 |
+
.icon-related-posts { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
|
12 |
+
.icon-responsive-images { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
|
13 |
+
.icon-book-open { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
|
14 |
+
.icon-site-compatibility { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
|
15 |
+
.icon-theme-browser { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
|
16 |
+
.icon-theme-customizer { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
|
17 |
+
.icon-theme-settings { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
|
18 |
+
.icon-web-app-mode { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
|
19 |
+
.icon-js { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
|
20 |
+
.icon-cancel-circled { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
|
21 |
+
.icon-plus-circled { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
|
22 |
+
.icon-check { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
|
23 |
+
.icon-right-open-big { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
|
24 |
+
.icon-cloud307 { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
|
25 |
+
.icon-left-open-big { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
|
26 |
+
.icon-megaphone { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
|
27 |
+
.icon-tablet { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
|
28 |
+
.icon-alert { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
|
29 |
+
.icon-mobile { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
|
30 |
+
.icon-key { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
|
31 |
+
.icon-download-cloud { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
|
32 |
+
.icon-heart { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
|
33 |
+
.icon-chart-pie { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
|
admin/fontello/css/fontello-ie7.css
ADDED
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[class^="icon-"], [class*=" icon-"] {
|
2 |
+
font-family: 'fontello';
|
3 |
+
font-style: normal;
|
4 |
+
font-weight: normal;
|
5 |
+
|
6 |
+
/* fix buttons height */
|
7 |
+
line-height: 1em;
|
8 |
+
|
9 |
+
/* you can be more comfortable with increased icons size */
|
10 |
+
/* font-size: 120%; */
|
11 |
+
}
|
12 |
+
|
13 |
+
.icon-info-circled { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
|
14 |
+
.icon-ok-circle { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
|
15 |
+
.icon-advanced-type { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
|
16 |
+
.icon-devices { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
|
17 |
+
.icon-extension-browser { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
|
18 |
+
.icon-general-settings { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
|
19 |
+
.icon-infinity-cache { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
|
20 |
+
.icon-mobile-phone { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
|
21 |
+
.icon-multi-ads { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
|
22 |
+
.icon-related-posts { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
|
23 |
+
.icon-responsive-images { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
|
24 |
+
.icon-book-open { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
|
25 |
+
.icon-site-compatibility { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
|
26 |
+
.icon-theme-browser { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
|
27 |
+
.icon-theme-customizer { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
|
28 |
+
.icon-theme-settings { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
|
29 |
+
.icon-web-app-mode { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
|
30 |
+
.icon-js { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
|
31 |
+
.icon-cancel-circled { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
|
32 |
+
.icon-plus-circled { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
|
33 |
+
.icon-check { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
|
34 |
+
.icon-right-open-big { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
|
35 |
+
.icon-cloud307 { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
|
36 |
+
.icon-left-open-big { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
|
37 |
+
.icon-megaphone { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
|
38 |
+
.icon-tablet { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
|
39 |
+
.icon-alert { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
|
40 |
+
.icon-mobile { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
|
41 |
+
.icon-key { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
|
42 |
+
.icon-download-cloud { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
|
43 |
+
.icon-heart { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
|
44 |
+
.icon-chart-pie { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
|
admin/fontello/css/fontello.css
ADDED
@@ -0,0 +1,88 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
@font-face {
|
2 |
+
font-family: 'fontello';
|
3 |
+
src: url('../font/fontello.eot?57201061');
|
4 |
+
src: url('../font/fontello.eot?57201061#iefix') format('embedded-opentype'),
|
5 |
+
url('../font/fontello.woff?57201061') format('woff'),
|
6 |
+
url('../font/fontello.ttf?57201061') format('truetype'),
|
7 |
+
url('../font/fontello.svg?57201061#fontello') format('svg');
|
8 |
+
font-weight: normal;
|
9 |
+
font-style: normal;
|
10 |
+
}
|
11 |
+
/* Chrome hack: SVG is rendered more smooth in Windozze. 100% magic, uncomment if you need it. */
|
12 |
+
/* Note, that will break hinting! In other OS-es font will be not as sharp as it could be */
|
13 |
+
/*
|
14 |
+
@media screen and (-webkit-min-device-pixel-ratio:0) {
|
15 |
+
@font-face {
|
16 |
+
font-family: 'fontello';
|
17 |
+
src: url('../font/fontello.svg?57201061#fontello') format('svg');
|
18 |
+
}
|
19 |
+
}
|
20 |
+
*/
|
21 |
+
|
22 |
+
[class^="icon-"]:before, [class*=" icon-"]:before {
|
23 |
+
font-family: "fontello";
|
24 |
+
font-style: normal;
|
25 |
+
font-weight: normal;
|
26 |
+
speak: none;
|
27 |
+
|
28 |
+
display: inline-block;
|
29 |
+
text-decoration: inherit;
|
30 |
+
width: 1em;
|
31 |
+
margin-right: .2em;
|
32 |
+
text-align: center;
|
33 |
+
/* opacity: .8; */
|
34 |
+
|
35 |
+
/* For safety - reset parent styles, that can break glyph codes*/
|
36 |
+
font-variant: normal;
|
37 |
+
text-transform: none;
|
38 |
+
|
39 |
+
/* fix buttons height, for twitter bootstrap */
|
40 |
+
line-height: 1em;
|
41 |
+
|
42 |
+
/* Animation center compensation - margins should be symmetric */
|
43 |
+
/* remove if not needed */
|
44 |
+
margin-left: .2em;
|
45 |
+
|
46 |
+
/* you can be more comfortable with increased icons size */
|
47 |
+
/* font-size: 120%; */
|
48 |
+
|
49 |
+
/* Font smoothing. That was taken from TWBS */
|
50 |
+
-webkit-font-smoothing: antialiased;
|
51 |
+
-moz-osx-font-smoothing: grayscale;
|
52 |
+
|
53 |
+
/* Uncomment for 3D effect */
|
54 |
+
/* text-shadow: 1px 1px 1px rgba(127, 127, 127, 0.3); */
|
55 |
+
}
|
56 |
+
|
57 |
+
.icon-info-circled:before { content: '\e800'; } /* '' */
|
58 |
+
.icon-ok-circle:before { content: '\e801'; } /* '' */
|
59 |
+
.icon-advanced-type:before { content: '\e802'; } /* '' */
|
60 |
+
.icon-devices:before { content: '\e803'; } /* '' */
|
61 |
+
.icon-extension-browser:before { content: '\e804'; } /* '' */
|
62 |
+
.icon-general-settings:before { content: '\e805'; } /* '' */
|
63 |
+
.icon-infinity-cache:before { content: '\e806'; } /* '' */
|
64 |
+
.icon-mobile-phone:before { content: '\e807'; } /* '' */
|
65 |
+
.icon-multi-ads:before { content: '\e808'; } /* '' */
|
66 |
+
.icon-related-posts:before { content: '\e809'; } /* '' */
|
67 |
+
.icon-responsive-images:before { content: '\e80a'; } /* '' */
|
68 |
+
.icon-book-open:before { content: '\e80b'; } /* '' */
|
69 |
+
.icon-site-compatibility:before { content: '\e80c'; } /* '' */
|
70 |
+
.icon-theme-browser:before { content: '\e80d'; } /* '' */
|
71 |
+
.icon-theme-customizer:before { content: '\e80e'; } /* '' */
|
72 |
+
.icon-theme-settings:before { content: '\e80f'; } /* '' */
|
73 |
+
.icon-web-app-mode:before { content: '\e810'; } /* '' */
|
74 |
+
.icon-js:before { content: '\e811'; } /* '' */
|
75 |
+
.icon-cancel-circled:before { content: '\e812'; } /* '' */
|
76 |
+
.icon-plus-circled:before { content: '\e813'; } /* '' */
|
77 |
+
.icon-check:before { content: '\e814'; } /* '' */
|
78 |
+
.icon-right-open-big:before { content: '\e815'; } /* '' */
|
79 |
+
.icon-cloud307:before { content: '\e816'; } /* '' */
|
80 |
+
.icon-left-open-big:before { content: '\e817'; } /* '' */
|
81 |
+
.icon-megaphone:before { content: '\e818'; } /* '' */
|
82 |
+
.icon-tablet:before { content: '\e819'; } /* '' */
|
83 |
+
.icon-alert:before { content: '\e81a'; } /* '' */
|
84 |
+
.icon-mobile:before { content: '\e81b'; } /* '' */
|
85 |
+
.icon-key:before { content: '\e81c'; } /* '' */
|
86 |
+
.icon-download-cloud:before { content: '\e81d'; } /* '' */
|
87 |
+
.icon-heart:before { content: '\e81e'; } /* '' */
|
88 |
+
.icon-chart-pie:before { content: '\e81f'; } /* '' */
|
admin/fontello/demo.html
ADDED
@@ -0,0 +1,354 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
+
<html>
|
3 |
+
<head><!--[if lt IE 9]><script language="javascript" type="text/javascript" src="//html5shim.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
4 |
+
<meta charset="UTF-8"><style>/*
|
5 |
+
* Bootstrap v2.2.1
|
6 |
+
*
|
7 |
+
* Copyright 2012 Twitter, Inc
|
8 |
+
* Licensed under the Apache License v2.0
|
9 |
+
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
+
*
|
11 |
+
* Designed and built with all the love in the world @twitter by @mdo and @fat.
|
12 |
+
*/
|
13 |
+
.clearfix {
|
14 |
+
*zoom: 1;
|
15 |
+
}
|
16 |
+
.clearfix:before,
|
17 |
+
.clearfix:after {
|
18 |
+
display: table;
|
19 |
+
content: "";
|
20 |
+
line-height: 0;
|
21 |
+
}
|
22 |
+
.clearfix:after {
|
23 |
+
clear: both;
|
24 |
+
}
|
25 |
+
html {
|
26 |
+
font-size: 100%;
|
27 |
+
-webkit-text-size-adjust: 100%;
|
28 |
+
-ms-text-size-adjust: 100%;
|
29 |
+
}
|
30 |
+
a:focus {
|
31 |
+
outline: thin dotted #333;
|
32 |
+
outline: 5px auto -webkit-focus-ring-color;
|
33 |
+
outline-offset: -2px;
|
34 |
+
}
|
35 |
+
a:hover,
|
36 |
+
a:active {
|
37 |
+
outline: 0;
|
38 |
+
}
|
39 |
+
button,
|
40 |
+
input,
|
41 |
+
select,
|
42 |
+
textarea {
|
43 |
+
margin: 0;
|
44 |
+
font-size: 100%;
|
45 |
+
vertical-align: middle;
|
46 |
+
}
|
47 |
+
button,
|
48 |
+
input {
|
49 |
+
*overflow: visible;
|
50 |
+
line-height: normal;
|
51 |
+
}
|
52 |
+
button::-moz-focus-inner,
|
53 |
+
input::-moz-focus-inner {
|
54 |
+
padding: 0;
|
55 |
+
border: 0;
|
56 |
+
}
|
57 |
+
body {
|
58 |
+
margin: 0;
|
59 |
+
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
60 |
+
font-size: 14px;
|
61 |
+
line-height: 20px;
|
62 |
+
color: #333;
|
63 |
+
background-color: #fff;
|
64 |
+
}
|
65 |
+
a {
|
66 |
+
color: #08c;
|
67 |
+
text-decoration: none;
|
68 |
+
}
|
69 |
+
a:hover {
|
70 |
+
color: #005580;
|
71 |
+
text-decoration: underline;
|
72 |
+
}
|
73 |
+
.row {
|
74 |
+
margin-left: -20px;
|
75 |
+
*zoom: 1;
|
76 |
+
}
|
77 |
+
.row:before,
|
78 |
+
.row:after {
|
79 |
+
display: table;
|
80 |
+
content: "";
|
81 |
+
line-height: 0;
|
82 |
+
}
|
83 |
+
.row:after {
|
84 |
+
clear: both;
|
85 |
+
}
|
86 |
+
[class*="span"] {
|
87 |
+
float: left;
|
88 |
+
min-height: 1px;
|
89 |
+
margin-left: 20px;
|
90 |
+
}
|
91 |
+
.container,
|
92 |
+
.navbar-static-top .container,
|
93 |
+
.navbar-fixed-top .container,
|
94 |
+
.navbar-fixed-bottom .container {
|
95 |
+
width: 940px;
|
96 |
+
}
|
97 |
+
.span12 {
|
98 |
+
width: 940px;
|
99 |
+
}
|
100 |
+
.span11 {
|
101 |
+
width: 860px;
|
102 |
+
}
|
103 |
+
.span10 {
|
104 |
+
width: 780px;
|
105 |
+
}
|
106 |
+
.span9 {
|
107 |
+
width: 700px;
|
108 |
+
}
|
109 |
+
.span8 {
|
110 |
+
width: 620px;
|
111 |
+
}
|
112 |
+
.span7 {
|
113 |
+
width: 540px;
|
114 |
+
}
|
115 |
+
.span6 {
|
116 |
+
width: 460px;
|
117 |
+
}
|
118 |
+
.span5 {
|
119 |
+
width: 380px;
|
120 |
+
}
|
121 |
+
.span4 {
|
122 |
+
width: 300px;
|
123 |
+
}
|
124 |
+
.span3 {
|
125 |
+
width: 220px;
|
126 |
+
}
|
127 |
+
.span2 {
|
128 |
+
width: 140px;
|
129 |
+
}
|
130 |
+
.span1 {
|
131 |
+
width: 60px;
|
132 |
+
}
|
133 |
+
[class*="span"].pull-right,
|
134 |
+
.row-fluid [class*="span"].pull-right {
|
135 |
+
float: right;
|
136 |
+
}
|
137 |
+
.container {
|
138 |
+
margin-right: auto;
|
139 |
+
margin-left: auto;
|
140 |
+
*zoom: 1;
|
141 |
+
}
|
142 |
+
.container:before,
|
143 |
+
.container:after {
|
144 |
+
display: table;
|
145 |
+
content: "";
|
146 |
+
line-height: 0;
|
147 |
+
}
|
148 |
+
.container:after {
|
149 |
+
clear: both;
|
150 |
+
}
|
151 |
+
p {
|
152 |
+
margin: 0 0 10px;
|
153 |
+
}
|
154 |
+
.lead {
|
155 |
+
margin-bottom: 20px;
|
156 |
+
font-size: 21px;
|
157 |
+
font-weight: 200;
|
158 |
+
line-height: 30px;
|
159 |
+
}
|
160 |
+
small {
|
161 |
+
font-size: 85%;
|
162 |
+
}
|
163 |
+
h1 {
|
164 |
+
margin: 10px 0;
|
165 |
+
font-family: inherit;
|
166 |
+
font-weight: bold;
|
167 |
+
line-height: 20px;
|
168 |
+
color: inherit;
|
169 |
+
text-rendering: optimizelegibility;
|
170 |
+
}
|
171 |
+
h1 small {
|
172 |
+
font-weight: normal;
|
173 |
+
line-height: 1;
|
174 |
+
color: #999;
|
175 |
+
}
|
176 |
+
h1 {
|
177 |
+
line-height: 40px;
|
178 |
+
}
|
179 |
+
h1 {
|
180 |
+
font-size: 38.5px;
|
181 |
+
}
|
182 |
+
h1 small {
|
183 |
+
font-size: 24.5px;
|
184 |
+
}
|
185 |
+
body {
|
186 |
+
margin-top: 90px;
|
187 |
+
}
|
188 |
+
.header {
|
189 |
+
position: fixed;
|
190 |
+
top: 0;
|
191 |
+
left: 50%;
|
192 |
+
margin-left: -480px;
|
193 |
+
background-color: #fff;
|
194 |
+
border-bottom: 1px solid #ddd;
|
195 |
+
padding-top: 10px;
|
196 |
+
z-index: 10;
|
197 |
+
}
|
198 |
+
.footer {
|
199 |
+
color: #ddd;
|
200 |
+
font-size: 12px;
|
201 |
+
text-align: center;
|
202 |
+
margin-top: 20px;
|
203 |
+
}
|
204 |
+
.footer a {
|
205 |
+
color: #ccc;
|
206 |
+
text-decoration: underline;
|
207 |
+
}
|
208 |
+
.the-icons {
|
209 |
+
font-size: 14px;
|
210 |
+
line-height: 24px;
|
211 |
+
}
|
212 |
+
.switch {
|
213 |
+
position: absolute;
|
214 |
+
right: 0;
|
215 |
+
bottom: 10px;
|
216 |
+
color: #666;
|
217 |
+
}
|
218 |
+
.switch input {
|
219 |
+
margin-right: 0.3em;
|
220 |
+
}
|
221 |
+
.codesOn .i-name {
|
222 |
+
display: none;
|
223 |
+
}
|
224 |
+
.codesOn .i-code {
|
225 |
+
display: inline;
|
226 |
+
}
|
227 |
+
.i-code {
|
228 |
+
display: none;
|
229 |
+
}
|
230 |
+
@font-face {
|
231 |
+
font-family: 'fontello';
|
232 |
+
src: url('./font/fontello.eot?72599789');
|
233 |
+
src: url('./font/fontello.eot?72599789#iefix') format('embedded-opentype'),
|
234 |
+
url('./font/fontello.woff?72599789') format('woff'),
|
235 |
+
url('./font/fontello.ttf?72599789') format('truetype'),
|
236 |
+
url('./font/fontello.svg?72599789#fontello') format('svg');
|
237 |
+
font-weight: normal;
|
238 |
+
font-style: normal;
|
239 |
+
}
|
240 |
+
|
241 |
+
|
242 |
+
.demo-icon
|
243 |
+
{
|
244 |
+
font-family: "fontello";
|
245 |
+
font-style: normal;
|
246 |
+
font-weight: normal;
|
247 |
+
speak: none;
|
248 |
+
|
249 |
+
display: inline-block;
|
250 |
+
text-decoration: inherit;
|
251 |
+
width: 1em;
|
252 |
+
margin-right: .2em;
|
253 |
+
text-align: center;
|
254 |
+
/* opacity: .8; */
|
255 |
+
|
256 |
+
/* For safety - reset parent styles, that can break glyph codes*/
|
257 |
+
font-variant: normal;
|
258 |
+
text-transform: none;
|
259 |
+
|
260 |
+
/* fix buttons height, for twitter bootstrap */
|
261 |
+
line-height: 1em;
|
262 |
+
|
263 |
+
/* Animation center compensation - margins should be symmetric */
|
264 |
+
/* remove if not needed */
|
265 |
+
margin-left: .2em;
|
266 |
+
|
267 |
+
/* You can be more comfortable with increased icons size */
|
268 |
+
/* font-size: 120%; */
|
269 |
+
|
270 |
+
/* Font smoothing. That was taken from TWBS */
|
271 |
+
-webkit-font-smoothing: antialiased;
|
272 |
+
-moz-osx-font-smoothing: grayscale;
|
273 |
+
|
274 |
+
/* Uncomment for 3D effect */
|
275 |
+
/* text-shadow: 1px 1px 1px rgba(127, 127, 127, 0.3); */
|
276 |
+
}
|
277 |
+
</style>
|
278 |
+
<link rel="stylesheet" href="css/animation.css"><!--[if IE 7]><link rel="stylesheet" href="css/fontello-ie7.css"><![endif]-->
|
279 |
+
<script>
|
280 |
+
function toggleCodes(on) {
|
281 |
+
var obj = document.getElementById('icons');
|
282 |
+
|
283 |
+
if (on) {
|
284 |
+
obj.className += ' codesOn';
|
285 |
+
} else {
|
286 |
+
obj.className = obj.className.replace(' codesOn', '');
|
287 |
+
}
|
288 |
+
}
|
289 |
+
|
290 |
+
</script>
|
291 |
+
</head>
|
292 |
+
<body>
|
293 |
+
<div class="container header">
|
294 |
+
<h1>
|
295 |
+
fontello
|
296 |
+
<small>font demo</small>
|
297 |
+
</h1>
|
298 |
+
<label class="switch">
|
299 |
+
<input type="checkbox" onclick="toggleCodes(this.checked)">show codes
|
300 |
+
</label>
|
301 |
+
</div>
|
302 |
+
<div id="icons" class="container">
|
303 |
+
<div class="row">
|
304 |
+
<div title="Code: 0xe800" class="the-icons span3"><i class="demo-icon icon-info-circled"></i> <span class="i-name">icon-info-circled</span><span class="i-code">0xe800</span></div>
|
305 |
+
<div title="Code: 0xe801" class="the-icons span3"><i class="demo-icon icon-ok-circle"></i> <span class="i-name">icon-ok-circle</span><span class="i-code">0xe801</span></div>
|
306 |
+
<div title="Code: 0xe802" class="the-icons span3"><i class="demo-icon icon-advanced-type"></i> <span class="i-name">icon-advanced-type</span><span class="i-code">0xe802</span></div>
|
307 |
+
<div title="Code: 0xe803" class="the-icons span3"><i class="demo-icon icon-devices"></i> <span class="i-name">icon-devices</span><span class="i-code">0xe803</span></div>
|
308 |
+
</div>
|
309 |
+
<div class="row">
|
310 |
+
<div title="Code: 0xe804" class="the-icons span3"><i class="demo-icon icon-extension-browser"></i> <span class="i-name">icon-extension-browser</span><span class="i-code">0xe804</span></div>
|
311 |
+
<div title="Code: 0xe805" class="the-icons span3"><i class="demo-icon icon-general-settings"></i> <span class="i-name">icon-general-settings</span><span class="i-code">0xe805</span></div>
|
312 |
+
<div title="Code: 0xe806" class="the-icons span3"><i class="demo-icon icon-infinity-cache"></i> <span class="i-name">icon-infinity-cache</span><span class="i-code">0xe806</span></div>
|
313 |
+
<div title="Code: 0xe807" class="the-icons span3"><i class="demo-icon icon-mobile-phone"></i> <span class="i-name">icon-mobile-phone</span><span class="i-code">0xe807</span></div>
|
314 |
+
</div>
|
315 |
+
<div class="row">
|
316 |
+
<div title="Code: 0xe808" class="the-icons span3"><i class="demo-icon icon-multi-ads"></i> <span class="i-name">icon-multi-ads</span><span class="i-code">0xe808</span></div>
|
317 |
+
<div title="Code: 0xe809" class="the-icons span3"><i class="demo-icon icon-related-posts"></i> <span class="i-name">icon-related-posts</span><span class="i-code">0xe809</span></div>
|
318 |
+
<div title="Code: 0xe80a" class="the-icons span3"><i class="demo-icon icon-responsive-images"></i> <span class="i-name">icon-responsive-images</span><span class="i-code">0xe80a</span></div>
|
319 |
+
<div title="Code: 0xe80b" class="the-icons span3"><i class="demo-icon icon-book-open"></i> <span class="i-name">icon-book-open</span><span class="i-code">0xe80b</span></div>
|
320 |
+
</div>
|
321 |
+
<div class="row">
|
322 |
+
<div title="Code: 0xe80c" class="the-icons span3"><i class="demo-icon icon-site-compatibility"></i> <span class="i-name">icon-site-compatibility</span><span class="i-code">0xe80c</span></div>
|
323 |
+
<div title="Code: 0xe80d" class="the-icons span3"><i class="demo-icon icon-theme-browser"></i> <span class="i-name">icon-theme-browser</span><span class="i-code">0xe80d</span></div>
|
324 |
+
<div title="Code: 0xe80e" class="the-icons span3"><i class="demo-icon icon-theme-customizer"></i> <span class="i-name">icon-theme-customizer</span><span class="i-code">0xe80e</span></div>
|
325 |
+
<div title="Code: 0xe80f" class="the-icons span3"><i class="demo-icon icon-theme-settings"></i> <span class="i-name">icon-theme-settings</span><span class="i-code">0xe80f</span></div>
|
326 |
+
</div>
|
327 |
+
<div class="row">
|
328 |
+
<div title="Code: 0xe810" class="the-icons span3"><i class="demo-icon icon-web-app-mode"></i> <span class="i-name">icon-web-app-mode</span><span class="i-code">0xe810</span></div>
|
329 |
+
<div title="Code: 0xe811" class="the-icons span3"><i class="demo-icon icon-js"></i> <span class="i-name">icon-js</span><span class="i-code">0xe811</span></div>
|
330 |
+
<div title="Code: 0xe812" class="the-icons span3"><i class="demo-icon icon-cancel-circled"></i> <span class="i-name">icon-cancel-circled</span><span class="i-code">0xe812</span></div>
|
331 |
+
<div title="Code: 0xe813" class="the-icons span3"><i class="demo-icon icon-plus-circled"></i> <span class="i-name">icon-plus-circled</span><span class="i-code">0xe813</span></div>
|
332 |
+
</div>
|
333 |
+
<div class="row">
|
334 |
+
<div title="Code: 0xe814" class="the-icons span3"><i class="demo-icon icon-check"></i> <span class="i-name">icon-check</span><span class="i-code">0xe814</span></div>
|
335 |
+
<div title="Code: 0xe815" class="the-icons span3"><i class="demo-icon icon-right-open-big"></i> <span class="i-name">icon-right-open-big</span><span class="i-code">0xe815</span></div>
|
336 |
+
<div title="Code: 0xe816" class="the-icons span3"><i class="demo-icon icon-cloud307"></i> <span class="i-name">icon-cloud307</span><span class="i-code">0xe816</span></div>
|
337 |
+
<div title="Code: 0xe817" class="the-icons span3"><i class="demo-icon icon-left-open-big"></i> <span class="i-name">icon-left-open-big</span><span class="i-code">0xe817</span></div>
|
338 |
+
</div>
|
339 |
+
<div class="row">
|
340 |
+
<div title="Code: 0xe818" class="the-icons span3"><i class="demo-icon icon-megaphone"></i> <span class="i-name">icon-megaphone</span><span class="i-code">0xe818</span></div>
|
341 |
+
<div title="Code: 0xe819" class="the-icons span3"><i class="demo-icon icon-tablet"></i> <span class="i-name">icon-tablet</span><span class="i-code">0xe819</span></div>
|
342 |
+
<div title="Code: 0xe81a" class="the-icons span3"><i class="demo-icon icon-alert"></i> <span class="i-name">icon-alert</span><span class="i-code">0xe81a</span></div>
|
343 |
+
<div title="Code: 0xe81b" class="the-icons span3"><i class="demo-icon icon-mobile"></i> <span class="i-name">icon-mobile</span><span class="i-code">0xe81b</span></div>
|
344 |
+
</div>
|
345 |
+
<div class="row">
|
346 |
+
<div title="Code: 0xe81c" class="the-icons span3"><i class="demo-icon icon-key"></i> <span class="i-name">icon-key</span><span class="i-code">0xe81c</span></div>
|
347 |
+
<div title="Code: 0xe81d" class="the-icons span3"><i class="demo-icon icon-download-cloud"></i> <span class="i-name">icon-download-cloud</span><span class="i-code">0xe81d</span></div>
|
348 |
+
<div title="Code: 0xe81e" class="the-icons span3"><i class="demo-icon icon-heart"></i> <span class="i-name">icon-heart</span><span class="i-code">0xe81e</span></div>
|
349 |
+
<div title="Code: 0xe81f" class="the-icons span3"><i class="demo-icon icon-chart-pie"></i> <span class="i-name">icon-chart-pie</span><span class="i-code">0xe81f</span></div>
|
350 |
+
</div>
|
351 |
+
</div>
|
352 |
+
<div class="container footer">Generated by <a href="http://fontello.com">fontello.com</a></div>
|
353 |
+
</body>
|
354 |
+
</html>
|
admin/fontello/font/fontello.eot
ADDED
Binary file
|
admin/fontello/font/fontello.svg
ADDED
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" standalone="no"?>
|
2 |
+
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
3 |
+
<svg xmlns="http://www.w3.org/2000/svg">
|
4 |
+
<metadata>Copyright (C) 2015 by original authors @ fontello.com</metadata>
|
5 |
+
<defs>
|
6 |
+
<font id="fontello" horiz-adv-x="1000" >
|
7 |
+
<font-face font-family="fontello" font-weight="400" font-stretch="normal" units-per-em="1000" ascent="850" descent="-150" />
|
8 |
+
<missing-glyph horiz-adv-x="1000" />
|
9 |
+
<glyph glyph-name="info-circled" unicode="" d="m454 810q190 2 326-130t140-322q2-190-131-327t-323-141q-190-2-327 131t-139 323q-4 190 130 327t324 139z m52-152q-42 0-65-24t-23-50q-2-28 15-44t49-16q38 0 61 22t23 54q0 58-60 58z m-120-594q30 0 84 26t106 78l-18 24q-48-36-72-36-14 0-4 38l42 160q26 96-22 96-30 0-89-29t-115-75l16-26q52 34 74 34 12 0 0-34l-36-152q-26-104 34-104z" horiz-adv-x="920" />
|
10 |
+
<glyph glyph-name="ok-circle" unicode="" d="m465 797q184 0 315-131t131-316-131-315-315-132-316 132-131 315 131 316 316 131z m-70-653l348 348-79 79-269-268-126 126-79-78z" horiz-adv-x="928" />
|
11 |
+
<glyph glyph-name="advanced-type" unicode="" d="m686 848l-372-560-249-373-62 0 0-62 249 0 0 62-125 0 168 249 395 0 59-249-63 0 0-62 311 0 0 62-62 0-249 933z m-307-560l210 311 72-311-282 0z" horiz-adv-x="1000" />
|
12 |
+
<glyph glyph-name="devices" unicode="" d="m958-82l-164 0c-24 0-43 20-43 44l0 324c0 24 19 44 43 44l164 0c23 0 42-20 42-44l0-324c0-24-19-44-42-44z m-82 22c10 0 18 8 18 18 0 10-8 19-18 19-10 0-18-9-18-19 0-10 8-18 18-18z m73 337l-147 0 0-280 147 0 0 280z m-157 345l-6 0 0 37c0 10-7 17-16 17l-614 0 0-488 198 0 0-106-236 0c-65 0-118 55-118 123l0 454c0 68 53 123 118 123l652 0c65 0 118-55 118-123l0-80c-24 27-58 43-96 43z m-709-146c-23 0-42-20-42-44 0-24 19-44 42-44 23 0 42 20 42 44 0 24-19 44-42 44z m402 88l307 0c45 0 81-37 81-84l0-111-67 0 0 111c0 8-6 14-14 14l-307 0c-7 0-13-6-13-14l0-443 237 0 0-80c0-6 1-12 2-17 1-8 4-15 7-22l-233 0c-44 0-81 38-81 85l0 477c0 47 37 84 81 84z m154-615c16 0 28 14 28 30 0 17-12 30-28 30-16 0-29-13-29-30 0-16 13-30 29-30z" horiz-adv-x="1000" />
|
13 |
+
<glyph glyph-name="extension-browser" unicode="" d="m779 207l0 57 221 0 0-57-221 0z m0 435l221 0 0-57-221 0 0 57z m-56-453l0 94 0 284 0 94 0 189 37 0 0-38 0-756 0-56-37 0 0 189z m-442 39l0 376c9 22 251 220 277 227l147 0 0-812-147 0c-30 7-263 183-277 209z m-183 92c-16-56 66-138 95-178 54-73 161-220 39-286-52-28-103 51-50 79 48 26-158 279-174 336-49 173 133 185 254 193l0-91c-65 1-148 3-164-53z" horiz-adv-x="1000" />
|
14 |
+
<glyph glyph-name="general-settings" unicode="" d="m974 796c-17 17-39 26-63 26-24 0-46-9-63-26l-397-397 126-126 397 397c35 35 35 91 0 126z m-36-71l-341-341c-5-5-11-8-18-8-6 0-12 3-17 8-10 9-10 25 0 35l341 341c10 10 25 10 35 0 10-10 10-25 0-35z m24-666l-265 264-85-85 13-13c10-10 10-25 0-35-5-5-11-7-17-7-7 0-13 2-18 7l-30 31c0 0 0 0 0 0l-63 62 0 0-35 36 0 0-63 62 0 0-31 31c-9 10-9 25 0 35 10 10 26 10 35 0l13-13 85 85-76 76c14 69-8 142-59 192-40 41-94 63-151 63-21 0-41-3-61-9-8-2-15-9-17-17-2-9 1-18 7-24l82-82c17-17 17-45 0-63l-31-30c-9-9-20-13-32-13-12 0-23 4-31 13l-82 81c-6 7-15 9-24 7-8-2-15-9-17-17-24-82 3-170 68-225 39-33 88-51 138-51 13 0 27 2 41 4l156-156-255-254-14 13c-5 6-12 8-20 8-7-1-14-5-18-11l-72-107c-7-10-6-23 3-32l28-28c4-5 11-7 17-7 5 0 10 1 14 4l107 73c6 4 10 10 11 18 0 7-2 15-7 20l-14 13 255 255 344-345c23-22 53-35 86-35 32 0 62 13 85 35 47 47 47 124 0 171z m-50-121c-12-12-28-18-44-18-17 0-33 6-45 18-24 25-24 64 0 89 12 12 28 18 45 18 16 0 32-6 44-18 24-25 24-64 0-89z" horiz-adv-x="1000" />
|
15 |
+
<glyph glyph-name="infinity-cache" unicode="" d="m229 90c142 0 235 124 318 234 71 94 138 182 219 182 85 0 137-93 137-160 0-62-57-152-147-152-86 0-131 74-134 78-14 25-43 32-66 17-23-15-31-47-17-71 3-6 75-128 217-128 144 0 244 135 244 256 0 125-96 264-234 264-128 0-212-112-294-221-76-100-148-195-243-195-57 0-94 21-114 63-18 37-18 79-18 93 0 8 4 50 23 87 22 43 52 63 97 63 89 0 137-62 155-86 5-6 8-10 12-14 21-19 52-17 69 5 17 21 15 53-3 72-1 1-2 2-3 4-24 30-96 123-230 123-164 0-217-171-217-255 0-53 9-100 28-139 26-55 81-120 201-120z" horiz-adv-x="1000" />
|
16 |
+
<glyph glyph-name="mobile-phone" unicode="" d="m773-127l-546 0c-33 0-60 27-60 60l0 834c0 33 27 60 60 60l546 0c33 0 60-27 60-60l0-834c0-33-27-60-60-60z m-273 43c26 0 47 21 47 47 0 25-21 46-47 46-26 0-47-21-47-46 0-26 21-47 47-47z m-273 791l0-655 546 0 0 47-543 0 0 552 543 0 0 56-546 0z m524-576l0 489-490 0 0-489 490 0z m-47 372l-395 0 0 69 395 0 0-69z m0-108l-395 0 0 69 395 0 0-69z m0-108l-395 0 0 68 395 0 0-68z m0-109l-395 0 0 69 395 0 0-69z" horiz-adv-x="1000" />
|
17 |
+
<glyph glyph-name="multi-ads" unicode="" d="m917-107l-772 0c0 0 0 0 0 0l-14 0c-13-8-30-9-45-1-2 0-5 0-7 1l-57 0c-11 0-21 9-21 21l0 21c0 2 0 3 0 4l0 19c-1 7-1 13 0 20l0 32c0 1 0 2 0 4l0 815c0 12 10 21 21 21l123 0c11 0 20-9 20-21l0-563 276 474c13 22 41 30 64 17l61-35c22-13 30-42 17-64l-262-452 461 265c23 13 51 6 64-17l36-60c12-23 5-51-18-64l-476-274 529 0c26 0 47-21 47-46l0-71c0-25-21-46-47-46z" horiz-adv-x="1000" />
|
18 |
+
<glyph glyph-name="related-posts" unicode="" d="m673 244l-100 100 242 241c27 28 27 73 0 100-28 28-73 28-100 0l-55-54-100 100 54 55c83 82 218 82 301 0 82-83 82-218 0-301l-242-241z m-167 200l-241 241c-28 28-73 28-100 0-28-27-28-72 0-100l54-54-100-100-55 54c-82 83-82 218 0 301 83 82 218 82 301 0l241-242-100-100z m-200 33l100-100-241-241c-28-28-28-73 0-101 27-27 72-27 100 0l54 55 100-100-54-55c-42-41-96-62-150-62-55 0-109 21-151 62-82 83-82 218 0 301l242 241z m167-200l242-242c27-27 72-27 100 0 27 28 27 73 0 101l-55 54 100 100 55-54c82-83 82-218 0-301-42-41-96-62-150-62-55 0-109 21-151 62l-241 242 100 100z" horiz-adv-x="1000" />
|
19 |
+
<glyph glyph-name="responsive-images" unicode="" d="m994 498l-151-310c-2-5-7-6-12-4l-34 16 0 107 56-26 99 204-317 148-59-120-43 0 80 164c2 4 7 6 11 4l366-172c4-2 6-7 4-11z m-634 137l-317-148 99-204 56 26 0-107-35-16c-4-2-9-1-11 4l-151 310c-2 4 0 9 4 11l366 172c4 2 9 0 11-4l80-164-44 0-58 120z m-112-150l514 0c7 0 11-4 11-10l0-437c0-6-4-11-11-11l-514 0c-6 0-11 5-11 11l0 437c0 6 5 10 11 10z m38-335l78 0c0 0 57 223 116 166 59-58 80-166 80-166 0 0 21 96 62 106 36 9 59-58 78-106l33 0 0 287-447 0 0-287z m368 197c-11 0-21 2-29 5-6-1-14-2-22-2-28 0-51 9-51 20 0 9 16 17 38 19 1 9 8 16 17 16l7 0c5 0 9-2 12-5 8 3 17 5 28 5 26 0 48-13 48-29 0-16-22-29-48-29z m-296-7c-20 0-36 16-36 35 0 20 16 36 36 36 21 0 37-16 37-36 0-19-16-35-37-35z" horiz-adv-x="1000" />
|
20 |
+
<glyph glyph-name="book-open" unicode="" d="m340 238l0-68-200 80 0 68z m0 208l0-68-200 80 0 68z m538 346q22-12 22-42l0-640q0-34-32-46l-398-160q-8-2-10-2t-5-1-5-1-5 1-5 1l-10 2-398 160q-32 12-32 46l0 640q0 30 22 42 22 16 46 6l382-154 382 154q24 10 46-6z m-478-788l0 560-320 128 0-560z m420 128l0 560-320-128 0-560z m-60 186l0-68-200-80 0 68z m0 208l0-68-200-80 0 68z" horiz-adv-x="900" />
|
21 |
+
<glyph glyph-name="site-compatibility" unicode="" d="m856 374c16-28 48-44 81-38 41 7 69 48 62 90-7 42-47 71-89 63-33-6-58-32-63-64l-212-38c-4 17-12 33-21 46l135 164c30-11 65-3 86 23 28 33 23 82-9 110-33 28-81 23-109-10-21-26-23-62-7-89l-134-162c-15 10-32 17-50 21l0 209c30 10 51 39 51 73 0 43-34 78-77 78-42 0-77-35-77-78 0-34 22-63 52-73l0-209c-19-4-36-11-51-21l-134 162c16 27 15 63-7 89-27 33-76 38-108 10-33-28-37-77-10-110 22-26 56-34 86-23l136-164c-10-13-18-29-22-46l-212 38c-5 32-29 58-62 64-42 8-82-21-90-63-7-42 21-83 63-90 33-6 65 10 80 38l217-39c1-15 5-29 11-43l-194-113c-24 21-59 25-88 8-37-22-50-69-28-107 21-37 68-50 105-28 29 17 43 50 37 82l197 115c10-9 20-17 32-24l-79-219c-32 0-62-19-73-51-15-41 6-86 46-100 40-15 84 6 99 46 11 32 1 67-24 87l80 221c6 0 12-1 18-1 6 0 13 1 19 1l79-221c-24-20-35-55-23-87 14-40 58-61 98-46 40 14 61 59 46 100-11 32-41 51-73 51l-79 219c12 7 23 15 32 24l197-115c-5-32 9-65 38-82 36-22 84-9 105 28 21 38 8 85-28 107-29 17-65 13-89-8l-194 113c6 14 10 28 12 43l216 39z" horiz-adv-x="1000" />
|
22 |
+
<glyph glyph-name="theme-browser" unicode="" d="m966 380l-116-92-164 203 116 93c5 4 12 6 18 6 9 0 17-4 23-11l127-158c11-12 8-31-4-41z m-336 153l-229 128 73 128c5 9 15 15 25 15 5 0 10-1 15-4l177-99c7-4 12-10 14-17 2-8 1-16-3-22l-72-129z m-120-212l-175 97 0 125 39 69 229-127-93-164z m-167-362l30 54 52-64-116-93c-5-4-12-6-18-6-9 0-18 4-23 11l-19 23 42 0c29 0 52 23 52 52l0 23z m-74-54l-215 0c-17 0-31 14-31 31l0 155 277 0 0-155c0-17-14-31-31-31z m-107 121c-16 0-29-12-29-28 0-15 13-28 29-28 15 0 28 13 28 28 0 16-13 28-28 28z m-139 322l277 0 0-198-277 0 0 198z m0 257l277 0 0-198-277 0 0 198z m0 214c0 17 14 31 31 31l215 0c17 0 31-14 31-31l0-155-277 0 0 155z m312-743l28-16-28-50 0 66z m0 279l148-83-93-164-55 31 0 216z m167-113l114-141-148-118-66 82 100 177z m106 187l35 28 2-3 162-201-148-117-127 158 76 135z" horiz-adv-x="1000" />
|
23 |
+
<glyph glyph-name="theme-customizer" unicode="" d="m768 399l-38 0-45 0 13 152c17 15 42 46 51 98 17 112-101 194-106 197-8 6-19 5-27-2-7-7-10-18-5-28 0 0 21-47 1-67-10-11-18-16-26-20-19-11-33-22-41-57-11-41 7-81 18-100l-40-173-60 0-17 196c0 0 0 0 0 0 0 2-1 3-1 4 0 1 0 1 0 1 0 1-1 2-1 3l-79 173-1 2 0 0 0 0c-1 1-1 1-1 1-2 5-7 9-12 11-3 1-6 2-10 2 0 0 0 0 0 0-3-1-6-2-9-4 0 0 0 0-1 0 0 0-1-1-1-1-1 0-1-1-1-1-1 0-1-1-1-1-1 0-1-1-2-1 0-1 0-1 0-1-1-1-1-1-2-2 0 0 0 0 0-1 0-1-1-1-1-2 0-1 0-1 0-1-1-1-1-2-2-3l-47-190c-1-1-1-2-1-3 0 0 0-1 0-1 0-1 0-2 0-4 0 0 0 0 0 0l16-177-21 0-36 0c-13 0-23-11-23-24 0-13 10-23 23-23l16 0 57-481c1-12 11-21 22-21l344 0c11 0 21 9 22 21l57 481 18 0c13 0 23 10 23 23 0 13-10 24-23 24z m-164 149l3-1 45-7-12-141-71 0 35 149z m-264 116l25 3 24-54-63-8 14 59z m-1-105l45 6 15-166-46 0-14 160z" horiz-adv-x="1000" />
|
24 |
+
<glyph glyph-name="theme-settings" unicode="" d="m980 265l-121-23c-7-25-17-48-29-71l69-101c6-9 5-23-3-31l-86-86c-8-8-22-10-32-3l-101 69c-22-12-46-22-71-29l-23-120c-2-11-13-20-24-20l-122 0c-11 0-22 9-24 20l-23 121c-24 8-47 17-68 29l-100-69c-10-6-24-5-32 3l-86 86c-8 8-9 22-3 32l69 100c-12 22-22 46-29 70l-121 23c-11 2-20 13-20 24l0 122c0 11 9 22 20 25l121 22c7 24 16 47 28 69l-69 101c-7 10-5 24 3 32l86 86c8 8 22 9 31 3l101-69c22 12 45 21 69 29l23 121c2 11 13 20 24 20l122 0c11 0 22-9 24-20l23-120c25-7 49-17 72-29l102 69c9 7 23 6 31-3l86-86c8-8 10-22 3-31l-69-102c11-22 21-46 28-70l121-22c11-3 20-14 20-25l0-122c0-11-9-22-20-24z m-480 294c-115 0-209-94-209-209 0-115 94-209 209-209 115 0 209 94 209 209 0 115-94 209-209 209z m0-295c-48 0-86 38-86 86 0 48 38 86 86 86 48 0 86-38 86-86 0-48-38-86-86-86z" horiz-adv-x="1000" />
|
25 |
+
<glyph glyph-name="web-app-mode" unicode="" d="m5 251l0 132c0 12 10 22 23 22l237 0-103-176-134 0c-13 0-23 10-23 22z m169-270l-75-50c-11-7-18-3-16 9l10 87c1 12 11 16 22 10l58-32c11-7 11-17 1-24z m18 49l-58 33c-11 6-15 19-8 30l271 462c6 10 20 14 31 8l58-33c11-6 15-19 9-30l-272-462c-6-11-20-14-31-8z m207 199l103 176 60 0 84-176-247 0z m336-52c-23 11-140 275-170 344-30 69-120 252-91 266 21 10 96-134 152-220 56-87 173-310 187-336 14-25-14-46-29-53-16-6-25-13-49-1z m77-121l-35 54c-7 12-4 26 8 32l34 16c12 6 27 2 33-10l28-53c6-12 2-27-10-33l-24-14c-11-7-26-4-34 8z m130-144c-7 24-63 25-89 60-25 35-4 53 5 61 102 56 84-121 84-121z m53 339c0-12-10-22-23-22l-118 0c-2 7-4 14-7 20-4 6-11 20-22 41-16 29-39 71-63 115l210 0c13 0 23-10 23-22l0-132 0 0z" horiz-adv-x="1000" />
|
26 |
+
<glyph glyph-name="js" unicode="" d="m917 766h-303c-1 0-3 0-4 0v84l-591-79v-840l591-81v86c1 0 3 0 4 0h303c35 0 64 29 64 64v702c0 36-29 64-64 64z m-663-436c0-63-29-84-74-83-11 0-25 2-34 6l5 39c7-2 15-4 24-4 19 0 32 9 32 43v137l47 2v-140z m94-87c-25 0-50 8-62 15l10 41c13-7 34-14 55-14 23-1 35 9 35 24 0 14-10 22-37 32-37 13-60 34-60 66 0 38 31 68 83 69 25 1 44-4 58-10l-12-42c-9 4-25 11-47 10-22 0-32-10-32-22 0-15 12-21 41-32 40-14 59-36 59-68 0-39-29-71-91-69z m596-243c0-15-12-27-27-27h-303c-1 0-3 0-4 0v86c8-15 22-27 39-33 18-6 41-5 57 1 21 9 33 26 36 51 0 2 0 31 0 84v81h-22-22l-1-81 0-80-1-4c-1-5-3-8-5-10-4-4-9-6-17-6-12 0-19 5-27 19-1 2-2 4-3 4 0 0-8-5-18-11l-16-10v665c1 1 3 1 4 1h303c15 0 27-13 27-28v-702z m-28 114c5-9 7-18 7-29 0-18-6-32-17-43-11-10-25-17-43-19-8-1-22-1-29 0-30 4-51 17-65 41-2 3-2 4-2 4 1 1 36 21 36 21 0 0 1-2 3-4 11-16 24-23 42-23 10 0 18 3 24 8 1 2 3 4 4 5 3 8 2 17-4 23-4 5-11 9-30 17-14 6-22 10-28 13-23 14-34 32-34 57 0 17 6 31 17 42 10 10 25 17 42 18 6 0 7 0 14 0 14-1 25-5 35-11 5-4 13-12 18-19 2-3 3-5 3-5 0-1-33-22-34-23 0 0-1 1-3 4-1 2-4 5-6 7-5 6-11 8-20 8-8 0-13-2-17-7-3-3-4-6-5-11 0-6 2-11 6-15 4-5 10-8 29-16 25-11 37-18 47-28 5-5 8-9 10-15z" horiz-adv-x="1000" />
|
27 |
+
<glyph glyph-name="cancel-circled" unicode="" d="m420 770q174 0 297-123t123-297-123-297-297-123-297 123-123 297 123 297 297 123z m86-420l154 154-86 86-154-152-152 152-88-86 154-154-154-152 88-86 152 152 154-152 86 86z" horiz-adv-x="840" />
|
28 |
+
<glyph glyph-name="plus-circled" unicode="" d="m420 770q174 0 297-123t123-297-123-297-297-123-297 123-123 297 123 297 297 123z m52-470l200 0 0 102-200 0 0 202-102 0 0-202-202 0 0-102 202 0 0-202 102 0 0 202z" horiz-adv-x="840" />
|
29 |
+
<glyph glyph-name="check" unicode="" d="m249 0q-34 0-56 28l-180 236q-16 24-12 52t26 46 51 14 47-28l118-154 296 474q16 24 43 30t53-8q24-16 30-43t-8-53l-350-560q-20-32-56-32z" horiz-adv-x="667" />
|
30 |
+
<glyph glyph-name="right-open-big" unicode="" d="m13-20l358 370-358 372q-26 26 0 48 26 26 48 0l392-394q24-26 0-50l-392-394q-22-26-48 0-26 22 0 48z" horiz-adv-x="465" />
|
31 |
+
<glyph glyph-name="cloud307" unicode="" d="m808 475c-29 142-154 250-308 250-62 0-121-17-167-50l63-62c29 20 67 29 104 29 125 0 229-104 229-229v-21h63c71 0 125-54 125-125 0-46-25-88-67-109l63-62c54 37 87 100 87 171 0 108-87 200-192 208z m-683 196l117-113c-134-8-242-116-242-250 0-137 113-250 250-250h488l83-83 54 54-696 696-54-54z m196-196l333-333h-404c-92 0-167 75-167 166 0 92 75 167 167 167h71z" horiz-adv-x="1000" />
|
32 |
+
<glyph glyph-name="left-open-big" unicode="" d="m452-20q26-26 0-48-26-26-48 0l-392 394q-24 24 0 50l392 394q22 26 48 0 26-22 0-48l-358-372z" horiz-adv-x="465" />
|
33 |
+
<glyph glyph-name="megaphone" unicode="" d="m792 500q58-138 67-258t-39-140q-28-12-61 3t-65 40-99 41-149 8q-28-4-42-19t-6-37q22-56 46-108 4-10 24-22t24-20q14-34-22-46-50-22-102-40-30-10-54 42-32 76-58 132-6 12-34 17t-46 31q-30-10-38-14-34-12-74 12t-54 60q-17 32-5 79t43 61q126 52 213 108t124 103 59 92 25 78 15 59 36 36q48 20 130-70t142-228z m-28-300q8 4 10 38t-11 98-41 128q-28 66-67 123t-67 84-36 23-10-42 10-105 40-133 68-119 68-76 36-19z" horiz-adv-x="860" />
|
34 |
+
<glyph glyph-name="tablet" unicode="" d="m613 788c55 0 98-45 98-100l0-675c0-56-43-101-98-101l-514 0c-55 0-99 45-99 101l0 675c0 55 44 100 99 100l514 0z m-22-720l0 600-471 0 0-600 471 0z m-235-123c28 0 48 22 48 47 0 28-20 48-48 48s-47-20-47-48c0-25 20-47 47-47z" horiz-adv-x="711" />
|
35 |
+
<glyph glyph-name="alert" unicode="" d="m885 234q20-16 16-33t-28-23l-78-22q-24-6-40-28t-14-48l4-82q2-24-14-34t-38 0l-86 44q-22 12-47 4t-35-30l-46-88q-12-22-29-23t-33 19l-50 78q-34 48-88 20l-122-70q-22-14-32-6t-2 32l54 164q8 24-4 44t-36 22l-106 12q-24 4-29 18t15 30l86 76q20 16 20 41t-20 41l-86 76q-20 16-16 33t28 23l78 22q24 6 41 28t15 48l-6 82q0 26 15 36t37 0l80-38q24-10 49-2t37 30l46 80q12 22 30 21t30-23l50-86q12-22 35-29t45 7l136 84q22 14 30 6t0-32l-60-170q-10-22 2-41t38-21l114-12q26-2 30-16t-16-30l-86-76q-18-16-18-41t18-41z m-384-92l0 104-100 0 0-104 100 0z m0 160l0 260-100 0 0-260 100 0z" horiz-adv-x="901" />
|
36 |
+
<glyph glyph-name="mobile" unicode="" d="m238-31c27 0 47 23 47 48 0 27-20 47-47 47s-48-20-48-47c0-25 20-48 48-48z m-154 794l307 0c50 0 84-34 84-81l0-670c0-42-34-75-75-75l-325 0c-41 0-75 33-75 75l0 670c0 47 34 81 84 81z m91-54c-9 0-15-7-15-16s6-16 15-16l125 0c9 0 15 7 15 16s-6 16-15 16l-125 0z m255-607l0 496-385 0 0-496 385 0z" horiz-adv-x="475" />
|
37 |
+
<glyph glyph-name="key" unicode="" d="m774 612q20-116-28-215t-150-117q-66-12-130-2l-118-194-70-12-104-166q-14-28-46-32l-76-14q-12-4-22 4t-12 22l-16 98q-8 30 12 56l258 386q-24 50-38 120-18 106 53 187t185 101q106 20 195-45t107-177z m-126-76q30 44 21 97t-51 83q-42 32-92 22t-80-54q-8-12-12-23t-1-20 5-16 13-17 18-15 22-16 23-17q6-4 22-16t23-16 19-12 19-8 17 1 18 8 16 19z" horiz-adv-x="780" />
|
38 |
+
<glyph glyph-name="download-cloud" unicode="" d="m714 332q0 8-5 13t-13 5h-125v196q0 8-5 13t-12 5h-108q-7 0-12-5t-5-13v-196h-125q-8 0-13-5t-5-13q0-8 5-13l196-196q5-5 13-5t13 5l196 196q5 6 5 13z m357-125q0-89-62-151t-152-63h-607q-103 0-177 73t-73 177q0 72 39 134t105 92q-1 17-1 24 0 118 84 202t202 84q87 0 159-49t105-129q40 35 93 35 59 0 101-42t42-101q0-43-23-77 72-17 119-76t46-133z" horiz-adv-x="1071.4" />
|
39 |
+
<glyph glyph-name="heart" unicode="" d="m380 18l-285 283c-66 65-95 137-95 200 0 109 73 182 183 182 102 0 137-48 197-117 60 69 95 117 198 117 110 0 182-73 182-182 0-63-29-135-95-200z" horiz-adv-x="760" />
|
40 |
+
<glyph glyph-name="chart-pie" unicode="" d="m429 353l304-304q-59-61-138-94t-166-34q-117 0-216 58t-155 156-58 215 58 215 155 156 216 58v-426z m104-3h431q0-88-33-167t-94-138z m396 71h-429v429q117 0 215-57t156-156 58-216z" horiz-adv-x="1000" />
|
41 |
+
</font>
|
42 |
+
</defs>
|
43 |
+
</svg>
|
admin/fontello/font/fontello.ttf
ADDED
Binary file
|
admin/fontello/font/fontello.woff
ADDED
Binary file
|
admin/html/help.php
DELETED
@@ -1,8 +0,0 @@
|
|
1 |
-
<h4 id="bnc-help-h4"><?php _e( 'WPtouch Help & Account Links', 'wptouch-pro' ); ?></h4>
|
2 |
-
<ul id="bnc-help-menu">
|
3 |
-
<li><a href="https://support.wptouch.com/support/tickets/" target="_blank"><?php _e( 'Support', 'wptouch-pro' ); ?></a></li>
|
4 |
-
<li><a href="https://support.wptouch.com/support/solutions/" target="_blank"><?php _e( 'Documentation', 'wptouch-pro' ); ?></a></li>
|
5 |
-
<li><a href="https://www.wptouch.com/account/" target="_blank"><?php _e( 'Account & Downloads', 'wptouch-pro' ); ?></a></li>
|
6 |
-
<li><a href="http://twitter.com/wptouch" target="_blank"><?php _e( 'BraveNewCode on Twitter', 'wptouch-pro' ); ?></a></li>
|
7 |
-
<li><a href="http://www.wptouch.com/terms/" target="_blank"><?php _e( 'Plugin Licensing Terms', 'wptouch-pro' ); ?></a></li>
|
8 |
-
</ul>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/html/license-modals.php
ADDED
@@ -0,0 +1,70 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!-- Modals -->
|
2 |
+
<div class="remodal" data-remodal-id="modal-license" data-remodal-options="hashTracking: false">
|
3 |
+
<?php if ( !strstr( $_SERVER[ 'REQUEST_URI' ], '?page=wptouch-admin-general-settings' ) ) { ?>
|
4 |
+
<button data-remodal-action="close" class="remodal-close"></button>
|
5 |
+
<?php } ?>
|
6 |
+
<div class="license-activation">
|
7 |
+
<h1><?php _e( 'Activating License', 'wptouch-pro' ); ?>…</h1>
|
8 |
+
<div id="progress-license" class="license-status">
|
9 |
+
<div class="progress">
|
10 |
+
<div class="bar"></div>
|
11 |
+
</div>
|
12 |
+
</div>
|
13 |
+
</div>
|
14 |
+
|
15 |
+
<!-- Cannot Connect To Server -->
|
16 |
+
<div class="license-no-connection status">
|
17 |
+
<h1><?php _e( 'Server Unavailable.', 'wptouch-pro' ); ?></h1>
|
18 |
+
<p><?php _e( 'Our server cannot authorize your license. This could be caused by your webhost blocking the connection, or a temporary issue with our server.', 'wptouch-pro' ); ?></p>
|
19 |
+
<button class="email-support"><?php _e( 'E-Mail Support', 'wptouch-pro' ); ?></button>
|
20 |
+
</div>
|
21 |
+
|
22 |
+
<!-- Failed Activation -->
|
23 |
+
<div class="license-failed status">
|
24 |
+
<h1><?php _e( 'E-mail Address/License Key Rejected', 'wptouch-pro' ); ?></h1>
|
25 |
+
<p><?php _e( 'Our server rejected your E-Mail Address/License Key.', 'wptouch-pro' ); ?></p>
|
26 |
+
<p><?php _e( 'Please check that they are correct and try again.', 'wptouch-pro' ); ?></p>
|
27 |
+
<button data-remodal-action="cancel"><?php _e( 'Try Again', 'wptouch-pro' ); ?></button>
|
28 |
+
</div>
|
29 |
+
|
30 |
+
<!-- Expired License -->
|
31 |
+
<div class="license-expired status">
|
32 |
+
<h1><?php _e( 'Your license has expired', 'wptouch-pro' ); ?></h1>
|
33 |
+
<p><?php echo sprintf( __( '%sRenew your license%s to continue to receive product updates and support.', 'wptouch-pro' ), '<a href="http://www.wptouch.com/renew/?utm_campaign=renew-from-license-area&utm_source=wptouch&utm_medium=web">', '</a>' ); ?></p>
|
34 |
+
<button class="renew-license"><?php _e( 'Renew License', 'wptouch-pro' ); ?></button>
|
35 |
+
</div>
|
36 |
+
|
37 |
+
<!-- No Activations Left -->
|
38 |
+
<div class="license-no-activations status">
|
39 |
+
<h1><?php _e( 'No licenses remaining', 'wptouch-pro' ); ?></h1>
|
40 |
+
<p><?php _e( 'You have no licenses remaining. You can remove a license from another domain, or purchase an additional site license.', 'wptouch-pro' ); ?></p>
|
41 |
+
<button class="manage-licenses"><?php _e( 'Manage Licenses', 'wptouch-pro' ); ?></button>
|
42 |
+
<button class="visit-pricing"><?php _e( 'Purchase Additional License', 'wptouch-pro' ); ?></button>
|
43 |
+
</div>
|
44 |
+
<!-- Success! -->
|
45 |
+
<div class="license-success status">
|
46 |
+
<h1><?php _e( 'License Activation Complete!', 'wptouch-pro' ); ?></h1>
|
47 |
+
<p><?php _e( 'Thanks for purchasing WPtouch Pro! Your installation is activated, you can receive support and product updates for this website.', 'wptouch-pro' ); ?></p>
|
48 |
+
<button data-remodal-action="confirm" class="remodal-confirm"><?php echo 'OK'; ?></button>
|
49 |
+
</div>
|
50 |
+
|
51 |
+
<!-- Free Upgrade -->
|
52 |
+
|
53 |
+
<div class="license-free-upgrade-text status">
|
54 |
+
<p><?php _e( 'Upgrading installation...', 'wptouch-pro' ); ?></p>
|
55 |
+
</div>
|
56 |
+
<div class="license-free-upgrade status">
|
57 |
+
<h1><?php _e( 'Upgrade to Pro Complete!', 'wptouch-pro' ); ?></h1>
|
58 |
+
<p><?php _e( 'Your installation has been activated and replaced by WPtouch Pro. Next you\'ll be taken to the WPtouch Pro wizard to get setup.', 'wptouch-pro' ); ?></p>
|
59 |
+
<button data-remodal-action="confirm" class="remodal-confirm"><?php echo 'Finish Upgrade'; ?></button>
|
60 |
+
</div>
|
61 |
+
|
62 |
+
<!-- Free Upgrade Failed -->
|
63 |
+
<div class="license-free-upgrade-failed status">
|
64 |
+
<h1><?php _e( 'Upgrade to Pro Failed', 'wptouch-pro' ); ?></h1>
|
65 |
+
<p><?php _e( 'Your license was activated, however your installation could not be automatically upgraded to WPtouch Pro.', 'wptouch-pro' ); ?></p>
|
66 |
+
<p><?php echo sprintf( __( 'Please %sfollow the steps in this article%s to fix the issue.', 'wptouch-pro' ), '<a href="https://support.wptouch.com/support/solutions/articles/5000694582">', '</a>' ); ?></p>
|
67 |
+
<button data-remodal-action="confirm" class="remodal-confirm"><?php echo 'Ok'; ?></button>
|
68 |
+
</div>
|
69 |
+
|
70 |
+
</div>
|
admin/html/notification-center.php
DELETED
@@ -1,22 +0,0 @@
|
|
1 |
-
<?php $settings = wptouch_get_settings(); ?>
|
2 |
-
<div class="dropdown notifications">
|
3 |
-
<?php if ( defined( 'WPTOUCH_IS_FREE' ) && $_GET['page'] != 'wptouch-admin-upgrade' ) { ?>
|
4 |
-
<button id="upgrade-to-pro" class="button button-primary" type="button" data-target="<?php echo admin_url( 'admin.php?page=wptouch-admin-upgrade' ); ?>">
|
5 |
-
<?php _e( 'What\'s in WPtouch Pro?', 'wptouch-pro' ); ?>
|
6 |
-
</button>
|
7 |
-
<?php } elseif ( $_GET['page'] != 'wptouch-admin-upgrade-license' && ( !defined( 'WPTOUCH_CLIENT_MODE' ) && wptouch_license_upgrade_available() ) ) { ?>
|
8 |
-
<button id="upgrade-to-pro" class="button button-primary" type="button" data-target="<?php echo admin_url( 'admin.php?page=wptouch-admin-upgrade-license' ); ?>">
|
9 |
-
<?php _e( 'License upgrade available', 'wptouch-pro' ); ?>
|
10 |
-
</button>
|
11 |
-
<?php } ?>
|
12 |
-
<?php if ( $_GET['page'] != 'wptouch-admin-upgrade-license' ) { ?>
|
13 |
-
<button id="notification-drop" class="notifications-btn button button-secondary dropdown-toggle" type="button" data-toggle="dropdown">
|
14 |
-
<?php _e( 'Notifications', 'wptouch-pro' ); ?>
|
15 |
-
</button>
|
16 |
-
<span class="number" style="display: none;"></span>
|
17 |
-
|
18 |
-
<div class="dropdown-menu notifications-div" role="menu" aria-labelledby="notification-drop">
|
19 |
-
<span id="ajax-notifications"></span>
|
20 |
-
</div><!-- drop-down menu -->
|
21 |
-
<?php } ?>
|
22 |
-
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/html/notification-content.php
DELETED
@@ -1,25 +0,0 @@
|
|
1 |
-
<div class="nano notifications">
|
2 |
-
<div class="content">
|
3 |
-
<ul>
|
4 |
-
<?php if ( wptouch_has_notifications() ) while ( wptouch_has_notifications() ) { ?>
|
5 |
-
<?php wptouch_the_notification(); ?>
|
6 |
-
<li class="<?php wptouch_notification_the_type(); ?>">
|
7 |
-
<span class="dismiss" data-key="<?php wptouch_the_notification_key(); ?>">x</span>
|
8 |
-
|
9 |
-
<?php if ( wptouch_notification_has_link() ) { ?>
|
10 |
-
<a href="<?php wptouch_notification_the_link(); ?>">
|
11 |
-
<?php wptouch_notification_the_name(); ?> »
|
12 |
-
</a>
|
13 |
-
<?php } else { ?>
|
14 |
-
<?php wptouch_notification_the_name(); ?>
|
15 |
-
<?php } ?>
|
16 |
-
<span><?php wptouch_notification_the_desc(); ?></span>
|
17 |
-
</li>
|
18 |
-
<?php } else { ?>
|
19 |
-
<li class="no-notifications">
|
20 |
-
<?php _e( 'No notifications', 'wptouch-pro' ); ?>
|
21 |
-
</li>
|
22 |
-
<?php } ?>
|
23 |
-
</ul>
|
24 |
-
</div>
|
25 |
-
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/html/plugin-area.php
CHANGED
@@ -28,10 +28,21 @@
|
|
28 |
<?php if ( !wptouch_has_license() ) { ?>
|
29 |
<?php if ( wptouch_show_renewal_notice() ) { ?>
|
30 |
<?php echo sprintf( __( '%sRenew your license%s to receive future product updates and product support.', 'wptouch-pro' ), '<a href="//www.wptouch.com/renew/?utm_campaign=renew-plugins-page&utm_source=wptouch&utm_medium=web">', '</a>' ); ?>
|
31 |
-
<?php } else if ( wptouch_should_show_license_nag() ) {
|
32 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
<?php } ?>
|
34 |
-
<?php } ?>
|
35 |
</div>
|
36 |
</td>
|
37 |
</tr>
|
@@ -41,4 +52,5 @@
|
|
41 |
}());
|
42 |
</script>
|
43 |
<?php } ?>
|
44 |
-
|
|
28 |
<?php if ( !wptouch_has_license() ) { ?>
|
29 |
<?php if ( wptouch_show_renewal_notice() ) { ?>
|
30 |
<?php echo sprintf( __( '%sRenew your license%s to receive future product updates and product support.', 'wptouch-pro' ), '<a href="//www.wptouch.com/renew/?utm_campaign=renew-plugins-page&utm_source=wptouch&utm_medium=web">', '</a>' ); ?>
|
31 |
+
<?php } else if ( wptouch_should_show_license_nag() ) {
|
32 |
+
if ( !is_plugin_active_for_network( WPTOUCH_PLUGIN_SLUG ) || is_network_admin() ) {
|
33 |
+
$nag_links = array(
|
34 |
+
'<a href="' . wptouch_get_license_activation_url() . '">',
|
35 |
+
'</a>',
|
36 |
+
'<a href="//www.wptouch.com/?utm_source=license_nag&utm_medium=web&utm_campaign=wptouch3_upgrades">',
|
37 |
+
'</a>'
|
38 |
+
);
|
39 |
+
} else {
|
40 |
+
$nag_links = array( '', '', '', '' );
|
41 |
+
}
|
42 |
+
}
|
43 |
+
?>
|
44 |
+
<?php echo sprintf( __( 'Please %sactivate your license%s, or %spurchase a license%s to fully enable product updates and product support.', 'wptouch-pro' ), $nag_links[ 0 ], $nag_links[ 1 ], $nag_links[ 2 ], $nag_links[ 3 ] ); ?>
|
45 |
<?php } ?>
|
|
|
46 |
</div>
|
47 |
</td>
|
48 |
</tr>
|
52 |
}());
|
53 |
</script>
|
54 |
<?php } ?>
|
55 |
+
|
56 |
+
<?php } //wptouch_pro_check_for_update ?>
|
admin/images/active_checkmark.png
DELETED
Binary file
|
admin/images/check.png
DELETED
Binary file
|
admin/images/cloud-off.png
DELETED
Binary file
|
admin/images/cloud-waiting.png
DELETED
Binary file
|
admin/images/customizer-setup-icon.jpg
ADDED
Binary file
|
admin/images/default-bookmark.png
CHANGED
Binary file
|
admin/images/filler.png
DELETED
Binary file
|
admin/images/frown.png
DELETED
Binary file
|
admin/images/grid_square.png
ADDED
Binary file
|
admin/images/loading.gif
DELETED
Binary file
|
admin/images/marker.png
DELETED
Binary file
|
admin/images/mask.png
DELETED
Binary file
|
admin/images/menu-setup-icon.jpg
ADDED
Binary file
|
admin/images/no-icons.png
DELETED
Binary file
|
admin/images/no-notifications.png
DELETED
Binary file
|
admin/images/smartphone-sm-icon.png
DELETED
Binary file
|
admin/images/tablet-sm-icon.png
DELETED
Binary file
|
admin/images/team.jpg
ADDED
Binary file
|
admin/images/trash.png
DELETED
Binary file
|
admin/images/upload-placeholder.png
DELETED
Binary file
|
admin/images/wheel.png
DELETED
Binary file
|
admin/images/white-cloud.png
DELETED
Binary file
|
admin/images/wizard/blog.jpg
ADDED
Binary file
|
admin/images/wizard/home.jpg
ADDED
Binary file
|
admin/images/wizard/wizard-globe.png
ADDED
Binary file
|
admin/images/wizard/wizard-logo.png
ADDED
Binary file
|
admin/images/wptouch-admin-icon.png
CHANGED
Binary file
|
admin/images/wptouch-logo.png
ADDED
Binary file
|
admin/images/wptouch_account.png
ADDED
Binary file
|
admin/images/wptouch_support.png
ADDED
Binary file
|
admin/images/yield.png
DELETED
Binary file
|
admin/js/wptouch-admin-3.js
DELETED
@@ -1,1268 +0,0 @@
|
|
1 |
-
// Let's see if we're in a *happy* browser : )
|
2 |
-
function wptouchIsWebKit() {
|
3 |
-
// Only recent versions of WebKit browsers have this
|
4 |
-
return ( '-webkit-filter' in document.body.style );
|
5 |
-
}
|
6 |
-
|
7 |
-
function wptouchSetupAdminMenu(){
|
8 |
-
// Admin menu click handler
|
9 |
-
var adminMenuArea = jQuery( '#wptouch-admin-menu' );
|
10 |
-
if ( adminMenuArea.length ) {
|
11 |
-
jQuery( adminMenuArea ).on( 'click', 'a', function( e ) {
|
12 |
-
var targetSlug = jQuery( this ).attr( 'data-page-slug' );
|
13 |
-
|
14 |
-
jQuery( '.wptouch-settings-sub-page:not(#' + targetSlug + ')' ).hide();
|
15 |
-
jQuery( '#' + targetSlug ).show();
|
16 |
-
|
17 |
-
jQuery( '#wptouch-admin-menu' ).find( 'a' ).removeClass( 'active' );
|
18 |
-
jQuery( this ).addClass( 'active' );
|
19 |
-
|
20 |
-
jQuery.cookie( 'wptouch-admin-menu', targetSlug );
|
21 |
-
|
22 |
-
wptouchRefreshScrollers();
|
23 |
-
e.preventDefault();
|
24 |
-
});
|
25 |
-
|
26 |
-
// Check to see if the menu cookie has been set previously
|
27 |
-
var previousCookie = jQuery.cookie( 'wptouch-admin-menu' );
|
28 |
-
var menuHandled = 0;
|
29 |
-
if ( previousCookie ) {
|
30 |
-
if ( jQuery( '#wptouch-admin-menu a.' + previousCookie ).length ) {
|
31 |
-
menuHandled = 1;
|
32 |
-
}
|
33 |
-
}
|
34 |
-
// If not then click the first element
|
35 |
-
if ( !menuHandled ) {
|
36 |
-
jQuery( '#wptouch-admin-menu' ).find( 'a:first' ).click();
|
37 |
-
}
|
38 |
-
}
|
39 |
-
|
40 |
-
}
|
41 |
-
|
42 |
-
function wptouchTooltipSetup() {
|
43 |
-
jQuery( 'i.wptouch-tooltip, .wptouch-free .pro' ).tooltip( { placement:'right' } );
|
44 |
-
}
|
45 |
-
|
46 |
-
function wptouchHandleLicensePanel() {
|
47 |
-
// Check to make sure the panel exists
|
48 |
-
|
49 |
-
// Cache objects we'll be using for this beast
|
50 |
-
var activate = jQuery( '#activate-license' );
|
51 |
-
var success = jQuery( '#success-license' );
|
52 |
-
var progress = jQuery( '#progress-license' );
|
53 |
-
var rejected = jQuery( '#rejected-license' );
|
54 |
-
var progressBar = jQuery( '#progress-license' ).find( '.bar' );
|
55 |
-
|
56 |
-
if ( jQuery( '#license-settings-area' ).length ) {
|
57 |
-
|
58 |
-
if ( jQuery( '#wptouch-settings-area.licensed' ).length ) {
|
59 |
-
jQuery( '#license_key' ).attr( 'type', 'password' );
|
60 |
-
}
|
61 |
-
|
62 |
-
// See if we have a license already
|
63 |
-
if ( bncHasLicense == 0 ) {
|
64 |
-
jQuery( activate ).show();
|
65 |
-
|
66 |
-
jQuery( activate ).on( 'click', 'a.activate', function( e ) {
|
67 |
-
jQuery( progress ).fadeIn();
|
68 |
-
wptouchProgressBarStart( progressBar );
|
69 |
-
jQuery( rejected ).fadeOut();
|
70 |
-
e.preventDefault();
|
71 |
-
|
72 |
-
// Need to contact the server here
|
73 |
-
var licenseEmail = jQuery( '#license_email' ).val();
|
74 |
-
var licenseKey = jQuery( '#license_key' ).val();
|
75 |
-
|
76 |
-
// Need to generate an AJAX request now for activation
|
77 |
-
var ajaxParams = {
|
78 |
-
email: licenseEmail,
|
79 |
-
key: licenseKey
|
80 |
-
};
|
81 |
-
|
82 |
-
jQuery( activate ).hide();
|
83 |
-
|
84 |
-
wptouchAdminAjax( 'activate-license-key', ajaxParams, function( result ) {
|
85 |
-
if ( result == '1' ) {
|
86 |
-
// license success
|
87 |
-
wptouchProgressBarSuccess( progressBar );
|
88 |
-
setTimeout( function(){
|
89 |
-
jQuery( success ).fadeIn();
|
90 |
-
}, 1000 );
|
91 |
-
setTimeout(function(){ window.location.href = '?page=wptouch-admin-touchboard'; }, 1250 );
|
92 |
-
} else if ( result == '2' ) {
|
93 |
-
// rejected license
|
94 |
-
wptouchProgressBarError( progressBar );
|
95 |
-
setTimeout( function(){
|
96 |
-
jQuery( progress ).fadeOut( 250 );
|
97 |
-
}, 5000 );
|
98 |
-
setTimeout( function(){
|
99 |
-
jQuery( activate ).fadeIn();
|
100 |
-
wptouchProgressBarReset( progressBar );
|
101 |
-
}, 5250 );
|
102 |
-
jQuery( rejected ).fadeIn().delay( 4500 ).fadeOut();
|
103 |
-
} else if ( result == '3' ) {
|
104 |
-
// too many licenses
|
105 |
-
wptouchProgressBarError( progressBar );
|
106 |
-
setTimeout( function(){
|
107 |
-
jQuery( progress ).fadeOut( 250 );
|
108 |
-
}, 2500 );
|
109 |
-
setTimeout( function(){
|
110 |
-
wptouchProgressBarReset( progressBar );
|
111 |
-
}, 5250 );
|
112 |
-
jQuery( '#too-many-license' ).fadeIn();
|
113 |
-
} else if ( result == '4' ) {
|
114 |
-
// server issue license
|
115 |
-
wptouchProgressBarError( progressBar );
|
116 |
-
setTimeout( function(){
|
117 |
-
jQuery( progress ).fadeOut( 250 );
|
118 |
-
}, 5000 );
|
119 |
-
setTimeout( function(){
|
120 |
-
jQuery( activate ).show();
|
121 |
-
wptouchProgressBarReset( progressBar );
|
122 |
-
}, 5250 );
|
123 |
-
jQuery( '#server-issue-license' ).fadeIn().delay( 4500 ).fadeOut();
|
124 |
-
} else if ( result == '5' ) {
|
125 |
-
// server issue license
|
126 |
-
wptouchProgressBarError( progressBar );
|
127 |
-
setTimeout( function(){
|
128 |
-
jQuery( progress ).fadeOut( 250 );
|
129 |
-
}, 5000 );
|
130 |
-
setTimeout( function(){
|
131 |
-
jQuery( activate ).show();
|
132 |
-
wptouchProgressBarReset( progressBar );
|
133 |
-
}, 5250 );
|
134 |
-
jQuery( '#license-expired-error' ).fadeIn();
|
135 |
-
}
|
136 |
-
});
|
137 |
-
});
|
138 |
-
} else {
|
139 |
-
jQuery( activate ).hide();
|
140 |
-
jQuery( success ).show()
|
141 |
-
}
|
142 |
-
|
143 |
-
jQuery( 'a.clear-license' ).click( function ( e ) {
|
144 |
-
if ( confirm( WPtouchCustom.remove_license ) ) {
|
145 |
-
var ajaxParams = {};
|
146 |
-
|
147 |
-
wptouchAdminAjax( 'reset-license-info', ajaxParams, function( result ) {
|
148 |
-
document.location.href = document.location.href;
|
149 |
-
});
|
150 |
-
}
|
151 |
-
|
152 |
-
e.preventDefault();
|
153 |
-
});
|
154 |
-
}
|
155 |
-
}
|
156 |
-
// Functions for dealing with the animation of the progress bars for licensing
|
157 |
-
|
158 |
-
function wptouchProgressBarStart( barElement ){
|
159 |
-
jQuery( barElement ).animate({
|
160 |
-
width: '50%'
|
161 |
-
}, 500, function(){
|
162 |
-
// end animation function?
|
163 |
-
});
|
164 |
-
}
|
165 |
-
|
166 |
-
function wptouchProgressBarError( barElement ){
|
167 |
-
jQuery( barElement ).parent().removeClass( 'progress-striped' );
|
168 |
-
jQuery( barElement ).addClass( 'bar-danger' );
|
169 |
-
}
|
170 |
-
|
171 |
-
function wptouchProgressBarSuccess( barElement ){
|
172 |
-
jQuery( barElement ).animate({
|
173 |
-
width: '100%'
|
174 |
-
}, 500, function(){
|
175 |
-
jQuery( barElement ).parent().removeClass( 'progress-striped' );
|
176 |
-
jQuery( barElement ).addClass( 'bar-success' );
|
177 |
-
});
|
178 |
-
}
|
179 |
-
|
180 |
-
function wptouchProgressBarReset( barElement ){
|
181 |
-
jQuery( barElement ).css( 'width', '0%' ).removeClass( 'bar-danger bar-success' );
|
182 |
-
}
|
183 |
-
|
184 |
-
// function wptouchHandleCarousels(){
|
185 |
-
// jQuery( '.carousel' ).each( function( i ) {
|
186 |
-
//
|
187 |
-
// var items = jQuery( this ).find( '.carousel-inner .item' );
|
188 |
-
// var toAdd = '';
|
189 |
-
// for ( i = 0; i < items.length; i++ ) {
|
190 |
-
// if ( i == 0 ) {
|
191 |
-
// toAdd = toAdd + '<li class="active" data-num="' + i + '"> </li>';
|
192 |
-
// } else {
|
193 |
-
// toAdd = toAdd + '<li data-num="' + i + '"> </li>';
|
194 |
-
// }
|
195 |
-
// }
|
196 |
-
//
|
197 |
-
// jQuery( this ).find( 'ul.dots' ).append( toAdd );
|
198 |
-
//
|
199 |
-
// jQuery( this ).on( 'slid', function() {
|
200 |
-
// var which = 1;
|
201 |
-
// var found = 0;
|
202 |
-
// jQuery( this ).find( '.carousel-inner div.item' ).each( function() {
|
203 |
-
// if ( !jQuery( this ).hasClass( 'active' ) && !found ) {
|
204 |
-
// which = which + 1;
|
205 |
-
// } else found = 1;
|
206 |
-
// });
|
207 |
-
//
|
208 |
-
// jQuery( this ).find( 'ul.dots li' ).removeClass( 'active' );
|
209 |
-
// jQuery( this ).find( 'ul.dots li:nth-child(' + which + ')' ).addClass( 'active' );
|
210 |
-
// });
|
211 |
-
// });
|
212 |
-
// }
|
213 |
-
|
214 |
-
function wptouchSetupHomescreenUploaders() {
|
215 |
-
if ( jQuery( '.uploader' ).length ) {
|
216 |
-
|
217 |
-
// Remove placeholder background if we have an image
|
218 |
-
jQuery( '.image-placeholder img' ).parent().css( 'background', 'none' );
|
219 |
-
|
220 |
-
jQuery( '.uploader' ).each( function() {
|
221 |
-
var thisUploader = jQuery( this );
|
222 |
-
var baseId = jQuery( this ).find( 'button.upload' ).parent().attr( 'id' );
|
223 |
-
var settingName = jQuery( '#' + baseId + '_upload' ).attr( 'data-esn' );
|
224 |
-
var deleteButton = jQuery( '#' + baseId ).find( 'button.delete' );
|
225 |
-
var uploader = new AjaxUpload( baseId + '_upload', {
|
226 |
-
action: ajaxurl,
|
227 |
-
allowedExtensions: [ 'png' ],
|
228 |
-
debug: true,
|
229 |
-
data: {
|
230 |
-
action: 'upload_file',
|
231 |
-
file_type: 'homescreen_image',
|
232 |
-
setting_name: settingName,
|
233 |
-
wp_nonce: WPtouchCustom.admin_nonce
|
234 |
-
},
|
235 |
-
name: 'myfile',
|
236 |
-
onSubmit: function( fileName, extension ) {
|
237 |
-
jQuery( '.' + baseId + '_wrap' ).find( '.progress' ).show().addClass( 'active progress-striped' );
|
238 |
-
jQuery( '.' + baseId + '_wrap' ).find( '.progress .bar' ).css( 'width', '0%' );
|
239 |
-
//thisUploader.find( '.spinner' ).show();
|
240 |
-
},
|
241 |
-
onComplete: function( fileName, response ) {
|
242 |
-
jQuery( '.' + baseId + '_wrap' ).find( '.progress .bar' ).css( 'width', '100%' );
|
243 |
-
if ( response != 'invalid image' ) {
|
244 |
-
jQuery( '.' + baseId + '_wrap' ).find( '.progress' ).removeClass( 'progress-info active progress-striped progress-danger' ).addClass( 'progress-success' );
|
245 |
-
// Remove placeholder background if we have an image
|
246 |
-
thisUploader.find( '.image-placeholder' ).css( 'background', 'none' );
|
247 |
-
setTimeout( function() {
|
248 |
-
jQuery( '.' + baseId + '_wrap' ).find( '.progress' ).tooltip( 'show' );
|
249 |
-
thisUploader.find( '.image-placeholder' ).html( '<img src="' + response + '" />');
|
250 |
-
},
|
251 |
-
1250 );
|
252 |
-
} else {
|
253 |
-
jQuery( '.' + baseId + '_wrap' ).find( '.progress' ).attr( 'title', WPtouchCustom.upload_invalid );
|
254 |
-
jQuery( '.' + baseId + '_wrap' ).find( '.progress' ).attr( 'data-original-title', WPtouchCustom.upload_invalid );
|
255 |
-
jQuery( '.' + baseId + '_wrap' ).find( '.progress' ).removeClass( 'progress-info active progress-striped progress-success' ).addClass( 'progress-danger' );
|
256 |
-
setTimeout( function() {
|
257 |
-
jQuery( '.' + baseId + '_wrap' ).find( '.progress' ).tooltip( 'show' );
|
258 |
-
},
|
259 |
-
1250 );
|
260 |
-
jQuery( '.' + baseId + '_wrap' ).find( '.progress .bar' ).css( 'background-color', '#b14353' );
|
261 |
-
}
|
262 |
-
setTimeout( function() {
|
263 |
-
jQuery( '.' + baseId + '_wrap' ).find( '.progress .bar' ).css( 'background-color', '#62c462' );
|
264 |
-
jQuery( '.' + baseId + '_wrap' ).find( '.progress' ).tooltip( 'hide' );
|
265 |
-
jQuery( '.' + baseId + '_wrap' ).find( '.progress' ).attr( 'title', WPtouchCustom.upload_complete );
|
266 |
-
jQuery( '.' + baseId + '_wrap' ).find( '.progress' ).attr( 'data-original-title', WPtouchCustom.upload_complete );
|
267 |
-
jQuery( '.' + baseId + '_wrap' ).find( '.progress' ).hide();
|
268 |
-
deleteButton.show();
|
269 |
-
},
|
270 |
-
3500 );
|
271 |
-
},
|
272 |
-
onCancel: function( id, fileName ) {},
|
273 |
-
showMessage: function( message ) {
|
274 |
-
}
|
275 |
-
});
|
276 |
-
|
277 |
-
jQuery( '#' + baseId + '_upload' ).on( 'click', function( e ) {
|
278 |
-
jQuery( '#' + baseId + '_spot' ).trigger( 'click' );
|
279 |
-
e.preventDefault();
|
280 |
-
});
|
281 |
-
|
282 |
-
deleteButton.on( 'click', function( e ) {
|
283 |
-
var deleteButton = jQuery( this );
|
284 |
-
var placeHolder = jQuery( this ).parent().find( '.image-placeholder' );
|
285 |
-
placeHolder.html( '' );
|
286 |
-
|
287 |
-
var baseId = jQuery( this ).parent().attr( 'id' );
|
288 |
-
var settingName = jQuery( '#' + baseId + '_upload' ).attr( 'data-esn' );
|
289 |
-
|
290 |
-
var ajaxParams = {
|
291 |
-
setting_name: settingName
|
292 |
-
};
|
293 |
-
|
294 |
-
wptouchAdminAjax( 'delete-image-upload', ajaxParams, function( result ) {
|
295 |
-
if ( result == 0 ) {
|
296 |
-
// Remove placeholder background if we have an image
|
297 |
-
placeHolder.css(
|
298 |
-
'background', 'url(' + WPtouchCustom.plugin_admin_image_url + '/upload-placeholder.png) no-repeat -8px -22px'
|
299 |
-
);
|
300 |
-
|
301 |
-
deleteButton.fadeOut();
|
302 |
-
}
|
303 |
-
});
|
304 |
-
|
305 |
-
e.preventDefault();
|
306 |
-
});
|
307 |
-
});
|
308 |
-
}
|
309 |
-
}
|
310 |
-
|
311 |
-
function wptouchEvaluateDefaultIconsInMenu() {
|
312 |
-
// Set up default icons
|
313 |
-
var defaultIcon = jQuery( '#default-area img' ).attr( 'src' );
|
314 |
-
if ( defaultIcon ) {
|
315 |
-
jQuery( '#menu-area' ).find( 'li img' ).each( function() {
|
316 |
-
var iconSrc = jQuery( this ).attr( 'src' );
|
317 |
-
if ( iconSrc == defaultIcon ) {
|
318 |
-
jQuery( this ).addClass( 'def-icon' )
|
319 |
-
} else {
|
320 |
-
jQuery( this ).removeClass( 'def-icon' )
|
321 |
-
}
|
322 |
-
});
|
323 |
-
}
|
324 |
-
}
|
325 |
-
|
326 |
-
function wptouchHandleMenuArea(){
|
327 |
-
jQuery( '#left-area' ).find( '.nano' ).nanoScroller({
|
328 |
-
flash: true,
|
329 |
-
flashDelay: 3000,
|
330 |
-
preventPageScrolling: true
|
331 |
-
});
|
332 |
-
|
333 |
-
jQuery( '#right-area' ).find( '.nano' ).nanoScroller({
|
334 |
-
flash: true,
|
335 |
-
flashDelay: 3000,
|
336 |
-
preventPageScrolling: true
|
337 |
-
});
|
338 |
-
|
339 |
-
jQuery( '#pack-list' ).on( 'change', function( e ) {
|
340 |
-
jQuery( '#pack-set-menu-area' ).find( '.pack' ).hide();
|
341 |
-
jQuery( '#pack-' + jQuery( this ).val() ).fadeIn();
|
342 |
-
e.preventDefault();
|
343 |
-
wptouchRefreshScrollers();
|
344 |
-
}).trigger( 'change' );
|
345 |
-
|
346 |
-
// Change the menu list based on the select box
|
347 |
-
jQuery( 'select#menu-list' ).on( 'change', function( e ) {
|
348 |
-
var selectedMenu = jQuery( 'select#menu-list' ).prop( 'value' );
|
349 |
-
jQuery( 'div.menu-item-list' ).hide();
|
350 |
-
jQuery( 'div[data-menu-name="' + selectedMenu + '"]' ).show();
|
351 |
-
e.preventDefault();
|
352 |
-
wptouchRefreshScrollers();
|
353 |
-
}).trigger( 'change' );
|
354 |
-
|
355 |
-
// Show or hide children in the menu icon list
|
356 |
-
jQuery( '#right-area ul.menu-tree > li a.title' ).each( function(){
|
357 |
-
jQuery( this ).on( 'click', function( e ) {
|
358 |
-
if ( !jQuery( this ).hasClass( 'open' ) ) {
|
359 |
-
jQuery( this ).addClass( 'open' ).parent().find( 'ul' ).first().show();
|
360 |
-
jQuery( this ).parent().addClass( 'open-tree' );
|
361 |
-
} else {
|
362 |
-
jQuery( this ).removeClass( 'open' ).parent().find( 'ul' ).first().removeClass( 'open-tree' ).hide();
|
363 |
-
jQuery( this ).parent().removeClass( 'open-tree' );
|
364 |
-
}
|
365 |
-
wptouchRefreshScrollers();
|
366 |
-
e.preventDefault();
|
367 |
-
});
|
368 |
-
});
|
369 |
-
|
370 |
-
// AJAX enable/disable menu item
|
371 |
-
jQuery( '.menu-enable' ).find( 'input' ).on( 'change', function( e ) {
|
372 |
-
var isEnabled = jQuery( this ).is( ':checked' ) ? '1' : '0';
|
373 |
-
var pageId = jQuery( this ).parent().parent().find( '.drop-target' ).attr( 'data-object-id' );
|
374 |
-
|
375 |
-
var ajaxParams = {
|
376 |
-
is_checked: isEnabled,
|
377 |
-
page_id: pageId
|
378 |
-
};
|
379 |
-
|
380 |
-
wptouchAdminAjax( 'enable-menu-item', ajaxParams, function( result ) {
|
381 |
-
if ( result == 0 ) {
|
382 |
-
// success
|
383 |
-
}
|
384 |
-
});
|
385 |
-
|
386 |
-
if ( isEnabled == 0 ) {
|
387 |
-
jQuery( this ).parent().parent().find( 'ul input:checked' ).click();
|
388 |
-
jQuery( this ).parent().parent().find( 'ul input' ).prop( 'disabled', true );
|
389 |
-
} else {
|
390 |
-
jQuery( this ).parent().parent().find( 'ul input' ).removeProp( 'disabled' ).click();
|
391 |
-
}
|
392 |
-
})
|
393 |
-
|
394 |
-
// Disable all initially
|
395 |
-
var menuEnable = jQuery( '.menu-enable' );
|
396 |
-
|
397 |
-
menuEnable.find( 'input' ).not( ':checked' ).each( function() {
|
398 |
-
jQuery( this ).parent().parent().find( 'ul input' ).prop( 'disabled', true );
|
399 |
-
});
|
400 |
-
|
401 |
-
// Handle "Check All"
|
402 |
-
|
403 |
-
jQuery( '#menu-set-options' ).on( 'click', 'a.check-all', function( e ) {
|
404 |
-
jQuery( '.menu-item-list:visible' ).find( 'input' ).each( function() {
|
405 |
-
// Check all items that *aren't* checked already
|
406 |
-
if ( !jQuery( this ).is( ':checked' ) ) {
|
407 |
-
jQuery( this ).click();
|
408 |
-
}
|
409 |
-
});
|
410 |
-
e.preventDefault();
|
411 |
-
|
412 |
-
// Now handle "Check None"
|
413 |
-
}).on( 'click', 'a.check-none', function( e ) {
|
414 |
-
jQuery( '.menu-item-list:visible' ).find( 'input' ).each( function() {
|
415 |
-
// Check all items that *are* checked already
|
416 |
-
if ( jQuery( this ).is( ':checked' ) ) {
|
417 |
-
jQuery( this ).trigger( 'click' );
|
418 |
-
}
|
419 |
-
});
|
420 |
-
e.preventDefault();
|
421 |
-
|
422 |
-
// AJAX reset all menu items
|
423 |
-
}).on( 'click', 'a.reset-all', function( e ) {
|
424 |
-
if ( confirm( WPtouchCustom.reset_menus ) ) {
|
425 |
-
var ajaxParams = {};
|
426 |
-
|
427 |
-
wptouchAdminAjax( 'reset-page-icons-and-state', ajaxParams, function( result ) {
|
428 |
-
if ( result == 0 ) {
|
429 |
-
window.location.href = window.location.href;
|
430 |
-
}
|
431 |
-
})
|
432 |
-
}
|
433 |
-
|
434 |
-
e.preventDefault();
|
435 |
-
});
|
436 |
-
|
437 |
-
wptouchEvaluateDefaultIconsInMenu();
|
438 |
-
}
|
439 |
-
|
440 |
-
function wptouchHandleIconDragDrop() {
|
441 |
-
jQuery( '#pack-set-menu-area' ).find( '.pack ul li img' ).draggable( {
|
442 |
-
helper: 'clone',
|
443 |
-
appendTo: 'body',
|
444 |
-
revert: true,
|
445 |
-
revertDuration: 250,
|
446 |
-
});
|
447 |
-
|
448 |
-
jQuery( 'div.drop-target' ).find( 'img' ).droppable( {
|
449 |
-
drop: function( event, ui ) {
|
450 |
-
// Swap the image out on a successful drop
|
451 |
-
var imageSource = ui.draggable.attr('src');
|
452 |
-
var pageId = jQuery( this ).parent().attr( 'data-object-id' );
|
453 |
-
|
454 |
-
jQuery( '[data-object-id=' + pageId + ']' ).find( 'img' ).attr( 'src', imageSource ).removeClass( 'def-icon' );
|
455 |
-
|
456 |
-
var ajaxParams = {
|
457 |
-
image_file: imageSource,
|
458 |
-
page_id: pageId
|
459 |
-
};
|
460 |
-
|
461 |
-
wptouchAdminAjax( 'update-page-icon', ajaxParams, function( result ) {
|
462 |
-
if ( result == 0 ) {
|
463 |
-
// success
|
464 |
-
}
|
465 |
-
});
|
466 |
-
|
467 |
-
},
|
468 |
-
hoverClass: 'on-hover'
|
469 |
-
});
|
470 |
-
|
471 |
-
// Default menu Icon droppable area
|
472 |
-
jQuery( '#default-area' ).find( 'img' ).droppable( {
|
473 |
-
drop: function( event, ui ) {
|
474 |
-
|
475 |
-
// Swap the image out on a successful drop
|
476 |
-
var imageSource = ui.draggable.attr( 'src' );
|
477 |
-
|
478 |
-
// Update all icons that are set to the default icon
|
479 |
-
jQuery( '#default-area img' ).attr( 'src', imageSource );
|
480 |
-
|
481 |
-
// Update the actual default icon area
|
482 |
-
jQuery( 'img.def-icon' ).attr( 'src', imageSource );
|
483 |
-
|
484 |
-
var ajaxParams = {
|
485 |
-
image_file: imageSource
|
486 |
-
};
|
487 |
-
|
488 |
-
wptouchAdminAjax( 'set-default-icon', ajaxParams, function( result ) {
|
489 |
-
if ( result == 0 ) {
|
490 |
-
// success
|
491 |
-
}
|
492 |
-
});
|
493 |
-
},
|
494 |
-
hoverClass: 'on-hover'
|
495 |
-
});
|
496 |
-
|
497 |
-
// Makes sure draggable icon works properly even in the scrolling areas
|
498 |
-
jQuery( 'div.drop-target' ).find( 'img' ).draggable( {
|
499 |
-
helper: 'clone',
|
500 |
-
appendTo: 'body',
|
501 |
-
revert: 'invalid'
|
502 |
-
});
|
503 |
-
|
504 |
-
// Trashing icon droppable area
|
505 |
-
jQuery( '#trash-area' ).find( 'img' ).droppable( {
|
506 |
-
drop: function( event, ui ) {
|
507 |
-
// Swap the image out on a successful drop
|
508 |
-
var pageId = jQuery( ui.draggable ).parent().attr( 'data-object-id' );
|
509 |
-
|
510 |
-
var defaultIcon = jQuery( '#default-area img' ).attr( 'src' );
|
511 |
-
jQuery( '[data-object-id=' + pageId + ']' ).find( 'img' ).attr( 'src', defaultIcon ).addClass( 'def-icon' );
|
512 |
-
|
513 |
-
var ajaxParams = {
|
514 |
-
page_id: pageId
|
515 |
-
};
|
516 |
-
|
517 |
-
wptouchAdminAjax( 'reset-page-icon', ajaxParams, function( result ) {
|
518 |
-
if ( result == 0 ) {
|
519 |
-
// success
|
520 |
-
}
|
521 |
-
});
|
522 |
-
},
|
523 |
-
hoverClass: 'on-hover'
|
524 |
-
});
|
525 |
-
}
|
526 |
-
|
527 |
-
function WPtouchRefreshCustomIconArea() {
|
528 |
-
customIconEl = jQuery( '#section-uploaded-icons' );
|
529 |
-
|
530 |
-
jQuery( customIconEl ).css( 'opacity', '0.5' );
|
531 |
-
setTimeout( function() {
|
532 |
-
jQuery( customIconEl ).find( 'ul.custom-uploads-display' ).load( document.location.href + ' #section-uploaded-icons ul.custom-uploads-display li', function() {
|
533 |
-
jQuery( customIconEl ).css( 'opacity', '1.0' );
|
534 |
-
});
|
535 |
-
}, 500 );
|
536 |
-
}
|
537 |
-
|
538 |
-
function wptouchHandleCustomIconUpload() {
|
539 |
-
if ( jQuery( '.custom-icon-uploader' ).length ) {
|
540 |
-
// Can move this function after
|
541 |
-
var thisUploader = jQuery( '#custom_icon_uploader' );
|
542 |
-
var thisSpinner = jQuery( this ).find( '.spinner' );
|
543 |
-
|
544 |
-
var uploader = new AjaxUpload( '#custom_icon_upload_button', {
|
545 |
-
action: ajaxurl,
|
546 |
-
allowedExtensions: [ 'png' ],
|
547 |
-
debug: true,
|
548 |
-
data: {
|
549 |
-
action: 'upload_file',
|
550 |
-
file_type: 'custom_image',
|
551 |
-
wp_nonce: WPtouchCustom.admin_nonce
|
552 |
-
},
|
553 |
-
name: 'myfile',
|
554 |
-
onSubmit: function( fileName, extension ) {
|
555 |
-
thisSpinner.show();
|
556 |
-
},
|
557 |
-
onComplete: function( fileName, response ) {
|
558 |
-
thisSpinner.hide();
|
559 |
-
|
560 |
-
WPtouchRefreshCustomIconArea();
|
561 |
-
wptouchAdminUpdateMenuSetupPages();
|
562 |
-
},
|
563 |
-
onCancel: function( id, fileName ) {
|
564 |
-
thisSpinner.hide();
|
565 |
-
},
|
566 |
-
showMessage: function( message ) {
|
567 |
-
// Nothin'
|
568 |
-
}
|
569 |
-
});
|
570 |
-
}
|
571 |
-
|
572 |
-
// Handle delete custom Icon
|
573 |
-
if ( jQuery( 'ul.custom-uploads-display' ).length ) {
|
574 |
-
jQuery( '#section-uploaded-icons' ).on( 'click', 'ul.custom-uploads-display li', function( e ) {
|
575 |
-
var iconName = jQuery( this ).find( 'p.name' ).attr( 'data-name' );
|
576 |
-
var ajaxParams = {
|
577 |
-
icon_name: iconName
|
578 |
-
};
|
579 |
-
|
580 |
-
wptouchAdminAjax( 'delete-custom-icon', ajaxParams, function( result ) {
|
581 |
-
if ( result == 0 ) {
|
582 |
-
WPtouchRefreshCustomIconArea();
|
583 |
-
wptouchAdminUpdateMenuSetupPages();
|
584 |
-
}
|
585 |
-
});
|
586 |
-
|
587 |
-
e.preventDefault();
|
588 |
-
});
|
589 |
-
}
|
590 |
-
|
591 |
-
// Handle delete fade-in/fade-out
|
592 |
-
jQuery( 'ul.custom-uploads-display' ).on( 'mouseenter', 'li', function() {
|
593 |
-
jQuery( this ).find( 'a' ).fadeIn( 'fast' );
|
594 |
-
}).on( 'mouseleave', 'li', function() {
|
595 |
-
jQuery( this ).find( 'a' ).fadeOut( 'fast' );
|
596 |
-
});
|
597 |
-
}
|
598 |
-
|
599 |
-
function WPtouchUpdateNotificationArea( jsonData ) {
|
600 |
-
var result = jQuery.parseJSON( jsonData );
|
601 |
-
var notificationDiv = jQuery( '#ajax-notifications' );
|
602 |
-
var countDiv = jQuery( '.number' );
|
603 |
-
|
604 |
-
// Update HTML
|
605 |
-
notificationDiv.html( result.html );
|
606 |
-
wptouchRefreshScrollers();
|
607 |
-
|
608 |
-
// Update notification count
|
609 |
-
if ( result.count > 0 ) {
|
610 |
-
jQuery( countDiv ).html( result.count ).show();
|
611 |
-
|
612 |
-
jQuery( '.wptouch.update-plugins .update-count' ).html( result.count );
|
613 |
-
jQuery( '.wptouch.update-plugins' ).show();
|
614 |
-
} else {
|
615 |
-
jQuery( countDiv ).html( '0' );
|
616 |
-
}
|
617 |
-
}
|
618 |
-
|
619 |
-
function wptouchSetupNotifications() {
|
620 |
-
|
621 |
-
|
622 |
-
var notificationDiv = jQuery( '#ajax-notifications' );
|
623 |
-
if ( notificationDiv.length ) {
|
624 |
-
var ajaxParams = {};
|
625 |
-
|
626 |
-
// AJAX load the notification area on the TouchBoard and the dropdown
|
627 |
-
wptouchAdminAjax( 'load-notifications', ajaxParams, function( result ) {
|
628 |
-
WPtouchUpdateNotificationArea( result );
|
629 |
-
|
630 |
-
jQuery( '#ajax-notifications .nano' ).nanoScroller({
|
631 |
-
preventPageScrolling: true
|
632 |
-
});
|
633 |
-
|
634 |
-
// Handle notification dismissal
|
635 |
-
notificationDiv.on( 'click', '.dismiss', function() {
|
636 |
-
var toDismiss = jQuery( this ).attr( 'data-key' );
|
637 |
-
var dismissAjaxParams = {
|
638 |
-
notification_key: toDismiss
|
639 |
-
}
|
640 |
-
|
641 |
-
jQuery( this ).parent().animate( {
|
642 |
-
height: 'toggle',
|
643 |
-
opacity: 'toggle'
|
644 |
-
}, 280 );
|
645 |
-
|
646 |
-
setTimeout( function() {
|
647 |
-
wptouchAdminAjax( 'dismiss-notification', dismissAjaxParams, function( result ) {
|
648 |
-
WPtouchUpdateNotificationArea( result );
|
649 |
-
});
|
650 |
-
}, 300 );
|
651 |
-
});
|
652 |
-
|
653 |
-
// Notification scroller is hidden in the drop-down, so we have to fire a refresh when it's first shown
|
654 |
-
jQuery( '#notification-drop, a.menu-icons-menus' ).on( 'click', function(){
|
655 |
-
wptouchRefreshScrollers();
|
656 |
-
});
|
657 |
-
});
|
658 |
-
}
|
659 |
-
}
|
660 |
-
|
661 |
-
function wptouchHandlePluginCompat() {
|
662 |
-
var pluginCompatDiv = jQuery( '#plugin-compat-setting .content' );
|
663 |
-
if ( pluginCompatDiv.length ) {
|
664 |
-
var ajaxParams = {};
|
665 |
-
|
666 |
-
wptouchAdminAjax( 'load-plugin-compat-list', ajaxParams, function( result ) {
|
667 |
-
pluginCompatDiv.html( result );
|
668 |
-
setTimeout( function() {
|
669 |
-
jQuery( '#plugin-compat-setting.nano' ).nanoScroller({
|
670 |
-
preventPageScrolling: true
|
671 |
-
});
|
672 |
-
//jQuery( '#plugin-compat-setting' ).find( 'i.wptouch-tooltip' ).tooltip( { placement:'right' } );
|
673 |
-
},
|
674 |
-
0 );
|
675 |
-
});
|
676 |
-
}
|
677 |
-
}
|
678 |
-
|
679 |
-
// Function to add Checkbox element toggles
|
680 |
-
function wptouchCheckToggle( checkBox, toggleElements ) {
|
681 |
-
if ( jQuery( checkBox ).prop( 'checked' ) ) {
|
682 |
-
jQuery( toggleElements ).show();
|
683 |
-
} else {
|
684 |
-
jQuery( toggleElements ).hide();
|
685 |
-
}
|
686 |
-
jQuery( checkBox ).on( 'change', function() {
|
687 |
-
if ( jQuery( checkBox ).prop( 'checked' ) ) {
|
688 |
-
jQuery( toggleElements ).animate( {
|
689 |
-
height: 'toggle',
|
690 |
-
opacity: 'toggle'
|
691 |
-
}, 280 );
|
692 |
-
|
693 |
-
} else {
|
694 |
-
jQuery( toggleElements ).animate( {
|
695 |
-
height: 'toggle',
|
696 |
-
opacity: 'toggle'
|
697 |
-
}, 280 );
|
698 |
-
}
|
699 |
-
});
|
700 |
-
}
|
701 |
-
|
702 |
-
// Function that holds radio toggle settings
|
703 |
-
function wptouchSetupRadios() {
|
704 |
-
|
705 |
-
// Foundation: Advertising Options
|
706 |
-
jQuery( '#section-service' ).find( 'input' ).on( 'change', function() {
|
707 |
-
|
708 |
-
var presentationDiv = jQuery( '#section-ad-presentation' );
|
709 |
-
var googleDiv = jQuery( '#section-google-adsense' );
|
710 |
-
var customDiv = jQuery( '#section-custom-ads' );
|
711 |
-
var optionsDev = jQuery( '#section-active-pages' );
|
712 |
-
|
713 |
-
switch( jQuery( '#section-service input:checked' ).val() ) {
|
714 |
-
case 'none':
|
715 |
-
presentationDiv.hide();
|
716 |
-
googleDiv.hide();
|
717 |
-
customDiv.hide();
|
718 |
-
optionsDev.hide();
|
719 |
-
break;
|
720 |
-
case 'google':
|
721 |
-
presentationDiv.show();
|
722 |
-
googleDiv.show();
|
723 |
-
optionsDev.show();
|
724 |
-
customDiv.hide();
|
725 |
-
break;
|
726 |
-
case 'custom':
|
727 |
-
presentationDiv.show();
|
728 |
-
optionsDev.show();
|
729 |
-
googleDiv.hide();
|
730 |
-
customDiv.show();
|
731 |
-
break;
|
732 |
-
}
|
733 |
-
} ).trigger( 'change' );
|
734 |
-
|
735 |
-
// Core Settings: Filter URLs
|
736 |
-
jQuery( '#setting-url_filter_behaviour' ).find( 'input' ).on( 'change', function() {
|
737 |
-
switch( jQuery( '#setting-url_filter_behaviour input:checked' ).val() ) {
|
738 |
-
case 'disabled':
|
739 |
-
jQuery( '#setting-filtered_urls' ).hide();
|
740 |
-
break;
|
741 |
-
default:
|
742 |
-
jQuery( '#setting-filtered_urls' ).show();
|
743 |
-
break;
|
744 |
-
}
|
745 |
-
} ).trigger( 'change' );
|
746 |
-
|
747 |
-
// Core Settings: WPtouch Homepage
|
748 |
-
jQuery( '#setting-homepage_landing' ).find( 'input' ).on( 'change', function() {
|
749 |
-
|
750 |
-
var redirectTargetDiv = jQuery( '#setting-homepage_redirect_wp_target' );
|
751 |
-
var customTargetDiv = jQuery( '#setting-homepage_redirect_custom_target' );
|
752 |
-
|
753 |
-
switch( jQuery( '#setting-homepage_landing input:checked' ).val() ) {
|
754 |
-
case 'none':
|
755 |
-
redirectTargetDiv.hide();
|
756 |
-
customTargetDiv.hide();
|
757 |
-
break;
|
758 |
-
case 'select':
|
759 |
-
redirectTargetDiv.show();
|
760 |
-
customTargetDiv.hide();
|
761 |
-
break;
|
762 |
-
case 'custom':
|
763 |
-
customTargetDiv.show();
|
764 |
-
redirectTargetDiv.hide();
|
765 |
-
break;
|
766 |
-
}
|
767 |
-
} ).trigger( 'change' );
|
768 |
-
}
|
769 |
-
|
770 |
-
// A little extra gravy to make sure the Overview News is the correct height
|
771 |
-
function wptouchRefreshOverviewHeight(){
|
772 |
-
if ( jQuery( '#touchboard-news' ).length ) {
|
773 |
-
if ( jQuery( '.wptouch-free' ).length ) {
|
774 |
-
var leftHeight = ( jQuery( '#touchboard-left' ).height() - 240 );
|
775 |
-
} else {
|
776 |
-
var leftHeight = ( jQuery( '#touchboard-left' ).height() - 190 );
|
777 |
-
}
|
778 |
-
jQuery( '#touchboard-news' ).height( leftHeight );
|
779 |
-
}
|
780 |
-
}
|
781 |
-
|
782 |
-
function wptouchAdminResize(){
|
783 |
-
jQuery( window ).resize( function() {
|
784 |
-
wptouchRefreshOverviewHeight();
|
785 |
-
wptouchRefreshScrollers();
|
786 |
-
}).resize();
|
787 |
-
}
|
788 |
-
|
789 |
-
// Call this if you need to have a nano scroller recalculate its height
|
790 |
-
function wptouchRefreshScrollers(){
|
791 |
-
setTimeout( function(){
|
792 |
-
jQuery( '.nano' ).nanoScroller();
|
793 |
-
}, 0 );
|
794 |
-
}
|
795 |
-
|
796 |
-
function toggle_remove_shortcodes( myTarget ) {
|
797 |
-
if ( jQuery( '#enable_shortcode_compatibility' ).attr( 'checked' ) && jQuery( '#setting-shortcode_compatibility_method input:checked' ).val() == 'remove_shortcodes' ) {
|
798 |
-
jQuery( '#setting-remove_shortcodes' ).show();
|
799 |
-
} else {
|
800 |
-
jQuery( '#setting-remove_shortcodes' ).hide();
|
801 |
-
}
|
802 |
-
}
|
803 |
-
|
804 |
-
function wptouchSetupAdminToggles() {
|
805 |
-
// Enable iOS Web-App Mode
|
806 |
-
wptouchCheckToggle( '#webapp_mode_enabled', '#section-admin_menu_homescreen_icons_options, #setting-webapp_enable_persistence, #section-notice-message, #section-iphone-startup-screen, #section-retina-iphone-startup-screen, #section-iphone-5-startup-screen, #section-iphone-6-startup-screen, #section-iphone-6plus-startup-screen, #section-ipad-mini-and-ipad-startup-screens, #setting-webapp_ignore_urls, #setting-webapp_external_message, #section-retina-ipad-startup-screens' );
|
807 |
-
// Show a notice message for iPhone, iPod touch & iPad visitors about Web-App Mode
|
808 |
-
wptouchCheckToggle( '#webapp_show_notice', '#setting-webapp_notice_message, #setting-webapp_notice_expiry_days' );
|
809 |
-
// Include functions.php from Desktop theme method
|
810 |
-
wptouchCheckToggle( '#include_functions_from_desktop_theme', '#setting-functions_php_loading_method' );
|
811 |
-
// Filter URLS
|
812 |
-
//wptouchCheckToggle( '#enable_url_filter', '#setting-url_filter_behaviour, #setting-filtered_urls' );
|
813 |
-
// Cache menu settings (advanced)
|
814 |
-
wptouchCheckToggle( '#show_share', '#setting-share_location, #setting-share_colour_scheme' );
|
815 |
-
wptouchCheckToggle( '#automatically_backup_settings', '#setting-backup' );
|
816 |
-
|
817 |
-
wptouchCheckToggle( '#enable_shortcode_compatibility', '#setting-shortcode_compatibility_method' );
|
818 |
-
|
819 |
-
var shortcode_method = jQuery( '#setting-shortcode_compatibility_method' );
|
820 |
-
jQuery( 'input', shortcode_method ).on( 'change', function() { toggle_remove_shortcodes(); } );
|
821 |
-
jQuery( '#enable_shortcode_compatibility' ).on( 'change', function() { toggle_remove_shortcodes(); } );
|
822 |
-
jQuery( 'input[checked]', shortcode_method ).trigger( 'change' );
|
823 |
-
}
|
824 |
-
|
825 |
-
|
826 |
-
function wptouchHandleDownloadSettings() {
|
827 |
-
var downloadSettingsButton = jQuery( 'button#backup' );
|
828 |
-
if ( downloadSettingsButton.length ) {
|
829 |
-
downloadSettingsButton.click( function( e ) {
|
830 |
-
var ajaxParams = {};
|
831 |
-
|
832 |
-
wptouchAdminAjax( 'prep-settings-download', ajaxParams, function( result ) {
|
833 |
-
if ( result ) {
|
834 |
-
var newUrl = WPtouchCustom.plugin_url + '&action=wptouch-download-settings&backup_file=' + result + '&nonce=' + WPtouchCustom.admin_nonce + '&redirect=' + WPtouchCustom.plugin_url;
|
835 |
-
|
836 |
-
document.location.href = newUrl;
|
837 |
-
}
|
838 |
-
});
|
839 |
-
|
840 |
-
e.preventDefault();
|
841 |
-
});
|
842 |
-
|
843 |
-
var uploader = new AjaxUpload( '#restore', {
|
844 |
-
action: ajaxurl,
|
845 |
-
allowedExtensions: [ 'txt' ],
|
846 |
-
debug: true,
|
847 |
-
data: {
|
848 |
-
action: 'upload_file',
|
849 |
-
file_type: 'settings_backup',
|
850 |
-
wp_nonce: WPtouchCustom.admin_nonce
|
851 |
-
},
|
852 |
-
name: 'myfile',
|
853 |
-
onComplete: function( fileName, response ) {
|
854 |
-
// Reload the page
|
855 |
-
document.location.href = document.location.href;
|
856 |
-
},
|
857 |
-
showMessage: function( message ) {}
|
858 |
-
});
|
859 |
-
|
860 |
-
// Intercept enter key, which strangely causes the first button in the DOM to be pressed
|
861 |
-
// in our case this results in a backup file download
|
862 |
-
jQuery( 'form input' ).keypress( function ( e ) {
|
863 |
-
if ( ( e.which && e.which == 13 ) || ( e.keyCode && e.keyCode == 13 ) ) {
|
864 |
-
jQuery( '.button-primary' ).click();
|
865 |
-
return false;
|
866 |
-
} else {
|
867 |
-
return true;
|
868 |
-
}
|
869 |
-
});
|
870 |
-
}
|
871 |
-
}
|
872 |
-
|
873 |
-
var wptouchPreviewWindow;
|
874 |
-
|
875 |
-
// The Preview Pop-Up Window
|
876 |
-
function wptouchPreviewWindow(){
|
877 |
-
|
878 |
-
var previewEl = jQuery( '.preview-button' );
|
879 |
-
|
880 |
-
if ( wptouchIsWebKit() ) {
|
881 |
-
previewEl.on( 'click', function( e ) {
|
882 |
-
var width = '375', height = '667';
|
883 |
-
topPosition = ( screen.height ) ? ( screen.height - height ) / 2:0;
|
884 |
-
leftPosition = ( screen.width ) ? ( screen.width - width ) / 2:0;
|
885 |
-
options = 'scrollbars=no, titlebar=no, status=no, menubar=no';
|
886 |
-
previewUrl = jQuery( this ).attr( 'data-url' );
|
887 |
-
window.open( previewUrl, 'preview', 'width=375, height=667,' + options + ', top=' + topPosition + ',left=' + leftPosition + '' );
|
888 |
-
wptouchPreviewWindow = window.open( '', 'preview', '' );
|
889 |
-
jQuery.cookie( 'wptouch-preview-window', 'open' );
|
890 |
-
e.preventDefault();
|
891 |
-
});
|
892 |
-
} else {
|
893 |
-
previewEl.on( 'click', function( e ) {
|
894 |
-
e.preventDefault();
|
895 |
-
})
|
896 |
-
.addClass( 'disabled' )
|
897 |
-
.attr( 'rel', 'popover' )
|
898 |
-
.attr( 'data-trigger', 'hover' )
|
899 |
-
.attr( 'data-title', WPtouchCustom.text_preview_title )
|
900 |
-
.attr( 'data-content', WPtouchCustom.text_preview_content )
|
901 |
-
.popover( { placement:'right' } );
|
902 |
-
}
|
903 |
-
}
|
904 |
-
|
905 |
-
function wptouchHandlePreviewWindow(){
|
906 |
-
if ( wptouchPreviewWindow.closed ) {
|
907 |
-
jQuery.cookie( 'wptouch-preview-window', null );
|
908 |
-
}
|
909 |
-
}
|
910 |
-
|
911 |
-
function rgb2hex( rgb ){
|
912 |
-
rgb = rgb.match( /^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/ );
|
913 |
-
return "#" +
|
914 |
-
( '0' + parseInt( rgb[1],10 ).toString( 16 ) ).slice( -2 ) +
|
915 |
-
( '0' + parseInt( rgb[2],10 ).toString( 16 ) ).slice( -2 ) +
|
916 |
-
( '0' + parseInt( rgb[3],10 ).toString( 16 ) ).slice( -2 );
|
917 |
-
}
|
918 |
-
|
919 |
-
function wptouchSetupColorPicker() {
|
920 |
-
if ( jQuery( '.colorpicker' ).length ) {
|
921 |
-
jQuery( '.colorpicker' ).each( function() {
|
922 |
-
var targetName = jQuery( this ).attr( 'data-target' );
|
923 |
-
jQuery( this ).farbtastic( '#' + targetName );
|
924 |
-
});
|
925 |
-
}
|
926 |
-
|
927 |
-
jQuery( '.fdn-colors' ).find( '.dropdown, .wpbody-content, .wpbody' ).off();
|
928 |
-
jQuery( '.fdn-colors' ).find( '.dropdown' ).each( function() {
|
929 |
-
var thisSection = jQuery( this );
|
930 |
-
jQuery( this ).find( 'a.tabbed' ).click( function( e ) {
|
931 |
-
thisSection.find( 'ul ul' ).hide();
|
932 |
-
|
933 |
-
var targetSection = jQuery( this ).attr( 'rel' );
|
934 |
-
thisSection.find( '.' + targetSection ).show();
|
935 |
-
thisSection.find( 'a.tabbed' ).removeClass( 'active' );
|
936 |
-
jQuery( this ).addClass( 'active' );
|
937 |
-
e.preventDefault();
|
938 |
-
});
|
939 |
-
|
940 |
-
jQuery( this ).find( 'a.tabbed' ).first().click();
|
941 |
-
|
942 |
-
var targetName = thisSection.find( '.colorpicker' ).attr( 'data-target' );
|
943 |
-
var myObject = jQuery.farbtastic( '#color-' + targetName );
|
944 |
-
|
945 |
-
jQuery( '.desktop-colors-ul li' ).each( function() {
|
946 |
-
var keepColor = jQuery( this ).attr( 'data-background' );
|
947 |
-
jQuery( this ).attr( 'style', '' ).css( 'background-color', keepColor );
|
948 |
-
});
|
949 |
-
|
950 |
-
jQuery( '.desktop-colors-ul', this ).on( 'click', 'li', function() {
|
951 |
-
var thisColor = jQuery( this ).css( 'background-color' );
|
952 |
-
var colorToSet = rgb2hex( thisColor );
|
953 |
-
thisSection.find( '.dropdown-toggle' ).find( 'span' ).css( 'background-color', colorToSet );
|
954 |
-
|
955 |
-
myObject.setColor( colorToSet );
|
956 |
-
});
|
957 |
-
|
958 |
-
thisSection.find( 'a.reset-color' ).click( function( e ) {
|
959 |
-
var colorToSet = jQuery( this ).attr( 'data-original-color' );
|
960 |
-
|
961 |
-
myObject.setColor( colorToSet );
|
962 |
-
e.preventDefault();
|
963 |
-
});
|
964 |
-
});
|
965 |
-
|
966 |
-
setInterval(
|
967 |
-
function() {
|
968 |
-
jQuery( '.selected-color' ).each( function() {
|
969 |
-
var selectedColor = jQuery( this ).attr( 'value' );
|
970 |
-
var colorShower = jQuery( this ).parent().parent().parent().parent().find( '.dropdown-toggle' ).find( 'span' );
|
971 |
-
colorShower.css( 'background-color', selectedColor );
|
972 |
-
});
|
973 |
-
},
|
974 |
-
750
|
975 |
-
);
|
976 |
-
}
|
977 |
-
|
978 |
-
function wptouchLoadTouchBoardArea() {
|
979 |
-
var touchboard = jQuery( '#touchboard-left' );
|
980 |
-
if ( touchboard.length ) {
|
981 |
-
if ( !navigator.onLine ) {
|
982 |
-
jQuery( '#touchboard-left h3 span' ).find( 'strong:last').replaceWith( '<strong class="orange">' + WPtouchCustom.cloud_offline + '</strong>' );
|
983 |
-
} else {
|
984 |
-
var ajaxParams = {};
|
985 |
-
wptouchAdminAjax( 'load-touchboard-area', ajaxParams, function( result ) {
|
986 |
-
touchboard.html( result );
|
987 |
-
setTimeout( function(){ wptouchAdminResize(); }, 220 );
|
988 |
-
});
|
989 |
-
}
|
990 |
-
}
|
991 |
-
}
|
992 |
-
|
993 |
-
function wptouchLoadUpgradeArea() {
|
994 |
-
jQuery( 'button#upgrade-to-pro' ).on( 'click', function(){
|
995 |
-
window.location = jQuery( this ).attr( 'data-target' );
|
996 |
-
});
|
997 |
-
|
998 |
-
var upgrade = jQuery( '#upgrade-area' );
|
999 |
-
if ( upgrade.length ) {
|
1000 |
-
var ajaxParams = {};
|
1001 |
-
wptouchAdminAjax( 'load-upgrade-area', ajaxParams, function( result ) {
|
1002 |
-
upgrade.html( result );
|
1003 |
-
setTimeout( function(){ wptouchAdminResize(); }, 220 );
|
1004 |
-
});
|
1005 |
-
}
|
1006 |
-
}
|
1007 |
-
|
1008 |
-
function wptouchAdminUpdateMenuSetupPages() {
|
1009 |
-
// Need to update Page Setup area
|
1010 |
-
jQuery( '#menu-icons-menus > .wptouch-section' ).load(
|
1011 |
-
document.location.href + ' #menu-icons-menus #pack-set-menu-area, #menu-icons-menus #default-trash-area',
|
1012 |
-
function() {
|
1013 |
-
wptouchHandleMenuArea();
|
1014 |
-
wptouchHandleIconDragDrop();
|
1015 |
-
}
|
1016 |
-
);
|
1017 |
-
}
|
1018 |
-
|
1019 |
-
function wptouchHandleDownloadIconSets() {
|
1020 |
-
var iconSetArea = jQuery( '#manage-icon-sets' );
|
1021 |
-
if ( iconSetArea.length ) {
|
1022 |
-
var ajaxParams = {};
|
1023 |
-
wptouchAdminAjax( 'get-icon-set-info', ajaxParams, function( result ) {
|
1024 |
-
iconSetArea.html( result );
|
1025 |
-
|
1026 |
-
jQuery( 'ul.manage-sets' ).on( 'click', 'button', function( e ) {
|
1027 |
-
var pressedButton = jQuery( this );
|
1028 |
-
var installURL = jQuery( this ).attr( 'data-install-url' );
|
1029 |
-
var basePath = jQuery( this ).attr( 'data-base-path' );
|
1030 |
-
var loadingText = jQuery( this ).attr( 'data-loading-text' );
|
1031 |
-
|
1032 |
-
var ajaxParams = {
|
1033 |
-
url: installURL,
|
1034 |
-
base: basePath
|
1035 |
-
};
|
1036 |
-
|
1037 |
-
pressedButton.html( loadingText ).addClass( 'disabled' );
|
1038 |
-
|
1039 |
-
wptouchAdminAjax( 'download-icon-set', ajaxParams, function( result ) {
|
1040 |
-
if ( result == '1' ) {
|
1041 |
-
// Succeeded
|
1042 |
-
pressedButton.parent().find( '.installed' ).show();
|
1043 |
-
pressedButton.hide();
|
1044 |
-
|
1045 |
-
wptouchAdminUpdateMenuSetupPages();
|
1046 |
-
} else {
|
1047 |
-
// Failed
|
1048 |
-
pressedButton.parent().find( '.error' ).show();
|
1049 |
-
pressedButton.hide();
|
1050 |
-
}
|
1051 |
-
});
|
1052 |
-
|
1053 |
-
e.preventDefault();
|
1054 |
-
});
|
1055 |
-
});
|
1056 |
-
}
|
1057 |
-
}
|
1058 |
-
|
1059 |
-
function wptouchSetupNews() {
|
1060 |
-
var newsDiv = jQuery( '#ajax-news' );
|
1061 |
-
if ( newsDiv.length ) {
|
1062 |
-
var ajaxParams = {};
|
1063 |
-
|
1064 |
-
// AJAX load the notification area on the TouchBoard and the dropdown
|
1065 |
-
wptouchAdminAjax( 'load-news', ajaxParams, function( result ) {
|
1066 |
-
// WPtouchUpdateNotificationArea( result );
|
1067 |
-
newsDiv.html( result );
|
1068 |
-
|
1069 |
-
newsDiv.find( '.nano' ).nanoScroller({
|
1070 |
-
preventPageScrolling: true
|
1071 |
-
});
|
1072 |
-
});
|
1073 |
-
}
|
1074 |
-
}
|
1075 |
-
|
1076 |
-
function wptouchHandleResetSettings() {
|
1077 |
-
jQuery( '#reset' ).click( function( e ) {
|
1078 |
-
if ( !confirm( WPtouchCustom.reset_settings ) ) {
|
1079 |
-
e.preventDefault();
|
1080 |
-
}
|
1081 |
-
});
|
1082 |
-
}
|
1083 |
-
|
1084 |
-
function wptouchLoadChangeLog() {
|
1085 |
-
var ajaxParams = {};
|
1086 |
-
|
1087 |
-
wptouchAdminAjax( 'admin-change-log', ajaxParams, function( result ) {
|
1088 |
-
jQuery( '#change-log' ).html( result );
|
1089 |
-
});
|
1090 |
-
}
|
1091 |
-
|
1092 |
-
function wptouchLoadThemes() {
|
1093 |
-
var themesDiv = jQuery( '#wptouch-theme-browser-load-ajax' );
|
1094 |
-
if ( themesDiv.length ) {
|
1095 |
-
var ajaxParams = {};
|
1096 |
-
|
1097 |
-
wptouchAdminAjax( 'load-theme-browser', ajaxParams, function( result ) {
|
1098 |
-
|
1099 |
-
// No internet connection
|
1100 |
-
if ( !navigator.onLine ) {
|
1101 |
-
themesDiv.find( '.load' ).replaceWith( '<div class="not-available">' + WPtouchCustom.cloud_offline_message + '</div>' );
|
1102 |
-
// looks like we're online
|
1103 |
-
} else {
|
1104 |
-
themesDiv.find( '.load' ).parent().replaceWith( result );
|
1105 |
-
|
1106 |
-
wptouchPreviewWindow();
|
1107 |
-
wptouchHandleThemePreview();
|
1108 |
-
|
1109 |
-
jQuery( '#setup-themes-browser' ).on( 'click', 'a.download, a.upgrade', function( e ) {
|
1110 |
-
var pressedButton = jQuery( this );
|
1111 |
-
var installURL = jQuery( this ).attr( 'data-url' );
|
1112 |
-
var basePath = jQuery( this ).attr( 'data-name' );
|
1113 |
-
|
1114 |
-
var loadingText = jQuery( this ).attr( 'data-loading-text' );
|
1115 |
-
|
1116 |
-
var ajaxParams = {
|
1117 |
-
url: installURL,
|
1118 |
-
base: basePath
|
1119 |
-
};
|
1120 |
-
|
1121 |
-
pressedButton.html( loadingText ).addClass( 'disabled' );
|
1122 |
-
|
1123 |
-
wptouchAdminAjax( 'download-theme', ajaxParams, function( result ) {
|
1124 |
-
ourResult = jQuery.parseJSON( result );
|
1125 |
-
if ( ourResult.status == '1' ) {
|
1126 |
-
// Succeeded
|
1127 |
-
location.reload( true );
|
1128 |
-
} else {
|
1129 |
-
var str = WPtouchCustom.cloud_download_fail;
|
1130 |
-
alert( str.replace( '%reason%', ourResult.error ) );
|
1131 |
-
}
|
1132 |
-
});
|
1133 |
-
|
1134 |
-
e.preventDefault();
|
1135 |
-
});
|
1136 |
-
}
|
1137 |
-
});
|
1138 |
-
}
|
1139 |
-
}
|
1140 |
-
|
1141 |
-
function wptouchLoadAddons() {
|
1142 |
-
var addonDiv = jQuery( '#wptouch-addon-browser-load-ajax' );
|
1143 |
-
if ( addonDiv.length ) {
|
1144 |
-
var ajaxParams = {};
|
1145 |
-
|
1146 |
-
wptouchAdminAjax( 'load-addon-browser', ajaxParams, function( result ) {
|
1147 |
-
|
1148 |
-
// No internet connection
|
1149 |
-
if ( !navigator.onLine ) {
|
1150 |
-
addonDiv.find( '.load' ).replaceWith( '<div class="not-available">' + WPtouchCustom.cloud_offline_message + '</div>' );
|
1151 |
-
} else {
|
1152 |
-
// looks like we're online
|
1153 |
-
addonDiv.find( '.load' ).parent().replaceWith( result );
|
1154 |
-
|
1155 |
-
jQuery( '#setup-addons-browser' ).on( 'click', 'a.download, a.upgrade', function( e ) {
|
1156 |
-
var pressedButton = jQuery( this );
|
1157 |
-
var installURL = jQuery( this ).attr( 'data-url' );
|
1158 |
-
var basePath = jQuery( this ).attr( 'data-name' );
|
1159 |
-
|
1160 |
-
var loadingText = jQuery( this ).attr( 'data-loading-text' );
|
1161 |
-
|
1162 |
-
var ajaxParams = {
|
1163 |
-
url: installURL,
|
1164 |
-
base: basePath
|
1165 |
-
};
|
1166 |
-
|
1167 |
-
var oldText = pressedButton.html();
|
1168 |
-
pressedButton.html( loadingText ).addClass( 'disabled' );
|
1169 |
-
|
1170 |
-
wptouchAdminAjax( 'download-addon', ajaxParams, function( result ) {
|
1171 |
-
ourResult = jQuery.parseJSON( result );
|
1172 |
-
if ( ourResult.status == '1' ) {
|
1173 |
-
// Succeeded
|
1174 |
-
location.reload( true );
|
1175 |
-
} else {
|
1176 |
-
var str = WPtouchCustom.cloud_download_fail;
|
1177 |
-
alert( str.replace( '%reason%', ourResult.error ) );
|
1178 |
-
|
1179 |
-
pressedButton.html( loadingText ).removeClass( 'disabled' ).html( oldText );
|
1180 |
-
}
|
1181 |
-
});
|
1182 |
-
|
1183 |
-
e.preventDefault();
|
1184 |
-
});
|
1185 |
-
}
|
1186 |
-
|
1187 |
-
});
|
1188 |
-
}
|
1189 |
-
}
|
1190 |
-
|
1191 |
-
function wptouchHandleThemePreview() {
|
1192 |
-
function triggerPreview( targetImage ) {
|
1193 |
-
jQuery( '#' + targetImage.attr( 'id' ) + '-preview' ).trigger( 'click' );
|
1194 |
-
}
|
1195 |
-
|
1196 |
-
if ( wptouchIsWebKit() ) {
|
1197 |
-
jQuery( '#setup-themes-browser .view' ).addClass( 'webkit' ).text( WPtouchCustom.open_theme_demo );
|
1198 |
-
jQuery( '#setup-themes-browser' ).find( '.image-wrapper' ).on( 'click', 'img' , function( e ) {
|
1199 |
-
e.preventDefault();
|
1200 |
-
e.stopImmediatePropagation();
|
1201 |
-
triggerPreview( jQuery( this ) );
|
1202 |
-
});
|
1203 |
-
|
1204 |
-
jQuery( '#setup-themes-browser' ).find( '.image-wrapper' ).on( 'click', '.view' , function( e ) {
|
1205 |
-
e.preventDefault();
|
1206 |
-
e.stopImmediatePropagation();
|
1207 |
-
triggerPreview( jQuery( this ).siblings( 'img' ).first() );
|
1208 |
-
});
|
1209 |
-
|
1210 |
-
}
|
1211 |
-
}
|
1212 |
-
|
1213 |
-
function wptouchShowProItems() {
|
1214 |
-
jQuery( '.wptouch-free #foundation-page-webapp' ).find( 'div, li' ).show();
|
1215 |
-
jQuery( '.wptouch-free #foundation-page-webapp div.progress' ).hide();
|
1216 |
-
jQuery( '.wptouch-free #foundation-page-advertising' ).find( 'div, li' ).show();
|
1217 |
-
jQuery( '.wptouch-free .pro-setting input, .wptouch-free .pro-setting select, .wptouch-free .pro-setting button, .wptouch-free .pro-setting textarea' ).prop( 'disabled', 'disabled' );
|
1218 |
-
}
|
1219 |
-
|
1220 |
-
function wptouchSetupUpgradePage() {
|
1221 |
-
wrapper_height = jQuery( window ).height();
|
1222 |
-
jQuery( 'iframe#upgrade-license-area' ).height( wrapper_height - 150);
|
1223 |
-
}
|
1224 |
-
|
1225 |
-
jQuery( window ).resize( function() {
|
1226 |
-
wptouchSetupUpgradePage();
|
1227 |
-
});
|
1228 |
-
|
1229 |
-
function wptouchAdminReady() {
|
1230 |
-
|
1231 |
-
wptouchSetupAdminMenu();
|
1232 |
-
wptouchTooltipSetup();
|
1233 |
-
wptouchHandleLicensePanel();
|
1234 |
-
wptouchHandleMenuArea();
|
1235 |
-
wptouchHandleIconDragDrop();
|
1236 |
-
|
1237 |
-
wptouchSetupHomescreenUploaders();
|
1238 |
-
wptouchHandleCustomIconUpload();
|
1239 |
-
wptouchSetupNotifications();
|
1240 |
-
wptouchHandlePluginCompat();
|
1241 |
-
wptouchSetupAdminToggles();
|
1242 |
-
|
1243 |
-
wptouchSetupRadios();
|
1244 |
-
wptouchHandleDownloadSettings();
|
1245 |
-
wptouchSetupColorPicker();
|
1246 |
-
wptouchPreviewWindow();
|
1247 |
-
wptouchHandlePreviewWindow();
|
1248 |
-
|
1249 |
-
wptouchLoadTouchBoardArea();
|
1250 |
-
wptouchLoadUpgradeArea();
|
1251 |
-
wptouchHandleDownloadIconSets();
|
1252 |
-
wptouchSetupNews();
|
1253 |
-
wptouchLoadChangeLog();
|
1254 |
-
wptouchHandleResetSettings();
|
1255 |
-
|
1256 |
-
wptouchLoadThemes();
|
1257 |
-
wptouchLoadAddons();
|
1258 |
-
|
1259 |
-
wptouchHandleThemePreview();
|
1260 |
-
|
1261 |
-
wptouchShowProItems();
|
1262 |
-
|
1263 |
-
wptouchSetupUpgradePage()
|
1264 |
-
}
|
1265 |
-
|
1266 |
-
jQuery( document ).ready( function() {
|
1267 |
-
wptouchAdminReady();
|
1268 |
-
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/js/wptouch-admin-4.js
ADDED
@@ -0,0 +1,922 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/* WPtouch 4 Main Admin js */
|
2 |
+
|
3 |
+
// Admin tabs handler
|
4 |
+
function wptouchSetupAdminMenu(){
|
5 |
+
var adminMenuArea = jQuery( '#wptouch-admin-menu' );
|
6 |
+
if ( adminMenuArea.length ) {
|
7 |
+
adminMenuArea.on( 'click', 'a', function( e ) {
|
8 |
+
var targetSlug = jQuery( this ).attr( 'data-page-slug' );
|
9 |
+
|
10 |
+
jQuery( '.wptouch-settings-sub-page:not(#' + targetSlug + ')' ).hide();
|
11 |
+
jQuery( '#' + targetSlug ).show();
|
12 |
+
|
13 |
+
adminMenuArea.find( 'a' ).removeClass( 'active' );
|
14 |
+
jQuery( this ).addClass( 'active' );
|
15 |
+
|
16 |
+
jQuery.cookie( 'wptouch-4-admin-menu', targetSlug );
|
17 |
+
e.preventDefault();
|
18 |
+
});
|
19 |
+
|
20 |
+
// Check to see if the menu cookie has been set previously
|
21 |
+
var previousCookie = jQuery.cookie( 'wptouch-4-admin-menu' );
|
22 |
+
var menuHandled = 0;
|
23 |
+
if ( previousCookie ) {
|
24 |
+
if ( jQuery( '#wptouch-admin-menu a.' + previousCookie ).length ) {
|
25 |
+
menuHandled = 1;
|
26 |
+
}
|
27 |
+
}
|
28 |
+
// If not then click the first element
|
29 |
+
if ( !menuHandled ) {
|
30 |
+
adminMenuArea.find( 'a:first' ).click();
|
31 |
+
}
|
32 |
+
}
|
33 |
+
|
34 |
+
}
|
35 |
+
|
36 |
+
function wptouchTooltipSetup() {
|
37 |
+
jQuery( 'i.wptouch-tooltip' ).tooltip( { placement:'top' } );
|
38 |
+
}
|
39 |
+
|
40 |
+
function wptouchSetupSelects(){
|
41 |
+
jQuery( '#wptouch-settings-area select' ).select2({
|
42 |
+
minimumResultsForSearch: '20'
|
43 |
+
});
|
44 |
+
}
|
45 |
+
|
46 |
+
function wptouchDownloadUploadSettings(){
|
47 |
+
// Download settings button
|
48 |
+
var backupButton = jQuery( '#backup-button' );
|
49 |
+
if ( backupButton.length ) {
|
50 |
+
backupButton.on( 'click', function( e ) {
|
51 |
+
var ajaxParams = {};
|
52 |
+
wptouchAdminAjax( 'prep-settings-download', ajaxParams, function( result ) {
|
53 |
+
if ( result ) {
|
54 |
+
var newUrl = WPtouchCustom.plugin_url + '&action=wptouch-download-settings&backup_file=' + result + '&nonce=' + WPtouchCustom.admin_nonce + '&redirect=' + WPtouchCustom.plugin_url;
|
55 |
+
|
56 |
+
document.location.href = newUrl;
|
57 |
+
}
|
58 |
+
});
|
59 |
+
|
60 |
+
e.preventDefault();
|
61 |
+
});
|
62 |
+
|
63 |
+
// Upload settings button
|
64 |
+
var backupUploader = new AjaxUpload( '#restore-button', {
|
65 |
+
action: ajaxurl,
|
66 |
+
allowedExtensions: [ 'txt' ],
|
67 |
+
debug: false,
|
68 |
+
data: {
|
69 |
+
action: 'upload_file',
|
70 |
+
file_type: 'settings_backup',
|
71 |
+
wp_nonce: WPtouchCustom.admin_nonce
|
72 |
+
},
|
73 |
+
name: 'myfile',
|
74 |
+
onComplete: function( fileName, response ) {
|
75 |
+
// Reload the page
|
76 |
+
wptouchAdminTriggerReload();
|
77 |
+
}
|
78 |
+
});
|
79 |
+
}
|
80 |
+
}
|
81 |
+
|
82 |
+
function WPtouchRefreshCustomIconArea() {
|
83 |
+
jQuery( 'ul.custom-uploads-display', '#setting-custom_icon_management' ).load( document.location.href + ' #setting-custom_icon_management li' );
|
84 |
+
}
|
85 |
+
|
86 |
+
function wptouchHandleCustomIconUpload() {
|
87 |
+
if ( jQuery( '.custom-icon-uploader' ).length ) {
|
88 |
+
var thisUploader = jQuery( '#custom_icon_uploader' );
|
89 |
+
var thisSpinner = thisUploader.find( '.spinner' );
|
90 |
+
|
91 |
+
var iconUploader = new AjaxUpload( '#custom_icon_upload_button', {
|
92 |
+
action: ajaxurl,
|
93 |
+
allowedExtensions: [ 'png', 'jpg' ],
|
94 |
+
debug: false,
|
95 |
+
data: {
|
96 |
+
action: 'upload_file',
|
97 |
+
file_type: 'custom_image',
|
98 |
+
wp_nonce: WPtouchCustom.admin_nonce
|
99 |
+
},
|
100 |
+
name: 'myfile',
|
101 |
+
onSubmit: function( fileName, extension ) {
|
102 |
+
thisSpinner.show();
|
103 |
+
jQuery( '.wpt-spinner', thisUploader ).animate({
|
104 |
+
opacity: 1
|
105 |
+
}, 100 );
|
106 |
+
},
|
107 |
+
onComplete: function( fileName, response ) {
|
108 |
+
jQuery( '.wpt-spinner', thisUploader ).animate({
|
109 |
+
opacity: 0
|
110 |
+
}, 500 );
|
111 |
+
WPtouchRefreshCustomIconArea();
|
112 |
+
},
|
113 |
+
onCancel: function( id, fileName ) {
|
114 |
+
jQuery( '.wpt-spinner', thisUploader ).animate({
|
115 |
+
opacity: 0
|
116 |
+
}, 500 );
|
117 |
+
},
|
118 |
+
showMessage: function( message ) {
|
119 |
+
// Nothin'
|
120 |
+
}
|
121 |
+
});
|
122 |
+
}
|
123 |
+
|
124 |
+
// Handle delete custom Icon
|
125 |
+
if ( jQuery( 'ul.custom-uploads-display' ).length ) {
|
126 |
+
jQuery( '#setting-custom_icon_management' ).on( 'click', 'ul.custom-uploads-display li', function( e ) {
|
127 |
+
var iconName = jQuery( this ).find( 'p.name' ).attr( 'data-name' );
|
128 |
+
var ajaxParams = {
|
129 |
+
icon_name: iconName
|
130 |
+
};
|
131 |
+
jQuery( this ).fadeOut( 'fast' );
|
132 |
+
wptouchAdminAjax( 'delete-custom-icon', ajaxParams, function( result ) {
|
133 |
+
if ( result == 0 ) {
|
134 |
+
WPtouchRefreshCustomIconArea();
|
135 |
+
}
|
136 |
+
});
|
137 |
+
|
138 |
+
e.preventDefault();
|
139 |
+
});
|
140 |
+
}
|
141 |
+
|
142 |
+
// Handle delete fade-in/fade-out
|
143 |
+
jQuery( 'ul.custom-uploads-display' ).on( 'mouseenter', 'li', function() {
|
144 |
+
jQuery( this ).find( 'a' ).fadeIn( 'fast' );
|
145 |
+
}).on( 'mouseleave', 'li', function() {
|
146 |
+
jQuery( this ).find( 'a' ).fadeOut( 'fast' );
|
147 |
+
});
|
148 |
+
|
149 |
+
// Setup the show/hide for the whole menu icons area based on whether they're used or not
|
150 |
+
wptouchCheckToggle( '#enable_menu_icons', '#section-admin_menu_icon_sets, #section-admin_menu_icon_upload' );
|
151 |
+
|
152 |
+
}
|
153 |
+
|
154 |
+
function wptouchHandlePluginCompat() {
|
155 |
+
var pluginCompatDiv = jQuery( '#plugin-compat-setting .content' );
|
156 |
+
if ( pluginCompatDiv.length ) {
|
157 |
+
var ajaxParams = {};
|
158 |
+
|
159 |
+
wptouchAdminAjax( 'load-plugin-compat-list', ajaxParams, function( result ) {
|
160 |
+
pluginCompatDiv.html( result );
|
161 |
+
});
|
162 |
+
}
|
163 |
+
}
|
164 |
+
|
165 |
+
// Function that holds toggle settings
|
166 |
+
function wptouchSetupSettingsToggles() {
|
167 |
+
|
168 |
+
wptouchCheckToggle('#enable_custom_post_types', '#section-foundation-web-custom-post-types' );
|
169 |
+
|
170 |
+
// General Settings: Analytics
|
171 |
+
jQuery( '#analytics_embed_method' ).on( 'change', function() {
|
172 |
+
|
173 |
+
var google = jQuery( '#setting-analytics_google_id' );
|
174 |
+
var stats = jQuery( '#setting-custom_stats_code' );
|
175 |
+
|
176 |
+
switch( jQuery( this ).val() ) {
|
177 |
+
case 'simple':
|
178 |
+
google.slideDown();
|
179 |
+
stats.hide();
|
180 |
+
break;
|
181 |
+
case 'custom':
|
182 |
+
stats.slideDown();
|
183 |
+
google.hide();
|
184 |
+
break;
|
185 |
+
default:
|
186 |
+
jQuery( '#setting-analytics_google_id, #setting-custom_stats_code' ).hide();
|
187 |
+
break;
|
188 |
+
}
|
189 |
+
} ).trigger( 'change' );
|
190 |
+
|
191 |
+
// General Settings: Filter URLs
|
192 |
+
jQuery( '#setting-url_filter_behaviour' ).find( 'select' ).on( 'change', function() {
|
193 |
+
var filteredEls = jQuery( '#setting-filtered_urls, #setting-filtered_urls_exact' );
|
194 |
+
switch( jQuery( this ).val() ) {
|
195 |
+
case 'disabled':
|
196 |
+
filteredEls.hide();
|
197 |
+
break;
|
198 |
+
default:
|
199 |
+
filteredEls.slideDown( 'fast' );
|
200 |
+
break;
|
201 |
+
}
|
202 |
+
} ).trigger( 'change' );
|
203 |
+
|
204 |
+
// General Settings: WPtouch Homepage
|
205 |
+
jQuery( '#setting-homepage_landing' ).find( 'select' ).on( 'change', function() {
|
206 |
+
|
207 |
+
var redirectTargetDiv = jQuery( '#setting-homepage_redirect_wp_target' );
|
208 |
+
var customTargetDiv = jQuery( '#setting-homepage_redirect_custom_target' );
|
209 |
+
|
210 |
+
switch( jQuery( this ).val() ) {
|
211 |
+
case 'none':
|
212 |
+
redirectTargetDiv.hide();
|
213 |
+
customTargetDiv.hide();
|
214 |
+
break;
|
215 |
+
case 'select':
|
216 |
+
redirectTargetDiv.show();
|
217 |
+
customTargetDiv.hide();
|
218 |
+
break;
|
219 |
+
case 'custom':
|
220 |
+
customTargetDiv.show();
|
221 |
+
redirectTargetDiv.hide();
|
222 |
+
break;
|
223 |
+
}
|
224 |
+
} ).trigger( 'change' );
|
225 |
+
}
|
226 |
+
|
227 |
+
function wptouchLoadUpgradeArea() {
|
228 |
+
jQuery( 'button#upgrade-to-pro' ).on( 'click', function(){
|
229 |
+
window.location = jQuery( this ).attr( 'data-target' );
|
230 |
+
});
|
231 |
+
|
232 |
+
var upgrade = jQuery( '#upgrade-area' );
|
233 |
+
if ( upgrade.length ) {
|
234 |
+
var ajaxParams = {};
|
235 |
+
wptouchAdminAjax( 'load-upgrade-area', ajaxParams, function( result ) {
|
236 |
+
upgrade.html( result );
|
237 |
+
if ( jQuery( '#license-settings-area' ).length ) {
|
238 |
+
var goProHref = jQuery( '#upgrade-area .button' ).attr( 'href' );
|
239 |
+
goProHref = goProHref + '&callback=' + encodeURIComponent( window.location );
|
240 |
+
jQuery( '#upgrade-area .button' ).attr( 'href', goProHref );
|
241 |
+
}
|
242 |
+
});
|
243 |
+
}
|
244 |
+
}
|
245 |
+
|
246 |
+
function wptouchHandleDownloadIconSets() {
|
247 |
+
var iconSetArea = jQuery( '#manage-icon-sets' );
|
248 |
+
if ( iconSetArea.length ) {
|
249 |
+
var ajaxParams = {};
|
250 |
+
wptouchAdminAjax( 'get-icon-set-info', ajaxParams, function( result ) {
|
251 |
+
iconSetArea.html( result );
|
252 |
+
|
253 |
+
jQuery( 'ul.manage-sets' ).on( 'click', 'button', function( e ) {
|
254 |
+
var pressedButton = jQuery( this );
|
255 |
+
var installURL = jQuery( this ).attr( 'data-install-url' );
|
256 |
+
var basePath = jQuery( this ).attr( 'data-base-path' );
|
257 |
+
var loadingText = jQuery( this ).attr( 'data-loading-text' );
|
258 |
+
|
259 |
+
var ajaxParams = {
|
260 |
+
url: installURL,
|
261 |
+
base: basePath
|
262 |
+
};
|
263 |
+
|
264 |
+
pressedButton.html( loadingText ).addClass( 'disabled' );
|
265 |
+
|
266 |
+
wptouchAdminAjax( 'download-icon-set', ajaxParams, function( result ) {
|
267 |
+
if ( result == '1' ) {
|
268 |
+
// Succeeded
|
269 |
+
pressedButton.parent().find( '.installed' ).show();
|
270 |
+
pressedButton.hide();
|
271 |
+
} else {
|
272 |
+
// Failed
|
273 |
+
pressedButton.parent().find( '.error' ).show();
|
274 |
+
pressedButton.hide();
|
275 |
+
}
|
276 |
+
});
|
277 |
+
|
278 |
+
e.preventDefault();
|
279 |
+
});
|
280 |
+
});
|
281 |
+
}
|
282 |
+
}
|
283 |
+
|
284 |
+
function wptouchHandleResetSettings() {
|
285 |
+
jQuery( '#reset, #erase-settings' ).click( function( e ) {
|
286 |
+
if ( !confirm( WPtouchCustom.reset_settings ) ) {
|
287 |
+
e.preventDefault();
|
288 |
+
}
|
289 |
+
});
|
290 |
+
|
291 |
+
jQuery( '#erase-and-delete' ).click( function( e ) {
|
292 |
+
if ( !confirm( WPtouchCustom.reset_delete ) ) {
|
293 |
+
e.preventDefault();
|
294 |
+
}
|
295 |
+
});
|
296 |
+
|
297 |
+
jQuery( '#erase-delete-deactivate' ).click( function( e ) {
|
298 |
+
if ( !confirm( WPtouchCustom.reset_delete_deactivate ) ) {
|
299 |
+
e.preventDefault();
|
300 |
+
}
|
301 |
+
});
|
302 |
+
}
|
303 |
+
|
304 |
+
function wptouchThemesAddonsAjaxInstall() {
|
305 |
+
var canAjaxInstall = typeof new XMLHttpRequest().responseType === 'string';
|
306 |
+
|
307 |
+
if ( canAjaxInstall ) {
|
308 |
+
jQuery( '.cloud-update-issue' ).remove();
|
309 |
+
jQuery( '#section-updates-available' ).addClass( 'ajax-install' );
|
310 |
+
}
|
311 |
+
|
312 |
+
jQuery( '.action-buttons.no-install, #section-updates-available' ).each( function() {
|
313 |
+
if ( jQuery( 'a', this ).length == 2 ) {
|
314 |
+
jQuery( '.activate', this ).hide();
|
315 |
+
}
|
316 |
+
|
317 |
+
if ( canAjaxInstall ) {
|
318 |
+
jQuery( '.download', this ).text( WPtouchCustom.install ).addClass( 'ajax-install' );
|
319 |
+
}
|
320 |
+
});
|
321 |
+
|
322 |
+
jQuery( '.action-buttons.no-install' ).on( 'click', 'a.ajax-install', function(e){
|
323 |
+
if ( jQuery( this ).hasClass( 'theme' ) ) { fileType = 'theme'; } else { fileType = 'extension'; }
|
324 |
+
downloadLink = jQuery( this ).attr( 'href' );
|
325 |
+
wptouchAdminAjaxInstall( this, fileType, downloadLink, wptouchEnableDownload, wptouchRemoveAjaxInstall );
|
326 |
+
e.preventDefault();
|
327 |
+
});
|
328 |
+
|
329 |
+
jQuery( '#section-updates-available' ).on( 'click', 'a.ajax-install', function(e){
|
330 |
+
if ( jQuery( this ).hasClass( 'theme' ) ) { fileType = 'theme'; } else { fileType = 'extension'; }
|
331 |
+
downloadLink = jQuery( this ).attr( 'href' );
|
332 |
+
wptouchAdminAjaxInstall( this, fileType, downloadLink, false, wptouchRemoveAjaxInstall );
|
333 |
+
e.preventDefault();
|
334 |
+
});
|
335 |
+
}
|
336 |
+
|
337 |
+
function wptouchEnableDownload( targetButton ) {
|
338 |
+
jQuery( targetButton ).prev().show().end().remove();
|
339 |
+
}
|
340 |
+
|
341 |
+
function wptouchRemoveAjaxInstall( targetButton ) {
|
342 |
+
jQuery( targetButton ).removeClass( 'ajax-install' ).text( WPtouchCustom.download );
|
343 |
+
}
|
344 |
+
|
345 |
+
function wptouchLoadThemes() {
|
346 |
+
jQuery( '#setup-themes-browser' ).on( 'click', 'a.button.install, a.button.upgrade', function( e ) {
|
347 |
+
var pressedButton = jQuery( this );
|
348 |
+
var installURL = jQuery( this ).attr( 'data-url' );
|
349 |
+
var basePath = jQuery( this ).attr( 'data-name' );
|
350 |
+
|
351 |
+
var loadingText = jQuery( this ).attr( 'data-loading-text' );
|
352 |
+
|
353 |
+
var ajaxParams = {
|
354 |
+
url: installURL,
|
355 |
+
base: basePath
|
356 |
+
};
|
357 |
+
|
358 |
+
pressedButton.html( loadingText ).addClass( 'disabled' );
|
359 |
+
|
360 |
+
wptouchAdminAjax( 'download-theme', ajaxParams, function( result ) {
|
361 |
+
ourResult = jQuery.parseJSON( result );
|
362 |
+
if ( ourResult.status == '1' ) {
|
363 |
+
// Succeeded
|
364 |
+
wptouchAdminTriggerReload();
|
365 |
+
} else {
|
366 |
+
var str = WPtouchCustom.cloud_download_fail;
|
367 |
+
alert( str.replace( '%reason%', ourResult.error ) );
|
368 |
+
}
|
369 |
+
});
|
370 |
+
|
371 |
+
e.preventDefault();
|
372 |
+
});
|
373 |
+
}
|
374 |
+
|
375 |
+
function wptouchLoadAddons() {
|
376 |
+
jQuery( '#setup-addons-browser' ).on( 'click', 'a.install, a.upgrade', function( e ) {
|
377 |
+
var pressedButton = jQuery( this );
|
378 |
+
var installURL = jQuery( this ).attr( 'data-url' );
|
379 |
+
var basePath = jQuery( this ).attr( 'data-name' );
|
380 |
+
|
381 |
+
var loadingText = jQuery( this ).attr( 'data-loading-text' );
|
382 |
+
|
383 |
+
var ajaxParams = {
|
384 |
+
url: installURL,
|
385 |
+
base: basePath
|
386 |
+
};
|
387 |
+
|
388 |
+
var oldText = pressedButton.html();
|
389 |
+
pressedButton.html( loadingText ).addClass( 'disabled' );
|
390 |
+
|
391 |
+
wptouchAdminAjax( 'download-addon', ajaxParams, function( result ) {
|
392 |
+
ourResult = jQuery.parseJSON( result );
|
393 |
+
if ( ourResult.status == '1' ) {
|
394 |
+
// Succeeded
|
395 |
+
location.reload( true );
|
396 |
+
} else {
|
397 |
+
var str = WPtouchCustom.cloud_download_fail;
|
398 |
+
alert( str.replace( '%reason%', ourResult.error ) );
|
399 |
+
|
400 |
+
pressedButton.html( loadingText ).removeClass( 'disabled' ).html( oldText );
|
401 |
+
}
|
402 |
+
});
|
403 |
+
|
404 |
+
e.preventDefault();
|
405 |
+
});
|
406 |
+
}
|
407 |
+
|
408 |
+
function wptouchHandleMultilineFields() {
|
409 |
+
|
410 |
+
var multiLine = jQuery( '.multiline' );
|
411 |
+
|
412 |
+
multiLine.on( 'wptouch-rebuild-value', function() {
|
413 |
+
var values = [];
|
414 |
+
|
415 |
+
jQuery( 'li', this ).each( function() {
|
416 |
+
values.push( jQuery( this ).data( 'text-value' ) );
|
417 |
+
});
|
418 |
+
|
419 |
+
if ( jQuery( this ).hasClass( 'comma' ) ) {
|
420 |
+
var glue = ',';
|
421 |
+
} else {
|
422 |
+
var glue = '\n';
|
423 |
+
}
|
424 |
+
|
425 |
+
jQuery( 'textarea', this ).val( values.join( glue ) );
|
426 |
+
});
|
427 |
+
|
428 |
+
multiLine.find( 'li' ).each( function() {
|
429 |
+
jQuery( this ).data( 'text-value', jQuery( this ).text() ).append( '<a href="#" class="remove icon-cancel-circled"></a>');
|
430 |
+
});
|
431 |
+
|
432 |
+
multiLine.on( 'click', 'a.remove', function( e ) {
|
433 |
+
e.preventDefault();
|
434 |
+
multiline_group = jQuery( this ).parents( '.multiline' );
|
435 |
+
jQuery( this ).parent().remove();
|
436 |
+
multiline_group.trigger( 'wptouch-rebuild-value' );
|
437 |
+
if ( jQuery( 'li', multiline_group ).length == 0 ) {
|
438 |
+
jQuery( 'ul', multiline_group ).remove();
|
439 |
+
}
|
440 |
+
});
|
441 |
+
|
442 |
+
multiLine.on( 'click', 'a.add', function( e ) {
|
443 |
+
e.preventDefault();
|
444 |
+
new_value = jQuery( this ).siblings( 'input' ).val();
|
445 |
+
if ( new_value != '' ) {
|
446 |
+
|
447 |
+
// create UL if it doesn't exist
|
448 |
+
parent = jQuery( this ).parents( '.multiline' );
|
449 |
+
if ( parent.has( 'ul' ).length == 0 ) {
|
450 |
+
parent.append( '<ul></ul>' );
|
451 |
+
}
|
452 |
+
|
453 |
+
new_element = jQuery( '<li>' + new_value + '<a href="#" class="remove icon-cancel-circled"></a></li>').data( 'text-value', new_value );
|
454 |
+
jQuery( this ).parents( '.multiline' ).find( 'ul' ).append( new_element );
|
455 |
+
|
456 |
+
multiline_group = jQuery( this ).parents( '.multiline' );
|
457 |
+
multiline_group.trigger( 'wptouch-rebuild-value' );
|
458 |
+
|
459 |
+
jQuery( this ).siblings( 'input' ).val( '' );
|
460 |
+
}
|
461 |
+
});
|
462 |
+
|
463 |
+
// trap enter keys and make them add the item instead of returning on the whole form
|
464 |
+
jQuery( 'input.add-entry' ).keydown( function( e ) {
|
465 |
+
if( e.which && e.which == 13 || e.keyCode && e.keyCode == 13 ) {
|
466 |
+
e.preventDefault();
|
467 |
+
jQuery( this ).next( 'a.add' ).click();
|
468 |
+
return false;
|
469 |
+
}
|
470 |
+
});
|
471 |
+
}
|
472 |
+
|
473 |
+
function wptouchHandleCustomizerLink() {
|
474 |
+
jQuery( '#foundation-page-theme-customizer' ).click( 'a', function( e ) {
|
475 |
+
jQuery.cookie( 'wptouch_customizer_use', 'mobile', { expires: 0, path: '/' } );
|
476 |
+
});
|
477 |
+
}
|
478 |
+
|
479 |
+
function wptouchThemesExtensionsPanels(){
|
480 |
+
|
481 |
+
// Themes Panels
|
482 |
+
var themeSlideView = jQuery( '.theme-panels' ).css( 'visibility', 'visible' ).simpleSlideView({
|
483 |
+
duration: 400,
|
484 |
+
scrollToContainerTop: false,
|
485 |
+
easing: 'easeInOutCubic'
|
486 |
+
});
|
487 |
+
|
488 |
+
// Extension Panels
|
489 |
+
var extensionlideView = jQuery( '.extension-panels' ).css( 'visibility', 'visible' ).simpleSlideView({
|
490 |
+
duration: 400,
|
491 |
+
scrollToContainerTop: false,
|
492 |
+
easing: 'easeInOutQuint'
|
493 |
+
});
|
494 |
+
|
495 |
+
jQuery( 'a.setup-themes-browser' ).on( 'click', function(){
|
496 |
+
themeSlideView.popView( '#main-theme-panel' );
|
497 |
+
jQuery( 'html, body' ).animate({ scrollTop: '0' }, 400 );
|
498 |
+
});
|
499 |
+
|
500 |
+
jQuery( 'a.setup-addons-browser' ).on( 'click', function(){
|
501 |
+
extensionlideView.popView( '#main-extension-panel' );
|
502 |
+
jQuery( 'html, body' ).animate({ scrollTop: '0' }, 400 );
|
503 |
+
});
|
504 |
+
}
|
505 |
+
|
506 |
+
function wptouchSetupOldUploaders() {
|
507 |
+
if ( jQuery( '.uploader' ).length ) {
|
508 |
+
|
509 |
+
jQuery( '.uploader' ).each( function() {
|
510 |
+
var thisUploader = jQuery( this );
|
511 |
+
var baseId = jQuery( this ).find( 'button.upload' ).parent().attr( 'id' );
|
512 |
+
var settingName = jQuery( '#' + baseId + '_upload' ).attr( 'data-esn' );
|
513 |
+
var deleteButton = jQuery( '#' + baseId ).find( 'button.delete' );
|
514 |
+
var uploader = new AjaxUpload( baseId + '_upload', {
|
515 |
+
action: ajaxurl,
|
516 |
+
allowedExtensions: [ 'png' ],
|
517 |
+
debug: false,
|
518 |
+
data: {
|
519 |
+
action: 'upload_file',
|
520 |
+
file_type: 'homescreen_image',
|
521 |
+
setting_name: settingName,
|
522 |
+
wp_nonce: WPtouchCustom.admin_nonce
|
523 |
+
},
|
524 |
+
name: 'myfile',
|
525 |
+
onSubmit: function( fileName, extension ) {
|
526 |
+
thisUploader.find( '.progress .bar' ).css( 'width', '20%' );
|
527 |
+
thisUploader.find( '.progress' ).show();
|
528 |
+
},
|
529 |
+
onComplete: function( fileName, response ) {
|
530 |
+
// success
|
531 |
+
if ( response != 'invalid image' ) {
|
532 |
+
thisUploader.find( '.progress .bar' ).css( 'width', '100%' );
|
533 |
+
thisUploader.find( '.progress' ).removeClass( 'bar-fail' ).addClass( 'bar-success' );
|
534 |
+
setTimeout( function() {
|
535 |
+
thisUploader.find( '.image-placeholder' ).append( '<img src="' + response + '" />');
|
536 |
+
deleteButton.fadeIn( 'fast' );
|
537 |
+
thisUploader.find( '.progress' ).hide();
|
538 |
+
},
|
539 |
+
1500 );
|
540 |
+
} else {
|
541 |
+
// failed
|
542 |
+
thisUploader.find( '.progress .bar' ).css( 'width', '50%' );
|
543 |
+
thisUploader.find( '.progress' ).attr( 'title', WPtouchCustom.upload_invalid );
|
544 |
+
thisUploader.find( '.progress' ).attr( 'data-original-title', WPtouchCustom.upload_invalid );
|
545 |
+
thisUploader.find( '.progress' ).removeClass( 'bar-success' ).addClass( 'bar-fail' );
|
546 |
+
}
|
547 |
+
//cleanup & reset
|
548 |
+
setTimeout( function() {
|
549 |
+
thisUploader.find( '.progress .bar' ).removeClass( 'bar-fail bar-success' );
|
550 |
+
thisUploader.find( '.progress' )
|
551 |
+
.attr( 'title', WPtouchCustom.upload_complete )
|
552 |
+
.attr( 'data-original-title', WPtouchCustom.upload_complete );
|
553 |
+
},
|
554 |
+
3500 );
|
555 |
+
},
|
556 |
+
onCancel: function( id, fileName ) {},
|
557 |
+
showMessage: function( message ) {
|
558 |
+
}
|
559 |
+
});
|
560 |
+
|
561 |
+
jQuery( '#' + baseId + '_upload' ).on( 'click', function( e ) {
|
562 |
+
jQuery( '#' + baseId + '_spot' ).trigger( 'click' );
|
563 |
+
e.preventDefault();
|
564 |
+
});
|
565 |
+
|
566 |
+
deleteButton.on( 'click', function( e ) {
|
567 |
+
var deleteButton = jQuery( this );
|
568 |
+
var placeHolder = jQuery( this ).parent().find( '.image-placeholder' );
|
569 |
+
placeHolder.find( 'img' ).remove();
|
570 |
+
|
571 |
+
var baseId = jQuery( this ).parent().attr( 'id' );
|
572 |
+
var settingName = jQuery( '#' + baseId + '_upload' ).attr( 'data-esn' );
|
573 |
+
|
574 |
+
var ajaxParams = {
|
575 |
+
setting_name: settingName
|
576 |
+
};
|
577 |
+
|
578 |
+
wptouchAdminAjax( 'delete-image-upload', ajaxParams, function( result ) {
|
579 |
+
if ( result == 0 ) {
|
580 |
+
|
581 |
+
deleteButton.fadeOut( 'fast' );
|
582 |
+
}
|
583 |
+
});
|
584 |
+
|
585 |
+
e.preventDefault();
|
586 |
+
});
|
587 |
+
});
|
588 |
+
}
|
589 |
+
}
|
590 |
+
|
591 |
+
function wptouchSetupFreeSettings(){
|
592 |
+
|
593 |
+
if ( jQuery( '.wptouch-free' ).length ) {
|
594 |
+
// Sharing Links on/off
|
595 |
+
var sharingCheckbox = jQuery( '[id$=show_share]' );
|
596 |
+
sharingCheckbox.on( 'change', 'input', function(){
|
597 |
+
if ( jQuery( this ).is( ':checked' ) ) {
|
598 |
+
sharingCheckbox.nextAll( 'li' ).show();
|
599 |
+
} else {
|
600 |
+
sharingCheckbox.nextAll( 'li' ).hide();
|
601 |
+
}
|
602 |
+
}).change();
|
603 |
+
|
604 |
+
// Featured Slider on/off
|
605 |
+
var featuredCheckbox = jQuery( '[id$=featured_enabled]' );
|
606 |
+
featuredCheckbox.on( 'change', 'input', function(){
|
607 |
+
if ( jQuery( this ).is( ':checked' ) ) {
|
608 |
+
featuredCheckbox.nextAll( 'li' ).show();
|
609 |
+
} else {
|
610 |
+
featuredCheckbox.nextAll( 'li' ).hide();
|
611 |
+
}
|
612 |
+
}).change();
|
613 |
+
|
614 |
+
// Featured slider source select
|
615 |
+
jQuery( '[id$="featured_type"]' ).on( 'change', 'select', function() {
|
616 |
+
var tagSetting = jQuery( '[id$=featured_tag]' );
|
617 |
+
var catSetting = jQuery( '[id$=featured_category]' );
|
618 |
+
var posttySetting = jQuery( '[id$=featured_post_type]' );
|
619 |
+
var postSetting = jQuery( '[id$=featured_post_ids]' );
|
620 |
+
|
621 |
+
switch( jQuery( this ).val() ) {
|
622 |
+
case 'tag':
|
623 |
+
tagSetting.show();
|
624 |
+
catSetting.hide();
|
625 |
+
posttySetting.hide();
|
626 |
+
postSetting.hide();
|
627 |
+
break;
|
628 |
+
case 'category':
|
629 |
+
tagSetting.hide();
|
630 |
+
catSetting.show();
|
631 |
+
posttySetting.hide();
|
632 |
+
postSetting.hide();
|
633 |
+
break;
|
634 |
+
case 'post_type':
|
635 |
+
tagSetting.hide();
|
636 |
+
catSetting.hide();
|
637 |
+
posttySetting.show();
|
638 |
+
postSetting.hide();
|
639 |
+
break;
|
640 |
+
case 'posts':
|
641 |
+
tagSetting.hide();
|
642 |
+
catSetting.hide();
|
643 |
+
posttySetting.hide();
|
644 |
+
postSetting.show();
|
645 |
+
break;
|
646 |
+
case 'latest':
|
647 |
+
default:
|
648 |
+
tagSetting.hide();
|
649 |
+
catSetting.hide();
|
650 |
+
posttySetting.hide();
|
651 |
+
postSetting.hide();
|
652 |
+
break;
|
653 |
+
}
|
654 |
+
}).change();
|
655 |
+
|
656 |
+
// Featured Thumbs on/off
|
657 |
+
var featuredThumb = jQuery( '[id$=use_thumbnails]' );
|
658 |
+
featuredThumb.on( 'change', 'select', function(){
|
659 |
+
var thumbType = jQuery( '[id$=thumbnail_type]' );
|
660 |
+
|
661 |
+
switch( jQuery( this ).val() ) {
|
662 |
+
case 'none':
|
663 |
+
thumbType.hide();
|
664 |
+
break;
|
665 |
+
default:
|
666 |
+
thumbType.show();
|
667 |
+
break;
|
668 |
+
|
669 |
+
}
|
670 |
+
}).change();
|
671 |
+
|
672 |
+
// Featured Thumb Type on/off
|
673 |
+
var featuredThumbType = jQuery( '[id$=thumbnail_type]' );
|
674 |
+
featuredThumbType.on( 'change', 'select', function(){
|
675 |
+
var thumbCustomType = jQuery( '[id$=thumbnail_custom_field]' );
|
676 |
+
|
677 |
+
switch( jQuery( this ).val() ) {
|
678 |
+
case 'custom_field':
|
679 |
+
thumbCustomType.show();
|
680 |
+
break;
|
681 |
+
default:
|
682 |
+
thumbCustomType.hide();
|
683 |
+
break;
|
684 |
+
|
685 |
+
}
|
686 |
+
}).change();
|
687 |
+
}
|
688 |
+
}
|
689 |
+
|
690 |
+
function wptouchControlReturn(){
|
691 |
+
// Intercept enter key, which strangely causes the first button in the DOM to be pressed
|
692 |
+
// in our case this results in a backup file download
|
693 |
+
jQuery( 'input' ).keypress( function ( e ) {
|
694 |
+
if ( ( e.which && e.which == 13 ) || ( e.keyCode && e.keyCode == 13 ) ) {
|
695 |
+
return false;
|
696 |
+
}
|
697 |
+
});
|
698 |
+
}
|
699 |
+
|
700 |
+
// Handy helper function to add Checkbox + target element(s) toggles
|
701 |
+
function wptouchCheckToggle( checkBox, toggleElements ) {
|
702 |
+
if ( jQuery( checkBox ).prop( 'checked' ) ) {
|
703 |
+
jQuery( toggleElements ).show();
|
704 |
+
} else {
|
705 |
+
jQuery( toggleElements ).hide();
|
706 |
+
}
|
707 |
+
jQuery( checkBox ).on( 'change', function() {
|
708 |
+
if ( jQuery( checkBox ).prop( 'checked' ) ) {
|
709 |
+
jQuery( toggleElements ).animate( {
|
710 |
+
height: 'toggle',
|
711 |
+
opacity: 'toggle'
|
712 |
+
}, 230 );
|
713 |
+
} else {
|
714 |
+
jQuery( toggleElements ).hide();
|
715 |
+
}
|
716 |
+
});
|
717 |
+
}
|
718 |
+
|
719 |
+
function wptouchUpdateAll() {
|
720 |
+
jQuery( '#setting-theme-extension-updates-available' ).on( 'click', 'button', function( e ) {
|
721 |
+
e.preventDefault();
|
722 |
+
jQuery( this ).text( jQuery( this ).attr( 'data-loading-text' ) ).attr( 'disabled', true ).addClass( 'disabled' );
|
723 |
+
wptouchAdminAjax( 'update-themes-addons', {}, function( result ) {
|
724 |
+
ourResult = jQuery.parseJSON( result );
|
725 |
+
if ( ourResult.status == '1' ) {
|
726 |
+
// Succeeded
|
727 |
+
location.reload( true );
|
728 |
+
} else {
|
729 |
+
var str = WPtouchCustom.cloud_download_fail;
|
730 |
+
alert( str.replace( '%reason%', ourResult.error ) );
|
731 |
+
jQuery( this ).attr( 'disabled', false ).removeClass( 'disabled' );
|
732 |
+
}
|
733 |
+
});
|
734 |
+
});
|
735 |
+
}
|
736 |
+
|
737 |
+
function wptouchAddPlaceholders(){
|
738 |
+
jQuery( '#wptouch-settings-content input[type="text"]' ).not( '#license-settings-area input[type="text"]' ).each( function(){
|
739 |
+
var placeholder = jQuery( this ).parents( 'li' ).find( 'span' ).text();
|
740 |
+
jQuery( this ).attr( 'placeholder', placeholder );
|
741 |
+
});
|
742 |
+
}
|
743 |
+
|
744 |
+
function wptouchTriggerSave( callback ) {
|
745 |
+
// Will stop reloads during saving
|
746 |
+
var saving = true;
|
747 |
+
window.onbeforeunload = function(){
|
748 |
+
if ( saving ) {
|
749 |
+
return WPtouchCustom.saving_settings;
|
750 |
+
}
|
751 |
+
};
|
752 |
+
|
753 |
+
// Animate the admin spinner in
|
754 |
+
jQuery( '#admin-spinner' ).animate({
|
755 |
+
opacity: 1
|
756 |
+
}, 330 );
|
757 |
+
|
758 |
+
jQuery.ajax( {
|
759 |
+
method: 'POST',
|
760 |
+
data: 'wptouch-submit-3=1&' + jQuery( '#wptouch-settings-form' ).serialize(),
|
761 |
+
success: function() {
|
762 |
+
// Done saving, allow reload
|
763 |
+
saving = false;
|
764 |
+
|
765 |
+
// Animate the admin spinner out
|
766 |
+
jQuery( '#admin-spinner' ).animate({
|
767 |
+
opacity: 0
|
768 |
+
}, 330 );
|
769 |
+
|
770 |
+
if ( typeof( callback ) !== 'undefined' ) {
|
771 |
+
callback();
|
772 |
+
};
|
773 |
+
},
|
774 |
+
cache: false
|
775 |
+
});
|
776 |
+
}
|
777 |
+
|
778 |
+
function wptouchAdminSetupSave(){
|
779 |
+
|
780 |
+
var wptouchAdminForm = jQuery( '#wptouch-settings-form' );
|
781 |
+
|
782 |
+
if ( wptouchAdminForm.length ) {
|
783 |
+
// Toggles, textareas & selects
|
784 |
+
wptouchAdminForm.on( 'change.ajaxed', 'input[type="checkbox"]:not(#translate_admin):not(#multisite_control), textarea, select:not(#force_locale):not(#force_network_locale)', function(){
|
785 |
+
wptouchTriggerSave();
|
786 |
+
});
|
787 |
+
|
788 |
+
// text inputs, debounced to save after 250 millisecond delay
|
789 |
+
var textInputDebounceSave = wptouchAdminDebounce( function(){
|
790 |
+
wptouchTriggerSave();
|
791 |
+
}, 250 );
|
792 |
+
|
793 |
+
// Make sure we debounce saving on text inputs
|
794 |
+
wptouchAdminForm.on( 'keyup', 'input[type="text"]:not(.add-entry,.license-inputs)', textInputDebounceSave );
|
795 |
+
|
796 |
+
// Multiline / Newline
|
797 |
+
jQuery( '.multiline' ).on( 'click', 'a.add, a.remove', function(){
|
798 |
+
wptouchTriggerSave();
|
799 |
+
});
|
800 |
+
}
|
801 |
+
|
802 |
+
// Handle special case of saving setting relatedto the admin language
|
803 |
+
var languageSelect = jQuery( '#force_locale, #force_network_locale' );
|
804 |
+
var languageInAdmin = jQuery( '#translate_admin' );
|
805 |
+
var networkControl = jQuery( '#multisite_control' );
|
806 |
+
|
807 |
+
languageSelect.on( 'change', function(){
|
808 |
+
if ( languageInAdmin.is( ':checked' ) ) {
|
809 |
+
wptouchTriggerSave( wptouchAdminTriggerReload );
|
810 |
+
} else {
|
811 |
+
wptouchTriggerSave();
|
812 |
+
}
|
813 |
+
});
|
814 |
+
|
815 |
+
languageInAdmin.on( 'change', function(){
|
816 |
+
wptouchTriggerSave( wptouchAdminTriggerReload );
|
817 |
+
});
|
818 |
+
|
819 |
+
networkControl.on( 'change', function(){
|
820 |
+
wptouchTriggerSave( wptouchAdminTriggerReload );
|
821 |
+
});
|
822 |
+
}
|
823 |
+
|
824 |
+
function wptouchAdminTriggerReload(){
|
825 |
+
// Reload and refresh the cache
|
826 |
+
window.location.reload();
|
827 |
+
}
|
828 |
+
|
829 |
+
function wptouchAdminDebounce( func, wait, immediate ) {
|
830 |
+
var timeout;
|
831 |
+
return function() {
|
832 |
+
var context = this, args = arguments;
|
833 |
+
var later = function() {
|
834 |
+
timeout = null;
|
835 |
+
if ( !immediate ) func.apply( context, args );
|
836 |
+
};
|
837 |
+
var callNow = immediate && !timeout;
|
838 |
+
clearTimeout( timeout );
|
839 |
+
timeout = setTimeout( later, wait );
|
840 |
+
if ( callNow ) func.apply( context, args );
|
841 |
+
};
|
842 |
+
};
|
843 |
+
|
844 |
+
var wptouchPreviewWindow;
|
845 |
+
|
846 |
+
// The Preview Pop-Up Window
|
847 |
+
function wptouchPreviewWindow(){
|
848 |
+
|
849 |
+
var previewEl = jQuery( 'input#wptouch-preview-theme' );
|
850 |
+
|
851 |
+
previewEl.on( 'click', function( e ) {
|
852 |
+
var width = '375', height = '667';
|
853 |
+
topPosition = ( screen.height ) ? ( screen.height - height ) / 2:0;
|
854 |
+
leftPosition = ( screen.width ) ? ( screen.width - width ) / 2:0;
|
855 |
+
options = 'scrollbars=no, titlebar=no, status=no, menubar=no';
|
856 |
+
previewUrl = jQuery( this ).attr( 'data-url' );
|
857 |
+
window.open( previewUrl, 'preview', 'width=375, height=667,' + options + ', top=' + topPosition + ',left=' + leftPosition + '' );
|
858 |
+
wptouchPreviewWindow = window.open( '', 'preview', '' );
|
859 |
+
jQuery.cookie( 'wptouch-preview-window', 'open' );
|
860 |
+
e.preventDefault();
|
861 |
+
});
|
862 |
+
}
|
863 |
+
|
864 |
+
function wptouchHandlePreviewWindow(){
|
865 |
+
if ( wptouchPreviewWindow.closed ) {
|
866 |
+
jQuery.cookie( 'wptouch-preview-window', null );
|
867 |
+
}
|
868 |
+
}
|
869 |
+
|
870 |
+
function wptouchAdminReady() {
|
871 |
+
|
872 |
+
wptouchDownloadUploadSettings();
|
873 |
+
|
874 |
+
wptouchSetupAdminMenu();
|
875 |
+
|
876 |
+
wptouchTooltipSetup();
|
877 |
+
|
878 |
+
wptouchSetupSelects();
|
879 |
+
|
880 |
+
wptouchAddPlaceholders();
|
881 |
+
|
882 |
+
wptouchHandleCustomIconUpload();
|
883 |
+
|
884 |
+
wptouchHandlePluginCompat();
|
885 |
+
|
886 |
+
wptouchLoadUpgradeArea();
|
887 |
+
|
888 |
+
wptouchHandleDownloadIconSets();
|
889 |
+
|
890 |
+
wptouchLoadThemes();
|
891 |
+
|
892 |
+
wptouchUpdateAll();
|
893 |
+
|
894 |
+
wptouchLoadAddons();
|
895 |
+
|
896 |
+
wptouchHandleMultilineFields();
|
897 |
+
|
898 |
+
wptouchHandleCustomizerLink();
|
899 |
+
|
900 |
+
wptouchThemesExtensionsPanels();
|
901 |
+
|
902 |
+
wptouchHandleResetSettings();
|
903 |
+
|
904 |
+
wptouchControlReturn();
|
905 |
+
|
906 |
+
wptouchSetupOldUploaders();
|
907 |
+
|
908 |
+
wptouchSetupFreeSettings();
|
909 |
+
|
910 |
+
wptouchSetupSettingsToggles();
|
911 |
+
|
912 |
+
wptouchAdminSetupSave();
|
913 |
+
|
914 |
+
wptouchThemesAddonsAjaxInstall();
|
915 |
+
|
916 |
+
wptouchPreviewWindow();
|
917 |
+
wptouchHandlePreviewWindow();
|
918 |
+
}
|
919 |
+
|
920 |
+
jQuery( document ).ready( function() {
|
921 |
+
wptouchAdminReady();
|
922 |
+
});
|
admin/js/wptouch-admin-color.js
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
jQuery( document ).ready( function(){
|
2 |
+
jQuery( '.wptouch-color' ).each( function() {
|
3 |
+
var desktopPalette = jQuery.parseJSON( jQuery( this ).attr( 'data-desktop-palette' ) );
|
4 |
+
jQuery( this ).wpColorPicker(
|
5 |
+
{
|
6 |
+
palettes: desktopPalette,
|
7 |
+
change: wptouchAdminDebounce( function(){
|
8 |
+
wptouchTriggerSave();
|
9 |
+
}, 250 )
|
10 |
+
}
|
11 |
+
);
|
12 |
+
});
|
13 |
+
} );
|
admin/js/wptouch-admin-migrate.js
CHANGED
@@ -1,24 +1,60 @@
|
|
1 |
-
function
|
2 |
-
|
|
|
|
|
3 |
if ( brokenThemeDiv.length ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
var ajaxParams = {};
|
5 |
|
6 |
wptouchAdminAjax( 'repair-active-theme', ajaxParams, function( result ) {
|
7 |
-
var thisResult = result;
|
8 |
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
|
|
|
|
19 |
|
|
|
|
|
|
|
|
|
20 |
});
|
21 |
}
|
|
|
22 |
}
|
23 |
|
24 |
-
jQuery( document ).ready( function() {
|
|
|
|
1 |
+
function wptouchCloudRepair() {
|
2 |
+
|
3 |
+
var brokenThemeDiv = jQuery( '.remodal-cloud' );
|
4 |
+
|
5 |
if ( brokenThemeDiv.length ) {
|
6 |
+
|
7 |
+
jQuery( '.remodal .message' ).hide();
|
8 |
+
|
9 |
+
// Animation to start the progressbar
|
10 |
+
function wptouchProgressBarStart( barElement ){
|
11 |
+
jQuery( barElement ).animate({ width: '50%' }, 250 );
|
12 |
+
}
|
13 |
+
|
14 |
+
// Animation for a success response
|
15 |
+
function wptouchProgressBarSuccess( barElement ){
|
16 |
+
jQuery( barElement ).animate({ width: '100%' }, 250, function(){ jQuery( barElement ).addClass( 'bar-success' ); } );
|
17 |
+
}
|
18 |
+
|
19 |
+
// Animation for a failed response
|
20 |
+
function wptouchProgressBarFail( barElement ){
|
21 |
+
jQuery( barElement ).animate({ width: '100%' }, 250, function(){ jQuery( barElement ).addClass( 'bar-fail' ); } );
|
22 |
+
}
|
23 |
+
|
24 |
+
// Cache objects we'll be using
|
25 |
+
var repairModal = jQuery('[data-remodal-id=modal-repair]').remodal();
|
26 |
+
|
27 |
+
// Our progress bar element
|
28 |
+
var progressBar = jQuery( '#progress-repair' ).find( '.bar' );
|
29 |
+
|
30 |
+
wptouchProgressBarStart( progressBar );
|
31 |
+
|
32 |
var ajaxParams = {};
|
33 |
|
34 |
wptouchAdminAjax( 'repair-active-theme', ajaxParams, function( result ) {
|
|
|
35 |
|
36 |
+
var thisResult = result;
|
37 |
+
repairModal.open();
|
38 |
+
if ( result == '0' ) {
|
39 |
+
setTimeout( function(){
|
40 |
+
wptouchProgressBarFail( progressBar );
|
41 |
+
jQuery( '.remodal .failed-msg' ).slideDown();
|
42 |
+
}, 500 );
|
43 |
+
} else {
|
44 |
+
setTimeout( function(){
|
45 |
+
wptouchProgressBarSuccess( progressBar );
|
46 |
+
jQuery( '.remodal .success-msg' ).slideDown();
|
47 |
+
}, 500 );
|
48 |
|
49 |
+
jQuery( document ).one( 'closed', '.remodal', function () {
|
50 |
+
window.location.reload();
|
51 |
+
});
|
52 |
+
}
|
53 |
});
|
54 |
}
|
55 |
+
|
56 |
}
|
57 |
|
58 |
+
jQuery( document ).ready( function() {
|
59 |
+
wptouchCloudRepair();
|
60 |
+
} );
|
admin/js/wptouch-admin-plugins.js
CHANGED
@@ -1,5 +1,3 @@
|
|
1 |
-
/*! nanoScrollerJS - (c) 2015 James Florentino; Licensed MIT */
|
2 |
-
(function(e,t,n){"use strict";var r,i,s,o,u,a,f,l,c,h,p,d,v,m,g,y,b,w,E,S,x;S={paneClass:"pane",sliderClass:"slider",contentClass:"content",iOSNativeScrolling:!1,preventPageScrolling:!1,disableResize:!1,alwaysVisible:!1,flashDelay:1500,sliderMinHeight:20,sliderMaxHeight:null},y="scrollbar",g="scroll",l="mousedown",c="mousemove",p="mousewheel",h="mouseup",m="resize",u="drag",w="up",v="panedown",s="DOMMouseScroll",o="down",E="wheel",a="keydown",f="keyup",b="touchmove",r=t.navigator.appName==="Microsoft Internet Explorer"&&/msie 7./i.test(t.navigator.appVersion)&&t.ActiveXObject,i=null,x=function(){var e,t,r;return e=n.createElement("div"),t=e.style,t.position="absolute",t.width="100px",t.height="100px",t.overflow=g,t.top="-9999px",n.body.appendChild(e),r=e.offsetWidth-e.clientWidth,n.body.removeChild(e),r},d=function(){function a(r,s){this.el=r,this.options=s,i||(i=x()),this.$el=e(this.el),this.doc=e(n),this.win=e(t),this.generate(),this.createEvents(),this.addEvents(),this.reset()}return a.prototype.preventScrolling=function(e,t){if(!this.isActive)return;if(e.type===s)(t===o&&e.originalEvent.detail>0||t===w&&e.originalEvent.detail<0)&&e.preventDefault();else if(e.type===p){if(!e.originalEvent||!e.originalEvent.wheelDelta)return;(t===o&&e.originalEvent.wheelDelta<0||t===w&&e.originalEvent.wheelDelta>0)&&e.preventDefault()}},a.prototype.updateScrollValues=function(){var e;e=this.content,this.maxScrollTop=e.scrollHeight-e.clientHeight,this.contentScrollTop=e.scrollTop,this.maxSliderTop=this.paneHeight-this.sliderHeight,this.sliderTop=this.contentScrollTop*this.maxSliderTop/this.maxScrollTop},a.prototype.createEvents=function(){var e=this;this.events={down:function(t){return e.isBeingDragged=!0,e.offsetY=t.pageY-e.slider.offset().top,e.pane.addClass("active"),e.doc.bind(c,e.events[u]).bind(h,e.events[w]),!1},drag:function(t){return e.sliderY=t.pageY-e.$el.offset().top-e.offsetY,e.scroll(),e.updateScrollValues(),e.contentScrollTop>=e.maxScrollTop?e.$el.trigger("scrollend"):e.contentScrollTop===0&&e.$el.trigger("scrolltop"),!1},up:function(t){return e.isBeingDragged=!1,e.pane.removeClass("active"),e.doc.unbind(c,e.events[u]).unbind(h,e.events[w]),!1},resize:function(t){e.reset()},panedown:function(t){return e.sliderY=(t.offsetY||t.originalEvent.layerY)-e.sliderHeight*.5,e.scroll(),e.events.down(t),!1},scroll:function(t){if(e.isBeingDragged)return;e.updateScrollValues(),e.sliderY=e.sliderTop,e.slider.css({top:e.sliderTop});if(t==null)return;e.contentScrollTop>=e.maxScrollTop?(e.options.preventPageScrolling&&e.preventScrolling(t,o),e.$el.trigger("scrollend")):e.contentScrollTop===0&&(e.options.preventPageScrolling&&e.preventScrolling(t,w),e.$el.trigger("scrolltop"))},wheel:function(t){if(t==null)return;return e.sliderY+=-t.wheelDeltaY||-t.delta,e.scroll(),!1}}},a.prototype.addEvents=function(){var e;this.removeEvents(),e=this.events,this.options.disableResize||this.win.bind(m,e[m]),this.slider.bind(l,e[o]),this.pane.bind(l,e[v]).bind(""+p+" "+s,e[E]),this.$content.bind(""+g+" "+p+" "+s+" "+b,e[g])},a.prototype.removeEvents=function(){var e;e=this.events,this.win.unbind(m,e[m]),this.slider.unbind(),this.pane.unbind(),this.$content.unbind(""+g+" "+p+" "+s+" "+b,e[g])},a.prototype.generate=function(){var e,t,n,r,s;return n=this.options,r=n.paneClass,s=n.sliderClass,e=n.contentClass,!this.$el.find(""+r).length&&!this.$el.find(""+s).length&&this.$el.append('<div class="'+r+'"><div class="'+s+'" /></div>'),this.$content=this.$el.children("."+e),this.$content.attr("tabindex",0),this.content=this.$content[0],this.slider=this.$el.find("."+s),this.pane=this.$el.find("."+r),i&&(t=this.$el.css("direction")==="rtl"?{left:-i}:{right:-i},this.$el.addClass("has-scrollbar")),n.iOSNativeScrolling&&(t||(t={}),t.WebkitOverflowScrolling="touch"),t!=null&&this.$content.css(t),this},a.prototype.restore=function(){this.stopped=!1,this.pane.show(),this.addEvents()},a.prototype.reset=function(){var e,t,n,s,o,u,a,f,l;return this.$el.find("."+this.options.paneClass).length||this.generate().stop(),this.stopped&&this.restore(),e=this.content,n=e.style,s=n.overflowY,r&&this.$content.css({height:this.$content.height()}),t=e.scrollHeight+i,u=this.pane.outerHeight(),f=parseInt(this.pane.css("top"),10),o=parseInt(this.pane.css("bottom"),10),a=u+f+o,l=Math.round(a/t*a),l<this.options.sliderMinHeight?l=this.options.sliderMinHeight:this.options.sliderMaxHeight!=null&&l>this.options.sliderMaxHeight&&(l=this.options.sliderMaxHeight),s===g&&n.overflowX!==g&&(l+=i),this.maxSliderTop=a-l,this.contentHeight=t,this.paneHeight=u,this.paneOuterHeight=a,this.sliderHeight=l,this.slider.height(l),this.events.scroll(),this.pane.show(),this.isActive=!0,e.scrollHeight===e.clientHeight||this.pane.outerHeight(!0)>=e.scrollHeight&&s!==g?(this.pane.hide(),this.isActive=!1):this.el.clientHeight===e.scrollHeight&&s===g?this.slider.hide():this.slider.show(),this.pane.css({opacity:this.options.alwaysVisible?1:"",visibility:this.options.alwaysVisible?"visible":""}),this},a.prototype.scroll=function(){if(!this.isActive)return;return this.sliderY=Math.max(0,this.sliderY),this.sliderY=Math.min(this.maxSliderTop,this.sliderY),this.$content.scrollTop((this.paneHeight-this.contentHeight+i)*this.sliderY/this.maxSliderTop*-1),this.slider.css({top:this.sliderY}),this},a.prototype.scrollBottom=function(e){if(!this.isActive)return;return this.reset(),this.$content.scrollTop(this.contentHeight-this.$content.height()-e).trigger(p),this},a.prototype.scrollTop=function(e){if(!this.isActive)return;return this.reset(),this.$content.scrollTop(+e).trigger(p),this},a.prototype.scrollTo=function(t){if(!this.isActive)return;return this.reset(),this.scrollTop(e(t).get(0).offsetTop),this},a.prototype.stop=function(){return this.stopped=!0,this.removeEvents(),this.pane.hide(),this},a.prototype.flash=function(){var e=this;if(!this.isActive)return;return this.reset(),this.pane.addClass("flashed"),setTimeout(function(){e.pane.removeClass("flashed")},this.options.flashDelay),this},a}(),e.fn.nanoScroller=function(t){return this.each(function(){var n,r;(r=this.nanoscroller)||(n=e.extend({},S,t),this.nanoscroller=r=new d(this,n));if(t&&typeof t=="object"){e.extend(r.options,t);if(t.scrollBottom)return r.scrollBottom(t.scrollBottom);if(t.scrollTop)return r.scrollTop(t.scrollTop);if(t.scrollTo)return r.scrollTo(t.scrollTo);if(t.scroll==="bottom")return r.scrollBottom(0);if(t.scroll==="top")return r.scrollTop(0);if(t.scroll&&t.scroll instanceof e)return r.scrollTo(t.scroll);if(t.stop)return r.stop();if(t.flash)return r.flash()}return r.reset()})}})(jQuery,window,document);
|
3 |
/**
|
4 |
* Ajax upload
|
5 |
* Project page - http://valums.com/ajax-upload/
|
@@ -8,6 +6,7 @@
|
|
8 |
* Version 3.6 (26.06.2009)
|
9 |
*/
|
10 |
(function(){var h=document,l=window;function b(d){if(typeof d=="string"){d=h.getElementById(d)}return d}function e(q,p,d){if(l.addEventListener){q.addEventListener(p,d,false)}else{if(l.attachEvent){var r=function(){d.call(q,l.event)};q.attachEvent("on"+p,r)}}}var c=function(){var d=h.createElement("div");return function(p){d.innerHTML=p;var q=d.childNodes[0];d.removeChild(q);return q}}();function f(p,d){return p.className.match(new RegExp("(\\s|^)"+d+"(\\s|$)"))}function g(p,d){if(!f(p,d)){p.className+=" "+d}}function m(q,d){var p=new RegExp("(\\s|^)"+d+"(\\s|$)");q.className=q.className.replace(p," ")}if(document.documentElement.getBoundingClientRect){var n=function(d){var t=d.getBoundingClientRect(),x=d.ownerDocument,u=x.body,p=x.documentElement,s=p.clientTop||u.clientTop||0,v=p.clientLeft||u.clientLeft||0,y=1;if(u.getBoundingClientRect){var r=u.getBoundingClientRect();y=(r.right-r.left)/u.clientWidth}if(y>1){s=0;v=0}var w=t.top/y+(window.pageYOffset||p&&p.scrollTop/y||u.scrollTop/y)-s,q=t.left/y+(window.pageXOffset||p&&p.scrollLeft/y||u.scrollLeft/y)-v;return{top:w,left:q}}}else{var n=function(d){if(l.jQuery){return jQuery(d).offset()}var q=0,p=0;do{q+=d.offsetTop||0;p+=d.offsetLeft||0}while(d=d.offsetParent);return{left:p,top:q}}}function a(q){var s,p,r,d;var t=n(q);s=t.left;r=t.top;p=s+q.offsetWidth;d=r+q.offsetHeight;return{left:s,right:p,top:r,bottom:d}}function j(r){if(!r.pageX&&r.clientX){var q=1;var d=document.body;if(d.getBoundingClientRect){var p=d.getBoundingClientRect();q=(p.right-p.left)/d.clientWidth}return{x:r.clientX/q+h.body.scrollLeft+h.documentElement.scrollLeft,y:r.clientY/q+h.body.scrollTop+h.documentElement.scrollTop}}return{x:r.pageX,y:r.pageY}}var i=function(){var d=0;return function(){return"ValumsAjaxUpload"+d++}}();function o(d){return d.replace(/.*(\/|\\)/,"")}function k(d){return(/[.]/.exec(d))?/[^.]+$/.exec(d.toLowerCase()):""}Ajax_upload=AjaxUpload=function(q,d){if(q.jquery){q=q[0]}else{if(typeof q=="string"&&/^#.*/.test(q)){q=q.slice(1)}}q=b(q);this._input=null;this._button=q;this._disabled=false;this._submitting=false;this._justClicked=false;this._parentDialog=h.body;if(window.jQuery&&jQuery.ui&&jQuery.ui.dialog){var r=jQuery(this._button).parents(".ui-dialog");if(r.length){this._parentDialog=r[0]}}this._settings={action:"upload.php",name:"userfile",data:{},autoSubmit:true,responseType:false,onChange:function(s,t){},onSubmit:function(s,t){},onComplete:function(t,s){}};for(var p in d){this._settings[p]=d[p]}this._createInput();this._rerouteClicks()};AjaxUpload.prototype={setData:function(d){this._settings.data=d},disable:function(){this._disabled=true},enable:function(){this._disabled=false},destroy:function(){if(this._input){if(this._input.parentNode){this._input.parentNode.removeChild(this._input)}this._input=null}},_createInput:function(){var p=this;var d=h.createElement("input");d.setAttribute("type","file");d.setAttribute("name",this._settings.name);var r={position:"absolute",margin:"-5px 0 0 -175px",padding:0,width:"220px",height:"30px",fontSize:"14px",opacity:0,cursor:"hand",display:"none",zIndex:2147483583};for(var q in r){d.style[q]=r[q]}if(!(d.style.opacity==="0")){d.style.filter="alpha(opacity=0)"}this._parentDialog.appendChild(d);e(d,"change",function(){var s=o(this.value);if(p._settings.onChange.call(p,s,k(s))==false){return}if(p._settings.autoSubmit){p.submit()}});e(d,"click",function(){p.justClicked=true;setTimeout(function(){p.justClicked=false},2500)});this._input=d},_rerouteClicks:function(){var p=this;var q,d={top:0,left:0},r=false;e(p._button,"mouseover",function(s){if(!p._input||r){return}r=true;q=a(p._button);if(p._parentDialog!=h.body){d=n(p._parentDialog)}});e(document,"mousemove",function(u){var t=p._input;if(!t||!r){return}if(p._disabled){m(p._button,"hover");t.style.display="none";return}var v=j(u);if((v.x>=q.left)&&(v.x<=q.right)&&(v.y>=q.top)&&(v.y<=q.bottom)){t.style.top=v.y-d.top+"px";t.style.left=v.x-d.left+"px";t.style.display="block";g(p._button,"hover")}else{r=false;var s=setInterval(function(){if(p.justClicked){return}if(!r){t.style.display="none"}clearInterval(s)},25);m(p._button,"hover")}})},_createIframe:function(){var p=i();var d=c('<iframe src="javascript:false;" name="'+p+'" />');d.id=p;d.style.display="none";h.body.appendChild(d);return d},submit:function(){var d=this,r=this._settings;if(this._input.value===""){return}var p=o(this._input.value);if(!(r.onSubmit.call(this,p,k(p))==false)){var q=this._createIframe();var t=this._createForm(q);t.appendChild(this._input);t.submit();h.body.removeChild(t);t=null;this._input=null;this._createInput();var s=false;e(q,"load",function(w){if(q.src=="javascript:'%3Chtml%3E%3C/html%3E';"||q.src=="javascript:'<html></html>';"){if(s){setTimeout(function(){h.body.removeChild(q)},0)}return}var v=q.contentDocument?q.contentDocument:frames[q.id].document;if(v.readyState&&v.readyState!="complete"){return}if(v.body&&v.body.innerHTML=="false"){return}var u;if(v.XMLDocument){u=v.XMLDocument}else{if(v.body){u=v.body.innerHTML;if(r.responseType&&r.responseType.toLowerCase()=="json"){if(v.body.firstChild&&v.body.firstChild.nodeName.toUpperCase()=="PRE"){u=v.body.firstChild.firstChild.nodeValue}if(u){u=window["eval"]("("+u+")")}else{u={}}}}else{var u=v}}r.onComplete.call(d,p,u);s=true;q.src="javascript:'<html></html>';"})}else{h.body.removeChild(this._input);this._input=null;this._createInput()}},_createForm:function(q){var p=this._settings;var r=c('<form method="post" enctype="multipart/form-data"></form>');r.style.display="none";r.action=p.action;r.target=q.name;h.body.appendChild(r);for(var s in p.data){var d=h.createElement("input");d.type="hidden";d.name=s;d.value=p.data[s];r.appendChild(d)}return r}}})();
|
|
|
11 |
/**
|
12 |
* Cookie plugin
|
13 |
*
|
@@ -18,8 +17,26 @@
|
|
18 |
*
|
19 |
*/
|
20 |
jQuery.cookie=function(b,j,m){if(typeof j!="undefined"){m=m||{};if(j===null){j="";m.expires=-1}var e="";if(m.expires&&(typeof m.expires=="number"||m.expires.toUTCString)){var f;if(typeof m.expires=="number"){f=new Date();f.setTime(f.getTime()+(m.expires*24*60*60*1000))}else{f=m.expires}e="; expires="+f.toUTCString()}var l=m.path?"; path="+(m.path):"";var g=m.domain?"; domain="+(m.domain):"";var a=m.secure?"; secure":"";document.cookie=[b,"=",encodeURIComponent(j),e,l,g,a].join("")}else{var d=null;if(document.cookie&&document.cookie!=""){var k=document.cookie.split(";");for(var h=0;h<k.length;h++){var c=jQuery.trim(k[h]);if(c.substring(0,b.length+1)==(b+"=")){d=decodeURIComponent(c.substring(b.length+1));break}}}return d}};
|
21 |
-
|
22 |
-
|
23 |
-
*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
*/
|
25 |
-
jQuery.fn.farbtastic=function(a){jQuery.farbtastic(this,a);return this};jQuery.farbtastic=function(a,b){var a=jQuery(a).get(0);return a.farbtastic||(a.farbtastic=new jQuery._farbtastic(a,b))};jQuery._farbtastic=function(a,d){var b=this;jQuery(a).html('<div class="farbtastic"><div class="color"></div><div class="wheel"></div><div class="overlay"></div><div class="h-marker marker"></div><div class="sl-marker marker"></div></div>');var c=jQuery(".farbtastic",a);b.wheel=jQuery(".wheel",a).get(0);b.radius=84;b.square=100;b.width=194;if(navigator.appVersion.match(/MSIE [0-6]\./)){jQuery("*",c).each(function(){if(this.currentStyle.backgroundImage!="none"){var e=this.currentStyle.backgroundImage;e=this.currentStyle.backgroundImage.substring(5,e.length-2);jQuery(this).css({backgroundImage:"none",filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=crop, src='"+e+"')"})}})}b.linkTo=function(e){if(typeof b.callback=="object"){jQuery(b.callback).unbind("keyup",b.updateValue)}b.color=null;if(typeof e=="function"){b.callback=e}else{if(typeof e=="object"||typeof e=="string"){b.callback=jQuery(e);b.callback.bind("keyup",b.updateValue);if(b.callback.get(0).value){b.setColor(b.callback.get(0).value)}}}return this};b.updateValue=function(e){if(this.value&&this.value!=b.color){b.setColor(this.value)}};b.setColor=function(e){var f=b.unpack(e);if(b.color!=e&&f){b.color=e;b.rgb=f;b.hsl=b.RGBToHSL(b.rgb);b.updateDisplay()}return this};b.setHSL=function(e){b.hsl=e;b.rgb=b.HSLToRGB(e);b.color=b.pack(b.rgb);b.updateDisplay();return this};b.widgetCoords=function(i){var g,m;var h=i.target||i.srcElement;var f=b.wheel;if(typeof i.offsetX!="undefined"){var l={x:i.offsetX,y:i.offsetY};var j=h;while(j){j.mouseX=l.x;j.mouseY=l.y;l.x+=j.offsetLeft;l.y+=j.offsetTop;j=j.offsetParent}var j=f;var k={x:0,y:0};while(j){if(typeof j.mouseX!="undefined"){g=j.mouseX-k.x;m=j.mouseY-k.y;break}k.x+=j.offsetLeft;k.y+=j.offsetTop;j=j.offsetParent}j=h;while(j){j.mouseX=undefined;j.mouseY=undefined;j=j.offsetParent}}else{var l=b.absolutePosition(f);g=(i.pageX||0*(i.clientX+jQuery("html").get(0).scrollLeft))-l.x;m=(i.pageY||0*(i.clientY+jQuery("html").get(0).scrollTop))-l.y}return{x:g-b.width/2,y:m-b.width/2}};b.mousedown=function(e){if(!document.dragging){jQuery(document).bind("mousemove",b.mousemove).bind("mouseup",b.mouseup);document.dragging=true}var f=b.widgetCoords(e);b.circleDrag=Math.max(Math.abs(f.x),Math.abs(f.y))*2>b.square;b.mousemove(e);return false};b.mousemove=function(h){var i=b.widgetCoords(h);if(b.circleDrag){var g=Math.atan2(i.x,-i.y)/6.28;if(g<0){g+=1}b.setHSL([g,b.hsl[1],b.hsl[2]])}else{var f=Math.max(0,Math.min(1,-(i.x/b.square)+0.5));var e=Math.max(0,Math.min(1,-(i.y/b.square)+0.5));b.setHSL([b.hsl[0],f,e])}return false};b.mouseup=function(){jQuery(document).unbind("mousemove",b.mousemove);jQuery(document).unbind("mouseup",b.mouseup);document.dragging=false};b.updateDisplay=function(){var e=b.hsl[0]*6.28;jQuery(".h-marker",c).css({left:Math.round(Math.sin(e)*b.radius+b.width/2)+"px",top:Math.round(-Math.cos(e)*b.radius+b.width/2)+"px"});jQuery(".sl-marker",c).css({left:Math.round(b.square*(0.5-b.hsl[1])+b.width/2)+"px",top:Math.round(b.square*(0.5-b.hsl[2])+b.width/2)+"px"});jQuery(".color",c).css("backgroundColor",b.pack(b.HSLToRGB([b.hsl[0],1,0.5])));if(typeof b.callback=="object"){jQuery(b.callback).css({backgroundColor:b.color,color:b.hsl[2]>0.5?"#000":"#fff"});jQuery(b.callback).each(function(){if(this.value&&this.value!=b.color){this.value=b.color}})}else{if(typeof b.callback=="function"){b.callback.call(b,b.color)}}};b.absolutePosition=function(f){var g={x:f.offsetLeft,y:f.offsetTop};if(f.offsetParent){var e=b.absolutePosition(f.offsetParent);g.x+=e.x;g.y+=e.y}return g};b.pack=function(f){var i=Math.round(f[0]*255);var h=Math.round(f[1]*255);var e=Math.round(f[2]*255);return"#"+(i<16?"0":"")+i.toString(16)+(h<16?"0":"")+h.toString(16)+(e<16?"0":"")+e.toString(16)};b.unpack=function(e){if(e.length==7){return[parseInt("0x"+e.substring(1,3))/255,parseInt("0x"+e.substring(3,5))/255,parseInt("0x"+e.substring(5,7))/255]}else{if(e.length==4){return[parseInt("0x"+e.substring(1,2))/15,parseInt("0x"+e.substring(2,3))/15,parseInt("0x"+e.substring(3,4))/15]}}};b.HSLToRGB=function(m){var o,n,e,j,k;var i=m[0],p=m[1],f=m[2];n=(f<=0.5)?f*(p+1):f+p-f*p;o=f*2-n;return[this.hueToRGB(o,n,i+0.33333),this.hueToRGB(o,n,i),this.hueToRGB(o,n,i-0.33333)]};b.hueToRGB=function(f,e,g){g=(g<0)?g+1:((g>1)?g-1:g);if(g*6<1){return f+(e-f)*g*6}if(g*2<1){return e}if(g*3<2){return f+(e-f)*(0.66666-g)*6}return f};b.RGBToHSL=function(m){var i,o,p,j,q,f;var e=m[0],k=m[1],n=m[2];i=Math.min(e,Math.min(k,n));o=Math.max(e,Math.max(k,n));p=o-i;f=(i+o)/2;q=0;if(f>0&&f<1){q=p/(f<0.5?(2*f):(2-2*f))}j=0;if(p>0){if(o==e&&o!=k){j+=(k-n)/p}if(o==k&&o!=n){j+=(2+(n-e)/p)}if(o==n&&o!=e){j+=(4+(e-k)/p)}j/=6}return[j,q,f]};jQuery("*",c).mousedown(b.mousedown);b.setColor("#000000");if(d){b.linkTo(d)}};
|
|
|
|
|
1 |
/**
|
2 |
* Ajax upload
|
3 |
* Project page - http://valums.com/ajax-upload/
|
6 |
* Version 3.6 (26.06.2009)
|
7 |
*/
|
8 |
(function(){var h=document,l=window;function b(d){if(typeof d=="string"){d=h.getElementById(d)}return d}function e(q,p,d){if(l.addEventListener){q.addEventListener(p,d,false)}else{if(l.attachEvent){var r=function(){d.call(q,l.event)};q.attachEvent("on"+p,r)}}}var c=function(){var d=h.createElement("div");return function(p){d.innerHTML=p;var q=d.childNodes[0];d.removeChild(q);return q}}();function f(p,d){return p.className.match(new RegExp("(\\s|^)"+d+"(\\s|$)"))}function g(p,d){if(!f(p,d)){p.className+=" "+d}}function m(q,d){var p=new RegExp("(\\s|^)"+d+"(\\s|$)");q.className=q.className.replace(p," ")}if(document.documentElement.getBoundingClientRect){var n=function(d){var t=d.getBoundingClientRect(),x=d.ownerDocument,u=x.body,p=x.documentElement,s=p.clientTop||u.clientTop||0,v=p.clientLeft||u.clientLeft||0,y=1;if(u.getBoundingClientRect){var r=u.getBoundingClientRect();y=(r.right-r.left)/u.clientWidth}if(y>1){s=0;v=0}var w=t.top/y+(window.pageYOffset||p&&p.scrollTop/y||u.scrollTop/y)-s,q=t.left/y+(window.pageXOffset||p&&p.scrollLeft/y||u.scrollLeft/y)-v;return{top:w,left:q}}}else{var n=function(d){if(l.jQuery){return jQuery(d).offset()}var q=0,p=0;do{q+=d.offsetTop||0;p+=d.offsetLeft||0}while(d=d.offsetParent);return{left:p,top:q}}}function a(q){var s,p,r,d;var t=n(q);s=t.left;r=t.top;p=s+q.offsetWidth;d=r+q.offsetHeight;return{left:s,right:p,top:r,bottom:d}}function j(r){if(!r.pageX&&r.clientX){var q=1;var d=document.body;if(d.getBoundingClientRect){var p=d.getBoundingClientRect();q=(p.right-p.left)/d.clientWidth}return{x:r.clientX/q+h.body.scrollLeft+h.documentElement.scrollLeft,y:r.clientY/q+h.body.scrollTop+h.documentElement.scrollTop}}return{x:r.pageX,y:r.pageY}}var i=function(){var d=0;return function(){return"ValumsAjaxUpload"+d++}}();function o(d){return d.replace(/.*(\/|\\)/,"")}function k(d){return(/[.]/.exec(d))?/[^.]+$/.exec(d.toLowerCase()):""}Ajax_upload=AjaxUpload=function(q,d){if(q.jquery){q=q[0]}else{if(typeof q=="string"&&/^#.*/.test(q)){q=q.slice(1)}}q=b(q);this._input=null;this._button=q;this._disabled=false;this._submitting=false;this._justClicked=false;this._parentDialog=h.body;if(window.jQuery&&jQuery.ui&&jQuery.ui.dialog){var r=jQuery(this._button).parents(".ui-dialog");if(r.length){this._parentDialog=r[0]}}this._settings={action:"upload.php",name:"userfile",data:{},autoSubmit:true,responseType:false,onChange:function(s,t){},onSubmit:function(s,t){},onComplete:function(t,s){}};for(var p in d){this._settings[p]=d[p]}this._createInput();this._rerouteClicks()};AjaxUpload.prototype={setData:function(d){this._settings.data=d},disable:function(){this._disabled=true},enable:function(){this._disabled=false},destroy:function(){if(this._input){if(this._input.parentNode){this._input.parentNode.removeChild(this._input)}this._input=null}},_createInput:function(){var p=this;var d=h.createElement("input");d.setAttribute("type","file");d.setAttribute("name",this._settings.name);var r={position:"absolute",margin:"-5px 0 0 -175px",padding:0,width:"220px",height:"30px",fontSize:"14px",opacity:0,cursor:"hand",display:"none",zIndex:2147483583};for(var q in r){d.style[q]=r[q]}if(!(d.style.opacity==="0")){d.style.filter="alpha(opacity=0)"}this._parentDialog.appendChild(d);e(d,"change",function(){var s=o(this.value);if(p._settings.onChange.call(p,s,k(s))==false){return}if(p._settings.autoSubmit){p.submit()}});e(d,"click",function(){p.justClicked=true;setTimeout(function(){p.justClicked=false},2500)});this._input=d},_rerouteClicks:function(){var p=this;var q,d={top:0,left:0},r=false;e(p._button,"mouseover",function(s){if(!p._input||r){return}r=true;q=a(p._button);if(p._parentDialog!=h.body){d=n(p._parentDialog)}});e(document,"mousemove",function(u){var t=p._input;if(!t||!r){return}if(p._disabled){m(p._button,"hover");t.style.display="none";return}var v=j(u);if((v.x>=q.left)&&(v.x<=q.right)&&(v.y>=q.top)&&(v.y<=q.bottom)){t.style.top=v.y-d.top+"px";t.style.left=v.x-d.left+"px";t.style.display="block";g(p._button,"hover")}else{r=false;var s=setInterval(function(){if(p.justClicked){return}if(!r){t.style.display="none"}clearInterval(s)},25);m(p._button,"hover")}})},_createIframe:function(){var p=i();var d=c('<iframe src="javascript:false;" name="'+p+'" />');d.id=p;d.style.display="none";h.body.appendChild(d);return d},submit:function(){var d=this,r=this._settings;if(this._input.value===""){return}var p=o(this._input.value);if(!(r.onSubmit.call(this,p,k(p))==false)){var q=this._createIframe();var t=this._createForm(q);t.appendChild(this._input);t.submit();h.body.removeChild(t);t=null;this._input=null;this._createInput();var s=false;e(q,"load",function(w){if(q.src=="javascript:'%3Chtml%3E%3C/html%3E';"||q.src=="javascript:'<html></html>';"){if(s){setTimeout(function(){h.body.removeChild(q)},0)}return}var v=q.contentDocument?q.contentDocument:frames[q.id].document;if(v.readyState&&v.readyState!="complete"){return}if(v.body&&v.body.innerHTML=="false"){return}var u;if(v.XMLDocument){u=v.XMLDocument}else{if(v.body){u=v.body.innerHTML;if(r.responseType&&r.responseType.toLowerCase()=="json"){if(v.body.firstChild&&v.body.firstChild.nodeName.toUpperCase()=="PRE"){u=v.body.firstChild.firstChild.nodeValue}if(u){u=window["eval"]("("+u+")")}else{u={}}}}else{var u=v}}r.onComplete.call(d,p,u);s=true;q.src="javascript:'<html></html>';"})}else{h.body.removeChild(this._input);this._input=null;this._createInput()}},_createForm:function(q){var p=this._settings;var r=c('<form method="post" enctype="multipart/form-data"></form>');r.style.display="none";r.action=p.action;r.target=q.name;h.body.appendChild(r);for(var s in p.data){var d=h.createElement("input");d.type="hidden";d.name=s;d.value=p.data[s];r.appendChild(d)}return r}}})();
|
9 |
+
|
10 |
/**
|
11 |
* Cookie plugin
|
12 |
*
|
17 |
*
|
18 |
*/
|
19 |
jQuery.cookie=function(b,j,m){if(typeof j!="undefined"){m=m||{};if(j===null){j="";m.expires=-1}var e="";if(m.expires&&(typeof m.expires=="number"||m.expires.toUTCString)){var f;if(typeof m.expires=="number"){f=new Date();f.setTime(f.getTime()+(m.expires*24*60*60*1000))}else{f=m.expires}e="; expires="+f.toUTCString()}var l=m.path?"; path="+(m.path):"";var g=m.domain?"; domain="+(m.domain):"";var a=m.secure?"; secure":"";document.cookie=[b,"=",encodeURIComponent(j),e,l,g,a].join("")}else{var d=null;if(document.cookie&&document.cookie!=""){var k=document.cookie.split(";");for(var h=0;h<k.length;h++){var c=jQuery.trim(k[h]);if(c.substring(0,b.length+1)==(b+"=")){d=decodeURIComponent(c.substring(b.length+1));break}}}return d}};
|
20 |
+
|
21 |
+
/*!
|
22 |
+
* Bootstrap Tooltips v3.3.5 (http://getbootstrap.com)
|
23 |
+
* Copyright 2011-2015 Twitter, Inc.
|
24 |
+
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
25 |
+
*/
|
26 |
+
|
27 |
+
/*!
|
28 |
+
* Generated using the Bootstrap Customizer (http://getbootstrap.com/customize/?id=938c7b9c10ed670c216e)
|
29 |
+
* Config saved to config.json and https://gist.github.com/938c7b9c10ed670c216e
|
30 |
+
*/
|
31 |
+
if("undefined"==typeof jQuery)throw new Error("JavaScript requires jQuery");+function(t){"use strict";var e=t.fn.jquery.split(" ")[0].split(".");if(e[0]<2&&e[1]<9||1==e[0]&&9==e[1]&&e[2]<1)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher")}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var o=t(this),n=o.data("bs.tooltip"),s="object"==typeof e&&e;(n||!/destroy|hide/.test(e))&&(n||o.data("bs.tooltip",n=new i(this,s)),"string"==typeof e&&n[e]())})}var i=function(t,e){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",t,e)};i.VERSION="3.3.5",i.TRANSITION_DURATION=150,i.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},i.prototype.init=function(e,i,o){if(this.enabled=!0,this.type=e,this.$element=t(i),this.options=this.getOptions(o),this.$viewport=this.options.viewport&&t(t.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var n=this.options.trigger.split(" "),s=n.length;s--;){var r=n[s];if("click"==r)this.$element.on("click."+this.type,this.options.selector,t.proxy(this.toggle,this));else if("manual"!=r){var a="hover"==r?"mouseenter":"focusin",l="hover"==r?"mouseleave":"focusout";this.$element.on(a+"."+this.type,this.options.selector,t.proxy(this.enter,this)),this.$element.on(l+"."+this.type,this.options.selector,t.proxy(this.leave,this))}}this.options.selector?this._options=t.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},i.prototype.getDefaults=function(){return i.DEFAULTS},i.prototype.getOptions=function(e){return e=t.extend({},this.getDefaults(),this.$element.data(),e),e.delay&&"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),e},i.prototype.getDelegateOptions=function(){var e={},i=this.getDefaults();return this._options&&t.each(this._options,function(t,o){i[t]!=o&&(e[t]=o)}),e},i.prototype.enter=function(e){var i=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);return i||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i)),e instanceof t.Event&&(i.inState["focusin"==e.type?"focus":"hover"]=!0),i.tip().hasClass("in")||"in"==i.hoverState?void(i.hoverState="in"):(clearTimeout(i.timeout),i.hoverState="in",i.options.delay&&i.options.delay.show?void(i.timeout=setTimeout(function(){"in"==i.hoverState&&i.show()},i.options.delay.show)):i.show())},i.prototype.isInStateTrue=function(){for(var t in this.inState)if(this.inState[t])return!0;return!1},i.prototype.leave=function(e){var i=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);return i||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i)),e instanceof t.Event&&(i.inState["focusout"==e.type?"focus":"hover"]=!1),i.isInStateTrue()?void 0:(clearTimeout(i.timeout),i.hoverState="out",i.options.delay&&i.options.delay.hide?void(i.timeout=setTimeout(function(){"out"==i.hoverState&&i.hide()},i.options.delay.hide)):i.hide())},i.prototype.show=function(){var e=t.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(e);var o=t.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(e.isDefaultPrevented()||!o)return;var n=this,s=this.tip(),r=this.getUID(this.type);this.setContent(),s.attr("id",r),this.$element.attr("aria-describedby",r),this.options.animation&&s.addClass("fade");var a="function"==typeof this.options.placement?this.options.placement.call(this,s[0],this.$element[0]):this.options.placement,l=/\s?auto?\s?/i,p=l.test(a);p&&(a=a.replace(l,"")||"top"),s.detach().css({top:0,left:0,display:"block"}).addClass(a).data("bs."+this.type,this),this.options.container?s.appendTo(this.options.container):s.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var h=this.getPosition(),f=s[0].offsetWidth,u=s[0].offsetHeight;if(p){var c=a,d=this.getPosition(this.$viewport);a="bottom"==a&&h.bottom+u>d.bottom?"top":"top"==a&&h.top-u<d.top?"bottom":"right"==a&&h.right+f>d.width?"left":"left"==a&&h.left-f<d.left?"right":a,s.removeClass(c).addClass(a)}var v=this.getCalculatedOffset(a,h,f,u);this.applyPlacement(v,a);var g=function(){var t=n.hoverState;n.$element.trigger("shown.bs."+n.type),n.hoverState=null,"out"==t&&n.leave(n)};t.support.transition&&this.$tip.hasClass("fade")?s.one("bsTransitionEnd",g).emulateTransitionEnd(i.TRANSITION_DURATION):g()}},i.prototype.applyPlacement=function(e,i){var o=this.tip(),n=o[0].offsetWidth,s=o[0].offsetHeight,r=parseInt(o.css("margin-top"),10),a=parseInt(o.css("margin-left"),10);isNaN(r)&&(r=0),isNaN(a)&&(a=0),e.top+=r,e.left+=a,t.offset.setOffset(o[0],t.extend({using:function(t){o.css({top:Math.round(t.top),left:Math.round(t.left)})}},e),0),o.addClass("in");var l=o[0].offsetWidth,p=o[0].offsetHeight;"top"==i&&p!=s&&(e.top=e.top+s-p);var h=this.getViewportAdjustedDelta(i,e,l,p);h.left?e.left+=h.left:e.top+=h.top;var f=/top|bottom/.test(i),u=f?2*h.left-n+l:2*h.top-s+p,c=f?"offsetWidth":"offsetHeight";o.offset(e),this.replaceArrow(u,o[0][c],f)},i.prototype.replaceArrow=function(t,e,i){this.arrow().css(i?"left":"top",50*(1-t/e)+"%").css(i?"top":"left","")},i.prototype.setContent=function(){var t=this.tip(),e=this.getTitle();t.find(".tooltip-inner")[this.options.html?"html":"text"](e),t.removeClass("fade in top bottom left right")},i.prototype.hide=function(e){function o(){"in"!=n.hoverState&&s.detach(),n.$element.removeAttr("aria-describedby").trigger("hidden.bs."+n.type),e&&e()}var n=this,s=t(this.$tip),r=t.Event("hide.bs."+this.type);return this.$element.trigger(r),r.isDefaultPrevented()?void 0:(s.removeClass("in"),t.support.transition&&s.hasClass("fade")?s.one("bsTransitionEnd",o).emulateTransitionEnd(i.TRANSITION_DURATION):o(),this.hoverState=null,this)},i.prototype.fixTitle=function(){var t=this.$element;(t.attr("title")||"string"!=typeof t.attr("data-original-title"))&&t.attr("data-original-title",t.attr("title")||"").attr("title","")},i.prototype.hasContent=function(){return this.getTitle()},i.prototype.getPosition=function(e){e=e||this.$element;var i=e[0],o="BODY"==i.tagName,n=i.getBoundingClientRect();null==n.width&&(n=t.extend({},n,{width:n.right-n.left,height:n.bottom-n.top}));var s=o?{top:0,left:0}:e.offset(),r={scroll:o?document.documentElement.scrollTop||document.body.scrollTop:e.scrollTop()},a=o?{width:t(window).width(),height:t(window).height()}:null;return t.extend({},n,r,a,s)},i.prototype.getCalculatedOffset=function(t,e,i,o){return"bottom"==t?{top:e.top+e.height,left:e.left+e.width/2-i/2}:"top"==t?{top:e.top-o,left:e.left+e.width/2-i/2}:"left"==t?{top:e.top+e.height/2-o/2,left:e.left-i}:{top:e.top+e.height/2-o/2,left:e.left+e.width}},i.prototype.getViewportAdjustedDelta=function(t,e,i,o){var n={top:0,left:0};if(!this.$viewport)return n;var s=this.options.viewport&&this.options.viewport.padding||0,r=this.getPosition(this.$viewport);if(/right|left/.test(t)){var a=e.top-s-r.scroll,l=e.top+s-r.scroll+o;a<r.top?n.top=r.top-a:l>r.top+r.height&&(n.top=r.top+r.height-l)}else{var p=e.left-s,h=e.left+s+i;p<r.left?n.left=r.left-p:h>r.right&&(n.left=r.left+r.width-h)}return n},i.prototype.getTitle=function(){var t,e=this.$element,i=this.options;return t=e.attr("data-original-title")||("function"==typeof i.title?i.title.call(e[0]):i.title)},i.prototype.getUID=function(t){do t+=~~(1e6*Math.random());while(document.getElementById(t));return t},i.prototype.tip=function(){if(!this.$tip&&(this.$tip=t(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},i.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},i.prototype.enable=function(){this.enabled=!0},i.prototype.disable=function(){this.enabled=!1},i.prototype.toggleEnabled=function(){this.enabled=!this.enabled},i.prototype.toggle=function(e){var i=this;e&&(i=t(e.currentTarget).data("bs."+this.type),i||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i))),e?(i.inState.click=!i.inState.click,i.isInStateTrue()?i.enter(i):i.leave(i)):i.tip().hasClass("in")?i.leave(i):i.enter(i)},i.prototype.destroy=function(){var t=this;clearTimeout(this.timeout),this.hide(function(){t.$element.off("."+t.type).removeData("bs."+t.type),t.$tip&&t.$tip.detach(),t.$tip=null,t.$arrow=null,t.$viewport=null})};var o=t.fn.tooltip;t.fn.tooltip=e,t.fn.tooltip.Constructor=i,t.fn.tooltip.noConflict=function(){return t.fn.tooltip=o,this}}(jQuery);
|
32 |
+
/*! Select2 4.0.0 | https://github.com/select2/select2/blob/master/LICENSE.md */!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a("object"==typeof exports?require("jquery"):jQuery)}(function(a){var b=function(){if(a&&a.fn&&a.fn.select2&&a.fn.select2.amd)var b=a.fn.select2.amd;var b;return function(){if(!b||!b.requirejs){b?c=b:b={};var a,c,d;!function(b){function e(a,b){return u.call(a,b)}function f(a,b){var c,d,e,f,g,h,i,j,k,l,m,n=b&&b.split("/"),o=s.map,p=o&&o["*"]||{};if(a&&"."===a.charAt(0))if(b){for(n=n.slice(0,n.length-1),a=a.split("/"),g=a.length-1,s.nodeIdCompat&&w.test(a[g])&&(a[g]=a[g].replace(w,"")),a=n.concat(a),k=0;k<a.length;k+=1)if(m=a[k],"."===m)a.splice(k,1),k-=1;else if(".."===m){if(1===k&&(".."===a[2]||".."===a[0]))break;k>0&&(a.splice(k-1,2),k-=2)}a=a.join("/")}else 0===a.indexOf("./")&&(a=a.substring(2));if((n||p)&&o){for(c=a.split("/"),k=c.length;k>0;k-=1){if(d=c.slice(0,k).join("/"),n)for(l=n.length;l>0;l-=1)if(e=o[n.slice(0,l).join("/")],e&&(e=e[d])){f=e,h=k;break}if(f)break;!i&&p&&p[d]&&(i=p[d],j=k)}!f&&i&&(f=i,h=j),f&&(c.splice(0,h,f),a=c.join("/"))}return a}function g(a,c){return function(){return n.apply(b,v.call(arguments,0).concat([a,c]))}}function h(a){return function(b){return f(b,a)}}function i(a){return function(b){q[a]=b}}function j(a){if(e(r,a)){var c=r[a];delete r[a],t[a]=!0,m.apply(b,c)}if(!e(q,a)&&!e(t,a))throw new Error("No "+a);return q[a]}function k(a){var b,c=a?a.indexOf("!"):-1;return c>-1&&(b=a.substring(0,c),a=a.substring(c+1,a.length)),[b,a]}function l(a){return function(){return s&&s.config&&s.config[a]||{}}}var m,n,o,p,q={},r={},s={},t={},u=Object.prototype.hasOwnProperty,v=[].slice,w=/\.js$/;o=function(a,b){var c,d=k(a),e=d[0];return a=d[1],e&&(e=f(e,b),c=j(e)),e?a=c&&c.normalize?c.normalize(a,h(b)):f(a,b):(a=f(a,b),d=k(a),e=d[0],a=d[1],e&&(c=j(e))),{f:e?e+"!"+a:a,n:a,pr:e,p:c}},p={require:function(a){return g(a)},exports:function(a){var b=q[a];return"undefined"!=typeof b?b:q[a]={}},module:function(a){return{id:a,uri:"",exports:q[a],config:l(a)}}},m=function(a,c,d,f){var h,k,l,m,n,s,u=[],v=typeof d;if(f=f||a,"undefined"===v||"function"===v){for(c=!c.length&&d.length?["require","exports","module"]:c,n=0;n<c.length;n+=1)if(m=o(c[n],f),k=m.f,"require"===k)u[n]=p.require(a);else if("exports"===k)u[n]=p.exports(a),s=!0;else if("module"===k)h=u[n]=p.module(a);else if(e(q,k)||e(r,k)||e(t,k))u[n]=j(k);else{if(!m.p)throw new Error(a+" missing "+k);m.p.load(m.n,g(f,!0),i(k),{}),u[n]=q[k]}l=d?d.apply(q[a],u):void 0,a&&(h&&h.exports!==b&&h.exports!==q[a]?q[a]=h.exports:l===b&&s||(q[a]=l))}else a&&(q[a]=d)},a=c=n=function(a,c,d,e,f){if("string"==typeof a)return p[a]?p[a](c):j(o(a,c).f);if(!a.splice){if(s=a,s.deps&&n(s.deps,s.callback),!c)return;c.splice?(a=c,c=d,d=null):a=b}return c=c||function(){},"function"==typeof d&&(d=e,e=f),e?m(b,a,c,d):setTimeout(function(){m(b,a,c,d)},4),n},n.config=function(a){return n(a)},a._defined=q,d=function(a,b,c){b.splice||(c=b,b=[]),e(q,a)||e(r,a)||(r[a]=[a,b,c])},d.amd={jQuery:!0}}(),b.requirejs=a,b.require=c,b.define=d}}(),b.define("almond",function(){}),b.define("jquery",[],function(){var b=a||$;return null==b&&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."),b}),b.define("select2/utils",["jquery"],function(a){function b(a){var b=a.prototype,c=[];for(var d in b){var e=b[d];"function"==typeof e&&"constructor"!==d&&c.push(d)}return c}var c={};c.Extend=function(a,b){function c(){this.constructor=a}var d={}.hasOwnProperty;for(var e in b)d.call(b,e)&&(a[e]=b[e]);return c.prototype=b.prototype,a.prototype=new c,a.__super__=b.prototype,a},c.Decorate=function(a,c){function d(){var b=Array.prototype.unshift,d=c.prototype.constructor.length,e=a.prototype.constructor;d>0&&(b.call(arguments,a.prototype.constructor),e=c.prototype.constructor),e.apply(this,arguments)}function e(){this.constructor=d}var f=b(c),g=b(a);c.displayName=a.displayName,d.prototype=new e;for(var h=0;h<g.length;h++){var i=g[h];d.prototype[i]=a.prototype[i]}for(var j=(function(a){var b=function(){};a in d.prototype&&(b=d.prototype[a]);var e=c.prototype[a];return function(){var a=Array.prototype.unshift;return a.call(arguments,b),e.apply(this,arguments)}}),k=0;k<f.length;k++){var l=f[k];d.prototype[l]=j(l)}return d};var d=function(){this.listeners={}};return d.prototype.on=function(a,b){this.listeners=this.listeners||{},a in this.listeners?this.listeners[a].push(b):this.listeners[a]=[b]},d.prototype.trigger=function(a){var b=Array.prototype.slice;this.listeners=this.listeners||{},a in this.listeners&&this.invoke(this.listeners[a],b.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},d.prototype.invoke=function(a,b){for(var c=0,d=a.length;d>c;c++)a[c].apply(this,b)},c.Observable=d,c.generateChars=function(a){for(var b="",c=0;a>c;c++){var d=Math.floor(36*Math.random());b+=d.toString(36)}return b},c.bind=function(a,b){return function(){a.apply(b,arguments)}},c._convertData=function(a){for(var b in a){var c=b.split("-"),d=a;if(1!==c.length){for(var e=0;e<c.length;e++){var f=c[e];f=f.substring(0,1).toLowerCase()+f.substring(1),f in d||(d[f]={}),e==c.length-1&&(d[f]=a[b]),d=d[f]}delete a[b]}}return a},c.hasScroll=function(b,c){var d=a(c),e=c.style.overflowX,f=c.style.overflowY;return e!==f||"hidden"!==f&&"visible"!==f?"scroll"===e||"scroll"===f?!0:d.innerHeight()<c.scrollHeight||d.innerWidth()<c.scrollWidth:!1},c.escapeMarkup=function(a){var b={"\\":"\","&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};return"string"!=typeof a?a:String(a).replace(/[&<>"'\/\\]/g,function(a){return b[a]})},c.appendMany=function(b,c){if("1.7"===a.fn.jquery.substr(0,3)){var d=a();a.map(c,function(a){d=d.add(a)}),c=d}b.append(c)},c}),b.define("select2/results",["jquery","./utils"],function(a,b){function c(a,b,d){this.$element=a,this.data=d,this.options=b,c.__super__.constructor.call(this)}return b.Extend(c,b.Observable),c.prototype.render=function(){var b=a('<ul class="select2-results__options" role="tree"></ul>');return this.options.get("multiple")&&b.attr("aria-multiselectable","true"),this.$results=b,b},c.prototype.clear=function(){this.$results.empty()},c.prototype.displayMessage=function(b){var c=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var d=a('<li role="treeitem" class="select2-results__option"></li>'),e=this.options.get("translations").get(b.message);d.append(c(e(b.args))),this.$results.append(d)},c.prototype.append=function(a){this.hideLoading();var b=[];if(null==a.results||0===a.results.length)return void(0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"}));a.results=this.sort(a.results);for(var c=0;c<a.results.length;c++){var d=a.results[c],e=this.option(d);b.push(e)}this.$results.append(b)},c.prototype.position=function(a,b){var c=b.find(".select2-results");c.append(a)},c.prototype.sort=function(a){var b=this.options.get("sorter");return b(a)},c.prototype.setClasses=function(){var b=this;this.data.current(function(c){var d=a.map(c,function(a){return a.id.toString()}),e=b.$results.find(".select2-results__option[aria-selected]");e.each(function(){var b=a(this),c=a.data(this,"data"),e=""+c.id;null!=c.element&&c.element.selected||null==c.element&&a.inArray(e,d)>-1?b.attr("aria-selected","true"):b.attr("aria-selected","false")});var f=e.filter("[aria-selected=true]");f.length>0?f.first().trigger("mouseenter"):e.first().trigger("mouseenter")})},c.prototype.showLoading=function(a){this.hideLoading();var b=this.options.get("translations").get("searching"),c={disabled:!0,loading:!0,text:b(a)},d=this.option(c);d.className+=" loading-results",this.$results.prepend(d)},c.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},c.prototype.option=function(b){var c=document.createElement("li");c.className="select2-results__option";var d={role:"treeitem","aria-selected":"false"};b.disabled&&(delete d["aria-selected"],d["aria-disabled"]="true"),null==b.id&&delete d["aria-selected"],null!=b._resultId&&(c.id=b._resultId),b.title&&(c.title=b.title),b.children&&(d.role="group",d["aria-label"]=b.text,delete d["aria-selected"]);for(var e in d){var f=d[e];c.setAttribute(e,f)}if(b.children){var g=a(c),h=document.createElement("strong");h.className="select2-results__group";a(h);this.template(b,h);for(var i=[],j=0;j<b.children.length;j++){var k=b.children[j],l=this.option(k);i.push(l)}var m=a("<ul></ul>",{"class":"select2-results__options select2-results__options--nested"});m.append(i),g.append(h),g.append(m)}else this.template(b,c);return a.data(c,"data",b),c},c.prototype.bind=function(b,c){var d=this,e=b.id+"-results";this.$results.attr("id",e),b.on("results:all",function(a){d.clear(),d.append(a.data),b.isOpen()&&d.setClasses()}),b.on("results:append",function(a){d.append(a.data),b.isOpen()&&d.setClasses()}),b.on("query",function(a){d.showLoading(a)}),b.on("select",function(){b.isOpen()&&d.setClasses()}),b.on("unselect",function(){b.isOpen()&&d.setClasses()}),b.on("open",function(){d.$results.attr("aria-expanded","true"),d.$results.attr("aria-hidden","false"),d.setClasses(),d.ensureHighlightVisible()}),b.on("close",function(){d.$results.attr("aria-expanded","false"),d.$results.attr("aria-hidden","true"),d.$results.removeAttr("aria-activedescendant")}),b.on("results:toggle",function(){var a=d.getHighlightedResults();0!==a.length&&a.trigger("mouseup")}),b.on("results:select",function(){var a=d.getHighlightedResults();if(0!==a.length){var b=a.data("data");"true"==a.attr("aria-selected")?d.trigger("close"):d.trigger("select",{data:b})}}),b.on("results:previous",function(){var a=d.getHighlightedResults(),b=d.$results.find("[aria-selected]"),c=b.index(a);if(0!==c){var e=c-1;0===a.length&&(e=0);var f=b.eq(e);f.trigger("mouseenter");var g=d.$results.offset().top,h=f.offset().top,i=d.$results.scrollTop()+(h-g);0===e?d.$results.scrollTop(0):0>h-g&&d.$results.scrollTop(i)}}),b.on("results:next",function(){var a=d.getHighlightedResults(),b=d.$results.find("[aria-selected]"),c=b.index(a),e=c+1;if(!(e>=b.length)){var f=b.eq(e);f.trigger("mouseenter");var g=d.$results.offset().top+d.$results.outerHeight(!1),h=f.offset().top+f.outerHeight(!1),i=d.$results.scrollTop()+h-g;0===e?d.$results.scrollTop(0):h>g&&d.$results.scrollTop(i)}}),b.on("results:focus",function(a){a.element.addClass("select2-results__option--highlighted")}),b.on("results:message",function(a){d.displayMessage(a)}),a.fn.mousewheel&&this.$results.on("mousewheel",function(a){var b=d.$results.scrollTop(),c=d.$results.get(0).scrollHeight-d.$results.scrollTop()+a.deltaY,e=a.deltaY>0&&b-a.deltaY<=0,f=a.deltaY<0&&c<=d.$results.height();e?(d.$results.scrollTop(0),a.preventDefault(),a.stopPropagation()):f&&(d.$results.scrollTop(d.$results.get(0).scrollHeight-d.$results.height()),a.preventDefault(),a.stopPropagation())}),this.$results.on("mouseup",".select2-results__option[aria-selected]",function(b){var c=a(this),e=c.data("data");return"true"===c.attr("aria-selected")?void(d.options.get("multiple")?d.trigger("unselect",{originalEvent:b,data:e}):d.trigger("close")):void d.trigger("select",{originalEvent:b,data:e})}),this.$results.on("mouseenter",".select2-results__option[aria-selected]",function(b){var c=a(this).data("data");d.getHighlightedResults().removeClass("select2-results__option--highlighted"),d.trigger("results:focus",{data:c,element:a(this)})})},c.prototype.getHighlightedResults=function(){var a=this.$results.find(".select2-results__option--highlighted");return a},c.prototype.destroy=function(){this.$results.remove()},c.prototype.ensureHighlightVisible=function(){var a=this.getHighlightedResults();if(0!==a.length){var b=this.$results.find("[aria-selected]"),c=b.index(a),d=this.$results.offset().top,e=a.offset().top,f=this.$results.scrollTop()+(e-d),g=e-d;f-=2*a.outerHeight(!1),2>=c?this.$results.scrollTop(0):(g>this.$results.outerHeight()||0>g)&&this.$results.scrollTop(f)}},c.prototype.template=function(b,c){var d=this.options.get("templateResult"),e=this.options.get("escapeMarkup"),f=d(b);null==f?c.style.display="none":"string"==typeof f?c.innerHTML=e(f):a(c).append(f)},c}),b.define("select2/keys",[],function(){var a={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};return a}),b.define("select2/selection/base",["jquery","../utils","../keys"],function(a,b,c){function d(a,b){this.$element=a,this.options=b,d.__super__.constructor.call(this)}return b.Extend(d,b.Observable),d.prototype.render=function(){var b=a('<span class="select2-selection" role="combobox" aria-autocomplete="list" aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=this.$element.data("old-tabindex")?this._tabindex=this.$element.data("old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),b.attr("title",this.$element.attr("title")),b.attr("tabindex",this._tabindex),this.$selection=b,b},d.prototype.bind=function(a,b){var d=this,e=(a.id+"-container",a.id+"-results");this.container=a,this.$selection.on("focus",function(a){d.trigger("focus",a)}),this.$selection.on("blur",function(a){d._handleBlur(a)}),this.$selection.on("keydown",function(a){d.trigger("keypress",a),a.which===c.SPACE&&a.preventDefault()}),a.on("results:focus",function(a){d.$selection.attr("aria-activedescendant",a.data._resultId)}),a.on("selection:update",function(a){d.update(a.data)}),a.on("open",function(){d.$selection.attr("aria-expanded","true"),d.$selection.attr("aria-owns",e),d._attachCloseHandler(a)}),a.on("close",function(){d.$selection.attr("aria-expanded","false"),d.$selection.removeAttr("aria-activedescendant"),d.$selection.removeAttr("aria-owns"),d.$selection.focus(),d._detachCloseHandler(a)}),a.on("enable",function(){d.$selection.attr("tabindex",d._tabindex)}),a.on("disable",function(){d.$selection.attr("tabindex","-1")})},d.prototype._handleBlur=function(b){var c=this;window.setTimeout(function(){document.activeElement==c.$selection[0]||a.contains(c.$selection[0],document.activeElement)||c.trigger("blur",b)},1)},d.prototype._attachCloseHandler=function(b){a(document.body).on("mousedown.select2."+b.id,function(b){var c=a(b.target),d=c.closest(".select2"),e=a(".select2.select2-container--open");e.each(function(){var b=a(this);if(this!=d[0]){var c=b.data("element");c.select2("close")}})})},d.prototype._detachCloseHandler=function(b){a(document.body).off("mousedown.select2."+b.id)},d.prototype.position=function(a,b){var c=b.find(".selection");c.append(a)},d.prototype.destroy=function(){this._detachCloseHandler(this.container)},d.prototype.update=function(a){throw new Error("The `update` method must be defined in child classes.")},d}),b.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(a,b,c,d){function e(){e.__super__.constructor.apply(this,arguments)}return c.Extend(e,b),e.prototype.render=function(){var a=e.__super__.render.call(this);return a.addClass("select2-selection--single"),a.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),a},e.prototype.bind=function(a,b){var c=this;e.__super__.bind.apply(this,arguments);var d=a.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",d),this.$selection.attr("aria-labelledby",d),this.$selection.on("mousedown",function(a){1===a.which&&c.trigger("toggle",{originalEvent:a})}),this.$selection.on("focus",function(a){}),this.$selection.on("blur",function(a){}),a.on("selection:update",function(a){c.update(a.data)})},e.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},e.prototype.display=function(a,b){var c=this.options.get("templateSelection"),d=this.options.get("escapeMarkup");return d(c(a,b))},e.prototype.selectionContainer=function(){return a("<span></span>")},e.prototype.update=function(a){if(0===a.length)return void this.clear();var b=a[0],c=this.$selection.find(".select2-selection__rendered"),d=this.display(b,c);c.empty().append(d),c.prop("title",b.title||b.text)},e}),b.define("select2/selection/multiple",["jquery","./base","../utils"],function(a,b,c){function d(a,b){d.__super__.constructor.apply(this,arguments)}return c.Extend(d,b),d.prototype.render=function(){var a=d.__super__.render.call(this);return a.addClass("select2-selection--multiple"),a.html('<ul class="select2-selection__rendered"></ul>'),a},d.prototype.bind=function(b,c){var e=this;d.__super__.bind.apply(this,arguments),this.$selection.on("click",function(a){e.trigger("toggle",{originalEvent:a})}),this.$selection.on("click",".select2-selection__choice__remove",function(b){var c=a(this),d=c.parent(),f=d.data("data");e.trigger("unselect",{originalEvent:b,data:f})})},d.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},d.prototype.display=function(a,b){var c=this.options.get("templateSelection"),d=this.options.get("escapeMarkup");return d(c(a,b))},d.prototype.selectionContainer=function(){var b=a('<li class="select2-selection__choice"><span class="select2-selection__choice__remove" role="presentation">×</span></li>');return b},d.prototype.update=function(a){if(this.clear(),0!==a.length){for(var b=[],d=0;d<a.length;d++){var e=a[d],f=this.selectionContainer(),g=this.display(e,f);f.append(g),f.prop("title",e.title||e.text),f.data("data",e),b.push(f)}var h=this.$selection.find(".select2-selection__rendered");c.appendMany(h,b)}},d}),b.define("select2/selection/placeholder",["../utils"],function(a){function b(a,b,c){this.placeholder=this.normalizePlaceholder(c.get("placeholder")),a.call(this,b,c)}return b.prototype.normalizePlaceholder=function(a,b){return"string"==typeof b&&(b={id:"",text:b}),b},b.prototype.createPlaceholder=function(a,b){var c=this.selectionContainer();return c.html(this.display(b)),c.addClass("select2-selection__placeholder").removeClass("select2-selection__choice"),c},b.prototype.update=function(a,b){var c=1==b.length&&b[0].id!=this.placeholder.id,d=b.length>1;if(d||c)return a.call(this,b);this.clear();var e=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(e)},b}),b.define("select2/selection/allowClear",["jquery","../keys"],function(a,b){function c(){}return c.prototype.bind=function(a,b,c){var d=this;a.call(this,b,c),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(a){d._handleClear(a)}),b.on("keypress",function(a){d._handleKeyboardClear(a,b)})},c.prototype._handleClear=function(a,b){if(!this.options.get("disabled")){var c=this.$selection.find(".select2-selection__clear");if(0!==c.length){b.stopPropagation();for(var d=c.data("data"),e=0;e<d.length;e++){var f={data:d[e]};if(this.trigger("unselect",f),f.prevented)return}this.$element.val(this.placeholder.id).trigger("change"),this.trigger("toggle")}}},c.prototype._handleKeyboardClear=function(a,c,d){d.isOpen()||(c.which==b.DELETE||c.which==b.BACKSPACE)&&this._handleClear(c)},c.prototype.update=function(b,c){if(b.call(this,c),!(this.$selection.find(".select2-selection__placeholder").length>0||0===c.length)){var d=a('<span class="select2-selection__clear">×</span>');d.data("data",c),this.$selection.find(".select2-selection__rendered").prepend(d)}},c}),b.define("select2/selection/search",["jquery","../utils","../keys"],function(a,b,c){function d(a,b,c){a.call(this,b,c)}return d.prototype.render=function(b){var c=a('<li class="select2-search select2-search--inline"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" role="textbox" /></li>');this.$searchContainer=c,this.$search=c.find("input");var d=b.call(this);return this._transferTabIndex(),d},d.prototype.bind=function(a,b,d){var e=this;a.call(this,b,d),b.on("open",function(){e.$search.trigger("focus")}),b.on("close",function(){e.$search.val(""),e.$search.trigger("focus")}),b.on("enable",function(){e.$search.prop("disabled",!1),e._transferTabIndex()}),b.on("disable",function(){e.$search.prop("disabled",!0)}),b.on("focus",function(a){e.$search.trigger("focus")}),this.$selection.on("focusin",".select2-search--inline",function(a){e.trigger("focus",a)}),this.$selection.on("focusout",".select2-search--inline",function(a){e._handleBlur(a)}),this.$selection.on("keydown",".select2-search--inline",function(a){a.stopPropagation(),e.trigger("keypress",a),e._keyUpPrevented=a.isDefaultPrevented();var b=a.which;if(b===c.BACKSPACE&&""===e.$search.val()){var d=e.$searchContainer.prev(".select2-selection__choice");if(d.length>0){var f=d.data("data");e.searchRemoveChoice(f),a.preventDefault()}}}),this.$selection.on("input",".select2-search--inline",function(a){e.$selection.off("keyup.search")}),this.$selection.on("keyup.search input",".select2-search--inline",function(a){var b=a.which;b!=c.SHIFT&&b!=c.CTRL&&b!=c.ALT&&b!=c.TAB&&e.handleSearch(a)})},d.prototype._transferTabIndex=function(a){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},d.prototype.createPlaceholder=function(a,b){this.$search.attr("placeholder",b.text)},d.prototype.update=function(a,b){var c=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),a.call(this,b),this.$selection.find(".select2-selection__rendered").append(this.$searchContainer),this.resizeSearch(),c&&this.$search.focus()},d.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var a=this.$search.val();this.trigger("query",{term:a})}this._keyUpPrevented=!1},d.prototype.searchRemoveChoice=function(a,b){this.trigger("unselect",{data:b}),this.trigger("open"),this.$search.val(b.text+" ")},d.prototype.resizeSearch=function(){this.$search.css("width","25px");var a="";if(""!==this.$search.attr("placeholder"))a=this.$selection.find(".select2-selection__rendered").innerWidth();else{var b=this.$search.val().length+1;a=.75*b+"em"}this.$search.css("width",a)},d}),b.define("select2/selection/eventRelay",["jquery"],function(a){function b(){}return b.prototype.bind=function(b,c,d){var e=this,f=["open","opening","close","closing","select","selecting","unselect","unselecting"],g=["opening","closing","selecting","unselecting"];b.call(this,c,d),c.on("*",function(b,c){if(-1!==a.inArray(b,f)){c=c||{};var d=a.Event("select2:"+b,{params:c});e.$element.trigger(d),-1!==a.inArray(b,g)&&(c.prevented=d.isDefaultPrevented())}})},b}),b.define("select2/translation",["jquery","require"],function(a,b){function c(a){this.dict=a||{}}return c.prototype.all=function(){return this.dict},c.prototype.get=function(a){return this.dict[a]},c.prototype.extend=function(b){this.dict=a.extend({},b.all(),this.dict)},c._cache={},c.loadPath=function(a){if(!(a in c._cache)){var d=b(a);c._cache[a]=d}return new c(c._cache[a])},c}),b.define("select2/diacritics",[],function(){var 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","Ⓓ":"D","D":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"Dz","Ⓔ":"E","E":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","F":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","G":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","I":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","J":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","L":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","M":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","Nj":"Nj","Ⓞ":"O","O":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","P":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Q":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","R":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","S":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","T":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","U":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","V":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","W":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","X":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Y":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Z":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","a":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","c":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","d":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","dz":"dz","dž":"dz","ⓔ":"e","e":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","f":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","g":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","h":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","j":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","k":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","l":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ʼn":"n","ꞑ":"n","ꞥ":"n","nj":"nj","ⓞ":"o","o":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","q":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","r":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","s":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","t":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","u":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","v":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","w":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","y":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","z":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ω":"ω","ς":"σ"};return a}),b.define("select2/data/base",["../utils"],function(a){function b(a,c){b.__super__.constructor.call(this)}return a.Extend(b,a.Observable),b.prototype.current=function(a){throw new Error("The `current` method must be defined in child classes.")},b.prototype.query=function(a,b){throw new Error("The `query` method must be defined in child classes.")},b.prototype.bind=function(a,b){},b.prototype.destroy=function(){},b.prototype.generateResultId=function(b,c){var d=b.id+"-result-";return d+=a.generateChars(4),d+=null!=c.id?"-"+c.id.toString():"-"+a.generateChars(4)},b}),b.define("select2/data/select",["./base","../utils","jquery"],function(a,b,c){function d(a,b){this.$element=a,this.options=b,d.__super__.constructor.call(this)}return b.Extend(d,a),d.prototype.current=function(a){var b=[],d=this;this.$element.find(":selected").each(function(){var a=c(this),e=d.item(a);b.push(e)}),a(b)},d.prototype.select=function(a){var b=this;if(a.selected=!0,c(a.element).is("option"))return a.element.selected=!0,void this.$element.trigger("change");if(this.$element.prop("multiple"))this.current(function(d){var e=[];a=[a],a.push.apply(a,d);for(var f=0;f<a.length;f++){var g=a[f].id;-1===c.inArray(g,e)&&e.push(g)}b.$element.val(e),b.$element.trigger("change")});else{var d=a.id;this.$element.val(d),this.$element.trigger("change")}},d.prototype.unselect=function(a){var b=this;if(this.$element.prop("multiple"))return a.selected=!1,c(a.element).is("option")?(a.element.selected=!1,void this.$element.trigger("change")):void this.current(function(d){for(var e=[],f=0;f<d.length;f++){var g=d[f].id;g!==a.id&&-1===c.inArray(g,e)&&e.push(g)}b.$element.val(e),b.$element.trigger("change")})},d.prototype.bind=function(a,b){var c=this;this.container=a,a.on("select",function(a){c.select(a.data)}),a.on("unselect",function(a){c.unselect(a.data)})},d.prototype.destroy=function(){this.$element.find("*").each(function(){c.removeData(this,"data")})},d.prototype.query=function(a,b){var d=[],e=this,f=this.$element.children();f.each(function(){var b=c(this);if(b.is("option")||b.is("optgroup")){
|
33 |
+
var f=e.item(b),g=e.matches(a,f);null!==g&&d.push(g)}}),b({results:d})},d.prototype.addOptions=function(a){b.appendMany(this.$element,a)},d.prototype.option=function(a){var b;a.children?(b=document.createElement("optgroup"),b.label=a.text):(b=document.createElement("option"),void 0!==b.textContent?b.textContent=a.text:b.innerText=a.text),a.id&&(b.value=a.id),a.disabled&&(b.disabled=!0),a.selected&&(b.selected=!0),a.title&&(b.title=a.title);var d=c(b),e=this._normalizeItem(a);return e.element=b,c.data(b,"data",e),d},d.prototype.item=function(a){var b={};if(b=c.data(a[0],"data"),null!=b)return b;if(a.is("option"))b={id:a.val(),text:a.text(),disabled:a.prop("disabled"),selected:a.prop("selected"),title:a.prop("title")};else if(a.is("optgroup")){b={text:a.prop("label"),children:[],title:a.prop("title")};for(var d=a.children("option"),e=[],f=0;f<d.length;f++){var g=c(d[f]),h=this.item(g);e.push(h)}b.children=e}return b=this._normalizeItem(b),b.element=a[0],c.data(a[0],"data",b),b},d.prototype._normalizeItem=function(a){c.isPlainObject(a)||(a={id:a,text:a}),a=c.extend({},{text:""},a);var b={selected:!1,disabled:!1};return null!=a.id&&(a.id=a.id.toString()),null!=a.text&&(a.text=a.text.toString()),null==a._resultId&&a.id&&null!=this.container&&(a._resultId=this.generateResultId(this.container,a)),c.extend({},b,a)},d.prototype.matches=function(a,b){var c=this.options.get("matcher");return c(a,b)},d}),b.define("select2/data/array",["./select","../utils","jquery"],function(a,b,c){function d(a,b){var c=b.get("data")||[];d.__super__.constructor.call(this,a,b),this.addOptions(this.convertToOptions(c))}return b.Extend(d,a),d.prototype.select=function(a){var b=this.$element.find("option").filter(function(b,c){return c.value==a.id.toString()});0===b.length&&(b=this.option(a),this.addOptions(b)),d.__super__.select.call(this,a)},d.prototype.convertToOptions=function(a){function d(a){return function(){return c(this).val()==a.id}}for(var e=this,f=this.$element.find("option"),g=f.map(function(){return e.item(c(this)).id}).get(),h=[],i=0;i<a.length;i++){var j=this._normalizeItem(a[i]);if(c.inArray(j.id,g)>=0){var k=f.filter(d(j)),l=this.item(k),m=(c.extend(!0,{},l,j),this.option(l));k.replaceWith(m)}else{var n=this.option(j);if(j.children){var o=this.convertToOptions(j.children);b.appendMany(n,o)}h.push(n)}}return h},d}),b.define("select2/data/ajax",["./array","../utils","jquery"],function(a,b,c){function d(a,b){this.ajaxOptions=this._applyDefaults(b.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),d.__super__.constructor.call(this,a,b)}return b.Extend(d,a),d.prototype._applyDefaults=function(a){var b={data:function(a){return{q:a.term}},transport:function(a,b,d){var e=c.ajax(a);return e.then(b),e.fail(d),e}};return c.extend({},b,a,!0)},d.prototype.processResults=function(a){return a},d.prototype.query=function(a,b){function d(){var d=f.transport(f,function(d){var f=e.processResults(d,a);e.options.get("debug")&&window.console&&console.error&&(f&&f.results&&c.isArray(f.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),b(f)},function(){});e._request=d}var e=this;null!=this._request&&(c.isFunction(this._request.abort)&&this._request.abort(),this._request=null);var f=c.extend({type:"GET"},this.ajaxOptions);"function"==typeof f.url&&(f.url=f.url(a)),"function"==typeof f.data&&(f.data=f.data(a)),this.ajaxOptions.delay&&""!==a.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(d,this.ajaxOptions.delay)):d()},d}),b.define("select2/data/tags",["jquery"],function(a){function b(b,c,d){var e=d.get("tags"),f=d.get("createTag");if(void 0!==f&&(this.createTag=f),b.call(this,c,d),a.isArray(e))for(var g=0;g<e.length;g++){var h=e[g],i=this._normalizeItem(h),j=this.option(i);this.$element.append(j)}}return b.prototype.query=function(a,b,c){function d(a,f){for(var g=a.results,h=0;h<g.length;h++){var i=g[h],j=null!=i.children&&!d({results:i.children},!0),k=i.text===b.term;if(k||j)return f?!1:(a.data=g,void c(a))}if(f)return!0;var l=e.createTag(b);if(null!=l){var m=e.option(l);m.attr("data-select2-tag",!0),e.addOptions([m]),e.insertTag(g,l)}a.results=g,c(a)}var e=this;return this._removeOldTags(),null==b.term||null!=b.page?void a.call(this,b,c):void a.call(this,b,d)},b.prototype.createTag=function(b,c){var d=a.trim(c.term);return""===d?null:{id:d,text:d}},b.prototype.insertTag=function(a,b,c){b.unshift(c)},b.prototype._removeOldTags=function(b){var c=(this._lastTag,this.$element.find("option[data-select2-tag]"));c.each(function(){this.selected||a(this).remove()})},b}),b.define("select2/data/tokenizer",["jquery"],function(a){function b(a,b,c){var d=c.get("tokenizer");void 0!==d&&(this.tokenizer=d),a.call(this,b,c)}return b.prototype.bind=function(a,b,c){a.call(this,b,c),this.$search=b.dropdown.$search||b.selection.$search||c.find(".select2-search__field")},b.prototype.query=function(a,b,c){function d(a){e.select(a)}var e=this;b.term=b.term||"";var f=this.tokenizer(b,this.options,d);f.term!==b.term&&(this.$search.length&&(this.$search.val(f.term),this.$search.focus()),b.term=f.term),a.call(this,b,c)},b.prototype.tokenizer=function(b,c,d,e){for(var f=d.get("tokenSeparators")||[],g=c.term,h=0,i=this.createTag||function(a){return{id:a.term,text:a.term}};h<g.length;){var j=g[h];if(-1!==a.inArray(j,f)){var k=g.substr(0,h),l=a.extend({},c,{term:k}),m=i(l);e(m),g=g.substr(h+1)||"",h=0}else h++}return{term:g}},b}),b.define("select2/data/minimumInputLength",[],function(){function a(a,b,c){this.minimumInputLength=c.get("minimumInputLength"),a.call(this,b,c)}return a.prototype.query=function(a,b,c){return b.term=b.term||"",b.term.length<this.minimumInputLength?void this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:b.term,params:b}}):void a.call(this,b,c)},a}),b.define("select2/data/maximumInputLength",[],function(){function a(a,b,c){this.maximumInputLength=c.get("maximumInputLength"),a.call(this,b,c)}return a.prototype.query=function(a,b,c){return b.term=b.term||"",this.maximumInputLength>0&&b.term.length>this.maximumInputLength?void this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:b.term,params:b}}):void a.call(this,b,c)},a}),b.define("select2/data/maximumSelectionLength",[],function(){function a(a,b,c){this.maximumSelectionLength=c.get("maximumSelectionLength"),a.call(this,b,c)}return a.prototype.query=function(a,b,c){var d=this;this.current(function(e){var f=null!=e?e.length:0;return d.maximumSelectionLength>0&&f>=d.maximumSelectionLength?void d.trigger("results:message",{message:"maximumSelected",args:{maximum:d.maximumSelectionLength}}):void a.call(d,b,c)})},a}),b.define("select2/dropdown",["jquery","./utils"],function(a,b){function c(a,b){this.$element=a,this.options=b,c.__super__.constructor.call(this)}return b.Extend(c,b.Observable),c.prototype.render=function(){var b=a('<span class="select2-dropdown"><span class="select2-results"></span></span>');return b.attr("dir",this.options.get("dir")),this.$dropdown=b,b},c.prototype.position=function(a,b){},c.prototype.destroy=function(){this.$dropdown.remove()},c}),b.define("select2/dropdown/search",["jquery","../utils"],function(a,b){function c(){}return c.prototype.render=function(b){var c=b.call(this),d=a('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" role="textbox" /></span>');return this.$searchContainer=d,this.$search=d.find("input"),c.prepend(d),c},c.prototype.bind=function(b,c,d){var e=this;b.call(this,c,d),this.$search.on("keydown",function(a){e.trigger("keypress",a),e._keyUpPrevented=a.isDefaultPrevented()}),this.$search.on("input",function(b){a(this).off("keyup")}),this.$search.on("keyup input",function(a){e.handleSearch(a)}),c.on("open",function(){e.$search.attr("tabindex",0),e.$search.focus(),window.setTimeout(function(){e.$search.focus()},0)}),c.on("close",function(){e.$search.attr("tabindex",-1),e.$search.val("")}),c.on("results:all",function(a){if(null==a.query.term||""===a.query.term){var b=e.showSearch(a);b?e.$searchContainer.removeClass("select2-search--hide"):e.$searchContainer.addClass("select2-search--hide")}})},c.prototype.handleSearch=function(a){if(!this._keyUpPrevented){var b=this.$search.val();this.trigger("query",{term:b})}this._keyUpPrevented=!1},c.prototype.showSearch=function(a,b){return!0},c}),b.define("select2/dropdown/hidePlaceholder",[],function(){function a(a,b,c,d){this.placeholder=this.normalizePlaceholder(c.get("placeholder")),a.call(this,b,c,d)}return a.prototype.append=function(a,b){b.results=this.removePlaceholder(b.results),a.call(this,b)},a.prototype.normalizePlaceholder=function(a,b){return"string"==typeof b&&(b={id:"",text:b}),b},a.prototype.removePlaceholder=function(a,b){for(var c=b.slice(0),d=b.length-1;d>=0;d--){var e=b[d];this.placeholder.id===e.id&&c.splice(d,1)}return c},a}),b.define("select2/dropdown/infiniteScroll",["jquery"],function(a){function b(a,b,c,d){this.lastParams={},a.call(this,b,c,d),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return b.prototype.append=function(a,b){this.$loadingMore.remove(),this.loading=!1,a.call(this,b),this.showLoadingMore(b)&&this.$results.append(this.$loadingMore)},b.prototype.bind=function(b,c,d){var e=this;b.call(this,c,d),c.on("query",function(a){e.lastParams=a,e.loading=!0}),c.on("query:append",function(a){e.lastParams=a,e.loading=!0}),this.$results.on("scroll",function(){var b=a.contains(document.documentElement,e.$loadingMore[0]);if(!e.loading&&b){var c=e.$results.offset().top+e.$results.outerHeight(!1),d=e.$loadingMore.offset().top+e.$loadingMore.outerHeight(!1);c+50>=d&&e.loadMore()}})},b.prototype.loadMore=function(){this.loading=!0;var b=a.extend({},{page:1},this.lastParams);b.page++,this.trigger("query:append",b)},b.prototype.showLoadingMore=function(a,b){return b.pagination&&b.pagination.more},b.prototype.createLoadingMore=function(){var b=a('<li class="option load-more" role="treeitem"></li>'),c=this.options.get("translations").get("loadingMore");return b.html(c(this.lastParams)),b},b}),b.define("select2/dropdown/attachBody",["jquery","../utils"],function(a,b){function c(a,b,c){this.$dropdownParent=c.get("dropdownParent")||document.body,a.call(this,b,c)}return c.prototype.bind=function(a,b,c){var d=this,e=!1;a.call(this,b,c),b.on("open",function(){d._showDropdown(),d._attachPositioningHandler(b),e||(e=!0,b.on("results:all",function(){d._positionDropdown(),d._resizeDropdown()}),b.on("results:append",function(){d._positionDropdown(),d._resizeDropdown()}))}),b.on("close",function(){d._hideDropdown(),d._detachPositioningHandler(b)}),this.$dropdownContainer.on("mousedown",function(a){a.stopPropagation()})},c.prototype.position=function(a,b,c){b.attr("class",c.attr("class")),b.removeClass("select2"),b.addClass("select2-container--open"),b.css({position:"absolute",top:-999999}),this.$container=c},c.prototype.render=function(b){var c=a("<span></span>"),d=b.call(this);return c.append(d),this.$dropdownContainer=c,c},c.prototype._hideDropdown=function(a){this.$dropdownContainer.detach()},c.prototype._attachPositioningHandler=function(c){var d=this,e="scroll.select2."+c.id,f="resize.select2."+c.id,g="orientationchange.select2."+c.id,h=this.$container.parents().filter(b.hasScroll);h.each(function(){a(this).data("select2-scroll-position",{x:a(this).scrollLeft(),y:a(this).scrollTop()})}),h.on(e,function(b){var c=a(this).data("select2-scroll-position");a(this).scrollTop(c.y)}),a(window).on(e+" "+f+" "+g,function(a){d._positionDropdown(),d._resizeDropdown()})},c.prototype._detachPositioningHandler=function(c){var d="scroll.select2."+c.id,e="resize.select2."+c.id,f="orientationchange.select2."+c.id,g=this.$container.parents().filter(b.hasScroll);g.off(d),a(window).off(d+" "+e+" "+f)},c.prototype._positionDropdown=function(){var b=a(window),c=this.$dropdown.hasClass("select2-dropdown--above"),d=this.$dropdown.hasClass("select2-dropdown--below"),e=null,f=(this.$container.position(),this.$container.offset());f.bottom=f.top+this.$container.outerHeight(!1);var g={height:this.$container.outerHeight(!1)};g.top=f.top,g.bottom=f.top+g.height;var h={height:this.$dropdown.outerHeight(!1)},i={top:b.scrollTop(),bottom:b.scrollTop()+b.height()},j=i.top<f.top-h.height,k=i.bottom>f.bottom+h.height,l={left:f.left,top:g.bottom};c||d||(e="below"),k||!j||c?!j&&k&&c&&(e="below"):e="above",("above"==e||c&&"below"!==e)&&(l.top=g.top-h.height),null!=e&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+e),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+e)),this.$dropdownContainer.css(l)},c.prototype._resizeDropdown=function(){this.$dropdownContainer.width();var a={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(a.minWidth=a.width,a.width="auto"),this.$dropdown.css(a)},c.prototype._showDropdown=function(a){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},c}),b.define("select2/dropdown/minimumResultsForSearch",[],function(){function a(b){for(var c=0,d=0;d<b.length;d++){var e=b[d];e.children?c+=a(e.children):c++}return c}function b(a,b,c,d){this.minimumResultsForSearch=c.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),a.call(this,b,c,d)}return b.prototype.showSearch=function(b,c){return a(c.data.results)<this.minimumResultsForSearch?!1:b.call(this,c)},b}),b.define("select2/dropdown/selectOnClose",[],function(){function a(){}return a.prototype.bind=function(a,b,c){var d=this;a.call(this,b,c),b.on("close",function(){d._handleSelectOnClose()})},a.prototype._handleSelectOnClose=function(){var a=this.getHighlightedResults();a.length<1||this.trigger("select",{data:a.data("data")})},a}),b.define("select2/dropdown/closeOnSelect",[],function(){function a(){}return a.prototype.bind=function(a,b,c){var d=this;a.call(this,b,c),b.on("select",function(a){d._selectTriggered(a)}),b.on("unselect",function(a){d._selectTriggered(a)})},a.prototype._selectTriggered=function(a,b){var c=b.originalEvent;c&&c.ctrlKey||this.trigger("close")},a}),b.define("select2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(a){var b=a.input.length-a.maximum,c="Please delete "+b+" character";return 1!=b&&(c+="s"),c},inputTooShort:function(a){var b=a.minimum-a.input.length,c="Please enter "+b+" or more characters";return c},loadingMore:function(){return"Loading more results…"},maximumSelected:function(a){var b="You can only select "+a.maximum+" item";return 1!=a.maximum&&(b+="s"),b},noResults:function(){return"No results found"},searching:function(){return"Searching…"}}}),b.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(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C){function D(){this.reset()}D.prototype.apply=function(l){if(l=a.extend({},this.defaults,l),null==l.dataAdapter){if(null!=l.ajax?l.dataAdapter=o:null!=l.data?l.dataAdapter=n:l.dataAdapter=m,l.minimumInputLength>0&&(l.dataAdapter=j.Decorate(l.dataAdapter,r)),l.maximumInputLength>0&&(l.dataAdapter=j.Decorate(l.dataAdapter,s)),l.maximumSelectionLength>0&&(l.dataAdapter=j.Decorate(l.dataAdapter,t)),l.tags&&(l.dataAdapter=j.Decorate(l.dataAdapter,p)),(null!=l.tokenSeparators||null!=l.tokenizer)&&(l.dataAdapter=j.Decorate(l.dataAdapter,q)),null!=l.query){var C=b(l.amdBase+"compat/query");l.dataAdapter=j.Decorate(l.dataAdapter,C)}if(null!=l.initSelection){var D=b(l.amdBase+"compat/initSelection");l.dataAdapter=j.Decorate(l.dataAdapter,D)}}if(null==l.resultsAdapter&&(l.resultsAdapter=c,null!=l.ajax&&(l.resultsAdapter=j.Decorate(l.resultsAdapter,x)),null!=l.placeholder&&(l.resultsAdapter=j.Decorate(l.resultsAdapter,w)),l.selectOnClose&&(l.resultsAdapter=j.Decorate(l.resultsAdapter,A))),null==l.dropdownAdapter){if(l.multiple)l.dropdownAdapter=u;else{var E=j.Decorate(u,v);l.dropdownAdapter=E}if(0!==l.minimumResultsForSearch&&(l.dropdownAdapter=j.Decorate(l.dropdownAdapter,z)),l.closeOnSelect&&(l.dropdownAdapter=j.Decorate(l.dropdownAdapter,B)),null!=l.dropdownCssClass||null!=l.dropdownCss||null!=l.adaptDropdownCssClass){var F=b(l.amdBase+"compat/dropdownCss");l.dropdownAdapter=j.Decorate(l.dropdownAdapter,F)}l.dropdownAdapter=j.Decorate(l.dropdownAdapter,y)}if(null==l.selectionAdapter){if(l.multiple?l.selectionAdapter=e:l.selectionAdapter=d,null!=l.placeholder&&(l.selectionAdapter=j.Decorate(l.selectionAdapter,f)),l.allowClear&&(l.selectionAdapter=j.Decorate(l.selectionAdapter,g)),l.multiple&&(l.selectionAdapter=j.Decorate(l.selectionAdapter,h)),null!=l.containerCssClass||null!=l.containerCss||null!=l.adaptContainerCssClass){var G=b(l.amdBase+"compat/containerCss");l.selectionAdapter=j.Decorate(l.selectionAdapter,G)}l.selectionAdapter=j.Decorate(l.selectionAdapter,i)}if("string"==typeof l.language)if(l.language.indexOf("-")>0){var H=l.language.split("-"),I=H[0];l.language=[l.language,I]}else l.language=[l.language];if(a.isArray(l.language)){var J=new k;l.language.push("en");for(var K=l.language,L=0;L<K.length;L++){var M=K[L],N={};try{N=k.loadPath(M)}catch(O){try{M=this.defaults.amdLanguageBase+M,N=k.loadPath(M)}catch(P){l.debug&&window.console&&console.warn&&console.warn('Select2: The language file for "'+M+'" could not be automatically loaded. A fallback will be used instead.');continue}}J.extend(N)}l.translations=J}else{var Q=k.loadPath(this.defaults.amdLanguageBase+"en"),R=new k(l.language);R.extend(Q),l.translations=R}return l},D.prototype.reset=function(){function b(a){function b(a){return l[a]||a}return a.replace(/[^\u0000-\u007E]/g,b)}function c(d,e){if(""===a.trim(d.term))return e;if(e.children&&e.children.length>0){for(var f=a.extend(!0,{},e),g=e.children.length-1;g>=0;g--){var h=e.children[g],i=c(d,h);null==i&&f.children.splice(g,1)}return f.children.length>0?f:c(d,f)}var j=b(e.text).toUpperCase(),k=b(d.term).toUpperCase();return j.indexOf(k)>-1?e:null}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:j.escapeMarkup,language:C,matcher:c,minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,sorter:function(a){return a},templateResult:function(a){return a.text},templateSelection:function(a){return a.text},theme:"default",width:"resolve"}},D.prototype.set=function(b,c){var d=a.camelCase(b),e={};e[d]=c;var f=j._convertData(e);a.extend(this.defaults,f)};var E=new D;return E}),b.define("select2/options",["require","jquery","./defaults","./utils"],function(a,b,c,d){function e(b,e){if(this.options=b,null!=e&&this.fromElement(e),this.options=c.apply(this.options),e&&e.is("input")){var f=a(this.get("amdBase")+"compat/inputData");this.options.dataAdapter=d.Decorate(this.options.dataAdapter,f)}}return e.prototype.fromElement=function(a){var c=["select2"];null==this.options.multiple&&(this.options.multiple=a.prop("multiple")),null==this.options.disabled&&(this.options.disabled=a.prop("disabled")),null==this.options.language&&(a.prop("lang")?this.options.language=a.prop("lang").toLowerCase():a.closest("[lang]").prop("lang")&&(this.options.language=a.closest("[lang]").prop("lang"))),null==this.options.dir&&(a.prop("dir")?this.options.dir=a.prop("dir"):a.closest("[dir]").prop("dir")?this.options.dir=a.closest("[dir]").prop("dir"):this.options.dir="ltr"),a.prop("disabled",this.options.disabled),a.prop("multiple",this.options.multiple),a.data("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.'),a.data("data",a.data("select2Tags")),a.data("tags",!0)),a.data("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."),a.attr("ajax--url",a.data("ajaxUrl")),a.data("ajax--url",a.data("ajaxUrl")));var e={};e=b.fn.jquery&&"1."==b.fn.jquery.substr(0,2)&&a[0].dataset?b.extend(!0,{},a[0].dataset,a.data()):a.data();var f=b.extend(!0,{},e);f=d._convertData(f);for(var g in f)b.inArray(g,c)>-1||(b.isPlainObject(this.options[g])?b.extend(this.options[g],f[g]):this.options[g]=f[g]);return this},e.prototype.get=function(a){return this.options[a]},e.prototype.set=function(a,b){this.options[a]=b},e}),b.define("select2/core",["jquery","./options","./utils","./keys"],function(a,b,c,d){var e=function(a,c){null!=a.data("select2")&&a.data("select2").destroy(),this.$element=a,this.id=this._generateId(a),c=c||{},this.options=new b(c,a),e.__super__.constructor.call(this);var d=a.attr("tabindex")||0;a.data("old-tabindex",d),a.attr("tabindex","-1");var f=this.options.get("dataAdapter");this.dataAdapter=new f(a,this.options);var g=this.render();this._placeContainer(g);var h=this.options.get("selectionAdapter");this.selection=new h(a,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,g);var i=this.options.get("dropdownAdapter");this.dropdown=new i(a,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,g);var j=this.options.get("resultsAdapter");this.results=new j(a,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var k=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current(function(a){k.trigger("selection:update",{data:a})}),a.addClass("select2-hidden-accessible"),a.attr("aria-hidden","true"),this._syncAttributes(),a.data("select2",this)};return c.Extend(e,c.Observable),e.prototype._generateId=function(a){var b="";return b=null!=a.attr("id")?a.attr("id"):null!=a.attr("name")?a.attr("name")+"-"+c.generateChars(2):c.generateChars(4),b="select2-"+b},e.prototype._placeContainer=function(a){a.insertAfter(this.$element);var b=this._resolveWidth(this.$element,this.options.get("width"));null!=b&&a.css("width",b)},e.prototype._resolveWidth=function(a,b){var c=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==b){var d=this._resolveWidth(a,"style");return null!=d?d:this._resolveWidth(a,"element")}if("element"==b){var e=a.outerWidth(!1);return 0>=e?"auto":e+"px"}if("style"==b){var f=a.attr("style");if("string"!=typeof f)return null;for(var g=f.split(";"),h=0,i=g.length;i>h;h+=1){var j=g[h].replace(/\s/g,""),k=j.match(c);if(null!==k&&k.length>=1)return k[1]}return null}return b},e.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)},e.prototype._registerDomEvents=function(){var b=this;this.$element.on("change.select2",function(){b.dataAdapter.current(function(a){b.trigger("selection:update",{data:a})})}),this._sync=c.bind(this._syncAttributes,this),this.$element[0].attachEvent&&this.$element[0].attachEvent("onpropertychange",this._sync);var d=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;null!=d?(this._observer=new d(function(c){a.each(c,b._sync)}),this._observer.observe(this.$element[0],{attributes:!0,subtree:!1})):this.$element[0].addEventListener&&this.$element[0].addEventListener("DOMAttrModified",b._sync,!1)},e.prototype._registerDataEvents=function(){var a=this;this.dataAdapter.on("*",function(b,c){a.trigger(b,c)})},e.prototype._registerSelectionEvents=function(){var b=this,c=["toggle","focus"];this.selection.on("toggle",function(){b.toggleDropdown()}),this.selection.on("focus",function(a){b.focus(a)}),this.selection.on("*",function(d,e){-1===a.inArray(d,c)&&b.trigger(d,e)})},e.prototype._registerDropdownEvents=function(){var a=this;this.dropdown.on("*",function(b,c){a.trigger(b,c)})},e.prototype._registerResultsEvents=function(){var a=this;this.results.on("*",function(b,c){a.trigger(b,c)})},e.prototype._registerEvents=function(){var a=this;this.on("open",function(){a.$container.addClass("select2-container--open")}),this.on("close",function(){a.$container.removeClass("select2-container--open")}),this.on("enable",function(){a.$container.removeClass("select2-container--disabled")}),this.on("disable",function(){a.$container.addClass("select2-container--disabled")}),this.on("blur",function(){a.$container.removeClass("select2-container--focus")}),this.on("query",function(b){a.isOpen()||a.trigger("open"),this.dataAdapter.query(b,function(c){a.trigger("results:all",{data:c,query:b})})}),this.on("query:append",function(b){this.dataAdapter.query(b,function(c){a.trigger("results:append",{data:c,query:b})})}),this.on("keypress",function(b){var c=b.which;a.isOpen()?c===d.ESC||c===d.TAB||c===d.UP&&b.altKey?(a.close(),b.preventDefault()):c===d.ENTER?(a.trigger("results:select"),b.preventDefault()):c===d.SPACE&&b.ctrlKey?(a.trigger("results:toggle"),b.preventDefault()):c===d.UP?(a.trigger("results:previous"),b.preventDefault()):c===d.DOWN&&(a.trigger("results:next"),b.preventDefault()):(c===d.ENTER||c===d.SPACE||c===d.DOWN&&b.altKey)&&(a.open(),b.preventDefault())})},e.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.options.get("disabled")?(this.isOpen()&&this.close(),this.trigger("disable")):this.trigger("enable")},e.prototype.trigger=function(a,b){var c=e.__super__.trigger,d={open:"opening",close:"closing",select:"selecting",unselect:"unselecting"};if(a in d){var f=d[a],g={prevented:!1,name:a,args:b};if(c.call(this,f,g),g.prevented)return void(b.prevented=!0)}c.call(this,a,b)},e.prototype.toggleDropdown=function(){this.options.get("disabled")||(this.isOpen()?this.close():this.open())},e.prototype.open=function(){this.isOpen()||(this.trigger("query",{}),this.trigger("open"))},e.prototype.close=function(){this.isOpen()&&this.trigger("close")},e.prototype.isOpen=function(){return this.$container.hasClass("select2-container--open")},e.prototype.hasFocus=function(){return this.$container.hasClass("select2-container--focus")},e.prototype.focus=function(a){this.hasFocus()||(this.$container.addClass("select2-container--focus"),this.trigger("focus"))},e.prototype.enable=function(a){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==a||0===a.length)&&(a=[!0]);var b=!a[0];this.$element.prop("disabled",b)},e.prototype.data=function(){this.options.get("debug")&&arguments.length>0&&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 a=[];return this.dataAdapter.current(function(b){a=b}),a},e.prototype.val=function(b){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==b||0===b.length)return this.$element.val();var c=b[0];a.isArray(c)&&(c=a.map(c,function(a){return a.toString()})),this.$element.val(c).trigger("change")},e.prototype.destroy=function(){this.$container.remove(),this.$element[0].detachEvent&&this.$element[0].detachEvent("onpropertychange",this._sync),null!=this._observer?(this._observer.disconnect(),this._observer=null):this.$element[0].removeEventListener&&this.$element[0].removeEventListener("DOMAttrModified",this._sync,!1),this._sync=null,this.$element.off(".select2"),this.$element.attr("tabindex",this.$element.data("old-tabindex")),this.$element.removeClass("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),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},e.prototype.render=function(){var b=a('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return b.attr("dir",this.options.get("dir")),this.$container=b,this.$container.addClass("select2-container--"+this.options.get("theme")),b.data("element",this.$element),b},e}),b.define("jquery.select2",["jquery","require","./select2/core","./select2/defaults"],function(a,b,c,d){if(b("jquery.mousewheel"),null==a.fn.select2){var e=["open","close","destroy"];a.fn.select2=function(b){if(b=b||{},"object"==typeof b)return this.each(function(){var d=a.extend({},b,!0);new c(a(this),d)}),this;if("string"==typeof b){var d=this.data("select2");null==d&&window.console&&console.error&&console.error("The select2('"+b+"') method was called on an element that is not using Select2.");var f=Array.prototype.slice.call(arguments,1),g=d[b](f);return a.inArray(b,e)>-1?this:g}throw new Error("Invalid arguments for Select2: "+b)}}return null==a.fn.select2.defaults&&(a.fn.select2.defaults=d),c}),b.define("jquery.mousewheel",["jquery"],function(a){return a}),{define:b.define,require:b.require}}(),c=b.require("jquery.select2");return a.fn.select2.amd=b,c});
|
34 |
+
/* Simple Slide View 1.1 https://github.com/cloudfour/SimpleSlideView */
|
35 |
+
!function(){var a,b,c,d,e,f,g,h;a="undefined"!=typeof jQuery&&null!==jQuery?jQuery:Zepto,h=null!=a.scrollTo&&"undefined"!=typeof jQuery&&null!==jQuery?function(b,c,d){return a.scrollTo(b,c,{axis:"y",onAfter:d})}:null!=a.scrollTo?a.scrollTo:function(a,b,c){return window.scrollTo(0,a),c?c():void 0},c={views:".view",activeView:null,deferOn:!1,duration:null!=a.fx&&null!=a.fx.cssPrefix?a.fx.speeds._default:400,easing:"undefined"!=typeof Zepto&&null!==Zepto?"ease-out":"swing",useTransformProps:"undefined"!=typeof Zepto&&null!==Zepto,use3D:"undefined"!=typeof Modernizr&&null!==Modernizr&&Modernizr.csstransforms3d,cssPrefix:null!=a.fx&&null!=a.fx.cssPrefix?a.fx.cssPrefix:"",resizeHeight:!0,heightDuration:null,concurrentHeightChange:"undefined"==typeof Zepto||null===Zepto,scrollOn:"start",scrollCallback:h,scrollDuration:null,scrollToContainerTop:!0,concurrentScroll:"undefined"==typeof Zepto||null===Zepto,maintainViewportHeight:null,dataAttrEvent:"click",dataAttr:{push:"pushview",pop:"popview"},classNames:{container:"SimpleSlideView-container",view:"SimpleSlideView-view",activeView:"SimpleSlideView-view-active"},eventNames:{on:"slideViewOn",off:"slideViewOff",beforeOn:"slideViewBeforeOn",beforeOff:"slideViewBeforeOff",deferred:"slideViewDeferred",viewChangeStart:"viewChangeStart",viewChangeEnd:"viewChangeEnd"}},g=function(b,c){var d,e,f,g,h;for(d=a(b),e={},g=0,h=c.length;h>g;g++)f=c[g],e[f]="";return d.css(e)},d=function(b){return null!=a.fn.outerHeight?a(b).outerHeight():a(b).height()},e=function(b){return null!=a.fn.outerWidth?a(b).outerWidth():a(b).width()},f=function(a,b,c){return null==b&&(b=!0),null==c&&(c=!1),"push"===a?b:c},b=function(){function b(b,d){this.options=a.extend(!0,{},c,d),null==this.options.heightDuration&&(this.options.heightDuration=this.options.duration),null==this.options.scrollDuration&&(this.options.scrollDuration=this.options.duration),null==this.options.maintainViewportHeight&&(this.options.maintainViewportHeight=this.options.resizeHeight&&this.options.scrollOnStart),null==window.innerHeight&&(this.options.maintainViewportHeight=!1),this.$container=a(b),this.$views="string"==typeof this.options.views?this.$container.find(this.options.views):a(this.options.views),this.$activeView=null!=this.options.activeView?a(this.options.activeView):this.$views.first(),this.isActive=!1,this.options.deferOn?this.$container.trigger(this.options.eventNames.deferred):this.on()}return b.prototype.on=function(){var b=this;if(!this.isActive)return this.$container.trigger(this.options.eventNames.beforeOn),this.queue=[],this.isActive=!0,this.isSliding=!1,this.$container.addClass(this.options.classNames.container),this.$views.addClass(this.options.classNames.view),this.$activeView.addClass(this.options.classNames.activeView),this.$views.not(this.$activeView).css("display","none"),this.options.maintainViewportHeight&&(this.lastViewportHeight=window.innerHeight),null!=this.options.dataAttrEvent&&(this.$container.on(this.options.dataAttrEvent,"[data-"+this.options.dataAttr.push+"]",function(c){var d,e;return d=a(c.currentTarget),e=d.data(b.options.dataAttr.push),e.length||(e=d.attr("href")),e.length?(c.preventDefault(),b.pushView(e)):void 0}),this.$container.on(this.options.dataAttrEvent,"[data-"+this.options.dataAttr.pop+"]",function(c){var d,e;return d=a(c.currentTarget),e=d.data(b.options.dataAttr.pop),e.length||(e=d.attr("href")),e.length?(c.preventDefault(),b.popView(e)):void 0})),this.$container.trigger(this.options.eventNames.on)},b.prototype.off=function(){return this.isActive?(this.$container.trigger(this.options.eventNames.beforeOff),this.queue=[],this.isActive=!1,this.isSliding=!1,this.$container.removeClass(this.options.classNames.container),this.$views.removeClass(this.options.classNames.view+" "+this.options.classNames.activeView),this.$views.css("display",""),this.options.maintainViewportHeight&&a("html").css("min-height",""),null!=this.options.dataAttrEvent&&(this.$container.off(this.options.dataAttrEvent,"[data-"+this.options.dataAttr.push+"]"),this.$container.off(this.options.dataAttrEvent,"[data-"+this.options.dataAttr.pop+"]")),this.$container.trigger(this.options.eventNames.off)):void 0},b.prototype.toggle=function(a){return null==a&&(a=!this.isActive),a?this.on():this.off()},b.prototype.changeView=function(b,c){var h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z=this;if(i=a(b),i.length&&i[0]!==this.$activeView[0]){if(k=arguments,this.isSliding||this.queue.length)return this.queue.push(k);if(this.isSliding=!0,this.$container.trigger(this.options.eventNames.viewChangeStart,k),h=this.$activeView.add(i),t={},q={},u=["left","position","top","width"],p=e(this.$container),o={height:d(this.$container),overflow:"hidden",position:"relative",width:"100%"},j={},v={},m={position:"absolute",top:0,width:p},this.options.useTransformProps?(w=this.options.cssPrefix+"transform",y=this.options.use3D?"translate3d(":"translateX(",x=this.options.use3D?", 0, 0)":")",u.push(w),m.left=0,v[w]=y+f(c,100,-100)+"%"+x,t[w]=y+f(c,-100,100)+"%"+x,q[w]=y+"0"+x):(j.left=0,v.left=f(c,p,-1*p),t.left=f(c,-1*p,p),q.left=0),s=function(){return z.isSliding=!1,z.$container.trigger(z.options.eventNames.viewChangeEnd,k),z.queue.length?z.changeView.apply(z,z.queue.shift()):void 0},r=function(){return g(z.$container,["height","overflow","position","width"]),z.$activeView.removeClass(z.options.classNames.activeView),i.addClass(z.options.classNames.activeView),z.$activeView=i,z.options.scrollCallback&&"end"===z.options.scrollOn?z._scrollToTop(s):s()},l=function(){return z.options.resizeHeight?(z.options.maintainViewportHeight&&window.innerHeight>z.lastViewportHeight&&(z.lastViewportHeight=window.innerHeight,$html.css("min-height",z.lastViewportHeight+top+"px")),z.$container.animate({height:d(i)},z.options.heightDuration,z.options.easing,r)):r()},n=function(){return z.$container.css(o),h.css(m),z.$activeView.css(j),i.css(v),i.show(),z.$activeView.animate(t,z.options.duration,z.options.easing,function(){return g(this,u).hide()}),i.animate(q,z.options.duration,z.options.easing,function(){return g(i,u),z.options.concurrentHeightChange?void 0:l()}),z.options.concurrentHeightChange?l():void 0},this.options.scrollCallback&&"start"===this.options.scrollOn){if(!this.options.concurrentScroll)return this._scrollToTop(n);this._scrollToTop()}return n()}},b.prototype._scrollToTop=function(b){var c;return c=this.options.scrollToContainerTop?this.$container.position().top:0,a(window).scrollTop()>c?this.options.scrollCallback(c,this.options.scrollDuration,b):null!=b?b():void 0},b.prototype.pushView=function(a){return this.changeView(a,"push")},b.prototype.popView=function(a){return this.changeView(a,"pop")},b}(),a.fn.simpleSlideView=function(c,d){return null==c&&(c={}),"object"!=typeof c&&(c={views:c}),"object"==typeof d&&a.extend(c,d),new b(this,c)}}.call(this);
|
36 |
+
|
37 |
+
/*!
|
38 |
+
* jQuery Steps v1.1.0 - 09/04/2014
|
39 |
+
* Copyright (c) 2014 Rafael Staib (http://www.jquery-steps.com)
|
40 |
+
* Licensed under MIT http://www.opensource.org/licenses/MIT
|
41 |
*/
|
42 |
+
!function(a,b){function c(a,b){o(a).push(b)}function d(d,e,f){var g=d.children(e.headerTag),h=d.children(e.bodyTag);g.length>h.length?R(Z,"contents"):g.length<h.length&&R(Z,"titles");var i=e.startIndex;if(f.stepCount=g.length,e.saveState&&a.cookie){var j=a.cookie(U+q(d)),k=parseInt(j,0);!isNaN(k)&&k<f.stepCount&&(i=k)}f.currentIndex=i,g.each(function(e){var f=a(this),g=h.eq(e),i=g.data("mode"),j=null==i?$.html:r($,/^\s*$/.test(i)||isNaN(i)?i:parseInt(i,0)),k=j===$.html||g.data("url")===b?"":g.data("url"),l=j!==$.html&&"1"===g.data("loaded"),m=a.extend({},bb,{title:f.html(),content:j===$.html?g.html():"",contentUrl:k,contentMode:j,contentLoaded:l});c(d,m)})}function e(a){a.triggerHandler("canceled")}function f(a,b){return a.currentIndex-b}function g(b,c){var d=i(b);b.unbind(d).removeData("uid").removeData("options").removeData("state").removeData("steps").removeData("eventNamespace").find(".actions a").unbind(d),b.removeClass(c.clearFixCssClass+" vertical");var e=b.find(".content > *");e.removeData("loaded").removeData("mode").removeData("url"),e.removeAttr("id").removeAttr("role").removeAttr("tabindex").removeAttr("class").removeAttr("style")._removeAria("labelledby")._removeAria("hidden"),b.find(".content > [data-mode='async'],.content > [data-mode='iframe']").empty();var f=a('<{0} class="{1}"></{0}>'.format(b.get(0).tagName,b.attr("class"))),g=b._id();return null!=g&&""!==g&&f._id(g),f.html(b.find(".content").html()),b.after(f),b.remove(),f}function h(a,b){var c=a.find(".steps li").eq(b.currentIndex);a.triggerHandler("finishing",[b.currentIndex])?(c.addClass("done").removeClass("error"),a.triggerHandler("finished",[b.currentIndex])):c.addClass("error")}function i(a){var b=a.data("eventNamespace");return null==b&&(b="."+q(a),a.data("eventNamespace",b)),b}function j(a,b){var c=q(a);return a.find("#"+c+V+b)}function k(a,b){var c=q(a);return a.find("#"+c+W+b)}function l(a,b){var c=q(a);return a.find("#"+c+X+b)}function m(a){return a.data("options")}function n(a){return a.data("state")}function o(a){return a.data("steps")}function p(a,b){var c=o(a);return(0>b||b>=c.length)&&R(Y),c[b]}function q(a){var b=a.data("uid");return null==b&&(b=a._id(),null==b&&(b="steps-uid-".concat(T),a._id(b)),T++,a.data("uid",b)),b}function r(a,c){if(S("enumType",a),S("keyOrValue",c),"string"==typeof c){var d=a[c];return d===b&&R("The enum key '{0}' does not exist.",c),d}if("number"==typeof c){for(var e in a)if(a[e]===c)return c;R("Invalid enum value '{0}'.",c)}else R("Invalid key or value type.")}function s(a,b,c){return B(a,b,c,v(c,1))}function t(a,b,c){return B(a,b,c,f(c,1))}function u(a,b,c,d){if((0>d||d>=c.stepCount)&&R(Y),!(b.forceMoveForward&&d<c.currentIndex)){var e=c.currentIndex;return a.triggerHandler("stepChanging",[c.currentIndex,d])?(c.currentIndex=d,O(a,b,c),E(a,b,c,e),D(a,b,c),A(a,b,c),P(a,b,c,d,e,function(){a.triggerHandler("stepChanged",[d,e])})):a.find(".steps li").eq(e).addClass("error"),!0}}function v(a,b){return a.currentIndex+b}function w(b){var c=a.extend(!0,{},cb,b);return this.each(function(){var b=a(this),e={currentIndex:c.startIndex,currentStep:null,stepCount:0,transitionElement:null};b.data("options",c),b.data("state",e),b.data("steps",[]),d(b,c,e),J(b,c,e),G(b,c),c.autoFocus&&0===T&&j(b,c.startIndex).focus(),b.triggerHandler("init",[c.startIndex])})}function x(b,c,d,e,f){(0>e||e>d.stepCount)&&R(Y),f=a.extend({},bb,f),y(b,e,f),d.currentIndex!==d.stepCount&&d.currentIndex>=e&&(d.currentIndex++,O(b,c,d)),d.stepCount++;var g=b.find(".content"),h=a("<{0}>{1}</{0}>".format(c.headerTag,f.title)),i=a("<{0}></{0}>".format(c.bodyTag));return(null==f.contentMode||f.contentMode===$.html)&&i.html(f.content),0===e?g.prepend(i).prepend(h):k(b,e-1).after(i).after(h),K(b,d,i,e),N(b,c,d,h,e),F(b,c,d,e),e===d.currentIndex&&E(b,c,d),D(b,c,d),b}function y(a,b,c){o(a).splice(b,0,c)}function z(b){var c=a(this),d=m(c),e=n(c);if(d.suppressPaginationOnFocus&&c.find(":focus").is(":input"))return b.preventDefault(),!1;var f={left:37,right:39};b.keyCode===f.left?(b.preventDefault(),t(c,d,e)):b.keyCode===f.right&&(b.preventDefault(),s(c,d,e))}function A(b,c,d){if(d.stepCount>0){var e=d.currentIndex,f=p(b,e);if(!c.enableContentCache||!f.contentLoaded)switch(r($,f.contentMode)){case $.iframe:b.find(".content > .body").eq(d.currentIndex).empty().html('<iframe src="'+f.contentUrl+'" frameborder="0" scrolling="no" />').data("loaded","1");break;case $.async:var g=k(b,e)._aria("busy","true").empty().append(M(c.loadingTemplate,{text:c.labels.loading}));a.ajax({url:f.contentUrl,cache:!1}).done(function(a){g.empty().html(a)._aria("busy","false").data("loaded","1"),b.triggerHandler("contentLoaded",[e])})}}}function B(a,b,c,d){var e=c.currentIndex;if(d>=0&&d<c.stepCount&&!(b.forceMoveForward&&d<c.currentIndex)){var f=j(a,d),g=f.parent(),h=g.hasClass("disabled");return g._enableAria(),f.click(),e===c.currentIndex&&h?(g._enableAria(!1),!1):!0}return!1}function C(b){b.preventDefault();var c=a(this),d=c.parent().parent().parent().parent(),f=m(d),g=n(d),i=c.attr("href");switch(i.substring(i.lastIndexOf("#")+1)){case"cancel":e(d);break;case"finish":h(d,g);break;case"next":s(d,f,g);break;case"previous":t(d,f,g)}}function D(a,b,c){if(b.enablePagination){var d=a.find(".actions a[href$='#finish']").parent(),e=a.find(".actions a[href$='#next']").parent();if(!b.forceMoveForward){var f=a.find(".actions a[href$='#previous']").parent();f._enableAria(c.currentIndex>0)}b.enableFinishButton&&b.showFinishButtonAlways?(d._enableAria(c.stepCount>0),e._enableAria(c.stepCount>1&&c.stepCount>c.currentIndex+1)):(d._showAria(b.enableFinishButton&&c.stepCount===c.currentIndex+1),e._showAria(0===c.stepCount||c.stepCount>c.currentIndex+1)._enableAria(c.stepCount>c.currentIndex+1||!b.enableFinishButton))}}function E(b,c,d,e){var f=j(b,d.currentIndex),g=a('<span class="current-info audible">'+c.labels.current+" </span>"),h=b.find(".content > .title");if(null!=e){var i=j(b,e);i.parent().addClass("done").removeClass("error")._selectAria(!1),h.eq(e).removeClass("current").next(".body").removeClass("current"),g=i.find(".current-info"),f.focus()}f.prepend(g).parent()._selectAria().removeClass("done")._enableAria(),h.eq(d.currentIndex).addClass("current").next(".body").addClass("current")}function F(a,b,c,d){for(var e=q(a),f=d;f<c.stepCount;f++){var g=e+V+f,h=e+W+f,i=e+X+f,j=a.find(".title").eq(f)._id(i);a.find(".steps a").eq(f)._id(g)._aria("controls",h).attr("href","#"+i).html(M(b.titleTemplate,{index:f+1,title:j.html()})),a.find(".body").eq(f)._id(h)._aria("labelledby",i)}}function G(a,b){var c=i(a);a.bind("canceled"+c,b.onCanceled),a.bind("contentLoaded"+c,b.onContentLoaded),a.bind("finishing"+c,b.onFinishing),a.bind("finished"+c,b.onFinished),a.bind("init"+c,b.onInit),a.bind("stepChanging"+c,b.onStepChanging),a.bind("stepChanged"+c,b.onStepChanged),b.enableKeyNavigation&&a.bind("keyup"+c,z),a.find(".actions a").bind("click"+c,C)}function H(a,b,c,d){return 0>d||d>=c.stepCount||c.currentIndex===d?!1:(I(a,d),c.currentIndex>d&&(c.currentIndex--,O(a,b,c)),c.stepCount--,l(a,d).remove(),k(a,d).remove(),j(a,d).parent().remove(),0===d&&a.find(".steps li").first().addClass("first"),d===c.stepCount&&a.find(".steps li").eq(d).addClass("last"),F(a,b,c,d),D(a,b,c),!0)}function I(a,b){o(a).splice(b,1)}function J(b,c,d){var e='<{0} class="{1}">{2}</{0}>',f=r(_,c.stepsOrientation),g=f===_.vertical?" vertical":"",h=a(e.format(c.contentContainerTag,"content "+c.clearFixCssClass,b.html())),i=a(e.format(c.stepsContainerTag,"steps "+c.clearFixCssClass,'<ul role="tablist"></ul>')),j=h.children(c.headerTag),k=h.children(c.bodyTag);b.attr("role","application").empty().append(i).append(h).addClass(c.cssClass+" "+c.clearFixCssClass+g),k.each(function(c){K(b,d,a(this),c)}),j.each(function(e){N(b,c,d,a(this),e)}),E(b,c,d),L(b,c,d)}function K(a,b,c,d){var e=q(a),f=e+W+d,g=e+X+d;c._id(f).attr("role","tabpanel")._aria("labelledby",g).addClass("body")._showAria(b.currentIndex===d)}function L(a,b,c){if(b.enablePagination){var d='<{0} class="actions {1}"><ul role="menu" aria-label="{2}">{3}</ul></{0}>',e='<li><a href="#{0}" role="menuitem">{1}</a></li>',f="";b.forceMoveForward||(f+=e.format("previous",b.labels.previous)),f+=e.format("next",b.labels.next),b.enableFinishButton&&(f+=e.format("finish",b.labels.finish)),b.enableCancelButton&&(f+=e.format("cancel",b.labels.cancel)),a.append(d.format(b.actionContainerTag,b.clearFixCssClass,b.labels.pagination,f)),D(a,b,c),A(a,b,c)}}function M(a,c){for(var d=a.match(/#([a-z]*)#/gi),e=0;e<d.length;e++){var f=d[e],g=f.substring(1,f.length-1);c[g]===b&&R("The key '{0}' does not exist in the substitute collection!",g),a=a.replace(f,c[g])}return a}function N(b,c,d,e,f){var g=q(b),h=g+V+f,j=g+W+f,k=g+X+f,l=b.find(".steps > ul"),m=M(c.titleTemplate,{index:f+1,title:e.html()}),n=a('<li role="tab"><a id="'+h+'" href="#'+k+'" aria-controls="'+j+'">'+m+"</a></li>");n._enableAria(c.enableAllSteps||d.currentIndex>f),d.currentIndex>f&&n.addClass("done"),e._id(k).attr("tabindex","-1").addClass("title"),0===f?l.prepend(n):l.find("li").eq(f-1).after(n),0===f&&l.find("li").removeClass("first").eq(f).addClass("first"),f===d.stepCount-1&&l.find("li").removeClass("last").eq(f).addClass("last"),n.children("a").bind("click"+i(b),Q)}function O(b,c,d){c.saveState&&a.cookie&&a.cookie(U+q(b),d.currentIndex)}function P(b,c,d,e,f,g){var h=b.find(".content > .body"),i=r(ab,c.transitionEffect),j=c.transitionEffectSpeed,k=h.eq(e),l=h.eq(f);switch(i){case ab.fade:case ab.slide:var m=i===ab.fade?"fadeOut":"slideUp",o=i===ab.fade?"fadeIn":"slideDown";d.transitionElement=k,l[m](j,function(){var b=a(this)._showAria(!1).parent().parent(),c=n(b);c.transitionElement&&(c.transitionElement[o](j,function(){a(this)._showAria()}).promise().done(g),c.transitionElement=null)});break;case ab.slideLeft:var p=l.outerWidth(!0),q=e>f?-p:p,s=e>f?p:-p;a.when(l.animate({left:q},j,function(){a(this)._showAria(!1)}),k.css("left",s+"px")._showAria().animate({left:0},j)).done(g);break;default:a.when(l._showAria(!1),k._showAria()).done(g)}}function Q(b){b.preventDefault();var c=a(this),d=c.parent().parent().parent().parent(),e=m(d),f=n(d),g=f.currentIndex;if(c.parent().is(":not(.disabled):not(.current)")){var h=c.attr("href"),i=parseInt(h.substring(h.lastIndexOf("-")+1),0);u(d,e,f,i)}return g===f.currentIndex?(j(d,g).focus(),!1):void 0}function R(a){throw arguments.length>1&&(a=a.format(Array.prototype.slice.call(arguments,1))),new Error(a)}function S(a,b){null==b&&R("The argument '{0}' is null or undefined.",a)}a.fn.extend({_aria:function(a,b){return this.attr("aria-"+a,b)},_removeAria:function(a){return this.removeAttr("aria-"+a)},_enableAria:function(a){return null==a||a?this.removeClass("disabled")._aria("disabled","false"):this.addClass("disabled")._aria("disabled","true")},_showAria:function(a){return null==a||a?this.show()._aria("hidden","false"):this.hide()._aria("hidden","true")},_selectAria:function(a){return null==a||a?this.addClass("current")._aria("selected","true"):this.removeClass("current")._aria("selected","false")},_id:function(a){return a?this.attr("id",a):this.attr("id")}}),String.prototype.format||(String.prototype.format=function(){for(var b=1===arguments.length&&a.isArray(arguments[0])?arguments[0]:arguments,c=this,d=0;d<b.length;d++){var e=new RegExp("\\{"+d+"\\}","gm");c=c.replace(e,b[d])}return c});var T=0,U="jQu3ry_5teps_St@te_",V="-t-",W="-p-",X="-h-",Y="Index out of range.",Z="One or more corresponding step {0} are missing.";a.fn.steps=function(b){return a.fn.steps[b]?a.fn.steps[b].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof b&&b?void a.error("Method "+b+" does not exist on jQuery.steps"):w.apply(this,arguments)},a.fn.steps.add=function(a){var b=n(this);return x(this,m(this),b,b.stepCount,a)},a.fn.steps.destroy=function(){return g(this,m(this))},a.fn.steps.finish=function(){h(this,n(this))},a.fn.steps.getCurrentIndex=function(){return n(this).currentIndex},a.fn.steps.getCurrentStep=function(){return p(this,n(this).currentIndex)},a.fn.steps.getStep=function(a){return p(this,a)},a.fn.steps.insert=function(a,b){return x(this,m(this),n(this),a,b)},a.fn.steps.next=function(){return s(this,m(this),n(this))},a.fn.steps.previous=function(){return t(this,m(this),n(this))},a.fn.steps.remove=function(a){return H(this,m(this),n(this),a)},a.fn.steps.setStep=function(){throw new Error("Not yet implemented!")},a.fn.steps.skip=function(){throw new Error("Not yet implemented!")};var $=a.fn.steps.contentMode={html:0,iframe:1,async:2},_=a.fn.steps.stepsOrientation={horizontal:0,vertical:1},ab=a.fn.steps.transitionEffect={none:0,fade:1,slide:2,slideLeft:3},bb=a.fn.steps.stepModel={title:"",content:"",contentUrl:"",contentMode:$.html,contentLoaded:!1},cb=a.fn.steps.defaults={headerTag:"h1",bodyTag:"div",contentContainerTag:"div",actionContainerTag:"div",stepsContainerTag:"div",cssClass:"wizard",clearFixCssClass:"clearfix",stepsOrientation:_.horizontal,titleTemplate:'<span class="number">#index#.</span> #title#',loadingTemplate:'<span class="spinner"></span> #text#',autoFocus:!1,enableAllSteps:!1,enableKeyNavigation:!0,enablePagination:!0,suppressPaginationOnFocus:!0,enableContentCache:!0,enableCancelButton:!1,enableFinishButton:!0,preloadContent:!1,showFinishButtonAlways:!1,forceMoveForward:!1,saveState:!1,startIndex:0,transitionEffect:ab.none,transitionEffectSpeed:200,onStepChanging:function(){return!0},onStepChanged:function(){},onCanceled:function(){},onFinishing:function(){return!0},onFinished:function(){},onContentLoaded:function(){},onInit:function(){},labels:{cancel:"Cancel",current:"current step:",pagination:"Pagination",finish:"Finish",next:"Next",previous:"Previous",loading:"Loading ..."}}}(jQuery);
|
admin/js/wptouch-admin-pointer.js
DELETED
@@ -1,17 +0,0 @@
|
|
1 |
-
jQuery(document).ready( function($) {
|
2 |
-
wptouch_open_pointer(0);
|
3 |
-
function wptouch_open_pointer(i) {
|
4 |
-
pointer = wptouchpointer.pointers[i];
|
5 |
-
console.log( pointer );
|
6 |
-
options = jQuery.extend( pointer.options, {
|
7 |
-
close: function() {
|
8 |
-
jQuery.post( ajaxurl, {
|
9 |
-
pointer: pointer.id,
|
10 |
-
action: 'dismiss-wp-pointer'
|
11 |
-
});
|
12 |
-
}
|
13 |
-
});
|
14 |
-
|
15 |
-
jQuery(pointer.target).pointer( options ).pointer('open');
|
16 |
-
}
|
17 |
-
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/js/wptouch-admin-remodal.js
ADDED
@@ -0,0 +1,236 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
function wptouchHandleLicensePanel() {
|
2 |
+
|
3 |
+
// Hide the modal statuses to start
|
4 |
+
jQuery( '.remodal .status' ).hide();
|
5 |
+
|
6 |
+
// Animation to start the progressbar
|
7 |
+
function wptouchProgressBarStart( barElement ){
|
8 |
+
jQuery( barElement ).animate({ width: '20%' }, 550 );
|
9 |
+
}
|
10 |
+
|
11 |
+
// Animation for an error response
|
12 |
+
function wptouchProgressBarError( barElement ){
|
13 |
+
jQuery( barElement ).animate({ width: '100%' }, 500, function(){ jQuery( barElement ).addClass( 'bar-fail' ); } );
|
14 |
+
}
|
15 |
+
|
16 |
+
// Animation for an issue response
|
17 |
+
function wptouchProgressBarIssue( barElement ){
|
18 |
+
jQuery( barElement ).animate({ width: '100%' }, 500, function(){ jQuery( barElement ).addClass( 'bar-issue' ); } );
|
19 |
+
}
|
20 |
+
|
21 |
+
// Animation for a response related to license issues
|
22 |
+
function wptouchProgressBarLicense( barElement ){
|
23 |
+
jQuery( barElement ).animate({ width: '100%' }, 500, function(){ jQuery( barElement ).addClass( 'bar-license' ); } );
|
24 |
+
}
|
25 |
+
|
26 |
+
// Animation for a success response
|
27 |
+
function wptouchProgressBarSuccess( barElement ){
|
28 |
+
jQuery( barElement ).animate({ width: '100%' }, 500, function(){ jQuery( barElement ).addClass( 'bar-success' ); } );
|
29 |
+
}
|
30 |
+
|
31 |
+
// Reset progressbar for new animations when license modals are closed
|
32 |
+
function wptouchProgressBarReset( barElement ){
|
33 |
+
jQuery( barElement ).css( 'width', '0%' ).removeClass( 'bar-fail bar-issue bar-license bar-success' );
|
34 |
+
jQuery( barElement ).parent().removeClass( 'complete' );
|
35 |
+
jQuery( '.license-activation h1' ).show();
|
36 |
+
}
|
37 |
+
|
38 |
+
// Check to make sure the panel exists
|
39 |
+
if ( jQuery( '#license-settings-area' ).length ) {
|
40 |
+
|
41 |
+
// See if we have a license already
|
42 |
+
if ( typeof bncHasLicense == 'undefined' || bncHasLicense == 0 ) {
|
43 |
+
|
44 |
+
var activateDiv = jQuery( '#activate-license' );
|
45 |
+
|
46 |
+
// check to see if the e-mail address and license key conforms properly before showing action buttons
|
47 |
+
jQuery( '#license_email, #license_key' ).on( 'keyup', function(){
|
48 |
+
if ( /(.+)@(.+){2,}\.(.+){2,}/.test( jQuery( '#license_email' ).val().trim() ) && jQuery( '#license_key' ).val().trim().length == 23 ){
|
49 |
+
activateDiv.css( 'opacity', '1' );
|
50 |
+
} else {
|
51 |
+
activateDiv.css( 'opacity', '.3' );
|
52 |
+
}
|
53 |
+
}).keyup();
|
54 |
+
|
55 |
+
// The main license activation JavaScript
|
56 |
+
jQuery( '#activate-license' ).on( 'click', 'a.activate', function( e ) {
|
57 |
+
|
58 |
+
e.preventDefault();
|
59 |
+
|
60 |
+
// Setup AJAX params
|
61 |
+
var licenseEmail = jQuery( '#license_email' ).val();
|
62 |
+
var licenseKey = jQuery( '#license_key' ).val().trim();
|
63 |
+
|
64 |
+
var ajaxParams = {
|
65 |
+
email: licenseEmail,
|
66 |
+
key: licenseKey
|
67 |
+
};
|
68 |
+
|
69 |
+
// Our progress bar element
|
70 |
+
var progressBar = jQuery( '#progress-license' ).find( '.bar' );
|
71 |
+
|
72 |
+
// Cache objects we'll be using
|
73 |
+
var modal = jQuery('[data-remodal-id=modal-license]').remodal();
|
74 |
+
|
75 |
+
var progressArea = jQuery( '.license-activation' );
|
76 |
+
|
77 |
+
jQuery( document ).on( 'closed', '.remodal', function ( e ) {
|
78 |
+
wptouchProgressBarReset( progressBar );
|
79 |
+
jQuery( '.status' ).hide();
|
80 |
+
progressArea.show();
|
81 |
+
});
|
82 |
+
|
83 |
+
wptouchProgressBarStart( progressBar );
|
84 |
+
|
85 |
+
wptouchAdminAjax( 'activate-license-key', ajaxParams, function( result ) {
|
86 |
+
|
87 |
+
var progressItem = jQuery( '.progress' );
|
88 |
+
var activationHead = jQuery( '.license-activation h1' );
|
89 |
+
if ( result == '1' ) {
|
90 |
+
|
91 |
+
// license success
|
92 |
+
modal.open();
|
93 |
+
jQuery( document ).one( 'opened', '.remodal', function () {
|
94 |
+
wptouchProgressBarSuccess( progressBar );
|
95 |
+
setTimeout( function(){
|
96 |
+
activationHead.slideUp();
|
97 |
+
|
98 |
+
if ( !jQuery( '#upgrade-area' ).length ) {
|
99 |
+
progressItem.addClass( 'complete' );
|
100 |
+
jQuery( '.license-success' ).slideDown();
|
101 |
+
jQuery( document ).on( 'closed', '.remodal', function() {
|
102 |
+
wptouchAdminTriggerReload();
|
103 |
+
});
|
104 |
+
} else {
|
105 |
+
jQuery( '.license-free-upgrade-text' ).show();
|
106 |
+
wptouchAdminAjax( 'go-pro', ajaxParams, function( finished ) {
|
107 |
+
if ( finished == '1' ) {
|
108 |
+
progressItem.addClass( 'complete' );
|
109 |
+
jQuery( '.license-free-upgrade-text' ).hide();
|
110 |
+
jQuery( '.license-free-upgrade' ).slideDown();
|
111 |
+
jQuery( document ).on( 'closed', '.remodal', function () {
|
112 |
+
wptouchAdminTriggerReload();
|
113 |
+
});
|
114 |
+
} else {
|
115 |
+
jQuery( progressBar ).removeClass( 'bar-success' ).addClass( 'bar-issue' );
|
116 |
+
jQuery( '.license-free-upgrade-failed' ).slideDown();
|
117 |
+
}
|
118 |
+
});
|
119 |
+
}
|
120 |
+
|
121 |
+
}, 1500 );
|
122 |
+
});
|
123 |
+
|
124 |
+
} else if ( result == '2' ) {
|
125 |
+
|
126 |
+
// rejected license
|
127 |
+
modal.open();
|
128 |
+
jQuery( document ).one( 'opened', '.remodal', function () {
|
129 |
+
wptouchProgressBarLicense( progressBar );
|
130 |
+
setTimeout( function(){
|
131 |
+
progressItem.addClass( 'complete' );
|
132 |
+
activationHead.slideUp();
|
133 |
+
jQuery( '.license-failed' ).slideDown();
|
134 |
+
}, 1500 );
|
135 |
+
});
|
136 |
+
|
137 |
+
} else if ( result == '3' ) {
|
138 |
+
|
139 |
+
// no licenses remaining
|
140 |
+
modal.open();
|
141 |
+
jQuery( document ).one( 'opened', '.remodal', function () {
|
142 |
+
wptouchProgressBarLicense( progressBar );
|
143 |
+
jQuery( '.manage-licenses' ).on( 'click', function( e ){
|
144 |
+
modal.close();
|
145 |
+
e.preventDefault();
|
146 |
+
window.location.href = '//www.wptouch.com/account/';
|
147 |
+
});
|
148 |
+
jQuery( '.visit-pricing' ).on( 'click', function( e ){
|
149 |
+
modal.close();
|
150 |
+
e.preventDefault();
|
151 |
+
window.location.href = '//www.wptouch.com/pricing/';
|
152 |
+
}); setTimeout( function(){
|
153 |
+
progressItem.addClass( 'complete' );
|
154 |
+
activationHead.slideUp();
|
155 |
+
jQuery( '.license-no-activations' ).slideDown();
|
156 |
+
}, 1500 );
|
157 |
+
});
|
158 |
+
|
159 |
+
} else if ( result == '4' ) {
|
160 |
+
|
161 |
+
// server issue license
|
162 |
+
modal.open();
|
163 |
+
jQuery( document ).one( 'opened', '.remodal', function () {
|
164 |
+
wptouchProgressBarError( progressBar );
|
165 |
+
|
166 |
+
jQuery( '.email-support' ).on( 'click', function( e ){
|
167 |
+
modal.close();
|
168 |
+
e.preventDefault();
|
169 |
+
window.location.href = 'mailto:support@wtouch.com?subject=Cannot%20Reach%20WPtouch%20Server';
|
170 |
+
});
|
171 |
+
|
172 |
+
setTimeout( function(){
|
173 |
+
progressItem.addClass( 'complete' );
|
174 |
+
activationHead.slideUp();
|
175 |
+
jQuery( '.license-no-connection' ).slideDown();
|
176 |
+
}, 1500 );
|
177 |
+
});
|
178 |
+
|
179 |
+
} else if ( result == '5' ) {
|
180 |
+
// license expired
|
181 |
+
modal.open();
|
182 |
+
jQuery( document ).one( 'opened', '.remodal', function () {
|
183 |
+
wptouchProgressBarIssue( progressBar );
|
184 |
+
|
185 |
+
jQuery( '.renew-license' ).on( 'click', function( e ){
|
186 |
+
modal.close();
|
187 |
+
e.preventDefault();
|
188 |
+
window.location.href = '//www.wptouch.com/renew/?utm_campaign=renew-from-license-area&utm_source=wptouch&utm_medium=web';
|
189 |
+
});
|
190 |
+
|
191 |
+
setTimeout( function(){
|
192 |
+
progressItem.addClass( 'complete' );
|
193 |
+
activationHead.slideUp();
|
194 |
+
jQuery( '.license-expired' ).slideDown();
|
195 |
+
}, 1500 );
|
196 |
+
});
|
197 |
+
}
|
198 |
+
});
|
199 |
+
});
|
200 |
+
} else {
|
201 |
+
jQuery( activate ).hide();
|
202 |
+
jQuery( success ).show()
|
203 |
+
}
|
204 |
+
|
205 |
+
// Clear license button (resets the license settings independent of the rest of WPtouch's settings)
|
206 |
+
jQuery( 'a.clear-license' ).click( function ( e ) {
|
207 |
+
if ( confirm( WPtouchCustom.remove_license ) ) {
|
208 |
+
var ajaxParams = {};
|
209 |
+
|
210 |
+
wptouchAdminAjax( 'reset-license-info', ajaxParams, function( result ) {
|
211 |
+
document.location.href = document.location.href;
|
212 |
+
});
|
213 |
+
}
|
214 |
+
|
215 |
+
e.preventDefault();
|
216 |
+
});
|
217 |
+
}
|
218 |
+
}
|
219 |
+
|
220 |
+
function wptouchSitewideAdminReady(){
|
221 |
+
wptouchHandleLicensePanel();
|
222 |
+
}
|
223 |
+
|
224 |
+
jQuery( document ).ready( function() {
|
225 |
+
wptouchSitewideAdminReady();
|
226 |
+
});
|
227 |
+
|
228 |
+
/*
|
229 |
+
* Remodal - v1.0.3
|
230 |
+
* Responsive, lightweight, fast, synchronized with CSS animations, fully customizable modal window plugin with declarative configuration and hash tracking.
|
231 |
+
* http://vodkabears.github.io/remodal/
|
232 |
+
*
|
233 |
+
* Made by Ilya Makarov
|
234 |
+
* Under MIT License
|
235 |
+
*/
|
236 |
+
!function(a,b){"function"==typeof define&&define.amd?define(["jquery"],function(c){return b(a,c)}):"object"==typeof exports?b(a,require("jquery")):b(a,a.jQuery||a.Zepto)}(this,function(a,b){"use strict";function c(a){if(w&&"none"===a.css("animation-name")&&"none"===a.css("-webkit-animation-name")&&"none"===a.css("-moz-animation-name")&&"none"===a.css("-o-animation-name")&&"none"===a.css("-ms-animation-name"))return 0;var b,c,d,e,f=a.css("animation-duration")||a.css("-webkit-animation-duration")||a.css("-moz-animation-duration")||a.css("-o-animation-duration")||a.css("-ms-animation-duration")||"0s",g=a.css("animation-delay")||a.css("-webkit-animation-delay")||a.css("-moz-animation-delay")||a.css("-o-animation-delay")||a.css("-ms-animation-delay")||"0s",h=a.css("animation-iteration-count")||a.css("-webkit-animation-iteration-count")||a.css("-moz-animation-iteration-count")||a.css("-o-animation-iteration-count")||a.css("-ms-animation-iteration-count")||"1";for(f=f.split(", "),g=g.split(", "),h=h.split(", "),e=0,c=f.length,b=Number.NEGATIVE_INFINITY;c>e;e++)d=parseFloat(f[e])*parseInt(h[e],10)+parseFloat(g[e]),d>b&&(b=d);return d}function d(){if(b(document.body).height()<=b(window).height())return 0;var a,c,d=document.createElement("div"),e=document.createElement("div");return d.style.visibility="hidden",d.style.width="100px",document.body.appendChild(d),a=d.offsetWidth,d.style.overflow="scroll",e.style.width="100%",d.appendChild(e),c=e.offsetWidth,d.parentNode.removeChild(d),a-c}function e(){var a,c,e=b("html"),f=k("is-locked");e.hasClass(f)||(c=b(document.body),a=parseInt(c.css("padding-right"),10)+d(),c.css("padding-right",a+"px"),e.addClass(f))}function f(){var a,c,e=b("html"),f=k("is-locked");e.hasClass(f)&&(c=b(document.body),a=parseInt(c.css("padding-right"),10)-d(),c.css("padding-right",a+"px"),e.removeClass(f))}function g(a,b,c,d){var e=k("is",b),f=[k("is",u.CLOSING),k("is",u.OPENING),k("is",u.CLOSED),k("is",u.OPENED)].join(" ");a.$bg.removeClass(f).addClass(e),a.$overlay.removeClass(f).addClass(e),a.$wrapper.removeClass(f).addClass(e),a.$modal.removeClass(f).addClass(e),a.state=b,!c&&a.$modal.trigger({type:b,reason:d},[{reason:d}])}function h(a,d,e){var f=0,g=function(a){a.target===this&&f++},h=function(a){a.target===this&&0===--f&&(b.each(["$bg","$overlay","$wrapper","$modal"],function(a,b){e[b].off(r+" "+s)}),d())};b.each(["$bg","$overlay","$wrapper","$modal"],function(a,b){e[b].on(r,g).on(s,h)}),a(),0===c(e.$bg)&&0===c(e.$overlay)&&0===c(e.$wrapper)&&0===c(e.$modal)&&(b.each(["$bg","$overlay","$wrapper","$modal"],function(a,b){e[b].off(r+" "+s)}),d())}function i(a){a.state!==u.CLOSED&&(b.each(["$bg","$overlay","$wrapper","$modal"],function(b,c){a[c].off(r+" "+s)}),a.$bg.removeClass(a.settings.modifier),a.$overlay.removeClass(a.settings.modifier).hide(),a.$wrapper.hide(),f(),g(a,u.CLOSED,!0))}function j(a){var b,c,d,e,f={};for(a=a.replace(/\s*:\s*/g,":").replace(/\s*,\s*/g,","),b=a.split(","),e=0,c=b.length;c>e;e++)b[e]=b[e].split(":"),d=b[e][1],("string"==typeof d||d instanceof String)&&(d="true"===d||("false"===d?!1:d)),("string"==typeof d||d instanceof String)&&(d=isNaN(d)?d:+d),f[b[e][0]]=d;return f}function k(){for(var a=q,b=0;b<arguments.length;++b)a+="-"+arguments[b];return a}function l(){var a,c,d=location.hash.replace("#","");if(d){try{c=b("[data-"+p+"-id="+d.replace(new RegExp("/","g"),"\\/")+"]")}catch(e){}c&&c.length&&(a=b[p].lookup[c.data(p)],a&&a.settings.hashTracking&&a.open())}else n&&n.state===u.OPENED&&n.settings.hashTracking&&n.close()}function m(a,c){var d=b(document.body),e=this;e.settings=b.extend({},t,c),e.index=b[p].lookup.push(e)-1,e.state=u.CLOSED,e.$overlay=b("."+k("overlay")),e.$overlay.length||(e.$overlay=b("<div>").addClass(k("overlay")+" "+k("is",u.CLOSED)).hide(),d.append(e.$overlay)),e.$bg=b("."+k("bg")).addClass(k("is",u.CLOSED)),e.$modal=a.addClass(q+" "+k("is-initialized")+" "+e.settings.modifier+" "+k("is",u.CLOSED)).attr("tabindex","-1"),e.$wrapper=b("<div>").addClass(k("wrapper")+" "+e.settings.modifier+" "+k("is",u.CLOSED)).hide().append(e.$modal),d.append(e.$wrapper),e.$wrapper.on("click."+q,"[data-"+p+'-action="close"]',function(a){a.preventDefault(),e.close()}),e.$wrapper.on("click."+q,"[data-"+p+'-action="cancel"]',function(a){a.preventDefault(),e.$modal.trigger(v.CANCELLATION),e.settings.closeOnCancel&&e.close(v.CANCELLATION)}),e.$wrapper.on("click."+q,"[data-"+p+'-action="confirm"]',function(a){a.preventDefault(),e.$modal.trigger(v.CONFIRMATION),e.settings.closeOnConfirm&&e.close(v.CONFIRMATION)}),e.$wrapper.on("click."+q,function(a){var c=b(a.target);c.hasClass(k("wrapper"))&&e.settings.closeOnOutsideClick&&e.close()})}var n,o,p="remodal",q=a.REMODAL_GLOBALS&&a.REMODAL_GLOBALS.NAMESPACE||p,r=b.map(["animationstart","webkitAnimationStart","MSAnimationStart","oAnimationStart"],function(a){return a+"."+q}).join(" "),s=b.map(["animationend","webkitAnimationEnd","MSAnimationEnd","oAnimationEnd"],function(a){return a+"."+q}).join(" "),t=b.extend({hashTracking:!0,closeOnConfirm:!0,closeOnCancel:!0,closeOnEscape:!0,closeOnOutsideClick:!0,modifier:""},a.REMODAL_GLOBALS&&a.REMODAL_GLOBALS.DEFAULTS),u={CLOSING:"closing",CLOSED:"closed",OPENING:"opening",OPENED:"opened"},v={CONFIRMATION:"confirmation",CANCELLATION:"cancellation"},w=function(){var a=document.createElement("div").style;return void 0!==a.animationName||void 0!==a.WebkitAnimationName||void 0!==a.MozAnimationName||void 0!==a.msAnimationName||void 0!==a.OAnimationName}();m.prototype.open=function(){var a,c=this;c.state!==u.OPENING&&c.state!==u.CLOSING&&(a=c.$modal.attr("data-"+p+"-id"),a&&c.settings.hashTracking&&(o=b(window).scrollTop(),location.hash=a),n&&n!==c&&i(n),n=c,e(),c.$bg.addClass(c.settings.modifier),c.$overlay.addClass(c.settings.modifier).show(),c.$wrapper.show().scrollTop(0),c.$modal.focus(),h(function(){g(c,u.OPENING)},function(){g(c,u.OPENED)},c))},m.prototype.close=function(a){var c=this;c.state!==u.OPENING&&c.state!==u.CLOSING&&(c.settings.hashTracking&&c.$modal.attr("data-"+p+"-id")===location.hash.substr(1)&&(location.hash="",b(window).scrollTop(o)),h(function(){g(c,u.CLOSING,!1,a)},function(){c.$bg.removeClass(c.settings.modifier),c.$overlay.removeClass(c.settings.modifier).hide(),c.$wrapper.hide(),f(),g(c,u.CLOSED,!1,a)},c))},m.prototype.getState=function(){return this.state},m.prototype.destroy=function(){var a,c=b[p].lookup;i(this),this.$wrapper.remove(),delete c[this.index],a=b.grep(c,function(a){return!!a}).length,0===a&&(this.$overlay.remove(),this.$bg.removeClass(k("is",u.CLOSING)+" "+k("is",u.OPENING)+" "+k("is",u.CLOSED)+" "+k("is",u.OPENED)))},b[p]={lookup:[]},b.fn[p]=function(a){var c,d;return this.each(function(e,f){d=b(f),null==d.data(p)?(c=new m(d,a),d.data(p,c.index),c.settings.hashTracking&&d.attr("data-"+p+"-id")===location.hash.substr(1)&&c.open()):c=b[p].lookup[d.data(p)]}),c},b(document).ready(function(){b(document).on("click","[data-"+p+"-target]",function(a){a.preventDefault();var c=a.currentTarget,d=c.getAttribute("data-"+p+"-target"),e=b("[data-"+p+"-id="+d+"]");b[p].lookup[e.data(p)].open()}),b(document).find("."+q).each(function(a,c){var d=b(c),e=d.data(p+"-options");e?("string"==typeof e||e instanceof String)&&(e=j(e)):e={},d[p](e)}),b(document).on("keydown."+q,function(a){n&&n.settings.closeOnEscape&&n.state===u.OPENED&&27===a.keyCode&&n.close()}),b(window).on("hashchange."+q,l)})});
|
admin/js/wptouch-admin-wizard.js
ADDED
@@ -0,0 +1,330 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
function wptouchDoWizard(){
|
2 |
+
|
3 |
+
var wizardContainer = jQuery( '#wptouch-wizard-container' );
|
4 |
+
var locale_selected = jQuery( '#language-force_locale' ).val();
|
5 |
+
|
6 |
+
wizardContainer.steps({
|
7 |
+
headerTag: 'details',
|
8 |
+
bodyTag: 'section',
|
9 |
+
transitionEffect: 'slideLeft',
|
10 |
+
startIndex: 0,
|
11 |
+
saveState: true, // save to a cookie
|
12 |
+
labels: {
|
13 |
+
next: '<i class="icon-right-open-big"></i>',
|
14 |
+
previous: '<i class="icon-left-open-big"></i>'
|
15 |
+
},
|
16 |
+
onInit: function( event, currentIndex ) {
|
17 |
+
var wizardScanForAnalytics = jQuery( '#wizard-scan-analytics' );
|
18 |
+
if ( wizardScanForAnalytics.length ) {
|
19 |
+
wizardScanForAnalytics.click( function( e ) {
|
20 |
+
jQuery( this ).text( jQuery( this ).attr( 'data-loading-text' ) );
|
21 |
+
jQuery( this ).parent().find( 'i' ).addClass( 'pulse' );
|
22 |
+
wptouchAdminAjax(
|
23 |
+
'wizard-scan_for_analytics',
|
24 |
+
{},
|
25 |
+
function( result ) {
|
26 |
+
var resultInfo = jQuery.parseJSON( result );
|
27 |
+
if ( resultInfo.code == 'noresult' ) {
|
28 |
+
// No Analytics code found
|
29 |
+
wizardScanForAnalytics.hide().before( '<p>' + resultInfo.msg + '</p>' );
|
30 |
+
wizardScanForAnalytics.parent().find( 'i' ).addClass( 'notfound' );
|
31 |
+
} else {
|
32 |
+
if ( resultInfo.site_id ) {
|
33 |
+
wizardScanForAnalytics.hide().before( '<p>' + resultInfo.success + '</p>' );
|
34 |
+
wizardScanForAnalytics.parent().find( 'i' ).addClass( 'success' );
|
35 |
+
jQuery( '#analytics_google_id' ).val( resultInfo.site_id );
|
36 |
+
}
|
37 |
+
}
|
38 |
+
}
|
39 |
+
);
|
40 |
+
e.preventDefault();
|
41 |
+
});
|
42 |
+
}
|
43 |
+
},
|
44 |
+
onStepChanging: function ( event, currentIndex, newIndex ) {
|
45 |
+
var whereWeAt = wizardContainer.steps('getStep', currentIndex );
|
46 |
+
bncHasLicense = bncHasLicense;
|
47 |
+
// language
|
48 |
+
if ( newIndex > currentIndex ) {
|
49 |
+
currentStep = wizardContainer.steps( 'getStep', currentIndex );
|
50 |
+
switch ( currentStep.title ) {
|
51 |
+
case 'Language':
|
52 |
+
current_locale = jQuery( '#language-force_locale' ).val();
|
53 |
+
if ( current_locale != locale_selected ){
|
54 |
+
if ( WPtouchCustom.is_network_admin ) {
|
55 |
+
var args = { 'force_network_locale': current_locale };
|
56 |
+
} else {
|
57 |
+
var args = { 'force_locale': current_locale };
|
58 |
+
}
|
59 |
+
|
60 |
+
wptouchAdminAjax(
|
61 |
+
'wizard-language',
|
62 |
+
args,
|
63 |
+
function(){
|
64 |
+
// set the cookie to the next slide
|
65 |
+
jQuery( '.language img' ).addClass( 'zoomOut' );
|
66 |
+
jQuery( '.set-language' ).fadeIn();
|
67 |
+
jQuery.cookie( 'jQu3ry_5teps_St@te_wptouch-wizard-container', '1' );
|
68 |
+
setTimeout( function(){ wptouchReload() }, 1000 );
|
69 |
+
|
70 |
+
}
|
71 |
+
);
|
72 |
+
return false;
|
73 |
+
}
|
74 |
+
break;
|
75 |
+
case 'Activate License':
|
76 |
+
if ( bncHasLicense == 1 ) {
|
77 |
+
// Licensed in this wizard run
|
78 |
+
jQuery.cookie( 'jQu3ry_5teps_St@te_wptouch-wizard-container', '3' );
|
79 |
+
// Page will be reloaded
|
80 |
+
} else if ( bncHasLicense == 0 ) {
|
81 |
+
// Didn't get licensed
|
82 |
+
return false;
|
83 |
+
} else {
|
84 |
+
// Previously licensed
|
85 |
+
wptouchAdminAjax( 'wizard-update-extensions', {}, wptouchContinue );
|
86 |
+
}
|
87 |
+
break;
|
88 |
+
case 'Download Upload Themes':
|
89 |
+
case 'Download Upload Extensions':
|
90 |
+
wptouchReload();
|
91 |
+
break;
|
92 |
+
case 'Choose a Theme':
|
93 |
+
theme_selected = jQuery( 'input[name="activate_theme"]:checked').val();
|
94 |
+
if ( theme_selected ) {
|
95 |
+
jQuery( '.actions li' ).removeClass( 'disabled' );
|
96 |
+
jQuery.cookie( 'jQu3ry_5teps_St@te_wptouch-wizard-container', '4' );
|
97 |
+
wptouchAdminAjax( 'wizard-theme', { 'theme': theme_selected }, wptouchReload );
|
98 |
+
} else{
|
99 |
+
jQuery( '.actions li' ).addClass( 'disabled' );
|
100 |
+
return false;
|
101 |
+
}
|
102 |
+
break;
|
103 |
+
case 'Activate Extensions':
|
104 |
+
extensions_selected = [];
|
105 |
+
jQuery( 'input[name="activate_extension[]"]:checked').each( function() {
|
106 |
+
extensions_selected.push( jQuery( this ).val() );
|
107 |
+
});
|
108 |
+
wptouchAdminAjax( 'wizard-extensions', { 'extensions': extensions_selected }, wptouchContinue );
|
109 |
+
break;
|
110 |
+
case 'Home and Blog':
|
111 |
+
params = {
|
112 |
+
'latest_posts_page' : jQuery( '#latest_posts_page' ).val()
|
113 |
+
}
|
114 |
+
|
115 |
+
redirect_target_field = jQuery( '#homepage_redirect_wp_target' );
|
116 |
+
if ( redirect_target_field.is( 'select' ) && redirect_target_field.val() != 'none' ) {
|
117 |
+
params[ 'homepage_redirect_wp_target' ] = redirect_target_field.val();
|
118 |
+
}
|
119 |
+
|
120 |
+
wptouchAdminAjax( 'wizard-pages', params, wptouchContinue );
|
121 |
+
break;
|
122 |
+
case 'Analytics':
|
123 |
+
analytics_google_id = jQuery( '#analytics_google_id' ).val();
|
124 |
+
wptouchAdminAjax( 'wizard-analytics', { 'analytics_google_id': analytics_google_id }, wptouchContinue );
|
125 |
+
break;
|
126 |
+
case 'WPtouch Love':
|
127 |
+
show_wptouch_in_footer = ( jQuery( '#wptouch_love' ).prop( 'checked' ) === true );
|
128 |
+
wptouchAdminAjax( 'wizard-wptouch_message', { 'show_wptouch_in_footer': show_wptouch_in_footer }, wptouchContinue );
|
129 |
+
break;
|
130 |
+
case 'Multisite':
|
131 |
+
multisite_control = ( jQuery( '#multisite_control' ).prop( 'checked' ) === true );
|
132 |
+
wptouchAdminAjax( 'wizard-multisite', { 'multisite_control': multisite_control }, wptouchContinue );
|
133 |
+
break;
|
134 |
+
case 'WPtouch Support':
|
135 |
+
if ( WPtouchCustom.is_network_admin ) {
|
136 |
+
wptouchAdminAjax( 'network-wizard-complete', {}, wptouchContinue );
|
137 |
+
} else {
|
138 |
+
wptouchAdminAjax( 'wizard-complete', {}, wptouchContinue );
|
139 |
+
}
|
140 |
+
break;
|
141 |
+
}
|
142 |
+
}
|
143 |
+
return true;
|
144 |
+
}
|
145 |
+
}).css( 'visibility', 'visible' );
|
146 |
+
}
|
147 |
+
|
148 |
+
function wptouchContinue() {
|
149 |
+
return true;
|
150 |
+
}
|
151 |
+
|
152 |
+
function wptouchReload( response ) {
|
153 |
+
if ( response == 0 ) {
|
154 |
+
return true;
|
155 |
+
} else {
|
156 |
+
// go to the same url, without reload (prevent FOUC)
|
157 |
+
window.location.href = window.location.href;
|
158 |
+
return false;
|
159 |
+
}
|
160 |
+
}
|
161 |
+
|
162 |
+
function wptouchSetupSelects(){
|
163 |
+
jQuery( '#wptouch-settings-area select' ).select2({
|
164 |
+
minimumResultsForSearch: '20'
|
165 |
+
});
|
166 |
+
}
|
167 |
+
|
168 |
+
function wptouchWizardLicense(){
|
169 |
+
|
170 |
+
if ( jQuery( '#activate-license a' ).length ){
|
171 |
+
jQuery( '#activate-license a' ).on( 'click', function( e ) {
|
172 |
+
|
173 |
+
//
|
174 |
+
e.preventDefault();
|
175 |
+
|
176 |
+
// Setup AJAX params
|
177 |
+
var licenseEmail = jQuery( '#license_email' ).val();
|
178 |
+
var licenseKey = jQuery( '#license_key' ).val().trim();
|
179 |
+
var licenseTextDiv = jQuery( 'p.license-issue' );
|
180 |
+
|
181 |
+
var ajaxParams = {
|
182 |
+
email: licenseEmail,
|
183 |
+
key: licenseKey
|
184 |
+
};
|
185 |
+
|
186 |
+
wptouchAdminAjax( 'activate-license-key', ajaxParams, function( result ) {
|
187 |
+
if ( result == '1' ) {
|
188 |
+
// license success
|
189 |
+
bncHasLicense = 1;
|
190 |
+
jQuery( '.activate-license .unlicensed' ).fadeOut( 'fast', function(){
|
191 |
+
jQuery( '.activate-license .activated' ).show();
|
192 |
+
jQuery( 'i.icon-ok-circle' ).addClass( 'flipInX' );
|
193 |
+
jQuery( '.steps li.current' ).removeClass( 'error' );
|
194 |
+
});
|
195 |
+
|
196 |
+
// Animate Activation icon if it's there
|
197 |
+
if ( jQuery( '#wptouch-wizard-container' ).has( 'i.icon-ok-circle' ) ) {
|
198 |
+
setTimeout( function(){
|
199 |
+
// wptouchReload();
|
200 |
+
}, 500 );
|
201 |
+
}
|
202 |
+
|
203 |
+
} else {
|
204 |
+
// rejected license
|
205 |
+
jQuery( '#license_email, #license_key' ).addClass( 'error' );
|
206 |
+
if ( result == '2' ) {
|
207 |
+
licenseTextDiv.html( 'Our server rejected your e-mail address and/or license key.<br />Please check that they are correct and try again.' );
|
208 |
+
} else if( result == '3' ){
|
209 |
+
licenseTextDiv.html( 'You have no licenses remaining to activate this site.<br />You can add <a href="http://www.wptouch-com/account">additional licenses</a> to your account and try again.' );
|
210 |
+
} else if( result == '4' ){
|
211 |
+
licenseTextDiv.html( 'The server is having an issue activating your license.<br />Please contact us at <a href="mailto:support@wtouch.com?subject=Cannot%20Reach%20WPtouch%20Server">support@wptouch.com</a> and let us know.' );
|
212 |
+
}else if( result == '5' ){
|
213 |
+
licenseTextDiv.html( 'Your license has expired.<br />Please <a href="//www.wptouch.com/renew">renew</a> to activate this site.' );
|
214 |
+
}
|
215 |
+
|
216 |
+
licenseTextDiv.fadeIn( function(){
|
217 |
+
setTimeout(function(){
|
218 |
+
jQuery( 'p.license-issue' ).fadeOut();
|
219 |
+
jQuery( '#license_email, #license_key' ).removeClass( 'error' );
|
220 |
+
}, 3500 );
|
221 |
+
});
|
222 |
+
}
|
223 |
+
});
|
224 |
+
});
|
225 |
+
} else {
|
226 |
+
bncHasLicense = null;
|
227 |
+
}
|
228 |
+
}
|
229 |
+
|
230 |
+
function wptouchWizardThemeSelect(){
|
231 |
+
jQuery()
|
232 |
+
jQuery( '.choose-a-theme' ).on( 'click', 'li:not(.unlicensed)', function(){
|
233 |
+
jQuery( '.choose-a-theme li' ).removeClass( 'active' );
|
234 |
+
jQuery( this ).addClass( 'active' );
|
235 |
+
jQuery( '.actions li' ).removeClass( 'disabled' );
|
236 |
+
jQuery( 'li.error' ).removeClass( 'error' );
|
237 |
+
jQuery( this ).find( 'input[type="radio"]' ).prop( 'checked', 'checked' );
|
238 |
+
});
|
239 |
+
}
|
240 |
+
|
241 |
+
function wptouchWizardSetupComplete(){
|
242 |
+
jQuery( '#exit_wizard_customizer, #exit_wizard_settings' ).on( 'click', function(){
|
243 |
+
jQuery.cookie( 'jQu3ry_5teps_St@te_wptouch-wizard-container', '1', { expires: -1 } );
|
244 |
+
jQuery.cookie( 'wptouch_customizer_use', 'mobile', { expires: 0, path: '/' } );
|
245 |
+
});
|
246 |
+
}
|
247 |
+
|
248 |
+
function wptouchWizardDownloadUpload(){
|
249 |
+
var canAjaxInstall = typeof new XMLHttpRequest().responseType === 'string';
|
250 |
+
if ( canAjaxInstall ) {
|
251 |
+
jQuery( '.down-up-theme h2' ).text( WPtouchCustom.install_themes );
|
252 |
+
jQuery( '.down-up-extension h2' ).text( WPtouchCustom.install_extensions );
|
253 |
+
jQuery( '.download-upload button' ).text( WPtouchCustom.install );
|
254 |
+
jQuery( 'p.upload' ).hide();
|
255 |
+
}
|
256 |
+
|
257 |
+
jQuery( '.download-upload' ).on( 'click', 'button.download', function(e){
|
258 |
+
download_link = jQuery( this ).attr( 'data-download-link' );
|
259 |
+
upload_type = jQuery( this ).parent().attr( 'data-type' );
|
260 |
+
if ( canAjaxInstall ) {
|
261 |
+
wptouchAdminAjaxInstall( this, upload_type, download_link );
|
262 |
+
} else {
|
263 |
+
window.location.href = download_link;
|
264 |
+
}
|
265 |
+
e.preventDefault();
|
266 |
+
});
|
267 |
+
|
268 |
+
// Upload Themes
|
269 |
+
if ( jQuery( '#upload_theme' ).length ){
|
270 |
+
var themeUploader = new AjaxUpload( '#upload_theme', {
|
271 |
+
action: ajaxurl,
|
272 |
+
allowedExtensions: [ 'zip' ],
|
273 |
+
debug: false,
|
274 |
+
data: {
|
275 |
+
action: 'upload_file',
|
276 |
+
file_type: 'theme',
|
277 |
+
wp_nonce: WPtouchCustom.admin_nonce
|
278 |
+
},
|
279 |
+
name: 'theme-upload',
|
280 |
+
onSubmit: function( fileName, extension ) {
|
281 |
+
jQuery( '#upload_theme' ).text( jQuery( '#upload_theme' ).attr( 'data-loading-text' ) );
|
282 |
+
},
|
283 |
+
onComplete: function( fileName, response ) {
|
284 |
+
var currentText = jQuery( 'p.upload span', '.down-up-theme' ).attr( 'data-text' );
|
285 |
+
var newLoadingtext = jQuery( 'p.upload span', '.down-up-theme' ).attr( 'data-loaded-text' );
|
286 |
+
jQuery( '#upload_theme', '.down-up-theme' ).text( jQuery( '#upload_theme' ).attr( 'data-text' ) );
|
287 |
+
jQuery( '.upload span', '.down-up-theme' ).text( newLoadingtext );
|
288 |
+
setTimeout( function(){
|
289 |
+
jQuery( '.upload span', '.down-up-theme' ).text( currentText );
|
290 |
+
}, 2500 );
|
291 |
+
}
|
292 |
+
});
|
293 |
+
}
|
294 |
+
|
295 |
+
// Upload Extensions
|
296 |
+
if ( jQuery( '#upload_extension' ).length ){
|
297 |
+
var themeUploader = new AjaxUpload( '#upload_extension', {
|
298 |
+
action: ajaxurl,
|
299 |
+
allowedExtensions: [ 'zip' ],
|
300 |
+
debug: false,
|
301 |
+
data: {
|
302 |
+
action: 'upload_file',
|
303 |
+
file_type: 'extension',
|
304 |
+
wp_nonce: WPtouchCustom.admin_nonce
|
305 |
+
},
|
306 |
+
name: 'extension-upload',
|
307 |
+
onSubmit: function( fileName, extension ) {
|
308 |
+
jQuery( '#upload_extension' ).text( jQuery( '#upload_extension' ).attr( 'data-loading-text' ) );
|
309 |
+
},
|
310 |
+
onComplete: function( fileName, response ) {
|
311 |
+
var currentText = jQuery( 'p.upload span', '.down-up-extension' ).attr( 'data-text' );
|
312 |
+
var newLoadingtext = jQuery( 'p.upload span', '.down-up-extension' ).attr( 'data-loaded-text' );
|
313 |
+
jQuery( '#upload_extension' ).text( jQuery( '#upload_extension' ).attr( 'data-text' ) );
|
314 |
+
jQuery( '.upload span', '.down-up-extension' ).text( newLoadingtext );
|
315 |
+
setTimeout( function(){
|
316 |
+
jQuery( '.upload span', '.down-up-extension' ).text( currentText );
|
317 |
+
}, 2500 );
|
318 |
+
}
|
319 |
+
});
|
320 |
+
}
|
321 |
+
}
|
322 |
+
|
323 |
+
jQuery( document ).ready( function(){
|
324 |
+
wptouchDoWizard();
|
325 |
+
wptouchSetupSelects();
|
326 |
+
wptouchWizardLicense();
|
327 |
+
wptouchWizardThemeSelect();
|
328 |
+
wptouchWizardSetupComplete();
|
329 |
+
wptouchWizardDownloadUpload();
|
330 |
+
});
|
admin/js/wptouch-ajax.js
CHANGED
@@ -8,30 +8,28 @@ var wptouchTotalAjaxEnabled = 0;
|
|
8 |
|
9 |
function wptouchAdminAjaxEnableSpinner( enable ) {
|
10 |
if ( enable ) {
|
11 |
-
jQuery( '#admin-spinner' ).
|
12 |
-
|
13 |
-
|
14 |
-
}
|
15 |
wptouchTotalAjaxEnabled = wptouchTotalAjaxEnabled + 1;
|
16 |
} else {
|
17 |
wptouchTotalAjaxEnabled = wptouchTotalAjaxEnabled - 1;
|
18 |
}
|
19 |
|
20 |
if ( wptouchTotalAjaxEnabled == 0 ) {
|
21 |
-
jQuery( '#admin-spinner' ).
|
22 |
-
|
23 |
-
|
24 |
-
}
|
25 |
}
|
26 |
}
|
27 |
|
28 |
-
function wptouchAdminAjax( actionName, actionParams, callback ) {
|
29 |
var ajaxData = {
|
30 |
action: 'wptouch_ajax',
|
31 |
wptouch_action: actionName,
|
32 |
wptouch_ajax_nonce: WPtouchAjax.admin_ajax_nonce
|
33 |
};
|
34 |
-
|
35 |
for ( name in actionParams ) { ajaxData[name] = actionParams[name]; }
|
36 |
|
37 |
wptouchAdminAjaxEnableSpinner( true );
|
@@ -39,8 +37,59 @@ function wptouchAdminAjax( actionName, actionParams, callback ) {
|
|
39 |
jQuery.post( ajaxurl, ajaxData, function( result ) {
|
40 |
wptouchAdminAjaxEnableSpinner( false );
|
41 |
|
42 |
-
|
43 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
44 |
}
|
45 |
|
46 |
jQuery( document ).ready( function() { wptouchSetupAjax(); } );
|
8 |
|
9 |
function wptouchAdminAjaxEnableSpinner( enable ) {
|
10 |
if ( enable ) {
|
11 |
+
jQuery( '#admin-spinner' ).animate({
|
12 |
+
opacity: 1
|
13 |
+
}, 500);
|
|
|
14 |
wptouchTotalAjaxEnabled = wptouchTotalAjaxEnabled + 1;
|
15 |
} else {
|
16 |
wptouchTotalAjaxEnabled = wptouchTotalAjaxEnabled - 1;
|
17 |
}
|
18 |
|
19 |
if ( wptouchTotalAjaxEnabled == 0 ) {
|
20 |
+
jQuery( '#admin-spinner' ).animate({
|
21 |
+
opacity: 0
|
22 |
+
}, 500);
|
|
|
23 |
}
|
24 |
}
|
25 |
|
26 |
+
function wptouchAdminAjax( actionName, actionParams, callback ) {
|
27 |
var ajaxData = {
|
28 |
action: 'wptouch_ajax',
|
29 |
wptouch_action: actionName,
|
30 |
wptouch_ajax_nonce: WPtouchAjax.admin_ajax_nonce
|
31 |
};
|
32 |
+
|
33 |
for ( name in actionParams ) { ajaxData[name] = actionParams[name]; }
|
34 |
|
35 |
wptouchAdminAjaxEnableSpinner( true );
|
37 |
jQuery.post( ajaxurl, ajaxData, function( result ) {
|
38 |
wptouchAdminAjaxEnableSpinner( false );
|
39 |
|
40 |
+
if ( typeof( callback ) !== 'undefined' ) {
|
41 |
+
callback( result );
|
42 |
+
};
|
43 |
+
});
|
44 |
+
}
|
45 |
+
|
46 |
+
function wptouchAdminAjaxInstall( target, fileType, fileName, callback, errorCallback ) {
|
47 |
+
window.requestFileSystem = window.requestFileSystem || window.webkitRequestFileSystem;
|
48 |
+
|
49 |
+
function doErrorCallback(e) {
|
50 |
+
if ( typeof( errorCallback ) !== 'undefined' ) {
|
51 |
+
errorCallback( target );
|
52 |
+
}
|
53 |
+
}
|
54 |
+
|
55 |
+
jQuery( target ).text( WPtouchCustom.installing );
|
56 |
+
|
57 |
+
var xhr = new XMLHttpRequest();
|
58 |
+
xhr.open('GET', fileName, true);
|
59 |
+
xhr.responseType = 'blob';
|
60 |
+
|
61 |
+
xhr.onerror = function( e ) {
|
62 |
+
doErrorCallback( e );
|
63 |
+
}
|
64 |
+
|
65 |
+
xhr.onload = function(e) {
|
66 |
+
var blob = new Blob([xhr.response], {type: 'application/zip'});
|
67 |
+
|
68 |
+
var data = new FormData();
|
69 |
+
data.append( 'action', 'upload_file' );
|
70 |
+
data.append( 'file_type', fileType );
|
71 |
+
data.append( 'wp_nonce', WPtouchCustom.admin_nonce );
|
72 |
+
data.append( fileType + '-upload', blob );
|
73 |
+
|
74 |
+
newXhr = new XMLHttpRequest();
|
75 |
+
newXhr.open( 'POST', ajaxurl );
|
76 |
+
|
77 |
+
newXhr.onerror = function( e ) {
|
78 |
+
doErrorCallback( e );
|
79 |
+
}
|
80 |
+
|
81 |
+
newXhr.onload = function( e ) {
|
82 |
+
if ( typeof( callback ) !== 'undefined' ) {
|
83 |
+
callback( target );
|
84 |
+
} else {
|
85 |
+
jQuery( target ).replaceWith( '<span class="installed">' + WPtouchCustom.installed + '</span>' );
|
86 |
+
}
|
87 |
+
}
|
88 |
+
|
89 |
+
newXhr.send( data );
|
90 |
+
};
|
91 |
+
|
92 |
+
xhr.send();
|
93 |
}
|
94 |
|
95 |
jQuery( document ).ready( function() { wptouchSetupAjax(); } );
|
admin/js/wptouch-menu.js
ADDED
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
jQuery( '.wptouch-menu-icon' ).each( function(){
|
2 |
+
// var dataID = jQuery( this ).attr( 'data-object-id' );
|
3 |
+
jQuery( this ).on( 'click', 'img.icon-preview', function(){
|
4 |
+
if ( jQuery( this ).attr( 'src' ) != wptouchMenu.default_icon ) {
|
5 |
+
jQuery( this ).parent().find( 'a.remove_icon' ).show();
|
6 |
+
}
|
7 |
+
});
|
8 |
+
|
9 |
+
jQuery( this ).on( 'click', 'a.remove_icon', function( e ) {
|
10 |
+
e.preventDefault();
|
11 |
+
jQuery( this ).siblings( 'img.icon-preview' ).attr( 'src', wptouchMenu.default_icon );
|
12 |
+
jQuery( this ).siblings( 'input' ).val('');
|
13 |
+
jQuery( this ).hide();
|
14 |
+
});
|
15 |
+
});
|
16 |
+
|
17 |
+
jQuery( '#icon-packs img' ).live( 'click', function( e ) {
|
18 |
+
e.preventDefault();
|
19 |
+
e.stopImmediatePropagation();
|
20 |
+
var imageSource = jQuery( this ).attr( 'src' );
|
21 |
+
jQuery( '[data-object-id=' + pageId + ']' ).find( 'img.icon-preview' ).attr( 'src', imageSource )
|
22 |
+
jQuery( '[data-object-id=' + pageId + ']' ).find( '.remove_icon' ).show();
|
23 |
+
jQuery( '#edit-menu-item-icon-' + pageId ).val( imageSource );
|
24 |
+
});
|
25 |
+
|
26 |
+
jQuery( 'a.remove_icon' ).live( 'click', function( e ) {
|
27 |
+
e.preventDefault();
|
28 |
+
jQuery( this ).siblings( 'img.icon-preview' ).attr( 'src', wptouchMenu.default_icon );
|
29 |
+
jQuery( this ).siblings( 'input' ).val('');
|
30 |
+
jQuery( this ).hide();
|
31 |
+
});
|
32 |
+
|
33 |
+
// Enable popovers
|
34 |
+
jQuery( function(){
|
35 |
+
jQuery( '[data-toggle=wptouch-popover]', '.wptouch-menu-icon' ).each( function(){
|
36 |
+
jQuery( this ).popover({
|
37 |
+
trigger: 'click',
|
38 |
+
html : true,
|
39 |
+
placement: 'bottom',
|
40 |
+
content: function() {
|
41 |
+
pageId = jQuery( this ).parent().attr( 'data-object-id' );
|
42 |
+
// move the icon div inside the popover
|
43 |
+
return jQuery( '#icon-picker' ).html();
|
44 |
+
}
|
45 |
+
});
|
46 |
+
});
|
47 |
+
|
48 |
+
// Hide on click outside
|
49 |
+
jQuery( 'body' ).on( 'click', function ( e ) {
|
50 |
+
if ( jQuery( e.target ).data( 'toggle' ) !== 'wptouch-popover' && jQuery( e.target ).parents( '.wptouch-popover.in' ).length === 0 ) {
|
51 |
+
jQuery( '.wptouch-popover.in' ).parents( '.wptouch-menu-icon' ).find( 'a.change_icon' ).trigger( 'click' );
|
52 |
+
}
|
53 |
+
});
|
54 |
+
}); // self-executing
|
55 |
+
|
56 |
+
/*!
|
57 |
+
* Bootstrap v3.3.5 (http://getbootstrap.com)
|
58 |
+
* Copyright 2011-2015 Twitter, Inc.
|
59 |
+
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
60 |
+
*/
|
61 |
+
|
62 |
+
/*!
|
63 |
+
* Generated using the Bootstrap Customizer (http://getbootstrap.com/customize/?id=fdb8bee90dd2dbf52bb1)
|
64 |
+
* Config saved to config.json and https://gist.github.com/fdb8bee90dd2dbf52bb1
|
65 |
+
*/
|
66 |
+
if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(t){"use strict";var e=t.fn.jquery.split(" ")[0].split(".");if(e[0]<2&&e[1]<9||1==e[0]&&9==e[1]&&e[2]<1)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher")}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var i=t(this),n=i.data("bs.tooltip"),s="object"==typeof e&&e;(n||!/destroy|hide/.test(e))&&(n||i.data("bs.tooltip",n=new o(this,s)),"string"==typeof e&&n[e]())})}var o=function(t,e){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",t,e)};o.VERSION="3.3.5",o.TRANSITION_DURATION=150,o.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},o.prototype.init=function(e,o,i){if(this.enabled=!0,this.type=e,this.$element=t(o),this.options=this.getOptions(i),this.$viewport=this.options.viewport&&t(t.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var n=this.options.trigger.split(" "),s=n.length;s--;){var r=n[s];if("click"==r)this.$element.on("click."+this.type,this.options.selector,t.proxy(this.toggle,this));else if("manual"!=r){var p="hover"==r?"mouseenter":"focusin",a="hover"==r?"mouseleave":"focusout";this.$element.on(p+"."+this.type,this.options.selector,t.proxy(this.enter,this)),this.$element.on(a+"."+this.type,this.options.selector,t.proxy(this.leave,this))}}this.options.selector?this._options=t.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},o.prototype.getDefaults=function(){return o.DEFAULTS},o.prototype.getOptions=function(e){return e=t.extend({},this.getDefaults(),this.$element.data(),e),e.delay&&"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),e},o.prototype.getDelegateOptions=function(){var e={},o=this.getDefaults();return this._options&&t.each(this._options,function(t,i){o[t]!=i&&(e[t]=i)}),e},o.prototype.enter=function(e){var o=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);return o||(o=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,o)),e instanceof t.Event&&(o.inState["focusin"==e.type?"focus":"hover"]=!0),o.tip().hasClass("in")||"in"==o.hoverState?void(o.hoverState="in"):(clearTimeout(o.timeout),o.hoverState="in",o.options.delay&&o.options.delay.show?void(o.timeout=setTimeout(function(){"in"==o.hoverState&&o.show()},o.options.delay.show)):o.show())},o.prototype.isInStateTrue=function(){for(var t in this.inState)if(this.inState[t])return!0;return!1},o.prototype.leave=function(e){var o=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);return o||(o=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,o)),e instanceof t.Event&&(o.inState["focusout"==e.type?"focus":"hover"]=!1),o.isInStateTrue()?void 0:(clearTimeout(o.timeout),o.hoverState="out",o.options.delay&&o.options.delay.hide?void(o.timeout=setTimeout(function(){"out"==o.hoverState&&o.hide()},o.options.delay.hide)):o.hide())},o.prototype.show=function(){var e=t.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(e);var i=t.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(e.isDefaultPrevented()||!i)return;var n=this,s=this.tip(),r=this.getUID(this.type);this.setContent(),s.attr("id",r),this.$element.attr("aria-describedby",r),this.options.animation&&s.addClass("fade");var p="function"==typeof this.options.placement?this.options.placement.call(this,s[0],this.$element[0]):this.options.placement,a=/\s?auto?\s?/i,l=a.test(p);l&&(p=p.replace(a,"")||"top"),s.detach().css({top:0,left:0,display:"block"}).addClass(p).data("bs."+this.type,this),this.options.container?s.appendTo(this.options.container):s.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var h=this.getPosition(),f=s[0].offsetWidth,c=s[0].offsetHeight;if(l){var u=p,d=this.getPosition(this.$viewport);p="bottom"==p&&h.bottom+c>d.bottom?"top":"top"==p&&h.top-c<d.top?"bottom":"right"==p&&h.right+f>d.width?"left":"left"==p&&h.left-f<d.left?"right":p,s.removeClass(u).addClass(p)}var v=this.getCalculatedOffset(p,h,f,c);this.applyPlacement(v,p);var g=function(){var t=n.hoverState;n.$element.trigger("shown.bs."+n.type),n.hoverState=null,"out"==t&&n.leave(n)};t.support.transition&&this.$tip.hasClass("fade")?s.one("bsTransitionEnd",g).emulateTransitionEnd(o.TRANSITION_DURATION):g()}},o.prototype.applyPlacement=function(e,o){var i=this.tip(),n=i[0].offsetWidth,s=i[0].offsetHeight,r=parseInt(i.css("margin-top"),10),p=parseInt(i.css("margin-left"),10);isNaN(r)&&(r=0),isNaN(p)&&(p=0),e.top+=r,e.left+=p,t.offset.setOffset(i[0],t.extend({using:function(t){i.css({top:Math.round(t.top),left:Math.round(t.left)})}},e),0),i.addClass("in");var a=i[0].offsetWidth,l=i[0].offsetHeight;"top"==o&&l!=s&&(e.top=e.top+s-l);var h=this.getViewportAdjustedDelta(o,e,a,l);h.left?e.left+=h.left:e.top+=h.top;var f=/top|bottom/.test(o),c=f?2*h.left-n+a:2*h.top-s+l,u=f?"offsetWidth":"offsetHeight";i.offset(e),this.replaceArrow(c,i[0][u],f)},o.prototype.replaceArrow=function(t,e,o){this.arrow().css(o?"left":"top",50*(1-t/e)+"%").css(o?"top":"left","")},o.prototype.setContent=function(){var t=this.tip(),e=this.getTitle();t.find(".tooltip-inner")[this.options.html?"html":"text"](e),t.removeClass("fade in top bottom left right")},o.prototype.hide=function(e){function i(){"in"!=n.hoverState&&s.detach(),n.$element.removeAttr("aria-describedby").trigger("hidden.bs."+n.type),e&&e()}var n=this,s=t(this.$tip),r=t.Event("hide.bs."+this.type);return this.$element.trigger(r),r.isDefaultPrevented()?void 0:(s.removeClass("in"),t.support.transition&&s.hasClass("fade")?s.one("bsTransitionEnd",i).emulateTransitionEnd(o.TRANSITION_DURATION):i(),this.hoverState=null,this)},o.prototype.fixTitle=function(){var t=this.$element;(t.attr("title")||"string"!=typeof t.attr("data-original-title"))&&t.attr("data-original-title",t.attr("title")||"").attr("title","")},o.prototype.hasContent=function(){return this.getTitle()},o.prototype.getPosition=function(e){e=e||this.$element;var o=e[0],i="BODY"==o.tagName,n=o.getBoundingClientRect();null==n.width&&(n=t.extend({},n,{width:n.right-n.left,height:n.bottom-n.top}));var s=i?{top:0,left:0}:e.offset(),r={scroll:i?document.documentElement.scrollTop||document.body.scrollTop:e.scrollTop()},p=i?{width:t(window).width(),height:t(window).height()}:null;return t.extend({},n,r,p,s)},o.prototype.getCalculatedOffset=function(t,e,o,i){return"bottom"==t?{top:e.top+e.height,left:e.left+e.width/2-o/2}:"top"==t?{top:e.top-i,left:e.left+e.width/2-o/2}:"left"==t?{top:e.top+e.height/2-i/2,left:e.left-o}:{top:e.top+e.height/2-i/2,left:e.left+e.width}},o.prototype.getViewportAdjustedDelta=function(t,e,o,i){var n={top:0,left:0};if(!this.$viewport)return n;var s=this.options.viewport&&this.options.viewport.padding||0,r=this.getPosition(this.$viewport);if(/right|left/.test(t)){var p=e.top-s-r.scroll,a=e.top+s-r.scroll+i;p<r.top?n.top=r.top-p:a>r.top+r.height&&(n.top=r.top+r.height-a)}else{var l=e.left-s,h=e.left+s+o;l<r.left?n.left=r.left-l:h>r.right&&(n.left=r.left+r.width-h)}return n},o.prototype.getTitle=function(){var t,e=this.$element,o=this.options;return t=e.attr("data-original-title")||("function"==typeof o.title?o.title.call(e[0]):o.title)},o.prototype.getUID=function(t){do t+=~~(1e6*Math.random());while(document.getElementById(t));return t},o.prototype.tip=function(){if(!this.$tip&&(this.$tip=t(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},o.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},o.prototype.enable=function(){this.enabled=!0},o.prototype.disable=function(){this.enabled=!1},o.prototype.toggleEnabled=function(){this.enabled=!this.enabled},o.prototype.toggle=function(e){var o=this;e&&(o=t(e.currentTarget).data("bs."+this.type),o||(o=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,o))),e?(o.inState.click=!o.inState.click,o.isInStateTrue()?o.enter(o):o.leave(o)):o.tip().hasClass("in")?o.leave(o):o.enter(o)},o.prototype.destroy=function(){var t=this;clearTimeout(this.timeout),this.hide(function(){t.$element.off("."+t.type).removeData("bs."+t.type),t.$tip&&t.$tip.detach(),t.$tip=null,t.$arrow=null,t.$viewport=null})};var i=t.fn.tooltip;t.fn.tooltip=e,t.fn.tooltip.Constructor=o,t.fn.tooltip.noConflict=function(){return t.fn.tooltip=i,this}}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var i=t(this),n=i.data("bs.popover"),s="object"==typeof e&&e;(n||!/destroy|hide/.test(e))&&(n||i.data("bs.popover",n=new o(this,s)),"string"==typeof e&&n[e]())})}var o=function(t,e){this.init("popover",t,e)};if(!t.fn.tooltip)throw new Error("Popover requires tooltip.js");o.VERSION="3.3.5",o.DEFAULTS=t.extend({},t.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="wptouch-popover" role="tooltip"><div class="wptouch-arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),o.prototype=t.extend({},t.fn.tooltip.Constructor.prototype),o.prototype.constructor=o,o.prototype.getDefaults=function(){return o.DEFAULTS},o.prototype.setContent=function(){var t=this.tip(),e=this.getTitle(),o=this.getContent();t.find(".popover-title")[this.options.html?"html":"text"](e),t.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof o?"html":"append":"text"](o),t.removeClass("fade top bottom left right in"),t.find(".popover-title").html()||t.find(".popover-title").hide()},o.prototype.hasContent=function(){return this.getTitle()||this.getContent()},o.prototype.getContent=function(){var t=this.$element,e=this.options;return t.attr("data-content")||("function"==typeof e.content?e.content.call(t[0]):e.content)},o.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".wptouch-arrow")};var i=t.fn.popover;t.fn.popover=e,t.fn.popover.Constructor=o,t.fn.popover.noConflict=function(){return t.fn.popover=i,this}}(jQuery);
|
admin/js/wptouch-other-admin.js
DELETED
@@ -1,22 +0,0 @@
|
|
1 |
-
function wptouchSetupNonWPtouchPage() {
|
2 |
-
var pluginNotificationDiv = jQuery( '.wptouch.update-plugins' );
|
3 |
-
if ( pluginNotificationDiv.length ) {
|
4 |
-
wptouchHandlePluginNotification();
|
5 |
-
}
|
6 |
-
}
|
7 |
-
|
8 |
-
function wptouchHandlePluginNotification() {
|
9 |
-
var ajaxParams = {};
|
10 |
-
|
11 |
-
wptouchAdminAjax( 'load-notifications-plugin', ajaxParams, function( notificationData ) {
|
12 |
-
if ( notificationData.length ) {
|
13 |
-
var result = jQuery.parseJSON( notificationData );
|
14 |
-
if ( result.count > 0 ) {
|
15 |
-
jQuery( '.wptouch.update-plugins .update-count' ).html( result.count );
|
16 |
-
jQuery( '.wptouch.update-plugins' ).show();
|
17 |
-
}
|
18 |
-
}
|
19 |
-
});
|
20 |
-
}
|
21 |
-
|
22 |
-
jQuery( document ).ready( function() { wptouchSetupNonWPtouchPage(); } );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/pages/custom/wptouch-admin-license.php
CHANGED
@@ -1,66 +1,163 @@
|
|
1 |
<?php $settings = wptouch_get_settings( 'bncid' ); ?>
|
2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
<script type="text/javascript">
|
4 |
var bncHasLicense = 0;
|
5 |
</script>
|
6 |
|
7 |
-
|
8 |
-
<div id="license-area-left">
|
9 |
-
<h3><?php _e( 'License Details', 'wptouch-pro' ); ?></h3>
|
10 |
-
|
11 |
-
<p><strong><?php _e( 'Note', 'wptouch-pro' ); ?>:</strong><br />
|
12 |
-
<?php _e( 'Once you activate, this page will be hidden.', 'wptouch-pro' ); ?>
|
13 |
-
</p>
|
14 |
-
|
15 |
-
<p><?php _e( 'It will only reappear if you reset your WPtouch Pro settings.', 'wptouch-pro' ); ?></p>
|
16 |
-
</div>
|
17 |
-
<div id="license-area-right">
|
18 |
-
<input type="text" id="license_email" name="<?php echo wptouch_admin_get_manual_encoded_setting_name( 'bncid', 'bncid' ); ?>" value="<?php if ( $settings->bncid ) echo $settings->bncid; else _e( 'Account E-Mail Address', 'wptouch-pro' ); ?>" data-start="<?php _e( 'Account E-Mail Address', 'wptouch-pro' ); ?>" onfocus="if ( jQuery( '#license_email' ).val() == jQuery( '#license_email' ).attr( 'data-start' ) ) { this.value='' };" onblur="if ( jQuery( '#license_email' ).val() == '' ) this.value = jQuery( '#license_email' ).attr( 'data-start' );" />
|
19 |
-
<input type="password" placeholder="<?php _e( 'Product License Key', 'wptouch-pro' ); ?>" id="license_key" name="<?php echo wptouch_admin_get_manual_encoded_setting_name( 'bncid', 'bncid' ); ?>" value="<?php if ( $settings->wptouch_license_key ) echo $settings->wptouch_license_key; else _e( 'Product License Key', 'wptouch-pro' ); ?>" data-start="<?php _e( 'Product License Key', 'wptouch-pro' ); ?>" onfocus="if ( jQuery( '#license_key' ).val() == jQuery( '#license_key' ).attr( 'data-start' ) ) { this.value='' };" onblur="if ( jQuery( '#license_key' ).val() == '' ) this.value = jQuery( '#license_key' ).attr( 'data-start' );" />
|
20 |
-
|
21 |
-
<div id="activate-license">
|
22 |
-
<?php if ( wptouch_show_renewal_notice() ) { ?>
|
23 |
-
<a href="http://www.wptouch.com/renew/?utm_campaign=renew-license-page&utm_source=wptouch&utm_medium=web" class="renew button" target="_blank"><?php _e( 'Renew License', 'wptouch-pro' ); ?></a>
|
24 |
-
<?php } else { ?>
|
25 |
-
<a href="#" class="activate button"><?php _e( 'Activate', 'wptouch-pro' ); ?></a>
|
26 |
-
<?php } ?>
|
27 |
-
<?php if ( $settings->bncid || $settings->wptouch_license_key ) { ?>
|
28 |
-
<a href="#" class="clear-license button"><?php _e( 'Clear License', 'wptouch-pro' ); ?></a>
|
29 |
-
<?php } ?>
|
30 |
-
</div>
|
31 |
-
|
32 |
-
<div id="progress-license" class="license-status">
|
33 |
-
<div class="progress progress-striped active">
|
34 |
-
<div class="bar" style="width: 20%;"></div>
|
35 |
-
</div>
|
36 |
-
</div>
|
37 |
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
42 |
|
43 |
-
|
44 |
-
|
45 |
-
<
|
46 |
-
|
|
|
47 |
|
48 |
-
|
49 |
-
<?php _e( 'Your license has expired.', 'wptouch-pro' ); ?>
|
50 |
-
<p><?php echo sprintf( __( '%sRenew your license%s to continue to receive product updates and support.', 'wptouch-pro' ), '<a href="http://www.wptouch.com/renew/?utm_campaign=renew-from-license-area&utm_source=wptouch&utm_medium=web">', '</a>' ); ?></p>
|
51 |
-
</div>
|
52 |
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
66 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
<?php $settings = wptouch_get_settings( 'bncid' ); ?>
|
2 |
|
3 |
+
<?php
|
4 |
+
if ( !defined( 'WPTOUCH_IS_FREE' ) ) {
|
5 |
+
wptouch_check_api( true );
|
6 |
+
$bncid_info = wptouch_get_settings( 'bncid' );
|
7 |
+
}
|
8 |
+
?>
|
9 |
+
|
10 |
+
<?php function wptouch_has_valid_gravatar( $email ) {
|
11 |
+
// Check to see if an e-mail address has a Gravatar associated with it
|
12 |
+
// Craft a potential url and test its headers
|
13 |
+
$hash = md5( strtolower( trim( $email ) ) );
|
14 |
+
$uri = 'http://www.gravatar.com/avatar/' . $hash . '?d=404';
|
15 |
+
$headers = @get_headers( $uri );
|
16 |
+
if ( !preg_match( "|200|", $headers[0] ) ) {
|
17 |
+
$has_valid_avatar = false;
|
18 |
+
} else {
|
19 |
+
$has_valid_avatar = true;
|
20 |
+
}
|
21 |
+
return $has_valid_avatar;
|
22 |
+
}
|
23 |
+
?>
|
24 |
+
|
25 |
<script type="text/javascript">
|
26 |
var bncHasLicense = 0;
|
27 |
</script>
|
28 |
|
29 |
+
<?php include_once( WPTOUCH_ADMIN_DIR . '/html/license-modals.php' ); ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
30 |
|
31 |
+
<div class="wptouch-account">
|
32 |
+
<h2><?php _e( 'Account & License', 'wptouch-pro' ); ?></h2>
|
33 |
+
<table>
|
34 |
+
<tr>
|
35 |
+
<td>
|
36 |
+
<?php if ( defined( 'WPTOUCH_IS_FREE' ) || !wptouch_has_license() ) { ?>
|
37 |
+
<img src="<?php echo WPTOUCH_ADMIN_URL; ?>/images/wptouch-logo.png" alt="WPtouch icon" />
|
38 |
+
<?php } else { ?>
|
39 |
+
<?php if ( wptouch_has_valid_gravatar( $settings->bncid ) ) { ?>
|
40 |
+
<?php echo '<img src="//www.gravatar.com/avatar/' . md5( $settings->bncid ) . '?s=80" alt="gravtar" />'; ?>
|
41 |
+
<?php } else { ?>
|
42 |
+
<img src="<?php echo WPTOUCH_ADMIN_URL; ?>/images/wptouch-logo.png" alt="WPtouch icon" />
|
43 |
+
<?php } ?>
|
44 |
+
<?php } ?>
|
45 |
+
</td>
|
46 |
+
<td>
|
47 |
+
<h3>
|
48 |
+
<?php if ( defined( 'WPTOUCH_IS_FREE' ) ) { ?>
|
49 |
+
WPtouch Free User
|
50 |
+
<?php } elseif ( !defined( 'WPTOUCH_IS_FREE' ) && !wptouch_has_license() ) { ?>
|
51 |
+
WPtouch Pro User
|
52 |
+
<?php } else { ?>
|
53 |
+
<?php echo $settings->bncid; ?>
|
54 |
+
<?php } ?>
|
55 |
+
</h3>
|
56 |
+
<h5>
|
57 |
+
<?php if ( defined( 'WPTOUCH_IS_FREE' ) ) { ?>
|
58 |
+
WPtouch Free Version
|
59 |
+
<?php } elseif ( !defined( 'WPTOUCH_IS_FREE' ) && !wptouch_has_license() ) { ?>
|
60 |
+
WPtouch Pro Unlicensed
|
61 |
+
<?php } else { ?>
|
62 |
+
<?php echo $bncid_info->license_friendly_name; ?>
|
63 |
+
<?php } ?>
|
64 |
+
</h5>
|
65 |
+
</td>
|
66 |
+
</tr>
|
67 |
|
68 |
+
<?php if ( defined( 'WPTOUCH_IS_FREE' ) || !wptouch_has_license() ) { ?>
|
69 |
+
<tr>
|
70 |
+
<td colspan="2">
|
71 |
+
<div id="license-settings-area">
|
72 |
+
<input type="text" placeholder="<?php _e( 'Account E-Mail Address', 'wptouch-pro' ); ?>" id="license_email" name="<?php echo wptouch_admin_get_manual_encoded_setting_name( 'bncid', 'bncid' ); ?>" value="<?php if ( $settings->bncid ) echo $settings->bncid; else ''; ?>" />
|
73 |
|
74 |
+
<input type="text" placeholder="<?php _e( 'Product License Key', 'wptouch-pro' ); ?>" id="license_key" name="<?php echo wptouch_admin_get_manual_encoded_setting_name( 'bncid', 'bncid' ); ?>" value="<?php if ( $settings->wptouch_license_key ) echo $settings->wptouch_license_key; else ''; ?>" />
|
|
|
|
|
|
|
75 |
|
76 |
+
<div id="activate-license">
|
77 |
+
<?php if ( wptouch_show_renewal_notice() ) { ?>
|
78 |
+
<a href="http://www.wptouch.com/renew/?utm_campaign=renew-license-page&utm_source=wptouch&utm_medium=web" class="renew button" target="_blank"><?php _e( 'Renew License', 'wptouch-pro' ); ?></a>
|
79 |
+
<?php } else { ?>
|
80 |
+
<a href="#" class="activate button"><?php _e( 'Activate', 'wptouch-pro' ); ?></a>
|
81 |
+
<?php } ?>
|
82 |
+
<?php if ( $settings->bncid || $settings->wptouch_license_key ) { ?>
|
83 |
+
<a href="#" class="clear-license button"><?php _e( 'Clear License', 'wptouch-pro' ); ?></a>
|
84 |
+
<?php } ?>
|
85 |
+
</div>
|
86 |
+
</div>
|
87 |
+
</td>
|
88 |
+
</tr>
|
89 |
+
<?php } else { ?>
|
90 |
+
<tr>
|
91 |
+
<td><?php _e( 'Site License', 'wptouch-pro' ); ?>:</td>
|
92 |
+
<td><?php echo $bncid_info->licensed_site; ?> | <a href="<?php echo add_query_arg( array( 'wptouch_license_action' => 'remove_license', 'wptouch_license_nonce' => wp_create_nonce( 'tsarbomba' ) ), $_SERVER[ 'REQUEST_URI' ] ) ; ?>" class="remove-license"><?php _e( 'Remove', 'wptouch-pro' ); ?></a></td>
|
93 |
+
</tr>
|
94 |
+
<tr>
|
95 |
+
<td><?php _e( 'Licenses used', 'wptouch-pro' ); ?>:</td>
|
96 |
+
<td><?php echo $bncid_info->license_used_sites; ?> of <?php echo ( $bncid_info->license_total_sites == 9999 ? 'unlimited' : $bncid_info->license_total_sites ); ?> sites | <a href="//www.wptouch.com/account" target="_blank"><?php _e( 'Manage', 'wptouch-pro' ); ?></a></td>
|
97 |
+
</tr>
|
98 |
+
<?php if ( $bncid_info->license_expiry_date ) { ?>
|
99 |
+
<tr>
|
100 |
+
<td><?php _e( 'License expiry', 'wptouch-pro' ); ?>:</td>
|
101 |
+
<td><?php echo date( 'F jS, Y', $bncid_info->license_expiry_date ); ?></td>
|
102 |
+
</tr>
|
103 |
+
<?php } ?>
|
104 |
+
<?php } ?>
|
105 |
+
</table>
|
106 |
</div>
|
107 |
+
<div class="wptouch-support">
|
108 |
+
<h2><?php _e( 'Support', 'wptouch-pro' ); ?></h2>
|
109 |
+
<table>
|
110 |
+
<tr>
|
111 |
+
<td><a href="//support.wptouch.com"><img src="<?php echo WPTOUCH_ADMIN_URL; ?>/images/wptouch_support.png" alt="support screenshot" /></a></td>
|
112 |
+
<td>
|
113 |
+
<h4><a href="//support.wptouch.com"><?php echo 'support.wptouch.com'; ?></a></h4>
|
114 |
+
<p><?php _e( 'Find support guides, file tickets and access our knowledgebase here.', 'wptouch-pro' ); ?></p>
|
115 |
+
</td>
|
116 |
+
</tr>
|
117 |
+
<tr>
|
118 |
+
<td><a href="//www.wptouch.com/account"><img src="<?php echo WPTOUCH_ADMIN_URL; ?>/images/wptouch_account.png" alt="<?php _e( 'Ornamental Image' ); ?>" /></a></td>
|
119 |
+
<td>
|
120 |
+
<h4><a href="//www.wptouch.com/account"><?php echo wptouchize_it( __( 'WPtouch Pro Account', 'wptouch-pro' ) ); ?></a></h4>
|
121 |
+
<p><?php echo wptouchize_it( __( 'Access your WPtouch Pro account to mange your license, access support resources, or upgrade your license.', 'wptouch-pro' ) ); ?></p>
|
122 |
+
</td>
|
123 |
+
</tr>
|
124 |
+
</table>
|
125 |
+
</div>
|
126 |
+
<?php if ( !wptouch_is_controlled_network() || ( wptouch_is_controlled_network() && current_user_can( 'manage_network' ) ) ) { ?>
|
127 |
+
<div class="wptouch-installation">
|
128 |
+
<h2><?php _e( 'Installation', 'wptouch-pro' ); ?></h2>
|
129 |
+
<input type="hidden" name="wptouch-self-destruct" value="1" />
|
130 |
+
<input type="hidden" name="wptouch-self-destruct-nonce" value="<?php echo wp_create_nonce( 'tsarbomba' ); ?>" />
|
131 |
+
<table>
|
132 |
+
<tr>
|
133 |
+
<td><button class="button" id="backup-button"><?php _e( 'Download Settings', 'wptouch-pro' ); ?></button></td>
|
134 |
+
<td><p><?php wptouchize_it( _e( 'Download a copy of WPtouch Pro settings', 'wptouch-pro' ) ); ?></p></td>
|
135 |
+
</tr>
|
136 |
+
<?php if ( current_user_can( 'manage_network' ) || current_user_can( 'activate_plugins' ) ) { ?>
|
137 |
+
<tr>
|
138 |
+
<td>
|
139 |
+
<button class="button upload" name="restore-settings-button" id="restore-button"><?php _e( 'Restore Settings', 'wptouch-pro' ); ?></button>
|
140 |
+
<div id="restore_uploader" style="display: none;"></div>
|
141 |
+
</td>
|
142 |
+
<td>
|
143 |
+
<p><?php wptouchize_it( _e( 'Restore a WPtouch Pro settings file', 'wptouch-pro' ) ); ?></p>
|
144 |
+
</td>
|
145 |
+
</tr>
|
146 |
+
<tr class="spacer"><!-- spacer --></tr>
|
147 |
+
<tr>
|
148 |
+
<td><input id="erase-settings" type="submit" name="wptouch-self-destruct-1" href="#" class="button erase grapefruit" value="<?php _e( 'Erase Settings', 'wptouch-pro' ); ?>" /></td>
|
149 |
+
<td><p><?php wptouchize_it( _e( 'Erases WPtouch Pro settings without deleting files', 'wptouch-pro' ) ); ?></p></td>
|
150 |
+
</tr>
|
151 |
+
</tr>
|
152 |
+
<tr>
|
153 |
+
<td><input id="erase-and-delete" type="submit" name="wptouch-self-destruct-2" class="button erase grapefruit" value="<?php _e( 'Delete & Erase', 'wptouch-pro' ); ?>" /></td>
|
154 |
+
<td><p><?php echo wptouchize_it( sprintf( __( 'Deletes the %s folder in your %s folder on disk, and erases WPtouch Pro settings', 'wptouch-pro' ), 'wptouch-data', 'wp-content' ) ); ?></p></td>
|
155 |
+
</tr>
|
156 |
+
<tr>
|
157 |
+
<td><input id="erase-delete-deactivate" type="submit" name="wptouch-self-destruct-3" class="button erase grapefruit" value="<?php _e( 'Delete, Erase & Deactivate', 'wptouch-pro' ); ?>" /></td>
|
158 |
+
<td><p><?php echo wptouchize_it( sprintf( __( 'Deletes the %s folder, erases WPtouch settings and deactivates WPtouch Pro', 'wptouch-pro' ), 'wptouch-data' ) ); ?></p></td>
|
159 |
+
</tr>
|
160 |
+
<?php } ?>
|
161 |
+
</table>
|
162 |
+
</div>
|
163 |
+
<?php } ?>
|
admin/pages/custom/wptouch-admin-upgrade-license.php
DELETED
@@ -1,17 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
function wptouch_create_anonymous_nonce( $action ) {
|
3 |
-
// Creates a valid WordPress nonce for anonymous requests.
|
4 |
-
$uid = 0;
|
5 |
-
$token = '';
|
6 |
-
$i = wp_nonce_tick();
|
7 |
-
$nonce = substr(wp_hash($i . '|' . $action . '|' . $uid . '|' . $token , 'nonce'), -12, 10);
|
8 |
-
return $nonce;
|
9 |
-
}
|
10 |
-
|
11 |
-
$nonce = wptouch_create_anonymous_nonce( 'wptouch_ajax_callback' );
|
12 |
-
$callback = urlencode( admin_url( 'admin-ajax.php' ) );
|
13 |
-
$iframe_source = 'https://www.wptouch.com/pricing/?utm_campaign=upgrade-license-from-admin&utm_medium=web&utm_source=wptouch&wptouchpro_callback_url=' . $callback . '&wptouchpro_callback_nonce=' . $nonce
|
14 |
-
?>
|
15 |
-
<iframe seamless style="width: 100%; height: 100%; min-height: 500px" src="<?php echo $iframe_source; ?>" id="upgrade-license-area" data-callback-url="<?php echo $callback; ?>" data-callback-nonce="<?php echo $nonce; ?>">
|
16 |
-
|
17 |
-
</iframe>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/pages/custom/wptouch-admin-upgrade.php
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
<div id="upgrade-area">
|
2 |
-
|
3 |
-
</div>
|
|
|
|
|
|
admin/pages/custom/wptouch-admin-wizard.php
ADDED
@@ -0,0 +1,361 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$settings = array(
|
3 |
+
'bncid' => wptouch_get_settings( 'bncid' ),
|
4 |
+
'foundation' => wptouch_get_settings( 'foundation' ),
|
5 |
+
'wptouch_pro' => wptouch_get_settings( 'wptouch_pro')
|
6 |
+
);
|
7 |
+
|
8 |
+
global $wptouch_pro;
|
9 |
+
|
10 |
+
if ( !defined( 'WPTOUCH_IS_FREE' ) ) {
|
11 |
+
wptouch_check_api( true );
|
12 |
+
}
|
13 |
+
?>
|
14 |
+
|
15 |
+
<script type="text/javascript">
|
16 |
+
// Set the default
|
17 |
+
var bncHasLicense = 0;
|
18 |
+
</script>
|
19 |
+
|
20 |
+
<div id="wptouch-wizard-container">
|
21 |
+
|
22 |
+
<?php if ( !defined( 'WPTOUCH_IS_FREE' ) && isset( $settings[ 'wptouch_pro' ]->upgrade_from_free ) && $settings[ 'wptouch_pro' ]->upgrade_from_free == true ) { ?>
|
23 |
+
<details>Free Upgrade</details>
|
24 |
+
<section class="free-upgrade">
|
25 |
+
<h2><?php _e( 'Thanks for Upgrading!','wptouch-pro' ); ?></h2>
|
26 |
+
<br />
|
27 |
+
<img src="<?php echo WPTOUCH_ADMIN_URL . '/images/team.jpg'; ?>" style="max-width: 90%;" alt="<?php _e( 'Ornamental Image' ); ?>" />
|
28 |
+
<p><?php _e( 'From all of us at BraveNewCode, we want to say thanks. You keep us working hard to make this product great.', 'wptouch-pro' ); ?></p>
|
29 |
+
<p><?php _e( 'Click the arrow below to get started with setup.', 'wptouch-pro' ); ?></p>
|
30 |
+
</section>
|
31 |
+
<?php } ?>
|
32 |
+
|
33 |
+
<?php if ( wptouch_can_cloud_install() ) { ?>
|
34 |
+
<details>Language</details>
|
35 |
+
<section class="language">
|
36 |
+
<h2><?php _e( 'Choose a Language','wptouch-pro' ); ?></h2>
|
37 |
+
<p class="set-language"><?php _e( 'Setting Language...', 'wptouch-pro' ); ?></p>
|
38 |
+
<img src="<?php echo WPTOUCH_ADMIN_URL . '/images/wizard/wizard-globe.png'; ?>" class="animated" alt="<?php _e( 'Ornamental Image' ); ?>" />
|
39 |
+
<br />
|
40 |
+
<select name="force_locale" id="language-force_locale">
|
41 |
+
<?php
|
42 |
+
$languages = wptouch_admin_get_languages();
|
43 |
+
foreach ( $languages as $locale => $name ) {
|
44 |
+
if ( is_network_admin() ) {
|
45 |
+
$current_language = $settings[ 'wptouch_pro' ]->force_network_locale;
|
46 |
+
} else {
|
47 |
+
$current_language = $settings[ 'wptouch_pro' ]->force_locale;
|
48 |
+
}
|
49 |
+
?>
|
50 |
+
<option value="<?php echo $locale; ?>" <?php if ( $locale == $current_language ) { echo ' selected'; } ?>><?php echo $name; ?></option>
|
51 |
+
<?php } ?>
|
52 |
+
</select>
|
53 |
+
</section>
|
54 |
+
<?php } ?>
|
55 |
+
|
56 |
+
<details>Welcome</details>
|
57 |
+
<section class="welcome">
|
58 |
+
<img src="<?php echo WPTOUCH_ADMIN_URL . '/images/wizard/wizard-logo.png'; ?>" alt="<?php _e( 'Ornamental Image' ); ?>" />
|
59 |
+
<h2><?php echo wptouchize_it( __( 'Welcome to WPtouch Pro 4','wptouch-pro' ) ); ?></h2>
|
60 |
+
<p><?php echo wptouchize_it( __( 'The most elegant and powerful way to create great mobile experiences for your website visitors. This guide will help you configure important WPtouch Pro settings before customizing your theme.','wptouch-pro' ) ); ?></p>
|
61 |
+
</section>
|
62 |
+
|
63 |
+
<?php if ( !defined( 'WPTOUCH_IS_FREE' ) ) { ?>
|
64 |
+
<details>Activate License</details>
|
65 |
+
<section class="activate-license">
|
66 |
+
<?php if ( !wptouch_has_license() ) { ?>
|
67 |
+
<span class="unlicensed">
|
68 |
+
<h2><?php _e( 'Activate License','wptouch-pro' ); ?></h2>
|
69 |
+
<p><?php _e( 'Adding a license is required to activate product updates and support, and provides access to more themes and extensions.','wptouch-pro' ); ?></p>
|
70 |
+
|
71 |
+
<p class="license-issue" style="display:none"><!-- Ajax populated --></p>
|
72 |
+
|
73 |
+
<table id="license-inputs">
|
74 |
+
<tr>
|
75 |
+
<td colspan="2">
|
76 |
+
<div id="license-settings-area">
|
77 |
+
<input type="text" placeholder="<?php _e( 'Account E-Mail Address', 'wptouch-pro' ); ?>" id="license_email" name="<?php echo wptouch_admin_get_manual_encoded_setting_name( 'bncid', 'bncid' ); ?>" value="<?php if ( $settings[ 'bncid' ]->bncid ) echo $settings[ 'bncid' ]->bncid; else ''; ?>" />
|
78 |
+
|
79 |
+
<input type="text" placeholder="<?php _e( 'Product License Key', 'wptouch-pro' ); ?>" id="license_key" name="<?php echo wptouch_admin_get_manual_encoded_setting_name( 'bncid', 'bncid' ); ?>" value="<?php if ( $settings[ 'bncid' ]->wptouch_license_key ) echo $settings[ 'bncid' ]->wptouch_license_key; else ''; ?>" />
|
80 |
+
|
81 |
+
<div id="activate-license">
|
82 |
+
<a href="#" class="activate button"><?php _e( 'Activate License', 'wptouch-pro' ); ?></a>
|
83 |
+
</div>
|
84 |
+
</div>
|
85 |
+
</td>
|
86 |
+
</tr>
|
87 |
+
</table>
|
88 |
+
<p><?php echo wptouchize_it( sprintf( __( 'You can find your license key in the purchase receipt e-mail we sent you when you purchased WPtouch Pro. %s If you have lost your license e-mail, or are having issues activating WPtouch Pro please send an e-mail to %s','wptouch-pro' ), '<br /><br />', '<a href="mailto:support@wptouch.com">support@wptouch.com</a>' ) ); ?></p>
|
89 |
+
</span>
|
90 |
+
<?php } ?>
|
91 |
+
<span class="activated" <?php if ( !wptouch_has_license() ) { echo 'style="display:none"'; } ?>>
|
92 |
+
<h2><?php _e( 'License Activation Complete','wptouch-pro' ); ?></h2>
|
93 |
+
<i class="icon-ok-circle animated"></i>
|
94 |
+
<p><?php echo sprintf( __( 'Thank you for purchasing a %s licence!', 'wptouch-pro' ), 'WPtouch Pro' ); ?></p>
|
95 |
+
</span>
|
96 |
+
</section>
|
97 |
+
<?php if ( is_network_admin() ) { ?>
|
98 |
+
<details>Multisite</details>
|
99 |
+
<section class="multisite-panel">
|
100 |
+
<h2><?php _e( 'Multisite Network Activation','wptouch-pro' ); ?></h2>
|
101 |
+
<p><?php echo wptouchize_it( __( 'Since you have network activated WPtouch Pro, you can configure the way themes and extensions are controlled in your environment.', 'wptouch-pro' ) ); ?></p>
|
102 |
+
<i class="icon-theme-settings"></i>
|
103 |
+
<p><?php echo wptouchize_it( __( 'By default network activations of WPtouch Pro mean that the Network Admin controls theme and extension downloads and updates. You can also choose to allow sub-sites to behave like independent installations, and control themes and extensions themselves.','wptouch-pro' ) ); ?></p>
|
104 |
+
<div class="checkbox-wrap">
|
105 |
+
<?php echo wptouchize_it( __( 'Control theme and extension downloads and updates','wptouch-pro' ) ); ?>
|
106 |
+
<input type="checkbox" class="checkbox" name="multisite_control" id="multisite_control" checked />
|
107 |
+
<label for="multisite_control"></label>
|
108 |
+
</div>
|
109 |
+
</section>
|
110 |
+
<?php } ?>
|
111 |
+
|
112 |
+
<?php if ( !wptouch_can_cloud_install() && !is_network_admin() ) { ?>
|
113 |
+
<details>Download Upload Themes</details>
|
114 |
+
<section class="down-up-theme download-upload">
|
115 |
+
<h2><?php _e( 'Download / Upload a Theme', 'wptouch-pro' ); ?></h2>
|
116 |
+
<p><?php echo sprintf( __( 'We were unable to install automatically for you on this server. Instead, you can download and upload manually. To learn more about enabling automatic downloads, %sread this article on support.wptouch.com%s.', 'wptouch-pro' ), '<a href="//support.wptouch.com">', '</a>' ); ?></p>
|
117 |
+
<ul>
|
118 |
+
<?php
|
119 |
+
$themes = $wptouch_pro->get_available_themes( true );
|
120 |
+
$current_theme = $wptouch_pro->get_current_theme_info();
|
121 |
+
foreach ( $themes as $theme ) {
|
122 |
+
?>
|
123 |
+
<?php if ( $theme->name != 'Foundation' && isset( $theme->download_url ) ) { ?>
|
124 |
+
<li data-type="theme">
|
125 |
+
<?php if ( isset( $theme->screenshot ) ) { ?><img src="<?php echo $theme->screenshot; ?>"><?php } ?>
|
126 |
+
<h3><?php echo $theme->name; ?></h3>
|
127 |
+
<?php if ( $theme->location == 'cloud' ) { ?>
|
128 |
+
<button class="button download" data-download-link="<?php echo $theme->download_url; ?>"><?php _e( 'Download', 'wptouch-pro' ); ?></button>
|
129 |
+
<?php } else { ?>
|
130 |
+
<span><?php _e( 'Installed', 'wptouch-pro' ); ?></span>
|
131 |
+
<?php } ?>
|
132 |
+
</li>
|
133 |
+
<?php } ?>
|
134 |
+
<?php } ?>
|
135 |
+
</ul>
|
136 |
+
<p class="upload"><span data-loaded-text="<?php _e( 'Theme Uploaded!', 'wptouch-pro' ); ?>" data-text="<?php _e( 'Upload A Theme', 'wptouch-pro' ); ?>"><?php _e( 'Upload A Theme', 'wptouch-pro' ); ?></span><button id="upload_theme" class="button upload" data-text="<?php _e( 'Upload', 'wptouch-pro' ); ?>" data-loading-text="<?php _e( 'Uploading...', 'wptouch-pro' ); ?>"><?php _e( 'Upload', 'wptouch-pro' ); ?></button>
|
137 |
+
<p class="small"><?php _e( 'You can activate your theme in the next step', 'wptouch-pro' ); ?></p>
|
138 |
+
</section>
|
139 |
+
<?php } ?>
|
140 |
+
|
141 |
+
<?php if ( !is_network_admin() ) { ?>
|
142 |
+
<details>Choose a Theme</details>
|
143 |
+
<section class="choose-a-theme">
|
144 |
+
<h2><?php _e( 'Choose a Theme', 'wptouch-pro' ); ?></h2>
|
145 |
+
<p><?php echo sprintf( __( 'Select a theme which best suits your website. %s Themes are flexible— colors, fonts, layout and more can be changed for each theme.', 'wptouch-pro' ), '<br />' ); ?></p>
|
146 |
+
<ul>
|
147 |
+
<?php
|
148 |
+
$themes = $wptouch_pro->get_available_themes( wptouch_can_cloud_install() );
|
149 |
+
$current_theme = $wptouch_pro->get_current_theme_info();
|
150 |
+
foreach ( $themes as $theme ) {
|
151 |
+
?>
|
152 |
+
<?php if ( $theme->name != 'Foundation' && !isset( $theme->buy_url ) && wptouch_is_network_available( 'theme', $theme ) ) { ?>
|
153 |
+
<li class="one-theme <?php if ( ( $current_theme && $current_theme->name == $theme->name ) || count( $themes ) == 2 ) { echo 'active'; } ?>">
|
154 |
+
<?php if ( isset( $theme->screenshot ) ) { ?><img src="<?php echo $theme->screenshot; ?>"><?php } ?>
|
155 |
+
<h3><?php echo $theme->name; ?></h3>
|
156 |
+
<input type="radio" name="activate_theme" value="<?php echo $theme->name; ?>" <?php if ( ( $current_theme && $current_theme->name == $theme->name ) || count( $themes ) == 2 ) { ?> checked<?php } ?>>
|
157 |
+
</li>
|
158 |
+
<?php } ?>
|
159 |
+
<?php } ?>
|
160 |
+
</ul>
|
161 |
+
</section>
|
162 |
+
<?php } ?>
|
163 |
+
|
164 |
+
<?php if ( !wptouch_can_cloud_install() && !is_network_admin() ) { ?>
|
165 |
+
<details>Download Upload Extensions</details>
|
166 |
+
<section class="down-up-extension download-upload">
|
167 |
+
<h2><?php _e( 'Download / Upload Extensions', 'wptouch-pro' ); ?></h2>
|
168 |
+
<p><?php echo sprintf( __( 'We were unable to install automatically for you on this server. Instead, you can download and upload manually. To learn more about enabling automatic downloads, %sread this article on support.wptouch.com%s.', 'wptouch-pro' ), '<a href="//support.wptouch.com">', '</a>' ); ?></p>
|
169 |
+
<ul>
|
170 |
+
<?php
|
171 |
+
$extensions = $wptouch_pro->get_available_addons( true );
|
172 |
+
foreach ( $extensions as $extension ) {
|
173 |
+
?>
|
174 |
+
<?php if ( isset( $extension->download_url ) ) { ?>
|
175 |
+
<li data-type="extension">
|
176 |
+
<?php if ( isset( $extension->screenshot ) ) { ?><img src="<?php echo $extension->screenshot; ?>"><?php } ?>
|
177 |
+
<h3><?php echo $extension->name; ?></h3>
|
178 |
+
<?php if ( $extension->location == 'cloud' ) { ?>
|
179 |
+
<button class="button download" data-download-link="<?php echo $extension->download_url; ?>"><?php _e( 'Download', 'wptouch-pro' ); ?></button>
|
180 |
+
<?php } else { ?>
|
181 |
+
<span><?php _e( 'Installed', 'wptouch-pro' ); ?></span>
|
182 |
+
<?php } ?>
|
183 |
+
</li>
|
184 |
+
<?php } ?>
|
185 |
+
<?php } ?>
|
186 |
+
</ul>
|
187 |
+
<p class="upload"><span data-loaded-text="<?php _e( 'Extension Uploaded!', 'wptouch-pro' ); ?>" data-text="<?php _e( 'Upload Extension', 'wptouch-pro' ); ?>"><?php _e( 'Upload Extension', 'wptouch-pro' ); ?></span><button id="upload_extension" class="button upload" data-text="<?php _e( 'Upload', 'wptouch-pro' ); ?>" data-loading-text="<?php _e( 'Uploading...', 'wptouch-pro' ); ?>"><?php _e( 'Upload', 'wptouch-pro' ); ?></button>
|
188 |
+
<p class="small"><?php _e( 'You can activate extensions in the next step', 'wptouch-pro' ); ?></p>
|
189 |
+
</section>
|
190 |
+
<?php } ?>
|
191 |
+
|
192 |
+
<?php
|
193 |
+
if ( !is_network_admin() ) {
|
194 |
+
|
195 |
+
if ( wptouch_is_controlled_network() ) {
|
196 |
+
$extensions = $wptouch_pro->get_available_addons( false );
|
197 |
+
} else {
|
198 |
+
$extensions = $wptouch_pro->get_available_addons( wptouch_can_cloud_install() );
|
199 |
+
}
|
200 |
+
|
201 |
+
if ( count( $extensions ) > 0 ) {
|
202 |
+
?>
|
203 |
+
<details>Activate Extensions</details>
|
204 |
+
<section class="activate-extensions">
|
205 |
+
<h2><?php _e( 'Activate Extensions', 'wptouch-pro' ); ?></h2>
|
206 |
+
<p><?php echo wptouchize_it( __( 'Extensions are like mini-plugins that help you extend WPtouch Pro. You can also manage Extensions at any time from the WPtouch Pro settings panel.', 'wptouch-pro' ) ); ?></p>
|
207 |
+
<ul>
|
208 |
+
<?php
|
209 |
+
foreach ( $extensions as $extension ) {
|
210 |
+
?>
|
211 |
+
<?php if ( !isset( $extension->buy_url ) ) { ?>
|
212 |
+
<li>
|
213 |
+
<?php if ( isset( $extension->screenshot ) ) { ?><img src="<?php echo $extension->screenshot; ?>"><?php } ?>
|
214 |
+
<h3><?php echo $extension->name; ?></h3>
|
215 |
+
<p><?php echo $extension->description; ?></p>
|
216 |
+
<div class="checkbox-wrap">
|
217 |
+
<input type="checkbox" class="checkbox" name="activate_extension[]" id="extension-<?php echo str_replace( ' ', '-', $extension->name ); ?>" value="<?php echo $extension->name; ?>" <?php if ( isset( $settings[ 'wptouch_pro' ]->active_addons ) && array_key_exists( $extension->name, $settings[ 'wptouch_pro' ]->active_addons ) ) { echo 'checked'; } ?>/>
|
218 |
+
<label for="extension-<?php echo str_replace( ' ', '-', $extension->name ); ?>"></label>
|
219 |
+
</div>
|
220 |
+
</li>
|
221 |
+
<?php } ?>
|
222 |
+
<?php } ?>
|
223 |
+
</ul>
|
224 |
+
</section>
|
225 |
+
<?php
|
226 |
+
}
|
227 |
+
}
|
228 |
+
?>
|
229 |
+
<?php } ?><!-- !WPTOUCH_IS_FREE -->
|
230 |
+
|
231 |
+
<?php if ( !is_network_admin() ) { ?>
|
232 |
+
<?php if ( !defined( 'WPTOUCH_IS_FREE' ) ) { ?>
|
233 |
+
<details>Home and Blog</details>
|
234 |
+
<section class="home-blog">
|
235 |
+
<?php $wp_homepage = get_option( 'show_on_front' ); ?>
|
236 |
+
<?php if ( $wp_homepage == 'posts' ) { ?>
|
237 |
+
<h2><?php _e( 'Posts Page', 'wptouch-pro' ); ?></h2>
|
238 |
+
<?php } else { ?>
|
239 |
+
<h2><?php _e( 'Home Page & Posts', 'wptouch-pro' ); ?></h2>
|
240 |
+
<?php } ?>
|
241 |
+
<p><?php echo wptouchize_it( __( 'By default WPtouch Pro uses your WordPress settings for its homepage and blog settings. You can choose a different setup here.', 'wptouch-pro' ) ); ?></p>
|
242 |
+
|
243 |
+
<table>
|
244 |
+
<tr>
|
245 |
+
<?php if ( $wp_homepage == 'page' ) { ?>
|
246 |
+
<td class="home_page">
|
247 |
+
<img src="<?php echo WPTOUCH_ADMIN_URL . '/images/wizard/home.jpg'; ?>" alt="<?php _e( 'Ornamental Image' ); ?>" />
|
248 |
+
<?php
|
249 |
+
ob_start();
|
250 |
+
wp_dropdown_pages();
|
251 |
+
$contents = ob_get_contents();
|
252 |
+
ob_end_clean();
|
253 |
+
|
254 |
+
$contents = str_replace( "id='page_id'", 'id="homepage_redirect_wp_target"><option class="level-0" value="none" >' . __( 'WordPress Reading Settings', 'wptouch-pro' ) . '</option>', $contents );
|
255 |
+
$contents = str_replace( "name='page_id'", 'name="homepage_redirect_wp_target"', $contents );
|
256 |
+
if ( $settings[ 'wptouch_pro' ]->homepage_landing == 'select' ) {
|
257 |
+
$value_string = 'value="' . $settings[ 'wptouch_pro' ]->homepage_redirect_wp_target . '"';
|
258 |
+
$contents = str_replace( $value_string, $value_string . ' selected', $contents );
|
259 |
+
}
|
260 |
+
echo $contents;
|
261 |
+
?>
|
262 |
+
<p><?php _e( 'Mobile home page', 'wptouch-pro' ); ?></p>
|
263 |
+
</td>
|
264 |
+
<?php } ?>
|
265 |
+
<td class="blog_page">
|
266 |
+
<img src="<?php echo WPTOUCH_ADMIN_URL . '/images/wizard/blog.jpg'; ?>" alt="<?php _e( 'Ornamental Image' ); ?>" />
|
267 |
+
<?php
|
268 |
+
ob_start();
|
269 |
+
wp_dropdown_pages();
|
270 |
+
$latest_post_options = ob_get_contents();
|
271 |
+
ob_end_clean();
|
272 |
+
|
273 |
+
$latest_post_options = str_replace( "id='page_id'>", 'id="page_id"><option class="level-0" value="none" >' . __( 'WordPress Reading Settings', 'wptouch-pro' ) . '</option>', $latest_post_options );
|
274 |
+
$latest_post_options = str_replace( 'page_id', 'latest_posts_page', $latest_post_options );
|
275 |
+
|
276 |
+
echo $latest_post_options;
|
277 |
+
?>
|
278 |
+
<p><?php _e( 'Mobile posts listing', 'wptouch-pro' ); ?></p>
|
279 |
+
</td>
|
280 |
+
</tr>
|
281 |
+
</table>
|
282 |
+
</section>
|
283 |
+
|
284 |
+
<details>Analytics</details>
|
285 |
+
<section class="analytics">
|
286 |
+
<h2><?php _e( 'Google Analytics', 'wptouch-pro' ); ?></h2>
|
287 |
+
<p><?php echo wptouchize_it( __( 'WPtouch Pro supports analytics and usage statistics collection from Google Analytics.', 'wptouch-pro' ) ); ?></p>
|
288 |
+
<p><?php echo wptouchize_it( __( 'WPtouch Pro can scan your site html and add it automatically.', 'wptouch-pro' ) ); ?></p>
|
289 |
+
|
290 |
+
<i class="icon-chart-pie animated"></i>
|
291 |
+
|
292 |
+
<button name="scan-analytics" id="wizard-scan-analytics" class="button" data-loading-text="<?php _e( 'Searching...', 'wptouch-pro' ); ?>"><?php _e( 'Scan for Analytics Code', 'wptouch-pro' ); ?></button>
|
293 |
+
|
294 |
+
<div id="analytics_code" style="display: none">
|
295 |
+
<input type="text" name="analytics_google_id" id="analytics_google_id">
|
296 |
+
</div>
|
297 |
+
</section>
|
298 |
+
<?php } ?>
|
299 |
+
|
300 |
+
<details>WPtouch Love</details>
|
301 |
+
<section class="show-love">
|
302 |
+
<h2><?php echo wptouchize_it( __( 'WPtouch Love', 'wptouch-pro' ) ); ?></h2>
|
303 |
+
<p><?php echo wptouchize_it( __( "Share your love for WPtouch Pro by including a small text link in your website's footer. Including the link helps us find new customers who will love WPtouch Pro like you do!", 'wptouch-pro' ) ); ?></p>
|
304 |
+
<i class="icon-heart animated infinite heartbeat"></i>
|
305 |
+
<div class="checkbox-wrap">
|
306 |
+
<?php echo wptouchize_it( __( 'Show powered by WPtouch Pro','wptouch-pro' ) ); ?>
|
307 |
+
<input type="checkbox" class="checkbox" name="wptouch_love" id="wptouch_love" <?php if ( !defined( 'WPTOUCH_IS_FREE' ) ) { echo 'checked'; } ?> />
|
308 |
+
<label for="wptouch_love"></label>
|
309 |
+
</div>
|
310 |
+
</section>
|
311 |
+
<?php } ?>
|
312 |
+
|
313 |
+
<details>WPtouch Support</details>
|
314 |
+
<section class="step-9 support">
|
315 |
+
<h2><?php echo wptouchize_it( __( 'WPtouch Pro Support', 'wptouch-pro' ) ); ?></h2>
|
316 |
+
<p><?php echo wptouchize_it( __( 'WPtouch Pro 4 includes great support resources to help you get the most out of it.', 'wptouch-pro' ) ); ?></p>
|
317 |
+
<table>
|
318 |
+
<tr>
|
319 |
+
<td>
|
320 |
+
<a href="//support.wptouch.com" target="_blank"><img src="<?php echo WPTOUCH_ADMIN_URL; ?>/images/wptouch_support.png" alt="<?php _e( 'Ornamental Image' ); ?>" /></a>
|
321 |
+
<h4><a href="//support.wptouch.com" target="_blank"><?php echo 'support.wptouch.com'; ?></a></h4>
|
322 |
+
<p><?php _e( 'Find support guides, file tickets and access our knowledgebase here.', 'wptouch-pro' ); ?></p>
|
323 |
+
</td>
|
324 |
+
<td>
|
325 |
+
<a href="//www.wptouch.com/account" target="_blank"><img src="<?php echo WPTOUCH_ADMIN_URL; ?>/images/wptouch_account.png" alt="<?php _e( 'Ornamental Image' ); ?>" /></a>
|
326 |
+
<h4><a href="//www.wptouch.com/account" target="_blank"><?php echo 'wptouch.com/account'; ?></a></h4>
|
327 |
+
<p><?php echo wptouchize_it( __( 'Access your WPtouch Pro account to manage your license, access support resources, or upgrade your license.', 'wptouch-pro' ) ); ?></p>
|
328 |
+
</td>
|
329 |
+
</tr>
|
330 |
+
</table>
|
331 |
+
</section>
|
332 |
+
|
333 |
+
<details>Setup Complete</details>
|
334 |
+
<section class="complete">
|
335 |
+
<h2><?php _e( 'Setup Complete!', 'wptouch-pro' ); ?></h2>
|
336 |
+
<?php if ( defined( 'WPTOUCH_IS_FREE' ) ) { ?>
|
337 |
+
<p><?php echo wptouchize_it( __( ' Next you can configure your theme.', 'wptouch-pro' ) ); ?></p>
|
338 |
+
<?php } elseif ( !is_network_admin() ) { ?>
|
339 |
+
<p><?php echo wptouchize_it( __( ' Next you can customize your theme, or configure advanced settings.', 'wptouch-pro' ) ); ?></p>
|
340 |
+
<?php } else { ?>
|
341 |
+
<p><?php echo wptouchize_it( __( ' Next you can configure network settings.', 'wptouch-pro' ) ); ?></p>
|
342 |
+
<?php } ?>
|
343 |
+
<table>
|
344 |
+
<tr>
|
345 |
+
<?php if ( !is_network_admin() && !defined( 'WPTOUCH_IS_FREE' ) ) { ?>
|
346 |
+
<td>
|
347 |
+
<i class="icon-theme-customizer"></i>
|
348 |
+
<a href="<?php echo admin_url( 'customize.php' ); ?>" id="exit_wizard_customizer" class="button"><?php _e( 'Customize your Theme', 'wptouch-pro' ); ?></a>
|
349 |
+
</td>
|
350 |
+
<?php } ?>
|
351 |
+
<td>
|
352 |
+
<i class="icon-theme-settings"></i>
|
353 |
+
<a href="<?php echo wptouch_admin_url( 'admin.php?page=wptouch-admin-general-settings' ); ?>" id="exit_wizard_settings" class="button">
|
354 |
+
<?php echo wptouchize_it( __( 'Configure Settings', 'wptouch-pro' ) ); ?>
|
355 |
+
</a>
|
356 |
+
</td>
|
357 |
+
</tr>
|
358 |
+
</table>
|
359 |
+
</section>
|
360 |
+
|
361 |
+
</div><!-- wizard-container -->
|
admin/pages/wptouch-admin-addon-settings.php
DELETED
@@ -1,15 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
add_filter( 'wptouch_admin_page_render_wptouch-admin-addon-settings', 'wptouch_render_addon_settings', 1 );
|
4 |
-
|
5 |
-
function wptouch_render_addon_settings( $page_options ) {
|
6 |
-
wptouch_add_sub_page(
|
7 |
-
WPTOUCH_PRO_ADMIN_ADDON_OPTIONS_GENERAL,
|
8 |
-
'wptouch-admin-addon-settings-general',
|
9 |
-
$page_options
|
10 |
-
);
|
11 |
-
|
12 |
-
$page_options = apply_filters( 'wptouch_addon_options', $page_options );
|
13 |
-
|
14 |
-
return $page_options;
|
15 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/pages/wptouch-admin-general-settings.php
CHANGED
@@ -1,470 +1,761 @@
|
|
1 |
<?php
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
3 |
-
|
4 |
-
|
5 |
|
6 |
-
|
7 |
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
|
36 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
}
|
38 |
|
39 |
function wptouch_render_general_page( $page_options ) {
|
40 |
$settings = wptouch_get_settings();
|
41 |
|
42 |
wptouch_add_sub_page( WPTOUCH_ADMIN_SETUP_GENERAL, 'setup-general-general', $page_options );
|
43 |
-
wptouch_add_sub_page( WPTOUCH_ADMIN_SETUP_COMPAT, 'setup-general-compat', $page_options );
|
44 |
|
45 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
46 |
wptouch_add_setting(
|
47 |
'text',
|
48 |
-
'
|
49 |
-
|
50 |
-
__( '
|
51 |
WPTOUCH_SETTING_BASIC,
|
52 |
'3.0'
|
53 |
),
|
54 |
wptouch_add_setting(
|
55 |
-
'
|
56 |
-
'
|
57 |
-
|
58 |
-
|
59 |
WPTOUCH_SETTING_BASIC,
|
60 |
'3.0'
|
61 |
)
|
62 |
);
|
63 |
|
|
|
|
|
64 |
wptouch_add_page_section(
|
65 |
WPTOUCH_ADMIN_SETUP_GENERAL,
|
66 |
-
__( '
|
67 |
-
'setup-
|
68 |
-
$
|
69 |
-
$page_options
|
|
|
70 |
);
|
71 |
|
72 |
-
// Build admin panel page here
|
73 |
wptouch_add_page_section(
|
74 |
WPTOUCH_ADMIN_SETUP_GENERAL,
|
75 |
-
__( '
|
76 |
-
'setup-
|
77 |
array(
|
78 |
-
|
79 |
-
'list',
|
80 |
-
'force_locale',
|
81 |
-
__( 'Language', 'wptouch-pro' ),
|
82 |
-
wptouchize_it( __( 'The WPtouch Pro admin panel & supported themes will be shown in this locale.', 'wptouch-pro' ) ),
|
83 |
-
WPTOUCH_SETTING_BASIC,
|
84 |
-
'3.0',
|
85 |
-
wptouch_admin_get_languages()
|
86 |
-
)
|
87 |
-
/* TODO: Remove deprecated setting
|
88 |
-
,
|
89 |
-
wptouch_add_setting(
|
90 |
'checkbox',
|
91 |
-
'
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
'
|
96 |
-
)
|
97 |
),
|
98 |
-
$page_options
|
|
|
|
|
|
|
99 |
);
|
100 |
|
101 |
wptouch_add_page_section(
|
102 |
WPTOUCH_ADMIN_SETUP_GENERAL,
|
103 |
-
__( '
|
104 |
-
'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
105 |
array(
|
106 |
-
|
107 |
-
'
|
108 |
-
'
|
109 |
-
|
110 |
-
|
111 |
WPTOUCH_SETTING_BASIC,
|
112 |
-
'
|
113 |
-
|
114 |
-
'normal' => __( 'All Visitors', 'wptouch-pro' ),
|
115 |
-
'preview' => __( 'Site administrators', 'wptouch-pro' ),
|
116 |
-
'disabled' => wptouchize_it( __( 'Nobody (disable WPtouch Pro)', 'wptouch-pro' ) )
|
117 |
-
)
|
118 |
-
)
|
119 |
),
|
120 |
-
$page_options
|
|
|
|
|
|
|
121 |
);
|
122 |
|
123 |
wptouch_add_page_section(
|
124 |
WPTOUCH_ADMIN_SETUP_GENERAL,
|
125 |
-
__( '
|
126 |
-
'setup-
|
127 |
array(
|
128 |
-
|
129 |
-
'
|
130 |
-
'
|
131 |
-
|
132 |
-
|
133 |
WPTOUCH_SETTING_BASIC,
|
134 |
-
'
|
135 |
array(
|
136 |
-
'
|
137 |
-
'
|
138 |
-
'custom' =>
|
139 |
)
|
140 |
),
|
141 |
-
|
142 |
-
|
143 |
'text',
|
144 |
-
'
|
145 |
-
__( '
|
146 |
-
|
147 |
WPTOUCH_SETTING_BASIC,
|
148 |
'3.0'
|
149 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
150 |
),
|
151 |
-
$page_options
|
|
|
152 |
);
|
153 |
|
154 |
wptouch_add_page_section(
|
155 |
WPTOUCH_ADMIN_SETUP_GENERAL,
|
156 |
-
__( '
|
157 |
-
'setup-
|
158 |
array(
|
159 |
-
/* TODO: Deprecated
|
160 |
-
wptouch_add_setting(
|
161 |
-
'checkbox',
|
162 |
-
'desktop_is_first_view',
|
163 |
-
__( '1st time visitors see desktop theme', 'wptouch-pro' ),
|
164 |
-
__( 'Your regular theme will be shown to 1st time mobile visitors.', 'wptouch-pro' ),
|
165 |
-
WPTOUCH_SETTING_ADVANCED,
|
166 |
-
'3.0'
|
167 |
-
), */
|
168 |
wptouch_add_setting(
|
169 |
'checkbox',
|
170 |
-
'
|
171 |
-
__( 'Show
|
172 |
-
|
173 |
-
|
174 |
'3.0'
|
175 |
-
),
|
176 |
-
/* TODO: Deprecated
|
177 |
-
wptouch_add_pro_setting(
|
178 |
-
'radiolist',
|
179 |
-
'mobile_switch_link_target',
|
180 |
-
__( 'Choose the target for the mobile switch link', 'wptouch-pro' ),
|
181 |
-
'',
|
182 |
-
WPTOUCH_SETTING_ADVANCED,
|
183 |
-
'3.0.1',
|
184 |
-
array(
|
185 |
-
'current_page' => __( 'Current page', 'wptouch-pro' ),
|
186 |
-
'home_page' => __( 'Home page', 'wptouch-pro ')
|
187 |
-
)
|
188 |
-
),*/
|
189 |
-
wptouch_add_pro_setting(
|
190 |
-
'radiolist',
|
191 |
-
'switch_link_method',
|
192 |
-
__( 'Desktop theme switch buttons', 'wptouch-pro' ),
|
193 |
-
__( 'Allows visitors to switch from your desktop theme to your mobile theme. You can also customize the placement of Switch buttons by placing the wptouch_desktop_switch_link() template tag somewhere in your desktop theme.', 'wptouch-pro' ),
|
194 |
-
WPTOUCH_SETTING_ADVANCED,
|
195 |
-
'3.0',
|
196 |
-
array(
|
197 |
-
'automatic' => __( 'Automatically inserted inline', 'wptouch-pro' ),
|
198 |
-
'ajax' => __( 'Automatically inserted with AJAX', 'wptouch-pro' ),
|
199 |
-
'template_tag' => __( 'Template tag', 'wptouch-pro' )
|
200 |
-
)
|
201 |
)
|
202 |
),
|
203 |
-
$page_options
|
|
|
204 |
);
|
205 |
|
206 |
wptouch_add_page_section(
|
207 |
WPTOUCH_ADMIN_SETUP_GENERAL,
|
208 |
-
__( '
|
209 |
-
'setup-
|
210 |
array(
|
211 |
wptouch_add_setting(
|
212 |
-
'
|
213 |
-
'
|
214 |
-
__( '
|
215 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
216 |
WPTOUCH_SETTING_BASIC,
|
217 |
'3.0'
|
218 |
)
|
219 |
),
|
220 |
-
$page_options
|
|
|
221 |
);
|
222 |
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
wptouch_add_pro_setting(
|
230 |
-
'text',
|
231 |
-
'custom_css_file',
|
232 |
-
__( 'URL to a custom CSS file to load', 'wptouch-pro' ),
|
233 |
-
__( 'Useful if you have specific compatibility CSS you need to add.', 'wptouch-pro' ),
|
234 |
-
WPTOUCH_SETTING_ADVANCED,
|
235 |
-
'3.0'
|
236 |
-
)
|
237 |
-
),
|
238 |
-
$page_options
|
239 |
-
);
|
240 |
-
}
|
241 |
|
242 |
wptouch_add_page_section(
|
243 |
WPTOUCH_ADMIN_SETUP_COMPAT,
|
244 |
-
|
245 |
'shortcodes-compatibility',
|
246 |
array(
|
247 |
wptouch_add_pro_setting(
|
248 |
'checkbox',
|
249 |
-
'
|
250 |
-
|
251 |
-
|
252 |
-
WPTOUCH_SETTING_BASIC,
|
253 |
-
'3.7'
|
254 |
-
),
|
255 |
-
wptouch_add_pro_setting(
|
256 |
-
'radiolist',
|
257 |
-
'shortcode_compatibility_method',
|
258 |
-
__( 'Shortcode handling', 'wptouch-pro'),
|
259 |
-
'',
|
260 |
WPTOUCH_SETTING_BASIC,
|
261 |
-
'3.
|
262 |
-
array(
|
263 |
-
'load_content_by_ajax' => wptouchize_it( __( 'Load content as output by desktop theme (you may need to load CSS/JavaScript)', 'wptouch-pro' ) ),
|
264 |
-
'remove_shortcodes' => wptouchize_it( __( 'Remove selected shortcodes from content', 'wptouch-pro' ) ),
|
265 |
-
)
|
266 |
),
|
267 |
wptouch_add_pro_setting(
|
268 |
-
'
|
269 |
'remove_shortcodes',
|
270 |
-
|
271 |
-
__( '
|
272 |
WPTOUCH_SETTING_BASIC,
|
273 |
'3.0'
|
274 |
)
|
275 |
),
|
276 |
-
$page_options
|
|
|
277 |
);
|
278 |
|
|
|
|
|
279 |
wptouch_add_page_section(
|
280 |
WPTOUCH_ADMIN_SETUP_COMPAT,
|
281 |
-
__( '
|
282 |
-
'
|
283 |
array(
|
284 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
285 |
'checkbox',
|
286 |
-
'
|
287 |
-
|
288 |
-
|
289 |
WPTOUCH_SETTING_BASIC,
|
290 |
-
'
|
291 |
),
|
292 |
-
|
293 |
-
'
|
294 |
-
'
|
295 |
-
|
296 |
-
|
297 |
WPTOUCH_SETTING_BASIC,
|
298 |
-
'
|
299 |
-
array(
|
300 |
-
'disabled' => wptouchize_it( __( 'All URLs on my site' , 'wptouch-pro' ) ),
|
301 |
-
'exclude_urls' => wptouchize_it( __( 'All URLs/pages except:', 'wptouch-pro' ) ),
|
302 |
-
'exclusive_urls' => wptouchize_it( __( 'Only these URLs/pages:', 'wptouch-pro' ) )
|
303 |
-
)
|
304 |
),
|
305 |
wptouch_add_setting(
|
306 |
-
'
|
307 |
-
'
|
308 |
-
|
309 |
-
|
310 |
WPTOUCH_SETTING_BASIC,
|
311 |
-
'
|
312 |
-
)
|
313 |
-
|
314 |
-
'
|
315 |
-
'
|
316 |
-
|
317 |
-
|
318 |
WPTOUCH_SETTING_BASIC,
|
319 |
-
'
|
320 |
-
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
321 |
),
|
322 |
-
$page_options
|
|
|
|
|
323 |
);
|
324 |
|
325 |
-
|
326 |
-
if ( $settings->include_functions_from_desktop_theme ) {
|
327 |
wptouch_add_page_section(
|
328 |
-
|
329 |
-
__( '
|
330 |
-
'
|
331 |
array(
|
332 |
wptouch_add_pro_setting(
|
333 |
'checkbox',
|
334 |
-
'
|
335 |
-
|
336 |
-
|
337 |
-
|
338 |
-
'
|
339 |
),
|
340 |
-
|
341 |
-
'
|
342 |
-
'
|
343 |
-
|
344 |
-
|
345 |
-
|
346 |
-
'
|
347 |
-
|
348 |
-
|
349 |
-
|
350 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
351 |
)
|
352 |
),
|
353 |
-
$page_options
|
|
|
|
|
|
|
354 |
);
|
355 |
}
|
356 |
|
357 |
wptouch_add_page_section(
|
358 |
-
|
359 |
-
__( '
|
360 |
'custom-user-agents',
|
361 |
array(
|
362 |
wptouch_add_setting(
|
363 |
-
'
|
364 |
'custom_user_agents',
|
365 |
-
__( 'User
|
366 |
-
|
367 |
WPTOUCH_SETTING_BASIC,
|
368 |
'3.0'
|
369 |
-
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
370 |
wptouch_add_setting(
|
371 |
-
'
|
372 |
-
''
|
|
|
|
|
|
|
|
|
373 |
)
|
374 |
),
|
375 |
-
$page_options
|
|
|
376 |
);
|
377 |
-
|
378 |
wptouch_add_page_section(
|
379 |
-
|
380 |
-
__( '
|
381 |
-
'setup-
|
382 |
array(
|
383 |
wptouch_add_setting(
|
384 |
'checkbox',
|
385 |
-
'
|
386 |
-
__( '
|
387 |
-
__( '
|
388 |
-
|
389 |
'3.0'
|
390 |
),
|
391 |
-
TODO: Deprecated
|
392 |
wptouch_add_setting(
|
393 |
'checkbox',
|
394 |
-
'
|
395 |
-
__( '
|
396 |
-
__( '
|
397 |
-
|
398 |
'3.0'
|
399 |
-
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
400 |
wptouch_add_setting(
|
401 |
-
'
|
402 |
-
'
|
403 |
-
|
404 |
-
__( 'Creates a debug file to help diagnose installation issues.', 'wptouch-pro' ),
|
405 |
-
WPTOUCH_SETTING_ADVANCED,
|
406 |
-
'3.0'
|
407 |
-
),
|
408 |
-
wptouch_add_setting( 'debuginfo', 'debug-info', '', '', WPTOUCH_SETTING_ADVANCED, '3.0' )
|
409 |
),
|
410 |
$page_options
|
411 |
-
)
|
412 |
|
413 |
wptouch_add_page_section(
|
414 |
-
|
415 |
-
__( '
|
416 |
-
'
|
417 |
array(
|
418 |
-
|
419 |
-
'
|
420 |
-
'
|
421 |
-
sprintf( __( 'Automatically backup settings to the %s folder', 'wptouch-pro' ),
|
422 |
-
'<em>/wptouch-data/backups</em>' ),
|
423 |
-
wptouchize_it( __( 'WPtouch Pro backups your settings each time they are saved.', 'wptouch-pro' ) ),
|
424 |
-
WPTOUCH_SETTING_BASIC,
|
425 |
-
'3.0'
|
426 |
),
|
427 |
-
|
|
|
|
|
|
|
428 |
),
|
429 |
$page_options
|
430 |
);
|
431 |
|
432 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
433 |
|
434 |
wptouch_add_page_section(
|
435 |
-
|
436 |
-
__( '
|
437 |
-
'
|
438 |
array(
|
439 |
-
|
440 |
'custom',
|
441 |
-
'
|
442 |
)
|
443 |
),
|
444 |
$page_options
|
445 |
);
|
446 |
|
447 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
448 |
wptouch_add_page_section(
|
449 |
-
|
450 |
-
__( '
|
451 |
-
'
|
452 |
array(
|
453 |
wptouch_add_setting(
|
454 |
-
'
|
455 |
-
'
|
456 |
-
__( 'Admin panel settings shown', 'wptouch-pro' ),
|
457 |
-
'',
|
458 |
-
WPTOUCH_SETTING_BASIC,
|
459 |
-
'3.0',
|
460 |
-
array(
|
461 |
-
'0' => __( 'Default', 'wptouch-pro' ),
|
462 |
-
'1' => __( 'Advanced', 'wptouch-pro' )
|
463 |
-
)
|
464 |
)
|
465 |
),
|
466 |
$page_options
|
467 |
);
|
468 |
-
|
469 |
return $page_options;
|
470 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
<?php
|
2 |
+
if ( !defined( 'FOUNDATION_SETTING_DOMAIN' ) ) {
|
3 |
+
define( 'FOUNDATION_SETTING_DOMAIN', 'foundation' );
|
4 |
+
}
|
5 |
+
if ( !wptouch_is_controlled_network() || ( wptouch_is_controlled_network() && is_network_admin() ) ) {
|
6 |
+
add_filter( 'wptouch_admin_page_render_wptouch-admin-general-settings', 'wptouch_render_updates_page' );
|
7 |
+
}
|
8 |
+
if ( is_network_admin() ) {
|
9 |
+
add_filter( 'wptouch_admin_page_render_wptouch-admin-general-settings', 'wptouch_render_multisite_page' );
|
10 |
+
}
|
11 |
+
add_filter( 'wptouch_admin_page_render_wptouch-admin-general-settings', 'wptouch_render_general_page' );
|
12 |
+
add_filter( 'wptouch_admin_page_render_wptouch-admin-general-settings', 'wptouch_render_compat_page' );
|
13 |
+
add_filter( 'wptouch_admin_page_render_wptouch-admin-general-settings', 'wptouch_render_devices_page' );
|
14 |
+
add_filter( 'wptouch_admin_page_render_wptouch-admin-general-settings', 'wptouch_render_menu_page' );
|
15 |
+
add_filter( 'wptouch_admin_page_render_wptouch-admin-general-settings', 'wptouch_render_themes' );
|
16 |
+
add_filter( 'wptouch_admin_page_render_wptouch-admin-general-settings', 'wptouch_render_theme_customize_page' );
|
17 |
+
add_filter( 'wptouch_admin_page_render_wptouch-admin-general-settings', 'wptouch_render_theme_gopro_page' );
|
18 |
+
add_filter( 'wptouch_admin_page_render_wptouch-admin-general-settings', 'wptouch_render_addons' );
|
19 |
+
add_filter( 'wptouch_admin_page_render_wptouch-admin-general-settings', 'wptouch_render_addon_settings' );
|
20 |
|
21 |
+
function wptouch_render_multisite_page( $page_options ) {
|
22 |
+
global $wptouch_pro;
|
23 |
|
24 |
+
$settings = wptouch_get_settings();
|
25 |
|
26 |
+
wptouch_add_sub_page( WPTOUCH_ADMIN_MULTISITE_SETUP, 'multisite-network-admin', $page_options );
|
27 |
+
|
28 |
+
wptouch_add_page_section(
|
29 |
+
WPTOUCH_ADMIN_MULTISITE_SETUP,
|
30 |
+
__( 'Multisite Setup', 'wptouch-pro' ),
|
31 |
+
'mutisite-setup',
|
32 |
+
array(
|
33 |
+
wptouch_add_setting(
|
34 |
+
'list',
|
35 |
+
'force_network_locale',
|
36 |
+
__( 'Admin Language', 'wptouch-pro' ),
|
37 |
+
false,
|
38 |
+
WPTOUCH_SETTING_BASIC,
|
39 |
+
'3.0',
|
40 |
+
wptouch_admin_get_languages(),
|
41 |
+
'wptouch_pro'
|
42 |
+
),
|
43 |
+
wptouch_add_setting(
|
44 |
+
'checkbox',
|
45 |
+
'multisite_control',
|
46 |
+
__( 'Control themes and extension downloads and updates', 'wptouch-pro' ),
|
47 |
+
__( 'If enabled, sub-sites can only activate/deactivate themes and extensions that have been downloaded in the network admin.', 'wptouch-pro' ),
|
48 |
+
WPTOUCH_SETTING_BASIC,
|
49 |
+
'4.0',
|
50 |
+
false,
|
51 |
+
'bncid'
|
52 |
+
)
|
53 |
+
),
|
54 |
+
$page_options
|
55 |
+
);
|
56 |
+
|
57 |
+
return $page_options;
|
58 |
+
}
|
59 |
+
|
60 |
+
function wptouch_render_updates_page( $page_options ) {
|
61 |
+
global $wptouch_pro;
|
62 |
|
63 |
+
if ( $wptouch_pro->theme_upgrades_available() || $wptouch_pro->extension_upgrades_available() ) {
|
64 |
+
$settings = wptouch_get_settings();
|
65 |
+
|
66 |
+
wptouch_add_sub_page( WPTOUCH_ADMIN_UPDATES_AVAILABLE, 'updates-available', $page_options );
|
67 |
+
|
68 |
+
wptouch_add_page_section(
|
69 |
+
WPTOUCH_ADMIN_UPDATES_AVAILABLE,
|
70 |
+
__( 'Updates Available', 'wptouch-pro' ),
|
71 |
+
'updates-available',
|
72 |
+
array(
|
73 |
+
wptouch_add_setting(
|
74 |
+
'updates-available',
|
75 |
+
'theme-extension-updates-available',
|
76 |
+
false,
|
77 |
+
false,
|
78 |
+
WPTOUCH_SETTING_BASIC,
|
79 |
+
'4.0'
|
80 |
+
)
|
81 |
+
),
|
82 |
+
$page_options
|
83 |
+
);
|
84 |
+
}
|
85 |
+
|
86 |
+
return $page_options;
|
87 |
}
|
88 |
|
89 |
function wptouch_render_general_page( $page_options ) {
|
90 |
$settings = wptouch_get_settings();
|
91 |
|
92 |
wptouch_add_sub_page( WPTOUCH_ADMIN_SETUP_GENERAL, 'setup-general-general', $page_options );
|
|
|
93 |
|
94 |
+
wptouch_add_page_section(
|
95 |
+
WPTOUCH_ADMIN_SETUP_GENERAL,
|
96 |
+
__( 'Mobile Site Title', 'wptouch-pro' ),
|
97 |
+
'mobile-site-title',
|
98 |
+
array(
|
99 |
+
wptouch_add_setting(
|
100 |
+
'text',
|
101 |
+
'site_title',
|
102 |
+
wptouchize_it( __( 'WPtouch Pro site title', 'wptouch-pro' ) ),
|
103 |
+
false,
|
104 |
+
WPTOUCH_SETTING_BASIC,
|
105 |
+
'3.0'
|
106 |
+
),
|
107 |
+
),
|
108 |
+
$page_options,
|
109 |
+
'wptouch_pro',
|
110 |
+
false,
|
111 |
+
false
|
112 |
+
);
|
113 |
+
|
114 |
+
if ( defined( 'WPTOUCH_IS_FREE' ) ){
|
115 |
+
$display_text = wptouchize_it( __( 'If disabled WPtouch Pro will be off for visitors but can be configured.' , 'wptouch-pro' ) );
|
116 |
+
} else {
|
117 |
+
$display_text = wptouchize_it( __( 'If disabled WPtouch Pro will be off for visitors but can be configured in the Customizer.' , 'wptouch-pro' ) );
|
118 |
+
}
|
119 |
+
|
120 |
+
wptouch_add_page_section(
|
121 |
+
WPTOUCH_ADMIN_SETUP_GENERAL,
|
122 |
+
__( 'Display', 'wptouch-pro' ),
|
123 |
+
'filtered-urls-compatibility',
|
124 |
+
array(
|
125 |
+
wptouch_add_setting(
|
126 |
+
'checkbox',
|
127 |
+
'new_display_mode',
|
128 |
+
wptouchize_it( __( 'Display WPtouch Pro for mobile visitors', 'wptouch-pro' ) ),
|
129 |
+
$display_text,
|
130 |
+
WPTOUCH_SETTING_BASIC,
|
131 |
+
'3.1'
|
132 |
+
),
|
133 |
+
wptouch_add_pro_setting(
|
134 |
+
'list',
|
135 |
+
'url_filter_behaviour',
|
136 |
+
__( 'URL filtering' , 'wptouch-pro' ),
|
137 |
+
false,
|
138 |
+
WPTOUCH_SETTING_BASIC,
|
139 |
+
'3.5.3',
|
140 |
+
array(
|
141 |
+
'disabled' => wptouchize_it( __( 'Show WPtouch Pro for all URLs' , 'wptouch-pro' ) ),
|
142 |
+
'exclude_urls' => wptouchize_it( __( 'Exclude WPtouch Pro on these URLs', 'wptouch-pro' ) ),
|
143 |
+
'exclusive_urls' => wptouchize_it( __( 'Only show WPtouch Pro on these URLs', 'wptouch-pro' ) )
|
144 |
+
)
|
145 |
+
),
|
146 |
+
wptouch_add_pro_setting(
|
147 |
+
'multiline-newline',
|
148 |
+
'filtered_urls',
|
149 |
+
__( 'Apply filter to these URLs/Pages', 'wptouch-pro' ),
|
150 |
+
'e.g. "/about", "/products/store"',
|
151 |
+
WPTOUCH_SETTING_BASIC,
|
152 |
+
'3.5.3'
|
153 |
+
),
|
154 |
+
wptouch_add_pro_setting(
|
155 |
+
'checkbox',
|
156 |
+
'filtered_urls_exact',
|
157 |
+
__( 'Require exact match', 'wptouch-pro' ),
|
158 |
+
false,
|
159 |
+
WPTOUCH_SETTING_BASIC,
|
160 |
+
'3.5.3'
|
161 |
+
)
|
162 |
+
),
|
163 |
+
$page_options
|
164 |
+
);
|
165 |
+
|
166 |
+
$landing_settings = array(
|
167 |
+
wptouch_add_setting(
|
168 |
+
'list',
|
169 |
+
'homepage_landing',
|
170 |
+
__( 'Mobile front page', 'wptouch-pro' ),
|
171 |
+
wptouchize_it( __( 'You can set a different front page for WPtouch Pro visitors.', 'wptouch-pro' ) ),
|
172 |
+
WPTOUCH_SETTING_BASIC,
|
173 |
+
'3.0',
|
174 |
+
array(
|
175 |
+
'none' => __( 'WordPress Reading Settings', 'wptouch-pro' ),
|
176 |
+
'select' => __( 'Redirect to a page', 'wptouch-pro' ),
|
177 |
+
'custom' => _x( 'Redirect to a custom URL', 'Refers to a custom landing page', 'wptouch-pro' )
|
178 |
+
)
|
179 |
+
),
|
180 |
wptouch_add_setting(
|
181 |
'text',
|
182 |
+
'homepage_redirect_custom_target',
|
183 |
+
__( 'Custom Slug or URL', 'wptouch-pro' ),
|
184 |
+
__( 'Enter a Slug (i.e. "/home") or a full URL path', 'wptouch-pro' ),
|
185 |
WPTOUCH_SETTING_BASIC,
|
186 |
'3.0'
|
187 |
),
|
188 |
wptouch_add_setting(
|
189 |
+
'redirect',
|
190 |
+
'homepage_redirect_wp_target',
|
191 |
+
false,
|
192 |
+
false,
|
193 |
WPTOUCH_SETTING_BASIC,
|
194 |
'3.0'
|
195 |
)
|
196 |
);
|
197 |
|
198 |
+
$landing_settings = apply_filters( 'foundation_settings_pages', $landing_settings );
|
199 |
+
|
200 |
wptouch_add_page_section(
|
201 |
WPTOUCH_ADMIN_SETUP_GENERAL,
|
202 |
+
__( 'Landing Pages', 'wptouch-pro' ),
|
203 |
+
'setup-landing-page',
|
204 |
+
$landing_settings,
|
205 |
+
$page_options,
|
206 |
+
'wptouch_pro'
|
207 |
);
|
208 |
|
|
|
209 |
wptouch_add_page_section(
|
210 |
WPTOUCH_ADMIN_SETUP_GENERAL,
|
211 |
+
__( 'Desktop / Mobile Switching', 'wptouch-pro' ),
|
212 |
+
'setup-general',
|
213 |
array(
|
214 |
+
wptouch_add_pro_setting(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
215 |
'checkbox',
|
216 |
+
'show_switch_link',
|
217 |
+
_x( 'Theme switch toggle', 'switches between desktop and mobile themes', 'wptouch-pro' ),
|
218 |
+
false,
|
219 |
+
WPTOUCH_SETTING_BASIC,
|
220 |
+
'4.0'
|
221 |
+
),
|
222 |
),
|
223 |
+
$page_options,
|
224 |
+
'wptouch-pro',
|
225 |
+
false,
|
226 |
+
__( 'Shows a toggle in both the desktop mobile theme footers allowing users to switch between them.', 'wptouch-pro' )
|
227 |
);
|
228 |
|
229 |
wptouch_add_page_section(
|
230 |
WPTOUCH_ADMIN_SETUP_GENERAL,
|
231 |
+
__( 'Page Zoom', 'wptouch-pro' ),
|
232 |
+
'foundation-zoom',
|
233 |
+
array(
|
234 |
+
wptouch_add_setting(
|
235 |
+
'checkbox',
|
236 |
+
'allow_zoom',
|
237 |
+
__( 'Allow mobile browser zooming', 'wptouch-pro' ),
|
238 |
+
wptouchize_it( __( 'By default WPtouch Pro disables browser zooming.' ) ),
|
239 |
+
WPTOUCH_SETTING_BASIC,
|
240 |
+
'2.0'
|
241 |
+
)
|
242 |
+
),
|
243 |
+
$page_options,
|
244 |
+
FOUNDATION_SETTING_DOMAIN
|
245 |
+
);
|
246 |
+
|
247 |
+
wptouch_add_page_section(
|
248 |
+
WPTOUCH_ADMIN_SETUP_GENERAL,
|
249 |
+
__( 'Smart App Banner', 'wptouch-pro' ),
|
250 |
+
'foundation-smart-app-banner',
|
251 |
array(
|
252 |
+
wptouch_add_pro_setting(
|
253 |
+
'text',
|
254 |
+
'smart_app_banner',
|
255 |
+
'App Store ID',
|
256 |
+
false,
|
257 |
WPTOUCH_SETTING_BASIC,
|
258 |
+
'2.0'
|
259 |
+
),
|
|
|
|
|
|
|
|
|
|
|
260 |
),
|
261 |
+
$page_options,
|
262 |
+
FOUNDATION_SETTING_DOMAIN,
|
263 |
+
false,
|
264 |
+
sprintf( __( 'Find your ID from the %siTunes Link Maker%s.', 'wptouch-pro' ), '<a href="http://itunes.apple.com/linkmaker/" target="_blank">', '</a>' )
|
265 |
);
|
266 |
|
267 |
wptouch_add_page_section(
|
268 |
WPTOUCH_ADMIN_SETUP_GENERAL,
|
269 |
+
__( 'Analytics', 'wptouch-pro' ),
|
270 |
+
'setup-custom-code',
|
271 |
array(
|
272 |
+
wptouch_add_pro_setting(
|
273 |
+
'list',
|
274 |
+
'analytics_embed_method',
|
275 |
+
__( 'Analytics Code', 'wptouch-pro' ),
|
276 |
+
false,
|
277 |
WPTOUCH_SETTING_BASIC,
|
278 |
+
'4.0',
|
279 |
array(
|
280 |
+
'disabled' => __( 'None', 'wptouch-pro' ),
|
281 |
+
'simple' => 'Google Analytics',
|
282 |
+
'custom' => __( 'Custom', 'wptouch-pro' )
|
283 |
)
|
284 |
),
|
285 |
+
|
286 |
+
wptouch_add_pro_setting(
|
287 |
'text',
|
288 |
+
'analytics_google_id',
|
289 |
+
__( 'Site ID', 'wptouch-pro' ),
|
290 |
+
false,
|
291 |
WPTOUCH_SETTING_BASIC,
|
292 |
'3.0'
|
293 |
),
|
294 |
+
|
295 |
+
wptouch_add_pro_setting(
|
296 |
+
'textarea',
|
297 |
+
'custom_stats_code',
|
298 |
+
false,
|
299 |
+
false,
|
300 |
+
WPTOUCH_SETTING_BASIC,
|
301 |
+
'3.0'
|
302 |
+
)
|
303 |
),
|
304 |
+
$page_options,
|
305 |
+
'wptouch_pro'
|
306 |
);
|
307 |
|
308 |
wptouch_add_page_section(
|
309 |
WPTOUCH_ADMIN_SETUP_GENERAL,
|
310 |
+
wptouchize_it( __( 'WPtouch Pro Love', 'wptouch-pro' ) ),
|
311 |
+
'setup-powered-by',
|
312 |
array(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
313 |
wptouch_add_setting(
|
314 |
'checkbox',
|
315 |
+
'show_wptouch_in_footer',
|
316 |
+
wptouchize_it( __( 'Show powered by WPtouch Pro link in theme footer', 'wptouch-pro' ) ),
|
317 |
+
false,
|
318 |
+
WPTOUCH_SETTING_BASIC,
|
319 |
'3.0'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
320 |
)
|
321 |
),
|
322 |
+
$page_options,
|
323 |
+
'wptouch_pro'
|
324 |
);
|
325 |
|
326 |
wptouch_add_page_section(
|
327 |
WPTOUCH_ADMIN_SETUP_GENERAL,
|
328 |
+
__( 'Language', 'wptouch-pro' ),
|
329 |
+
'setup-regionalization',
|
330 |
array(
|
331 |
wptouch_add_setting(
|
332 |
+
'list',
|
333 |
+
'force_locale',
|
334 |
+
__( 'Theme Language', 'wptouch-pro' ),
|
335 |
+
false,
|
336 |
+
WPTOUCH_SETTING_BASIC,
|
337 |
+
'3.0',
|
338 |
+
wptouch_admin_get_languages()
|
339 |
+
),
|
340 |
+
wptouch_add_setting(
|
341 |
+
'checkbox',
|
342 |
+
'translate_admin',
|
343 |
+
__( 'Also applies to admin', 'wptouch-pro' ),
|
344 |
+
false,
|
345 |
WPTOUCH_SETTING_BASIC,
|
346 |
'3.0'
|
347 |
)
|
348 |
),
|
349 |
+
$page_options,
|
350 |
+
'wptouch_pro'
|
351 |
);
|
352 |
|
353 |
+
|
354 |
+
return $page_options;
|
355 |
+
}
|
356 |
+
|
357 |
+
function wptouch_render_compat_page( $page_options ) {
|
358 |
+
wptouch_add_sub_page( WPTOUCH_ADMIN_SETUP_COMPAT, 'setup-compat', $page_options );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
359 |
|
360 |
wptouch_add_page_section(
|
361 |
WPTOUCH_ADMIN_SETUP_COMPAT,
|
362 |
+
_x( 'Shortcodes', 'shortcodes are pieces of code [like_this] that users can drop into textareas that will convert to longer pieces of code', 'wptouch-pro' ),
|
363 |
'shortcodes-compatibility',
|
364 |
array(
|
365 |
wptouch_add_pro_setting(
|
366 |
'checkbox',
|
367 |
+
'process_desktop_shortcodes',
|
368 |
+
__( 'Process desktop theme shortcodes', 'wptouch-pro' ),
|
369 |
+
false,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
370 |
WPTOUCH_SETTING_BASIC,
|
371 |
+
'3.0'
|
|
|
|
|
|
|
|
|
372 |
),
|
373 |
wptouch_add_pro_setting(
|
374 |
+
'multiline-comma',
|
375 |
'remove_shortcodes',
|
376 |
+
__( 'Filter out shortcodes', 'wptouch-pro' ),
|
377 |
+
wptouchize_it( __( 'Filters out shortcodes from displaying when WPtouch Pro is active.', 'wptouch-pro' ) ),
|
378 |
WPTOUCH_SETTING_BASIC,
|
379 |
'3.0'
|
380 |
)
|
381 |
),
|
382 |
+
$page_options,
|
383 |
+
'wptouch_pro'
|
384 |
);
|
385 |
|
386 |
+
$page_options = apply_filters( 'wptouch_settings_compat', $page_options );
|
387 |
+
|
388 |
wptouch_add_page_section(
|
389 |
WPTOUCH_ADMIN_SETUP_COMPAT,
|
390 |
+
__( 'Active Plugins', 'wptouch-pro' ),
|
391 |
+
'setup-general-plugin-compat',
|
392 |
array(
|
393 |
+
wptouch_add_pro_setting(
|
394 |
+
'custom',
|
395 |
+
'plugin-compat'
|
396 |
+
)
|
397 |
+
),
|
398 |
+
$page_options,
|
399 |
+
'wptouch_pro',
|
400 |
+
false,
|
401 |
+
wptouchize_it( __( 'Attempts to disable plugins for mobile visitors. Some plugins don‘t support this feature due to the way they load in WordPress.', 'wptouch-pro' ) )
|
402 |
+
);
|
403 |
+
|
404 |
+
return $page_options;
|
405 |
+
}
|
406 |
+
|
407 |
+
function wptouch_render_devices_page( $page_options ) {
|
408 |
+
wptouch_add_sub_page( WPTOUCH_ADMIN_SETUP_DEVICES, 'setup-devices', $page_options );
|
409 |
+
|
410 |
+
wptouch_add_page_section(
|
411 |
+
WPTOUCH_ADMIN_SETUP_DEVICES,
|
412 |
+
__( 'Mobile Devices & Browsers', 'wptouch-pro' ),
|
413 |
+
'admin_menu_homescreen_ipad_retina',
|
414 |
+
array(
|
415 |
+
wptouch_add_setting(
|
416 |
'checkbox',
|
417 |
+
'enable_ios_phone',
|
418 |
+
'iOS (iPod, iPhone)',
|
419 |
+
false,
|
420 |
WPTOUCH_SETTING_BASIC,
|
421 |
+
'4.0'
|
422 |
),
|
423 |
+
wptouch_add_setting(
|
424 |
+
'checkbox',
|
425 |
+
'enable_android_phone',
|
426 |
+
'Android Stock & Chrome Browsers',
|
427 |
+
false,
|
428 |
WPTOUCH_SETTING_BASIC,
|
429 |
+
'4.0'
|
|
|
|
|
|
|
|
|
|
|
430 |
),
|
431 |
wptouch_add_setting(
|
432 |
+
'checkbox',
|
433 |
+
'enable_blackberry_phone',
|
434 |
+
'BlackBerry Browser',
|
435 |
+
false,
|
436 |
WPTOUCH_SETTING_BASIC,
|
437 |
+
'4.0'
|
438 |
+
),
|
439 |
+
wptouch_add_setting(
|
440 |
+
'checkbox',
|
441 |
+
'enable_firefox_phone',
|
442 |
+
'Firefox OS & Mobile Browser',
|
443 |
+
false,
|
444 |
WPTOUCH_SETTING_BASIC,
|
445 |
+
'4.0'
|
446 |
+
),
|
447 |
+
wptouch_add_setting(
|
448 |
+
'checkbox',
|
449 |
+
'enable_windows_phone',
|
450 |
+
'Windows Phone (IE)',
|
451 |
+
false,
|
452 |
+
WPTOUCH_SETTING_BASIC,
|
453 |
+
'4.0'
|
454 |
+
),
|
455 |
+
wptouch_add_setting(
|
456 |
+
'checkbox',
|
457 |
+
'enable_opera_phone',
|
458 |
+
'Opera Mobile (Opera on Android/iOS, Opera Mini on iOS, Coast)',
|
459 |
+
false,
|
460 |
+
WPTOUCH_SETTING_BASIC,
|
461 |
+
'4.0'
|
462 |
+
),
|
463 |
),
|
464 |
+
$page_options,
|
465 |
+
'wptouch_pro',
|
466 |
+
false
|
467 |
);
|
468 |
|
469 |
+
if ( apply_filters( 'wptouch_allow_tablets', false ) ) {
|
|
|
470 |
wptouch_add_page_section(
|
471 |
+
WPTOUCH_ADMIN_SETUP_DEVICES,
|
472 |
+
__( 'Tablets', 'wptouch-pro' ),
|
473 |
+
'admin_menu_tablets',
|
474 |
array(
|
475 |
wptouch_add_pro_setting(
|
476 |
'checkbox',
|
477 |
+
'enable_ios_tablet',
|
478 |
+
'iOS (iPad)',
|
479 |
+
false,
|
480 |
+
WPTOUCH_SETTING_BASIC,
|
481 |
+
'4.0'
|
482 |
),
|
483 |
+
wptouch_add_pro_setting(
|
484 |
+
'checkbox',
|
485 |
+
'enable_android_tablet',
|
486 |
+
'Android',
|
487 |
+
false,
|
488 |
+
WPTOUCH_SETTING_BASIC,
|
489 |
+
'4.0'
|
490 |
+
),
|
491 |
+
wptouch_add_pro_setting(
|
492 |
+
'checkbox',
|
493 |
+
'enable_windows_tablet',
|
494 |
+
'Windows Tablet',
|
495 |
+
false,
|
496 |
+
WPTOUCH_SETTING_BASIC,
|
497 |
+
'4.0'
|
498 |
+
),
|
499 |
+
wptouch_add_pro_setting(
|
500 |
+
'checkbox',
|
501 |
+
'enable_kindle_tablet',
|
502 |
+
'Kindle',
|
503 |
+
false,
|
504 |
+
WPTOUCH_SETTING_BASIC,
|
505 |
+
'4.0'
|
506 |
+
),
|
507 |
+
wptouch_add_pro_setting(
|
508 |
+
'checkbox',
|
509 |
+
'enable_blackberry_tablet',
|
510 |
+
'BlackBerry',
|
511 |
+
false,
|
512 |
+
WPTOUCH_SETTING_BASIC,
|
513 |
+
'4.0'
|
514 |
+
),
|
515 |
+
wptouch_add_pro_setting(
|
516 |
+
'checkbox',
|
517 |
+
'enable_webos_tablet',
|
518 |
+
'WebOS',
|
519 |
+
false,
|
520 |
+
WPTOUCH_SETTING_BASIC,
|
521 |
+
'4.0'
|
522 |
+
),
|
523 |
+
),
|
524 |
+
$page_options,
|
525 |
+
'wptouch_pro'
|
526 |
+
);
|
527 |
+
} else {
|
528 |
+
wptouch_add_page_section(
|
529 |
+
WPTOUCH_ADMIN_SETUP_DEVICES,
|
530 |
+
__( 'Tablet Devices & Browsers', 'wptouch-pro' ),
|
531 |
+
'admin_menu_tablets',
|
532 |
+
array(
|
533 |
+
wptouch_add_pro_setting(
|
534 |
+
'custom',
|
535 |
+
'no_tablet_support',
|
536 |
+
false,
|
537 |
+
false,
|
538 |
+
WPTOUCH_SETTING_BASIC,
|
539 |
+
'4.0'
|
540 |
)
|
541 |
),
|
542 |
+
$page_options,
|
543 |
+
'wptouch_pro',
|
544 |
+
false,
|
545 |
+
wptouchize_it( __( 'If your theme supports tablets, devices and browsers WPtouch Pro can be enabled for will be listed below.', 'wptouch-pro' ) )
|
546 |
);
|
547 |
}
|
548 |
|
549 |
wptouch_add_page_section(
|
550 |
+
WPTOUCH_ADMIN_SETUP_DEVICES,
|
551 |
+
__( 'Additional User Agents', 'wptouch-pro' ),
|
552 |
'custom-user-agents',
|
553 |
array(
|
554 |
wptouch_add_setting(
|
555 |
+
'multiline-newline',
|
556 |
'custom_user_agents',
|
557 |
+
__( 'User agents to add', 'wptouch-pro' ),
|
558 |
+
__( 'You can enter partial i.e. "nokia" or full agent strings', 'wptouch-pro' ),
|
559 |
WPTOUCH_SETTING_BASIC,
|
560 |
'3.0'
|
561 |
+
)
|
562 |
+
),
|
563 |
+
$page_options,
|
564 |
+
'wptouch_pro'
|
565 |
+
);
|
566 |
+
|
567 |
+
return $page_options;
|
568 |
+
}
|
569 |
+
|
570 |
+
function wptouch_render_menu_page( $page_options ) {
|
571 |
+
wptouch_add_sub_page( WPTOUCH_ADMIN_MENU_MANAGE_ICON_SETS, 'menu-icons-manage-icon-sets', $page_options );
|
572 |
+
|
573 |
+
wptouch_add_page_section(
|
574 |
+
WPTOUCH_ADMIN_MENU_MANAGE_ICON_SETS,
|
575 |
+
__( 'Menu Setup', 'wptouch-pro' ),
|
576 |
+
'setup-menu-options',
|
577 |
+
array(
|
578 |
wptouch_add_setting(
|
579 |
+
'custom',
|
580 |
+
'menus_in_menus',
|
581 |
+
false,
|
582 |
+
false,
|
583 |
+
WPTOUCH_SETTING_BASIC,
|
584 |
+
'4.0'
|
585 |
)
|
586 |
),
|
587 |
+
$page_options,
|
588 |
+
'wptouch_pro'
|
589 |
);
|
590 |
+
|
591 |
wptouch_add_page_section(
|
592 |
+
WPTOUCH_ADMIN_MENU_MANAGE_ICON_SETS,
|
593 |
+
__( 'Menu Options', 'wptouch-pro' ),
|
594 |
+
'setup-menu-parent-items',
|
595 |
array(
|
596 |
wptouch_add_setting(
|
597 |
'checkbox',
|
598 |
+
'enable_parent_items',
|
599 |
+
__( 'Enable parent items as links', 'wptouch-pro' ),
|
600 |
+
__( 'If disabled, parent menu items will only toggle child items.', 'wptouch-pro' ),
|
601 |
+
WPTOUCH_SETTING_BASIC,
|
602 |
'3.0'
|
603 |
),
|
|
|
604 |
wptouch_add_setting(
|
605 |
'checkbox',
|
606 |
+
'enable_menu_icons',
|
607 |
+
__( 'Use menu icons', 'wptouch-pro' ),
|
608 |
+
__( 'Adds the ability to associate icons with menu items', 'wptouch-pro' ) . ' (in WordPress Appearance->Menus)',
|
609 |
+
WPTOUCH_SETTING_BASIC,
|
610 |
'3.0'
|
611 |
+
)
|
612 |
+
),
|
613 |
+
$page_options,
|
614 |
+
'wptouch_pro'
|
615 |
+
);
|
616 |
+
|
617 |
+
wptouch_add_page_section(
|
618 |
+
WPTOUCH_ADMIN_MENU_MANAGE_ICON_SETS,
|
619 |
+
__( 'Menu Icon Sets', 'wptouch-pro' ),
|
620 |
+
'admin_menu_icon_sets',
|
621 |
+
array(
|
622 |
wptouch_add_setting(
|
623 |
+
'custom',
|
624 |
+
'installed_icon_sets'
|
625 |
+
)
|
|
|
|
|
|
|
|
|
|
|
626 |
),
|
627 |
$page_options
|
628 |
+
);
|
629 |
|
630 |
wptouch_add_page_section(
|
631 |
+
WPTOUCH_ADMIN_MENU_MANAGE_ICON_SETS,
|
632 |
+
__( 'Custom Icons', 'wptouch-pro' ),
|
633 |
+
'admin_menu_icon_upload',
|
634 |
array(
|
635 |
+
wptouch_add_setting(
|
636 |
+
'custom',
|
637 |
+
'custom_icon_upload'
|
|
|
|
|
|
|
|
|
|
|
638 |
),
|
639 |
+
wptouch_add_setting(
|
640 |
+
'custom',
|
641 |
+
'custom_icon_management'
|
642 |
+
)
|
643 |
),
|
644 |
$page_options
|
645 |
);
|
646 |
|
647 |
+
return $page_options;
|
648 |
+
}
|
649 |
+
|
650 |
+
function wptouch_add_custom_menus( $menu_array ) {
|
651 |
+
$menus = get_terms( 'nav_menu', array( 'hide_empty' => false ) );
|
652 |
+
foreach( $menus as $key => $menu ) {
|
653 |
+
$menu_array[ $menu->term_id ] = $menu->name;
|
654 |
+
}
|
655 |
+
|
656 |
+
return $menu_array;
|
657 |
+
}
|
658 |
+
|
659 |
+
function wptouch_get_custom_menu_list( $include_wp_pages = true, $include_none = false ) {
|
660 |
+
$custom_menu = array();
|
661 |
+
|
662 |
+
if ( $include_wp_pages ) {
|
663 |
+
$custom_menu[ 'wp' ] = __( 'WordPress Pages', 'wptouch-pro' );
|
664 |
+
}
|
665 |
+
|
666 |
+
$custom_menu = wptouch_add_custom_menus( $custom_menu );
|
667 |
+
|
668 |
+
if ( $include_none ) {
|
669 |
+
$custom_menu[ 'none' ] = __( 'None', 'wptouch-pro' );
|
670 |
+
}
|
671 |
+
|
672 |
+
return $custom_menu;
|
673 |
+
}
|
674 |
+
|
675 |
+
function wptouch_render_theme_customize_page( $page_options ) {
|
676 |
+
|
677 |
+
wptouch_add_sub_page( WPTOUCH_PRO_ADMIN_THEME_CUSTOMIZING, 'foundation-page-theme-customizer', $page_options );
|
678 |
|
679 |
wptouch_add_page_section(
|
680 |
+
WPTOUCH_PRO_ADMIN_THEME_CUSTOMIZING,
|
681 |
+
__( 'Customize Theme', 'wptouch-pro' ),
|
682 |
+
'handle-themes',
|
683 |
array(
|
684 |
+
wptouch_add_setting(
|
685 |
'custom',
|
686 |
+
'customizing_in_customizer'
|
687 |
)
|
688 |
),
|
689 |
$page_options
|
690 |
);
|
691 |
|
692 |
+
return $page_options;
|
693 |
+
}
|
694 |
+
|
695 |
+
function wptouch_render_theme_gopro_page( $page_options ) {
|
696 |
+
|
697 |
+
wptouch_add_sub_page( WPTOUCH_PRO_ADMIN_THEME_GOPRO, 'foundation-page-theme-gopro', $page_options );
|
698 |
+
|
699 |
wptouch_add_page_section(
|
700 |
+
WPTOUCH_PRO_ADMIN_THEME_GOPRO,
|
701 |
+
__( 'Go Pro', 'wptouch-pro' ),
|
702 |
+
'handle-gopro',
|
703 |
array(
|
704 |
wptouch_add_setting(
|
705 |
+
'custom',
|
706 |
+
'gopro'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
707 |
)
|
708 |
),
|
709 |
$page_options
|
710 |
);
|
711 |
+
|
712 |
return $page_options;
|
713 |
}
|
714 |
+
|
715 |
+
function wptouch_render_themes( $page_options ) {
|
716 |
+
|
717 |
+
require_once( WPTOUCH_DIR . '/core/admin-themes.php' );
|
718 |
+
|
719 |
+
wptouch_add_sub_page( WPTOUCH_PRO_ADMIN_THEMES, 'setup-themes-browser', $page_options );
|
720 |
+
|
721 |
+
wptouch_add_page_section(
|
722 |
+
WPTOUCH_PRO_ADMIN_THEMES,
|
723 |
+
false,
|
724 |
+
'handle-themes',
|
725 |
+
array(
|
726 |
+
wptouch_add_setting(
|
727 |
+
'custom',
|
728 |
+
'theme-browser'
|
729 |
+
)
|
730 |
+
),
|
731 |
+
$page_options
|
732 |
+
);
|
733 |
+
|
734 |
+
return $page_options;
|
735 |
+
}
|
736 |
+
|
737 |
+
function wptouch_render_addons( $page_options ) {
|
738 |
+
require_once( WPTOUCH_DIR . '/core/admin-extensions.php' );
|
739 |
+
|
740 |
+
wptouch_add_sub_page( WPTOUCH_PRO_ADMIN_ADDONS, 'setup-addons-browser', $page_options );
|
741 |
+
|
742 |
+
wptouch_add_page_section(
|
743 |
+
WPTOUCH_PRO_ADMIN_ADDONS,
|
744 |
+
false,
|
745 |
+
'handle-addons',
|
746 |
+
array(
|
747 |
+
wptouch_add_setting(
|
748 |
+
'custom',
|
749 |
+
'extension-browser'
|
750 |
+
)
|
751 |
+
),
|
752 |
+
$page_options
|
753 |
+
);
|
754 |
+
|
755 |
+
return $page_options;
|
756 |
+
}
|
757 |
+
|
758 |
+
function wptouch_render_addon_settings( $page_options ) {
|
759 |
+
$page_options = apply_filters( 'wptouch_addon_options', $page_options );
|
760 |
+
return $page_options;
|
761 |
+
}
|
admin/pages/wptouch-admin-menus.php
DELETED
@@ -1,142 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
define( 'WPTOUCH_ADMIN_MENU_ICONS_OPTIONS', __( 'Theme Menus', 'wptouch-pro' ) );
|
4 |
-
define( 'WPTOUCH_ADMIN_MENU_ICONS_MENUS', __( 'Menu Icons', 'wptouch-pro' ) );
|
5 |
-
define( 'WPTOUCH_ADMIN_MENU_MANAGE_ICON_SETS', __( 'Icon Upload & Sets', 'wptouch-pro' ) );
|
6 |
-
|
7 |
-
add_filter( 'wptouch_admin_page_render_wptouch-admin-menus', 'wptouch_render_menu_page' );
|
8 |
-
|
9 |
-
function wptouch_add_custom_menus( $menu_array ) {
|
10 |
-
$menus = get_terms( 'nav_menu', array( 'hide_empty' => false ) );
|
11 |
-
foreach( $menus as $key => $menu ) {
|
12 |
-
$menu_array[ $menu->term_id ] = $menu->name;
|
13 |
-
}
|
14 |
-
|
15 |
-
return $menu_array;
|
16 |
-
}
|
17 |
-
|
18 |
-
function wptouch_get_custom_menu_list( $include_wp_pages = true, $include_none = false ) {
|
19 |
-
$custom_menu = array();
|
20 |
-
|
21 |
-
if ( $include_wp_pages ) {
|
22 |
-
$custom_menu[ 'wp' ] = __( 'WordPress Pages', 'wptouch-pro' );
|
23 |
-
}
|
24 |
-
|
25 |
-
$custom_menu = wptouch_add_custom_menus( $custom_menu );
|
26 |
-
|
27 |
-
if ( $include_none ) {
|
28 |
-
$custom_menu[ 'none' ] = __( 'None', 'wptouch-pro' );
|
29 |
-
}
|
30 |
-
|
31 |
-
return $custom_menu;
|
32 |
-
}
|
33 |
-
|
34 |
-
function wptouch_render_menu_page( $page_options ) {
|
35 |
-
wptouch_add_sub_page( WPTOUCH_ADMIN_MENU_ICONS_OPTIONS, 'menu-icons-options', $page_options );
|
36 |
-
wptouch_add_sub_page( WPTOUCH_ADMIN_MENU_ICONS_MENUS, 'menu-icons-menus', $page_options );
|
37 |
-
wptouch_add_sub_page( WPTOUCH_ADMIN_MENU_MANAGE_ICON_SETS, 'menu-icons-manage-icon-sets', $page_options );
|
38 |
-
|
39 |
-
global $wptouch_pro;
|
40 |
-
$theme_menus = $wptouch_pro->theme_menus;
|
41 |
-
if ( count( $theme_menus ) ) {
|
42 |
-
foreach( $theme_menus as $menu ) {
|
43 |
-
wptouch_add_page_section(
|
44 |
-
WPTOUCH_ADMIN_MENU_ICONS_OPTIONS,
|
45 |
-
$menu->friendly_name,
|
46 |
-
'setup-menu-icons-' . $menu->setting_name,
|
47 |
-
array(
|
48 |
-
wptouch_add_setting(
|
49 |
-
'list',
|
50 |
-
$menu->setting_name,
|
51 |
-
$menu->description,
|
52 |
-
$menu->tooltip,
|
53 |
-
WPTOUCH_SETTING_BASIC,
|
54 |
-
'3.0',
|
55 |
-
wptouch_get_custom_menu_list( true, $menu->can_be_disabled )
|
56 |
-
)
|
57 |
-
),
|
58 |
-
$page_options,
|
59 |
-
$menu->settings_domain
|
60 |
-
);
|
61 |
-
}
|
62 |
-
}
|
63 |
-
|
64 |
-
wptouch_add_page_section(
|
65 |
-
WPTOUCH_ADMIN_MENU_ICONS_OPTIONS,
|
66 |
-
__( 'Menu Options', 'wptouch-pro' ),
|
67 |
-
'setup-menu-parent-items',
|
68 |
-
array(
|
69 |
-
wptouch_add_setting(
|
70 |
-
'checkbox',
|
71 |
-
'enable_parent_items',
|
72 |
-
__( 'Enable parent items as links', 'wptouch-pro' ),
|
73 |
-
__( 'If disabled, parent menu items will only toggle child items.', 'wptouch-pro' ),
|
74 |
-
WPTOUCH_SETTING_BASIC,
|
75 |
-
'3.7.8'
|
76 |
-
),
|
77 |
-
wptouch_add_setting(
|
78 |
-
'checkbox',
|
79 |
-
'enable_menu_icons',
|
80 |
-
__( 'Use menu icons', 'wptouch-pro' ),
|
81 |
-
'',
|
82 |
-
WPTOUCH_SETTING_ADVANCED,
|
83 |
-
'3.0'
|
84 |
-
)
|
85 |
-
),
|
86 |
-
$page_options
|
87 |
-
);
|
88 |
-
|
89 |
-
wptouch_add_page_section(
|
90 |
-
WPTOUCH_ADMIN_MENU_ICONS_MENUS,
|
91 |
-
'',
|
92 |
-
'admin_menu_icons_menus',
|
93 |
-
array(
|
94 |
-
wptouch_add_setting(
|
95 |
-
'custom',
|
96 |
-
'icon_menu_area'
|
97 |
-
)
|
98 |
-
),
|
99 |
-
$page_options
|
100 |
-
);
|
101 |
-
|
102 |
-
wptouch_add_page_section(
|
103 |
-
WPTOUCH_ADMIN_MENU_MANAGE_ICON_SETS,
|
104 |
-
__( 'Icon Upload', 'wptouch-pro' ),
|
105 |
-
'admin_menu_icon_upload',
|
106 |
-
array(
|
107 |
-
wptouch_add_setting(
|
108 |
-
'custom',
|
109 |
-
'custom_icon_upload'
|
110 |
-
)
|
111 |
-
),
|
112 |
-
$page_options
|
113 |
-
);
|
114 |
-
|
115 |
-
wptouch_add_page_section(
|
116 |
-
WPTOUCH_ADMIN_MENU_MANAGE_ICON_SETS,
|
117 |
-
__( 'Uploaded Icons', 'wptouch-pro' ),
|
118 |
-
'uploaded-icons',
|
119 |
-
array(
|
120 |
-
wptouch_add_setting(
|
121 |
-
'custom',
|
122 |
-
'custom_icon_management'
|
123 |
-
)
|
124 |
-
),
|
125 |
-
$page_options
|
126 |
-
);
|
127 |
-
|
128 |
-
wptouch_add_page_section(
|
129 |
-
WPTOUCH_ADMIN_MENU_MANAGE_ICON_SETS,
|
130 |
-
__( 'Icon Sets', 'wptouch-pro' ),
|
131 |
-
'admin_menu_icon_sets',
|
132 |
-
array(
|
133 |
-
wptouch_add_setting(
|
134 |
-
'custom',
|
135 |
-
'installed_icon_sets'
|
136 |
-
)
|
137 |
-
),
|
138 |
-
$page_options
|
139 |
-
);
|
140 |
-
|
141 |
-
return $page_options;
|
142 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/pages/wptouch-admin-themes-and-addons.php
DELETED
@@ -1,57 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
define( 'WPTOUCH_PRO_ADMIN_THEMES', __( 'Themes', 'wptouch-pro' ) );
|
4 |
-
define( 'WPTOUCH_PRO_ADMIN_ADDONS', __( 'Extensions', 'wptouch-pro' ) );
|
5 |
-
|
6 |
-
add_filter( 'wptouch_admin_page_render_wptouch-admin-themes-and-addons', 'wptouch_render_themes', 1 );
|
7 |
-
add_filter( 'wptouch_admin_page_render_wptouch-admin-themes-and-addons', 'wptouch_render_addons', 1 );
|
8 |
-
|
9 |
-
function wptouch_render_themes( $page_options ) {
|
10 |
-
require_once( WPTOUCH_DIR . '/core/admin-themes.php' );
|
11 |
-
|
12 |
-
wptouch_add_sub_page( WPTOUCH_PRO_ADMIN_THEMES, 'setup-themes-browser', $page_options );
|
13 |
-
|
14 |
-
wptouch_add_page_section(
|
15 |
-
WPTOUCH_PRO_ADMIN_THEMES,
|
16 |
-
'',
|
17 |
-
'handle-themes',
|
18 |
-
array(
|
19 |
-
wptouch_add_setting(
|
20 |
-
'custom',
|
21 |
-
'theme-browser',
|
22 |
-
'',
|
23 |
-
'',
|
24 |
-
WPTOUCH_SETTING_BASIC,
|
25 |
-
'3.1'
|
26 |
-
)
|
27 |
-
),
|
28 |
-
$page_options
|
29 |
-
);
|
30 |
-
|
31 |
-
return $page_options;
|
32 |
-
}
|
33 |
-
|
34 |
-
function wptouch_render_addons( $page_options ) {
|
35 |
-
require_once( WPTOUCH_DIR . '/core/admin-extensions.php' );
|
36 |
-
|
37 |
-
wptouch_add_sub_page( WPTOUCH_PRO_ADMIN_ADDONS, 'setup-addons-browser', $page_options );
|
38 |
-
|
39 |
-
wptouch_add_page_section(
|
40 |
-
WPTOUCH_PRO_ADMIN_ADDONS,
|
41 |
-
'',
|
42 |
-
'handle-addons',
|
43 |
-
array(
|
44 |
-
wptouch_add_setting(
|
45 |
-
'custom',
|
46 |
-
'extension-browser',
|
47 |
-
'',
|
48 |
-
'',
|
49 |
-
WPTOUCH_SETTING_BASIC,
|
50 |
-
'3.1'
|
51 |
-
)
|
52 |
-
),
|
53 |
-
$page_options
|
54 |
-
);
|
55 |
-
|
56 |
-
return $page_options;
|
57 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/pages/wptouch-admin-touchboard.php
DELETED
@@ -1,24 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
define( 'WPTOUCH_ADMIN_MENU_TOUCHBOARD', __( 'What\'s New', 'wptouch-pro' ) );
|
4 |
-
|
5 |
-
add_filter( 'wptouch_admin_page_render_wptouch-admin-touchboard', 'wptouch_render_menu_touchboard' );
|
6 |
-
|
7 |
-
function wptouch_render_menu_touchboard( $page_options ) {
|
8 |
-
wptouch_add_sub_page( WPTOUCH_ADMIN_MENU_TOUCHBOARD, 'menu-touchboard', $page_options );
|
9 |
-
|
10 |
-
wptouch_add_page_section(
|
11 |
-
WPTOUCH_ADMIN_MENU_TOUCHBOARD,
|
12 |
-
'',
|
13 |
-
'admin_menu_touchboard_area',
|
14 |
-
array(
|
15 |
-
wptouch_add_setting(
|
16 |
-
'custom',
|
17 |
-
'touchboard'
|
18 |
-
)
|
19 |
-
),
|
20 |
-
$page_options
|
21 |
-
);
|
22 |
-
|
23 |
-
return $page_options;
|
24 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/settings/html/backup.php
DELETED
@@ -1,4 +0,0 @@
|
|
1 |
-
<button class="button-secondary" name="<?php wptouch_admin_the_encoded_setting_name(); ?>" id="backup"><?php _e( 'Download Backup File', 'wptouch-pro' ); ?></button>
|
2 |
-
<button class="button-secondary" name="<?php wptouch_admin_the_encoded_setting_name(); ?>" id="restore"><?php _e( 'Restore Backup File', 'wptouch-pro' ); ?></button>
|
3 |
-
<div id="restore_uploader" style="display: none;"></div>
|
4 |
-
<input type="hidden" name="hid-<?php wptouch_admin_the_encoded_setting_name(); ?>" />
|
|
|
|
|
|
|
|
admin/settings/html/button.php
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
-
<a class="button
|
2 |
<?php if ( wptouch_admin_setting_has_tooltip() ) { ?>
|
3 |
-
<i class="wptouch-tooltip
|
|
|
|
|
|
|
4 |
<?php } ?>
|
5 |
-
<?php if ( wptouch_admin_get_setting_level() == WPTOUCH_SETTING_ADVANCED ) { ?> <span class="advanced"><?php _e( 'Advanced', 'wptouch-pro' ); ?></span><?php } ?>
|
6 |
-
<?php if ( wptouch_admin_is_setting_new() ) { ?> <span class="new"><?php _e( 'New', 'wptouch-pro' ); ?></span><?php } ?>
|
1 |
+
<a class="button" id="<?php wptouch_admin_the_setting_name(); ?>"><?php wptouch_admin_the_setting_desc(); ?></a>
|
2 |
<?php if ( wptouch_admin_setting_has_tooltip() ) { ?>
|
3 |
+
<i class="wptouch-tooltip" title="<?php wptouch_admin_the_setting_tooltip(); ?>"></i>
|
4 |
+
<?php } ?>
|
5 |
+
<?php if ( wptouch_admin_is_setting_new() ) { ?>
|
6 |
+
<span class="new"> <?php _e( 'New', 'wptouch-pro' ); ?></span>
|
7 |
<?php } ?>
|
|
|
|
admin/settings/html/checkbox.php
CHANGED
@@ -1,9 +1,13 @@
|
|
1 |
-
<
|
2 |
-
|
3 |
-
<?php if (
|
4 |
-
|
5 |
-
<?php } ?>
|
6 |
-
<?php if (
|
7 |
-
|
8 |
-
<?php
|
9 |
-
|
|
|
|
|
|
|
|
1 |
+
<div class="checkbox-wrap">
|
2 |
+
<?php wptouch_admin_the_setting_desc(); ?>
|
3 |
+
<?php if ( wptouch_admin_is_setting_new() ) { ?>
|
4 |
+
<span class="new"> <?php _e( 'New', 'wptouch-pro' ); ?></span>
|
5 |
+
<?php } ?>
|
6 |
+
<?php if ( wptouch_admin_setting_has_tooltip() ) { ?>
|
7 |
+
<i class="wptouch-tooltip" title="<?php wptouch_admin_the_setting_tooltip(); ?>"></i>
|
8 |
+
<?php } ?>
|
9 |
+
|
10 |
+
<input type="hidden" name="hid-<?php wptouch_admin_the_encoded_setting_name(); ?>" value="hide" />
|
11 |
+
<input type="checkbox" class="checkbox" name="<?php wptouch_admin_the_encoded_setting_name(); ?>" id="<?php wptouch_admin_the_setting_name(); ?>"<?php if ( wptouch_admin_is_setting_checked() ) echo " checked"; ?> />
|
12 |
+
<label for="<?php wptouch_admin_the_setting_name(); ?>"></label>
|
13 |
+
</div>
|
admin/settings/html/checklist.php
CHANGED
@@ -1,25 +1,12 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
<?php
|
11 |
-
|
12 |
-
<?php } ?>
|
13 |
-
<?php if ( wptouch_admin_get_setting_level() == WPTOUCH_SETTING_ADVANCED ) { ?> <span class="advanced"><?php _e( 'Advanced', 'wptouch-pro' ); ?></span><?php } ?>
|
14 |
-
<?php if ( wptouch_admin_is_setting_new() ) { ?>
|
15 |
-
<span class="new"><?php _e( 'New', 'wptouch-pro' ); ?></span>
|
16 |
-
<?php } ?>
|
17 |
-
<?php include( WPTOUCH_DIR . '/include/html/pro.php' ); ?>
|
18 |
-
|
19 |
-
<?php while ( wptouch_admin_has_list_options() ) { ?>
|
20 |
-
<?php wptouch_admin_the_list_option(); ?>
|
21 |
-
|
22 |
-
<p><input type="checkbox" id="<?php wptouch_admin_the_setting_name(); ?>-<?php wptouch_admin_the_list_option_key(); ?>" name="<?php wptouch_admin_the_encoded_setting_name(); ?>[]" value="<?php wptouch_admin_the_list_option_key(); ?>"<?php if ( wptouch_admin_is_checklist_option_selected() ) echo " checked"; ?>> <label for="<?php wptouch_admin_the_setting_name(); ?>-<?php wptouch_admin_the_list_option_key(); ?>"><?php wptouch_admin_the_list_option_desc(); ?></label></p>
|
23 |
-
<?php } ?>
|
24 |
-
<input type="hidden" name="checklist-<?php wptouch_admin_the_setting_name(); ?>" value="1">
|
25 |
-
</div>
|
1 |
+
<?php while ( wptouch_admin_has_list_options() ) { ?>
|
2 |
+
<div class="checkbox-wrap">
|
3 |
+
<?php wptouch_admin_the_list_option(); ?>
|
4 |
+
<?php wptouch_admin_the_list_option_desc(); ?>
|
5 |
+
<?php if ( wptouch_admin_is_setting_new() ) { ?>
|
6 |
+
<span class="new"> <?php _e( 'New', 'wptouch-pro' ); ?></span>
|
7 |
+
<?php } ?>
|
8 |
+
<input type="hidden" name="checklist-<?php wptouch_admin_the_setting_name(); ?>" value="1">
|
9 |
+
<input type="checkbox" class="checkbox" id="<?php wptouch_admin_the_setting_name(); ?>-<?php wptouch_admin_the_list_option_key(); ?>" name="<?php wptouch_admin_the_encoded_setting_name(); ?>[]" value="<?php wptouch_admin_the_list_option_key(); ?>"<?php if ( wptouch_admin_is_checklist_option_selected() ) echo " checked"; ?>>
|
10 |
+
<label for="<?php wptouch_admin_the_setting_name(); ?>-<?php wptouch_admin_the_list_option_key(); ?>"></label>
|
11 |
+
</div>
|
12 |
+
<?php } ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/settings/html/color.php
CHANGED
@@ -1,25 +1,13 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
<?php } ?>
|
15 |
-
</ul>
|
16 |
-
<?php } ?>
|
17 |
-
<ul class="palette">
|
18 |
-
<li>
|
19 |
-
<div class="colorpicker" id="color-<?php wptouch_admin_the_encoded_setting_name(); ?>" data-target="<?php wptouch_admin_the_encoded_setting_name(); ?>"></div>
|
20 |
-
<input type="text" id="<?php wptouch_admin_the_encoded_setting_name(); ?>" class="selected-color <?php wptouch_admin_the_encoded_setting_name(); ?>" name="<?php wptouch_admin_the_encoded_setting_name(); ?>" value="<?php wptouch_admin_the_setting_value(); ?>" />
|
21 |
-
</li>
|
22 |
-
</ul>
|
23 |
-
</ul><!-- dropdown-menu -->
|
24 |
-
</div><!-- dropdown -->
|
25 |
-
</div><!-- fdn-colors -->
|
1 |
+
<?php wptouch_admin_the_setting_desc(); ?>
|
2 |
+
|
3 |
+
<?php if ( wptouch_admin_setting_has_tooltip() ) { ?>
|
4 |
+
<i class="wptouch-tooltip" title="<?php wptouch_admin_the_setting_tooltip(); ?>"></i>
|
5 |
+
<?php } ?>
|
6 |
+
|
7 |
+
<?php if ( wptouch_admin_is_setting_new() ) { ?>
|
8 |
+
<span class="new"> <?php _e( 'New', 'wptouch-pro' ); ?></span>
|
9 |
+
<?php } ?>
|
10 |
+
|
11 |
+
<?php $colors = json_encode( wptouch_get_desktop_theme_colors() ); ?>
|
12 |
+
|
13 |
+
<input type="text" autocomplete="off" class="wptouch-color" data-desktop-palette='<?php echo $colors; ?>' id="<?php wptouch_admin_the_setting_name(); ?>" name="<?php wptouch_admin_the_encoded_setting_name(); ?>" value="<?php wptouch_admin_the_setting_value(); ?>" placeholder="" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/settings/html/custom-latest-posts.php
CHANGED
@@ -1,9 +1,3 @@
|
|
1 |
-
|
2 |
|
3 |
-
<?php
|
4 |
-
<span class="advanced"><?php _e( 'Advanced', 'wptouch-pro' ); ?></span>
|
5 |
-
<?php } ?>
|
6 |
-
|
7 |
-
<?php if ( wptouch_admin_is_setting_new() ) { ?>
|
8 |
-
<span class="new"><?php _e( 'New', 'wptouch-pro' ); ?></span>
|
9 |
-
<?php } ?>
|
1 |
+
<?php _e( 'Posts page', 'wptouch-pro' ); ?>
|
2 |
|
3 |
+
<?php global $latest_post_options; echo $latest_post_options; ?>
|
|
|
|
|
|
|
|
|
|
|
|
admin/settings/html/custom_icon_management.php
CHANGED
@@ -1,21 +1,18 @@
|
|
1 |
-
<ul class="custom-uploads-display">
|
2 |
<?php if ( !wptouch_have_custom_icons() ) { ?>
|
3 |
-
<li class="no-icons"><?php _e( 'No icons have been uploaded yet', 'wptouch-pro' ); ?>…</li>
|
4 |
<?php } else { ?>
|
5 |
-
|
6 |
-
|
7 |
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
<?php } ?>
|
18 |
</ul>
|
19 |
-
|
20 |
-
|
21 |
-
|
1 |
+
<ul class="custom-uploads-display wptouch-clearfix">
|
2 |
<?php if ( !wptouch_have_custom_icons() ) { ?>
|
3 |
+
<li class="no-icons"><p><?php _e( 'No icons have been uploaded yet', 'wptouch-pro' ); ?>…</p></li>
|
4 |
<?php } else { ?>
|
5 |
+
<?php while ( wptouch_have_custom_icons() ) { ?>
|
6 |
+
<?php wptouch_the_custom_icon(); ?>
|
7 |
|
8 |
+
<li class="custom-icon">
|
9 |
+
<img src="<?php wptouch_the_custom_icon_image(); ?>" alt="<?php wptouch_the_custom_icon_name(); ?>" />
|
10 |
+
<p class="name" data-name="<?php wptouch_the_custom_icon_name(); ?>">
|
11 |
+
<?php wptouch_the_custom_icon_name(); ?>
|
12 |
+
<a href="#" class="delete-custom-icon icon-cancel-circled" style="display:none"></a>
|
13 |
+
</p>
|
14 |
+
<p class="size"><?php wptouch_the_custom_icon_width(); ?>x<?php wptouch_the_custom_icon_height(); ?></p>
|
15 |
+
</li>
|
16 |
+
<?php } ?>
|
17 |
<?php } ?>
|
18 |
</ul>
|
|
|
|
|
|
admin/settings/html/custom_icon_upload.php
CHANGED
@@ -1,11 +1,5 @@
|
|
1 |
<div class="custom-icon-uploader" id="custom_icon_uploader">
|
2 |
-
<
|
3 |
-
|
4 |
-
<div class="progress progress-striped progress-success" style="display: none;" title="<?php _e( 'Upload Complete!', 'wptouch-pro' ); ?>" rel="popover" data-placement="right">
|
5 |
-
<div class="bar" style="width: 20%;"></div>
|
6 |
-
</div>
|
7 |
-
|
8 |
-
<br class="clearfix" />
|
9 |
-
<span class="upload-desc"><?php _e( 'Ready to upload', 'wptouch-pro' ); ?>…</span>
|
10 |
<div id="custom_icon_uploader_spot" style="display: none;"></div>
|
11 |
</div>
|
1 |
<div class="custom-icon-uploader" id="custom_icon_uploader">
|
2 |
+
<div class="wpt-spinner" style="opacity: 0"></div>
|
3 |
+
<button class="upload button-secondary" id="custom_icon_upload_button"><?php _e( 'Upload Icon', 'wptouch-pro' ); ?></button>
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
<div id="custom_icon_uploader_spot" style="display: none;"></div>
|
5 |
</div>
|
admin/settings/html/customizing_in_customizer.php
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
global $wptouch_pro;
|
3 |
+
$current_theme = $wptouch_pro->get_current_theme_info();
|
4 |
+
?>
|
5 |
+
<div class="new-in-four">
|
6 |
+
<img src="<?php echo WPTOUCH_ADMIN_URL; ?>/images/customizer-setup-icon.jpg" alt="customizer setup icon with phone and graphic" />
|
7 |
+
|
8 |
+
<?php
|
9 |
+
echo '<p>' . sprintf( __( 'These settings are handled in the WordPress %s %sAppearance -> Customize%s settings.', 'wptouch-pro' ), '</br>', '<em>', '</em>' ) . '</p>';
|
10 |
+
echo sprintf( __( '%sGo to the Customizer%s', 'wptouch-pro' ), '<a href="' . admin_url( 'customize.php' ) . '" class="button">', '</a>' );
|
11 |
+
?>
|
12 |
+
</div>
|
admin/settings/html/debuginfo.php
CHANGED
@@ -8,14 +8,13 @@
|
|
8 |
?>
|
9 |
|
10 |
<?php $settings = wptouch_get_settings(); ?>
|
|
|
11 |
<?php if ( $settings->debug_log ) { ?>
|
12 |
<strong><a class="button" href="<?php echo ( WPTOUCH_DEBUG_URL . '/' . wptouch_debug_get_filename() ); ?>" target="_blank"><?php _e( 'View Debug File', 'wptouch-pro' ); ?></a></strong>
|
13 |
<br /><br />
|
14 |
<?php } ?>
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
<strong><?php _e( 'Your Server Configuration', 'wptouch-pro' ); ?>:</strong>
|
19 |
-
<?php } ?>
|
20 |
<br />
|
21 |
<?php echo implode( ', ', $debug_data );
|
8 |
?>
|
9 |
|
10 |
<?php $settings = wptouch_get_settings(); ?>
|
11 |
+
|
12 |
<?php if ( $settings->debug_log ) { ?>
|
13 |
<strong><a class="button" href="<?php echo ( WPTOUCH_DEBUG_URL . '/' . wptouch_debug_get_filename() ); ?>" target="_blank"><?php _e( 'View Debug File', 'wptouch-pro' ); ?></a></strong>
|
14 |
<br /><br />
|
15 |
<?php } ?>
|
16 |
+
|
17 |
+
|
18 |
+
<h3><?php _e( 'Server Configuration', 'wptouch-pro' ); ?></h3>
|
|
|
|
|
19 |
<br />
|
20 |
<?php echo implode( ', ', $debug_data );
|
admin/settings/html/extension-browser-ajax.php
DELETED
@@ -1,10 +0,0 @@
|
|
1 |
-
<?php require_once( dirname( __FILE__ ) . '/../include/extension-browser.php' ); ?>
|
2 |
-
|
3 |
-
<?php wptouch_rewind_addons(); ?>
|
4 |
-
|
5 |
-
<?php while ( wptouch_has_addons( true ) ) { ?>
|
6 |
-
<?php wptouch_the_addon(); ?>
|
7 |
-
<?php if ( !wptouch_is_addon_active() && wptouch_is_addon_in_cloud() ) { ?>
|
8 |
-
<?php include( 'extension-browser-item.php' ); ?>
|
9 |
-
<?php } ?>
|
10 |
-
<?php } ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/settings/html/extension-browser-item-detail.php
ADDED
@@ -0,0 +1,71 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
if ( is_network_admin() ) {
|
3 |
+
$activate_label = __( 'Install', 'wptouch-pro' );
|
4 |
+
} else {
|
5 |
+
$activate_label = __( 'Activate', 'wptouch-pro' );
|
6 |
+
}
|
7 |
+
?>
|
8 |
+
<div id="<?php echo wptouch_convert_to_class_name( wptouch_get_addon_title() ); ?>-container" class="view inner-view <?php wptouch_the_addon_classes(); ?>">
|
9 |
+
<div class="back-link">
|
10 |
+
<a href="#main-extension-panel" data-popview>
|
11 |
+
<i class="icon-left-open-big"></i> <?php _e( 'Back to extensions', 'wptouch-pro' ); ?>
|
12 |
+
</a>
|
13 |
+
</div>
|
14 |
+
<div class="item-information inner-section">
|
15 |
+
<?php if ( wptouch_get_addon_icon() ) { ?>
|
16 |
+
<div class="image-wrapper">
|
17 |
+
<img src="<?php wptouch_the_addon_icon(); ?>" alt="<?php wptouch_the_addon_title(); ?>" />
|
18 |
+
</div>
|
19 |
+
<?php } ?>
|
20 |
+
|
21 |
+
<h2>
|
22 |
+
<?php wptouch_the_addon_title(); ?>
|
23 |
+
<?php if ( wptouch_is_addon_active() && current_user_can( 'manage_options' ) ) { ?><i class="icon-ok-circle"></i><?php } ?>
|
24 |
+
<span class="version"><?php wptouch_the_addon_version(); ?></span>
|
25 |
+
</h2>
|
26 |
+
|
27 |
+
<p class="desc"><?php wptouch_the_addon_description(); ?></p>
|
28 |
+
|
29 |
+
<?php if ( !is_network_admin() || wptouch_is_controlled_network() ) { ?>
|
30 |
+
<div class="action-buttons<?php if ( !wptouch_can_cloud_install() ) { ?> no-install<?php } ?>">
|
31 |
+
|
32 |
+
<?php if ( current_user_can( 'install_plugins' ) && !defined( 'WPTOUCH_IS_FREE' ) ) { ?>
|
33 |
+
|
34 |
+
<?php if ( wptouch_get_addon_buy_url() ) { ?>
|
35 |
+
<?php if ( !is_multisite() || is_network_admin() ) { ?>
|
36 |
+
<a class="button buynow" href="<?php wptouch_the_addon_buy_url(); ?>">
|
37 |
+
<?php _e( 'Add to License', 'wptouch-pro' ); ?>
|
38 |
+
</a>
|
39 |
+
<?php } ?>
|
40 |
+
<?php } elseif ( ( !wptouch_is_addon_active() && !is_network_admin() ) || wptouch_is_addon_in_cloud() ) { ?>
|
41 |
+
<a class="button activate" href="<?php echo wptouch_check_url_ssl( wptouch_get_addon_activate_link_url() ); ?>">
|
42 |
+
<?php echo $activate_label; ?>
|
43 |
+
</a>
|
44 |
+
|
45 |
+
<?php if ( !wptouch_can_cloud_install() && wptouch_get_addon_download_url() && !wptouch_get_addon_buy_url() && ( !wptouch_is_controlled_network() || is_network_admin() ) ) { ?>
|
46 |
+
<a class="button download extension" href="<?php wptouch_the_addon_download_url(); ?>">
|
47 |
+
<?php _e( 'Download', 'wptouch-pro' ); ?>
|
48 |
+
</a>
|
49 |
+
<?php } ?>
|
50 |
+
|
51 |
+
<?php } elseif ( !is_network_admin() ) { ?>
|
52 |
+
<a class="button deactivate" href="<?php wptouch_the_addon_deactivate_link_url(); ?>"><?php _e( 'Deactivate', 'wptouch-pro' ); ?></a>
|
53 |
+
<?php } ?>
|
54 |
+
<?php } ?>
|
55 |
+
</div>
|
56 |
+
<?php } ?>
|
57 |
+
|
58 |
+
</div>
|
59 |
+
|
60 |
+
<div class="inner-section long-desc">
|
61 |
+
<h3><?php _e( 'Description', 'wptouch-pro' ); ?></h3>
|
62 |
+
<?php wptouch_the_addon_long_desc(); ?>
|
63 |
+
</div>
|
64 |
+
|
65 |
+
<div class="inner-section changelog">
|
66 |
+
<h3><?php _e( 'Changelog', 'wptouch-pro' ); ?></h3>
|
67 |
+
<p class="changelog">
|
68 |
+
<?php wptouch_the_addon_changelog(); ?>
|
69 |
+
</p>
|
70 |
+
</div>
|
71 |
+
</div><!-- inner-view -->
|
admin/settings/html/extension-browser-item.php
CHANGED
@@ -1,91 +1,15 @@
|
|
1 |
-
<li class="<?php wptouch_the_addon_classes(); ?>">
|
2 |
-
<?php if ( wptouch_get_addon_screenshot() ) { ?>
|
3 |
-
<div class="image-wrapper">
|
4 |
-
<img src="<?php wptouch_the_addon_screenshot(); ?>" alt="<?php wptouch_the_addon_title(); ?>" />
|
5 |
-
|
6 |
-
<div class="modal hide" id="modal-<?php echo wptouch_convert_to_class_name( wptouch_get_addon_title() ); ?>" tabindex="-1" role="dialog" aria-hidden="true">
|
7 |
-
<div class="modal-header">
|
8 |
-
<h3 id="<?php echo wptouch_convert_to_class_name( wptouch_get_addon_title() ); ?>-title"><?php wptouch_get_addon_title(); ?></h3>
|
9 |
-
</div>
|
10 |
-
<div class="modal-body">
|
11 |
-
<div id="carousel-<?php echo wptouch_convert_to_class_name( wptouch_get_addon_title() ); ?>" class="carousel slide" data-interval="0">
|
12 |
-
<!-- Carousel items -->
|
13 |
-
<div class="carousel-inner">
|
14 |
-
<?php wptouch_reset_addon_preview(); ?>
|
15 |
-
<?php while ( wptouch_has_addon_preview_images() ) { ?>
|
16 |
-
<?php wptouch_the_addon_preview_image(); ?>
|
17 |
-
<div class="<?php if ( wptouch_is_first_addon_preview_image() ) echo 'active '; ?>item">
|
18 |
-
<img src="<?php wptouch_the_addon_preview_url(); ?>" alt="preview-image" />
|
19 |
-
</div>
|
20 |
-
<?php } ?>
|
21 |
-
</div>
|
22 |
-
<!-- Carousel nav -->
|
23 |
-
<a class="carousel-control left" href="#carousel-<?php echo wptouch_convert_to_class_name( wptouch_get_addon_title() ); ?>" data-slide="prev">«</a>
|
24 |
-
<a class="carousel-control right" href="#carousel-<?php echo wptouch_convert_to_class_name( wptouch_get_addon_title() ); ?>" data-slide="next">»</a>
|
25 |
-
</div>
|
26 |
-
</div>
|
27 |
-
<div class="modal-footer">
|
28 |
-
<button class="button" data-dismiss="modal" aria-hidden="true">Close</button>
|
29 |
-
</div>
|
30 |
-
</div>
|
31 |
-
</div>
|
32 |
-
<?php } ?>
|
33 |
<div class="item-information">
|
34 |
-
<?php if (
|
35 |
-
|
36 |
-
<?php
|
37 |
-
|
38 |
-
<?php } else { ?>
|
39 |
-
<a class="button-primary cant-upgrade" href="<?php wptouch_the_addon_download_url(); ?>"><i class="wptouch-icon-download"></i> <?php echo sprintf( __( 'Download %s Update', 'wptouch-pro' ), wptouch_cloud_addon_get_update_version() ); ?></a>
|
40 |
-
<?php } ?>
|
41 |
-
<?php } ?>
|
42 |
<?php } ?>
|
43 |
-
<
|
44 |
-
<?php
|
45 |
-
|
46 |
-
<h5>
|
47 |
-
<?php echo sprintf( __( 'by %s', 'wptouch-pro' ), wptouch_get_addon_author() ); ?>
|
48 |
-
</h5>
|
49 |
-
<p class="desc"><?php wptouch_the_addon_description(); ?></p>
|
50 |
-
|
51 |
-
<ul class="item-actions">
|
52 |
-
<?php if ( wptouch_is_addon_in_cloud() ) { ?>
|
53 |
-
<?php if ( wptouch_get_addon_buy_url() ) { ?>
|
54 |
-
<?php if ( defined( 'WPTOUCH_IS_FREE' ) ) { ?>
|
55 |
-
<?php if ( wptouch_addon_info_url() ) { ?>
|
56 |
-
<li><a class="button-secondary buynow" href="<?php echo wptouch_addon_info_url(); ?>"><?php _e( 'Available in WPtouch Pro', 'wptouch-pro' ); ?></a></li>
|
57 |
-
<?php } ?>
|
58 |
-
<?php } else { ?>
|
59 |
-
<?php if ( wptouch_addon_info_url() ) { ?>
|
60 |
-
<li><a class="button-secondary buynow" href="<?php echo wptouch_addon_info_url(); ?>"><?php _e( 'More Info', 'wptouch-pro' ); ?></a></li>
|
61 |
-
<?php } ?>
|
62 |
-
<?php if ( wptouch_has_license() ) { ?>
|
63 |
-
<li><a class="button-secondary buynow" href="<?php wptouch_the_addon_buy_url(); ?>"><?php _e( 'Upgrade License', 'wptouch-pro' ); ?></a></li>
|
64 |
-
<?php } else { ?>
|
65 |
-
<li><a class="button-secondary buynow" href="<?php wptouch_the_addon_buy_url(); ?>"><?php _e( 'Get License', 'wptouch-pro' ); ?></a></li>
|
66 |
-
<?php } ?>
|
67 |
-
<?php } ?>
|
68 |
-
|
69 |
-
<?php } else { ?>
|
70 |
-
<?php if ( current_user_can( 'install_plugins' ) ) { ?>
|
71 |
-
<li>
|
72 |
-
<?php if ( wptouch_can_cloud_install( false ) ) { ?>
|
73 |
-
<a class="button-secondary download" href="#" data-name="<?php wptouch_the_addon_base(); ?>" data-url="<?php wptouch_the_addon_download_url(); ?>" data-loading-text="<i class='icon-cloud-download'></i><?php _e( 'Downloading...', 'wptouch-pro' ); ?>"><i class="wptouch-icon-cloud-download"></i><?php _e( 'Install', 'wptouch-pro' ); ?></a>
|
74 |
-
<?php } else { ?>
|
75 |
-
<a class="button-secondary" href="<?php wptouch_the_addon_download_url(); ?>"><i class="wptouch-icon-cloud-download"></i> <?php _e( 'Download', 'wptouch-pro' ); ?></a>
|
76 |
-
<?php } ?>
|
77 |
-
</li>
|
78 |
-
<?php } ?>
|
79 |
-
<?php } ?>
|
80 |
-
<?php } else { ?>
|
81 |
-
<?php if ( !wptouch_is_addon_active() && current_user_can( 'activate_plugins' ) ) { ?>
|
82 |
-
<li><a class="button-primary" href="<?php wptouch_the_addon_activate_link_url(); ?>"><?php _e( 'Activate', 'wptouch-pro' ); ?></a></li>
|
83 |
-
<?php } ?>
|
84 |
-
<?php if ( wptouch_is_addon_active() && current_user_can( 'activate_plugins' ) ) { ?>
|
85 |
-
<li><a class="button-primary" href="admin.php?page=wptouch-admin-addon-settings"><?php _e( 'Setup', 'wptouch-pro' ); ?></a></li>
|
86 |
-
<li><a class="button-secondary deactivate" href="<?php wptouch_the_addon_deactivate_link_url(); ?>"><?php _e( 'Deactivate', 'wptouch-pro' ); ?></a></li>
|
87 |
-
<?php } ?>
|
88 |
<?php } ?>
|
89 |
-
</
|
|
|
90 |
</div>
|
91 |
-
</li
|
1 |
+
<li class="<?php wptouch_the_addon_classes(); ?> <?php if ( wptouch_get_addon_buy_url() ) { echo 'no-license'; } ?>" data-pushview="#<?php echo wptouch_convert_to_class_name( wptouch_get_addon_title() ); ?>-container">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
<div class="item-information">
|
3 |
+
<?php if ( wptouch_get_addon_icon() ) { ?>
|
4 |
+
<div class="image-wrapper">
|
5 |
+
<img src="<?php wptouch_the_addon_icon(); ?>" alt="<?php wptouch_the_addon_title(); ?>" class="<?php echo wptouch_convert_to_class_name( wptouch_get_addon_title() ); ?>" />
|
6 |
+
</div>
|
|
|
|
|
|
|
|
|
7 |
<?php } ?>
|
8 |
+
<h2><?php wptouch_the_addon_title(); ?>
|
9 |
+
<?php if ( !wptouch_is_addon_in_cloud() && is_network_admin() && wptouch_is_controlled_network() ) { ?>
|
10 |
+
<span class="installed"><?php _e( 'Installed', 'wptouch-pro' ); ?></span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
<?php } ?>
|
12 |
+
</h2>
|
13 |
+
<p class="desc"><?php wptouch_the_addon_description(); ?></p>
|
14 |
</div>
|
15 |
+
</li><!-- indidivudal extension -->
|
admin/settings/html/extension-browser.php
CHANGED
@@ -1,15 +1,40 @@
|
|
1 |
-
<?php if ( !wptouch_can_cloud_install(
|
2 |
-
<div class="cloud-update-issue"
|
|
|
|
|
3 |
<?php } ?>
|
4 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
<?php while ( wptouch_has_addons( true ) ) { ?>
|
6 |
<?php wptouch_the_addon(); ?>
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
<?php } ?>
|
11 |
-
|
12 |
-
<li id="wptouch-addon-browser-load-ajax">
|
13 |
-
<div class="load"><span class="text"><?php _e( 'Loading Cloud Extensions', 'wptouch-pro' ); ?>…</span></div>
|
14 |
-
</li>
|
15 |
-
</ul>
|
1 |
+
<?php if ( !wptouch_can_cloud_install( true ) ) { ?>
|
2 |
+
<div class="cloud-update-issue">
|
3 |
+
<?php echo sprintf( __( 'Your server configuration is preventing WPtouch Pro from installing and updating from the Cloud. %sPlease visit %sthis article%s to follow the steps to enable Cloud install, or you can manually download and install into the wptouch-data/%s directory.', 'wptouch-pro' ), '<br /><br />', '<a href="https://support.wptouch.com/support/solutions/articles/5000525305-themes-or-extensions-cannot-be-downloaded">', '</a>', 'extensions' ); ?>
|
4 |
+
</div>
|
5 |
<?php } ?>
|
6 |
+
|
7 |
+
<!-- available extension list -->
|
8 |
+
<div class="extension-panels">
|
9 |
+
<div class="view" id="main-extension-panel">
|
10 |
+
<?php
|
11 |
+
$counter = 0;
|
12 |
+
while ( wptouch_has_addons( true ) ) {
|
13 |
+
wptouch_the_addon();
|
14 |
+
if ( !is_multisite() || wptouch_is_network_available( 'extension' ) || is_network_admin() ) {
|
15 |
+
if ( $counter == 0 ) { echo '<ul class="cloud-browser extensions">'; }
|
16 |
+
$counter ++;
|
17 |
+
include( 'extension-browser-item.php' );
|
18 |
+
}
|
19 |
+
}
|
20 |
+
|
21 |
+
if ( $counter > 0 ) {
|
22 |
+
echo '</ul>';
|
23 |
+
} else {
|
24 |
+
?>
|
25 |
+
<div class="none-available">
|
26 |
+
<center>
|
27 |
+
<i class="icon-extension-browser"></i>
|
28 |
+
<p><?php _e( 'No extensions available', 'wptouch-pro' ); ?></p>
|
29 |
+
</center>
|
30 |
+
</div>
|
31 |
+
<?php } ?>
|
32 |
+
</div>
|
33 |
+
<!-- the inner-views for extensions -->
|
34 |
<?php while ( wptouch_has_addons( true ) ) { ?>
|
35 |
<?php wptouch_the_addon(); ?>
|
36 |
+
<?php if ( !is_multisite() || wptouch_is_network_available( 'extension' ) || is_network_admin() ) { ?>
|
37 |
+
<?php include( 'extension-browser-item-detail.php' ); ?>
|
38 |
+
<?php } ?>
|
39 |
<?php } ?>
|
40 |
+
</div>
|
|
|
|
|
|
|
|
admin/settings/html/gopro.php
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php $settings = wptouch_get_settings( 'bncid' ); ?>
|
2 |
+
<?php if ( wptouch_is_path_writable( WP_PLUGIN_DIR ) && wptouch_is_path_writable( WPTOUCH_DIR ) ) { ?>
|
3 |
+
<h3>WPtouch Pro License</h3>
|
4 |
+
<p>If you have a licence for WPtouch Pro you can enter it here. </p>
|
5 |
+
<div id="license-settings-area" class="wptouch-clearfix">
|
6 |
+
<input class="license-inputs" type="text" placeholder="<?php _e( 'Account E-Mail Address', 'wptouch-pro' ); ?>" id="license_email" name="<?php echo wptouch_admin_get_manual_encoded_setting_name( 'bncid', 'bncid' ); ?>" value="<?php if ( $settings->bncid ) echo $settings->bncid; else ''; ?>" />
|
7 |
+
|
8 |
+
<input class="license-inputs" type="text" placeholder="<?php _e( 'Product License Key', 'wptouch-pro' ); ?>" id="license_key" name="<?php echo wptouch_admin_get_manual_encoded_setting_name( 'bncid', 'bncid' ); ?>" value="<?php if ( $settings->wptouch_license_key ) echo $settings->wptouch_license_key; else ''; ?>" />
|
9 |
+
|
10 |
+
<div id="activate-license">
|
11 |
+
<a href="#" class="activate button"><?php _e( 'Activate', 'wptouch-pro' ); ?></a>
|
12 |
+
</div>
|
13 |
+
</div>
|
14 |
+
<?php } ?>
|
15 |
+
|
16 |
+
<div id="upgrade-area">
|
17 |
+
|
18 |
+
</div>
|
19 |
+
|
20 |
+
<?php include_once( WPTOUCH_ADMIN_DIR . '/html/license-modals.php' ); ?>
|
admin/settings/html/icon_menu_area.php
DELETED
@@ -1,120 +0,0 @@
|
|
1 |
-
<div id="pack-set-menu-area">
|
2 |
-
<div id="right-area" class="section clearfix">
|
3 |
-
<div class="header">
|
4 |
-
<ul id="menu-set-options">
|
5 |
-
<li><a href="#" class="check-all"><?php _e( 'Check All', 'wptouch-pro' ); ?></a></li> |
|
6 |
-
<li><a href="#" class="check-none"><?php _e( 'None', 'wptouch-pro' ); ?></a></li> |
|
7 |
-
<li><a href="#" class="reset-all"><?php _e( 'Reset', 'wptouch-pro' ); ?></a></li>
|
8 |
-
</ul>
|
9 |
-
<?php _e( 'Menu', 'wptouch-pro' ); ?>
|
10 |
-
|
11 |
-
<select name="menu-list" id="menu-list">
|
12 |
-
<?php
|
13 |
-
global $wptouch_pro;
|
14 |
-
$menus = wptouch_get_custom_menu_list();
|
15 |
-
$rendered_menus = array();
|
16 |
-
?>
|
17 |
-
|
18 |
-
<?php
|
19 |
-
foreach( $wptouch_pro->theme_menus as $menu_info ) {
|
20 |
-
$menu_id = wptouch_get_menu_name_from_slug( $menu_info->setting_name );
|
21 |
-
if ( !in_array( $menu_id, $rendered_menus ) ) {
|
22 |
-
$rendered_menus[] = $menu_id;
|
23 |
-
if ( $menu_id == 'none' ) continue;
|
24 |
-
?>
|
25 |
-
<option value="menu-<?php echo $menu_id; ?>"><?php echo $menus[ $menu_id ]; ?></option>
|
26 |
-
<?php
|
27 |
-
}
|
28 |
-
}
|
29 |
-
?>
|
30 |
-
</select>
|
31 |
-
<i class="wptouch-tooltip wptouch-icon-info-sign" data-original-title="<?php _e( 'Active menus used in this theme.', 'wptouch-pro' ); ?>"></i>
|
32 |
-
</div>
|
33 |
-
<div id="menu-area">
|
34 |
-
<div class="context-info clearfix">
|
35 |
-
<span class="pull-right"><?php _e( 'Show/Hide', 'wptouch-pro' ); ?></span>
|
36 |
-
<span class="pull-left"><?php _e( 'Menu Item', 'wptouch-pro' ); ?></span>
|
37 |
-
</div>
|
38 |
-
<div class="nano">
|
39 |
-
<div class="content">
|
40 |
-
<?php $complete_menus = array(); ?>
|
41 |
-
<?php foreach( $wptouch_pro->theme_menus as $menu_info ) { ?>
|
42 |
-
<?php $real_name = wptouch_get_menu_name_from_slug( $menu_info->setting_name ); ?>
|
43 |
-
<?php if ( isset( $complete_menus[ $real_name ] ) ) continue; ?>
|
44 |
-
<div data-menu-name="menu-<?php echo $real_name; ?>" class="menu-item-list" style="display: none;">
|
45 |
-
<?php wptouch_show_menu( $menu_info->setting_name, new WPtouchProAdminNavMenuWalker(), new WPtouchProAdminPageMenuWalker() ); ?>
|
46 |
-
</div>
|
47 |
-
<?php $complete_menus[ $real_name ] = '1'; ?>
|
48 |
-
<?php } ?>
|
49 |
-
</div><!-- content -->
|
50 |
-
</div><!-- nano -->
|
51 |
-
</div>
|
52 |
-
</div> <!-- right-area -->
|
53 |
-
|
54 |
-
<div id="left-area" class="section">
|
55 |
-
<div class="header">
|
56 |
-
<?php _e( 'Icon Set', 'wptouch-pro' ); ?>
|
57 |
-
<select name="pack-list" id="pack-list">
|
58 |
-
<?php while ( wptouch_have_icon_packs() ) { ?>
|
59 |
-
<?php wptouch_the_icon_pack(); ?>
|
60 |
-
<option data-class="<?php echo wptouch_get_icon_pack_class_name(); ?>" value="<?php echo wptouch_get_icon_pack_class_name(); ?>"><?php wptouch_the_icon_pack_name(); ?></option>
|
61 |
-
<?php } ?>
|
62 |
-
</select>
|
63 |
-
</div> <!-- header -->
|
64 |
-
|
65 |
-
<div class="context-info clearfix">
|
66 |
-
<center><?php _e( 'Drag icons to associate them with menu items', 'wptouch-pro' ); ?></center>
|
67 |
-
</div>
|
68 |
-
|
69 |
-
<?php while ( wptouch_have_icon_packs() ) { ?>
|
70 |
-
<?php wptouch_the_icon_pack(); ?>
|
71 |
-
<div class="pack" id="pack-<?php echo wptouch_get_icon_pack_class_name(); ?>">
|
72 |
-
<div class="nano">
|
73 |
-
<div class="content">
|
74 |
-
<?php if ( wptouch_have_icons( wptouch_get_icon_pack_name() ) ) { ?>
|
75 |
-
<ul>
|
76 |
-
<?php while ( wptouch_have_icons( wptouch_get_icon_pack_name() ) ) { ?>
|
77 |
-
<?php wptouch_the_icon(); ?>
|
78 |
-
<li>
|
79 |
-
<img src="<?php wptouch_the_icon_url(); ?>" />
|
80 |
-
<div class="title"><?php wptouch_the_icon_short_name(); ?></div>
|
81 |
-
<?php if ( wptouch_icon_has_image_size_info() ) { ?>
|
82 |
-
<div class="size-info">
|
83 |
-
<?php wptouch_icon_the_width(); ?> x <?php wptouch_icon_the_height(); ?>
|
84 |
-
</div>
|
85 |
-
<?php } ?>
|
86 |
-
</li>
|
87 |
-
<?php } ?>
|
88 |
-
</ul>
|
89 |
-
<?php } else { ?>
|
90 |
-
<div id="no-icons">
|
91 |
-
<p><?php _e( 'You don\'t have any custom icons yet.', 'wptouch-pro' ); ?></p>
|
92 |
-
</div>
|
93 |
-
<?php } ?>
|
94 |
-
</div><!-- content -->
|
95 |
-
</div><!-- nano -->
|
96 |
-
</div>
|
97 |
-
<?php } ?>
|
98 |
-
</div> <!-- left-area -->
|
99 |
-
</div> <!-- pack set menu area -->
|
100 |
-
|
101 |
-
<div id="default-trash-area" class="clearfix">
|
102 |
-
<div id="default-area">
|
103 |
-
<div class="drop-target">
|
104 |
-
<img src="<?php wptouch_the_site_default_icon(); ?>" alt="default-icon" />
|
105 |
-
<span>
|
106 |
-
<?php _e( 'Default Icon', 'wptouch-pro' ); ?>
|
107 |
-
<span class="text">(<?php _e( 'applies to all unset icons', 'wptouch-pro' ); ?>)</span>
|
108 |
-
</span>
|
109 |
-
</div>
|
110 |
-
</div>
|
111 |
-
<div id="trash-area">
|
112 |
-
<div class="drop-target">
|
113 |
-
<img src="<?php echo WPTOUCH_ADMIN_URL . '/images/filler.png'; ?>" alt="trash-icon" />
|
114 |
-
<span>
|
115 |
-
<?php _e( 'Trash', 'wptouch-pro' ); ?>
|
116 |
-
<span class="text">(<?php _e( 'drag icon here to reset', 'wptouch-pro' ); ?>)</span>
|
117 |
-
</span>
|
118 |
-
</div>
|
119 |
-
</div>
|
120 |
-
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/settings/html/image-upload.php
CHANGED
@@ -2,21 +2,27 @@
|
|
2 |
<div class="image-placeholder">
|
3 |
<?php $image = wptouch_admin_get_setting_value(); ?>
|
4 |
<?php if ( $image ) { ?>
|
5 |
-
|
6 |
-
<?php } else { ?>
|
7 |
-
<span class="spinner" style="display:none"></span>
|
8 |
<?php } ?>
|
|
|
|
|
|
|
9 |
</div>
|
10 |
|
11 |
-
<button id="<?php wptouch_admin_the_setting_name(); ?>_upload" data-esn="<?php wptouch_admin_the_encoded_setting_name(); ?>" class="upload button
|
|
|
|
|
12 |
|
13 |
-
<button class="delete button
|
|
|
|
|
14 |
|
15 |
-
<div class="progress progress-striped progress-success" style="display: none;" title="<?php _e( 'Upload Complete!', 'wptouch-pro' ); ?>" rel="popover" data-placement="right">
|
16 |
-
<div class="bar" style="width: 20%;"></div>
|
17 |
-
</div>
|
18 |
|
19 |
-
<br class="clearfix" />
|
20 |
-
|
|
|
|
|
|
|
|
|
21 |
<div id="<?php wptouch_admin_the_setting_name(); ?>_spot" class="<?php wptouch_admin_the_setting_name(); ?>_upload" style="display: none;"></div>
|
22 |
-
</div>
|
2 |
<div class="image-placeholder">
|
3 |
<?php $image = wptouch_admin_get_setting_value(); ?>
|
4 |
<?php if ( $image ) { ?>
|
5 |
+
<img src="<?php echo WPTOUCH_BASE_CONTENT_URL . $image; ?>" />
|
|
|
|
|
6 |
<?php } ?>
|
7 |
+
<div class="progress" style="display:none" title="<?php _e( 'Upload Complete!', 'wptouch-pro' ); ?>" data-placement="right">
|
8 |
+
<div class="bar" style="width: 0%;"></div>
|
9 |
+
</div>
|
10 |
</div>
|
11 |
|
12 |
+
<button id="<?php wptouch_admin_the_setting_name(); ?>_upload" data-esn="<?php wptouch_admin_the_encoded_setting_name(); ?>" class="upload button">
|
13 |
+
<?php _e( 'Upload', 'wptouch-pro' ); ?>
|
14 |
+
</button>
|
15 |
|
16 |
+
<button class="delete button" <?php if ( !$image ) { echo 'style="display: none;"'; } ?>>
|
17 |
+
<?php _e( 'Delete', 'wptouch-pro' ); ?>
|
18 |
+
</button>
|
19 |
|
|
|
|
|
|
|
20 |
|
21 |
+
<br class="wptouch-clearfix" />
|
22 |
+
|
23 |
+
<span class="upload-desc">
|
24 |
+
<?php wptouch_admin_the_setting_desc(); ?> <?php include( WPTOUCH_DIR . '/include/html/pro.php' ); ?>
|
25 |
+
</span>
|
26 |
+
|
27 |
<div id="<?php wptouch_admin_the_setting_name(); ?>_spot" class="<?php wptouch_admin_the_setting_name(); ?>_upload" style="display: none;"></div>
|
28 |
+
</div>
|
admin/settings/html/installed_icon_sets.php
CHANGED
@@ -1,5 +1,9 @@
|
|
1 |
<?php if ( is_writable( WPTOUCH_CUSTOM_SET_DIRECTORY ) ) { ?>
|
2 |
-
<div id="manage-icon-sets"
|
|
|
|
|
3 |
<?php } else { ?>
|
4 |
-
<div id="manage-icon-set-error"
|
|
|
|
|
5 |
<?php } ?>
|
1 |
<?php if ( is_writable( WPTOUCH_CUSTOM_SET_DIRECTORY ) ) { ?>
|
2 |
+
<div id="manage-icon-sets">
|
3 |
+
<p class="small"><?php _e( 'Loading icon sets', 'wptouch-pro' ); ?>…</p>
|
4 |
+
</div>
|
5 |
<?php } else { ?>
|
6 |
+
<div id="manage-icon-set-error">
|
7 |
+
<p class="small"><?php echo sprintf( __( 'The %s%s%s directory is not writable. %sPlease fix this issue to install additional icon sets.', 'wptouch-pro' ), '<strong>', '/wptouch-data/icons', '</strong>', '<br/>' ); ?></p>
|
8 |
+
</div>
|
9 |
<?php } ?>
|
admin/settings/html/installed_icon_sets_ajax.php
CHANGED
@@ -5,8 +5,12 @@
|
|
5 |
<li>
|
6 |
<img src="<?php wptouch_the_icon_pack_thumbnail(); ?>" alt="placeholder">
|
7 |
<p class="set-title"><?php wptouch_the_icon_pack_name(); ?></p>
|
8 |
-
<p class="set-author"
|
9 |
-
|
|
|
|
|
|
|
|
|
10 |
</li>
|
11 |
<?php } ?>
|
12 |
|
@@ -17,10 +21,10 @@
|
|
17 |
<li>
|
18 |
<img src="<?php echo $icon_set->thumbnail; ?>" alt="placeholder">
|
19 |
<p class="set-title"><?php echo $icon_set->name; ?></span>
|
20 |
-
<p class="set-author"
|
21 |
-
<button class="button
|
22 |
-
<span class="installed" style="display: none;"
|
23 |
-
<span class="error" style="display: none;"
|
24 |
</li>
|
25 |
<?php } ?>
|
26 |
<?php } ?>
|
5 |
<li>
|
6 |
<img src="<?php wptouch_the_icon_pack_thumbnail(); ?>" alt="placeholder">
|
7 |
<p class="set-title"><?php wptouch_the_icon_pack_name(); ?></p>
|
8 |
+
<p class="set-author">
|
9 |
+
<a href="<?php echo wptouch_get_icon_pack_author_url(); ?>" target="_blank">
|
10 |
+
<?php echo wptouch_get_icon_pack_author(); ?>
|
11 |
+
</a>
|
12 |
+
</p>
|
13 |
+
<span class="installed"><?php _e( 'Installed', 'wptouch-pro' ); ?></span>
|
14 |
</li>
|
15 |
<?php } ?>
|
16 |
|
21 |
<li>
|
22 |
<img src="<?php echo $icon_set->thumbnail; ?>" alt="placeholder">
|
23 |
<p class="set-title"><?php echo $icon_set->name; ?></span>
|
24 |
+
<p class="set-author"><a href="<?php echo $icon_set->author_url; ?>"><?php echo $icon_set->author; ?></a></p>
|
25 |
+
<button class="button" data-loading-text="<?php _e( 'Installing', 'wptouch-pro' ); ?>…" data-base-path="<?php echo $icon_set->dir_base; ?>" data-install-url="<?php echo $icon_set->download_url; ?>"><?php _e( 'Install', 'wptouch-pro' ); ?></button>
|
26 |
+
<span class="installed" style="display: none;"><?php _e( 'Installed', 'wptouch-pro' ); ?></span>
|
27 |
+
<span class="error" style="display: none;"><?php _e( 'Unable to Install', 'wptouch-pro' ); ?></span>
|
28 |
</li>
|
29 |
<?php } ?>
|
30 |
<?php } ?>
|
admin/settings/html/list.php
CHANGED
@@ -1,25 +1,18 @@
|
|
1 |
-
|
2 |
-
<?php while ( wptouch_admin_has_list_options() ) { ?>
|
3 |
-
<?php wptouch_admin_the_list_option(); ?>
|
4 |
-
<option value="<?php wptouch_admin_the_list_option_key(); ?>"<?php if ( wptouch_admin_is_list_option_selected() ) echo " selected"; ?>><?php wptouch_admin_the_list_option_desc(); ?></option>
|
5 |
-
<?php } ?>
|
6 |
-
</select>
|
7 |
|
8 |
-
<label class="list" for="<?php wptouch_admin_the_setting_name(); ?>">
|
9 |
-
<?php wptouch_admin_the_setting_desc(); ?>
|
10 |
-
</label>
|
11 |
<?php if ( wptouch_admin_setting_has_tooltip() ) { ?>
|
12 |
-
<i class="wptouch-tooltip
|
13 |
-
<?php } ?>
|
14 |
-
|
15 |
-
<?php if ( wptouch_admin_get_setting_level() == WPTOUCH_SETTING_ADVANCED ) { ?>
|
16 |
-
<span class="advanced"><?php _e( 'Advanced', 'wptouch-pro' ); ?></span>
|
17 |
<?php } ?>
|
18 |
|
19 |
<?php if ( wptouch_admin_is_setting_new() ) { ?>
|
20 |
-
<span class="new"
|
21 |
<?php } ?>
|
22 |
|
23 |
-
<?php
|
24 |
-
|
25 |
-
<?php
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php wptouch_admin_the_setting_desc(); ?>
|
|
|
|
|
|
|
|
|
|
|
2 |
|
|
|
|
|
|
|
3 |
<?php if ( wptouch_admin_setting_has_tooltip() ) { ?>
|
4 |
+
<i class="wptouch-tooltip" title="<?php wptouch_admin_the_setting_tooltip(); ?>"></i>
|
|
|
|
|
|
|
|
|
5 |
<?php } ?>
|
6 |
|
7 |
<?php if ( wptouch_admin_is_setting_new() ) { ?>
|
8 |
+
<span class="new"> <?php _e( 'New', 'wptouch-pro' ); ?></span>
|
9 |
<?php } ?>
|
10 |
|
11 |
+
<select name="<?php wptouch_admin_the_encoded_setting_name(); ?>" id="<?php wptouch_admin_the_setting_name(); ?>" class="list">
|
12 |
+
<?php while ( wptouch_admin_has_list_options() ) { ?>
|
13 |
+
<?php wptouch_admin_the_list_option(); ?>
|
14 |
+
<option value="<?php wptouch_admin_the_list_option_key(); ?>"<?php if ( wptouch_admin_is_list_option_selected() ) echo " selected"; ?>>
|
15 |
+
<?php wptouch_admin_the_list_option_desc(); ?>
|
16 |
+
</option>
|
17 |
+
<?php } ?>
|
18 |
+
</select>
|
admin/settings/html/menus_in_menus.php
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
global $wptouch_pro;
|
3 |
+
$current_theme = $wptouch_pro->get_current_theme_info();
|
4 |
+
?>
|
5 |
+
<div class="new-in-four">
|
6 |
+
|
7 |
+
<img src="<?php echo WPTOUCH_ADMIN_URL; ?>/images/menu-setup-icon.jpg" alt="menu setup icon with phone and graphic" />
|
8 |
+
<?php
|
9 |
+
echo '<p>' . sprintf( __( 'These settings are handled in the WordPress %s %sAppearance -> Menus%s settings', 'wptouch-pro' ), '<br />', '<em>', '</em>' ) . '</p>';
|
10 |
+
echo sprintf( __( '%sGo to Menu Settings%s', 'wptouch-pro' ), '<a href="' . admin_url( 'nav-menus.php' ) . '" class="button">', '</a>' );
|
11 |
+
?>
|
12 |
+
</div>
|
admin/settings/html/multiline-comma.php
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div class="multiline comma">
|
2 |
+
<span><?php wptouch_admin_the_setting_desc(); ?></span>
|
3 |
+
|
4 |
+
<?php if ( wptouch_admin_setting_has_tooltip() ) { ?>
|
5 |
+
<i class="wptouch-tooltip" title="<?php wptouch_admin_the_setting_tooltip(); ?>"></i>
|
6 |
+
<?php } ?>
|
7 |
+
|
8 |
+
<?php if ( wptouch_admin_is_setting_new() ) { ?>
|
9 |
+
<span class="new"> <?php _e( 'New', 'wptouch-pro' ); ?></span>
|
10 |
+
<?php } ?>
|
11 |
+
|
12 |
+
<div class="input-wrap">
|
13 |
+
<input type="text" class="add-entry" placeholder="" />
|
14 |
+
<a href="#" class="add icon-plus-circled"></a>
|
15 |
+
<textarea style="width:400px; height: 100px" id="<?php wptouch_admin_the_setting_name(); ?>" name="<?php wptouch_admin_the_encoded_setting_name(); ?>"><?php wptouch_admin_the_setting_value(); ?></textarea>
|
16 |
+
</div>
|
17 |
+
|
18 |
+
<?php $entries = wptouch_admin_split_setting(); ?>
|
19 |
+
|
20 |
+
<?php if ( count( $entries ) > 0 ) { ?>
|
21 |
+
<ul class="<?php wptouch_admin_the_encoded_setting_name(); ?>-list">
|
22 |
+
<?php foreach ( $entries as $entry ) { ?>
|
23 |
+
<?php if ( $entry != '' ) { ?>
|
24 |
+
<li><?php echo $entry; ?></li>
|
25 |
+
<?php } ?>
|
26 |
+
<?php } ?>
|
27 |
+
</ul>
|
28 |
+
<?php } ?>
|
29 |
+
</div>
|
admin/settings/html/multiline-newline.php
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div class="multiline newline">
|
2 |
+
<span><?php wptouch_admin_the_setting_desc(); ?></span>
|
3 |
+
<?php if ( wptouch_admin_setting_has_tooltip() ) { ?>
|
4 |
+
<i class="wptouch-tooltip" title="<?php wptouch_admin_the_setting_tooltip(); ?>"></i>
|
5 |
+
<?php } ?>
|
6 |
+
<?php if ( wptouch_admin_is_setting_new() ) { ?>
|
7 |
+
<span class="new"> <?php _e( 'New', 'wptouch-pro' ); ?></span>
|
8 |
+
<?php } ?>
|
9 |
+
|
10 |
+
<div class="input-wrap">
|
11 |
+
<input type="text" class="add-entry" placeholder="" /><a href="#" class="add icon-plus-circled"></a>
|
12 |
+
<textarea style="width:400px; height: 100px" id="<?php wptouch_admin_the_setting_name(); ?>" name="<?php wptouch_admin_the_encoded_setting_name(); ?>"><?php wptouch_admin_the_setting_value(); ?></textarea>
|
13 |
+
</div>
|
14 |
+
|
15 |
+
<?php $entries = wptouch_admin_split_setting_newline(); ?>
|
16 |
+
|
17 |
+
<?php if ( count( $entries ) > 0 ) { ?>
|
18 |
+
<ul class="<?php wptouch_admin_the_encoded_setting_name(); ?>-list">
|
19 |
+
<?php foreach ( $entries as $entry ) { ?>
|
20 |
+
<?php if ( $entry != '' ) { ?>
|
21 |
+
<li><?php echo $entry; ?></li>
|
22 |
+
<?php } ?>
|
23 |
+
<?php } ?>
|
24 |
+
</ul>
|
25 |
+
<?php } ?>
|
26 |
+
</div>
|
admin/settings/html/no-setting-text.php
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<p class="small">
|
2 |
+
<?php wptouch_admin_the_setting_desc(); ?>
|
3 |
+
<?php if ( wptouch_admin_setting_has_tooltip() ) { ?>
|
4 |
+
<i class="wptouch-tooltip" title="<?php wptouch_admin_the_setting_tooltip(); ?>"></i>
|
5 |
+
<?php } ?>
|
6 |
+
</p>
|
admin/settings/html/no_tablet_support.php
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
global $wptouch_pro;
|
3 |
+
$current_theme = $wptouch_pro->get_current_theme_info();
|
4 |
+
if ( is_object( $current_theme ) ) {
|
5 |
+
echo '<p class="no-tablets">';
|
6 |
+
echo sprintf( __( 'You\'re using %s, which currently does not support tablets.', 'wptouch-pro' ), $current_theme->name );
|
7 |
+
echo '</p>';
|
8 |
+
}
|
admin/settings/html/numeric.php
CHANGED
@@ -1,17 +1,13 @@
|
|
1 |
-
<input type="text" autocomplete="off" class="numeric" id="<?php wptouch_admin_the_setting_name(); ?>" name="<?php wptouch_admin_the_encoded_setting_name(); ?>" value="<?php wptouch_admin_the_setting_value(); ?>" />
|
2 |
-
|
3 |
<label class="text" for="<?php wptouch_admin_the_setting_name(); ?>">
|
4 |
<?php wptouch_admin_the_setting_desc(); ?>
|
5 |
</label>
|
6 |
|
7 |
<?php if ( wptouch_admin_setting_has_tooltip() ) { ?>
|
8 |
-
<i class="wptouch-tooltip
|
9 |
-
<?php } ?>
|
10 |
-
|
11 |
-
<?php if ( wptouch_admin_get_setting_level() == WPTOUCH_SETTING_ADVANCED ) { ?>
|
12 |
-
<span class="advanced"><?php _e( 'Advanced', 'wptouch-pro' ); ?></span>
|
13 |
<?php } ?>
|
14 |
|
15 |
<?php if ( wptouch_admin_is_setting_new() ) { ?>
|
16 |
-
<span class="new"
|
17 |
<?php } ?>
|
|
|
|
|
|
|
|
1 |
<label class="text" for="<?php wptouch_admin_the_setting_name(); ?>">
|
2 |
<?php wptouch_admin_the_setting_desc(); ?>
|
3 |
</label>
|
4 |
|
5 |
<?php if ( wptouch_admin_setting_has_tooltip() ) { ?>
|
6 |
+
<i class="wptouch-tooltip" title="<?php wptouch_admin_the_setting_tooltip(); ?>"></i>
|
|
|
|
|
|
|
|
|
7 |
<?php } ?>
|
8 |
|
9 |
<?php if ( wptouch_admin_is_setting_new() ) { ?>
|
10 |
+
<span class="new"> <?php _e( 'New', 'wptouch-pro' ); ?></span>
|
11 |
<?php } ?>
|
12 |
+
|
13 |
+
<input type="text" autocomplete="off" class="numeric" id="<?php wptouch_admin_the_setting_name(); ?>" name="<?php wptouch_admin_the_encoded_setting_name(); ?>" value="<?php wptouch_admin_the_setting_value(); ?>" />
|
admin/settings/html/plugin-compat-ajax.php
CHANGED
@@ -2,20 +2,19 @@
|
|
2 |
<?php $settings = wptouch_get_settings( 'compat' ); ?>
|
3 |
<?php global $wptouch_pro; ?>
|
4 |
<?php if ( is_array( $settings->plugin_hooks ) && count( $settings->plugin_hooks ) ) { ?>
|
5 |
-
<ul>
|
6 |
<?php foreach( $settings->plugin_hooks as $key => $value ) { ?>
|
7 |
-
<li class="wptouch-
|
8 |
-
|
9 |
-
<input type="checkbox" value="<?php echo $key; ?>" name="<?php echo wptouch_admin_get_manual_encoded_setting_name( 'compat', 'enabled_plugins' ); ?>[]"<?php if ( isset( $settings->enabled_plugins[ $key ] ) && $settings->enabled_plugins[ $key ] ) echo ' checked'; ?><?php if ( defined( 'WPTOUCH_IS_FREE' ) ) echo ' disabled'; ?> />
|
10 |
<?php $friendly_name = $wptouch_pro->get_friendly_plugin_name( $key ); ?>
|
11 |
<?php echo sprintf( __( '%s', 'wptouch-pro' ), $friendly_name); ?>
|
12 |
-
|
13 |
-
|
|
|
14 |
</li>
|
15 |
<?php } ?>
|
16 |
-
|
17 |
-
<input type="checkbox" value="ignore" name="<?php echo wptouch_admin_get_manual_encoded_setting_name( 'compat', 'enabled_plugins' ); ?>[]" checked <?php if ( defined( 'WPTOUCH_IS_FREE' ) ) echo ' disabled'; ?> style="display: none;" />
|
18 |
|
19 |
<?php } else { ?>
|
20 |
-
<p><?php _e( 'No plugins to disable.', 'wptouch-pro' ); ?></p>
|
21 |
<?php } ?>
|
2 |
<?php $settings = wptouch_get_settings( 'compat' ); ?>
|
3 |
<?php global $wptouch_pro; ?>
|
4 |
<?php if ( is_array( $settings->plugin_hooks ) && count( $settings->plugin_hooks ) ) { ?>
|
5 |
+
<ul class="plugin-compat-list">
|
6 |
<?php foreach( $settings->plugin_hooks as $key => $value ) { ?>
|
7 |
+
<li class="wptouch-setting">
|
8 |
+
<div class="checkbox-wrap">
|
|
|
9 |
<?php $friendly_name = $wptouch_pro->get_friendly_plugin_name( $key ); ?>
|
10 |
<?php echo sprintf( __( '%s', 'wptouch-pro' ), $friendly_name); ?>
|
11 |
+
<input type="checkbox" class="checkbox" value="<?php echo $key; ?>" name="<?php echo wptouch_admin_get_manual_encoded_setting_name( 'compat', 'enabled_plugins' ); ?>[]" id="<?php echo $key; ?>"<?php if ( isset( $settings->enabled_plugins[ $key ] ) && $settings->enabled_plugins[ $key ] ) echo ' checked'; ?><?php if ( defined( 'WPTOUCH_IS_FREE' ) || ( is_plugin_active_for_network( WPTOUCH_PLUGIN_SLUG ) && !current_user_can( 'manage_network' ) ) ) echo ' disabled'; ?> />
|
12 |
+
<label for="<?php echo $key; ?>"></label>
|
13 |
+
</div>
|
14 |
</li>
|
15 |
<?php } ?>
|
16 |
+
<input type="checkbox" value="ignore" name="<?php echo wptouch_admin_get_manual_encoded_setting_name( 'compat', 'enabled_plugins' ); ?>[]" checked style="display: none;" />
|
|
|
17 |
|
18 |
<?php } else { ?>
|
19 |
+
<p><?php _e( 'No plugins activated to disable.', 'wptouch-pro' ); ?></p>
|
20 |
<?php } ?>
|
admin/settings/html/plugin-compat.php
CHANGED
@@ -1,8 +1,4 @@
|
|
1 |
-
<
|
2 |
-
<?php include( WPTOUCH_DIR . '/include/html/pro.php' ); ?>
|
3 |
-
|
4 |
-
<div id="plugin-compat-setting" class="nano">
|
5 |
-
|
6 |
<div class="content">
|
7 |
<p><?php _e( 'Your active plugin list is refreshing', 'wptouch-pro' ); ?>…</p>
|
8 |
</div>
|
1 |
+
<div id="plugin-compat-setting">
|
|
|
|
|
|
|
|
|
2 |
<div class="content">
|
3 |
<p><?php _e( 'Your active plugin list is refreshing', 'wptouch-pro' ); ?>…</p>
|
4 |
</div>
|
admin/settings/html/post_type.php
CHANGED
@@ -1,15 +1,12 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
<
|
10 |
-
<?php if (
|
11 |
-
<
|
12 |
-
|
13 |
-
<?php if ( wptouch_admin_get_setting_level() == WPTOUCH_SETTING_ADVANCED ) { ?> <span class="advanced"><?php _e( 'Advanced', 'wptouch-pro' ); ?></span><?php } ?>
|
14 |
-
<?php if ( wptouch_admin_is_setting_new() ) { ?> <span class="new"><?php _e( 'New', 'wptouch-pro' ); ?></span><?php } ?>
|
15 |
-
<?php include( WPTOUCH_DIR . '/include/html/pro.php' ); ?>
|
1 |
+
<div class="checkbox-wrap">
|
2 |
+
<?php
|
3 |
+
preg_match('/\[(.*?)\]/', wptouch_admin_get_setting_name(), $matches );
|
4 |
+
$post_type_name = str_replace( array('[',']') , '' , $matches[0] );
|
5 |
+
$type_object = get_post_type_object( $post_type_name );
|
6 |
+
$type_object_encoded = urlencode( serialize( $type_object ) );
|
7 |
+
?>
|
8 |
+
<?php echo $type_object->label; ?>
|
9 |
+
<input type="hidden" name="object_<?php wptouch_admin_the_encoded_setting_name(); ?>" id="<?php wptouch_admin_the_setting_name(); ?>"<?php if ( wptouch_admin_is_post_type_checked() ) echo " checked"; ?> value="<?php echo $post_type_name . '||||' . $type_object_encoded; ?>" />
|
10 |
+
<input type="checkbox" class="checkbox" name="<?php wptouch_admin_the_encoded_setting_name(); ?>" id="<?php echo str_replace( '[', '-', str_replace( ']', '-', wptouch_admin_get_setting_name() ) ); ?>" <?php if ( wptouch_admin_is_post_type_checked() ) { echo ' checked'; } ?> value="<?php echo $post_type_name . '||||' . $type_object_encoded; ?>" />
|
11 |
+
<label for="<?php echo str_replace( '[', '-', str_replace( ']', '-', wptouch_admin_get_setting_name() ) ); ?>"></label>
|
12 |
+
</div>
|
|
|
|
|
|
admin/settings/html/radiolist.php
CHANGED
@@ -1,24 +1,25 @@
|
|
|
|
1 |
<div class="radio-group">
|
2 |
|
3 |
-
<label class="radiolist" for="<?php wptouch_admin_the_setting_name(); ?>">
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
<?php } ?>
|
9 |
-
</label>
|
10 |
-
<?php if ( wptouch_admin_setting_has_tooltip() ) { ?>
|
11 |
-
<i class="wptouch-tooltip wptouch-icon-info-sign" title="<?php wptouch_admin_the_setting_tooltip(); ?>"></i>
|
12 |
-
<?php } ?>
|
13 |
-
<?php if ( wptouch_admin_get_setting_level() == WPTOUCH_SETTING_ADVANCED ) { ?> <span class="advanced"><?php _e( 'Advanced', 'wptouch-pro' ); ?></span><?php } ?>
|
14 |
-
<?php if ( wptouch_admin_is_setting_new() ) { ?>
|
15 |
-
<span class="new"><?php _e( 'New', 'wptouch-pro' ); ?></span>
|
16 |
-
<?php } ?>
|
17 |
-
<?php include( WPTOUCH_DIR . '/include/html/pro.php' ); ?>
|
18 |
|
19 |
-
<?php while ( wptouch_admin_has_list_options() ) { ?>
|
20 |
-
|
|
|
|
|
21 |
|
22 |
-
<p><input type="radio" name="<?php wptouch_admin_the_encoded_setting_name(); ?>" value="<?php wptouch_admin_the_list_option_key(); ?>"<?php if ( wptouch_admin_is_list_option_selected() ) echo " checked"; ?>><?php wptouch_admin_the_list_option_desc(); ?></p>
|
23 |
-
<?php } ?>
|
24 |
</div>
|
1 |
+
<!-- depreciated in 4.0 -->
|
2 |
<div class="radio-group">
|
3 |
|
4 |
+
<label class="radiolist" for="<?php wptouch_admin_the_setting_name(); ?>">
|
5 |
+
<?php if ( wptouch_get_locale() == 'fr_FR' ) { ?>
|
6 |
+
<?php wptouch_admin_the_setting_desc(); ?> :
|
7 |
+
<?php } else { ?>
|
8 |
+
<?php wptouch_admin_the_setting_desc(); ?>:
|
9 |
+
<?php } ?>
|
10 |
+
</label>
|
11 |
+
|
12 |
+
<?php if ( wptouch_admin_setting_has_tooltip() ) { ?>
|
13 |
+
<i class="wptouch-tooltip" title="<?php wptouch_admin_the_setting_tooltip(); ?>"></i>
|
14 |
+
<?php } ?>
|
15 |
+
|
16 |
+
<?php if ( wptouch_admin_is_setting_new() ) { ?>
|
17 |
+
<span class="new"> <?php _e( 'New', 'wptouch-pro' ); ?></span>
|
18 |
<?php } ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
|
20 |
+
<?php while ( wptouch_admin_has_list_options() ) { ?>
|
21 |
+
<?php wptouch_admin_the_list_option(); ?>
|
22 |
+
<p><input type="radio" name="<?php wptouch_admin_the_encoded_setting_name(); ?>" value="<?php wptouch_admin_the_list_option_key(); ?>"<?php if ( wptouch_admin_is_list_option_selected() ) echo " checked"; ?>><?php wptouch_admin_the_list_option_desc(); ?></p>
|
23 |
+
<?php } ?>
|
24 |
|
|
|
|
|
25 |
</div>
|
admin/settings/html/redirect.php
CHANGED
@@ -1,3 +1,5 @@
|
|
|
|
|
|
1 |
<?php
|
2 |
$settings = wptouch_get_settings();
|
3 |
|
@@ -11,7 +13,4 @@
|
|
11 |
$value_string = 'value="' . $settings->homepage_redirect_wp_target . '"';
|
12 |
$contents = str_replace( $value_string, $value_string . ' selected', $contents );
|
13 |
|
14 |
-
echo $contents;
|
15 |
-
|
16 |
-
?>
|
17 |
-
<label for="homepage_redirect_wp_target"><?php _e( 'WordPress Page', 'wptouch-pro' ); ?></label>
|
1 |
+
<?php _e( 'Redirect target', 'wptouch-pro' ); ?>
|
2 |
+
|
3 |
<?php
|
4 |
$settings = wptouch_get_settings();
|
5 |
|
13 |
$value_string = 'value="' . $settings->homepage_redirect_wp_target . '"';
|
14 |
$contents = str_replace( $value_string, $value_string . ' selected', $contents );
|
15 |
|
16 |
+
echo $contents;
|
|
|
|
|
|
admin/settings/html/restore.php
DELETED
@@ -1,4 +0,0 @@
|
|
1 |
-
<label class="textarea" for="wptouch_restore_settings">
|
2 |
-
<?php _e( 'Please paste your encoded settings below and save to restore your settings.', 'wptouch-pro' ); ?>
|
3 |
-
</label>
|
4 |
-
<textarea rows="15" name="wptouch_restore_settings"></textarea>
|
|
|
|
|
|
|
|
admin/settings/html/text.php
CHANGED
@@ -1,10 +1,11 @@
|
|
1 |
-
<
|
2 |
-
|
3 |
-
<?php wptouch_admin_the_setting_desc(); ?>
|
4 |
-
</label>
|
5 |
<?php if ( wptouch_admin_setting_has_tooltip() ) { ?>
|
6 |
-
<i class="wptouch-tooltip
|
7 |
<?php } ?>
|
8 |
-
|
9 |
-
<?php if ( wptouch_admin_is_setting_new() ) { ?>
|
10 |
-
|
|
|
|
|
|
1 |
+
<span><?php wptouch_admin_the_setting_desc(); ?></span>
|
2 |
+
|
|
|
|
|
3 |
<?php if ( wptouch_admin_setting_has_tooltip() ) { ?>
|
4 |
+
<i class="wptouch-tooltip" title="<?php wptouch_admin_the_setting_tooltip(); ?>"></i>
|
5 |
<?php } ?>
|
6 |
+
|
7 |
+
<?php if ( wptouch_admin_is_setting_new() ) { ?>
|
8 |
+
<span class="new"> <?php _e( 'New', 'wptouch-pro' ); ?></span>
|
9 |
+
<?php } ?>
|
10 |
+
|
11 |
+
<input type="text" autocomplete="off" class="text" id="<?php wptouch_admin_the_setting_name(); ?>" name="<?php wptouch_admin_the_encoded_setting_name(); ?>" value="<?php wptouch_admin_the_setting_value(); ?>" placeholder="" />
|
admin/settings/html/textarea.php
CHANGED
@@ -1,12 +1,17 @@
|
|
1 |
-
|
2 |
-
<?php
|
3 |
-
|
4 |
-
|
5 |
|
6 |
-
<?php if ( wptouch_admin_setting_has_tooltip() ) { ?>
|
7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
<?php } ?>
|
9 |
-
|
10 |
-
<?php if ( wptouch_admin_is_setting_new() ) { ?> <span class="new"><?php _e( 'New', 'wptouch-pro' ); ?></span><?php } ?>
|
11 |
-
<br />
|
12 |
<textarea rows="5" class="textarea" id="<?php wptouch_admin_the_setting_name(); ?>" name="<?php wptouch_admin_the_encoded_setting_name(); ?>"><?php echo htmlspecialchars( wptouch_admin_the_setting_value() ); ?></textarea>
|
1 |
+
<?php if ( wptouch_admin_get_setting_desc() != '' ) { ?>
|
2 |
+
<label class="textarea" for="<?php wptouch_admin_the_setting_name(); ?>">
|
3 |
+
<?php wptouch_admin_the_setting_desc(); ?>
|
4 |
+
</label>
|
5 |
|
6 |
+
<?php if ( wptouch_admin_setting_has_tooltip() ) { ?>
|
7 |
+
<i class="wptouch-tooltip" title="<?php wptouch_admin_the_setting_tooltip(); ?>"></i>
|
8 |
+
<?php } ?>
|
9 |
+
|
10 |
+
<?php if ( wptouch_admin_is_setting_new() ) { ?>
|
11 |
+
<span class="new"> <?php _e( 'New', 'wptouch-pro' ); ?></span>
|
12 |
+
<?php } ?>
|
13 |
+
|
14 |
+
<br />
|
15 |
<?php } ?>
|
16 |
+
|
|
|
|
|
17 |
<textarea rows="5" class="textarea" id="<?php wptouch_admin_the_setting_name(); ?>" name="<?php wptouch_admin_the_encoded_setting_name(); ?>"><?php echo htmlspecialchars( wptouch_admin_the_setting_value() ); ?></textarea>
|
admin/settings/html/theme-browser-ajax.php
DELETED
@@ -1,13 +0,0 @@
|
|
1 |
-
|
2 |
-
<?php require_once( dirname( __FILE__ ) . '/../include/theme-browser.php' ); ?>
|
3 |
-
|
4 |
-
<?php wptouch_rewind_themes(); ?>
|
5 |
-
|
6 |
-
<?php $cloud_themes = wptouch_get_available_cloud_themes(); ?>
|
7 |
-
|
8 |
-
<?php while ( wptouch_has_themes( true ) ) { ?>
|
9 |
-
<?php wptouch_the_theme(); ?>
|
10 |
-
<?php if ( wptouch_is_theme_in_cloud() ) { ?>
|
11 |
-
<?php include( 'theme-browser-item.php' ); ?>
|
12 |
-
<?php } ?>
|
13 |
-
<?php } ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/settings/html/theme-browser-item-detail.php
ADDED
@@ -0,0 +1,92 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
if ( is_network_admin() ) {
|
3 |
+
$activate_label = __( 'Install', 'wptouch-pro' );
|
4 |
+
} else {
|
5 |
+
$activate_label = __( 'Activate', 'wptouch-pro' );
|
6 |
+
}
|
7 |
+
?>
|
8 |
+
<div id="<?php echo wptouch_convert_to_class_name( wptouch_get_theme_title() ); ?>-container" class="view inner-view <?php wptouch_the_theme_classes(); ?>">
|
9 |
+
<div class="back-link">
|
10 |
+
<a href="#main-theme-panel" data-popview>
|
11 |
+
<i class="icon-left-open-big"></i> <?php _e( 'Back to themes', 'wptouch-pro' ); ?>
|
12 |
+
</a>
|
13 |
+
</div>
|
14 |
+
|
15 |
+
<div class="item-information inner-section">
|
16 |
+
<?php if ( wptouch_get_theme_icon() ) { ?>
|
17 |
+
<div class="image-wrapper">
|
18 |
+
<img src="<?php wptouch_the_theme_icon(); ?>" alt="<?php wptouch_the_theme_title(); ?>" class="<?php echo wptouch_convert_to_class_name( wptouch_get_theme_title() ); ?>" />
|
19 |
+
</div><!-- image-wrapper -->
|
20 |
+
<?php } ?>
|
21 |
+
<h2>
|
22 |
+
|
23 |
+
<?php wptouch_the_theme_title(); ?>
|
24 |
+
<?php if ( wptouch_is_theme_active() && current_user_can( 'manage_options' ) ) { ?><i class="icon-ok-circle"></i><?php } ?>
|
25 |
+
<span class="version"><?php wptouch_the_theme_version(); ?></span>
|
26 |
+
</h2>
|
27 |
+
<p class="desc">
|
28 |
+
<?php wptouch_the_theme_description(); ?>
|
29 |
+
</p>
|
30 |
+
|
31 |
+
<?php if ( !is_network_admin() || wptouch_is_controlled_network() ) { ?>
|
32 |
+
<div class="action-buttons<?php if ( !wptouch_can_cloud_install() && wptouch_is_theme_in_cloud() ) { ?> no-install<?php } ?>">
|
33 |
+
|
34 |
+
<?php if ( wptouch_is_theme_active() && current_user_can( 'manage_options' ) && !is_network_admin() ) { ?>
|
35 |
+
<a class="button" href="<?php echo admin_url( 'customize.php' ); ?>"><?php _e( 'Customize', 'wptouch-pro' ); ?></a>
|
36 |
+
<?php } ?>
|
37 |
+
|
38 |
+
<?php if ( current_user_can( 'install_plugins' ) && !defined( 'WPTOUCH_IS_FREE' ) ) { ?>
|
39 |
+
<?php if ( wptouch_get_theme_buy_url() ) { ?>
|
40 |
+
<?php if ( !is_multisite() || is_network_admin() ) { ?>
|
41 |
+
<a class="button buynow" href="<?php wptouch_the_theme_buy_url(); ?>">
|
42 |
+
<?php _e( 'Add to License', 'wptouch-pro' ); ?>
|
43 |
+
</a>
|
44 |
+
<?php } ?>
|
45 |
+
<?php } elseif ( ( !wptouch_is_theme_active() && !is_network_admin() ) || wptouch_is_theme_in_cloud() ) { ?>
|
46 |
+
<a class="button activate" href="<?php echo wptouch_check_url_ssl( wptouch_get_theme_activate_link_url() ); ?>">
|
47 |
+
<?php echo $activate_label; ?>
|
48 |
+
</a>
|
49 |
+
|
50 |
+
<?php if ( !wptouch_can_cloud_install() && wptouch_is_theme_in_cloud() && wptouch_get_theme_download_url() && !wptouch_get_theme_buy_url() && ( !wptouch_is_controlled_network() || is_network_admin() ) ) { ?>
|
51 |
+
<a class="button download theme" href="<?php wptouch_the_theme_download_url(); ?>">
|
52 |
+
<?php _e( 'Download', 'wptouch-pro' ); ?>
|
53 |
+
</a>
|
54 |
+
<?php } ?>
|
55 |
+
|
56 |
+
<?php } ?>
|
57 |
+
<?php } ?>
|
58 |
+
</div>
|
59 |
+
<?php } ?>
|
60 |
+
</div>
|
61 |
+
|
62 |
+
<?php if ( wptouch_get_theme_screenshots() ) { ?>
|
63 |
+
<div class="inner-section screenshots">
|
64 |
+
<h3><?php _e( 'Screenshots', 'wptouch-pro' ); ?></h3>
|
65 |
+
<div class="screenshot-carousel">
|
66 |
+
<div class="carousel-inner">
|
67 |
+
<?php wptouch_reset_theme_screenshot(); ?>
|
68 |
+
<?php while ( wptouch_has_theme_screenshots() ) { ?>
|
69 |
+
<?php wptouch_the_theme_screenshot(); ?>
|
70 |
+
<img width="100" src="<?php wptouch_the_theme_screenshot_url(); ?>" alt="preview-image" />
|
71 |
+
<?php } ?>
|
72 |
+
</div>
|
73 |
+
</div>
|
74 |
+
</div>
|
75 |
+
<?php } ?>
|
76 |
+
|
77 |
+
<?php if ( wptouch_get_theme_long_desc() != '' ) { ?>
|
78 |
+
<div class="inner-section long-desc">
|
79 |
+
<h3><?php _e( 'Description', 'wptouch-pro' ); ?></h3>
|
80 |
+
<?php wptouch_the_theme_long_desc(); ?>
|
81 |
+
</div>
|
82 |
+
<?php } ?>
|
83 |
+
|
84 |
+
<?php if ( wptouch_get_theme_changelog() != '' ) { ?>
|
85 |
+
<div class="inner-section changelog">
|
86 |
+
<h3><?php _e( 'Changelog', 'wptouch-pro' ); ?></h3>
|
87 |
+
<p class="changelog">
|
88 |
+
<?php wptouch_the_theme_changelog(); ?>
|
89 |
+
</p>
|
90 |
+
</div>
|
91 |
+
<?php } ?>
|
92 |
+
</div>
|
admin/settings/html/theme-browser-item.php
CHANGED
@@ -1,147 +1,20 @@
|
|
1 |
-
<li class="<?php wptouch_the_theme_classes(); ?>">
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
<
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
<a href="#" data-toggle="modal" data-target="#modal-<?php echo wptouch_convert_to_class_name( wptouch_get_theme_title() ); ?>">
|
14 |
-
<img src="<?php wptouch_the_theme_screenshot(); ?>" alt="<?php wptouch_the_theme_title(); ?>" id="<?php echo wptouch_convert_to_class_name( wptouch_get_theme_title() ); ?>" />
|
15 |
-
<?php if ( isset( $cloud_themes[ wptouch_convert_to_class_name( wptouch_get_theme_title() ) ] ) && wptouch_get_theme_title() != 'Scaffold' ) { ?>
|
16 |
-
<span class="view"><?php _e( 'Click to view screenshots', 'wptouch-pro' ); ?></span>
|
17 |
-
<?php } ?>
|
18 |
-
</a>
|
19 |
-
<?php } ?>
|
20 |
-
|
21 |
-
<?php if ( !wptouch_is_theme_in_cloud() ) { ?>
|
22 |
-
<div class="modal hide" id="modal-<?php echo wptouch_convert_to_class_name( wptouch_get_theme_title() ); ?>" tabindex="-1" role="dialog" aria-hidden="true">
|
23 |
-
<div class="modal-header">
|
24 |
-
<h3 id="<?php echo wptouch_convert_to_class_name( wptouch_get_theme_title() ); ?>-title"><?php wptouch_the_theme_title(); ?></h3>
|
25 |
-
</div>
|
26 |
-
<div class="modal-body">
|
27 |
-
<div id="carousel-<?php echo wptouch_convert_to_class_name( wptouch_get_theme_title() ); ?>" class="carousel slide" data-interval="0">
|
28 |
-
<!-- Carousel items -->
|
29 |
-
<div class="carousel-inner">
|
30 |
-
<?php wptouch_reset_theme_preview(); ?>
|
31 |
-
<?php while ( wptouch_has_theme_preview_images() ) { ?>
|
32 |
-
<?php wptouch_the_theme_preview_image(); ?>
|
33 |
-
<div class="<?php if ( wptouch_is_first_theme_preview_image() ) echo 'active '; ?>item">
|
34 |
-
<img src="<?php wptouch_the_theme_preview_url(); ?>" alt="preview-image" />
|
35 |
-
</div>
|
36 |
-
<?php } ?>
|
37 |
-
</div>
|
38 |
-
<!-- Carousel nav -->
|
39 |
-
<a class="carousel-control left" href="#carousel-<?php echo wptouch_convert_to_class_name( wptouch_get_theme_title() ); ?>" data-slide="prev">«</a>
|
40 |
-
<a class="carousel-control right" href="#carousel-<?php echo wptouch_convert_to_class_name( wptouch_get_theme_title() ); ?>" data-slide="next">»</a>
|
41 |
-
</div>
|
42 |
-
</div>
|
43 |
-
<div class="modal-footer">
|
44 |
-
<button class="button" data-dismiss="modal" aria-hidden="true">Close</button>
|
45 |
-
</div>
|
46 |
-
</div><!--modal -->
|
47 |
-
<?php } ?>
|
48 |
-
|
49 |
-
</div><!-- image-wrapper -->
|
50 |
-
<?php } ?>
|
51 |
-
|
52 |
-
<div class="item-information">
|
53 |
-
<?php if ( wptouch_cloud_theme_update_available() ) { ?>
|
54 |
-
<?php if ( !defined( 'WPTOUCH_IS_FREE' ) && wptouch_is_site_licensed() ) { ?>
|
55 |
-
<?php if ( wptouch_can_cloud_install( true ) ) { ?>
|
56 |
-
<a class="button-primary upgrade" href="#" data-name="<?php wptouch_the_theme_base(); ?>" data-url="<?php wptouch_the_theme_download_url(); ?>" data-loading-text="<i class='wptouch-icon-cloud-download'></i> <?php _e( 'Updating...', 'wptouch-pro' ); ?>">
|
57 |
-
<i class="wptouch-icon-cloud-download"></i>
|
58 |
-
<?php echo sprintf( __( 'Update to %s', 'wptouch-pro' ), wptouch_cloud_theme_get_update_version() ); ?>
|
59 |
-
</a>
|
60 |
-
<?php } else { ?>
|
61 |
-
<a class="button-primary cant-upgrade" href="<?php wptouch_the_theme_download_url(); ?>"><i class="wptouch-icon-download"></i> <?php echo sprintf( __( 'Download %s Update', 'wptouch-pro' ), wptouch_cloud_theme_get_update_version() ); ?></a>
|
62 |
-
<?php } ?>
|
63 |
-
<?php } ?>
|
64 |
-
<?php } ?>
|
65 |
-
<h4>
|
66 |
-
<?php if ( wptouch_has_theme_tags() ) { ?>
|
67 |
-
<?php $tags = wptouch_get_theme_tags(); ?>
|
68 |
-
<?php foreach( $tags as $tag ) { ?>
|
69 |
-
<i class="wptouch-tooltip theme-tag tag-<?php echo wptouch_convert_to_class_name( $tag ); ?>" title="<?php echo sprintf( __( 'This theme supports %s devices', 'wptouch-pro' ), wptouch_get_translated_device_type( $tag ) ); ?>"></i>
|
70 |
-
<?php } ?>
|
71 |
-
<?php } ?>
|
72 |
-
<?php wptouch_the_theme_title(); ?> <span class="version"><?php wptouch_the_theme_version(); ?></span>
|
73 |
-
</h4>
|
74 |
-
<h5>
|
75 |
-
<?php echo sprintf( __( 'by %s', 'wptouch-pro' ), wptouch_get_theme_author() ); ?>
|
76 |
-
</h5>
|
77 |
-
|
78 |
-
<p class="desc">
|
79 |
-
<?php wptouch_the_theme_description(); ?>
|
80 |
-
<?php if ( !wptouch_is_theme_in_cloud() ) { ?>
|
81 |
-
<i class="wptouch-tooltip wptouch-icon-info-sign" title="<?php echo sprintf( __( 'Location: %s', 'wptouch-pro' ), wptouch_get_theme_location() ); ?>"></i>
|
82 |
-
<?php } ?>
|
83 |
-
</p>
|
84 |
-
|
85 |
-
</div>
|
86 |
-
<ul class="item-actions">
|
87 |
-
<?php if ( wptouch_is_theme_in_cloud() ) { ?>
|
88 |
-
<?php if ( wptouch_get_theme_buy_url() ) { ?>
|
89 |
-
<li>
|
90 |
-
<?php if ( wptouch_theme_type() == 'WITHLICENSE' ) { ?>
|
91 |
-
<?php if ( defined( 'WPTOUCH_IS_FREE' ) ) { ?>
|
92 |
-
<?php if ( wptouch_theme_info_url() ) { ?>
|
93 |
-
<a class="button-secondary" href="<?php echo wptouch_theme_info_url(); ?>"><?php _e( 'Available in WPtouch Pro', 'wptouch-pro' ); ?></a>
|
94 |
-
<?php } ?>
|
95 |
-
<?php } else { ?>
|
96 |
-
<?php if ( wptouch_theme_info_url() ) { ?>
|
97 |
-
<a class="button-secondary" href="<?php echo wptouch_theme_info_url(); ?>"><?php _e( 'More Info', 'wptouch-pro' ); ?></a>
|
98 |
-
<?php } ?>
|
99 |
-
|
100 |
-
<?php if ( wptouch_has_license() ) { ?>
|
101 |
-
<a class="button-secondary buynow" href="<?php wptouch_the_theme_buy_url(); ?>"><?php _e( 'Upgrade License', 'wptouch-pro' ); ?></a>
|
102 |
-
<?php } else { ?>
|
103 |
-
<a class="button-secondary buynow" href="<?php wptouch_the_theme_buy_url(); ?>"><?php _e( 'Get License', 'wptouch-pro' ); ?></a>
|
104 |
-
<?php } ?>
|
105 |
-
<?php } ?>
|
106 |
-
|
107 |
-
<?php } else { ?>
|
108 |
-
<a class="button-secondary buynow" href="<?php wptouch_the_theme_buy_url(); ?>"><?php _e( 'Buy Now', 'wptouch-pro' ); ?></a>
|
109 |
-
<?php } ?>
|
110 |
-
</li>
|
111 |
-
<?php } else { ?>
|
112 |
-
<?php if ( current_user_can( 'install_plugins' ) ) { ?>
|
113 |
-
<?php if ( !defined( 'WPTOUCH_IS_FREE' ) ) { ?>
|
114 |
-
<li>
|
115 |
-
<?php if ( wptouch_can_cloud_install( true ) ) { ?>
|
116 |
-
<a class="button-secondary download" href="#" data-name="<?php wptouch_the_theme_base(); ?>" data-url="<?php wptouch_the_theme_download_url(); ?>" data-loading-text="<i class='wptouch-icon-cloud-download'></i><?php _e( 'Downloading...', 'wptouch-pro' ); ?>">
|
117 |
-
<i class="wptouch-icon-cloud-download"></i><?php _e( 'Install', 'wptouch-pro' ); ?>
|
118 |
-
</a>
|
119 |
-
<?php } else { ?>
|
120 |
-
<a class="button-secondary" href="<?php wptouch_the_theme_download_url(); ?>"><i class="wptouch-icon-download"></i> <?php _e( 'Download', 'wptouch-pro' ); ?></a>
|
121 |
-
<?php } ?>
|
122 |
-
</li>
|
123 |
-
<?php } ?>
|
124 |
<?php } ?>
|
125 |
-
|
126 |
-
|
127 |
-
<?php } else { ?>
|
128 |
-
|
129 |
-
<?php if ( wptouch_is_theme_active() && current_user_can( 'manage_options' ) ) { ?>
|
130 |
-
<li><a class="button-primary" href="admin.php?page=wptouch-admin-theme-settings"><?php _e( 'Setup', 'wptouch-pro' ); ?></a></li>
|
131 |
-
<?php } ?>
|
132 |
-
|
133 |
-
<?php if ( !wptouch_is_theme_active() && current_user_can( 'switch_themes' ) && !defined( 'WPTOUCH_IS_FREE' ) ) { ?>
|
134 |
-
<li><a class="button-primary" href="<?php wtouch_the_theme_activate_link_url(); ?>"><?php _e( 'Activate', 'wptouch-pro' ); ?></a></li>
|
135 |
-
<?php } ?>
|
136 |
-
|
137 |
-
<?php if ( !defined( 'WPTOUCH_IS_FREE' ) ) { ?>
|
138 |
-
<li><a class="button-secondary" href="<?php wtouch_the_theme_copy_link_url(); ?>"><?php _e( 'Copy', 'wptouch-pro' ); ?></a></li>
|
139 |
-
<?php } ?>
|
140 |
-
|
141 |
-
<?php if ( wptouch_is_theme_custom() && !wptouch_is_theme_active() && !defined( 'WPTOUCH_IS_FREE' ) ) { ?>
|
142 |
-
<li><a class="button-secondary" class="delete-theme ajax-button" href="<?php wptouch_the_theme_delete_link_url(); ?>"><?php _e( 'Delete', 'wptouch-pro' ); ?></a></li>
|
143 |
-
<?php } ?>
|
144 |
|
145 |
-
|
146 |
-
|
|
|
|
|
147 |
</li>
|
1 |
+
<li class="<?php wptouch_the_theme_classes(); ?> <?php if ( wptouch_get_theme_buy_url() ) { echo 'no-license'; } ?>" data-pushview="#<?php echo wptouch_convert_to_class_name( wptouch_get_theme_title() ); ?>-container">
|
2 |
+
|
3 |
+
<div class="item-information">
|
4 |
+
<?php if ( wptouch_get_theme_icon() ) { ?>
|
5 |
+
<div class="image-wrapper">
|
6 |
+
<img src="<?php wptouch_the_theme_icon(); ?>" alt="<?php wptouch_the_theme_title(); ?>" id="<?php echo wptouch_convert_to_class_name( wptouch_get_theme_title() ); ?>" />
|
7 |
+
</div><!-- image-wrapper -->
|
8 |
+
<?php } ?>
|
9 |
+
<h2>
|
10 |
+
<?php wptouch_the_theme_title(); ?>
|
11 |
+
<?php if ( !wptouch_is_theme_in_cloud() && is_network_admin() && wptouch_is_controlled_network() ) { ?>
|
12 |
+
<span class="installed"><?php _e( 'Installed', 'wptouch-pro' ); ?></span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
<?php } ?>
|
14 |
+
</h2>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
|
16 |
+
<p class="desc">
|
17 |
+
<?php wptouch_the_theme_description(); ?>
|
18 |
+
</p>
|
19 |
+
</div>
|
20 |
</li>
|
admin/settings/html/theme-browser.php
CHANGED
@@ -1,27 +1,41 @@
|
|
1 |
<?php if ( !wptouch_can_cloud_install( true ) ) { ?>
|
2 |
-
<div class="cloud-update-issue"
|
|
|
|
|
3 |
<?php } ?>
|
4 |
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
|
|
|
|
|
|
|
|
13 |
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
|
|
|
|
|
|
|
|
|
|
21 |
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
|
|
|
|
|
1 |
<?php if ( !wptouch_can_cloud_install( true ) ) { ?>
|
2 |
+
<div class="cloud-update-issue">
|
3 |
+
<?php echo sprintf( __( 'Your server configuration is preventing WPtouch Pro from installing and updating from the Cloud. %sPlease visit %sthis article%s to follow the steps to enable Cloud install, or you can manually download and install into the wptouch-data/%s directory.', 'wptouch-pro' ), '<br /><br />', '<a href="https://support.wptouch.com/support/solutions/articles/5000525305-themes-or-extensions-cannot-be-downloaded">', '</a>', 'extensions' ); ?>
|
4 |
+
</div>
|
5 |
<?php } ?>
|
6 |
|
7 |
+
<div class="theme-panels">
|
8 |
+
<div class="view" id="main-theme-panel">
|
9 |
+
<?php
|
10 |
+
$counter = 0;
|
11 |
+
while ( wptouch_has_themes( true ) ) {
|
12 |
+
wptouch_the_theme();
|
13 |
+
if ( ( !is_multisite() || wptouch_is_network_available( 'theme' ) || is_network_admin() ) && wptouch_get_theme_title() != 'Foundation' ) {
|
14 |
+
if ( $counter == 0 ) { echo '<ul class="cloud-browser themes">'; }
|
15 |
+
$counter ++;
|
16 |
+
include( 'theme-browser-item.php' );
|
17 |
+
}
|
18 |
+
}
|
19 |
|
20 |
+
if ( $counter > 0 ) {
|
21 |
+
echo '</ul>';
|
22 |
+
} else {
|
23 |
+
?>
|
24 |
+
<div class="none-available">
|
25 |
+
<center>
|
26 |
+
<i class="icon-theme-browser"></i>
|
27 |
+
<p><?php _e( 'No themes available', 'wptouch-pro' ); ?></p>
|
28 |
+
</center>
|
29 |
+
</div>
|
30 |
+
<?php } ?>
|
31 |
+
</div>
|
32 |
|
33 |
+
<?php
|
34 |
+
while ( wptouch_has_themes( true ) ) {
|
35 |
+
wptouch_the_theme();
|
36 |
+
if ( wptouch_get_theme_title() != 'Foundation' && ( !is_multisite() || wptouch_is_network_available( 'theme' ) || is_network_admin() ) ) {
|
37 |
+
include( 'theme-browser-item-detail.php' );
|
38 |
+
}
|
39 |
+
}
|
40 |
+
?>
|
41 |
+
</div>
|
admin/settings/html/touchboard.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php $settings = wptouch_get_settings(); ?>
|
2 |
|
3 |
<!-- what's new right side -->
|
4 |
-
<div class="overview-right-wrap clearfix">
|
5 |
<div id="touchboard-links" class="overview-box-appearance">
|
6 |
<h3><?php _e( 'Quick Links', 'wptouch-pro' ); ?></h3>
|
7 |
<ul>
|
1 |
<?php $settings = wptouch_get_settings(); ?>
|
2 |
|
3 |
<!-- what's new right side -->
|
4 |
+
<div class="overview-right-wrap wptouch-clearfix">
|
5 |
<div id="touchboard-links" class="overview-box-appearance">
|
6 |
<h3><?php _e( 'Quick Links', 'wptouch-pro' ); ?></h3>
|
7 |
<ul>
|
admin/settings/html/updates-available.php
ADDED
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php global $wptouch_pro; ?>
|
2 |
+
<?php if ( !wptouch_can_cloud_install( true ) ) { ?>
|
3 |
+
<div class="cloud-update-issue">
|
4 |
+
<?php echo sprintf( __( 'Your server configuration is preventing WPtouch Pro from installing and updating from the Cloud. %sPlease visit %sthis article%s to follow the steps to enable Cloud install, or you can manually download and install into the wptouch-data/%s directory.', 'wptouch-pro' ), '<br /><br />', '<a href="https://support.wptouch.com/support/solutions/articles/5000525305-themes-or-extensions-cannot-be-downloaded">', '</a>', 'extensions' ); ?>
|
5 |
+
</div>
|
6 |
+
<?php } elseif ( !wptouch_should_show_license_nag() ) { ?>
|
7 |
+
<button class="update-all" data-loading-text="<?php _e( 'Updating', 'wptouch-pro' ); ?>…"><?php _e( 'Update All', 'wptouch-pro' ); ?></button>
|
8 |
+
<?php } ?>
|
9 |
+
|
10 |
+
<?php if ( $wptouch_pro->theme_upgrades_available() ) { ?>
|
11 |
+
<div class="updates-themes">
|
12 |
+
<h3><?php _e( 'Themes', 'wptouch-pro' ); ?></h3>
|
13 |
+
<ul>
|
14 |
+
<?php while ( wptouch_has_themes( true ) ) { ?>
|
15 |
+
<?php wptouch_the_theme(); ?>
|
16 |
+
<?php if ( wptouch_cloud_theme_update_available() ) { ?>
|
17 |
+
<li>
|
18 |
+
<?php if ( !wptouch_should_show_license_nag() && !wptouch_can_cloud_install( true ) ) { ?>
|
19 |
+
<a class="button download theme" href="<?php wptouch_the_theme_download_url(); ?>">
|
20 |
+
<?php _e( 'Download', 'wptouch-pro' ); ?>
|
21 |
+
</a>
|
22 |
+
<?php } ?>
|
23 |
+
<?php if ( wptouch_get_theme_icon() ) { ?>
|
24 |
+
<img src="<?php wptouch_the_theme_icon(); ?>" alt="<?php wptouch_the_theme_title(); ?>" />
|
25 |
+
<?php } ?>
|
26 |
+
<h4><?php wptouch_the_theme_title(); ?></h4>
|
27 |
+
<span class="version"><?php wptouch_the_theme_version(); ?></span>
|
28 |
+
<span class="update-version">
|
29 |
+
<?php echo sprintf( __( 'Upgrade to %s', 'wptouch-pro' ), wptouch_cloud_theme_get_update_version() ); ?>
|
30 |
+
</span>
|
31 |
+
</li>
|
32 |
+
<?php } ?>
|
33 |
+
<?php } ?>
|
34 |
+
</ul>
|
35 |
+
</div>
|
36 |
+
<?php } ?>
|
37 |
+
|
38 |
+
<?php if ( $wptouch_pro->extension_upgrades_available() ) { ?>
|
39 |
+
<div class="updates-extensions">
|
40 |
+
<h3><?php _e( 'Extensions', 'wptouch-pro' ); ?></h3>
|
41 |
+
<ul>
|
42 |
+
<?php while ( wptouch_has_addons( true ) ) { ?>
|
43 |
+
<?php wptouch_the_addon(); ?>
|
44 |
+
<?php if ( wptouch_cloud_addon_update_available() ) { ?>
|
45 |
+
<li>
|
46 |
+
<?php if ( wptouch_get_addon_icon() ) { ?>
|
47 |
+
<img src="<?php wptouch_the_addon_icon(); ?>" alt="<?php wptouch_the_addon_title(); ?>" />
|
48 |
+
<?php } ?>
|
49 |
+
<h4><?php wptouch_the_addon_title(); ?></h4>
|
50 |
+
<span class="version"><?php wptouch_the_addon_version(); ?></span>
|
51 |
+
<span class="update-version">
|
52 |
+
<?php echo sprintf( __( 'Upgrade to %s', 'wptouch-pro' ), wptouch_cloud_addon_get_update_version() ); ?>
|
53 |
+
</span>
|
54 |
+
<?php if ( !wptouch_should_show_license_nag() && !wptouch_can_cloud_install( true ) ) { ?>
|
55 |
+
<a class="button download extension" href="<?php wptouch_the_addon_download_url(); ?>">
|
56 |
+
<?php _e( 'Download', 'wptouch-pro' ); ?>
|
57 |
+
</a>
|
58 |
+
<?php } ?>
|
59 |
+
</li>
|
60 |
+
<?php } ?>
|
61 |
+
<?php } ?>
|
62 |
+
</ul>
|
63 |
+
</div>
|
64 |
+
<?php } ?>
|
admin/settings/html/user-agent-list.php
DELETED
@@ -1,30 +0,0 @@
|
|
1 |
-
<?php global $wptouch_pro; ?>
|
2 |
-
<div id="user-agent-list">
|
3 |
-
<?php if ( wptouch_get_locale() == 'fr_FR' ) { ?>
|
4 |
-
<?php _e( 'WPtouch Pro will be active when any of the following user-agents or user-agent combinations are matched', 'wptouch-pro' ); ?> :
|
5 |
-
<?php } else { ?>
|
6 |
-
<?php _e( 'WPtouch Pro will be active when any of the following user-agents or user-agent combinations are matched', 'wptouch-pro' ); ?> :
|
7 |
-
<?php } ?>
|
8 |
-
|
9 |
-
<br />
|
10 |
-
<span class="agents">
|
11 |
-
<?php
|
12 |
-
$agents = $wptouch_pro->get_supported_user_agents();
|
13 |
-
$new_agents = array();
|
14 |
-
|
15 |
-
foreach( $agents as $agent ) {
|
16 |
-
if ( is_array( $agent ) && count( $agent ) > 0 ) {
|
17 |
-
$new_agent = $agent[0];
|
18 |
-
if ( count( $agent ) > 1 ) {
|
19 |
-
$new_agent .= ' & ' . $agent[1];
|
20 |
-
}
|
21 |
-
$new_agents[] = $new_agent;
|
22 |
-
} elseif( !is_array( $agent ) ) {
|
23 |
-
$new_agents[] = $agent;
|
24 |
-
}
|
25 |
-
}
|
26 |
-
|
27 |
-
echo implode( ', ', $new_agents );
|
28 |
-
?>
|
29 |
-
</span>
|
30 |
-
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/{css → settings/html}/wptouch-admin-3.css
RENAMED
File without changes
|
admin/settings/include/checklist.php
CHANGED
@@ -21,6 +21,6 @@ function wptouch_admin_is_checklist_option_selected() {
|
|
21 |
return false;
|
22 |
}
|
23 |
} else {
|
24 |
-
return ( isset( $settings->$setting_name ) && in_array( wptouch_admin_get_list_option_key() , $settings->$setting_name ) );
|
25 |
}
|
26 |
}
|
21 |
return false;
|
22 |
}
|
23 |
} else {
|
24 |
+
return ( isset( $settings->$setting_name ) && is_array( $settings->$setting_name ) && in_array( wptouch_admin_get_list_option_key() , $settings->$setting_name ) );
|
25 |
}
|
26 |
}
|
admin/settings/include/custom-latest-posts.php
CHANGED
@@ -1,17 +1,14 @@
|
|
1 |
-
<?php
|
|
|
2 |
$settings = foundation_get_settings();
|
3 |
-
|
4 |
ob_start();
|
5 |
-
wp_dropdown_pages();
|
6 |
-
$
|
7 |
ob_end_clean();
|
8 |
-
|
9 |
-
$contents = str_replace( 'page_id', wptouch_admin_get_manual_encoded_setting_name( 'foundation', 'latest_posts_page' ), $contents );
|
10 |
-
$value_string = 'value="' . $settings->latest_posts_page . '"';
|
11 |
-
$contents = str_replace( $value_string, $value_string . ' selected', $contents );
|
12 |
-
|
13 |
$is_custom = ( $settings->latest_posts_page == 'none' ? ' selected' : '' );
|
14 |
-
$
|
15 |
-
|
16 |
-
|
17 |
-
|
1 |
+
<?php
|
2 |
+
global $latest_post_options;
|
3 |
$settings = foundation_get_settings();
|
4 |
+
|
5 |
ob_start();
|
6 |
+
wp_dropdown_pages();
|
7 |
+
$latest_post_options = ob_get_contents();
|
8 |
ob_end_clean();
|
9 |
+
|
|
|
|
|
|
|
|
|
10 |
$is_custom = ( $settings->latest_posts_page == 'none' ? ' selected' : '' );
|
11 |
+
$latest_post_options = str_replace( "id='page_id'>", 'id="page_id"><option class="level-0" value="none"' . $is_custom . '>' . __( 'WordPress Reading Settings', 'wptouch-pro' ) . '</option>', $latest_post_options );
|
12 |
+
$latest_post_options = str_replace( 'page_id', wptouch_admin_get_manual_encoded_setting_name( 'foundation', 'latest_posts_page' ), $latest_post_options );
|
13 |
+
$value_string = 'value="' . $settings->latest_posts_page . '"';
|
14 |
+
$latest_post_options = str_replace( $value_string, $value_string . ' selected', $latest_post_options );
|
admin/settings/include/extension-browser.php
CHANGED
@@ -1,4 +1,3 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
require_once( WPTOUCH_DIR . '/core/admin-extensions.php' );
|
4 |
-
|
1 |
<?php
|
2 |
|
3 |
+
require_once( WPTOUCH_DIR . '/core/admin-extensions.php' );
|
|
admin/settings/include/icon_menu_area.php
DELETED
@@ -1,2 +0,0 @@
|
|
1 |
-
<?php require_once( WPTOUCH_DIR . '/core/admin-icons.php' ); ?>
|
2 |
-
<?php require_once( WPTOUCH_DIR . '/core/menu.php' );
|
|
|
|
admin/settings/include/image-upload.php
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
require_once( 'text.php' );
|
1 |
<?php
|
2 |
|
3 |
+
require_once( 'text.php' );
|
admin/settings/include/installed_icon_sets.php
DELETED
File without changes
|
admin/settings/include/multiline-comma.php
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
require_once( 'text.php' );
|
4 |
+
|
5 |
+
function wptouch_admin_split_setting() {
|
6 |
+
global $_primed_setting;
|
7 |
+
$settings = wptouch_get_settings( $_primed_setting->domain, false );
|
8 |
+
$setting_name = $_primed_setting->name;
|
9 |
+
if ( $settings->$setting_name != '' ) {
|
10 |
+
$setting_data = explode( ',', $settings->$setting_name );
|
11 |
+
} else {
|
12 |
+
$setting_data = array();
|
13 |
+
}
|
14 |
+
return $setting_data;
|
15 |
+
}
|
admin/settings/include/multiline-newline.php
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
require_once( 'text.php' );
|
4 |
+
|
5 |
+
function wptouch_admin_split_setting_newline() {
|
6 |
+
global $_primed_setting;
|
7 |
+
$settings = wptouch_get_settings( $_primed_setting->domain, false );
|
8 |
+
$setting_name = $_primed_setting->name;
|
9 |
+
if ( $settings->$setting_name != '' ) {
|
10 |
+
$setting_data = explode( "\r\n", $settings->$setting_name );
|
11 |
+
} else {
|
12 |
+
$setting_data = array();
|
13 |
+
}
|
14 |
+
return $setting_data;
|
15 |
+
}
|
admin/settings/include/radiolist.php
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
require_once( 'list.php' );
|
1 |
<?php
|
2 |
|
3 |
+
require_once( 'list.php' );
|
admin/settings/include/textarea.php
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
require_once( 'text.php' );
|
1 |
<?php
|
2 |
|
3 |
+
require_once( 'text.php' );
|
core/addon-theme-installer.php
CHANGED
@@ -58,9 +58,7 @@ class WPtouchAddonThemeInstaller {
|
|
58 |
}
|
59 |
|
60 |
private function can_install_directly( $path ) {
|
61 |
-
|
62 |
-
|
63 |
-
return is_writable( $destination_dir );
|
64 |
}
|
65 |
|
66 |
private function can_unzip() {
|
@@ -117,7 +115,7 @@ class WPtouchAddonThemeInstaller {
|
|
117 |
return $temp_name;
|
118 |
}
|
119 |
} else if ( $method == 'DIRECT' ) {
|
120 |
-
$source_file = fopen( $package, 'rb' );
|
121 |
if ( $source_file ) {
|
122 |
$temp_dir = $this->get_writable_temp_directory( $alternate_path );
|
123 |
$temp_name = tempnam( $temp_dir, 'wptouch-' );
|
@@ -149,6 +147,15 @@ class WPtouchAddonThemeInstaller {
|
|
149 |
}
|
150 |
|
151 |
function can_perform_install( $path ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
152 |
return $this->can_download_directly() && $this->can_install_directly( $path ) && $this->can_unzip();
|
153 |
}
|
154 |
|
@@ -157,13 +164,17 @@ class WPtouchAddonThemeInstaller {
|
|
157 |
}
|
158 |
|
159 |
function install( $name, $package, $path ) {
|
160 |
-
|
|
|
|
|
|
|
|
|
161 |
$this->add_error( __( "No server support for directly downloading new Cloud packages.", "wptouch-pro" ) );
|
162 |
return false;
|
163 |
}
|
164 |
|
165 |
if ( !$this->can_install_directly( $path ) ) {
|
166 |
-
$this->add_error( sprintf( __( "Unable to write to directory %s. Try relaxing permissions to allow writing to this location.", "wptouch-pro" ),
|
167 |
return false;
|
168 |
}
|
169 |
|
@@ -172,9 +183,14 @@ class WPtouchAddonThemeInstaller {
|
|
172 |
return false;
|
173 |
}
|
174 |
|
175 |
-
|
|
|
|
|
|
|
|
|
|
|
176 |
if ( $file_name ) {
|
177 |
-
$this->unzip_file( $file_name,
|
178 |
|
179 |
@unlink( $file_name );
|
180 |
} else {
|
58 |
}
|
59 |
|
60 |
private function can_install_directly( $path ) {
|
61 |
+
return is_writable( $path );
|
|
|
|
|
62 |
}
|
63 |
|
64 |
private function can_unzip() {
|
115 |
return $temp_name;
|
116 |
}
|
117 |
} else if ( $method == 'DIRECT' ) {
|
118 |
+
$source_file = @fopen( $package, 'rb' );
|
119 |
if ( $source_file ) {
|
120 |
$temp_dir = $this->get_writable_temp_directory( $alternate_path );
|
121 |
$temp_name = tempnam( $temp_dir, 'wptouch-' );
|
147 |
}
|
148 |
|
149 |
function can_perform_install( $path ) {
|
150 |
+
if ( defined( 'WPTOUCH_NO_INSTALL' ) ) {
|
151 |
+
return false;
|
152 |
+
}
|
153 |
+
|
154 |
+
$path = WPTOUCH_BASE_CONTENT_DIR . '/' . $path;
|
155 |
+
return $this->can_perform_install_anywhere( $path );
|
156 |
+
}
|
157 |
+
|
158 |
+
function can_perform_install_anywhere( $path ) {
|
159 |
return $this->can_download_directly() && $this->can_install_directly( $path ) && $this->can_unzip();
|
160 |
}
|
161 |
|
164 |
}
|
165 |
|
166 |
function install( $name, $package, $path ) {
|
167 |
+
$this->install_anywhere( $name, $package, wptouch_get_multsite_aware_install_path( $path ) );;
|
168 |
+
}
|
169 |
+
|
170 |
+
function install_anywhere( $name, $package, $path, $uploaded = false ) {
|
171 |
+
if ( !$uploaded && !$this->can_download_directly() ) {
|
172 |
$this->add_error( __( "No server support for directly downloading new Cloud packages.", "wptouch-pro" ) );
|
173 |
return false;
|
174 |
}
|
175 |
|
176 |
if ( !$this->can_install_directly( $path ) ) {
|
177 |
+
$this->add_error( sprintf( __( "Unable to write to directory %s. Try relaxing permissions to allow writing to this location.", "wptouch-pro" ), $path ) );
|
178 |
return false;
|
179 |
}
|
180 |
|
183 |
return false;
|
184 |
}
|
185 |
|
186 |
+
if ( !$uploaded ) {
|
187 |
+
$file_name = $this->download_file( $package, $path );
|
188 |
+
} elseif ( $uploaded ) {
|
189 |
+
$file_name = $uploaded;
|
190 |
+
}
|
191 |
+
|
192 |
if ( $file_name ) {
|
193 |
+
$this->unzip_file( $file_name, $path );
|
194 |
|
195 |
@unlink( $file_name );
|
196 |
} else {
|
core/admin-ajax.php
CHANGED
@@ -15,49 +15,6 @@ function wptouch_admin_handle_ajax( $wptouch_pro, $ajax_action ) {
|
|
15 |
|
16 |
echo wptouch_get_plugin_warning_count();
|
17 |
break;
|
18 |
-
case 'enable-menu-item':
|
19 |
-
if ( isset( $wptouch_pro->post[ 'is_checked' ] ) && isset( $wptouch_pro->post[ 'page_id' ] ) ) {
|
20 |
-
$page_id = $wptouch_pro->post[ 'page_id' ];
|
21 |
-
|
22 |
-
// save the icon state
|
23 |
-
if ( $wptouch_pro->post[ 'is_checked' ] ) {
|
24 |
-
delete_post_meta( $page_id, '_wptouch_pro_menu_item_disabled' );
|
25 |
-
} else {
|
26 |
-
update_post_meta( $page_id, '_wptouch_pro_menu_item_disabled', '1' );
|
27 |
-
}
|
28 |
-
|
29 |
-
echo '0';
|
30 |
-
}
|
31 |
-
break;
|
32 |
-
case 'update-page-icon':
|
33 |
-
if ( isset( $wptouch_pro->post[ 'page_id'] ) && isset( $wptouch_pro->post[ 'image_file' ] ) ) {
|
34 |
-
$page_id = $wptouch_pro->post[ 'page_id' ];
|
35 |
-
$image_file = str_replace( wptouch_check_url_ssl( site_url() ), '', $wptouch_pro->post[ 'image_file' ] );
|
36 |
-
|
37 |
-
// save the icon state
|
38 |
-
update_post_meta( $page_id, '_wptouch_pro_menu_item_icon', $image_file );
|
39 |
-
|
40 |
-
echo '0';
|
41 |
-
}
|
42 |
-
|
43 |
-
break;
|
44 |
-
case 'reset-page-icons-and-state':
|
45 |
-
$wptouch_pro->reset_icon_states();
|
46 |
-
echo '0';
|
47 |
-
break;
|
48 |
-
case 'set-default-icon':
|
49 |
-
$settings = wptouch_get_settings();
|
50 |
-
$settings->default_menu_icon = str_replace( wptouch_check_url_ssl( site_url() ), '', $wptouch_pro->post[ 'image_file' ] );
|
51 |
-
$settings->save();
|
52 |
-
|
53 |
-
echo '0';
|
54 |
-
break;
|
55 |
-
case 'reset-page-icon':
|
56 |
-
if ( isset( $wptouch_pro->post[ 'page_id' ] ) ) {
|
57 |
-
delete_post_meta( $wptouch_pro->post[ 'page_id' ], '_wptouch_pro_menu_item_icon' );
|
58 |
-
echo '0';
|
59 |
-
}
|
60 |
-
break;
|
61 |
case 'delete-image-upload':
|
62 |
if ( isset( $wptouch_pro->post[ 'setting_name' ] ) ) {
|
63 |
$wptouch_pro->update_encoded_setting( $wptouch_pro->post[ 'setting_name'], false );
|
@@ -74,36 +31,6 @@ function wptouch_admin_handle_ajax( $wptouch_pro, $ajax_action ) {
|
|
74 |
}
|
75 |
}
|
76 |
|
77 |
-
break;
|
78 |
-
case 'load-news':
|
79 |
-
echo wptouch_capture_include_file( WPTOUCH_DIR . '/admin/html/news.php' );
|
80 |
-
break;
|
81 |
-
case 'load-notifications':
|
82 |
-
case 'load-notifications-plugin':
|
83 |
-
wptouch_notification_setup();
|
84 |
-
|
85 |
-
$result = array();
|
86 |
-
$result[ 'html' ] = wptouch_capture_include_file( WPTOUCH_DIR . '/admin/html/notification-content.php' );
|
87 |
-
$result[ 'count' ] = wptouch_get_notification_count();
|
88 |
-
|
89 |
-
echo json_encode( $result );
|
90 |
-
break;
|
91 |
-
|
92 |
-
case 'dismiss-notification':
|
93 |
-
wptouch_notification_setup();
|
94 |
-
|
95 |
-
$settings = wptouch_get_settings();
|
96 |
-
|
97 |
-
if ( !in_array( $wptouch_pro->post[ 'notification_key' ], $settings->dismissed_notifications ) ) {
|
98 |
-
$settings->dismissed_notifications[] = $wptouch_pro->post[ 'notification_key' ];
|
99 |
-
$settings->save();
|
100 |
-
}
|
101 |
-
|
102 |
-
$result = array();
|
103 |
-
$result[ 'html' ] = wptouch_capture_include_file( WPTOUCH_DIR . '/admin/html/notification-content.php' );
|
104 |
-
$result[ 'count' ] = wptouch_get_notification_count();
|
105 |
-
|
106 |
-
echo json_encode( $result );
|
107 |
break;
|
108 |
case 'load-plugin-compat-list':
|
109 |
$wptouch_pro->generate_plugin_hook_list( true );
|
@@ -130,21 +57,9 @@ function wptouch_admin_handle_ajax( $wptouch_pro, $ajax_action ) {
|
|
130 |
$backup_file = wptouch_backup_settings();
|
131 |
|
132 |
echo $backup_file;
|
133 |
-
break;
|
134 |
-
case 'load-touchboard-area':
|
135 |
-
if ( defined( 'WPTOUCH_IS_FREE' ) ) {
|
136 |
-
$content = wp_remote_get( 'http://wptouch-pro-3.s3.amazonaws.com/WPtouchBoard/free/page.xhtml' );
|
137 |
-
} else {
|
138 |
-
$content = wp_remote_get( 'http://wptouch-pro-3.s3.amazonaws.com/WPtouchBoard/pro/page-new.xhtml' );
|
139 |
-
}
|
140 |
-
|
141 |
-
if ( !is_wp_error( $content ) ) {
|
142 |
-
echo $content['body'];
|
143 |
-
}
|
144 |
-
|
145 |
break;
|
146 |
case 'load-upgrade-area':
|
147 |
-
$content = wp_remote_get( 'http://wptouch-pro-
|
148 |
|
149 |
if ( !is_wp_error( $content ) ) {
|
150 |
echo $content['body'];
|
@@ -200,9 +115,6 @@ function wptouch_admin_handle_ajax( $wptouch_pro, $ajax_action ) {
|
|
200 |
case 'load-addon-browser':
|
201 |
require_once( WPTOUCH_DIR . '/admin/settings/html/extension-browser-ajax.php' );
|
202 |
break;
|
203 |
-
case 'load-theme-browser':
|
204 |
-
require_once( WPTOUCH_DIR . '/admin/settings/html/theme-browser-ajax.php' );
|
205 |
-
break;
|
206 |
case 'repair-active-theme':
|
207 |
$result = wptouch_repair_active_theme_from_cloud( $errors );
|
208 |
|
@@ -212,6 +124,188 @@ function wptouch_admin_handle_ajax( $wptouch_pro, $ajax_action ) {
|
|
212 |
echo '1';
|
213 |
}
|
214 |
break;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
215 |
default:
|
216 |
do_action( 'wptouch_admin_ajax_' . $ajax_action, $wptouch_pro );
|
217 |
do_action( 'wptouch_admin_ajax_intercept', $ajax_action );
|
15 |
|
16 |
echo wptouch_get_plugin_warning_count();
|
17 |
break;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
case 'delete-image-upload':
|
19 |
if ( isset( $wptouch_pro->post[ 'setting_name' ] ) ) {
|
20 |
$wptouch_pro->update_encoded_setting( $wptouch_pro->post[ 'setting_name'], false );
|
31 |
}
|
32 |
}
|
33 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
34 |
break;
|
35 |
case 'load-plugin-compat-list':
|
36 |
$wptouch_pro->generate_plugin_hook_list( true );
|
57 |
$backup_file = wptouch_backup_settings();
|
58 |
|
59 |
echo $backup_file;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
60 |
break;
|
61 |
case 'load-upgrade-area':
|
62 |
+
$content = wp_remote_get( 'http://wptouch-pro-4.s3.amazonaws.com/free-upgrade-area/page.xhtml' );
|
63 |
|
64 |
if ( !is_wp_error( $content ) ) {
|
65 |
echo $content['body'];
|
115 |
case 'load-addon-browser':
|
116 |
require_once( WPTOUCH_DIR . '/admin/settings/html/extension-browser-ajax.php' );
|
117 |
break;
|
|
|
|
|
|
|
118 |
case 'repair-active-theme':
|
119 |
$result = wptouch_repair_active_theme_from_cloud( $errors );
|
120 |
|
124 |
echo '1';
|
125 |
}
|
126 |
break;
|
127 |
+
case 'wizard-language':
|
128 |
+
$settings = $wptouch_pro->get_settings();
|
129 |
+
if ( $wptouch_pro->post[ 'force_locale' ] && $settings->force_locale != $wptouch_pro->post[ 'force_locale' ] ) {
|
130 |
+
$settings->force_locale = $wptouch_pro->post[ 'force_locale' ];
|
131 |
+
$settings->save();
|
132 |
+
echo '1';
|
133 |
+
} elseif ( $wptouch_pro->post[ 'force_network_locale' ] && $settings->force_network_locale != $wptouch_pro->post[ 'force_network_locale' ] ) {
|
134 |
+
$settings->force_network_locale = $wptouch_pro->post[ 'force_network_locale' ];
|
135 |
+
$settings->save();
|
136 |
+
echo '1';
|
137 |
+
} else {
|
138 |
+
echo '0';
|
139 |
+
}
|
140 |
+
break;
|
141 |
+
case 'wizard-update-extensions':
|
142 |
+
$result = json_decode( wptouch_update_all_addons() );
|
143 |
+
echo $result[ 'status' ];
|
144 |
+
break;
|
145 |
+
case 'wizard-theme':
|
146 |
+
if ( isset( $wptouch_pro->post[ 'theme' ] ) ) {
|
147 |
+
wptouch_activate_theme( $wptouch_pro->post[ 'theme' ] );
|
148 |
+
echo '1';
|
149 |
+
} else {
|
150 |
+
echo '0';
|
151 |
+
}
|
152 |
+
break;
|
153 |
+
case 'wizard-extensions':
|
154 |
+
if ( isset( $wptouch_pro->post[ 'extensions' ] ) ) {
|
155 |
+
foreach( $wptouch_pro->post[ 'extensions' ] as $extension ) {
|
156 |
+
wptouch_activate_addon( $extension );
|
157 |
+
}
|
158 |
+
echo '1';
|
159 |
+
} else {
|
160 |
+
echo '0';
|
161 |
+
}
|
162 |
+
break;
|
163 |
+
case 'wizard-pages':
|
164 |
+
$settings = $wptouch_pro->get_settings();
|
165 |
+
if ( get_option( 'show_on_front' ) == 'page' && isset( $wptouch_pro->post[ 'homepage_redirect_wp_target' ] ) ) {
|
166 |
+
$settings->homepage_landing = 'select';
|
167 |
+
$settings->homepage_redirect_wp_target = $wptouch_pro->post[ 'homepage_redirect_wp_target' ];
|
168 |
+
}
|
169 |
+
$settings->save();
|
170 |
+
$settings = $wptouch_pro->get_settings( 'foundation' );
|
171 |
+
$settings->latest_posts_page = $wptouch_pro->post[ 'latest_posts_page' ];
|
172 |
+
$settings->save();
|
173 |
+
echo '1';
|
174 |
+
break;
|
175 |
+
case 'wizard-wptouch_message':
|
176 |
+
$settings = $wptouch_pro->get_settings();
|
177 |
+
if ( $wptouch_pro->post[ 'show_wptouch_in_footer' ] == 'true' ) { $wptouch_pro->post[ 'show_wptouch_in_footer' ] = 1; } else { $wptouch_pro->post[ 'show_wptouch_in_footer' ] = 0; }
|
178 |
+
if ( isset( $wptouch_pro->post[ 'show_wptouch_in_footer' ] ) && $settings->show_wptouch_in_footer != $wptouch_pro->post[ 'show_wptouch_in_footer' ] ) {
|
179 |
+
$settings->show_wptouch_in_footer = $wptouch_pro->post[ 'show_wptouch_in_footer' ];
|
180 |
+
$settings->save();
|
181 |
+
echo '1';
|
182 |
+
} else {
|
183 |
+
echo '0';
|
184 |
+
}
|
185 |
+
break;
|
186 |
+
case 'wizard-scan_for_analytics':
|
187 |
+
$result = wp_remote_get( home_url() );
|
188 |
+
|
189 |
+
$result_info = array();
|
190 |
+
|
191 |
+
if ( $result && isset( $result[ 'body' ] ) ) {
|
192 |
+
if ( preg_match_all( '#(<script>.*</script>)#iUs', $result[ 'body' ], $match ) ) {
|
193 |
+
foreach( $match[0] as $possible_analytics ) {
|
194 |
+
$search_for = array( 'GoogleAnalyticsObject' );
|
195 |
+
|
196 |
+
foreach( $search_for as $search_phrase ) {
|
197 |
+
if ( preg_match( '#' . $search_phrase . '#iU', $possible_analytics, $ga_match ) ) {
|
198 |
+
// Found Google Analytics code
|
199 |
+
$result_info[ 'code' ] = 'found';
|
200 |
+
$result_info[ 'success' ] = sprintf( __( 'Code found! %s Analytics was automatically configured for you.', 'wptouch-pro' ), '<br />' );
|
201 |
+
$result_info[ 'fragment' ] = htmlentities( $possible_analytics );
|
202 |
+
|
203 |
+
// If Google, retrieve the site ID
|
204 |
+
if ( $search_phrase == 'GoogleAnalyticsObject' ) {
|
205 |
+
preg_match( '/\'(UA-.*?)\'/s', $possible_analytics, $id_match );
|
206 |
+
if ( count( $id_match ) == 2 ) {
|
207 |
+
$result_info[ 'site_id' ] = $id_match[ 1 ];
|
208 |
+
}
|
209 |
+
}
|
210 |
+
break;
|
211 |
+
}
|
212 |
+
}
|
213 |
+
}
|
214 |
+
}
|
215 |
+
}
|
216 |
+
|
217 |
+
if ( !isset( $result_info[ 'code' ] ) ) {
|
218 |
+
$result_info[ 'code' ] = 'noresult';
|
219 |
+
$result_info[ 'msg' ] = __( 'Unable to find your Google Analytics code. You can enter it manually in the settings later.', 'wptouch-pro' );
|
220 |
+
}
|
221 |
+
|
222 |
+
echo json_encode( $result_info );
|
223 |
+
break;
|
224 |
+
case 'wizard-analytics':
|
225 |
+
$settings = $wptouch_pro->get_settings();
|
226 |
+
if ( $wptouch_pro->post[ 'analytics_google_id' ] ) {
|
227 |
+
$settings->analytics_google_id = $wptouch_pro->post[ 'analytics_google_id' ];
|
228 |
+
$settings->analytics_embed_method = 'simple';
|
229 |
+
$settings->save();
|
230 |
+
}
|
231 |
+
break;
|
232 |
+
case 'wizard-multisite':
|
233 |
+
$settings = $wptouch_pro->get_settings( 'bncid' );
|
234 |
+
if ( $wptouch_pro->post[ 'multisite_control' ] == 'true' ) { $wptouch_pro->post[ 'multisite_control' ] = 1; } else { $wptouch_pro->post[ 'multisite_control' ] = 0; }
|
235 |
+
$settings->multisite_control = $wptouch_pro->post[ 'multisite_control' ];
|
236 |
+
$settings->save();
|
237 |
+
break;
|
238 |
+
case 'network-wizard-complete':
|
239 |
+
$settings = $wptouch_pro->get_settings();
|
240 |
+
$settings->show_network_wizard = false;
|
241 |
+
$settings->save();
|
242 |
+
break;
|
243 |
+
case 'wizard-complete':
|
244 |
+
$settings = $wptouch_pro->get_settings();
|
245 |
+
if ( defined( 'WPTOUCH_IS_FREE' ) ) {
|
246 |
+
$settings->show_free_wizard = false;
|
247 |
+
} else {
|
248 |
+
$settings->show_wizard = false;
|
249 |
+
}
|
250 |
+
$settings->save();
|
251 |
+
break;
|
252 |
+
case 'activate-license-key':
|
253 |
+
$email = $wptouch_pro->post['email'];
|
254 |
+
$key = $wptouch_pro->post['key'];
|
255 |
+
|
256 |
+
$settings = wptouch_get_settings( 'bncid' );
|
257 |
+
$old_settings = $settings;
|
258 |
+
|
259 |
+
$settings->bncid = $email;
|
260 |
+
$settings->wptouch_license_key = $key;
|
261 |
+
|
262 |
+
WPTOUCH_DEBUG( WPTOUCH_INFO, "Attempting site activation with email [" . $email . "] and key [" . $key . "]" );
|
263 |
+
|
264 |
+
$settings->save();
|
265 |
+
|
266 |
+
$wptouch_pro->bnc_api = false;
|
267 |
+
$wptouch_pro->setup_bncapi( $email, $key, true );
|
268 |
+
|
269 |
+
// let's try to activate the license
|
270 |
+
$wptouch_pro->activate_license();
|
271 |
+
|
272 |
+
// Check to see if the credentials were valid
|
273 |
+
if ( $wptouch_pro->bnc_api->response_code >= 406 && $wptouch_pro->bnc_api->response_code <= 408 ) {
|
274 |
+
WPTOUCH_DEBUG( WPTOUCH_WARNING, "Activation response code was [" . $wptouch_pro->bnc_api->response_code . "]" );
|
275 |
+
echo '2';
|
276 |
+
} else if ( $wptouch_pro->bnc_api->server_down ) {
|
277 |
+
// Server is unreachable for some reason
|
278 |
+
WPTOUCH_DEBUG( WPTOUCH_WARNING, "Activation response code was [SERVER UNREACHABLE]" );
|
279 |
+
echo '4';
|
280 |
+
} else if ( $wptouch_pro->bnc_api->verify_site_license() ) {
|
281 |
+
// Activation successful
|
282 |
+
WPTOUCH_DEBUG( WPTOUCH_WARNING, "Activation successful, response code was [" . $wptouch_pro->bnc_api->response_code . "]" );
|
283 |
+
|
284 |
+
$settings = wptouch_get_settings( 'bncid' );
|
285 |
+
|
286 |
+
$settings->license_accepted = 1;
|
287 |
+
$settings->license_accepted_time = time();
|
288 |
+
|
289 |
+
$settings->save();
|
290 |
+
|
291 |
+
echo '1';
|
292 |
+
} else {
|
293 |
+
$bnc_info = $wptouch_pro->bnc_api->check_api();
|
294 |
+
|
295 |
+
if ( isset( $bnc_info[ 'license_expired' ] ) && $bnc_info[ 'license_expired' ] ) {
|
296 |
+
WPTOUCH_DEBUG( WPTOUCH_WARNING, "Failure: license is expired [" . $wptouch_pro->bnc_api->response_code . "]" );
|
297 |
+
echo '5';
|
298 |
+
} else {
|
299 |
+
// No more licenses - might be triggered another way
|
300 |
+
WPTOUCH_DEBUG( WPTOUCH_WARNING, "Failure: activation response code was [" . $wptouch_pro->bnc_api->response_code . "]" );
|
301 |
+
echo '3';
|
302 |
+
}
|
303 |
+
}
|
304 |
+
break;
|
305 |
+
case 'go-pro':
|
306 |
+
$result = wptouch_free_go_pro();
|
307 |
+
echo $result;
|
308 |
+
break;
|
309 |
default:
|
310 |
do_action( 'wptouch_admin_ajax_' . $ajax_action, $wptouch_pro );
|
311 |
do_action( 'wptouch_admin_ajax_intercept', $ajax_action );
|
core/admin-backup-restore.php
CHANGED
@@ -50,7 +50,7 @@ function wptouch_backup_settings() {
|
|
50 |
|
51 |
if ( isset( $settings_to_save[ 'bncid' ]->bncid ) ) {
|
52 |
//unset( $settings_to_save[ 'bncid' ]->bncid );
|
53 |
-
}
|
54 |
}
|
55 |
|
56 |
ksort( $settings_to_save );
|
@@ -89,6 +89,8 @@ function wptouch_restore_settings( $encoded_string ) {
|
|
89 |
foreach( $settings as $domain => $settings_object ) {
|
90 |
$settings_object->domain = $domain;
|
91 |
$settings_object->save();
|
|
|
|
|
92 |
}
|
93 |
}
|
94 |
}
|
50 |
|
51 |
if ( isset( $settings_to_save[ 'bncid' ]->bncid ) ) {
|
52 |
//unset( $settings_to_save[ 'bncid' ]->bncid );
|
53 |
+
}
|
54 |
}
|
55 |
|
56 |
ksort( $settings_to_save );
|
89 |
foreach( $settings as $domain => $settings_object ) {
|
90 |
$settings_object->domain = $domain;
|
91 |
$settings_object->save();
|
92 |
+
|
93 |
+
do_action( 'wptouch_after_restore_settings', $domain, $settings_object );
|
94 |
}
|
95 |
}
|
96 |
}
|
core/admin-extensions.php
CHANGED
@@ -40,7 +40,7 @@ function wptouch_get_addon_classes( $extra_classes = array() ) {
|
|
40 |
|
41 |
$classes = $extra_classes;
|
42 |
|
43 |
-
if ( wptouch_is_addon_active() ) {
|
44 |
$classes[] = 'active';
|
45 |
}
|
46 |
|
@@ -227,7 +227,7 @@ function wptouch_get_addon_description() {
|
|
227 |
function wptouch_cloud_addon_update_available() {
|
228 |
global $wptouch_cur_addon;
|
229 |
|
230 |
-
return ( !wptouch_is_addon_in_cloud() && isset( $wptouch_cur_addon->
|
231 |
}
|
232 |
|
233 |
|
@@ -244,14 +244,14 @@ function wptouch_is_addon_in_cloud() {
|
|
244 |
return ( isset( $wptouch_cur_addon->location ) && ( $wptouch_cur_addon->location == 'cloud' ) );
|
245 |
}
|
246 |
|
247 |
-
function
|
248 |
-
echo
|
249 |
}
|
250 |
|
251 |
-
function
|
252 |
global $wptouch_cur_addon;
|
253 |
if ( $wptouch_cur_addon ) {
|
254 |
-
return apply_filters( '
|
255 |
}
|
256 |
|
257 |
return false;
|
@@ -262,12 +262,12 @@ function wptouch_the_addon_activate_link_url() {
|
|
262 |
}
|
263 |
|
264 |
function wptouch_get_addon_activate_link_url() {
|
265 |
-
return add_query_arg( array(
|
266 |
'admin_command' => 'activate_addon',
|
267 |
'addon_name' => urlencode( wptouch_get_addon_title() ),
|
268 |
'addon_location' => urlencode( wptouch_get_addon_location() ),
|
269 |
'admin_menu_nonce' => wptouch_admin_menu_get_nonce()
|
270 |
-
)
|
271 |
}
|
272 |
|
273 |
function wptouch_the_addon_deactivate_link_url() {
|
@@ -280,7 +280,7 @@ function wptouch_get_addon_deactivate_link_url() {
|
|
280 |
'addon_name' => urlencode( wptouch_get_addon_title() ),
|
281 |
'addon_location' => urlencode( wptouch_get_addon_location() ),
|
282 |
'admin_menu_nonce' => wptouch_admin_menu_get_nonce()
|
283 |
-
), admin_url( 'admin.php?page=wptouch-admin-
|
284 |
}
|
285 |
|
286 |
global $wptouch_addon_previews;
|
@@ -330,7 +330,6 @@ function wptouch_get_addon_preview_url() {
|
|
330 |
return wptouch_get_addon_url() . '/preview/' . $wptouch_addon_preview_item;
|
331 |
}
|
332 |
|
333 |
-
|
334 |
function wptouch_the_addon_preview_url() {
|
335 |
echo wptouch_get_addon_preview_url();
|
336 |
}
|
@@ -341,3 +340,20 @@ function wptouch_reset_addon_preview() {
|
|
341 |
$wptouch_addon_preview_iterator = false;
|
342 |
}
|
343 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
40 |
|
41 |
$classes = $extra_classes;
|
42 |
|
43 |
+
if ( !is_network_admin() && wptouch_is_addon_active() ) {
|
44 |
$classes[] = 'active';
|
45 |
}
|
46 |
|
227 |
function wptouch_cloud_addon_update_available() {
|
228 |
global $wptouch_cur_addon;
|
229 |
|
230 |
+
return ( !wptouch_is_addon_in_cloud() && isset( $wptouch_cur_addon->extension_upgrade_available ) && $wptouch_cur_addon->extension_upgrade_available );
|
231 |
}
|
232 |
|
233 |
|
244 |
return ( isset( $wptouch_cur_addon->location ) && ( $wptouch_cur_addon->location == 'cloud' ) );
|
245 |
}
|
246 |
|
247 |
+
function wptouch_the_addon_icon() {
|
248 |
+
echo wptouch_get_addon_icon();
|
249 |
}
|
250 |
|
251 |
+
function wptouch_get_addon_icon() {
|
252 |
global $wptouch_cur_addon;
|
253 |
if ( $wptouch_cur_addon ) {
|
254 |
+
return apply_filters( 'wptouch_addon_icon', $wptouch_cur_addon->screenshot );
|
255 |
}
|
256 |
|
257 |
return false;
|
262 |
}
|
263 |
|
264 |
function wptouch_get_addon_activate_link_url() {
|
265 |
+
return esc_url( add_query_arg( array(
|
266 |
'admin_command' => 'activate_addon',
|
267 |
'addon_name' => urlencode( wptouch_get_addon_title() ),
|
268 |
'addon_location' => urlencode( wptouch_get_addon_location() ),
|
269 |
'admin_menu_nonce' => wptouch_admin_menu_get_nonce()
|
270 |
+
) ) );
|
271 |
}
|
272 |
|
273 |
function wptouch_the_addon_deactivate_link_url() {
|
280 |
'addon_name' => urlencode( wptouch_get_addon_title() ),
|
281 |
'addon_location' => urlencode( wptouch_get_addon_location() ),
|
282 |
'admin_menu_nonce' => wptouch_admin_menu_get_nonce()
|
283 |
+
), admin_url( 'admin.php?page=wptouch-admin-general-settings' ) );
|
284 |
}
|
285 |
|
286 |
global $wptouch_addon_previews;
|
330 |
return wptouch_get_addon_url() . '/preview/' . $wptouch_addon_preview_item;
|
331 |
}
|
332 |
|
|
|
333 |
function wptouch_the_addon_preview_url() {
|
334 |
echo wptouch_get_addon_preview_url();
|
335 |
}
|
340 |
$wptouch_addon_preview_iterator = false;
|
341 |
}
|
342 |
|
343 |
+
function wptouch_the_addon_changelog() {
|
344 |
+
echo wptouch_get_addon_changelog();
|
345 |
+
}
|
346 |
+
|
347 |
+
function wptouch_get_addon_changelog() {
|
348 |
+
global $wptouch_cur_addon;
|
349 |
+
return $wptouch_cur_addon->changelog;
|
350 |
+
}
|
351 |
+
|
352 |
+
function wptouch_the_addon_long_desc() {
|
353 |
+
echo wptouch_get_addon_long_desc();
|
354 |
+
}
|
355 |
+
|
356 |
+
function wptouch_get_addon_long_desc() {
|
357 |
+
global $wptouch_cur_addon;
|
358 |
+
return $wptouch_cur_addon->long_description;
|
359 |
+
}
|
core/admin-load.php
CHANGED
@@ -23,19 +23,19 @@ function wptouch_admin_check_api() {
|
|
23 |
}
|
24 |
|
25 |
|
26 |
-
function wptouch_admin_build_menu( $
|
27 |
wptouch_admin_check_api();
|
28 |
|
29 |
$settings = wptouch_get_settings();
|
30 |
|
31 |
-
$available_menus = wptouch_admin_get_predefined_menus( $
|
32 |
|
33 |
// Add the main plugin menu for WPtouch Pro
|
34 |
add_menu_page(
|
35 |
WPTOUCH_PRODUCT_NAME,
|
36 |
WPTOUCH_PRODUCT_NAME,
|
37 |
'manage_options',
|
38 |
-
wptouch_admin_get_root_slug(),
|
39 |
'',
|
40 |
WPTOUCH_ADMIN_URL . '/images/wptouch-admin-icon.png'
|
41 |
);
|
@@ -43,7 +43,7 @@ function wptouch_admin_build_menu( $network_only = false ) {
|
|
43 |
// Iterate through available menus
|
44 |
foreach( $available_menus as $id => $menu ) {
|
45 |
add_submenu_page(
|
46 |
-
$available_menus[ wptouch_admin_get_root_slug() ]->slug,
|
47 |
$menu->friendly_name,
|
48 |
$menu->friendly_name,
|
49 |
'manage_options',
|
@@ -54,7 +54,9 @@ function wptouch_admin_build_menu( $network_only = false ) {
|
|
54 |
}
|
55 |
|
56 |
function wptouch_admin_build_network_menu() {
|
57 |
-
|
|
|
|
|
58 |
}
|
59 |
|
60 |
function wptouch_add_sub_page( $sub_page_name, $sub_page_slug, &$options ) {
|
@@ -66,15 +68,31 @@ function wptouch_add_sub_page( $sub_page_name, $sub_page_slug, &$options ) {
|
|
66 |
$options[ $sub_page_name ] = $sub_page_info;
|
67 |
}
|
68 |
|
69 |
-
function wptouch_add_page_section( $sub_page_name, $section_name, $section_slug, $section_settings, &$options, $domain = 'wptouch_pro' ) {
|
70 |
$section = new stdClass;
|
71 |
|
72 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
73 |
$section->sub_page_name = $sub_page_name;
|
74 |
$section->name = $section_name;
|
75 |
$section->slug = $section_slug;
|
76 |
$section->settings = $section_settings;
|
77 |
$section->domain = $domain;
|
|
|
|
|
|
|
78 |
|
79 |
// Populate domain on default settings
|
80 |
foreach( $section->settings as $setting ) {
|
@@ -83,13 +101,29 @@ function wptouch_add_page_section( $sub_page_name, $section_name, $section_slug,
|
|
83 |
}
|
84 |
}
|
85 |
|
86 |
-
$options[ $sub_page_name ]->sections[] = $section;
|
87 |
}
|
88 |
}
|
89 |
|
90 |
-
function _wptouch_add_setting( $type, $name, $desc = '', $tooltip = '', $level = WPTOUCH_SETTING_BASIC, $version = false, $extra = false, $domain = '', $is_pro = false ) {
|
91 |
$setting = new stdClass;
|
92 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
93 |
$setting->type = $type;
|
94 |
$setting->name = $name;
|
95 |
$setting->desc = $desc;
|
@@ -125,22 +159,17 @@ function wptouch_admin_render_menu() {
|
|
125 |
require_once( WPTOUCH_ADMIN_DIR . '/pages/' . $admin_panel_name );
|
126 |
}
|
127 |
|
128 |
-
$panel_options = apply_filters( 'wptouch_admin_page_render_' . $page_name,
|
|
|
|
|
|
|
|
|
129 |
|
130 |
include( WPTOUCH_DIR . '/core/admin-render.php' );
|
131 |
}
|
132 |
|
133 |
-
/* TODO: Deprecated
|
134 |
-
function wptouch_admin_can_render_setting( $setting ) {
|
135 |
-
// Check the admin complexity level, i.e. Beginner, Advanced
|
136 |
-
$admin_level = wptouch_get_quick_setting_value( 'wptouch_pro', 'settings_mode' );
|
137 |
-
|
138 |
-
return ( $admin_level >= $setting->level );
|
139 |
-
}
|
140 |
-
*/
|
141 |
function wptouch_admin_render_setting( $setting ) {
|
142 |
require_once( WPTOUCH_DIR . '/core/settings.php' );
|
143 |
-
|
144 |
// Check if this is a custom setting
|
145 |
if ( $setting->type == 'custom' ) {
|
146 |
return wptouch_admin_render_special_setting( $setting );
|
@@ -252,15 +281,14 @@ function wptouch_admin_render_custom_page( $slug = false ) {
|
|
252 |
$panel_options = do_action( 'wptouch_admin_page_render_custom', $admin_panel_name );
|
253 |
}
|
254 |
|
255 |
-
/* TODO: Deprecated
|
256 |
function wptouch_section_has_visible_settings( $section ) {
|
257 |
-
$viewable_settings =
|
258 |
|
259 |
$settings = wptouch_get_settings();
|
260 |
|
261 |
if ( isset( $section->settings) && is_array( $section->settings ) && count( $section->settings ) ) {
|
262 |
foreach( $section->settings as $setting ) {
|
263 |
-
if (
|
264 |
// This setting is viewable
|
265 |
$viewable_settings++;
|
266 |
}
|
@@ -269,7 +297,6 @@ function wptouch_section_has_visible_settings( $section ) {
|
|
269 |
|
270 |
return ( $viewable_settings > 0 );
|
271 |
}
|
272 |
-
*/
|
273 |
|
274 |
function wptouch_admin_panel_get_classes( $classes = false ) {
|
275 |
if ( $classes ) {
|
@@ -297,6 +324,10 @@ function wptouch_admin_panel_get_classes( $classes = false ) {
|
|
297 |
$final_classes[] = 'wptouch-not-free';
|
298 |
}
|
299 |
|
|
|
|
|
|
|
|
|
300 |
if ( $wptouch_pro->cache_smash->is_cache_plugin_detected() && !$wptouch_pro->cache_smash->is_cache_configured() ) {
|
301 |
$final_classes[] = 'cache-not-configured';
|
302 |
}
|
23 |
}
|
24 |
|
25 |
|
26 |
+
function wptouch_admin_build_menu( $network_admin = false ) {
|
27 |
wptouch_admin_check_api();
|
28 |
|
29 |
$settings = wptouch_get_settings();
|
30 |
|
31 |
+
$available_menus = wptouch_admin_get_predefined_menus( $network_admin );
|
32 |
|
33 |
// Add the main plugin menu for WPtouch Pro
|
34 |
add_menu_page(
|
35 |
WPTOUCH_PRODUCT_NAME,
|
36 |
WPTOUCH_PRODUCT_NAME,
|
37 |
'manage_options',
|
38 |
+
wptouch_admin_get_root_slug( $network_admin ),
|
39 |
'',
|
40 |
WPTOUCH_ADMIN_URL . '/images/wptouch-admin-icon.png'
|
41 |
);
|
43 |
// Iterate through available menus
|
44 |
foreach( $available_menus as $id => $menu ) {
|
45 |
add_submenu_page(
|
46 |
+
$available_menus[ wptouch_admin_get_root_slug( $network_admin ) ]->slug,
|
47 |
$menu->friendly_name,
|
48 |
$menu->friendly_name,
|
49 |
'manage_options',
|
54 |
}
|
55 |
|
56 |
function wptouch_admin_build_network_menu() {
|
57 |
+
if ( is_plugin_active_for_network( WPTOUCH_PLUGIN_SLUG ) ) {
|
58 |
+
wptouch_admin_build_menu( true );
|
59 |
+
}
|
60 |
}
|
61 |
|
62 |
function wptouch_add_sub_page( $sub_page_name, $sub_page_slug, &$options ) {
|
68 |
$options[ $sub_page_name ] = $sub_page_info;
|
69 |
}
|
70 |
|
71 |
+
function wptouch_add_page_section( $sub_page_name, $section_name, $section_slug, $section_settings, &$options, $domain = 'wptouch_pro', $use_customizer = false, $section_description = false, $section_weight = 50 ) {
|
72 |
$section = new stdClass;
|
73 |
|
74 |
+
$skip_domains = array( ADDON_SETTING_DOMAIN, 'wptouch_pro', 'bncid' );
|
75 |
+
$skip_pages = array( 'Compatibility', 'Web-App Mode', 'Basic Ads', 'General' );
|
76 |
+
|
77 |
+
if ( defined( 'WPTOUCH_IS_FREE' ) ) {
|
78 |
+
$use_customizer = false;
|
79 |
+
}
|
80 |
+
|
81 |
+
if ( !$use_customizer && !in_array( $domain, $skip_domains ) && !in_array( $sub_page_name, $skip_pages ) ) {
|
82 |
+
$sub_page_name = 'Theme Settings';
|
83 |
+
} elseif ( $use_customizer ) {
|
84 |
+
$sub_page_name = 'Customizer';
|
85 |
+
}
|
86 |
+
|
87 |
+
if ( isset( $options[ $sub_page_name ] ) || $sub_page_name == 'Customizer' ) {
|
88 |
$section->sub_page_name = $sub_page_name;
|
89 |
$section->name = $section_name;
|
90 |
$section->slug = $section_slug;
|
91 |
$section->settings = $section_settings;
|
92 |
$section->domain = $domain;
|
93 |
+
$section->use_customizer = $use_customizer;
|
94 |
+
$section->description = $section_description;
|
95 |
+
$section->weight = $section_weight;
|
96 |
|
97 |
// Populate domain on default settings
|
98 |
foreach( $section->settings as $setting ) {
|
101 |
}
|
102 |
}
|
103 |
|
104 |
+
$options[ $sub_page_name ]->sections[ $section_name ] = $section;
|
105 |
}
|
106 |
}
|
107 |
|
108 |
+
function _wptouch_add_setting( $type, $name, $desc = '', $tooltip = '', $level = WPTOUCH_SETTING_BASIC, $version = false, $extra = false, $domain = '', $is_pro = false, $prefix = false ) {
|
109 |
$setting = new stdClass;
|
110 |
|
111 |
+
if ( $type == 'radiolist' || $type == 'radio' ) {
|
112 |
+
$type = 'list';
|
113 |
+
}
|
114 |
+
|
115 |
+
if ( defined( 'WPTOUCH_IS_FREE' ) && $type == 'select' ) {
|
116 |
+
$type = 'list';
|
117 |
+
}
|
118 |
+
|
119 |
+
if ( defined( 'WPTOUCH_IS_FREE' ) && $type == 'range' ) {
|
120 |
+
$type = 'text';
|
121 |
+
}
|
122 |
+
|
123 |
+
if ( defined( 'WPTOUCH_IS_FREE' ) && $type == 'url' ) {
|
124 |
+
$type = 'text';
|
125 |
+
}
|
126 |
+
|
127 |
$setting->type = $type;
|
128 |
$setting->name = $name;
|
129 |
$setting->desc = $desc;
|
159 |
require_once( WPTOUCH_ADMIN_DIR . '/pages/' . $admin_panel_name );
|
160 |
}
|
161 |
|
162 |
+
$panel_options = apply_filters( 'wptouch_admin_page_render_' . $page_name, $panel_options );
|
163 |
+
|
164 |
+
if ( $page_name == WPTOUCH_PRO_ADMIN_GENERAL_SETTINGS || wptouch_is_customizing_mobile() ) {
|
165 |
+
$panel_options = apply_filters( 'wptouch_admin_page_render_wptouch-admin-theme-settings', $panel_options );
|
166 |
+
}
|
167 |
|
168 |
include( WPTOUCH_DIR . '/core/admin-render.php' );
|
169 |
}
|
170 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
171 |
function wptouch_admin_render_setting( $setting ) {
|
172 |
require_once( WPTOUCH_DIR . '/core/settings.php' );
|
|
|
173 |
// Check if this is a custom setting
|
174 |
if ( $setting->type == 'custom' ) {
|
175 |
return wptouch_admin_render_special_setting( $setting );
|
281 |
$panel_options = do_action( 'wptouch_admin_page_render_custom', $admin_panel_name );
|
282 |
}
|
283 |
|
|
|
284 |
function wptouch_section_has_visible_settings( $section ) {
|
285 |
+
$viewable_settings = 0;
|
286 |
|
287 |
$settings = wptouch_get_settings();
|
288 |
|
289 |
if ( isset( $section->settings) && is_array( $section->settings ) && count( $section->settings ) ) {
|
290 |
foreach( $section->settings as $setting ) {
|
291 |
+
if ( !$setting->is_pro || !defined( 'WPTOUCH_IS_FREE' ) ) {
|
292 |
// This setting is viewable
|
293 |
$viewable_settings++;
|
294 |
}
|
297 |
|
298 |
return ( $viewable_settings > 0 );
|
299 |
}
|
|
|
300 |
|
301 |
function wptouch_admin_panel_get_classes( $classes = false ) {
|
302 |
if ( $classes ) {
|
324 |
$final_classes[] = 'wptouch-not-free';
|
325 |
}
|
326 |
|
327 |
+
if ( strpos( $_SERVER['REQUEST_URI'], 'wptouch-admin-license' ) == true ) {
|
328 |
+
$final_classes[] = 'remodal-bg';
|
329 |
+
}
|
330 |
+
|
331 |
if ( $wptouch_pro->cache_smash->is_cache_plugin_detected() && !$wptouch_pro->cache_smash->is_cache_configured() ) {
|
332 |
$final_classes[] = 'cache-not-configured';
|
333 |
}
|
core/admin-menu.php
CHANGED
@@ -1,21 +1,27 @@
|
|
1 |
<?php
|
|
|
|
|
|
|
2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
|
4 |
// All available built-in WPtouch Pro menu items go here
|
5 |
-
define( '
|
6 |
define( 'WPTOUCH_PRO_ADMIN_GENERAL_SETTINGS', 'wptouch-admin-general-settings' );
|
7 |
-
define( 'WPTOUCH_PRO_ADMIN_MENUS', 'wptouch-admin-menus' );
|
8 |
-
define( 'WPTOUCH_PRO_ADMIN_MENUS_DISABLED', 'wptouch-admin-menus-disabled' );
|
9 |
-
define( 'WPTOUCH_PRO_ADMIN_WARNINGS', 'wptouch-admin-warnings' );
|
10 |
define( 'WPTOUCH_PRO_ADMIN_LICENSE', 'wptouch-admin-license' );
|
11 |
-
define( 'WPTOUCH_PRO_ADMIN_UPGRADE', 'wptouch-admin-upgrade' );
|
12 |
-
define( 'WPTOUCH_PRO_ADMIN_UPGRADE_LICENSE', 'wptouch-admin-upgrade-license' );
|
13 |
-
|
14 |
-
define( 'WPTOUCH_PRO_ADMIN_THEMES_AND_ADDONS', 'wptouch-admin-themes-and-addons' );
|
15 |
-
define( 'WPTOUCH_PRO_ADMIN_THEME_OPTIONS', 'wptouch-admin-theme-settings' );
|
16 |
-
|
17 |
-
define( 'WPTOUCH_PRO_ADMIN_ADDON_OPTIONS', 'wptouch-admin-addon-settings' );
|
18 |
-
define( 'WPTOUCH_PRO_ADMIN_ADDON_OPTIONS_GENERAL', __( 'General', 'wptouch-pro' ) );
|
19 |
|
20 |
function wptouch_admin_create_menu( $id, $friendly_name, $menu_type = WPTOUCH_PRO_ADMIN_SETTINGS_PAGE, $display_name = false ) {
|
21 |
$menu = new stdClass;
|
@@ -28,56 +34,90 @@ function wptouch_admin_create_menu( $id, $friendly_name, $menu_type = WPTOUCH_PR
|
|
28 |
return $menu;
|
29 |
}
|
30 |
|
31 |
-
function wptouch_admin_get_predefined_menus( $
|
32 |
$available_menus = array();
|
33 |
-
|
34 |
-
if (
|
35 |
-
$
|
36 |
-
WPTOUCH_PRO_ADMIN_TOUCHBOARD => wptouch_admin_create_menu( WPTOUCH_PRO_ADMIN_TOUCHBOARD, __( 'What\'s New', 'wptouch-pro' ) )
|
37 |
-
);
|
38 |
} else {
|
39 |
-
$
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
if (
|
48 |
-
$available_menus
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
49 |
}
|
50 |
|
51 |
-
if (
|
52 |
-
|
53 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
54 |
} else {
|
55 |
-
$available_menus
|
|
|
|
|
56 |
}
|
57 |
-
}
|
58 |
-
|
59 |
-
// Check multisite
|
60 |
-
if ( !defined( 'WPTOUCH_IS_FREE' ) && ( wptouch_can_show_license_menu() || defined( 'WPTOUCH_FORCE_SHOW_LICENSE_PANEL' ) ) ) {
|
61 |
-
$available_menus[ WPTOUCH_PRO_ADMIN_LICENSE ] = wptouch_admin_create_menu( WPTOUCH_PRO_ADMIN_LICENSE, __( 'License', 'wptouch-pro' ), WPTOUCH_PRO_ADMIN_CUSTOM_PAGE );
|
62 |
-
}
|
63 |
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
} elseif ( !defined( 'WPTOUCH_CLIENT_MODE' ) && wptouch_license_upgrade_available() ) {
|
68 |
-
$settings = wptouch_get_settings( 'bncid' );
|
69 |
-
|
70 |
-
if ( $settings->bncid && $settings->wptouch_license_key ) {
|
71 |
-
$available_menus[ WPTOUCH_PRO_ADMIN_UPGRADE_LICENSE ] = wptouch_admin_create_menu( WPTOUCH_PRO_ADMIN_UPGRADE_LICENSE, __( 'Upgrade License', 'wptouch-pro' ), WPTOUCH_PRO_ADMIN_CUSTOM_PAGE );
|
72 |
-
}
|
73 |
}
|
74 |
|
75 |
return apply_filters( 'wptouch_available_menus', $available_menus );
|
76 |
}
|
77 |
|
78 |
-
function wptouch_admin_get_root_slug() {
|
79 |
$menu = wptouch_admin_get_predefined_menus();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
80 |
|
81 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
82 |
}
|
83 |
|
1 |
<?php
|
2 |
+
add_action( 'admin_menu', 'wptouch_menu_redirects', 1 );
|
3 |
+
function wptouch_menu_redirects() {
|
4 |
+
$settings = wptouch_get_settings();
|
5 |
|
6 |
+
if ( defined( 'WPTOUCH_IS_FREE' ) ) {
|
7 |
+
$show_wizard = $settings->show_free_wizard;
|
8 |
+
} else {
|
9 |
+
$show_wizard = $settings->show_wizard;
|
10 |
+
}
|
11 |
+
|
12 |
+
if ( $show_wizard && ( strstr( $_SERVER[ 'REQUEST_URI' ], '?page=wptouch-admin-general-settings' ) || strstr( $_SERVER[ 'REQUEST_URI' ], '?page=wptouch-admin-license' ) ) ) {
|
13 |
+
wp_redirect( admin_url( 'admin.php?page=wptouch-admin-wizard' ) );
|
14 |
+
die();
|
15 |
+
} elseif ( !$show_wizard && !defined( 'WPTOUCH_SHOW_WIZARD' ) && strstr( $_SERVER[ 'REQUEST_URI' ], '?page=wptouch-admin-wizard' ) ) {
|
16 |
+
wp_redirect( admin_url( 'admin.php?page=wptouch-admin-general-settings' ) );
|
17 |
+
die();
|
18 |
+
}
|
19 |
+
}
|
20 |
|
21 |
// All available built-in WPtouch Pro menu items go here
|
22 |
+
define( 'WPTOUCH_PRO_ADMIN_WIZARD', 'wptouch-admin-wizard' );
|
23 |
define( 'WPTOUCH_PRO_ADMIN_GENERAL_SETTINGS', 'wptouch-admin-general-settings' );
|
|
|
|
|
|
|
24 |
define( 'WPTOUCH_PRO_ADMIN_LICENSE', 'wptouch-admin-license' );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
|
26 |
function wptouch_admin_create_menu( $id, $friendly_name, $menu_type = WPTOUCH_PRO_ADMIN_SETTINGS_PAGE, $display_name = false ) {
|
27 |
$menu = new stdClass;
|
34 |
return $menu;
|
35 |
}
|
36 |
|
37 |
+
function wptouch_admin_get_predefined_menus( $network_admin = false ) {
|
38 |
$available_menus = array();
|
39 |
+
$settings = wptouch_get_settings();
|
40 |
+
if ( defined( 'WPTOUCH_IS_FREE' ) ) {
|
41 |
+
$show_wizard = $settings->show_free_wizard;
|
|
|
|
|
42 |
} else {
|
43 |
+
$show_wizard = $settings->show_wizard;
|
44 |
+
}
|
45 |
+
$show_network_wizard = $settings->show_network_wizard;
|
46 |
+
$wizard_title = __( 'Setup Wizard', 'wptouch-pro' );
|
47 |
+
$settings_title = __( 'Settings', 'wptouch-pro' );
|
48 |
+
$license_title = sprintf( __( 'License %s Support', 'wptouch-pro' ), '&' );
|
49 |
+
$network_admin = is_network_admin();
|
50 |
+
if ( $network_admin ) {
|
51 |
+
if ( $show_network_wizard ) {
|
52 |
+
$available_menus = array(
|
53 |
+
WPTOUCH_PRO_ADMIN_WIZARD => wptouch_admin_create_menu( WPTOUCH_PRO_ADMIN_WIZARD, $wizard_title, WPTOUCH_PRO_ADMIN_CUSTOM_PAGE ),
|
54 |
+
);
|
55 |
+
} elseif ( defined( 'WPTOUCH_SHOW_NETWORK_WIZARD' ) ) {
|
56 |
+
$available_menus = array(
|
57 |
+
WPTOUCH_PRO_ADMIN_WIZARD => wptouch_admin_create_menu( WPTOUCH_PRO_ADMIN_WIZARD, $wizard_title, WPTOUCH_PRO_ADMIN_CUSTOM_PAGE ),
|
58 |
+
WPTOUCH_PRO_ADMIN_GENERAL_SETTINGS => wptouch_admin_create_menu( WPTOUCH_PRO_ADMIN_GENERAL_SETTINGS, $settings_title ),
|
59 |
+
);
|
60 |
+
} else {
|
61 |
+
$available_menus = array(
|
62 |
+
WPTOUCH_PRO_ADMIN_GENERAL_SETTINGS => wptouch_admin_create_menu( WPTOUCH_PRO_ADMIN_GENERAL_SETTINGS, $settings_title ),
|
63 |
+
);
|
64 |
}
|
65 |
|
66 |
+
if ( !$show_network_wizard ) {
|
67 |
+
$available_menus[ WPTOUCH_PRO_ADMIN_LICENSE ] = wptouch_admin_create_menu( WPTOUCH_PRO_ADMIN_LICENSE, $license_title, WPTOUCH_PRO_ADMIN_CUSTOM_PAGE );
|
68 |
+
}
|
69 |
+
} else {
|
70 |
+
if ( $show_wizard ) {
|
71 |
+
$available_menus = array(
|
72 |
+
WPTOUCH_PRO_ADMIN_WIZARD => wptouch_admin_create_menu( WPTOUCH_PRO_ADMIN_WIZARD, $wizard_title, WPTOUCH_PRO_ADMIN_CUSTOM_PAGE ),
|
73 |
+
);
|
74 |
+
} elseif ( defined( 'WPTOUCH_SHOW_WIZARD' ) ) {
|
75 |
+
$available_menus = array(
|
76 |
+
WPTOUCH_PRO_ADMIN_WIZARD => wptouch_admin_create_menu( WPTOUCH_PRO_ADMIN_WIZARD, $wizard_title, WPTOUCH_PRO_ADMIN_CUSTOM_PAGE ),
|
77 |
+
WPTOUCH_PRO_ADMIN_GENERAL_SETTINGS => wptouch_admin_create_menu( WPTOUCH_PRO_ADMIN_GENERAL_SETTINGS, $settings_title )
|
78 |
+
);
|
79 |
} else {
|
80 |
+
$available_menus = array(
|
81 |
+
WPTOUCH_PRO_ADMIN_GENERAL_SETTINGS => wptouch_admin_create_menu( WPTOUCH_PRO_ADMIN_GENERAL_SETTINGS, $settings_title ),
|
82 |
+
);
|
83 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
84 |
|
85 |
+
if ( !defined( 'WPTOUCH_IS_FREE' ) && !$show_wizard && ( current_user_can( 'activate_plugins' ) || current_user_can( 'manage_network' ) ) && !is_plugin_active_for_network( WPTOUCH_PLUGIN_SLUG ) ) {
|
86 |
+
$available_menus[ WPTOUCH_PRO_ADMIN_LICENSE ] = wptouch_admin_create_menu( WPTOUCH_PRO_ADMIN_LICENSE, $license_title, WPTOUCH_PRO_ADMIN_CUSTOM_PAGE );
|
87 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
88 |
}
|
89 |
|
90 |
return apply_filters( 'wptouch_available_menus', $available_menus );
|
91 |
}
|
92 |
|
93 |
+
function wptouch_admin_get_root_slug( $network_admin = false ) {
|
94 |
$menu = wptouch_admin_get_predefined_menus();
|
95 |
+
$settings = wptouch_get_settings();
|
96 |
+
if ( defined( 'WPTOUCH_IS_FREE' ) ) {
|
97 |
+
$show_wizard = $settings->show_free_wizard;
|
98 |
+
} else {
|
99 |
+
$show_wizard = $settings->show_wizard;
|
100 |
+
}
|
101 |
+
$show_network_wizard = $settings->show_network_wizard;
|
102 |
+
$network_admin = is_network_admin();
|
103 |
|
104 |
+
if ( $network_admin ) {
|
105 |
+
if ( $show_network_wizard ) {
|
106 |
+
return $menu[ WPTOUCH_PRO_ADMIN_WIZARD ]->slug;
|
107 |
+
} else {
|
108 |
+
return $menu[ WPTOUCH_PRO_ADMIN_GENERAL_SETTINGS ]->slug;
|
109 |
+
return $menu[ WPTOUCH_PRO_ADMIN_LICENSE ]->slug;
|
110 |
+
}
|
111 |
+
} else {
|
112 |
+
if ( $show_wizard ) {
|
113 |
+
return $menu[ WPTOUCH_PRO_ADMIN_WIZARD ]->slug;
|
114 |
+
} else {
|
115 |
+
if ( defined( 'WPTOUCH_SHOW_WIZARD' ) ) {
|
116 |
+
return $menu[ WPTOUCH_PRO_ADMIN_WIZARD ]->slug;
|
117 |
+
}
|
118 |
+
return $menu[ WPTOUCH_PRO_ADMIN_GENERAL_SETTINGS ]->slug;
|
119 |
+
return $menu[ WPTOUCH_PRO_ADMIN_LICENSE ]->slug;
|
120 |
+
}
|
121 |
+
}
|
122 |
}
|
123 |
|
core/admin-render.php
CHANGED
@@ -1,110 +1,154 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
<div class="dropdown notifications">
|
6 |
-
<button id="upgrade-to-pro" class="button button-primary" type="button" data-target="<?php echo admin_url( 'admin.php?page=wptouch-admin-upgrade' ); ?>">
|
7 |
-
<?php _e( 'What\'s in WPtouch Pro?', 'wptouch-pro' ); ?>
|
8 |
-
</button>
|
9 |
</div>
|
10 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
<?php } ?>
|
|
|
|
|
12 |
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
<div id="admin-spinner">
|
24 |
-
<img src="<?php echo WPTOUCH_ADMIN_URL; ?>/images/loading.gif" alt="Loading image" />
|
25 |
-
</div>
|
26 |
-
</h2>
|
27 |
-
<?php if ( wptouch_show_renewal_notice() ) { ?>
|
28 |
-
<div class="alert-wrap">
|
29 |
-
<div class="alert">
|
30 |
-
<?php _e( 'Your WPtouch Pro license has expired. Renew now at a discount to continue receiving product updates and support.', 'wptouch-pro' ); ?>
|
31 |
-
<a href="http://www.wptouch.com/renew/?utm_campaign=renew-in-product&utm_medium=web&utm_source=wptouch" target="_blank" class="btn btn-small btn-warning"><?php _e( 'Renew Now', 'wptouch-pro' ); ?></a>
|
32 |
-
</div>
|
33 |
-
</div>
|
34 |
<?php } else { ?>
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
</div>
|
44 |
<?php } ?>
|
|
|
45 |
<?php } ?>
|
|
|
|
|
46 |
|
|
|
47 |
<?php if ( is_array( $panel_options ) ) { ?>
|
48 |
-
<
|
49 |
-
<?php
|
50 |
-
|
51 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
52 |
<?php } ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
53 |
<?php } ?>
|
54 |
-
</
|
55 |
<?php } ?>
|
56 |
|
57 |
-
<div id="wptouch-settings-content">
|
58 |
<?php if ( wptouch_admin_is_custom_page() ) { ?>
|
59 |
<?php wptouch_admin_render_custom_page(); ?>
|
60 |
<?php } else { ?>
|
61 |
-
<?php if ( is_array( $panel_options ) ) { ?>
|
62 |
<?php foreach( $panel_options as $page_name => $page_info ) { ?>
|
63 |
-
|
|
|
64 |
<?php foreach( $page_info->sections as $section ) { ?>
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
<ul class="padded">
|
69 |
-
<?php foreach( $section->settings as $setting ) { ?>
|
70 |
-
<li class="wptouch-setting<?php if ( $setting->is_pro ) echo " pro-setting"; ?>" id="setting-<?php echo wptouch_convert_to_class_name( $setting->name ); ?>">
|
71 |
-
<?php wptouch_admin_render_setting( $setting ); ?>
|
72 |
-
</li>
|
73 |
-
<?php } ?>
|
74 |
-
</ul>
|
75 |
-
|
76 |
-
<?php /* TODO: Deprecated
|
77 |
-
if ( wptouch_section_has_visible_settings( $section ) ) { ?>
|
78 |
<h3><?php echo $section->name; ?> </h3>
|
|
|
|
|
|
|
79 |
<ul class="padded">
|
80 |
<?php foreach( $section->settings as $setting ) { ?>
|
81 |
-
<?php if (
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
<?php } ?>
|
86 |
<?php } ?>
|
87 |
</ul>
|
88 |
-
<?php }
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
<?php
|
93 |
<?php } ?>
|
|
|
94 |
<?php } ?>
|
95 |
-
</div><!-- wptouch-settings-sub-page -->
|
96 |
<?php } ?>
|
97 |
-
</div
|
98 |
<?php } ?>
|
99 |
<?php } ?>
|
|
|
|
|
|
|
|
|
100 |
<?php } ?>
|
101 |
</div>
|
102 |
</div>
|
103 |
-
|
104 |
-
<br /><br /><br /><!-- add some space above -->
|
105 |
-
<input type="submit" name="wptouch-submit-3" id="submit" class="button-primary" value="<?php _e( 'Save Changes', 'wptouch-pro' ); ?>" />
|
106 |
-
<input type="submit" name="wptouch-preview-theme" id="preview" class="preview-button button-secondary" value="<?php _e( "Preview Theme", "wptouch-pro" ); ?>" data-url="<?php wptouch_bloginfo( 'url' ); ?>/?wptouch_preview_theme=enabled" />
|
107 |
-
<input type="submit" name="wptouch-reset-3" id="reset" class="reset-button button-secondary" value="<?php _e( 'Reset Settings', 'wptouch-pro' ); ?>" />
|
108 |
-
<input type="hidden" name="wptouch-admin-nonce" value="<?php echo wp_create_nonce( 'wptouch-post-nonce' ); ?>" />
|
109 |
-
<?php } ?>
|
110 |
</form>
|
1 |
+
<?php if ( ( $_GET['page'] != 'wptouch-admin-wizard' ) ) { ?>
|
2 |
+
<?php if ( wptouch_show_renewal_notice() ) { ?>
|
3 |
+
<div class="update-nag">
|
4 |
+
<p><?php _e( 'Your WPtouch Pro license has expired. Renew now at a discount to continue receiving product updates and support.', 'wptouch-pro' ); ?><a href="http://www.wptouch.com/renew/?utm_campaign=renew-in-product&utm_medium=web&utm_source=wptouch" target="_blank"><?php _e( 'Renew Now','wptouch-pro' ); ?></a></p>
|
|
|
|
|
|
|
|
|
5 |
</div>
|
6 |
+
<?php } else { ?>
|
7 |
+
<?php if ( wptouch_should_show_license_nag() && $_GET['page'] != 'wptouch-admin-license' ) { ?>
|
8 |
+
<div class="error">
|
9 |
+
<p>
|
10 |
+
<?php echo sprintf( __( 'This copy of %s is currently unlicensed.', 'wptouch-pro' ), 'WPtouch Pro' ); ?>
|
11 |
+
<?php if ( wptouch_should_show_activation_nag() ) { ?>
|
12 |
+
<a href="<?php echo wptouch_get_license_activation_url(); ?>" class="button">
|
13 |
+
<?php echo sprintf( __( 'Add a license %s', 'wptouch-pro' ), '»'); ?>
|
14 |
+
</a>
|
15 |
+
<?php } ?>
|
16 |
+
</p>
|
17 |
+
</div>
|
18 |
<?php } ?>
|
19 |
+
<?php } ?>
|
20 |
+
<?php } ?>
|
21 |
|
22 |
+
<form id="wptouch-settings-form" method="post" action=""<?php if ( strpos( $_SERVER['REQUEST_URI'], 'wptouch-admin-license' ) !== false ) echo ' autocomplete="off"'; ?>>
|
23 |
+
<?php if ( ( $_GET['page'] != 'wptouch-admin-wizard' ) ) { ?>
|
24 |
+
<h2 class="logo-title">
|
25 |
+
<img src="<?php echo WPTOUCH_ADMIN_URL; ?>/images/title-icon.png" alt="Logo image" />
|
26 |
+
<?php echo WPTOUCH_PRODUCT_NAME; ?>
|
27 |
+
<?php echo WPTOUCH_VERSION; ?>
|
28 |
+
<span class="title-arrow">›</span>
|
29 |
+
<?php if ( is_rtl() ) { ?>
|
30 |
+
<span class="title-grey"><bdi><?php wptouch_admin_the_menu_friendly_name(); ?></bdi></span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
31 |
<?php } else { ?>
|
32 |
+
<span class="title-grey"><?php wptouch_admin_the_menu_friendly_name(); ?></span>
|
33 |
+
<?php } ?>
|
34 |
+
|
35 |
+
<div id="admin-spinner" class="wpt-spinner"></div>
|
36 |
+
<?php if ( ( $_GET['page'] != 'wptouch-admin-touchboard' ) && ( $_GET['page'] != 'wptouch-admin-license' ) ) { ?>
|
37 |
+
<!-- <input type="submit" name="wptouch-submit-3" id="submit" class="button-primary" value="<?php _e( 'Save Changes', 'wptouch-pro' ); ?>" /> -->
|
38 |
+
<?php if ( defined( 'WPTOUCH_IS_FREE' ) ) { ?>
|
39 |
+
<input type="submit" name="wptouch-preview-theme" id="wptouch-preview-theme" class="button-primary" value="<?php _e( 'Preview Theme', 'wptouch-pro' ); ?>" data-url="<?php wptouch_bloginfo( 'url' ); ?>/?wptouch_preview_theme=enabled" />
|
|
|
40 |
<?php } ?>
|
41 |
+
<input type="hidden" name="wptouch-admin-nonce" value="<?php echo wp_create_nonce( 'wptouch-post-nonce' ); ?>" />
|
42 |
<?php } ?>
|
43 |
+
</h2>
|
44 |
+
<?php } ?>
|
45 |
|
46 |
+
<div id="wptouch-settings-area" class="<?php wptouch_admin_panel_classes( array( 'wptouch-clearfix' ) ); ?>">
|
47 |
<?php if ( is_array( $panel_options ) ) { ?>
|
48 |
+
<nav id="wptouch-admin-menu" <?php if ( count ( $panel_options ) <= 1 ) echo 'style="display: none;"'; ?>>
|
49 |
+
<?php
|
50 |
+
$hide_keys = array( 'Updates Available', 'Multisite Setup', 'General', 'Compatibility', 'Customize Theme', 'Devices', 'Themes', 'Extensions', 'Customizer', 'Theme Settings', 'Menu Settings' );
|
51 |
+
if ( !defined( 'WPTOUCH_IS_FREE' ) ) { $hide_keys[] = 'Go Pro'; }
|
52 |
+
$show_keys = array_diff( array_keys( $panel_options ), $hide_keys );
|
53 |
+
?>
|
54 |
+
<h2><?php _e( 'Setup', 'wptouch-pro' ); ?></h2>
|
55 |
+
<ul>
|
56 |
+
<?php if ( !defined( 'WPTOUCH_IS_FREE' ) && ( !wptouch_is_controlled_network() || ( wptouch_is_controlled_network() && is_network_admin() ) ) ) { ?>
|
57 |
+
<?php global $wptouch_pro; ?>
|
58 |
+
<?php if ( $wptouch_pro->theme_upgrades_available() || $wptouch_pro->extension_upgrades_available() ) { ?>
|
59 |
+
<li><a href="#" class="updates-available<?php if ( isset( $_COOKIE['wptouch-4-admin-menu'] ) && ( $_COOKIE['wptouch-4-admin-menu'] == 'updates-available' ) ) { echo ' active'; } ?>" data-page-slug="updates-available"><?php _e( 'Updates Available', 'wptouch-pro' ); ?></a></li>
|
60 |
+
<?php } ?>
|
61 |
<?php } ?>
|
62 |
+
|
63 |
+
<?php if ( defined( 'WPTOUCH_IS_FREE' ) ) { ?>
|
64 |
+
<li><a href="#" class="setup-general-general<?php if ( isset( $_COOKIE['wptouch-4-admin-menu'] ) && ( $_COOKIE['wptouch-4-admin-menu'] == 'setup-general-general' ) ) { echo ' active'; } ?>" data-page-slug="setup-general-general"><?php _e( 'General', 'wptouch-pro' ); ?></a></li>
|
65 |
+
<li><a href="#" class="setup-devices<?php if ( isset( $_COOKIE['wptouch-4-admin-menu'] ) && ( $_COOKIE['wptouch-4-admin-menu'] == 'setup-devices' ) ) { echo ' active'; } ?>" data-page-slug="setup-devices"><?php _e( 'Devices', 'wptouch-pro' ); ?></a></li>
|
66 |
+
<li><a href="#" class="menu-icons-manage-icon-sets<?php if ( isset( $_COOKIE['wptouch-4-admin-menu'] ) && ( $_COOKIE['wptouch-4-admin-menu'] == 'menu-icons-manage-icon-sets' ) ) { echo ' active'; } ?>" data-page-slug="menu-icons-manage-icon-sets"><?php _e( 'Menu Settings', 'wptouch-pro' ); ?></a></li>
|
67 |
+
<li><a href="#" class="foundation-page-theme-settings<?php if ( isset( $_COOKIE['wptouch-4-admin-menu'] ) && ( $_COOKIE['wptouch-4-admin-menu'] == 'foundation-page-theme-settings' ) ) { echo ' active'; } ?>" data-page-slug="foundation-page-theme-settings"><?php _e( 'Theme Settings', 'wptouch-pro' ); ?></a></li>
|
68 |
+
<li><a href="#" class="foundation-page-theme-gopro<?php if ( isset( $_COOKIE['wptouch-4-admin-menu'] ) && ( $_COOKIE['wptouch-4-admin-menu'] == 'foundation-page-theme-gopro' ) ) { echo ' active'; } ?>" data-page-slug="foundation-page-theme-gopro"><?php _e( 'WPtouch Pro', 'wptouch-pro' ); ?></a></li>
|
69 |
+
<?php } elseif ( !is_network_admin() ) { ?>
|
70 |
+
<li><a href="#" class="setup-general-general<?php if ( isset( $_COOKIE['wptouch-4-admin-menu'] ) && ( $_COOKIE['wptouch-4-admin-menu'] == 'setup-general-general' ) ) { echo ' active'; } ?>" data-page-slug="setup-general-general"><?php _e( 'General', 'wptouch-pro' ); ?></a></li>
|
71 |
+
<li><a href="#" class="setup-compat<?php if ( isset( $_COOKIE['wptouch-4-admin-menu'] ) && ( $_COOKIE['wptouch-4-admin-menu'] == 'setup-compat' ) ) { echo ' active'; } ?>" data-page-slug="setup-compat"><?php _e( 'Site Compatibility', 'wptouch-pro' ); ?></a></li>
|
72 |
+
<li><a href="#" class="setup-devices<?php if ( isset( $_COOKIE['wptouch-4-admin-menu'] ) && ( $_COOKIE['wptouch-4-admin-menu'] == 'setup-devices' ) ) { echo ' active'; } ?>" data-page-slug="setup-devices"><?php _e( 'Devices', 'wptouch-pro' ); ?></a></li>
|
73 |
+
<li><a href="#" class="menu-icons-manage-icon-sets<?php if ( isset( $_COOKIE['wptouch-4-admin-menu'] ) && ( $_COOKIE['wptouch-4-admin-menu'] == 'menu-icons-manage-icon-sets' ) ) { echo ' active'; } ?>" data-page-slug="menu-icons-manage-icon-sets"><?php _e( 'Menu Settings', 'wptouch-pro' ); ?></a></li>
|
74 |
+
<?php } else { ?>
|
75 |
+
<li><a href="#" class="multisite-network-admin<?php if ( isset( $_COOKIE['wptouch-4-admin-menu'] ) && ( $_COOKIE['wptouch-4-admin-menu'] == 'multisite-network-admin' ) ) { echo ' active'; } ?>" data-page-slug="multisite-network-admin"><?php _e( 'Multisite Setup', 'wptouch-pro' ); ?></a></li>
|
76 |
+
<?php } ?>
|
77 |
+
|
78 |
+
</ul>
|
79 |
+
|
80 |
+
<?php if ( !defined( 'WPTOUCH_IS_FREE' ) ) { ?>
|
81 |
+
<h2><?php _e( 'Themes', 'wptouch-pro' ); ?></h2>
|
82 |
+
<ul>
|
83 |
+
<li><a href="#" class="setup-themes-browser<?php if ( isset( $_COOKIE['wptouch-4-admin-menu'] ) && ( $_COOKIE['wptouch-4-admin-menu'] == 'setup-themes-browser' ) ) { echo ' active'; } ?>" data-page-slug="setup-themes-browser"><?php _e( 'Themes', 'wptouch-pro' ); ?></a></li>
|
84 |
+
<?php if ( !is_network_admin() ) { ?>
|
85 |
+
<?php if ( isset( $panel_options[ 'Theme Settings' ]->sections ) && count( $panel_options[ 'Theme Settings' ]->sections ) > 0 ) { ?>
|
86 |
+
<li><a href="#" class="foundation-page-theme-settings<?php if ( isset( $_COOKIE['wptouch-4-admin-menu'] ) && ( $_COOKIE['wptouch-4-admin-menu'] == 'foundation-page-theme-settings' ) ) { echo ' active'; } ?>" data-page-slug="foundation-page-theme-settings"><?php _e( 'Theme Settings', 'wptouch-pro' ); ?></a></li>
|
87 |
+
<?php } ?>
|
88 |
+
<li><a href="#" class="foundation-page-theme-customizer<?php if ( isset( $_COOKIE['wptouch-4-admin-menu'] ) && ( $_COOKIE['wptouch-4-admin-menu'] == 'foundation-page-theme-customizer' ) ) { echo ' active'; } ?>" data-page-slug="foundation-page-theme-customizer"><?php _e( 'Customize Theme', 'wptouch-pro' ); ?></a></li>
|
89 |
+
<?php } ?>
|
90 |
+
</ul>
|
91 |
+
|
92 |
+
<h2><?php _e( 'Extensions', 'wptouch-pro' ); ?></h2>
|
93 |
+
<ul>
|
94 |
+
<li><a href="#" class="setup-addons-browser<?php if ( isset( $_COOKIE['wptouch-4-admin-menu'] ) && ( $_COOKIE['wptouch-4-admin-menu'] == 'setup-addons-browser' ) ) { echo ' active'; } ?>" data-page-slug="setup-addons-browser"><?php _e( 'Extensions', 'wptouch-pro' ); ?></a></li>
|
95 |
+
<?php
|
96 |
+
array_multisort(array_map('strtolower', $show_keys), $show_keys);
|
97 |
+
foreach( $show_keys as $page_name ) {
|
98 |
+
$page_info = $panel_options[ $page_name ];
|
99 |
+
?>
|
100 |
+
<?php if ( !is_network_admin() && isset( $page_info->sections ) && is_array( $page_info->sections ) && count( $page_info->sections ) ) { ?>
|
101 |
+
<li><a href="#" class="<?php echo $page_info->slug; ?><?php if ( isset( $_COOKIE['wptouch-4-admin-menu'] ) && ( $_COOKIE['wptouch-4-admin-menu'] == $page_info->slug ) ) { echo ' active'; } ?>" data-page-slug="<?php echo $page_info->slug; ?>"><?php echo $page_name; ?></a></li>
|
102 |
+
<?php } ?>
|
103 |
+
<?php } ?>
|
104 |
+
</ul>
|
105 |
<?php } ?>
|
106 |
+
</nav>
|
107 |
<?php } ?>
|
108 |
|
109 |
+
<div id="wptouch-settings-content" class="wptouch-clearfix">
|
110 |
<?php if ( wptouch_admin_is_custom_page() ) { ?>
|
111 |
<?php wptouch_admin_render_custom_page(); ?>
|
112 |
<?php } else { ?>
|
113 |
+
<?php if ( is_array( $panel_options ) ) { unset( $panel_options[ 'Customizer' ] ); if ( !defined( 'WPTOUCH_IS_FREE' ) ) { unset( $panel_options[ 'Go Pro' ] ); } ?>
|
114 |
<?php foreach( $panel_options as $page_name => $page_info ) { ?>
|
115 |
+
<?php $page_info = apply_filters( 'wptouch_settings_page_before_render', $page_info, $page_name ); ?>
|
116 |
+
<div class="wptouch-settings-sub-page" class="wptouch-clearfix" id="<?php echo $page_info->slug; ?>" style="<?php if ( isset( $_COOKIE['wptouch-4-admin-menu'] ) && ( $_COOKIE['wptouch-4-admin-menu'] == $page_info->slug ) ) { echo 'display: block;'; } else { echo 'display: none;'; } ?>">
|
117 |
<?php foreach( $page_info->sections as $section ) { ?>
|
118 |
+
<?php if ( wptouch_section_has_visible_settings( $section ) ) { ?>
|
119 |
+
<div class="wptouch-section"<?php if ( $section->name ) { ?> id="section-<?php echo $section->slug; ?>"<?php } ?>>
|
120 |
+
<?php if ( $section->name ) { ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
121 |
<h3><?php echo $section->name; ?> </h3>
|
122 |
+
<?php if ( $section->description ) { ?>
|
123 |
+
<p class="description"><?php echo $section->description; ?></p>
|
124 |
+
<?php } ?>
|
125 |
<ul class="padded">
|
126 |
<?php foreach( $section->settings as $setting ) { ?>
|
127 |
+
<?php if ( !$setting->is_pro || !defined( 'WPTOUCH_IS_FREE' ) ) { ?>
|
128 |
+
<li class="wptouch-setting setting-<?php echo $setting->type; ?>" id="setting-<?php echo wptouch_convert_to_class_name( $setting->name ); ?>">
|
129 |
+
<?php wptouch_admin_render_setting( $setting ); ?>
|
130 |
+
</li>
|
131 |
<?php } ?>
|
132 |
<?php } ?>
|
133 |
</ul>
|
134 |
+
<?php } else { ?>
|
135 |
+
<?php // custom areas ?>
|
136 |
+
<?php foreach( $section->settings as $setting ) { ?>
|
137 |
+
<?php wptouch_admin_render_special_setting( $setting ); ?>
|
138 |
+
<?php } ?>
|
139 |
<?php } ?>
|
140 |
+
</div><!-- section -->
|
141 |
<?php } ?>
|
|
|
142 |
<?php } ?>
|
143 |
+
</div><!-- wptouch-settings-sub-page -->
|
144 |
<?php } ?>
|
145 |
<?php } ?>
|
146 |
+
</div>
|
147 |
+
<?php } ?>
|
148 |
+
<?php if ( defined( 'WPTOUCH_IS_FREE' ) ) { ?>
|
149 |
+
<input type="submit" name="wptouch-reset-3" id="reset" class="reset-button button-primary" value="<?php _e( 'Reset Settings', 'wptouch-pro' ); ?>" />
|
150 |
<?php } ?>
|
151 |
</div>
|
152 |
</div>
|
153 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
154 |
</form>
|
core/admin-settings.php
CHANGED
@@ -4,7 +4,7 @@ function wptouch_settings_process( $wptouch_pro ) {
|
|
4 |
$wptouch_pro->verify_post_nonce();
|
5 |
|
6 |
// Clear the cookie
|
7 |
-
setcookie( 'wptouch-admin-menu', 0, time() - 3600 );
|
8 |
|
9 |
WPTOUCH_DEBUG( WPTOUCH_INFO, "Settings are being reset" );
|
10 |
$wptouch_pro->erase_all_settings();
|
@@ -19,7 +19,7 @@ function wptouch_settings_process( $wptouch_pro ) {
|
|
19 |
delete_site_option( WPTOUCH_MULTISITE_LICENSED );
|
20 |
}
|
21 |
|
22 |
-
$wptouch_pro->redirect_to_page( admin_url( 'admin.php?page=wptouch-admin-
|
23 |
|
24 |
wptouch_delete_all_transients();
|
25 |
|
@@ -87,11 +87,8 @@ function wptouch_settings_process( $wptouch_pro ) {
|
|
87 |
|
88 |
// Handle automatic backup
|
89 |
$settings = wptouch_get_settings();
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
wptouch_backup_settings();
|
94 |
-
}
|
95 |
}
|
96 |
|
97 |
do_action( 'wptouch_admin_save_settings_completed' );
|
4 |
$wptouch_pro->verify_post_nonce();
|
5 |
|
6 |
// Clear the cookie
|
7 |
+
setcookie( 'wptouch-4-admin-menu', 0, time() - 3600 );
|
8 |
|
9 |
WPTOUCH_DEBUG( WPTOUCH_INFO, "Settings are being reset" );
|
10 |
$wptouch_pro->erase_all_settings();
|
19 |
delete_site_option( WPTOUCH_MULTISITE_LICENSED );
|
20 |
}
|
21 |
|
22 |
+
$wptouch_pro->redirect_to_page( admin_url( 'admin.php?page=wptouch-admin-general-settings' ) );
|
23 |
|
24 |
wptouch_delete_all_transients();
|
25 |
|
87 |
|
88 |
// Handle automatic backup
|
89 |
$settings = wptouch_get_settings();
|
90 |
+
require_once( 'admin-backup-restore.php' );
|
91 |
+
wptouch_backup_settings();
|
|
|
|
|
|
|
92 |
}
|
93 |
|
94 |
do_action( 'wptouch_admin_save_settings_completed' );
|
core/admin-themes.php
CHANGED
@@ -59,7 +59,7 @@ function wptouch_theme_info_url() {
|
|
59 |
function wptouch_cloud_theme_update_available() {
|
60 |
global $wptouch_cur_theme;
|
61 |
|
62 |
-
return ( !wptouch_is_theme_in_cloud() && isset( $wptouch_cur_theme->
|
63 |
}
|
64 |
|
65 |
function wptouch_cloud_theme_get_update_version() {
|
@@ -84,7 +84,7 @@ function wptouch_get_theme_classes( $extra_classes = array() ) {
|
|
84 |
|
85 |
$classes = $extra_classes;
|
86 |
|
87 |
-
if ( wptouch_is_theme_active() ) {
|
88 |
$classes[] = 'active';
|
89 |
}
|
90 |
|
@@ -92,10 +92,6 @@ function wptouch_get_theme_classes( $extra_classes = array() ) {
|
|
92 |
$classes[] = 'cloud';
|
93 |
}
|
94 |
|
95 |
-
if ( wptouch_is_theme_custom() ) {
|
96 |
-
$classes[] = 'custom';
|
97 |
-
}
|
98 |
-
|
99 |
if ( wptouch_has_theme_tags() ) {
|
100 |
$tags = wptouch_get_theme_tags();
|
101 |
foreach( $tags as $tag ) {
|
@@ -120,15 +116,19 @@ function wptouch_get_theme_tags() {
|
|
120 |
return apply_filters( 'wptouch_theme_tags', $wptouch_cur_theme->tags );
|
121 |
}
|
122 |
|
|
|
|
|
|
|
|
|
123 |
function wptouch_is_theme_active() {
|
124 |
global $wptouch_pro;
|
125 |
global $wptouch_cur_theme;
|
126 |
|
127 |
$settings = $wptouch_pro->get_settings();
|
128 |
|
129 |
-
$current_theme_location = $settings->current_theme_location .
|
130 |
|
131 |
-
return ( $wptouch_cur_theme->location == $current_theme_location );
|
132 |
}
|
133 |
|
134 |
function wptouch_active_theme_has_settings() {
|
@@ -136,11 +136,6 @@ function wptouch_active_theme_has_settings() {
|
|
136 |
return count( $menu );
|
137 |
}
|
138 |
|
139 |
-
function wptouch_is_theme_custom() {
|
140 |
-
global $wptouch_cur_theme;
|
141 |
-
return ( $wptouch_cur_theme->custom_theme );
|
142 |
-
}
|
143 |
-
|
144 |
function wptouch_is_theme_child() {
|
145 |
global $wptouch_cur_theme;
|
146 |
return ( isset( $wptouch_cur_theme->parent_theme ) && strlen( $wptouch_cur_theme->parent_theme ) );
|
@@ -238,11 +233,11 @@ function wptouch_get_theme_description() {
|
|
238 |
return false;
|
239 |
}
|
240 |
|
241 |
-
function
|
242 |
-
echo
|
243 |
}
|
244 |
|
245 |
-
function
|
246 |
global $wptouch_cur_theme;
|
247 |
if ( $wptouch_cur_theme ) {
|
248 |
return apply_filters( 'wptouch_theme_screenshot', $wptouch_cur_theme->screenshot );
|
@@ -292,7 +287,7 @@ function wptouch_the_theme_buy_url() {
|
|
292 |
echo wptouch_get_theme_buy_url();
|
293 |
}
|
294 |
|
295 |
-
function
|
296 |
echo wptouch_get_theme_activate_link_url();
|
297 |
}
|
298 |
|
@@ -305,7 +300,7 @@ function wptouch_get_theme_activate_link_url() {
|
|
305 |
) ) );
|
306 |
}
|
307 |
|
308 |
-
function
|
309 |
echo wptouch_get_theme_copy_link_url();
|
310 |
}
|
311 |
|
@@ -331,59 +326,81 @@ function wptouch_get_theme_delete_link_url() {
|
|
331 |
) ) );
|
332 |
}
|
333 |
|
334 |
-
|
335 |
-
|
336 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
337 |
|
338 |
-
|
339 |
-
|
|
|
340 |
|
341 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
342 |
}
|
343 |
|
344 |
-
function
|
345 |
-
global $
|
346 |
-
global $
|
347 |
|
348 |
-
if ( !$
|
349 |
-
$
|
350 |
-
$
|
351 |
}
|
352 |
|
353 |
-
return $
|
354 |
}
|
355 |
|
356 |
-
function
|
357 |
-
global $
|
358 |
-
global $
|
359 |
|
360 |
-
$
|
361 |
|
362 |
-
return apply_filters( '
|
363 |
}
|
364 |
|
365 |
-
function
|
366 |
-
global $
|
367 |
|
368 |
-
return $
|
369 |
}
|
370 |
|
371 |
-
function
|
372 |
-
return (
|
373 |
}
|
374 |
|
375 |
-
function
|
376 |
-
global $
|
377 |
-
return
|
378 |
}
|
379 |
|
380 |
-
function
|
381 |
-
echo
|
382 |
}
|
383 |
|
384 |
-
function
|
385 |
-
global $
|
386 |
|
387 |
-
$
|
388 |
}
|
389 |
|
|
59 |
function wptouch_cloud_theme_update_available() {
|
60 |
global $wptouch_cur_theme;
|
61 |
|
62 |
+
return ( !wptouch_is_theme_in_cloud() && isset( $wptouch_cur_theme->theme_upgrade_available ) && $wptouch_cur_theme->theme_upgrade_available );
|
63 |
}
|
64 |
|
65 |
function wptouch_cloud_theme_get_update_version() {
|
84 |
|
85 |
$classes = $extra_classes;
|
86 |
|
87 |
+
if ( !is_network_admin() && wptouch_is_theme_active() ) {
|
88 |
$classes[] = 'active';
|
89 |
}
|
90 |
|
92 |
$classes[] = 'cloud';
|
93 |
}
|
94 |
|
|
|
|
|
|
|
|
|
95 |
if ( wptouch_has_theme_tags() ) {
|
96 |
$tags = wptouch_get_theme_tags();
|
97 |
foreach( $tags as $tag ) {
|
116 |
return apply_filters( 'wptouch_theme_tags', $wptouch_cur_theme->tags );
|
117 |
}
|
118 |
|
119 |
+
function wptouch_trim_trailing_slashes( $str ) {
|
120 |
+
return trim( $str, DIRECTORY_SEPARATOR );
|
121 |
+
}
|
122 |
+
|
123 |
function wptouch_is_theme_active() {
|
124 |
global $wptouch_pro;
|
125 |
global $wptouch_cur_theme;
|
126 |
|
127 |
$settings = $wptouch_pro->get_settings();
|
128 |
|
129 |
+
$current_theme_location = $settings->current_theme_location . DIRECTORY_SEPARATOR . $settings->current_theme_name;
|
130 |
|
131 |
+
return ( wptouch_trim_trailing_slashes( $wptouch_cur_theme->location ) == wptouch_trim_trailing_slashes( $current_theme_location ) );
|
132 |
}
|
133 |
|
134 |
function wptouch_active_theme_has_settings() {
|
136 |
return count( $menu );
|
137 |
}
|
138 |
|
|
|
|
|
|
|
|
|
|
|
139 |
function wptouch_is_theme_child() {
|
140 |
global $wptouch_cur_theme;
|
141 |
return ( isset( $wptouch_cur_theme->parent_theme ) && strlen( $wptouch_cur_theme->parent_theme ) );
|
233 |
return false;
|
234 |
}
|
235 |
|
236 |
+
function wptouch_the_theme_icon() {
|
237 |
+
echo wptouch_get_theme_icon();
|
238 |
}
|
239 |
|
240 |
+
function wptouch_get_theme_icon() {
|
241 |
global $wptouch_cur_theme;
|
242 |
if ( $wptouch_cur_theme ) {
|
243 |
return apply_filters( 'wptouch_theme_screenshot', $wptouch_cur_theme->screenshot );
|
287 |
echo wptouch_get_theme_buy_url();
|
288 |
}
|
289 |
|
290 |
+
function wptouch_the_theme_activate_link_url() {
|
291 |
echo wptouch_get_theme_activate_link_url();
|
292 |
}
|
293 |
|
300 |
) ) );
|
301 |
}
|
302 |
|
303 |
+
function wptouch_the_theme_copy_link_url() {
|
304 |
echo wptouch_get_theme_copy_link_url();
|
305 |
}
|
306 |
|
326 |
) ) );
|
327 |
}
|
328 |
|
329 |
+
function wptouch_the_theme_changelog() {
|
330 |
+
echo wptouch_get_theme_changelog();
|
331 |
+
}
|
332 |
+
|
333 |
+
function wptouch_get_theme_changelog() {
|
334 |
+
global $wptouch_cur_theme;
|
335 |
+
return $wptouch_cur_theme->changelog;
|
336 |
+
}
|
337 |
+
|
338 |
+
function wptouch_the_theme_long_desc() {
|
339 |
+
echo wptouch_get_theme_long_desc();
|
340 |
+
}
|
341 |
+
|
342 |
+
function wptouch_get_theme_long_desc() {
|
343 |
+
global $wptouch_cur_theme;
|
344 |
+
return wpautop( $wptouch_cur_theme->long_description );
|
345 |
+
}
|
346 |
|
347 |
+
global $wptouch_theme_screenshots;
|
348 |
+
global $wptouch_theme_screenshot_item;
|
349 |
+
global $wptouch_theme_screenshot_iterator;
|
350 |
|
351 |
+
function wptouch_get_theme_screenshots() {
|
352 |
+
global $wptouch_cur_theme;
|
353 |
+
if ( isset( $wptouch_cur_theme->preview_images ) ) {
|
354 |
+
return $wptouch_cur_theme->preview_images;
|
355 |
+
} else {
|
356 |
+
return array();
|
357 |
+
}
|
358 |
}
|
359 |
|
360 |
+
function wptouch_has_theme_screenshots() {
|
361 |
+
global $wptouch_theme_screenshot_iterator;
|
362 |
+
global $wptouch_theme_screenshots;
|
363 |
|
364 |
+
if ( !$wptouch_theme_screenshot_iterator ) {
|
365 |
+
$wptouch_theme_screenshots = wptouch_get_theme_screenshots();
|
366 |
+
$wptouch_theme_screenshot_iterator = new WPtouchArrayIterator( $wptouch_theme_screenshots );
|
367 |
}
|
368 |
|
369 |
+
return $wptouch_theme_screenshot_iterator->have_items();
|
370 |
}
|
371 |
|
372 |
+
function wptouch_the_theme_screenshot() {
|
373 |
+
global $wptouch_theme_screenshot_iterator;
|
374 |
+
global $wptouch_theme_screenshot_item;
|
375 |
|
376 |
+
$wptouch_theme_screenshot_item = $wptouch_theme_screenshot_iterator->the_item();
|
377 |
|
378 |
+
return apply_filters( 'wptouch_theme_screenshot', $wptouch_theme_screenshot_item );
|
379 |
}
|
380 |
|
381 |
+
function wptouch_get_theme_screenshot_num() {
|
382 |
+
global $wptouch_theme_screenshot_iterator;
|
383 |
|
384 |
+
return $wptouch_theme_screenshot_iterator->current_position();
|
385 |
}
|
386 |
|
387 |
+
function wptouch_is_first_theme_screenshot() {
|
388 |
+
return ( wptouch_get_theme_screenshot_num() == 1 );
|
389 |
}
|
390 |
|
391 |
+
function wptouch_get_theme_screenshot_url() {
|
392 |
+
global $wptouch_theme_screenshot_item;
|
393 |
+
return $wptouch_theme_screenshot_item;
|
394 |
}
|
395 |
|
396 |
+
function wptouch_the_theme_screenshot_url() {
|
397 |
+
echo wptouch_get_theme_screenshot_url();
|
398 |
}
|
399 |
|
400 |
+
function wptouch_reset_theme_screenshot() {
|
401 |
+
global $wptouch_theme_screenshot_iterator;
|
402 |
|
403 |
+
$wptouch_theme_screenshot_iterator = false;
|
404 |
}
|
405 |
|
406 |
+
|
core/bncid.php
CHANGED
@@ -1,6 +1,5 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
define( 'WPTOUCH_PRO_BNCAPI_PRODUCT_NAME', 'wptouch-pro-3' );
|
4 |
define( 'WPTOUCH_BNCID_CACHE_TIME', 3600 );
|
5 |
|
6 |
define( 'WPTOUCH_BNCID_DONT_CACHE', 0 );
|
@@ -77,11 +76,27 @@ function wptouch_check_api( $force_refresh = false ) {
|
|
77 |
$bnc_settings->license_accepted_time = $current_time;
|
78 |
$bnc_settings->license_expired = 0;
|
79 |
$bnc_settings->license_expiry_date = 0;
|
|
|
|
|
|
|
|
|
80 |
|
81 |
if ( $result[ 'license_expiry_date'] ) {
|
82 |
$bnc_settings->license_expiry_date = $result[ 'license_expiry_date'];
|
83 |
}
|
84 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
85 |
// Check for the user's referral code
|
86 |
if ( isset( $result[ 'user_id'] ) ) {
|
87 |
$bnc_settings->referral_user_id = $result[ 'user_id' ];
|
1 |
<?php
|
2 |
|
|
|
3 |
define( 'WPTOUCH_BNCID_CACHE_TIME', 3600 );
|
4 |
|
5 |
define( 'WPTOUCH_BNCID_DONT_CACHE', 0 );
|
76 |
$bnc_settings->license_accepted_time = $current_time;
|
77 |
$bnc_settings->license_expired = 0;
|
78 |
$bnc_settings->license_expiry_date = 0;
|
79 |
+
$bnc_settings->licensed_site = $result[ 'site' ];
|
80 |
+
$bnc_settings->license_total_sites = 0;
|
81 |
+
$bnc_settings->license_friendly_name = '';
|
82 |
+
$bnc_settings->license_used_sites = 0;
|
83 |
|
84 |
if ( $result[ 'license_expiry_date'] ) {
|
85 |
$bnc_settings->license_expiry_date = $result[ 'license_expiry_date'];
|
86 |
}
|
87 |
|
88 |
+
if ( $result[ 'licenses_total_sites'] ) {
|
89 |
+
$bnc_settings->license_total_sites = $result[ 'licenses_total_sites' ];
|
90 |
+
}
|
91 |
+
|
92 |
+
if ( $result[ 'license_friendly_name'] ) {
|
93 |
+
$bnc_settings->license_friendly_name = $result[ 'license_friendly_name' ];
|
94 |
+
}
|
95 |
+
|
96 |
+
if ( $result[ 'license_used_sites'] ) {
|
97 |
+
$bnc_settings->license_used_sites = $result[ 'license_used_sites' ];
|
98 |
+
}
|
99 |
+
|
100 |
// Check for the user's referral code
|
101 |
if ( isset( $result[ 'user_id'] ) ) {
|
102 |
$bnc_settings->referral_user_id = $result[ 'user_id' ];
|
core/class-bncapi.php
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
define( 'BNC_API_VERSION', '
|
4 |
define( 'BNC_API_URL', 'http://api.wptouch.com/v/' . BNC_API_VERSION );
|
5 |
define( 'BNC_API_TIMEOUT', 30 );
|
6 |
|
@@ -24,7 +24,7 @@ class BNCAPI {
|
|
24 |
$this->server_down = false;
|
25 |
$this->response_code = 0;
|
26 |
$this->attempts = 0;
|
27 |
-
$this->product_name = 'wptouch-pro-
|
28 |
|
29 |
if ( $this->bncid && $this->license_key ) {
|
30 |
$this->might_have_license = true;
|
@@ -43,6 +43,15 @@ class BNCAPI {
|
|
43 |
// Always use the PHP serialization method for data
|
44 |
$params[ 'format' ] = 'php';
|
45 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
46 |
if ( $do_auth && $this->might_have_license ) {
|
47 |
// Sort the parameters
|
48 |
ksort( $params );
|
@@ -79,6 +88,8 @@ class BNCAPI {
|
|
79 |
$raw_response = wp_remote_request( $url, $options );
|
80 |
if ( !is_wp_error( $raw_response ) ) {
|
81 |
if ( $raw_response['response']['code'] == 200 ) {
|
|
|
|
|
82 |
$result = unserialize( $raw_response['body'] );
|
83 |
|
84 |
$this->response_code = $result['code'];
|
@@ -162,6 +173,7 @@ class BNCAPI {
|
|
162 |
$params = array(
|
163 |
'bncid' => $this->bncid,
|
164 |
'site' => $this->get_proper_server_name(),
|
|
|
165 |
'current_version' => WPTOUCH_VERSION
|
166 |
);
|
167 |
|
@@ -180,10 +192,10 @@ class BNCAPI {
|
|
180 |
}
|
181 |
|
182 |
function get_all_available_addons() {
|
183 |
-
|
184 |
$params = array(
|
185 |
'bncid' => $this->bncid,
|
186 |
'site' => $this->get_proper_server_name(),
|
|
|
187 |
'current_version' => WPTOUCH_VERSION
|
188 |
);
|
189 |
|
@@ -253,6 +265,7 @@ class BNCAPI {
|
|
253 |
);
|
254 |
|
255 |
$result = false;
|
|
|
256 |
if ( $this->might_have_license ) {
|
257 |
$params[ 'bncid' ] = $this->bncid;
|
258 |
$result = $this->do_api_request( 'products', 'get_version', $params, true );
|
@@ -303,4 +316,36 @@ class BNCAPI {
|
|
303 |
|
304 |
return false;
|
305 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
306 |
}
|
1 |
<?php
|
2 |
|
3 |
+
define( 'BNC_API_VERSION', '5.0' );
|
4 |
define( 'BNC_API_URL', 'http://api.wptouch.com/v/' . BNC_API_VERSION );
|
5 |
define( 'BNC_API_TIMEOUT', 30 );
|
6 |
|
24 |
$this->server_down = false;
|
25 |
$this->response_code = 0;
|
26 |
$this->attempts = 0;
|
27 |
+
$this->product_name = 'wptouch-pro-4';
|
28 |
|
29 |
if ( $this->bncid && $this->license_key ) {
|
30 |
$this->might_have_license = true;
|
43 |
// Always use the PHP serialization method for data
|
44 |
$params[ 'format' ] = 'php';
|
45 |
|
46 |
+
if ( is_multisite() ) {
|
47 |
+
$params[ 'multisite' ] = 1;
|
48 |
+
$params[ 'site_id' ] = get_current_blog_id();
|
49 |
+
$params[ 'network_activated' ] = ( is_plugin_active_for_network( WPTOUCH_PLUGIN_SLUG ) ? '1' : '0' );
|
50 |
+
$params[ 'network_controlled' ] = ( wptouch_is_controlled_network() ? '1' : '0' );
|
51 |
+
} else {
|
52 |
+
$params[ 'multisite' ] = 0;
|
53 |
+
}
|
54 |
+
|
55 |
if ( $do_auth && $this->might_have_license ) {
|
56 |
// Sort the parameters
|
57 |
ksort( $params );
|
88 |
$raw_response = wp_remote_request( $url, $options );
|
89 |
if ( !is_wp_error( $raw_response ) ) {
|
90 |
if ( $raw_response['response']['code'] == 200 ) {
|
91 |
+
|
92 |
+
// echo "\n\n" . $raw_response[ 'body' ] . "\n\n"; die;
|
93 |
$result = unserialize( $raw_response['body'] );
|
94 |
|
95 |
$this->response_code = $result['code'];
|
173 |
$params = array(
|
174 |
'bncid' => $this->bncid,
|
175 |
'site' => $this->get_proper_server_name(),
|
176 |
+
'product_name' => $this->product_name,
|
177 |
'current_version' => WPTOUCH_VERSION
|
178 |
);
|
179 |
|
192 |
}
|
193 |
|
194 |
function get_all_available_addons() {
|
|
|
195 |
$params = array(
|
196 |
'bncid' => $this->bncid,
|
197 |
'site' => $this->get_proper_server_name(),
|
198 |
+
'product_name' => $this->product_name,
|
199 |
'current_version' => WPTOUCH_VERSION
|
200 |
);
|
201 |
|
265 |
);
|
266 |
|
267 |
$result = false;
|
268 |
+
|
269 |
if ( $this->might_have_license ) {
|
270 |
$params[ 'bncid' ] = $this->bncid;
|
271 |
$result = $this->do_api_request( 'products', 'get_version', $params, true );
|
316 |
|
317 |
return false;
|
318 |
}
|
319 |
+
|
320 |
+
function user_remove_license() {
|
321 |
+
if ( !$this->might_have_license ) {
|
322 |
+
return false;
|
323 |
+
}
|
324 |
+
|
325 |
+
$params = array(
|
326 |
+
'bncid' => $this->bncid,
|
327 |
+
'product_name' => $this->product_name,
|
328 |
+
'site' => $this->get_proper_server_name()
|
329 |
+
);
|
330 |
+
|
331 |
+
$result = $this->do_api_request( 'user', 'remove_license', $params, true );
|
332 |
+
if ( $result and $result['status'] == 'ok' ) {
|
333 |
+
return true;
|
334 |
+
}
|
335 |
+
|
336 |
+
return false;
|
337 |
+
}
|
338 |
+
|
339 |
+
function translations_get_list() {
|
340 |
+
$params = array(
|
341 |
+
'product_name' => $this->product_name
|
342 |
+
);
|
343 |
+
|
344 |
+
$result = $this->do_api_request( 'translations', 'get_list', $params, false );
|
345 |
+
if ( $result and $result['status'] == 'ok' ) {
|
346 |
+
return $result [ 'result' ][ 'language_info' ];
|
347 |
+
}
|
348 |
+
|
349 |
+
return false;
|
350 |
+
}
|
351 |
}
|
core/class-theme.php
ADDED
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
|
4 |
+
class WPtouchTheme extends stdClass {
|
5 |
+
var $base;
|
6 |
+
var $name;
|
7 |
+
var $theme_url;
|
8 |
+
var $description;
|
9 |
+
var $author;
|
10 |
+
var $version;
|
11 |
+
var $framework;
|
12 |
+
var $wptouch_object;
|
13 |
+
var $parent_theme;
|
14 |
+
var $loaded;
|
15 |
+
|
16 |
+
function __construct( $wptouch_object ) {
|
17 |
+
$this->framework = 1;
|
18 |
+
$this->wptouch_object = $wptouch_object;
|
19 |
+
$this->loaded = false;
|
20 |
+
}
|
21 |
+
|
22 |
+
public function load( $theme_location, $theme_url ) {
|
23 |
+
$style_file = $theme_location . '/readme.txt';
|
24 |
+
|
25 |
+
$this->load_style_info( $style_file );
|
26 |
+
}
|
27 |
+
|
28 |
+
private function load_style_info( $style_file ) {
|
29 |
+
if ( file_exists( $style_file ) ) {
|
30 |
+
$style_info = $this->wptouch_object->load_file( $style_file );
|
31 |
+
|
32 |
+
$theme_frags = explode( DIRECTORY_SEPARATOR, trim( $theme_location, DIRECTORY_SEPARATOR ) );
|
33 |
+
|
34 |
+
$this->base = $theme_frags[ count( $theme_frags ) - 1 ];
|
35 |
+
$this->name = $this->wptouch_object->get_information_fragment( $style_info, 'Theme Name' );
|
36 |
+
$this->theme_url = $this->wptouch_object->get_information_fragment( $style_info, 'Theme URI' );
|
37 |
+
$this->description = $this->wptouch_object->get_information_fragment( $style_info, 'Description' );
|
38 |
+
$this->author = $this->wptouch_object->get_information_fragment( $style_info, 'Author' );
|
39 |
+
$this->version = $this->wptouch_object->get_information_fragment( $style_info, 'Version' );
|
40 |
+
$this->framework = $this->wptouch_object->get_information_fragment( $style_info, 'Framework' );
|
41 |
+
$features = $this->wptouch_object->get_information_fragment( $style_info, 'Features' );
|
42 |
+
|
43 |
+
if ( $features ) {
|
44 |
+
$this->features = explode( ',', str_replace( ', ', ',', $features ) );
|
45 |
+
} else {
|
46 |
+
$this->features = false;
|
47 |
+
}
|
48 |
+
|
49 |
+
$parent_info = $this->wptouch_object->get_information_fragment( $style_info, 'Parent' );
|
50 |
+
if ( $parent_info ) {
|
51 |
+
$this->parent_theme = $parent_info;
|
52 |
+
}
|
53 |
+
|
54 |
+
$this->tags = explode( ',', str_replace( ', ', ',', $this->get_information_fragment( $style_info, 'Tags' ) ) );
|
55 |
+
$this->screenshot = $theme_url . '/screenshot.png';
|
56 |
+
$this->location = str_replace( WP_CONTENT_DIR, '', $theme_location );
|
57 |
+
|
58 |
+
$this->loaded = true;
|
59 |
+
}
|
60 |
+
}
|
61 |
+
|
62 |
+
public function framework_version() {
|
63 |
+
return ( $this->framework );
|
64 |
+
}
|
65 |
+
|
66 |
+
public function is_child() {
|
67 |
+
return ( $this->parent_theme );
|
68 |
+
}
|
69 |
+
}
|
core/class-wptouch-pro-settings.php
CHANGED
@@ -18,9 +18,11 @@ class WPtouchSettings extends stdClass {
|
|
18 |
// These settings should never be adjusted, but rather should be augmented at a later time */
|
19 |
class WPtouchDefaultSettings30 extends WPtouchSettings {
|
20 |
function WPtouchDefaultSettings30() {
|
21 |
-
|
22 |
-
|
23 |
-
$this->
|
|
|
|
|
24 |
|
25 |
// Setup - General
|
26 |
$this->site_title = get_bloginfo( 'name' );
|
@@ -31,17 +33,19 @@ class WPtouchDefaultSettings30 extends WPtouchSettings {
|
|
31 |
}
|
32 |
|
33 |
// Setup - Desktop / Mobile Switching
|
34 |
-
/* TODO: Deprecated $this->desktop_is_first_view = false;*/
|
35 |
$this->show_switch_link = true;
|
36 |
$this->switch_link_method = 'automatic';
|
37 |
-
|
|
|
|
|
38 |
|
39 |
// Setup - Regionalization
|
40 |
$this->force_locale = 'auto';
|
41 |
-
|
42 |
-
$this->translate_admin = true;*/
|
43 |
|
44 |
// Setup - Statistics
|
|
|
|
|
45 |
$this->custom_stats_code = '';
|
46 |
|
47 |
// Setup - Home Page Redirect
|
@@ -49,33 +53,45 @@ class WPtouchDefaultSettings30 extends WPtouchSettings {
|
|
49 |
$this->homepage_redirect_wp_target = 0;
|
50 |
$this->homepage_redirect_custom_target = '';
|
51 |
|
52 |
-
//
|
53 |
-
$this->
|
54 |
-
|
55 |
-
// Setup - Tools and Debug
|
56 |
-
/* TODO: Deprecated $this->show_footer_load_times = false;*/
|
57 |
-
// Deprecated in 3.1
|
58 |
-
$this->preview_mode = 'off';
|
59 |
|
60 |
// Setup - Compatibility
|
61 |
-
$this->
|
62 |
-
$this->functions_php_loading_method = 'translate';
|
63 |
-
|
64 |
-
$this->enable_shortcode_compatibility = false;
|
65 |
-
$this->shortcode_compatibility_method = 'remove_shortcodes';
|
66 |
$this->remove_shortcodes = '';
|
67 |
|
68 |
$this->url_filter_behaviour = 'disabled';
|
69 |
$this->filtered_urls = '';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
70 |
$this->custom_user_agents = '';
|
71 |
|
72 |
-
// Default Theme
|
73 |
-
$this->current_theme_friendly_name = 'Bauhaus';
|
74 |
-
$this->current_theme_location = '/plugins/' . WPTOUCH_ROOT_NAME . '/themes';
|
75 |
-
$this->current_theme_name = 'bauhaus';
|
76 |
|
77 |
-
//
|
78 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
79 |
|
80 |
// Menu
|
81 |
$this->custom_menu_name = 'wp';
|
@@ -83,7 +99,7 @@ class WPtouchDefaultSettings30 extends WPtouchSettings {
|
|
83 |
$this->prepended_menu_name = 'none';
|
84 |
|
85 |
$this->enable_parent_items = true;
|
86 |
-
$this->enable_menu_icons =
|
87 |
|
88 |
$this->default_menu_icon = WPTOUCH_DEFAULT_MENU_ICON;
|
89 |
$this->disabled_menu_items = array();
|
@@ -94,21 +110,6 @@ class WPtouchDefaultSettings30 extends WPtouchSettings {
|
|
94 |
$this->debug_log_level = WPTOUCH_ALL;
|
95 |
$this->debug_log_salt = substr( md5( mt_rand() ), 0, 10 );
|
96 |
|
97 |
-
// Settings that are not yet hooked up and might go away
|
98 |
-
$this->menu_icons = array(); // ?
|
99 |
-
$this->menu_sort_order = 'wordpress';
|
100 |
-
$this->menu_disable_parent_as_child = false;
|
101 |
-
$this->disable_menu = false;
|
102 |
-
$this->make_links_clickable = false;
|
103 |
-
$this->custom_css_file = '';
|
104 |
-
$this->wptouch_enable_custom_post_types = false;
|
105 |
-
$this->always_refresh_css_js_files = false;
|
106 |
-
$this->classic_excluded_categories = false;
|
107 |
-
$this->convert_menu_links_to_internal = false;
|
108 |
-
|
109 |
-
// Settings that probably need to go away
|
110 |
-
$this->post_thumbnails_enabled = true;
|
111 |
-
|
112 |
// Add-Ons
|
113 |
$this->active_addons = array();
|
114 |
$this->show_wpml_lang_switcher = true;
|
@@ -130,6 +131,8 @@ class WPtouchDefaultSettingsBNCID30 extends WPtouchSettings {
|
|
130 |
$this->license_expiry_date = 0;
|
131 |
|
132 |
$this->referral_user_id = false;
|
|
|
|
|
133 |
}
|
134 |
};
|
135 |
|
18 |
// These settings should never be adjusted, but rather should be augmented at a later time */
|
19 |
class WPtouchDefaultSettings30 extends WPtouchSettings {
|
20 |
function WPtouchDefaultSettings30() {
|
21 |
+
|
22 |
+
// Wizard
|
23 |
+
$this->show_wizard = true;
|
24 |
+
$this->show_free_wizard = false;
|
25 |
+
$this->show_network_wizard = true;
|
26 |
|
27 |
// Setup - General
|
28 |
$this->site_title = get_bloginfo( 'name' );
|
33 |
}
|
34 |
|
35 |
// Setup - Desktop / Mobile Switching
|
|
|
36 |
$this->show_switch_link = true;
|
37 |
$this->switch_link_method = 'automatic';
|
38 |
+
|
39 |
+
// Setup - Multisite Network Admin Regionalization
|
40 |
+
$this->force_network_locale = 'auto';
|
41 |
|
42 |
// Setup - Regionalization
|
43 |
$this->force_locale = 'auto';
|
44 |
+
$this->translate_admin = true;
|
|
|
45 |
|
46 |
// Setup - Statistics
|
47 |
+
$this->analytics_embed_method = 'disabled';
|
48 |
+
$this->analytics_google_id = '';
|
49 |
$this->custom_stats_code = '';
|
50 |
|
51 |
// Setup - Home Page Redirect
|
53 |
$this->homepage_redirect_wp_target = 0;
|
54 |
$this->homepage_redirect_custom_target = '';
|
55 |
|
56 |
+
// Changed from preview_mode in 3.x for 4.0
|
57 |
+
$this->new_display_mode = true;
|
|
|
|
|
|
|
|
|
|
|
58 |
|
59 |
// Setup - Compatibility
|
60 |
+
$this->process_desktop_shortcodes = false;
|
|
|
|
|
|
|
|
|
61 |
$this->remove_shortcodes = '';
|
62 |
|
63 |
$this->url_filter_behaviour = 'disabled';
|
64 |
$this->filtered_urls = '';
|
65 |
+
$this->filtered_urls_exact = false;
|
66 |
+
|
67 |
+
// Device Support
|
68 |
+
$this->enable_ios_phone = true;
|
69 |
+
$this->enable_android_phone = true;
|
70 |
+
$this->enable_blackberry_phone = true;
|
71 |
+
$this->enable_firefox_phone = true;
|
72 |
+
$this->enable_opera_phone = true;
|
73 |
+
$this->enable_windows_phone = true;
|
74 |
+
|
75 |
+
$this->enable_ios_tablet = true;
|
76 |
+
$this->enable_android_tablet = true;
|
77 |
+
$this->enable_windows_tablet = true;
|
78 |
+
$this->enable_kindle_tablet = true;
|
79 |
+
$this->enable_blackberry_tablet = true;
|
80 |
+
$this->enable_webos_tablet = true;
|
81 |
+
|
82 |
$this->custom_user_agents = '';
|
83 |
|
|
|
|
|
|
|
|
|
84 |
|
85 |
+
// Default Theme
|
86 |
+
if ( defined( 'WPTOUCH_IS_FREE' ) ) {
|
87 |
+
$this->current_theme_friendly_name = 'Bauhaus';
|
88 |
+
$this->current_theme_location = '/plugins/' . WPTOUCH_ROOT_NAME . '/themes';
|
89 |
+
$this->current_theme_name = 'bauhaus';
|
90 |
+
} else {
|
91 |
+
$this->current_theme_friendly_name = false;
|
92 |
+
$this->current_theme_location = false;
|
93 |
+
$this->current_theme_name = false;
|
94 |
+
}
|
95 |
|
96 |
// Menu
|
97 |
$this->custom_menu_name = 'wp';
|
99 |
$this->prepended_menu_name = 'none';
|
100 |
|
101 |
$this->enable_parent_items = true;
|
102 |
+
$this->enable_menu_icons = false;
|
103 |
|
104 |
$this->default_menu_icon = WPTOUCH_DEFAULT_MENU_ICON;
|
105 |
$this->disabled_menu_items = array();
|
110 |
$this->debug_log_level = WPTOUCH_ALL;
|
111 |
$this->debug_log_salt = substr( md5( mt_rand() ), 0, 10 );
|
112 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
113 |
// Add-Ons
|
114 |
$this->active_addons = array();
|
115 |
$this->show_wpml_lang_switcher = true;
|
131 |
$this->license_expiry_date = 0;
|
132 |
|
133 |
$this->referral_user_id = false;
|
134 |
+
$this->allow_multisite = true;
|
135 |
+
$this->multisite_control = true;
|
136 |
}
|
137 |
};
|
138 |
|
core/class-wptouch-pro.php
CHANGED
@@ -1,6 +1,5 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
-
class WPtouchProThree {
|
4 |
// Set to true when the user is surfing on a supported mobile device
|
5 |
var $is_mobile_device;
|
6 |
|
@@ -46,12 +45,18 @@ class WPtouchProThree {
|
|
46 |
// Keeps track whether or not a settings restoration failed
|
47 |
var $restore_failure;
|
48 |
|
49 |
-
//
|
50 |
var $settings_objects;
|
51 |
|
52 |
// For storing menus in themes
|
53 |
var $theme_menus;
|
54 |
|
|
|
|
|
|
|
|
|
|
|
|
|
55 |
var $desktop_ajax_nonce;
|
56 |
|
57 |
var $cache_smash;
|
@@ -59,7 +64,7 @@ class WPtouchProThree {
|
|
59 |
// Shortcodes that must process before AJAX shortcode request
|
60 |
var $preprocess_shortcodes = array( 'gallery', 'new_royalslider' );
|
61 |
|
62 |
-
function
|
63 |
$this->is_mobile_device = false;
|
64 |
$this->showing_mobile_theme = false;
|
65 |
|
@@ -81,8 +86,12 @@ class WPtouchProThree {
|
|
81 |
$this->desktop_ajax_nonce = false;
|
82 |
|
83 |
$this->critical_notifications = array();
|
|
|
|
|
84 |
|
85 |
$this->cache_smash = false;
|
|
|
|
|
86 |
}
|
87 |
|
88 |
function invalidate_settings( $domain = false ) {
|
@@ -101,10 +110,91 @@ class WPtouchProThree {
|
|
101 |
$settings = $this->get_settings();
|
102 |
}
|
103 |
|
104 |
-
return ( $settings->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
105 |
}
|
106 |
|
107 |
function initialize() {
|
|
|
|
|
|
|
108 |
// Check to see if we should initialize WPtouch Pro - can be used by certain other plugins to disable WPtouch Pro
|
109 |
// When not initialized, WPtouch Pro is effectively disabled
|
110 |
$should_init = apply_filters( 'wptouch_should_init_pro', true );
|
@@ -112,6 +202,8 @@ class WPtouchProThree {
|
|
112 |
return false;
|
113 |
}
|
114 |
|
|
|
|
|
115 |
if ( defined( 'WPTOUCH_IS_FREE' ) ) {
|
116 |
add_filter( 'wptouch_settings_override_defaults', array( &$this, 'handle_free_migration' ), 10, 2 );
|
117 |
}
|
@@ -123,6 +215,8 @@ class WPtouchProThree {
|
|
123 |
require_once( WPTOUCH_DIR . '/core/admin-page-templates.php' );
|
124 |
}
|
125 |
|
|
|
|
|
126 |
// Prime the settings
|
127 |
$settings = $this->get_settings();
|
128 |
|
@@ -144,22 +238,19 @@ class WPtouchProThree {
|
|
144 |
// Perform upgrade here
|
145 |
WPTOUCH_DEBUG( WPTOUCH_INFO, '...saving BNCID settings in upgrade path' );
|
146 |
$bncid_settings->save();
|
147 |
-
}
|
148 |
|
149 |
-
|
|
|
|
|
150 |
|
151 |
require_once( WPTOUCH_DIR . '/core/class-cache-smash.php' );
|
152 |
$this->cache_smash = new WPtouchCacheSmash;
|
153 |
|
154 |
if ( is_admin() ) {
|
155 |
-
// New
|
156 |
require_once( WPTOUCH_DIR . '/core/admin-load.php' );
|
157 |
|
158 |
-
// Admin panel warnings notifications
|
159 |
-
require_once( WPTOUCH_DIR . '/core/notifications.php' );
|
160 |
-
|
161 |
add_action( 'admin_init', array( &$this, 'admin_handle_init' ) );
|
162 |
-
add_action( 'admin_head', array( &$this, 'handle_admin_head' ) );
|
163 |
|
164 |
add_action( 'all_admin_notices', array( &$this, 'handle_admin_notices' ) );
|
165 |
|
@@ -180,11 +271,10 @@ class WPtouchProThree {
|
|
180 |
// Plugin page
|
181 |
add_filter( 'plugin_action_links', array( &$this, 'wptouch_pro_settings_link' ), 9, 2 );
|
182 |
add_action( 'install_plugins_pre_plugin-information', array( &$this, 'show_plugin_info' ) );
|
183 |
-
add_action( 'after_plugin_row_wptouch-pro
|
184 |
|
185 |
// Backup/Restore
|
186 |
add_action( 'wptouch_settings_saved', array( &$this, 'check_for_restored_settings' ) );
|
187 |
-
add_action( 'wptouch_ajax_desktop_switch', array( &$this, 'handle_desktop_switch_ajax' ) );
|
188 |
|
189 |
require_once( WPTOUCH_DIR . '/core/cloud-migrate.php' );
|
190 |
|
@@ -194,7 +284,7 @@ class WPtouchProThree {
|
|
194 |
} else {
|
195 |
if ( $this->should_do_desktop_shortcode_magic( $settings ) ) {
|
196 |
add_filter( 'wptouch_force_mobile_device', array( &$this, 'shortcode_override' ) );
|
197 |
-
add_action( '
|
198 |
}
|
199 |
|
200 |
add_action( 'wp', array( &$this, 'set_cache_cookie' ) );
|
@@ -208,7 +298,6 @@ class WPtouchProThree {
|
|
208 |
add_filter( 'wptouch_supported_device_classes', array( &$this, 'augment_supported_devices' ) );
|
209 |
|
210 |
$this->check_for_settings_changes( false );
|
211 |
-
$this->setup_languages();
|
212 |
|
213 |
WPTOUCH_DEBUG( WPTOUCH_INFO, 'Adding root functions files' );
|
214 |
|
@@ -265,6 +354,7 @@ class WPtouchProThree {
|
|
265 |
// For Google Best Practices
|
266 |
header( 'Vary: User-Agent' );
|
267 |
} else {
|
|
|
268 |
add_action( 'wp_footer', array( &$this, 'handle_desktop_footer' ) );
|
269 |
}
|
270 |
|
@@ -272,10 +362,6 @@ class WPtouchProThree {
|
|
272 |
add_action( 'init', array( &$this, 'setup_desktop_nonce') );
|
273 |
|
274 |
$this->check_for_critical_notifications();
|
275 |
-
|
276 |
-
// if ( is_admin() ) {
|
277 |
-
// add_action( 'admin_menu', array( &$this, 'add_notification_icon' ) );
|
278 |
-
// }
|
279 |
}
|
280 |
|
281 |
function shortcode_override( $is_mobile_device ) {
|
@@ -334,7 +420,6 @@ class WPtouchProThree {
|
|
334 |
|
335 |
function handle_desktop_shortcode() {
|
336 |
if ( isset( $_GET[ 'wptouch_shortcode'] ) ) {
|
337 |
-
|
338 |
$post_nonce = $this->post[ 'post_nonce' ];
|
339 |
|
340 |
if ( !wp_verify_nonce( $post_nonce, 'wptouch-ajax' ) ) {
|
@@ -348,14 +433,7 @@ class WPtouchProThree {
|
|
348 |
// Save data for later
|
349 |
$shortcode_data = new stdClass;
|
350 |
|
351 |
-
$
|
352 |
-
if ( preg_match_all( '/'. $pattern .'/s', $post_content, $matches ) ) {
|
353 |
-
// Has a valid shortcode
|
354 |
-
$shortcode_data->has_desktop_shortcode = 1;
|
355 |
-
} else {
|
356 |
-
// No valid shortcode
|
357 |
-
$shortcode_data->has_desktop_shortcode = 0;
|
358 |
-
}
|
359 |
|
360 |
// Prevent mobile content from overriding this
|
361 |
remove_action( 'the_content', 'wptouch_addon_the_content_mobile_content', 1 );
|
@@ -374,19 +452,6 @@ class WPtouchProThree {
|
|
374 |
}
|
375 |
}
|
376 |
|
377 |
-
function add_notification_icon() {
|
378 |
-
global $menu;
|
379 |
-
|
380 |
-
require_once( WPTOUCH_DIR . '/core/notifications.php' );
|
381 |
-
|
382 |
-
foreach( $menu as $number => $content ) {
|
383 |
-
if ( $content[0] == 'WPtouch Pro' ) {
|
384 |
-
$content[ 0 ] = $content[ 0 ] . " <span class='wptouch update-plugins count-1' style='display: none;'><span class='update-count'></span></span>";
|
385 |
-
$menu[ $number ] = $content;
|
386 |
-
}
|
387 |
-
}
|
388 |
-
}
|
389 |
-
|
390 |
function handle_free_migration( $defaults, $domain ) {
|
391 |
$free_settings = get_option( 'bnc_iphone_pages', false );
|
392 |
if ( $free_settings ) {
|
@@ -397,7 +462,6 @@ class WPtouchProThree {
|
|
397 |
if ( $domain == 'wptouch_pro' ) {
|
398 |
$defaults->site_title = $free_settings[ 'header-title' ];
|
399 |
$defaults->show_wptouch_in_footer = false;
|
400 |
-
//$defaults->force_locale = $free_settings[ 'wptouch-language' ];
|
401 |
|
402 |
if ( isset( $free_settings[ 'home-page' ] ) ) {
|
403 |
$defaults->homepage_landing = 'select';
|
@@ -423,8 +487,6 @@ class WPtouchProThree {
|
|
423 |
$defaults->custom_footer_message = $free_settings[ 'custom-footer-msg' ];
|
424 |
}
|
425 |
|
426 |
-
$defaults->homescreen_icon_title = $free_settings[ 'header-title' ];
|
427 |
-
|
428 |
if ( isset( $free_settings[ 'excluded-cat-ids' ] ) && $free_settings[ 'excluded-cat-ids' ] ) {
|
429 |
$data = explode( ",", $free_settings[ 'excluded-cat-ids'] );
|
430 |
if ( is_array( $data ) && count( $data ) ) {
|
@@ -485,7 +547,7 @@ class WPtouchProThree {
|
|
485 |
|
486 |
function check_for_critical_notifications() {
|
487 |
if ( defined( 'WPTOUCH_MIGRATION_OLD_ISSUE' ) ) {
|
488 |
-
$this->add_critical_notification( sprintf( __( 'Automatic theme migration from uploads/wptouch-data directory failed. Please manually move these
|
489 |
}
|
490 |
}
|
491 |
|
@@ -494,9 +556,9 @@ class WPtouchProThree {
|
|
494 |
$installer = new WPtouchAddonThemeInstaller;
|
495 |
|
496 |
if ( $theme ) {
|
497 |
-
return $installer->
|
498 |
} else {
|
499 |
-
return $installer->can_perform_install( 'extensions' );
|
500 |
}
|
501 |
}
|
502 |
|
@@ -523,24 +585,44 @@ class WPtouchProThree {
|
|
523 |
}
|
524 |
}
|
525 |
|
|
|
|
|
|
|
|
|
526 |
|
527 |
-
if ( wptouch_migration_is_theme_broken() && !wptouch_can_repair_active_theme() ) {
|
528 |
if ( $this->can_perform_cloud_install( true ) ) {
|
529 |
-
echo '<
|
530 |
-
|
531 |
-
|
532 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
533 |
} else {
|
534 |
-
echo '<
|
535 |
-
|
536 |
-
|
|
|
|
|
537 |
}
|
|
|
|
|
|
|
538 |
} else if ( $this->has_critical_notifications() ) {
|
|
|
539 |
echo '<div class="error">';
|
540 |
foreach( $this->get_critical_notifications() as $notification ) {
|
541 |
echo '<p>' . $notification[0] . '</p>';
|
542 |
}
|
543 |
-
|
|
|
544 |
}
|
545 |
}
|
546 |
|
@@ -586,7 +668,7 @@ class WPtouchProThree {
|
|
586 |
}
|
587 |
|
588 |
if ( $this->is_mobile_device || $cache_desktop === true ) {
|
589 |
-
|
590 |
setcookie( WPTOUCH_CACHE_COOKIE, $cookie_value, time() + 3600, '/' );
|
591 |
$_COOKIE[ WPTOUCH_CACHE_COOKIE ] = $cookie_value;
|
592 |
}
|
@@ -600,7 +682,7 @@ class WPtouchProThree {
|
|
600 |
$settings = wptouch_get_settings();
|
601 |
|
602 |
// Setup Post Thumbnails
|
603 |
-
$create_thumbnails = apply_filters( 'wptouch_create_thumbnails',
|
604 |
if ( $create_thumbnails ) {
|
605 |
add_theme_support( 'post-thumbnails' );
|
606 |
|
@@ -622,8 +704,10 @@ class WPtouchProThree {
|
|
622 |
$settings = wptouch_get_settings();
|
623 |
|
624 |
$this->check_for_settings_changes( true );
|
625 |
-
|
626 |
-
|
|
|
|
|
627 |
|
628 |
// For the wptouch shortcode
|
629 |
add_shortcode( 'wptouch', array( &$this, 'handle_shortcode' ) );
|
@@ -655,8 +739,8 @@ class WPtouchProThree {
|
|
655 |
function admin_handle_init() {
|
656 |
require_once( dirname( __FILE__ ) . '/info.php' );
|
657 |
|
|
|
658 |
$this->admin_initialize();
|
659 |
-
$this->setup_admin_twitter_bootstrap();
|
660 |
$this->setup_admin_stylesheets();
|
661 |
$this->handle_admin_menu_commands();
|
662 |
$this->setup_automatic_backup();
|
@@ -666,17 +750,10 @@ class WPtouchProThree {
|
|
666 |
|
667 |
function setup_automatic_backup() {
|
668 |
$settings = wptouch_get_settings();
|
669 |
-
if
|
670 |
-
|
671 |
-
|
672 |
-
|
673 |
-
wp_schedule_event( $next_time, 'daily', 'wptouch_cron_backup_settings' );
|
674 |
-
}
|
675 |
-
} else {
|
676 |
-
// Make sure the event isn't scheduled
|
677 |
-
if ( wp_next_scheduled( 'wptouch_cron_backup_settings' ) ) {
|
678 |
-
wp_clear_scheduled_hook( 'wptouch_cron_backup_settings' );
|
679 |
-
}
|
680 |
}
|
681 |
}
|
682 |
|
@@ -706,8 +783,13 @@ class WPtouchProThree {
|
|
706 |
return ( is_admin() && strpos( $_SERVER['REQUEST_URI'], 'page=wptouch-' ) !== false );
|
707 |
}
|
708 |
|
|
|
|
|
|
|
|
|
709 |
function admin_initialize() {
|
710 |
$is_plugins_page = ( strpos( $_SERVER['REQUEST_URI'], 'plugins.php' ) !== false );
|
|
|
711 |
|
712 |
// We need the BNCAPI for checking for plugin updates and all the wptouch-pro admin functions
|
713 |
if ( $this->admin_is_wptouch_page() || $is_plugins_page ) {
|
@@ -723,6 +805,13 @@ class WPtouchProThree {
|
|
723 |
$this->check_for_update( true );
|
724 |
}
|
725 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
726 |
// load the core AJAX on all pages
|
727 |
$theme_broken = wptouch_migration_is_theme_broken() && !wptouch_can_repair_active_theme();
|
728 |
if ( $this->admin_is_wptouch_page() || $theme_broken ) {
|
@@ -730,11 +819,11 @@ class WPtouchProThree {
|
|
730 |
'admin_ajax_nonce' => wp_create_nonce( 'wptouch_admin_ajax' )
|
731 |
);
|
732 |
|
733 |
-
wp_enqueue_script( 'wptouch-pro-ajax', WPTOUCH_URL . '/admin/js/wptouch-ajax.js', array( 'jquery' ) );
|
734 |
wp_localize_script( 'wptouch-pro-ajax', 'WPtouchAjax', $ajax_params );
|
735 |
|
736 |
if ( $theme_broken && !defined( 'WPTOUCH_IS_FREE' ) ) {
|
737 |
-
wp_enqueue_script( 'wptouch-cloud-migrate', WPTOUCH_URL . '/admin/js/wptouch-admin-migrate.js', array( 'wptouch-pro-ajax' ),
|
738 |
}
|
739 |
}
|
740 |
|
@@ -748,74 +837,112 @@ class WPtouchProThree {
|
|
748 |
'plugin_admin_image_url' => WPTOUCH_ADMIN_URL . '/images',
|
749 |
'admin_nonce' => wp_create_nonce( 'wptouch_admin' ),
|
750 |
'plugin_url' => admin_url( 'admin.php?page=' . $_GET['page'] ),
|
751 |
-
'
|
752 |
-
'
|
753 |
-
'
|
754 |
-
'reset_menus' => __( "This will reset all WPtouch Pro menu and icon settings.\nAre you sure?", 'wptouch-pro' ),
|
755 |
-
'cloud_offline' => __( "Offline", 'wptouch-pro' ),
|
756 |
-
'cloud_offline_message' => __( "You appear to be offline. Connect to the internet to see available BraveNewCloud items.", 'wptouch-pro' ),
|
757 |
'cloud_download_fail' => __( 'The item failed to download for this reason: %reason%', 'wptouch-pro' ),
|
758 |
'remove_license' => __( 'You are about to reset your license information. Proceed?', 'wptouch-pro' ),
|
759 |
'upload_complete' => __( 'Upload Complete!', 'wptouch-pro' ),
|
760 |
'upload_invalid' => __( 'Upload Failed: Not a valid image.', 'wptouch-pro' ),
|
761 |
-
'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
762 |
);
|
763 |
|
764 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
765 |
|
766 |
-
|
767 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
768 |
|
769 |
wp_enqueue_script(
|
770 |
-
'wptouch-
|
771 |
-
WPTOUCH_URL . '/admin/js/wptouch-admin-
|
772 |
-
array( 'jquery
|
|
|
|
|
773 |
);
|
774 |
|
775 |
-
|
776 |
-
|
777 |
-
|
778 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
779 |
$localize_params = array(
|
780 |
'admin_url' => get_bloginfo('wpurl') . '/wp-admin',
|
781 |
'admin_nonce' => wp_create_nonce( 'wptouch_admin' )
|
782 |
);
|
783 |
|
784 |
-
wp_enqueue_script(
|
|
|
|
|
|
|
|
|
|
|
|
|
785 |
|
786 |
$ajax_params = array(
|
787 |
'admin_ajax_nonce' => wp_create_nonce( 'wptouch_admin_ajax' )
|
788 |
);
|
789 |
-
wp_localize_script( 'wptouch-pro-ajax', 'WPtouchAjax', $ajax_params );
|
790 |
-
|
791 |
-
wp_enqueue_script(
|
792 |
-
'wptouch-pro-other-admin',
|
793 |
-
WPTOUCH_URL . '/admin/js/wptouch-other-admin.js',
|
794 |
-
array( 'wptouch-pro-ajax' )
|
795 |
-
);
|
796 |
|
797 |
-
|
798 |
-
wp_localize_script( 'wptouch-pro-other-admin', 'WPtouchCustom', $localize_params );
|
799 |
}
|
800 |
|
801 |
$this->setup_wptouch_admin_ajax();
|
802 |
}
|
803 |
|
804 |
-
function handle_admin_head() {
|
805 |
-
if ( $this->admin_is_wptouch_page() ) {
|
806 |
-
// Set up contextual help
|
807 |
-
do_action( 'wptouch_admin_head' );
|
808 |
-
}
|
809 |
-
}
|
810 |
-
|
811 |
function load_root_functions_files() {
|
812 |
// Load root functions files only if we are in the admin or we are showing a mobile theme
|
813 |
require_once( WPTOUCH_DIR . '/core/menu.php' );
|
814 |
$clear_settings = false;
|
815 |
|
|
|
|
|
816 |
// Load the parent root-functions if it exists
|
817 |
if ( $this->has_parent_theme() ) {
|
818 |
$parent_info = $this->get_parent_theme_info();
|
|
|
|
|
|
|
|
|
819 |
if ( file_exists( WP_CONTENT_DIR . $parent_info->location . '/root-functions.php' ) ) {
|
820 |
require_once( WP_CONTENT_DIR . $parent_info->location . '/root-functions.php' );
|
821 |
}
|
@@ -826,6 +953,10 @@ class WPtouchProThree {
|
|
826 |
|
827 |
// Load the current theme functions.php, or the child root functions if it exists in WPtouch themes
|
828 |
if ( file_exists( $this->get_current_theme_directory() . '/root-functions.php' ) ) {
|
|
|
|
|
|
|
|
|
829 |
require_once( $this->get_current_theme_directory() . '/root-functions.php' );
|
830 |
|
831 |
// next time get_settings is called, the current theme defaults will be added in
|
@@ -850,7 +981,7 @@ class WPtouchProThree {
|
|
850 |
// check and set cookie
|
851 |
if ( isset( $this->get['wptouch_switch'] ) ) {
|
852 |
$expires_time = time()+3600*24*365; // 365 days
|
853 |
-
setcookie( WPTOUCH_COOKIE, $this->get['wptouch_switch'], $expires_time );
|
854 |
|
855 |
if ( isset( $_COOKIE[ WPTOUCH_CACHE_COOKIE ] ) ) {
|
856 |
if ( $this->get[ 'wptouch_switch' ] == 'desktop' ) {
|
@@ -875,13 +1006,6 @@ class WPtouchProThree {
|
|
875 |
// We can have a mobile device detected, but not show the mobile theme
|
876 |
// usually this is a result of the user manually disabling it via a link in the footer
|
877 |
if ( $this->is_mobile_device ) {
|
878 |
-
/* TODO: Deprecated
|
879 |
-
if ( !isset( $_COOKIE[ WPTOUCH_COOKIE ] ) ) {
|
880 |
-
$this->showing_mobile_theme = !$settings->desktop_is_first_view;
|
881 |
-
} else {
|
882 |
-
$this->showing_mobile_theme = ( $_COOKIE[WPTOUCH_COOKIE] === 'mobile' );
|
883 |
-
}
|
884 |
-
*/
|
885 |
$this->showing_mobile_theme = ( !isset( $_COOKIE[WPTOUCH_COOKIE] ) || $_COOKIE[WPTOUCH_COOKIE] === 'mobile' );
|
886 |
|
887 |
if ( $this->showing_mobile_theme ) {
|
@@ -895,7 +1019,7 @@ class WPtouchProThree {
|
|
895 |
}
|
896 |
|
897 |
foreach( $url_list as $url ) {
|
898 |
-
if (
|
899 |
if ( $settings->url_filter_behaviour == 'exclude_urls' ) { // Excluding URLs - kill mobile if the URL is matched
|
900 |
$block_mobile = true;
|
901 |
} elseif( $settings->url_filter_behaviour == 'exclusive_urls' ) { // Exclusive URLs - kill mobile if the URL is *not* matched
|
@@ -926,21 +1050,31 @@ class WPtouchProThree {
|
|
926 |
$force_mobile_ajax = true;
|
927 |
}
|
928 |
|
929 |
-
if ( is_admin() && !$force_mobile_ajax && !isset( $this->post[ 'wptouch_switch_location' ] ) ) {
|
930 |
$this->is_mobile_device = false;
|
931 |
$this->showing_mobile_theme = false;
|
932 |
return;
|
933 |
}
|
934 |
|
935 |
-
if ( !$this->showing_mobile_theme ) {
|
936 |
-
|
937 |
-
add_action( 'wp_footer', array( &$this, 'show_desktop_switch_link' ) );
|
938 |
-
}
|
939 |
}
|
940 |
|
941 |
add_filter( 'response_modify_cache_key', array( &$this, 'modify_response_key' ) );
|
942 |
}
|
943 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
944 |
function modify_response_key( $current_key ) {
|
945 |
if ( $this->is_mobile_device ) {
|
946 |
if ( $this->showing_mobile_theme ) {
|
@@ -969,8 +1103,6 @@ class WPtouchProThree {
|
|
969 |
// Menu Tags
|
970 |
require_once( WPTOUCH_DIR . '/core/menu.php' );
|
971 |
|
972 |
-
add_action( 'wptouch_functions_start', array( &$this, 'load_functions_file_for_desktop' ) );
|
973 |
-
|
974 |
// These actions and filters are only loaded when WPtouch and a mobile theme are active
|
975 |
add_action( 'wp', array( &$this, 'check_for_redirect' ) );
|
976 |
add_filter( 'init', array( &$this, 'init_theme' ) );
|
@@ -987,10 +1119,9 @@ class WPtouchProThree {
|
|
987 |
|
988 |
add_action( 'template_redirect', array( &$this, 'intercept_template' ), 1 );
|
989 |
|
990 |
-
add_action( '
|
991 |
-
add_action( 'wptouch_pre_footer', array( &$this, 'handle_custom_footer_styles' ) );
|
992 |
|
993 |
-
if (
|
994 |
$this->remove_shortcodes( $settings->remove_shortcodes );
|
995 |
}
|
996 |
|
@@ -1020,12 +1151,6 @@ class WPtouchProThree {
|
|
1020 |
|
1021 |
}
|
1022 |
|
1023 |
-
function check_third_party_plugins() {
|
1024 |
-
if ( defined( 'WORDTWIT_PRO_INSTALLED' ) ) {
|
1025 |
-
add_filter( 'wptouch_default_settings', array( &$this, 'add_default_wordtwit_pro_settings' ) );
|
1026 |
-
}
|
1027 |
-
}
|
1028 |
-
|
1029 |
function handle_activation() {
|
1030 |
// activation hook
|
1031 |
$site_root = get_home_path();
|
@@ -1055,7 +1180,6 @@ class WPtouchProThree {
|
|
1055 |
|
1056 |
function handle_upload_file() {
|
1057 |
$this->cleanup_post_and_get();
|
1058 |
-
|
1059 |
header( 'HTTP/1.1 200 OK' );
|
1060 |
$nonce = $this->post[ 'wp_nonce' ];
|
1061 |
if( wp_verify_nonce( $nonce, 'wptouch_admin' ) && current_user_can( 'manage_options' ) ) {
|
@@ -1122,6 +1246,29 @@ class WPtouchProThree {
|
|
1122 |
}
|
1123 |
}
|
1124 |
break;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1125 |
default:
|
1126 |
// For different file uploads
|
1127 |
WPTOUCH_DEBUG( WPTOUCH_INFO, 'Handling default file upload' );
|
@@ -1142,31 +1289,6 @@ class WPtouchProThree {
|
|
1142 |
return ( $this->is_mobile_device && $this->showing_mobile_theme );
|
1143 |
}
|
1144 |
|
1145 |
-
function load_functions_file_for_desktop() {
|
1146 |
-
$settings = wptouch_get_settings();
|
1147 |
-
|
1148 |
-
// Check to see if we should include the functions.php file from the desktop theme
|
1149 |
-
if ( $settings->include_functions_from_desktop_theme ) {
|
1150 |
-
$desktop_theme_directory = get_theme_root() . '/'. get_template();
|
1151 |
-
$desktop_functions_file = $desktop_theme_directory . '/functions.php';
|
1152 |
-
|
1153 |
-
// Check to see if the theme has a functions.php file
|
1154 |
-
if ( file_exists( $desktop_functions_file ) ) {
|
1155 |
-
switch( $settings->functions_php_loading_method ) {
|
1156 |
-
case 'direct':
|
1157 |
-
WPTOUCH_DEBUG( WPTOUCH_INFO, 'Include desktop functions file using DIRECT method' );
|
1158 |
-
require_once( $desktop_functions_file );
|
1159 |
-
break;
|
1160 |
-
case 'translate':
|
1161 |
-
WPTOUCH_DEBUG( WPTOUCH_INFO, 'Include desktop functions file using TRANSLATE method' );
|
1162 |
-
require_once( WPTOUCH_DIR . '/core/desktop-functions.php' );
|
1163 |
-
wptouch_include_functions_file( $desktop_functions_file, dirname( $desktop_functions_file ), dirname( $desktop_functions_file ), 'require_once' );
|
1164 |
-
break;
|
1165 |
-
}
|
1166 |
-
}
|
1167 |
-
}
|
1168 |
-
}
|
1169 |
-
|
1170 |
function nullify_shortcode( $params ) {
|
1171 |
return '';
|
1172 |
}
|
@@ -1180,15 +1302,31 @@ class WPtouchProThree {
|
|
1180 |
}
|
1181 |
}
|
1182 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1183 |
function get_template_directory( $directory, $template = false, $root = false ) {
|
|
|
|
|
1184 |
$theme_info = $this->get_current_theme_info();
|
1185 |
|
1186 |
if ( $this->has_parent_theme() ) {
|
1187 |
$parent_info = $this->get_parent_theme_info();
|
1188 |
|
1189 |
-
return WP_CONTENT_DIR . $parent_info->location .
|
1190 |
} else {
|
1191 |
-
return WP_CONTENT_DIR . $theme_info->location .
|
1192 |
}
|
1193 |
}
|
1194 |
|
@@ -1207,7 +1345,7 @@ class WPtouchProThree {
|
|
1207 |
function get_stylesheet_directory( $directory, $template = false, $root = false ) {
|
1208 |
$theme_info = $this->get_current_theme_info();
|
1209 |
|
1210 |
-
return WP_CONTENT_DIR . $theme_info->location .
|
1211 |
}
|
1212 |
|
1213 |
function get_stylesheet_directory_uri( $directory, $template = false, $root = false ) {
|
@@ -1231,6 +1369,7 @@ class WPtouchProThree {
|
|
1231 |
|
1232 |
if ( $theme_info ) {
|
1233 |
$themes = $this->get_available_themes();
|
|
|
1234 |
if ( isset( $themes[ $theme_info->parent_theme ] ) ) {
|
1235 |
return $themes[ $theme_info->parent_theme ];
|
1236 |
}
|
@@ -1245,7 +1384,11 @@ class WPtouchProThree {
|
|
1245 |
if ( $custom_lang_files && count( $custom_lang_files ) ) {
|
1246 |
foreach( $custom_lang_files as $lang_file ) {
|
1247 |
$locale_name = str_replace( 'wptouch-pro-', '', basename( $lang_file, '.mo' ) );
|
1248 |
-
|
|
|
|
|
|
|
|
|
1249 |
}
|
1250 |
}
|
1251 |
|
@@ -1362,15 +1505,15 @@ class WPtouchProThree {
|
|
1362 |
}
|
1363 |
}
|
1364 |
|
1365 |
-
|
1366 |
$plugin_name = WPTOUCH_PLUGIN_SLUG;
|
1367 |
|
1368 |
include( WPTOUCH_DIR . '/admin/html/plugin-area.php' );
|
1369 |
-
|
1370 |
|
1371 |
function wptouch_pro_settings_link( $links, $file ) {
|
1372 |
-
|
1373 |
-
$settings_link = '<a href="' . admin_url( 'admin.php?page=wptouch-admin-
|
1374 |
array_push( $links, $settings_link );
|
1375 |
}
|
1376 |
|
@@ -1378,9 +1521,9 @@ class WPtouchProThree {
|
|
1378 |
}
|
1379 |
|
1380 |
function remove_transient_info() {
|
1381 |
-
|
1382 |
|
1383 |
-
|
1384 |
|
1385 |
if ( function_exists( 'is_super_admin' ) ) {
|
1386 |
$option = get_site_transient( 'update_plugins' );
|
@@ -1397,25 +1540,27 @@ class WPtouchProThree {
|
|
1397 |
}
|
1398 |
}
|
1399 |
|
1400 |
-
|
1401 |
-
|
1402 |
-
|
1403 |
-
|
1404 |
-
|
1405 |
|
1406 |
-
|
1407 |
switch( $_REQUEST[ 'plugin' ] ) {
|
1408 |
-
case 'wptouch-pro
|
1409 |
-
echo
|
|
|
1410 |
|
1411 |
require_once( WPTOUCH_DIR . '/core/admin-ajax.php' );
|
1412 |
|
1413 |
wptouch_admin_handle_ajax( $this, 'admin-change-log' );
|
|
|
1414 |
exit;
|
1415 |
default:
|
1416 |
break;
|
1417 |
}
|
1418 |
-
|
1419 |
|
1420 |
function get_information_fragment( &$style_info, $fragment ) {
|
1421 |
if ( preg_match( '#' . $fragment . ': (.*)#i', $style_info, $matches ) ) {
|
@@ -1438,8 +1583,10 @@ class WPtouchProThree {
|
|
1438 |
$addon_info->version = $this->get_information_fragment( $info, 'Version' );
|
1439 |
$addon_info->screenshot = $addon_url . '/screenshot.png';
|
1440 |
$addon_info->location = str_replace( WP_CONTENT_DIR, '', $addon_location );
|
|
|
|
|
1441 |
|
1442 |
-
$addon_frags = explode(
|
1443 |
$addon_info->base = $addon_frags[ count( $addon_frags ) - 1 ];
|
1444 |
|
1445 |
return $addon_info;
|
@@ -1448,19 +1595,29 @@ class WPtouchProThree {
|
|
1448 |
return false;
|
1449 |
}
|
1450 |
|
1451 |
-
function
|
|
|
|
|
|
|
|
|
1452 |
$style_file = $theme_location . '/readme.txt';
|
1453 |
if ( file_exists( $style_file ) ) {
|
1454 |
$style_info = $this->load_file( $style_file );
|
1455 |
|
1456 |
$theme_info = new stdClass;
|
1457 |
-
$theme_frags = explode(
|
1458 |
$theme_info->base = $theme_frags[ count( $theme_frags ) - 1 ];
|
1459 |
$theme_info->name = $this->get_information_fragment( $style_info, 'Theme Name' );
|
1460 |
$theme_info->theme_url = $this->get_information_fragment( $style_info, 'Theme URI' );
|
1461 |
$theme_info->description = $this->get_information_fragment( $style_info, 'Description' );
|
|
|
1462 |
$theme_info->author = $this->get_information_fragment( $style_info, 'Author' );
|
1463 |
$theme_info->version = $this->get_information_fragment( $style_info, 'Version' );
|
|
|
|
|
|
|
|
|
|
|
1464 |
$features = $this->get_information_fragment( $style_info, 'Features' );
|
1465 |
|
1466 |
if ( $features ) {
|
@@ -1469,6 +1626,10 @@ class WPtouchProThree {
|
|
1469 |
$theme_info->features = false;
|
1470 |
}
|
1471 |
|
|
|
|
|
|
|
|
|
1472 |
$parent_info = $this->get_information_fragment( $style_info, 'Parent' );
|
1473 |
if ( $parent_info ) {
|
1474 |
$theme_info->parent_theme = $parent_info;
|
@@ -1476,8 +1637,7 @@ class WPtouchProThree {
|
|
1476 |
|
1477 |
$theme_info->tags = explode( ',', str_replace( ', ', ',', $this->get_information_fragment( $style_info, 'Tags' ) ) );
|
1478 |
$theme_info->screenshot = $theme_url . '/screenshot.png';
|
1479 |
-
$theme_info->location = str_replace( WP_CONTENT_DIR, '', $theme_location );
|
1480 |
-
$theme_info->custom_theme = $custom;
|
1481 |
|
1482 |
return $theme_info;
|
1483 |
}
|
@@ -1494,7 +1654,7 @@ class WPtouchProThree {
|
|
1494 |
function get_theme_directories() {
|
1495 |
$theme_directorys = array();
|
1496 |
|
1497 |
-
$theme_directories[] = array( WPTOUCH_DIR . '
|
1498 |
|
1499 |
return apply_filters( 'wptouch_theme_directories', $theme_directories );
|
1500 |
}
|
@@ -1502,7 +1662,7 @@ class WPtouchProThree {
|
|
1502 |
function get_addon_directories() {
|
1503 |
$addon_directories = array();
|
1504 |
|
1505 |
-
$addon_directories[] = array( WPTOUCH_BASE_CONTENT_DIR . '
|
1506 |
|
1507 |
return apply_filters( 'wptouch_addon_directories', $addon_directories );
|
1508 |
}
|
@@ -1517,6 +1677,16 @@ class WPtouchProThree {
|
|
1517 |
$settings->save();
|
1518 |
}
|
1519 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1520 |
function get_available_addons( $include_cloud = false ) {
|
1521 |
$addons = array();
|
1522 |
$addon_directories = $this->get_addon_directories();
|
@@ -1531,7 +1701,7 @@ class WPtouchProThree {
|
|
1531 |
continue;
|
1532 |
}
|
1533 |
|
1534 |
-
$addon_info = $this->get_addon_information( $addon_dir[0] .
|
1535 |
|
1536 |
if ( $addon_info ) {
|
1537 |
$addons[ $addon_info->name ] = $addon_info;
|
@@ -1543,10 +1713,13 @@ class WPtouchProThree {
|
|
1543 |
}
|
1544 |
|
1545 |
if ( $include_cloud ) {
|
1546 |
-
if (
|
1547 |
-
|
|
|
1548 |
|
1549 |
-
|
|
|
|
|
1550 |
}
|
1551 |
|
1552 |
$to_add = array();
|
@@ -1561,6 +1734,16 @@ class WPtouchProThree {
|
|
1561 |
$this_addon->screenshot = $cloud_addon[ 'screenshot' ];
|
1562 |
$this_addon->base = $cloud_addon[ 'base' ];
|
1563 |
$this_addon->location = 'cloud';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1564 |
|
1565 |
if ( isset( $cloud_addon[ 'upgrade_url' ] ) ) {
|
1566 |
$this_addon->download_url = $cloud_addon[ 'upgrade_url' ];
|
@@ -1579,12 +1762,23 @@ class WPtouchProThree {
|
|
1579 |
$this_addon = $addons[ $cloud_addon[ 'name' ] ];
|
1580 |
|
1581 |
$this_addon->cloud_version = $cloud_addon[ 'version' ];
|
1582 |
-
$this_addon->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1583 |
|
1584 |
if ( isset( $cloud_addon[ 'upgrade_url' ] ) ) {
|
1585 |
$this_addon->download_url = $cloud_addon[ 'upgrade_url' ];
|
1586 |
}
|
1587 |
|
|
|
1588 |
$addons[ $cloud_addon[ 'name' ] ] = $this_addon;
|
1589 |
}
|
1590 |
}
|
@@ -1593,6 +1787,8 @@ class WPtouchProThree {
|
|
1593 |
}
|
1594 |
}
|
1595 |
|
|
|
|
|
1596 |
return $addons;
|
1597 |
}
|
1598 |
|
@@ -1601,7 +1797,6 @@ class WPtouchProThree {
|
|
1601 |
$cloud_themes = array();
|
1602 |
$theme_directories = $this->get_theme_directories();
|
1603 |
|
1604 |
-
$custom = false;
|
1605 |
foreach( $theme_directories as $theme_dir ) {
|
1606 |
$list_dir = @opendir( $theme_dir[0] );
|
1607 |
|
@@ -1612,7 +1807,7 @@ class WPtouchProThree {
|
|
1612 |
continue;
|
1613 |
}
|
1614 |
|
1615 |
-
$theme_info = $this->get_theme_information( $theme_dir[0] .
|
1616 |
|
1617 |
if ( $theme_info ) {
|
1618 |
$themes[ $theme_info->name ] = $theme_info;
|
@@ -1621,18 +1816,16 @@ class WPtouchProThree {
|
|
1621 |
|
1622 |
closedir( $list_dir );
|
1623 |
}
|
1624 |
-
|
1625 |
-
if ( !$custom ) {
|
1626 |
-
$custom = true;
|
1627 |
-
}
|
1628 |
-
|
1629 |
}
|
1630 |
|
1631 |
if ( $include_cloud ) {
|
1632 |
-
if (
|
1633 |
-
|
|
|
1634 |
|
1635 |
-
|
|
|
|
|
1636 |
}
|
1637 |
|
1638 |
$to_add = array();
|
@@ -1642,12 +1835,21 @@ class WPtouchProThree {
|
|
1642 |
$this_theme = new stdClass;
|
1643 |
$this_theme->name = $cloud_theme[ 'name' ];
|
1644 |
$this_theme->description = $cloud_theme[ 'description' ];
|
|
|
1645 |
$this_theme->author = $cloud_theme[ 'author' ];
|
1646 |
$this_theme->version = $cloud_theme[ 'version' ];
|
1647 |
$this_theme->screenshot = $cloud_theme[ 'screenshot' ];
|
1648 |
$this_theme->base = $cloud_theme[ 'base' ];
|
1649 |
$this_theme->location = 'cloud';
|
1650 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1651 |
|
1652 |
if ( isset( $cloud_theme[ 'theme_type' ] ) ) {
|
1653 |
$this_theme->theme_type = $cloud_theme[ 'theme_type' ];
|
@@ -1667,16 +1869,33 @@ class WPtouchProThree {
|
|
1667 |
|
1668 |
$to_add[ $this_theme->name ] = $this_theme;
|
1669 |
} else {
|
1670 |
-
|
1671 |
$this_theme = $themes[ $cloud_theme[ 'name' ] ];
|
1672 |
|
1673 |
$this_theme->cloud_version = $cloud_theme[ 'version' ];
|
1674 |
|
1675 |
if ( isset( $cloud_theme[ 'upgrade_url' ] ) ) {
|
1676 |
-
$this_theme->
|
1677 |
$this_theme->download_url = $cloud_theme[ 'upgrade_url' ];
|
1678 |
}
|
1679 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1680 |
$themes[ $cloud_theme[ 'name' ] ] = $this_theme;
|
1681 |
}
|
1682 |
}
|
@@ -1685,7 +1904,20 @@ class WPtouchProThree {
|
|
1685 |
}
|
1686 |
}
|
1687 |
|
1688 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1689 |
|
1690 |
return apply_filters( 'wptouch_available_themes', $themes );
|
1691 |
}
|
@@ -1781,7 +2013,7 @@ class WPtouchProThree {
|
|
1781 |
continue;
|
1782 |
}
|
1783 |
|
1784 |
-
$icon_pack_info = $this->get_icon_set_information( $icon_dir[0] .
|
1785 |
|
1786 |
if ( $icon_pack_info ) {
|
1787 |
$icon_packs[ $icon_pack_info->name ] = $icon_pack_info;
|
@@ -1853,9 +2085,9 @@ class WPtouchProThree {
|
|
1853 |
if ( $f == '.' || $f == '..' || $f == '.svn' || !$this->is_image_file( $f ) ) continue;
|
1854 |
|
1855 |
$icon_info = new stdClass;
|
1856 |
-
$icon_info->location = $pack->location .
|
1857 |
$icon_info->short_location = str_replace( WP_CONTENT_DIR, '', $icon_info->location );
|
1858 |
-
$icon_info->url = $pack->url .
|
1859 |
$icon_info->name = $f;
|
1860 |
$icon_info->set = $setname;
|
1861 |
$icon_info->class_name = $class_name;
|
@@ -1866,10 +2098,10 @@ class WPtouchProThree {
|
|
1866 |
|
1867 |
// add image size information if the user has the GD library installed
|
1868 |
if ( function_exists( 'getimagesize' ) ) {
|
1869 |
-
$icon_info->image_size = getimagesize( $pack->location .
|
1870 |
}
|
1871 |
|
1872 |
-
$icons[ $f .
|
1873 |
}
|
1874 |
|
1875 |
closedir( $dir );
|
@@ -1881,13 +2113,17 @@ class WPtouchProThree {
|
|
1881 |
return $icons;
|
1882 |
}
|
1883 |
|
|
|
|
|
|
|
|
|
1884 |
function check_and_use_min_file( $file_name, $file_ext, $rel_path = WPTOUCH_DIR, $rel_url = WPTOUCH_URL ) {
|
1885 |
$min_file = str_replace( $file_ext, '.min' . $file_ext, $file_name );
|
1886 |
|
1887 |
if ( file_exists( $rel_path . $min_file ) ) {
|
1888 |
-
return $rel_url . $min_file;
|
1889 |
} else {
|
1890 |
-
return $rel_url . $file_name;
|
1891 |
}
|
1892 |
}
|
1893 |
|
@@ -1902,30 +2138,44 @@ class WPtouchProThree {
|
|
1902 |
function setup_admin_stylesheets() {
|
1903 |
if ( $this->admin_is_wptouch_page() ) {
|
1904 |
|
1905 |
-
|
|
|
1906 |
|
1907 |
-
|
|
|
1908 |
|
1909 |
-
if (
|
|
|
|
|
|
|
|
|
|
|
|
|
1910 |
WPTOUCH_DEBUG( WPTOUCH_INFO, 'Loading RTL stylesheet' );
|
1911 |
wp_enqueue_style(
|
1912 |
'wptouch-admin-rtl',
|
1913 |
wptouch_check_url_ssl( $this->check_and_use_css_file(
|
1914 |
-
'/admin/css/rtl.css',
|
1915 |
WPTOUCH_DIR,
|
1916 |
WPTOUCH_URL
|
1917 |
) ),
|
1918 |
-
|
1919 |
-
|
1920 |
-
|
1921 |
}
|
1922 |
}
|
1923 |
-
}
|
1924 |
|
1925 |
-
|
1926 |
-
|
1927 |
-
|
1928 |
-
wp_enqueue_script( 'wptouch-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1929 |
}
|
1930 |
}
|
1931 |
|
@@ -1948,16 +2198,23 @@ class WPtouchProThree {
|
|
1948 |
|
1949 |
add_action( 'wp_footer', array( &$this, 'handle_footer' ) );
|
1950 |
|
1951 |
-
wp_enqueue_script( 'wptouch-ajax', WPTOUCH_URL . '/include/js/wptouch.js', array( 'jquery' ), md5( WPTOUCH_VERSION ), true );
|
|
|
|
|
|
|
|
|
|
|
|
|
1952 |
|
1953 |
$localize_params = array(
|
1954 |
'ajaxurl' => get_bloginfo( 'wpurl' ) . '/wp-admin/admin-ajax.php',
|
1955 |
'siteurl' => str_replace( array( 'http://' . $_SERVER['SERVER_NAME'] . '','https://' . $_SERVER['SERVER_NAME'] . '' ), '', get_bloginfo( 'url' ) . '/' ),
|
1956 |
'security_nonce' => wp_create_nonce( 'wptouch-ajax' ),
|
1957 |
-
'current_shortcode_url' => add_query_arg( array( 'wptouch_shortcode' => '1' ), esc_url_raw( $_SERVER[ 'REQUEST_URI' ] ) )
|
|
|
1958 |
);
|
1959 |
|
1960 |
-
wp_localize_script( 'wptouch-ajax', 'wptouchMain', apply_filters( 'wptouch_localize_scripts', $localize_params ) );
|
1961 |
|
1962 |
do_action( 'wptouch_init' );
|
1963 |
|
@@ -2017,20 +2274,61 @@ class WPtouchProThree {
|
|
2017 |
|
2018 |
// Check for language override
|
2019 |
$settings = wptouch_get_settings();
|
2020 |
-
|
2021 |
-
|
|
|
|
|
|
|
2022 |
}
|
2023 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024 |
if ( !empty( $current_locale ) ) {
|
2025 |
$current_locale = apply_filters( 'wptouch_language', $current_locale );
|
2026 |
|
2027 |
$use_lang_file = false;
|
2028 |
-
$custom_lang_file =
|
2029 |
|
2030 |
if ( file_exists( $custom_lang_file ) && is_readable( $custom_lang_file ) ) {
|
2031 |
$use_lang_file = $custom_lang_file;
|
2032 |
-
|
2033 |
-
$rel_path = str_replace( WP_CONTENT_DIR, '../', WPTOUCH_CUSTOM_LANG_DIRECTORY );
|
2034 |
$use_lang_rel_path = $rel_path;
|
2035 |
} else {
|
2036 |
$lang_file = WPTOUCH_DIR . '/lang/wptouch-pro-' . $current_locale . '.mo';
|
@@ -2041,7 +2339,7 @@ class WPtouchProThree {
|
|
2041 |
if ( defined( 'WPTOUCH_IS_FREE' ) ) {
|
2042 |
$use_lang_rel_path = 'wptouch/lang';
|
2043 |
} else {
|
2044 |
-
$use_lang_rel_path = 'wptouch-pro
|
2045 |
}
|
2046 |
|
2047 |
}
|
@@ -2054,11 +2352,10 @@ class WPtouchProThree {
|
|
2054 |
if ( $use_lang_file ) {
|
2055 |
$can_load = true;
|
2056 |
|
2057 |
-
if ( is_admin() &&
|
2058 |
$can_load = false;
|
2059 |
}
|
2060 |
|
2061 |
-
|
2062 |
if ( $can_load ) {
|
2063 |
load_plugin_textdomain( 'wptouch-pro', false, $use_lang_rel_path );
|
2064 |
|
@@ -2166,17 +2463,18 @@ class WPtouchProThree {
|
|
2166 |
foreach( (array)$defaults as $name => $value ) {
|
2167 |
if ( !isset( $settings->$name ) ) {
|
2168 |
$settings->$name = $value;
|
|
|
2169 |
}
|
2170 |
}
|
2171 |
}
|
2172 |
-
}
|
2173 |
|
2174 |
-
|
2175 |
-
|
2176 |
-
|
2177 |
-
|
2178 |
|
2179 |
-
|
|
|
2180 |
|
2181 |
// Update our internal cache of the settings
|
2182 |
$this->settings_objects[ $domain ] = $settings;
|
@@ -2195,20 +2493,6 @@ class WPtouchProThree {
|
|
2195 |
$this->settings_objects = array();
|
2196 |
}
|
2197 |
|
2198 |
-
function add_default_wordtwit_pro_settings( $defaults ) {
|
2199 |
-
if ( function_exists( 'wordtwit_wptouch_has_accounts' ) && wordtwit_wptouch_has_accounts() ) {
|
2200 |
-
$accounts = wordtwit_wptouch_get_accounts();
|
2201 |
-
|
2202 |
-
foreach( $accounts as $name => $account ) {
|
2203 |
-
$setting_name = 'wordtwit_account_' . $name;
|
2204 |
-
|
2205 |
-
$defaults->$setting_name = true;
|
2206 |
-
}
|
2207 |
-
}
|
2208 |
-
|
2209 |
-
return $defaults;
|
2210 |
-
}
|
2211 |
-
|
2212 |
function get_supported_device_classes() {
|
2213 |
global $wptouch_device_classes;
|
2214 |
|
@@ -2280,25 +2564,14 @@ class WPtouchProThree {
|
|
2280 |
}
|
2281 |
|
2282 |
function is_supported_device() {
|
2283 |
-
|
2284 |
-
|
2285 |
-
$user_agent = apply_filters( 'wptouch_user_agent', str_replace( array( 'Twitter for iPhone', 'iPad;FBSN/iPhone' ), '', $_SERVER['HTTP_USER_AGENT'] ) );
|
2286 |
|
2287 |
$settings = $this->get_settings();
|
2288 |
|
2289 |
-
|
2290 |
-
case 'normal':
|
2291 |
-
break;
|
2292 |
-
case 'preview':
|
2293 |
-
return $this->is_in_preview_mode();
|
2294 |
-
break;
|
2295 |
-
case 'disabled':
|
2296 |
-
return false;
|
2297 |
-
}
|
2298 |
-
|
2299 |
-
// If our preview parameter is set, we also are a supported device
|
2300 |
-
if ( $this->is_previewing_mobile_theme() ) {
|
2301 |
return true;
|
|
|
|
|
2302 |
}
|
2303 |
|
2304 |
// Now that preview mode is out of the way, let's figure out the proper list of user agents
|
@@ -2306,10 +2579,10 @@ class WPtouchProThree {
|
|
2306 |
|
2307 |
// Figure out the active device type and the active device class
|
2308 |
foreach( $supported_agents as $agent ) {
|
2309 |
-
if ( $this->user_agent_matches( $user_agent, $agent ) ) {
|
2310 |
$agent_ok = true;
|
2311 |
|
2312 |
-
$exclusion_list = apply_filters( 'wptouch_exclusion_list',
|
2313 |
|
2314 |
foreach( $exclusion_list as $exclude_user_agent ) {
|
2315 |
$friendly_exclude = preg_quote( $exclude_user_agent );
|
@@ -2342,8 +2615,11 @@ class WPtouchProThree {
|
|
2342 |
}
|
2343 |
|
2344 |
function is_in_preview_mode() {
|
2345 |
-
|
2346 |
-
|
|
|
|
|
|
|
2347 |
}
|
2348 |
|
2349 |
function is_previewing_mobile_theme() {
|
@@ -2368,13 +2644,15 @@ class WPtouchProThree {
|
|
2368 |
delete_site_transient( '_wptouch_available_cloud_addons' );
|
2369 |
delete_site_transient( '_wptouch_available_cloud_themes' );
|
2370 |
delete_site_transient( '_wptouch_bncid_latest_version' );
|
|
|
2371 |
}
|
2372 |
|
2373 |
function activate_license() {
|
2374 |
WPTOUCH_DEBUG( WPTOUCH_INFO, 'Attempting to activate a site license' );
|
2375 |
$bnc_api = $this->get_bnc_api();
|
|
|
2376 |
if ( $bnc_api ) {
|
2377 |
-
WPTOUCH_DEBUG( WPTOUCH_INFO, 'Adding license for wptouch-pro
|
2378 |
$bnc_api->user_add_license();
|
2379 |
|
2380 |
$settings = wptouch_get_settings( 'bncid' );
|
@@ -2406,14 +2684,14 @@ class WPtouchProThree {
|
|
2406 |
return ( in_array( $this_site, (array)$licenses['licenses'] ) );
|
2407 |
}
|
2408 |
|
2409 |
-
function setup_bncapi( $bncid = 'default', $key = 'default' ) {
|
2410 |
if ( !$this->bnc_api ) {
|
2411 |
require_once( WPTOUCH_DIR . '/core/class-bncapi.php' );
|
2412 |
require_once( WPTOUCH_DIR . '/core/bncid.php' );
|
2413 |
|
2414 |
$settings = $this->get_settings( 'bncid' );
|
2415 |
|
2416 |
-
if ( defined( 'WPTOUCH_IS_FREE' ) ) {
|
2417 |
$bncid = '';
|
2418 |
$key = '';
|
2419 |
} else {
|
@@ -2440,21 +2718,26 @@ class WPtouchProThree {
|
|
2440 |
echo wptouch_capture_include_file( WPTOUCH_DIR . '/include/html/footer.php' );
|
2441 |
}
|
2442 |
|
2443 |
-
|
2444 |
-
|
2445 |
-
|
2446 |
-
|
2447 |
-
|
2448 |
-
|
2449 |
-
|
2450 |
-
|
2451 |
-
|
2452 |
-
|
2453 |
-
|
2454 |
-
|
2455 |
-
|
2456 |
-
|
2457 |
-
|
|
|
|
|
|
|
|
|
|
|
2458 |
}
|
2459 |
}
|
2460 |
|
@@ -2485,6 +2768,8 @@ class WPtouchProThree {
|
|
2485 |
break;
|
2486 |
}
|
2487 |
|
|
|
|
|
2488 |
if ( $redirect_target ) {
|
2489 |
$can_do_redirect = true;
|
2490 |
if ( get_option( 'show_on_front', false ) == 'page' ) {
|
@@ -2494,8 +2779,14 @@ class WPtouchProThree {
|
|
2494 |
}
|
2495 |
}
|
2496 |
|
|
|
|
|
|
|
|
|
|
|
|
|
2497 |
if ( $can_do_redirect ) {
|
2498 |
-
$this->redirect_to_page( $redirect_target, $
|
2499 |
}
|
2500 |
}
|
2501 |
}
|
@@ -2625,11 +2916,15 @@ class WPtouchProThree {
|
|
2625 |
}
|
2626 |
|
2627 |
function get_current_theme_directory() {
|
2628 |
-
return WP_CONTENT_DIR . $this->get_current_theme_location();
|
2629 |
}
|
2630 |
|
2631 |
function get_current_theme_uri() {
|
2632 |
-
return wptouch_check_url_ssl( content_url() . $this->get_current_theme_location() );
|
|
|
|
|
|
|
|
|
2633 |
}
|
2634 |
|
2635 |
function get_current_theme() {
|
@@ -2641,7 +2936,19 @@ class WPtouchProThree {
|
|
2641 |
function get_current_theme_location() {
|
2642 |
$settings = $this->get_settings();
|
2643 |
|
2644 |
-
return $settings->current_theme_location .
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2645 |
}
|
2646 |
|
2647 |
function setup_theme_styles() {
|
@@ -2651,32 +2958,46 @@ class WPtouchProThree {
|
|
2651 |
$dependencies = array();
|
2652 |
if ( $this->has_parent_theme() ) {
|
2653 |
$parent_info = $this->get_parent_theme_info();
|
2654 |
-
$css_file = $this->check_and_use_css_file( '/themes/foundation/' . $this->get_active_device_class() . '/style.css' );
|
2655 |
|
2656 |
-
|
2657 |
-
|
|
|
2658 |
}
|
2659 |
|
2660 |
-
$
|
2661 |
-
$settings->current_theme_location .
|
2662 |
-
WP_CONTENT_DIR,
|
2663 |
content_url()
|
2664 |
);
|
2665 |
|
2666 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2667 |
|
|
|
|
|
|
|
|
|
|
|
2668 |
}
|
2669 |
|
2670 |
function setup_child_theme_styles() {
|
2671 |
$css_file = $this->check_and_use_css_file( $this->get_stylesheet_directory( false ) . '/style.css' );
|
2672 |
-
wp_enqueue_style( 'wptouch_child', wptouch_check_url_ssl( $css_file ), array( 'wptouch-parent-theme-css' ), WPTOUCH_VERSION );
|
2673 |
}
|
2674 |
|
2675 |
-
function handle_desktop_switch_ajax() {
|
2676 |
-
$this->show_desktop_switch_link( true );
|
2677 |
-
|
2678 |
-
die;
|
2679 |
-
}
|
2680 |
|
2681 |
function https_for_ssl( $content ) {
|
2682 |
return wptouch_check_url_ssl( $content );
|
@@ -2692,28 +3013,12 @@ class WPtouchProThree {
|
|
2692 |
}
|
2693 |
}
|
2694 |
|
2695 |
-
function show_desktop_switch_link(
|
2696 |
require_once( WPTOUCH_DIR . '/core/theme.php' );
|
2697 |
require_once( WPTOUCH_DIR . '/core/globals.php' );
|
2698 |
|
2699 |
-
if ( $
|
2700 |
-
|
2701 |
-
if ( $this->is_mobile_device && !$this->showing_mobile_theme ) {
|
2702 |
-
if ( file_exists( WPTOUCH_DIR . '/include/html/desktop-switch.php' ) ) {
|
2703 |
-
$settings = wptouch_get_settings();
|
2704 |
-
if ( $settings->switch_link_method != 'template_tag' ) {
|
2705 |
-
wptouch_show_desktop_switch_link();
|
2706 |
-
}
|
2707 |
-
}
|
2708 |
-
}
|
2709 |
-
} else {
|
2710 |
-
$settings = wptouch_get_settings();
|
2711 |
-
|
2712 |
-
if ( $settings->switch_link_method == 'ajax' ) {
|
2713 |
-
echo "<div id='wptouch_desktop_switch'></div>\n";
|
2714 |
-
echo "<script type='text/javascript'>var wptouchAjaxUrl = '" . admin_url( 'admin-ajax.php' ) . "'; wptouchAjaxNonce = '" . $this->desktop_ajax_nonce . "'; wptouchAjaxSwitchLocation = '" . esc_attr( $_SERVER[ 'REQUEST_URI' ] ) . "';</script>\n";
|
2715 |
-
echo "<script type='text/javascript' src='" . WPTOUCH_URL . "/include/js/desktop-switch.js'></script>\n";
|
2716 |
-
} else if ( $this->is_mobile_device && !$this->showing_mobile_theme ) {
|
2717 |
wptouch_show_desktop_switch_link();
|
2718 |
}
|
2719 |
}
|
@@ -2765,6 +3070,8 @@ class WPtouchProThree {
|
|
2765 |
|
2766 |
$this->settings_objects = array();
|
2767 |
$this->delete_theme_add_on_cache();
|
|
|
|
|
2768 |
}
|
2769 |
|
2770 |
function process_submitted_settings( $update_info = false ) {
|
@@ -2804,7 +3111,7 @@ class WPtouchProThree {
|
|
2804 |
$settings = apply_filters( 'wptouch_update_settings', $settings );
|
2805 |
}
|
2806 |
|
2807 |
-
//
|
2808 |
$settings = apply_filters( 'wptouch_update_settings_domain', $settings, $domain );
|
2809 |
|
2810 |
// Save the old domain
|
@@ -2847,4 +3154,4 @@ class WPtouchProThree {
|
|
2847 |
|
2848 |
wptouch_recursive_delete( $source_dir );
|
2849 |
}
|
2850 |
-
}
|
1 |
<?php
|
2 |
+
class WPtouchProFour {
|
|
|
3 |
// Set to true when the user is surfing on a supported mobile device
|
4 |
var $is_mobile_device;
|
5 |
|
45 |
// Keeps track whether or not a settings restoration failed
|
46 |
var $restore_failure;
|
47 |
|
48 |
+
// Settings objects, based on domains
|
49 |
var $settings_objects;
|
50 |
|
51 |
// For storing menus in themes
|
52 |
var $theme_menus;
|
53 |
|
54 |
+
// Keeps track of whether or not theme updates are available
|
55 |
+
var $theme_upgrades_available;
|
56 |
+
|
57 |
+
// Keeps track of whether or not extension updates are available
|
58 |
+
var $extension_upgrades_available;
|
59 |
+
|
60 |
var $desktop_ajax_nonce;
|
61 |
|
62 |
var $cache_smash;
|
64 |
// Shortcodes that must process before AJAX shortcode request
|
65 |
var $preprocess_shortcodes = array( 'gallery', 'new_royalslider' );
|
66 |
|
67 |
+
function WPtouchProFour() {
|
68 |
$this->is_mobile_device = false;
|
69 |
$this->showing_mobile_theme = false;
|
70 |
|
86 |
$this->desktop_ajax_nonce = false;
|
87 |
|
88 |
$this->critical_notifications = array();
|
89 |
+
$this->theme_upgrades_available = false;
|
90 |
+
$this->extension_upgrades_available = false;
|
91 |
|
92 |
$this->cache_smash = false;
|
93 |
+
|
94 |
+
require_once( dirname( __FILE__ ) . '/class-theme.php' );
|
95 |
}
|
96 |
|
97 |
function invalidate_settings( $domain = false ) {
|
110 |
$settings = $this->get_settings();
|
111 |
}
|
112 |
|
113 |
+
return ( $settings->process_desktop_shortcodes );
|
114 |
+
}
|
115 |
+
|
116 |
+
function check_for_self_destruct() {
|
117 |
+
if ( isset( $this->post[ 'wptouch-self-destruct' ] ) ) {
|
118 |
+
|
119 |
+
$nonce = $this->post[ 'wptouch-self-destruct-nonce' ];
|
120 |
+
if ( !wp_verify_nonce( $nonce, 'tsarbomba' ) || !current_user_can( 'activate_plugins' ) ) {
|
121 |
+
return;
|
122 |
+
}
|
123 |
+
|
124 |
+
// Self Destruct
|
125 |
+
$wipe_settings = false;
|
126 |
+
$wipe_wptouch_data = false;
|
127 |
+
$wipe_deactivate = false;
|
128 |
+
|
129 |
+
if ( isset( $this->post[ 'wptouch-self-destruct-1'] ) ) {
|
130 |
+
$wipe_settings = true;
|
131 |
+
} else if ( isset( $this->post[ 'wptouch-self-destruct-2' ] ) ) {
|
132 |
+
$wipe_settings = true;
|
133 |
+
$wipe_wptouch_data = true;
|
134 |
+
} else if ( isset( $this->post[ 'wptouch-self-destruct-3'] ) ) {
|
135 |
+
$wipe_settings = true;
|
136 |
+
$wipe_wptouch_data = true;
|
137 |
+
$wipe_deactivate = true;
|
138 |
+
}
|
139 |
+
|
140 |
+
// Wipe all settings, including the active domain and foundation/framework
|
141 |
+
if ( $wipe_settings ) {
|
142 |
+
$setting_domains = $this->get_active_setting_domains();
|
143 |
+
|
144 |
+
foreach( $setting_domains as $domain ) {
|
145 |
+
if ( $domain == 'bncid' ) {
|
146 |
+
continue;
|
147 |
+
}
|
148 |
+
|
149 |
+
$setting_name = $this->get_wp_setting_name_for_domain( $domain );
|
150 |
+
|
151 |
+
if ( $this->is_domain_site_wide( $domain ) ) {
|
152 |
+
delete_site_option( $setting_name );
|
153 |
+
} else {
|
154 |
+
delete_option( $setting_name );
|
155 |
+
}
|
156 |
+
}
|
157 |
+
|
158 |
+
do_action( 'wptouch_after_self_destruct' );
|
159 |
+
}
|
160 |
+
|
161 |
+
if ( $wipe_wptouch_data ) {
|
162 |
+
require_once( WPTOUCH_DIR . '/core/file-operations.php' );
|
163 |
+
|
164 |
+
if ( wptouch_is_controlled_network() ) {
|
165 |
+
wptouch_recursive_delete( WPTOUCH_BASE_CONTENT_MS_DIR );
|
166 |
+
} else {
|
167 |
+
wptouch_recursive_delete( WPTOUCH_BASE_CONTENT_DIR );
|
168 |
+
}
|
169 |
+
}
|
170 |
+
|
171 |
+
if ( $wipe_deactivate ) {
|
172 |
+
deactivate_plugins( WPTOUCH_PLUGIN_ACTIVATE_NAME );
|
173 |
+
wp_redirect( admin_url( 'plugins.php' ) );
|
174 |
+
exit;
|
175 |
+
} else {
|
176 |
+
setcookie( 'jQu3ry_5teps_St@te_wptouch-wizard-container', '', time() - 3600 );
|
177 |
+
wp_redirect( wptouch_admin_url( 'admin.php?page=wptouch-admin-wizard' ) );
|
178 |
+
exit;
|
179 |
+
}
|
180 |
+
}
|
181 |
+
|
182 |
+
if ( isset( $this->get[ 'wptouch_license_action' ] ) && $this->get[ 'wptouch_license_action' ] == 'remove_license' ) {
|
183 |
+
$nonce = $this->get[ 'wptouch_license_nonce' ];
|
184 |
+
|
185 |
+
if ( wp_verify_nonce( $nonce, 'tsarbomba' ) && current_user_can( 'activate_plugins' ) ) {
|
186 |
+
$this->setup_bncapi();
|
187 |
+
$this->bnc_api->user_remove_license();
|
188 |
+
wp_redirect( add_query_arg( array( 'wptouch_license_action' => null, 'wptouch_license_nonce' => null ) ) );
|
189 |
+
die;
|
190 |
+
}
|
191 |
+
}
|
192 |
}
|
193 |
|
194 |
function initialize() {
|
195 |
+
|
196 |
+
require_once( 'mobile-user-agents.php' );
|
197 |
+
|
198 |
// Check to see if we should initialize WPtouch Pro - can be used by certain other plugins to disable WPtouch Pro
|
199 |
// When not initialized, WPtouch Pro is effectively disabled
|
200 |
$should_init = apply_filters( 'wptouch_should_init_pro', true );
|
202 |
return false;
|
203 |
}
|
204 |
|
205 |
+
require_once( WPTOUCH_DIR . '/admin/customizer/wptouch-customizer.php' );
|
206 |
+
|
207 |
if ( defined( 'WPTOUCH_IS_FREE' ) ) {
|
208 |
add_filter( 'wptouch_settings_override_defaults', array( &$this, 'handle_free_migration' ), 10, 2 );
|
209 |
}
|
215 |
require_once( WPTOUCH_DIR . '/core/admin-page-templates.php' );
|
216 |
}
|
217 |
|
218 |
+
$this->cleanup_post_and_get();
|
219 |
+
|
220 |
// Prime the settings
|
221 |
$settings = $this->get_settings();
|
222 |
|
238 |
// Perform upgrade here
|
239 |
WPTOUCH_DEBUG( WPTOUCH_INFO, '...saving BNCID settings in upgrade path' );
|
240 |
$bncid_settings->save();
|
|
|
241 |
|
242 |
+
// Delete the language information transient so we check for a new language file
|
243 |
+
delete_site_transient( '_wptouch_language_info' );
|
244 |
+
}
|
245 |
|
246 |
require_once( WPTOUCH_DIR . '/core/class-cache-smash.php' );
|
247 |
$this->cache_smash = new WPtouchCacheSmash;
|
248 |
|
249 |
if ( is_admin() ) {
|
250 |
+
// New Admin panels
|
251 |
require_once( WPTOUCH_DIR . '/core/admin-load.php' );
|
252 |
|
|
|
|
|
|
|
253 |
add_action( 'admin_init', array( &$this, 'admin_handle_init' ) );
|
|
|
254 |
|
255 |
add_action( 'all_admin_notices', array( &$this, 'handle_admin_notices' ) );
|
256 |
|
271 |
// Plugin page
|
272 |
add_filter( 'plugin_action_links', array( &$this, 'wptouch_pro_settings_link' ), 9, 2 );
|
273 |
add_action( 'install_plugins_pre_plugin-information', array( &$this, 'show_plugin_info' ) );
|
274 |
+
add_action( 'after_plugin_row_wptouch-pro/wptouch-pro.php', array( &$this, 'plugin_row' ) );
|
275 |
|
276 |
// Backup/Restore
|
277 |
add_action( 'wptouch_settings_saved', array( &$this, 'check_for_restored_settings' ) );
|
|
|
278 |
|
279 |
require_once( WPTOUCH_DIR . '/core/cloud-migrate.php' );
|
280 |
|
284 |
} else {
|
285 |
if ( $this->should_do_desktop_shortcode_magic( $settings ) ) {
|
286 |
add_filter( 'wptouch_force_mobile_device', array( &$this, 'shortcode_override' ) );
|
287 |
+
add_action( 'init', array( &$this, 'handle_desktop_shortcode' ) );
|
288 |
}
|
289 |
|
290 |
add_action( 'wp', array( &$this, 'set_cache_cookie' ) );
|
298 |
add_filter( 'wptouch_supported_device_classes', array( &$this, 'augment_supported_devices' ) );
|
299 |
|
300 |
$this->check_for_settings_changes( false );
|
|
|
301 |
|
302 |
WPTOUCH_DEBUG( WPTOUCH_INFO, 'Adding root functions files' );
|
303 |
|
354 |
// For Google Best Practices
|
355 |
header( 'Vary: User-Agent' );
|
356 |
} else {
|
357 |
+
remove_action( 'wp_enqueue_scripts', 'wptouch_foundation_load_framework_styles', 1 );
|
358 |
add_action( 'wp_footer', array( &$this, 'handle_desktop_footer' ) );
|
359 |
}
|
360 |
|
362 |
add_action( 'init', array( &$this, 'setup_desktop_nonce') );
|
363 |
|
364 |
$this->check_for_critical_notifications();
|
|
|
|
|
|
|
|
|
365 |
}
|
366 |
|
367 |
function shortcode_override( $is_mobile_device ) {
|
420 |
|
421 |
function handle_desktop_shortcode() {
|
422 |
if ( isset( $_GET[ 'wptouch_shortcode'] ) ) {
|
|
|
423 |
$post_nonce = $this->post[ 'post_nonce' ];
|
424 |
|
425 |
if ( !wp_verify_nonce( $post_nonce, 'wptouch-ajax' ) ) {
|
433 |
// Save data for later
|
434 |
$shortcode_data = new stdClass;
|
435 |
|
436 |
+
$shortcode_data->has_desktop_shortcode = 1;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
437 |
|
438 |
// Prevent mobile content from overriding this
|
439 |
remove_action( 'the_content', 'wptouch_addon_the_content_mobile_content', 1 );
|
452 |
}
|
453 |
}
|
454 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
455 |
function handle_free_migration( $defaults, $domain ) {
|
456 |
$free_settings = get_option( 'bnc_iphone_pages', false );
|
457 |
if ( $free_settings ) {
|
462 |
if ( $domain == 'wptouch_pro' ) {
|
463 |
$defaults->site_title = $free_settings[ 'header-title' ];
|
464 |
$defaults->show_wptouch_in_footer = false;
|
|
|
465 |
|
466 |
if ( isset( $free_settings[ 'home-page' ] ) ) {
|
467 |
$defaults->homepage_landing = 'select';
|
487 |
$defaults->custom_footer_message = $free_settings[ 'custom-footer-msg' ];
|
488 |
}
|
489 |
|
|
|
|
|
490 |
if ( isset( $free_settings[ 'excluded-cat-ids' ] ) && $free_settings[ 'excluded-cat-ids' ] ) {
|
491 |
$data = explode( ",", $free_settings[ 'excluded-cat-ids'] );
|
492 |
if ( is_array( $data ) && count( $data ) ) {
|
547 |
|
548 |
function check_for_critical_notifications() {
|
549 |
if ( defined( 'WPTOUCH_MIGRATION_OLD_ISSUE' ) ) {
|
550 |
+
$this->add_critical_notification( sprintf( __( 'Automatic theme migration from wp-content/uploads/wptouch-data directory failed. Please manually move these folders to wp-content/wptouch-data: %s', 'wptouch-pro' ), "<em>'themes', 'icons', 'lang', 'uploads', 'backups'</em>" ) );
|
551 |
}
|
552 |
}
|
553 |
|
556 |
$installer = new WPtouchAddonThemeInstaller;
|
557 |
|
558 |
if ( $theme ) {
|
559 |
+
return $installer->can_perform_install_anywhere( wptouch_get_multsite_aware_install_path( 'themes' ) );
|
560 |
} else {
|
561 |
+
return $installer->can_perform_install( wptouch_get_multsite_aware_install_path( 'extensions' ) );
|
562 |
}
|
563 |
}
|
564 |
|
585 |
}
|
586 |
}
|
587 |
|
588 |
+
if ( wptouch_migration_is_theme_broken() && !wptouch_can_repair_active_theme() && !wptouch_active_theme_is_custom() ) {
|
589 |
+
|
590 |
+
echo '<div class="remodal remodal-cloud" data-remodal-id="modal-repair" data-remodal-options="hashTracking: false">';
|
591 |
+
echo '<button data-remodal-action="close" class="remodal-close"></button>';
|
592 |
|
|
|
593 |
if ( $this->can_perform_cloud_install( true ) ) {
|
594 |
+
echo '<h1>' . __( "WPtouch Repair Required", "wptouch-pro" ) . '</h1>
|
595 |
+
<div id="progress-repair" class="license-status">
|
596 |
+
<div class="progress">
|
597 |
+
<div class="bar"></div>
|
598 |
+
</div>
|
599 |
+
</div>
|
600 |
+
<div class="success-msg message">
|
601 |
+
<p>' . __( "Your mobile theme was either broken or missing.", "wptouch-pro" ) . '<br />
|
602 |
+
' . __( "We downloaded a fresh copy for you.", "wptouch-pro" ) . '</p>
|
603 |
+
<button data-remodal-action="confirm" class="remodal-confirm">' . __( "OK", "wptouch-pro" ) . '</button>
|
604 |
+
</div>
|
605 |
+
<div class="failed-msg message">
|
606 |
+
<p>' . wptouchize_it( sprintf( __( "We were unable to install your WPtouch Pro theme from the Cloud. %s Please visit %sthis article%s for more information.", "wptouch-pro" ), "<br />", "<a href='//support.wptouch.com/support/solutions/articles/5000525305-themes-or-extensions-cannot-be-downloaded'>", "</a>" ) ) . '</p>
|
607 |
+
</div>';
|
608 |
} else {
|
609 |
+
echo '<h1>' . __( "WPtouch Server Issue", "wptouch-pro" ) . '</h1>
|
610 |
+
<div>
|
611 |
+
<p>' . wptouchize_it( sprintf( __( 'Your server setup is preventing WPtouch Pro from installing from the Cloud. %s Please visit %sthis article%s for more information on how to fix it.', 'wptouch-pro' ), '</br >', '<a href="//support.wptouch.com/support/solutions/articles/5000525305-themes-or-extensions-cannot-be-downloaded">', '</a>' ) ) . '</p>' .
|
612 |
+
'</div>' .
|
613 |
+
'<button data-remodal-action="confirm" class="remodal-confirm">' . __( "OK", "wptouch-pro" ) . '</button>';
|
614 |
}
|
615 |
+
|
616 |
+
echo '</div>';
|
617 |
+
|
618 |
} else if ( $this->has_critical_notifications() ) {
|
619 |
+
|
620 |
echo '<div class="error">';
|
621 |
foreach( $this->get_critical_notifications() as $notification ) {
|
622 |
echo '<p>' . $notification[0] . '</p>';
|
623 |
}
|
624 |
+
echo '</div>';
|
625 |
+
|
626 |
}
|
627 |
}
|
628 |
|
668 |
}
|
669 |
|
670 |
if ( $this->is_mobile_device || $cache_desktop === true ) {
|
671 |
+
if ( !isset( $_COOKIE[ WPTOUCH_CACHE_COOKIE ] ) || ( isset( $_COOKIE[ WPTOUCH_CACHE_COOKIE ] ) && $_COOKIE[ WPTOUCH_CACHE_COOKIE] != $cookie_value ) ) {
|
672 |
setcookie( WPTOUCH_CACHE_COOKIE, $cookie_value, time() + 3600, '/' );
|
673 |
$_COOKIE[ WPTOUCH_CACHE_COOKIE ] = $cookie_value;
|
674 |
}
|
682 |
$settings = wptouch_get_settings();
|
683 |
|
684 |
// Setup Post Thumbnails
|
685 |
+
$create_thumbnails = apply_filters( 'wptouch_create_thumbnails', function_exists( 'add_theme_support' ) );
|
686 |
if ( $create_thumbnails ) {
|
687 |
add_theme_support( 'post-thumbnails' );
|
688 |
|
704 |
$settings = wptouch_get_settings();
|
705 |
|
706 |
$this->check_for_settings_changes( true );
|
707 |
+
|
708 |
+
if ( !defined( 'DOING_AJAX' ) ) {
|
709 |
+
$this->setup_languages();
|
710 |
+
}
|
711 |
|
712 |
// For the wptouch shortcode
|
713 |
add_shortcode( 'wptouch', array( &$this, 'handle_shortcode' ) );
|
739 |
function admin_handle_init() {
|
740 |
require_once( dirname( __FILE__ ) . '/info.php' );
|
741 |
|
742 |
+
$this->check_for_self_destruct();
|
743 |
$this->admin_initialize();
|
|
|
744 |
$this->setup_admin_stylesheets();
|
745 |
$this->handle_admin_menu_commands();
|
746 |
$this->setup_automatic_backup();
|
750 |
|
751 |
function setup_automatic_backup() {
|
752 |
$settings = wptouch_get_settings();
|
753 |
+
// Check to see if we've schedule the event
|
754 |
+
if ( !wp_next_scheduled( 'wptouch_cron_backup_settings' ) ) {
|
755 |
+
$next_time = floor( time() / WPTOUCH_SECS_IN_DAY ) + WPTOUCH_SECS_IN_DAY;
|
756 |
+
wp_schedule_event( $next_time, 'daily', 'wptouch_cron_backup_settings' );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
757 |
}
|
758 |
}
|
759 |
|
783 |
return ( is_admin() && strpos( $_SERVER['REQUEST_URI'], 'page=wptouch-' ) !== false );
|
784 |
}
|
785 |
|
786 |
+
function admin_is_menu_page() {
|
787 |
+
return ( is_admin() && strpos( $_SERVER[ 'REQUEST_URI' ], 'nav-menus.php' ) !== false && ( !isset( $_REQUEST[ 'action'] ) || $_REQUEST[ 'action' ] != 'locations' ) );
|
788 |
+
}
|
789 |
+
|
790 |
function admin_initialize() {
|
791 |
$is_plugins_page = ( strpos( $_SERVER['REQUEST_URI'], 'plugins.php' ) !== false );
|
792 |
+
$is_wizard_page = ( strpos( $_SERVER['REQUEST_URI'], '?page=wptouch-admin-wizard' ) !== false );
|
793 |
|
794 |
// We need the BNCAPI for checking for plugin updates and all the wptouch-pro admin functions
|
795 |
if ( $this->admin_is_wptouch_page() || $is_plugins_page ) {
|
805 |
$this->check_for_update( true );
|
806 |
}
|
807 |
}
|
808 |
+
|
809 |
+
// Remodal, load everywhere except wizard
|
810 |
+
if ( !$is_wizard_page ) {
|
811 |
+
wp_enqueue_script( 'wptouch-remodal', WPTOUCH_URL . '/admin/js/wptouch-admin-remodal.js', array( 'wptouch-pro-ajax' ), md5( WPTOUCH_VERSION ), true );
|
812 |
+
wp_enqueue_style( 'wptouch-remodal', WPTOUCH_URL . '/admin/css/wptouch-admin-remodal.css', false, md5( WPTOUCH_VERSION ) );
|
813 |
+
}
|
814 |
+
|
815 |
// load the core AJAX on all pages
|
816 |
$theme_broken = wptouch_migration_is_theme_broken() && !wptouch_can_repair_active_theme();
|
817 |
if ( $this->admin_is_wptouch_page() || $theme_broken ) {
|
819 |
'admin_ajax_nonce' => wp_create_nonce( 'wptouch_admin_ajax' )
|
820 |
);
|
821 |
|
822 |
+
wp_enqueue_script( 'wptouch-pro-ajax', WPTOUCH_URL . '/admin/js/wptouch-ajax.js', array( 'jquery' ), md5( WPTOUCH_VERSION ), true );
|
823 |
wp_localize_script( 'wptouch-pro-ajax', 'WPtouchAjax', $ajax_params );
|
824 |
|
825 |
if ( $theme_broken && !defined( 'WPTOUCH_IS_FREE' ) ) {
|
826 |
+
wp_enqueue_script( 'wptouch-cloud-migrate', WPTOUCH_URL . '/admin/js/wptouch-admin-migrate.js', array( 'wptouch-pro-ajax' ), md5( WPTOUCH_VERSION ) );
|
827 |
}
|
828 |
}
|
829 |
|
837 |
'plugin_admin_image_url' => WPTOUCH_ADMIN_URL . '/images',
|
838 |
'admin_nonce' => wp_create_nonce( 'wptouch_admin' ),
|
839 |
'plugin_url' => admin_url( 'admin.php?page=' . $_GET['page'] ),
|
840 |
+
'reset_settings' => wptouchize_it( __( "This will reset all WPtouch Pro settings.\nAre you sure?", 'wptouch-pro' ) ),
|
841 |
+
'reset_delete' => __( "This will reset all WPtouch Pro settings and delete the wptouch-data folder.\nAre you sure?", 'wptouch-pro' ),
|
842 |
+
'reset_delete_deactivate' => __( "This will reset all WPtouch Pro settings, delete the wptouch-data folder, and deactivate the plugin. Are you sure?", 'wptouch-pro' ),
|
|
|
|
|
|
|
843 |
'cloud_download_fail' => __( 'The item failed to download for this reason: %reason%', 'wptouch-pro' ),
|
844 |
'remove_license' => __( 'You are about to reset your license information. Proceed?', 'wptouch-pro' ),
|
845 |
'upload_complete' => __( 'Upload Complete!', 'wptouch-pro' ),
|
846 |
'upload_invalid' => __( 'Upload Failed: Not a valid image.', 'wptouch-pro' ),
|
847 |
+
'saving_settings' => __( 'WPtouch is saving settings. Please do not refresh the page while saving.', 'wptouch-pro' ),
|
848 |
+
'install_themes' => __( 'Install Themes', 'wptouch-pro' ),
|
849 |
+
'install_extensions' => __( 'Install Extensions', 'wptouch-pro' ),
|
850 |
+
'install' => __( 'Install', 'wptouch-pro' ),
|
851 |
+
'installing' => __( 'Installing', 'wptouch-pro' ),
|
852 |
+
'installed' => __( 'Installed', 'wptouch-pro' ),
|
853 |
+
'download' => __( 'Download', 'wptouch-pro' ),
|
854 |
+
'is_network_admin' => is_network_admin()
|
855 |
);
|
856 |
|
857 |
+
// 4.0 Adding some easing :)
|
858 |
+
wp_enqueue_script(
|
859 |
+
'jquery-easing',
|
860 |
+
'//cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.3/jquery.easing.min.js',
|
861 |
+
array( 'jquery' ),
|
862 |
+
md5( WPTOUCH_VERSION ),
|
863 |
+
false
|
864 |
+
);
|
865 |
|
866 |
+
if ( strpos( $_SERVER['REQUEST_URI'], 'wptouch-admin-wizard' ) == true ) {
|
867 |
+
// 4.0 Wizard Script
|
868 |
+
wp_enqueue_script(
|
869 |
+
'wptouch-wizard',
|
870 |
+
WPTOUCH_URL . '/admin/js/wptouch-admin-wizard.js',
|
871 |
+
array( 'jquery','wptouch-admin-plugins' ),
|
872 |
+
md5( WPTOUCH_VERSION ),
|
873 |
+
false
|
874 |
+
);
|
875 |
+
}
|
876 |
|
877 |
wp_enqueue_script(
|
878 |
+
'wptouch-admin-plugins',
|
879 |
+
WPTOUCH_URL . '/admin/js/wptouch-admin-plugins.js',
|
880 |
+
array( 'jquery' ),
|
881 |
+
md5( WPTOUCH_VERSION ),
|
882 |
+
false
|
883 |
);
|
884 |
|
885 |
+
wp_localize_script( 'wptouch-admin-plugins', 'WPtouchCustom', $localize_params );
|
886 |
+
|
887 |
+
if ( strpos( $_SERVER['REQUEST_URI'], 'wptouch-admin-wizard' ) == false ) {
|
888 |
+
wp_enqueue_script(
|
889 |
+
'wptouch-pro-admin',
|
890 |
+
WPTOUCH_URL . '/admin/js/wptouch-admin-4.js',
|
891 |
+
array( 'wptouch-admin-plugins', 'wptouch-pro-ajax', 'jquery', 'jquery-easing' ),
|
892 |
+
md5( WPTOUCH_VERSION ),
|
893 |
+
false
|
894 |
+
);
|
895 |
+
|
896 |
+
if ( defined( 'WPTOUCH_IS_FREE' ) ) {
|
897 |
+
wp_enqueue_style( 'wp-color-picker' );
|
898 |
+
wp_enqueue_script(
|
899 |
+
'wptouch-pro-admin-color',
|
900 |
+
WPTOUCH_URL . '/admin/js/wptouch-admin-color.js',
|
901 |
+
array( 'wptouch-pro-admin', 'wp-color-picker' ),
|
902 |
+
md5( WPTOUCH_VERSION ),
|
903 |
+
false
|
904 |
+
);
|
905 |
+
}
|
906 |
+
}
|
907 |
+
|
908 |
+
} else { // Not a WPtouch admin page
|
909 |
$localize_params = array(
|
910 |
'admin_url' => get_bloginfo('wpurl') . '/wp-admin',
|
911 |
'admin_nonce' => wp_create_nonce( 'wptouch_admin' )
|
912 |
);
|
913 |
|
914 |
+
wp_enqueue_script(
|
915 |
+
'wptouch-pro-ajax',
|
916 |
+
WPTOUCH_URL . '/admin/js/wptouch-ajax.js',
|
917 |
+
array( 'jquery' ),
|
918 |
+
md5( WPTOUCH_VERSION ),
|
919 |
+
false
|
920 |
+
);
|
921 |
|
922 |
$ajax_params = array(
|
923 |
'admin_ajax_nonce' => wp_create_nonce( 'wptouch_admin_ajax' )
|
924 |
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
925 |
|
926 |
+
wp_localize_script( 'wptouch-pro-ajax', 'WPtouchAjax', $ajax_params );
|
|
|
927 |
}
|
928 |
|
929 |
$this->setup_wptouch_admin_ajax();
|
930 |
}
|
931 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
932 |
function load_root_functions_files() {
|
933 |
// Load root functions files only if we are in the admin or we are showing a mobile theme
|
934 |
require_once( WPTOUCH_DIR . '/core/menu.php' );
|
935 |
$clear_settings = false;
|
936 |
|
937 |
+
$theme_info = $this->get_current_theme_info();
|
938 |
+
|
939 |
// Load the parent root-functions if it exists
|
940 |
if ( $this->has_parent_theme() ) {
|
941 |
$parent_info = $this->get_parent_theme_info();
|
942 |
+
if ( $parent_info->framework > 1 && ( $theme_info->framework <= 1 || $theme_info->framework == false ) ) {
|
943 |
+
wptouch_load_framework();
|
944 |
+
}
|
945 |
+
|
946 |
if ( file_exists( WP_CONTENT_DIR . $parent_info->location . '/root-functions.php' ) ) {
|
947 |
require_once( WP_CONTENT_DIR . $parent_info->location . '/root-functions.php' );
|
948 |
}
|
953 |
|
954 |
// Load the current theme functions.php, or the child root functions if it exists in WPtouch themes
|
955 |
if ( file_exists( $this->get_current_theme_directory() . '/root-functions.php' ) ) {
|
956 |
+
if ( isset( $theme_info->framework ) && $theme_info->framework > 1 ) {
|
957 |
+
wptouch_load_framework();
|
958 |
+
}
|
959 |
+
|
960 |
require_once( $this->get_current_theme_directory() . '/root-functions.php' );
|
961 |
|
962 |
// next time get_settings is called, the current theme defaults will be added in
|
981 |
// check and set cookie
|
982 |
if ( isset( $this->get['wptouch_switch'] ) ) {
|
983 |
$expires_time = time()+3600*24*365; // 365 days
|
984 |
+
setcookie( WPTOUCH_COOKIE, $this->get['wptouch_switch'], $expires_time, '/' );
|
985 |
|
986 |
if ( isset( $_COOKIE[ WPTOUCH_CACHE_COOKIE ] ) ) {
|
987 |
if ( $this->get[ 'wptouch_switch' ] == 'desktop' ) {
|
1006 |
// We can have a mobile device detected, but not show the mobile theme
|
1007 |
// usually this is a result of the user manually disabling it via a link in the footer
|
1008 |
if ( $this->is_mobile_device ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1009 |
$this->showing_mobile_theme = ( !isset( $_COOKIE[WPTOUCH_COOKIE] ) || $_COOKIE[WPTOUCH_COOKIE] === 'mobile' );
|
1010 |
|
1011 |
if ( $this->showing_mobile_theme ) {
|
1019 |
}
|
1020 |
|
1021 |
foreach( $url_list as $url ) {
|
1022 |
+
if ( $this->compare_url( $url, $server_url, $settings->filtered_urls_exact ) ) {
|
1023 |
if ( $settings->url_filter_behaviour == 'exclude_urls' ) { // Excluding URLs - kill mobile if the URL is matched
|
1024 |
$block_mobile = true;
|
1025 |
} elseif( $settings->url_filter_behaviour == 'exclusive_urls' ) { // Exclusive URLs - kill mobile if the URL is *not* matched
|
1050 |
$force_mobile_ajax = true;
|
1051 |
}
|
1052 |
|
1053 |
+
if ( !wptouch_is_customizing_mobile() && is_admin() && !$force_mobile_ajax && !isset( $this->post[ 'wptouch_switch_location' ] ) ) {
|
1054 |
$this->is_mobile_device = false;
|
1055 |
$this->showing_mobile_theme = false;
|
1056 |
return;
|
1057 |
}
|
1058 |
|
1059 |
+
if ( !$this->showing_mobile_theme && $settings->show_switch_link ) {
|
1060 |
+
add_action( 'wp_footer', array( &$this, 'show_desktop_switch_link' ) );
|
|
|
|
|
1061 |
}
|
1062 |
|
1063 |
add_filter( 'response_modify_cache_key', array( &$this, 'modify_response_key' ) );
|
1064 |
}
|
1065 |
|
1066 |
+
function compare_url( $comparison_url, $requested_url, $exact_match = false ) {
|
1067 |
+
if ( $comparison_url == '/' && $requested_url == '/' ) {
|
1068 |
+
return true;
|
1069 |
+
} elseif ( !$exact_match && $comparison_url != '/' && strpos( trim( $requested_url, '\/' ), trim( $comparison_url, '\/' ) ) !== false ) {
|
1070 |
+
return true;
|
1071 |
+
} elseif( $exact_match && $comparison_url != '/' && trim( $requested_url, '\/' ) == trim( $comparison_url, '\/' ) ) {
|
1072 |
+
return true;
|
1073 |
+
} else {
|
1074 |
+
return false;
|
1075 |
+
}
|
1076 |
+
}
|
1077 |
+
|
1078 |
function modify_response_key( $current_key ) {
|
1079 |
if ( $this->is_mobile_device ) {
|
1080 |
if ( $this->showing_mobile_theme ) {
|
1103 |
// Menu Tags
|
1104 |
require_once( WPTOUCH_DIR . '/core/menu.php' );
|
1105 |
|
|
|
|
|
1106 |
// These actions and filters are only loaded when WPtouch and a mobile theme are active
|
1107 |
add_action( 'wp', array( &$this, 'check_for_redirect' ) );
|
1108 |
add_filter( 'init', array( &$this, 'init_theme' ) );
|
1119 |
|
1120 |
add_action( 'template_redirect', array( &$this, 'intercept_template' ), 1 );
|
1121 |
|
1122 |
+
add_action( 'wp_enqueue_scripts', array( &$this, 'setup_theme_styles' ) );
|
|
|
1123 |
|
1124 |
+
if ( isset( $settings->remove_shortcodes ) && strlen( $settings->remove_shortcodes ) ) {
|
1125 |
$this->remove_shortcodes( $settings->remove_shortcodes );
|
1126 |
}
|
1127 |
|
1151 |
|
1152 |
}
|
1153 |
|
|
|
|
|
|
|
|
|
|
|
|
|
1154 |
function handle_activation() {
|
1155 |
// activation hook
|
1156 |
$site_root = get_home_path();
|
1180 |
|
1181 |
function handle_upload_file() {
|
1182 |
$this->cleanup_post_and_get();
|
|
|
1183 |
header( 'HTTP/1.1 200 OK' );
|
1184 |
$nonce = $this->post[ 'wp_nonce' ];
|
1185 |
if( wp_verify_nonce( $nonce, 'wptouch_admin' ) && current_user_can( 'manage_options' ) ) {
|
1246 |
}
|
1247 |
}
|
1248 |
break;
|
1249 |
+
case 'theme':
|
1250 |
+
WPTOUCH_DEBUG( WPTOUCH_INFO, 'Uploading THEME file' );
|
1251 |
+
if ( isset( $_FILES[ 'theme-upload' ] ) ) {
|
1252 |
+
$temp_name = $_FILES[ 'theme-upload' ][ 'tmp_name' ];
|
1253 |
+
$destination_path = wptouch_get_multsite_aware_install_path( 'themes' );
|
1254 |
+
|
1255 |
+
require_once( WPTOUCH_DIR . '/core/addon-theme-installer.php' );
|
1256 |
+
|
1257 |
+
$installer = new WPtouchAddonThemeInstaller;
|
1258 |
+
$installer->install_anywhere( false, false, $destination_path, $temp_name );
|
1259 |
+
}
|
1260 |
+
break;
|
1261 |
+
case 'extension':
|
1262 |
+
WPTOUCH_DEBUG( WPTOUCH_INFO, 'Uploading EXTENSION file' );
|
1263 |
+
if ( isset( $_FILES[ 'extension-upload' ] ) ) {
|
1264 |
+
$temp_name = $_FILES[ 'extension-upload' ][ 'tmp_name' ];
|
1265 |
+
$destination_path = wptouch_get_multsite_aware_install_path( 'extensions' );
|
1266 |
+
|
1267 |
+
require_once( WPTOUCH_DIR . '/core/addon-theme-installer.php' );
|
1268 |
+
$installer = new WPtouchAddonThemeInstaller;
|
1269 |
+
$installer->install_anywhere( false, false, $destination_path, $temp_name );
|
1270 |
+
}
|
1271 |
+
break;
|
1272 |
default:
|
1273 |
// For different file uploads
|
1274 |
WPTOUCH_DEBUG( WPTOUCH_INFO, 'Handling default file upload' );
|
1289 |
return ( $this->is_mobile_device && $this->showing_mobile_theme );
|
1290 |
}
|
1291 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1292 |
function nullify_shortcode( $params ) {
|
1293 |
return '';
|
1294 |
}
|
1302 |
}
|
1303 |
}
|
1304 |
|
1305 |
+
function get_theme_directory_uri( $directory = false, $template = false, $root = false ) {
|
1306 |
+
$theme_info = $this->get_current_theme_info();
|
1307 |
+
|
1308 |
+
if ( $this->has_parent_theme() ) {
|
1309 |
+
$parent_info = $this->get_parent_theme_info();
|
1310 |
+
|
1311 |
+
return wptouch_check_url_ssl( content_url() . $parent_info->location );
|
1312 |
+
} else {
|
1313 |
+
return wptouch_check_url_ssl( content_url() . $theme_info->location );
|
1314 |
+
}
|
1315 |
+
}
|
1316 |
+
|
1317 |
+
|
1318 |
+
|
1319 |
function get_template_directory( $directory, $template = false, $root = false ) {
|
1320 |
+
$settings = wptouch_get_settings();
|
1321 |
+
|
1322 |
$theme_info = $this->get_current_theme_info();
|
1323 |
|
1324 |
if ( $this->has_parent_theme() ) {
|
1325 |
$parent_info = $this->get_parent_theme_info();
|
1326 |
|
1327 |
+
return WP_CONTENT_DIR . $parent_info->location . DIRECTORY_SEPARATOR . apply_filters( 'wptouch_parent_device_class', $this->get_active_device_class() );
|
1328 |
} else {
|
1329 |
+
return WP_CONTENT_DIR . $theme_info->location . DIRECTORY_SEPARATOR . $this->get_active_device_class();
|
1330 |
}
|
1331 |
}
|
1332 |
|
1345 |
function get_stylesheet_directory( $directory, $template = false, $root = false ) {
|
1346 |
$theme_info = $this->get_current_theme_info();
|
1347 |
|
1348 |
+
return WP_CONTENT_DIR . $theme_info->location . DIRECTORY_SEPARATOR . $this->get_active_device_class();
|
1349 |
}
|
1350 |
|
1351 |
function get_stylesheet_directory_uri( $directory, $template = false, $root = false ) {
|
1369 |
|
1370 |
if ( $theme_info ) {
|
1371 |
$themes = $this->get_available_themes();
|
1372 |
+
|
1373 |
if ( isset( $themes[ $theme_info->parent_theme ] ) ) {
|
1374 |
return $themes[ $theme_info->parent_theme ];
|
1375 |
}
|
1384 |
if ( $custom_lang_files && count( $custom_lang_files ) ) {
|
1385 |
foreach( $custom_lang_files as $lang_file ) {
|
1386 |
$locale_name = str_replace( 'wptouch-pro-', '', basename( $lang_file, '.mo' ) );
|
1387 |
+
|
1388 |
+
if ( !isset( $languages[ $locale_name ] ) ) {
|
1389 |
+
$languages[ $locale_name ] = $locale_name;
|
1390 |
+
}
|
1391 |
+
|
1392 |
}
|
1393 |
}
|
1394 |
|
1505 |
}
|
1506 |
}
|
1507 |
|
1508 |
+
function plugin_row( $plugin_name ) {
|
1509 |
$plugin_name = WPTOUCH_PLUGIN_SLUG;
|
1510 |
|
1511 |
include( WPTOUCH_DIR . '/admin/html/plugin-area.php' );
|
1512 |
+
}
|
1513 |
|
1514 |
function wptouch_pro_settings_link( $links, $file ) {
|
1515 |
+
if ( $file == 'wptouch-pro/wptouch-pro.php' && function_exists( "admin_url" ) ) {
|
1516 |
+
$settings_link = '<a href="' . admin_url( 'admin.php?page=wptouch-admin-general-settings' ) . '">' . __( 'Settings' ) . '</a>';
|
1517 |
array_push( $links, $settings_link );
|
1518 |
}
|
1519 |
|
1521 |
}
|
1522 |
|
1523 |
function remove_transient_info() {
|
1524 |
+
$bnc_api = $this->get_bnc_api();
|
1525 |
|
1526 |
+
$plugin_name = WPTOUCH_ROOT_NAME . '/wptouch-pro.php';
|
1527 |
|
1528 |
if ( function_exists( 'is_super_admin' ) ) {
|
1529 |
$option = get_site_transient( 'update_plugins' );
|
1540 |
}
|
1541 |
}
|
1542 |
|
1543 |
+
function check_for_update() {
|
1544 |
+
if ( function_exists( 'wptouch_pro_check_for_update' ) ) {
|
1545 |
+
return wptouch_pro_check_for_update();
|
1546 |
+
}
|
1547 |
+
}
|
1548 |
|
1549 |
+
function show_plugin_info() {
|
1550 |
switch( $_REQUEST[ 'plugin' ] ) {
|
1551 |
+
case 'wptouch-pro':
|
1552 |
+
echo '<div style="padding: 3%">';
|
1553 |
+
echo "<h2 style=\"font-family:'open sans', sans-serif;\">" . sprintf( __( '%s Changelog', 'wptouch-pro' ), WPTOUCH_PRODUCT_NAME ) . "</h2>";
|
1554 |
|
1555 |
require_once( WPTOUCH_DIR . '/core/admin-ajax.php' );
|
1556 |
|
1557 |
wptouch_admin_handle_ajax( $this, 'admin-change-log' );
|
1558 |
+
echo '</div>';
|
1559 |
exit;
|
1560 |
default:
|
1561 |
break;
|
1562 |
}
|
1563 |
+
}
|
1564 |
|
1565 |
function get_information_fragment( &$style_info, $fragment ) {
|
1566 |
if ( preg_match( '#' . $fragment . ': (.*)#i', $style_info, $matches ) ) {
|
1583 |
$addon_info->version = $this->get_information_fragment( $info, 'Version' );
|
1584 |
$addon_info->screenshot = $addon_url . '/screenshot.png';
|
1585 |
$addon_info->location = str_replace( WP_CONTENT_DIR, '', $addon_location );
|
1586 |
+
$addon_info->long_description = '';
|
1587 |
+
$addon_info->changelog = '';
|
1588 |
|
1589 |
+
$addon_frags = explode( DIRECTORY_SEPARATOR, trim( $addon_location, DIRECTORY_SEPARATOR ) );
|
1590 |
$addon_info->base = $addon_frags[ count( $addon_frags ) - 1 ];
|
1591 |
|
1592 |
return $addon_info;
|
1595 |
return false;
|
1596 |
}
|
1597 |
|
1598 |
+
function sanitize_directory_win( $str ) {
|
1599 |
+
return str_replace( '/', DIRECTORY_SEPARATOR, $str );
|
1600 |
+
}
|
1601 |
+
|
1602 |
+
function get_theme_information( $theme_location, $theme_url ) {
|
1603 |
$style_file = $theme_location . '/readme.txt';
|
1604 |
if ( file_exists( $style_file ) ) {
|
1605 |
$style_info = $this->load_file( $style_file );
|
1606 |
|
1607 |
$theme_info = new stdClass;
|
1608 |
+
$theme_frags = explode( DIRECTORY_SEPARATOR, trim( $theme_location, DIRECTORY_SEPARATOR ) );
|
1609 |
$theme_info->base = $theme_frags[ count( $theme_frags ) - 1 ];
|
1610 |
$theme_info->name = $this->get_information_fragment( $style_info, 'Theme Name' );
|
1611 |
$theme_info->theme_url = $this->get_information_fragment( $style_info, 'Theme URI' );
|
1612 |
$theme_info->description = $this->get_information_fragment( $style_info, 'Description' );
|
1613 |
+
$theme_info->plugin_version = $this->get_information_fragment( $style_info, 'Depends on' );
|
1614 |
$theme_info->author = $this->get_information_fragment( $style_info, 'Author' );
|
1615 |
$theme_info->version = $this->get_information_fragment( $style_info, 'Version' );
|
1616 |
+
$theme_info->framework = $this->get_information_fragment( $style_info, 'Framework' );
|
1617 |
+
$theme_info->long_description = '';
|
1618 |
+
$theme_info->changelog = '';
|
1619 |
+
$theme_info->preview_images = array();
|
1620 |
+
|
1621 |
$features = $this->get_information_fragment( $style_info, 'Features' );
|
1622 |
|
1623 |
if ( $features ) {
|
1626 |
$theme_info->features = false;
|
1627 |
}
|
1628 |
|
1629 |
+
if ( !$theme_info->framework ) {
|
1630 |
+
$theme_info->framework = 1;
|
1631 |
+
}
|
1632 |
+
|
1633 |
$parent_info = $this->get_information_fragment( $style_info, 'Parent' );
|
1634 |
if ( $parent_info ) {
|
1635 |
$theme_info->parent_theme = $parent_info;
|
1637 |
|
1638 |
$theme_info->tags = explode( ',', str_replace( ', ', ',', $this->get_information_fragment( $style_info, 'Tags' ) ) );
|
1639 |
$theme_info->screenshot = $theme_url . '/screenshot.png';
|
1640 |
+
$theme_info->location = $this->sanitize_directory_win( str_replace( WP_CONTENT_DIR, '', $theme_location ) );
|
|
|
1641 |
|
1642 |
return $theme_info;
|
1643 |
}
|
1654 |
function get_theme_directories() {
|
1655 |
$theme_directorys = array();
|
1656 |
|
1657 |
+
$theme_directories[] = array( WPTOUCH_DIR . DIRECTORY_SEPARATOR . 'themes', WPTOUCH_URL . '/themes' );
|
1658 |
|
1659 |
return apply_filters( 'wptouch_theme_directories', $theme_directories );
|
1660 |
}
|
1662 |
function get_addon_directories() {
|
1663 |
$addon_directories = array();
|
1664 |
|
1665 |
+
$addon_directories[] = array( WPTOUCH_BASE_CONTENT_DIR . DIRECTORY_SEPARATOR . 'extensions', WPTOUCH_BASE_CONTENT_URL . '/extensions' );
|
1666 |
|
1667 |
return apply_filters( 'wptouch_addon_directories', $addon_directories );
|
1668 |
}
|
1677 |
$settings->save();
|
1678 |
}
|
1679 |
|
1680 |
+
function theme_upgrades_available() {
|
1681 |
+
$this->get_available_themes( true );
|
1682 |
+
return $this->theme_upgrades_available;
|
1683 |
+
}
|
1684 |
+
|
1685 |
+
function extension_upgrades_available() {
|
1686 |
+
$this->get_available_addons( true );
|
1687 |
+
return $this->extension_upgrades_available;
|
1688 |
+
}
|
1689 |
+
|
1690 |
function get_available_addons( $include_cloud = false ) {
|
1691 |
$addons = array();
|
1692 |
$addon_directories = $this->get_addon_directories();
|
1701 |
continue;
|
1702 |
}
|
1703 |
|
1704 |
+
$addon_info = $this->get_addon_information( $addon_dir[0] . DIRECTORY_SEPARATOR . $f, $addon_dir[1] . DIRECTORY_SEPARATOR . $f );
|
1705 |
|
1706 |
if ( $addon_info ) {
|
1707 |
$addons[ $addon_info->name ] = $addon_info;
|
1713 |
}
|
1714 |
|
1715 |
if ( $include_cloud ) {
|
1716 |
+
if ( defined( 'WPTOUCH_FORCE_CLOUD_REFRESH' ) ) {
|
1717 |
+
delete_site_transient( '_wptouch_available_cloud_addons' );
|
1718 |
+
}
|
1719 |
|
1720 |
+
if ( false === ( $cloud_addons = get_site_transient( '_wptouch_available_cloud_addons' ) ) ) {
|
1721 |
+
$cloud_addons = wptouch_get_available_cloud_addons();
|
1722 |
+
set_site_transient( '_wptouch_available_cloud_addons', $cloud_addons, WPTOUCH_THEME_ADDON_TRANSIENT_TIME );
|
1723 |
}
|
1724 |
|
1725 |
$to_add = array();
|
1734 |
$this_addon->screenshot = $cloud_addon[ 'screenshot' ];
|
1735 |
$this_addon->base = $cloud_addon[ 'base' ];
|
1736 |
$this_addon->location = 'cloud';
|
1737 |
+
$this_addon->long_description = '';
|
1738 |
+
$this_addon->changelog = '';
|
1739 |
+
|
1740 |
+
if ( isset( $cloud_addon[ 'changelog' ] ) ) {
|
1741 |
+
$this_addon->changelog = $cloud_addon[ 'changelog' ];
|
1742 |
+
}
|
1743 |
+
|
1744 |
+
if ( isset( $cloud_addon[ 'long_description' ] ) ) {
|
1745 |
+
$this_addon->long_description = $cloud_addon[ 'long_description' ];
|
1746 |
+
}
|
1747 |
|
1748 |
if ( isset( $cloud_addon[ 'upgrade_url' ] ) ) {
|
1749 |
$this_addon->download_url = $cloud_addon[ 'upgrade_url' ];
|
1762 |
$this_addon = $addons[ $cloud_addon[ 'name' ] ];
|
1763 |
|
1764 |
$this_addon->cloud_version = $cloud_addon[ 'version' ];
|
1765 |
+
$this_addon->extension_upgrade_available = version_compare( $cloud_addon[ 'version' ], $this_addon->version, '>' );
|
1766 |
+
|
1767 |
+
if ( isset( $cloud_addon[ 'changelog' ] ) ) {
|
1768 |
+
$this_addon->changelog = $cloud_addon[ 'changelog' ];
|
1769 |
+
} else {
|
1770 |
+
$this_addon->changelog = '';
|
1771 |
+
}
|
1772 |
+
|
1773 |
+
if ( $this_addon->long_description == '' && isset( $cloud_addon[ 'long_description' ] ) ) {
|
1774 |
+
$this_addon->long_description = $cloud_addon[ 'long_description' ];
|
1775 |
+
}
|
1776 |
|
1777 |
if ( isset( $cloud_addon[ 'upgrade_url' ] ) ) {
|
1778 |
$this_addon->download_url = $cloud_addon[ 'upgrade_url' ];
|
1779 |
}
|
1780 |
|
1781 |
+
if ( $this_addon->extension_upgrade_available ) { $this->extension_upgrades_available = true; }
|
1782 |
$addons[ $cloud_addon[ 'name' ] ] = $this_addon;
|
1783 |
}
|
1784 |
}
|
1787 |
}
|
1788 |
}
|
1789 |
|
1790 |
+
uksort( $addons, 'strnatcasecmp' );
|
1791 |
+
|
1792 |
return $addons;
|
1793 |
}
|
1794 |
|
1797 |
$cloud_themes = array();
|
1798 |
$theme_directories = $this->get_theme_directories();
|
1799 |
|
|
|
1800 |
foreach( $theme_directories as $theme_dir ) {
|
1801 |
$list_dir = @opendir( $theme_dir[0] );
|
1802 |
|
1807 |
continue;
|
1808 |
}
|
1809 |
|
1810 |
+
$theme_info = $this->get_theme_information( $theme_dir[0] . DIRECTORY_SEPARATOR . $f, $theme_dir[1] . DIRECTORY_SEPARATOR . $f );
|
1811 |
|
1812 |
if ( $theme_info ) {
|
1813 |
$themes[ $theme_info->name ] = $theme_info;
|
1816 |
|
1817 |
closedir( $list_dir );
|
1818 |
}
|
|
|
|
|
|
|
|
|
|
|
1819 |
}
|
1820 |
|
1821 |
if ( $include_cloud ) {
|
1822 |
+
if ( defined( 'WPTOUCH_FORCE_CLOUD_REFRESH' ) ) {
|
1823 |
+
delete_site_transient( '_wptouch_available_cloud_themes' );
|
1824 |
+
}
|
1825 |
|
1826 |
+
if ( false === ( $cloud_themes = get_site_transient( '_wptouch_available_cloud_themes' ) ) ) {
|
1827 |
+
$cloud_themes = wptouch_get_available_cloud_themes();
|
1828 |
+
set_site_transient( '_wptouch_available_cloud_themes', $cloud_themes, WPTOUCH_THEME_ADDON_TRANSIENT_TIME );
|
1829 |
}
|
1830 |
|
1831 |
$to_add = array();
|
1835 |
$this_theme = new stdClass;
|
1836 |
$this_theme->name = $cloud_theme[ 'name' ];
|
1837 |
$this_theme->description = $cloud_theme[ 'description' ];
|
1838 |
+
|
1839 |
$this_theme->author = $cloud_theme[ 'author' ];
|
1840 |
$this_theme->version = $cloud_theme[ 'version' ];
|
1841 |
$this_theme->screenshot = $cloud_theme[ 'screenshot' ];
|
1842 |
$this_theme->base = $cloud_theme[ 'base' ];
|
1843 |
$this_theme->location = 'cloud';
|
1844 |
+
if ( isset( $cloud_theme[ 'preview_images' ] ) ) {
|
1845 |
+
$this_theme->preview_images = unserialize( $cloud_theme[ 'preview_images' ] );
|
1846 |
+
}
|
1847 |
+
$this_theme->changelog = '';
|
1848 |
+
$this_theme->long_description = '';
|
1849 |
+
|
1850 |
+
if ( isset( $cloud_theme[ 'long_description' ] ) ) {
|
1851 |
+
$this_theme->long_description = $cloud_theme[ 'long_description' ];
|
1852 |
+
}
|
1853 |
|
1854 |
if ( isset( $cloud_theme[ 'theme_type' ] ) ) {
|
1855 |
$this_theme->theme_type = $cloud_theme[ 'theme_type' ];
|
1869 |
|
1870 |
$to_add[ $this_theme->name ] = $this_theme;
|
1871 |
} else {
|
|
|
1872 |
$this_theme = $themes[ $cloud_theme[ 'name' ] ];
|
1873 |
|
1874 |
$this_theme->cloud_version = $cloud_theme[ 'version' ];
|
1875 |
|
1876 |
if ( isset( $cloud_theme[ 'upgrade_url' ] ) ) {
|
1877 |
+
$this_theme->theme_upgrade_available = version_compare( $cloud_theme[ 'version' ], $this_theme->version, '>' );
|
1878 |
$this_theme->download_url = $cloud_theme[ 'upgrade_url' ];
|
1879 |
}
|
1880 |
|
1881 |
+
if ( $this_theme->long_description == '' && isset( $cloud_theme[ 'long_description' ] ) ) {
|
1882 |
+
$this_theme->long_description = $cloud_theme[ 'long_description' ];
|
1883 |
+
}
|
1884 |
+
|
1885 |
+
if ( isset( $cloud_theme[ 'changelog' ] ) ) {
|
1886 |
+
$this_theme->changelog = $cloud_theme[ 'changelog' ];
|
1887 |
+
} else {
|
1888 |
+
$this_theme->changelog = '';
|
1889 |
+
}
|
1890 |
+
|
1891 |
+
if ( isset( $cloud_theme[ 'preview_images' ] ) ) {
|
1892 |
+
$this_theme->preview_images = unserialize( $cloud_theme[ 'preview_images' ] );
|
1893 |
+
}
|
1894 |
+
|
1895 |
+
if ( isset( $this_theme->theme_upgrade_available ) && $this_theme->theme_upgrade_available ) {
|
1896 |
+
$this->theme_upgrades_available = true;
|
1897 |
+
}
|
1898 |
+
|
1899 |
$themes[ $cloud_theme[ 'name' ] ] = $this_theme;
|
1900 |
}
|
1901 |
}
|
1904 |
}
|
1905 |
}
|
1906 |
|
1907 |
+
// Move current theme to the front of the list and alphabetize the rest
|
1908 |
+
$settings = $this->get_settings();
|
1909 |
+
|
1910 |
+
// Check to make sure the active theme exists - it may not, in which case we will autodownload it later
|
1911 |
+
if ( isset( $themes[ $settings->current_theme_friendly_name ] ) ) {
|
1912 |
+
$current_theme = $themes[ $settings->current_theme_friendly_name ];
|
1913 |
+
unset( $themes[ $settings->current_theme_friendly_name ] );
|
1914 |
+
ksort( $themes );
|
1915 |
+
|
1916 |
+
$first_theme = array( $settings->current_theme_friendly_name => $current_theme );
|
1917 |
+
$themes = array_merge( $first_theme, $themes );
|
1918 |
+
} else {
|
1919 |
+
ksort( $themes );
|
1920 |
+
}
|
1921 |
|
1922 |
return apply_filters( 'wptouch_available_themes', $themes );
|
1923 |
}
|
2013 |
continue;
|
2014 |
}
|
2015 |
|
2016 |
+
$icon_pack_info = $this->get_icon_set_information( $icon_dir[0] . DIRECTORY_SEPARATOR . $f, $icon_dir[1] . DIRECTORY_SEPARATOR . $f );
|
2017 |
|
2018 |
if ( $icon_pack_info ) {
|
2019 |
$icon_packs[ $icon_pack_info->name ] = $icon_pack_info;
|
2085 |
if ( $f == '.' || $f == '..' || $f == '.svn' || !$this->is_image_file( $f ) ) continue;
|
2086 |
|
2087 |
$icon_info = new stdClass;
|
2088 |
+
$icon_info->location = $pack->location . DIRECTORY_SEPARATOR . $f;
|
2089 |
$icon_info->short_location = str_replace( WP_CONTENT_DIR, '', $icon_info->location );
|
2090 |
+
$icon_info->url = $pack->url . DIRECTORY_SEPARATOR . $f;
|
2091 |
$icon_info->name = $f;
|
2092 |
$icon_info->set = $setname;
|
2093 |
$icon_info->class_name = $class_name;
|
2098 |
|
2099 |
// add image size information if the user has the GD library installed
|
2100 |
if ( function_exists( 'getimagesize' ) ) {
|
2101 |
+
$icon_info->image_size = getimagesize( $pack->location . DIRECTORY_SEPARATOR . $f );
|
2102 |
}
|
2103 |
|
2104 |
+
$icons[ $f . DIRECTORY_SEPARATOR . $setname ] = $icon_info;
|
2105 |
}
|
2106 |
|
2107 |
closedir( $dir );
|
2113 |
return $icons;
|
2114 |
}
|
2115 |
|
2116 |
+
function clean_up_url_slashes( $str ) {
|
2117 |
+
return str_replace( array( '\\\\', '\\' ), array( '/', '/' ), $str );
|
2118 |
+
}
|
2119 |
+
|
2120 |
function check_and_use_min_file( $file_name, $file_ext, $rel_path = WPTOUCH_DIR, $rel_url = WPTOUCH_URL ) {
|
2121 |
$min_file = str_replace( $file_ext, '.min' . $file_ext, $file_name );
|
2122 |
|
2123 |
if ( file_exists( $rel_path . $min_file ) ) {
|
2124 |
+
return $this->clean_up_url_slashes( $rel_url . $min_file );
|
2125 |
} else {
|
2126 |
+
return $this->clean_up_url_slashes( $rel_url . $file_name );
|
2127 |
}
|
2128 |
}
|
2129 |
|
2138 |
function setup_admin_stylesheets() {
|
2139 |
if ( $this->admin_is_wptouch_page() ) {
|
2140 |
|
2141 |
+
// 4.0 - Lato'ing it up
|
2142 |
+
wp_enqueue_style( 'wptouch-admin-google-fonts', '//fonts.googleapis.com/css?family=Lato:300,400,700,300italic,400italic,700italic', false, md5( WPTOUCH_VERSION ) );
|
2143 |
|
2144 |
+
// 4.0 - Loading Fontello
|
2145 |
+
wp_enqueue_style( 'wptouch-admin-fontello', $this->check_and_use_css_file( '/admin/fontello/css/fontello-embedded.css' ), false, md5( WPTOUCH_VERSION ) );
|
2146 |
|
2147 |
+
if ( strpos( $_SERVER['REQUEST_URI'], 'wptouch-admin-wizard' ) !== false ) {
|
2148 |
+
wp_enqueue_style( 'wptouch-admin-wizard-styles', $this->check_and_use_css_file( '/admin/css/wptouch-admin-4-wizard.css' ), false, md5( WPTOUCH_VERSION ) );
|
2149 |
+
} else {
|
2150 |
+
wp_enqueue_style( 'wptouch-admin-styles', $this->check_and_use_css_file( '/admin/css/wptouch-admin-4.css' ), false, md5( WPTOUCH_VERSION ) );
|
2151 |
+
}
|
2152 |
+
|
2153 |
+
if ( wptouch_should_load_rtl() && file_exists( WPTOUCH_DIR . '/admin/css/wptouch-admin-rtl.css' ) ) {
|
2154 |
WPTOUCH_DEBUG( WPTOUCH_INFO, 'Loading RTL stylesheet' );
|
2155 |
wp_enqueue_style(
|
2156 |
'wptouch-admin-rtl',
|
2157 |
wptouch_check_url_ssl( $this->check_and_use_css_file(
|
2158 |
+
'/admin/css/wptouch-admin-rtl.css',
|
2159 |
WPTOUCH_DIR,
|
2160 |
WPTOUCH_URL
|
2161 |
) ),
|
2162 |
+
array( 'wptouch-admin-styles' ),
|
2163 |
+
md5( WPTOUCH_VERSION )
|
2164 |
+
);
|
2165 |
}
|
2166 |
}
|
|
|
2167 |
|
2168 |
+
if ( $this->admin_is_menu_page() ) {
|
2169 |
+
$settings = $this->get_settings();
|
2170 |
+
|
2171 |
+
wp_enqueue_script( 'wptouch-menu', $this->check_and_use_js_file( '/admin/js/wptouch-menu.js' ), array( 'jquery' ), md5( WPTOUCH_VERSION ), true );
|
2172 |
+
wp_enqueue_style( 'wptouch-menu', $this->check_and_use_css_file( '/admin/css/wptouch-menu.css' ), false, md5( WPTOUCH_VERSION ) );
|
2173 |
+
|
2174 |
+
$localize_params = array(
|
2175 |
+
'default_icon' => wptouch_get_site_default_icon()
|
2176 |
+
);
|
2177 |
+
|
2178 |
+
wp_localize_script( 'wptouch-menu', 'wptouchMenu', $localize_params );
|
2179 |
}
|
2180 |
}
|
2181 |
|
2198 |
|
2199 |
add_action( 'wp_footer', array( &$this, 'handle_footer' ) );
|
2200 |
|
2201 |
+
wp_enqueue_script( 'wptouch-front-ajax', WPTOUCH_URL . '/include/js/wptouch.js', array( 'jquery' ), md5( WPTOUCH_VERSION ), true );
|
2202 |
+
|
2203 |
+
if ( defined( 'JSON_HEX_TAG' ) ) {
|
2204 |
+
$query_vars = json_encode( $_GET, JSON_HEX_TAG );
|
2205 |
+
} else {
|
2206 |
+
$query_vars = json_encode( $_GET );
|
2207 |
+
}
|
2208 |
|
2209 |
$localize_params = array(
|
2210 |
'ajaxurl' => get_bloginfo( 'wpurl' ) . '/wp-admin/admin-ajax.php',
|
2211 |
'siteurl' => str_replace( array( 'http://' . $_SERVER['SERVER_NAME'] . '','https://' . $_SERVER['SERVER_NAME'] . '' ), '', get_bloginfo( 'url' ) . '/' ),
|
2212 |
'security_nonce' => wp_create_nonce( 'wptouch-ajax' ),
|
2213 |
+
'current_shortcode_url' => add_query_arg( array( 'wptouch_shortcode' => '1' ), esc_url_raw( $_SERVER[ 'REQUEST_URI' ] ) ),
|
2214 |
+
'query_vars' => $query_vars
|
2215 |
);
|
2216 |
|
2217 |
+
wp_localize_script( 'wptouch-front-ajax', 'wptouchMain', apply_filters( 'wptouch_localize_scripts', $localize_params ) );
|
2218 |
|
2219 |
do_action( 'wptouch_init' );
|
2220 |
|
2274 |
|
2275 |
// Check for language override
|
2276 |
$settings = wptouch_get_settings();
|
2277 |
+
|
2278 |
+
if ( is_network_admin() ) {
|
2279 |
+
$locale_setting = 'force_network_locale';
|
2280 |
+
} else {
|
2281 |
+
$locale_setting = 'force_locale';
|
2282 |
}
|
2283 |
|
2284 |
+
$destination_directory = wptouch_get_multsite_aware_install_path( 'lang' );
|
2285 |
+
// Auto download code for language files
|
2286 |
+
if ( $current_locale != 'en_US' || ( $settings->$locale_setting != 'auto' && $settings->$locale_setting != 'en_US' ) ) {
|
2287 |
+
if ( $settings->$locale_setting != 'auto' ) {
|
2288 |
+
$current_locale = $settings->$locale_setting;
|
2289 |
+
}
|
2290 |
+
|
2291 |
+
$this->setup_bncapi();
|
2292 |
+
$bnc_api = $this->get_bnc_api();
|
2293 |
+
|
2294 |
+
$list = false;
|
2295 |
+
if ( false === ( $list = get_site_transient( '_wptouch_language_info' ) ) ) {
|
2296 |
+
$list = $bnc_api->translations_get_list();
|
2297 |
+
set_site_transient( '_wptouch_language_info', $list, 3600*24 );
|
2298 |
+
}
|
2299 |
+
|
2300 |
+
$language_file = 'wptouch-pro-' . $current_locale . '.mo';
|
2301 |
+
|
2302 |
+
if ( isset( $list[ $language_file ] ) ) {
|
2303 |
+
$should_install = false;
|
2304 |
+
if ( !file_exists( $destination_directory . '/' . $language_file ) ) {
|
2305 |
+
$should_install = true;
|
2306 |
+
} else {
|
2307 |
+
$language_file_size = filesize( $destination_directory . '/' . $language_file );
|
2308 |
+
if ( $language_file_size != $list[ $language_file ][ 'size' ] ) {
|
2309 |
+
$should_install = true;
|
2310 |
+
}
|
2311 |
+
}
|
2312 |
+
|
2313 |
+
if ( $should_install ) {
|
2314 |
+
require_once( WPTOUCH_DIR . '/core/addon-theme-installer.php' );
|
2315 |
+
$installer = new WPtouchAddonThemeInstaller;
|
2316 |
+
|
2317 |
+
$language_to_install = $list[ $language_file ];
|
2318 |
+
|
2319 |
+
$installer->install_anywhere( $language_file, $language_to_install[ 'file' ], $destination_directory );
|
2320 |
+
}
|
2321 |
+
}
|
2322 |
+
}
|
2323 |
if ( !empty( $current_locale ) ) {
|
2324 |
$current_locale = apply_filters( 'wptouch_language', $current_locale );
|
2325 |
|
2326 |
$use_lang_file = false;
|
2327 |
+
$custom_lang_file = $destination_directory . '/wptouch-pro-' . $current_locale . '.mo';
|
2328 |
|
2329 |
if ( file_exists( $custom_lang_file ) && is_readable( $custom_lang_file ) ) {
|
2330 |
$use_lang_file = $custom_lang_file;
|
2331 |
+
$rel_path = str_replace( WP_CONTENT_DIR, '..', $destination_directory );
|
|
|
2332 |
$use_lang_rel_path = $rel_path;
|
2333 |
} else {
|
2334 |
$lang_file = WPTOUCH_DIR . '/lang/wptouch-pro-' . $current_locale . '.mo';
|
2339 |
if ( defined( 'WPTOUCH_IS_FREE' ) ) {
|
2340 |
$use_lang_rel_path = 'wptouch/lang';
|
2341 |
} else {
|
2342 |
+
$use_lang_rel_path = 'wptouch-pro/lang';
|
2343 |
}
|
2344 |
|
2345 |
}
|
2352 |
if ( $use_lang_file ) {
|
2353 |
$can_load = true;
|
2354 |
|
2355 |
+
if ( is_admin() && !$settings->translate_admin ) {
|
2356 |
$can_load = false;
|
2357 |
}
|
2358 |
|
|
|
2359 |
if ( $can_load ) {
|
2360 |
load_plugin_textdomain( 'wptouch-pro', false, $use_lang_rel_path );
|
2361 |
|
2463 |
foreach( (array)$defaults as $name => $value ) {
|
2464 |
if ( !isset( $settings->$name ) ) {
|
2465 |
$settings->$name = $value;
|
2466 |
+
do_action( 'wptouch_settings_after_merge_default', $domain, $name, $value );
|
2467 |
}
|
2468 |
}
|
2469 |
}
|
|
|
2470 |
|
2471 |
+
// Old settings filter
|
2472 |
+
if ( $domain == 'wptouch_pro' ) {
|
2473 |
+
$settings = apply_filters( 'wptouch_settings', $settings );
|
2474 |
+
}
|
2475 |
|
2476 |
+
$settings = apply_filters( 'wptouch_settings_domain', $settings, $domain );
|
2477 |
+
}
|
2478 |
|
2479 |
// Update our internal cache of the settings
|
2480 |
$this->settings_objects[ $domain ] = $settings;
|
2493 |
$this->settings_objects = array();
|
2494 |
}
|
2495 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2496 |
function get_supported_device_classes() {
|
2497 |
global $wptouch_device_classes;
|
2498 |
|
2564 |
}
|
2565 |
|
2566 |
function is_supported_device() {
|
2567 |
+
$user_agent = apply_filters( 'wptouch_user_agent', str_replace( 'Twitter for iPhone', '', $_SERVER['HTTP_USER_AGENT'] ) );
|
|
|
|
|
2568 |
|
2569 |
$settings = $this->get_settings();
|
2570 |
|
2571 |
+
if ( $this->is_in_preview_mode() ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2572 |
return true;
|
2573 |
+
} elseif ( $settings->new_display_mode == false && !wptouch_is_customizing_mobile() ) {
|
2574 |
+
return false;
|
2575 |
}
|
2576 |
|
2577 |
// Now that preview mode is out of the way, let's figure out the proper list of user agents
|
2579 |
|
2580 |
// Figure out the active device type and the active device class
|
2581 |
foreach( $supported_agents as $agent ) {
|
2582 |
+
if ( $agent != array() && $this->user_agent_matches( $user_agent, $agent ) ) {
|
2583 |
$agent_ok = true;
|
2584 |
|
2585 |
+
$exclusion_list = apply_filters( 'wptouch_exclusion_list', array() );
|
2586 |
|
2587 |
foreach( $exclusion_list as $exclude_user_agent ) {
|
2588 |
$friendly_exclude = preg_quote( $exclude_user_agent );
|
2615 |
}
|
2616 |
|
2617 |
function is_in_preview_mode() {
|
2618 |
+
if ( $this->is_previewing_mobile_theme() ) {
|
2619 |
+
return true;
|
2620 |
+
} else {
|
2621 |
+
return false;
|
2622 |
+
}
|
2623 |
}
|
2624 |
|
2625 |
function is_previewing_mobile_theme() {
|
2644 |
delete_site_transient( '_wptouch_available_cloud_addons' );
|
2645 |
delete_site_transient( '_wptouch_available_cloud_themes' );
|
2646 |
delete_site_transient( '_wptouch_bncid_latest_version' );
|
2647 |
+
delete_site_transient( '_wptouch_language_info' );
|
2648 |
}
|
2649 |
|
2650 |
function activate_license() {
|
2651 |
WPTOUCH_DEBUG( WPTOUCH_INFO, 'Attempting to activate a site license' );
|
2652 |
$bnc_api = $this->get_bnc_api();
|
2653 |
+
|
2654 |
if ( $bnc_api ) {
|
2655 |
+
WPTOUCH_DEBUG( WPTOUCH_INFO, 'Adding license for wptouch-pro' );
|
2656 |
$bnc_api->user_add_license();
|
2657 |
|
2658 |
$settings = wptouch_get_settings( 'bncid' );
|
2684 |
return ( in_array( $this_site, (array)$licenses['licenses'] ) );
|
2685 |
}
|
2686 |
|
2687 |
+
function setup_bncapi( $bncid = 'default', $key = 'default', $override_free = false ) {
|
2688 |
if ( !$this->bnc_api ) {
|
2689 |
require_once( WPTOUCH_DIR . '/core/class-bncapi.php' );
|
2690 |
require_once( WPTOUCH_DIR . '/core/bncid.php' );
|
2691 |
|
2692 |
$settings = $this->get_settings( 'bncid' );
|
2693 |
|
2694 |
+
if ( defined( 'WPTOUCH_IS_FREE' ) && !$override_free ) {
|
2695 |
$bncid = '';
|
2696 |
$key = '';
|
2697 |
} else {
|
2718 |
echo wptouch_capture_include_file( WPTOUCH_DIR . '/include/html/footer.php' );
|
2719 |
}
|
2720 |
|
2721 |
+
switch ( $settings->analytics_embed_method ) {
|
2722 |
+
case 'simple':
|
2723 |
+
if ( $settings->analytics_google_id ) {
|
2724 |
+
$analytics_code = "
|
2725 |
+
<script>
|
2726 |
+
!function(W,P,t,o,u,c,h){W.GoogleAnalyticsObject=t;W[t]||(W[t]=function(){
|
2727 |
+
(W[t].q=W[t].q||[]).push(arguments)});W[t].l=+new Date;c=P.createElement(o);
|
2728 |
+
h=P.getElementsByTagName(o)[0];c.src=u;h.parentNode.insertBefore(c,h)}
|
2729 |
+
(window,document,'ga','script','//www.google-analytics.com/analytics.js');
|
2730 |
+
ga('create','" . $settings->analytics_google_id . "', 'auto');
|
2731 |
+
ga('send', 'pageview');
|
2732 |
+
</script>";
|
2733 |
+
echo $analytics_code;
|
2734 |
+
}
|
2735 |
+
break;
|
2736 |
+
case 'custom':
|
2737 |
+
if ( $settings->custom_stats_code ) {
|
2738 |
+
echo apply_filters( 'wptouch_custom_stats_code', $settings->custom_stats_code );
|
2739 |
+
}
|
2740 |
+
break;
|
2741 |
}
|
2742 |
}
|
2743 |
|
2768 |
break;
|
2769 |
}
|
2770 |
|
2771 |
+
$redirect_target = apply_filters( 'wptouch_redirect_target', $redirect_target );
|
2772 |
+
|
2773 |
if ( $redirect_target ) {
|
2774 |
$can_do_redirect = true;
|
2775 |
if ( get_option( 'show_on_front', false ) == 'page' ) {
|
2779 |
}
|
2780 |
}
|
2781 |
|
2782 |
+
if ( isset( $_GET[ 'lang' ] ) && stristr( $redirect_target, 'lang=' ) ) {
|
2783 |
+
unset( $_GET[ 'lang' ] );
|
2784 |
+
}
|
2785 |
+
|
2786 |
+
$query_string = http_build_query( $_GET );
|
2787 |
+
|
2788 |
if ( $can_do_redirect ) {
|
2789 |
+
$this->redirect_to_page( $redirect_target, $query_string );
|
2790 |
}
|
2791 |
}
|
2792 |
}
|
2916 |
}
|
2917 |
|
2918 |
function get_current_theme_directory() {
|
2919 |
+
return str_replace( '/', DIRECTORY_SEPARATOR, rtrim( WP_CONTENT_DIR, '/\\' ) . DIRECTORY_SEPARATOR . ltrim( $this->get_current_theme_location(), '/\\' ) );
|
2920 |
}
|
2921 |
|
2922 |
function get_current_theme_uri() {
|
2923 |
+
return wptouch_check_url_ssl( str_replace( '\\', '/', ltrim( content_url(), '/' ) . '/' . ltrim( $this->get_current_theme_location(), '/\\' ) ) );
|
2924 |
+
}
|
2925 |
+
|
2926 |
+
function change_dir_to_url( $dir ) {
|
2927 |
+
return wptouch_check_url_ssl( str_replace( '\\', '/', ltrim( content_url(), '/' ) . '/' . ltrim( $dir, '/\\' ) ) );
|
2928 |
}
|
2929 |
|
2930 |
function get_current_theme() {
|
2936 |
function get_current_theme_location() {
|
2937 |
$settings = $this->get_settings();
|
2938 |
|
2939 |
+
return $settings->current_theme_location . DIRECTORY_SEPARATOR . $settings->current_theme_name;
|
2940 |
+
}
|
2941 |
+
|
2942 |
+
function get_current_parent_location() {
|
2943 |
+
$settings = $this->get_settings();
|
2944 |
+
|
2945 |
+
if ( $this->has_parent_theme() ) {
|
2946 |
+
$parent_info = $this->get_parent_theme_info();
|
2947 |
+
|
2948 |
+
return $parent_info->location;
|
2949 |
+
} else {
|
2950 |
+
return $settings->current_theme_location . DIRECTORY_SEPARATOR . $settings->current_theme_name;
|
2951 |
+
}
|
2952 |
}
|
2953 |
|
2954 |
function setup_theme_styles() {
|
2958 |
$dependencies = array();
|
2959 |
if ( $this->has_parent_theme() ) {
|
2960 |
$parent_info = $this->get_parent_theme_info();
|
|
|
2961 |
|
2962 |
+
$css_file = $this->check_and_use_css_file( $parent_info->location . '/' . $this->get_active_device_class() . '/style.css', WP_CONTENT_DIR, content_url() );
|
2963 |
+
|
2964 |
+
wp_enqueue_style( 'wptouch-parent-theme-css', wptouch_check_url_ssl( $css_file ), false, md5( WPTOUCH_VERSION ) );
|
2965 |
}
|
2966 |
|
2967 |
+
$theme_css_file = $this->check_and_use_css_file(
|
2968 |
+
$settings->current_theme_location . DIRECTORY_SEPARATOR . $settings->current_theme_name . DIRECTORY_SEPARATOR . $this->get_active_device_class() . DIRECTORY_SEPARATOR . 'style.css',
|
2969 |
+
str_replace( '/', DIRECTORY_SEPARATOR, WP_CONTENT_DIR ),
|
2970 |
content_url()
|
2971 |
);
|
2972 |
|
2973 |
+
$framework_version = $this->current_theme_framework_version();
|
2974 |
+
|
2975 |
+
if ( $framework_version > 1 ) {
|
2976 |
+
wp_enqueue_style( 'wptouch-theme-css', wptouch_check_url_ssl( $theme_css_file ), array( 'foundation-framework-style' ), md5( WPTOUCH_VERSION ) );
|
2977 |
+
} else {
|
2978 |
+
wp_enqueue_style( 'wptouch-theme-css', wptouch_check_url_ssl( $theme_css_file ), array( 'wptouch-parent-theme-css' ), md5( WPTOUCH_VERSION ) );
|
2979 |
+
}
|
2980 |
+
|
2981 |
+
do_action( 'wptouch_parent_style_queued' );
|
2982 |
+
}
|
2983 |
+
|
2984 |
+
function current_theme_framework_version() {
|
2985 |
+
$settings = $this->get_settings();
|
2986 |
+
|
2987 |
+
$theme_info = $this->get_current_theme_info();
|
2988 |
|
2989 |
+
if ( $theme_info->framework ) {
|
2990 |
+
return $theme_info->framework;
|
2991 |
+
} else {
|
2992 |
+
return 1;
|
2993 |
+
}
|
2994 |
}
|
2995 |
|
2996 |
function setup_child_theme_styles() {
|
2997 |
$css_file = $this->check_and_use_css_file( $this->get_stylesheet_directory( false ) . '/style.css' );
|
2998 |
+
wp_enqueue_style( 'wptouch_child', wptouch_check_url_ssl( $css_file ), array( 'wptouch-parent-theme-css' ), md5( WPTOUCH_VERSION ) );
|
2999 |
}
|
3000 |
|
|
|
|
|
|
|
|
|
|
|
3001 |
|
3002 |
function https_for_ssl( $content ) {
|
3003 |
return wptouch_check_url_ssl( $content );
|
3013 |
}
|
3014 |
}
|
3015 |
|
3016 |
+
function show_desktop_switch_link() {
|
3017 |
require_once( WPTOUCH_DIR . '/core/theme.php' );
|
3018 |
require_once( WPTOUCH_DIR . '/core/globals.php' );
|
3019 |
|
3020 |
+
if ( $this->is_mobile_device && !$this->showing_mobile_theme ) {
|
3021 |
+
if ( file_exists( WPTOUCH_DIR . '/include/html/desktop-switch.php' ) ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3022 |
wptouch_show_desktop_switch_link();
|
3023 |
}
|
3024 |
}
|
3070 |
|
3071 |
$this->settings_objects = array();
|
3072 |
$this->delete_theme_add_on_cache();
|
3073 |
+
|
3074 |
+
do_action( 'wptouch_after_reset_settings' );
|
3075 |
}
|
3076 |
|
3077 |
function process_submitted_settings( $update_info = false ) {
|
3111 |
$settings = apply_filters( 'wptouch_update_settings', $settings );
|
3112 |
}
|
3113 |
|
3114 |
+
// Domain specific filtering
|
3115 |
$settings = apply_filters( 'wptouch_update_settings_domain', $settings, $domain );
|
3116 |
|
3117 |
// Save the old domain
|
3154 |
|
3155 |
wptouch_recursive_delete( $source_dir );
|
3156 |
}
|
3157 |
+
}
|
core/cloud-migrate.php
CHANGED
@@ -3,8 +3,8 @@
|
|
3 |
function wptouch_migration_is_theme_broken() {
|
4 |
$settings = wptouch_get_settings();
|
5 |
|
6 |
-
if (
|
7 |
-
|
8 |
}
|
9 |
|
10 |
$broken = ( !file_exists( WP_CONTENT_DIR . $settings->current_theme_location . '/'. $settings->current_theme_name ) );
|
@@ -31,6 +31,19 @@ function wptouch_migration_check_for_broken_extensions() {
|
|
31 |
}
|
32 |
}
|
33 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
34 |
function wptouch_can_repair_active_theme() {
|
35 |
global $wptouch_pro;
|
36 |
|
@@ -64,15 +77,18 @@ function wptouch_repair_active_theme_from_cloud( &$error_condition ) {
|
|
64 |
|
65 |
// We need to download the theme and then repair it
|
66 |
$themes = $wptouch_pro->get_available_themes( true );
|
|
|
67 |
if ( isset( $themes[ $settings->current_theme_friendly_name ] ) ) {
|
68 |
require_once( WPTOUCH_DIR . '/core/addon-theme-installer.php' );
|
69 |
|
70 |
$theme_to_install = $themes[ $settings->current_theme_friendly_name ];
|
71 |
|
|
|
|
|
72 |
$addon_installer = new WPtouchAddonThemeInstaller;
|
73 |
-
$result = $addon_installer->
|
74 |
if ( $result ) {
|
75 |
-
$wptouch_pro->repair_active_theme(
|
76 |
}
|
77 |
}
|
78 |
|
3 |
function wptouch_migration_is_theme_broken() {
|
4 |
$settings = wptouch_get_settings();
|
5 |
|
6 |
+
if ( defined( 'WPTOUCH_IS_FREE' ) || !isset( $settings->show_wizard ) ) {
|
7 |
+
return false;
|
8 |
}
|
9 |
|
10 |
$broken = ( !file_exists( WP_CONTENT_DIR . $settings->current_theme_location . '/'. $settings->current_theme_name ) );
|
31 |
}
|
32 |
}
|
33 |
|
34 |
+
function wptouch_active_theme_is_custom() {
|
35 |
+
global $wptouch_pro;
|
36 |
+
$settings = wptouch_get_settings();
|
37 |
+
|
38 |
+
$themes = $wptouch_pro->get_available_themes( true );
|
39 |
+
|
40 |
+
if ( !isset( $themes[ $settings->current_theme_friendly_name ] ) || $themes[ $settings->current_theme_friendly_name ]->author != 'BraveNewCode Inc.' ) {
|
41 |
+
return true;
|
42 |
+
} else {
|
43 |
+
return false;
|
44 |
+
}
|
45 |
+
}
|
46 |
+
|
47 |
function wptouch_can_repair_active_theme() {
|
48 |
global $wptouch_pro;
|
49 |
|
77 |
|
78 |
// We need to download the theme and then repair it
|
79 |
$themes = $wptouch_pro->get_available_themes( true );
|
80 |
+
|
81 |
if ( isset( $themes[ $settings->current_theme_friendly_name ] ) ) {
|
82 |
require_once( WPTOUCH_DIR . '/core/addon-theme-installer.php' );
|
83 |
|
84 |
$theme_to_install = $themes[ $settings->current_theme_friendly_name ];
|
85 |
|
86 |
+
$directory = wptouch_get_multsite_aware_install_path( 'themes' );
|
87 |
+
|
88 |
$addon_installer = new WPtouchAddonThemeInstaller;
|
89 |
+
$result = $addon_installer->install_anywhere( $theme_to_install->base, $theme_to_install->download_url, $directory );
|
90 |
if ( $result ) {
|
91 |
+
$wptouch_pro->repair_active_theme( $directory, $settings->current_theme_friendly_name );
|
92 |
}
|
93 |
}
|
94 |
|
core/compat.php
CHANGED
@@ -61,7 +61,7 @@ function wptouch_mwp_update_notification( $premium_updates ) {
|
|
61 |
return;
|
62 |
}
|
63 |
|
64 |
-
$myplugin = get_plugin_data( WPTOUCH_DIR . '/wptouch-pro
|
65 |
$myplugin['type'] = 'plugin';
|
66 |
|
67 |
$latest_info = mwp_wptouch_pro_get_latest_info();
|
@@ -90,7 +90,7 @@ function wptouch_mwp_perform_update( $update ){
|
|
90 |
return;
|
91 |
}
|
92 |
|
93 |
-
$my_addon = get_plugin_data( WPTOUCH_DIR . '/wptouch-pro
|
94 |
$my_addon[ 'type' ] = 'plugin';
|
95 |
|
96 |
$latest_info = mwp_wptouch_pro_get_latest_info();
|
@@ -104,4 +104,4 @@ function wptouch_mwp_perform_update( $update ){
|
|
104 |
}
|
105 |
|
106 |
return $update;
|
107 |
-
}
|
61 |
return;
|
62 |
}
|
63 |
|
64 |
+
$myplugin = get_plugin_data( WPTOUCH_DIR . '/wptouch-pro.php' );
|
65 |
$myplugin['type'] = 'plugin';
|
66 |
|
67 |
$latest_info = mwp_wptouch_pro_get_latest_info();
|
90 |
return;
|
91 |
}
|
92 |
|
93 |
+
$my_addon = get_plugin_data( WPTOUCH_DIR . '/wptouch-pro.php' );
|
94 |
$my_addon[ 'type' ] = 'plugin';
|
95 |
|
96 |
$latest_info = mwp_wptouch_pro_get_latest_info();
|
104 |
}
|
105 |
|
106 |
return $update;
|
107 |
+
}
|
core/config-functions.php
CHANGED
@@ -24,23 +24,23 @@ function wptouch_setup_base_content_dir() {
|
|
24 |
|
25 |
if ( $blog_id ) {
|
26 |
wptouch_create_directory_if_not_exist( WPTOUCH_BASE_CONTENT_MS_DIR );
|
27 |
-
$desirable_dir = $desirable_dir .
|
28 |
}
|
29 |
}
|
30 |
|
31 |
-
$undesirable_dir = $wptouch_upload_dir[ 'basedir' ] . '
|
32 |
if ( file_exists( $undesirable_dir ) ) {
|
33 |
// Need to migrate here
|
34 |
//define( 'WPTOUCH_BASE_CONTENT_DIR', $wptouch_upload_dir[ 'basedir' ] . '/wptouch-data' );
|
35 |
//define( 'WPTOUCH_BASE_CONTENT_URL', wptouch_check_url_ssl( $wptouch_upload_dir[ 'baseurl' ] . '/wptouch-data' ) );
|
36 |
wptouch_create_directory_if_not_exist( WP_CONTENT_DIR . $desirable_dir );
|
37 |
|
38 |
-
$migration_paths = array( 'themes', 'icons', 'lang', 'uploads', '
|
39 |
foreach( $migration_paths as $path ) {
|
40 |
-
if ( file_exists( $undesirable_dir .
|
41 |
-
if ( !file_exists( WP_CONTENT_DIR . $desirable_dir .
|
42 |
// This is a fresh migration, so let's just move it
|
43 |
-
if ( !rename( $undesirable_dir .
|
44 |
define( 'WPTOUCH_MIGRATION_OLD_ISSUE', 1 );
|
45 |
}
|
46 |
}
|
24 |
|
25 |
if ( $blog_id ) {
|
26 |
wptouch_create_directory_if_not_exist( WPTOUCH_BASE_CONTENT_MS_DIR );
|
27 |
+
$desirable_dir = $desirable_dir . DIRECTORY_SEPARATOR . $blog_id;
|
28 |
}
|
29 |
}
|
30 |
|
31 |
+
$undesirable_dir = $wptouch_upload_dir[ 'basedir' ] . DIRECTORY_SEPARATOR . 'wptouch-data';
|
32 |
if ( file_exists( $undesirable_dir ) ) {
|
33 |
// Need to migrate here
|
34 |
//define( 'WPTOUCH_BASE_CONTENT_DIR', $wptouch_upload_dir[ 'basedir' ] . '/wptouch-data' );
|
35 |
//define( 'WPTOUCH_BASE_CONTENT_URL', wptouch_check_url_ssl( $wptouch_upload_dir[ 'baseurl' ] . '/wptouch-data' ) );
|
36 |
wptouch_create_directory_if_not_exist( WP_CONTENT_DIR . $desirable_dir );
|
37 |
|
38 |
+
$migration_paths = array( 'themes', 'icons', 'lang', 'uploads', 'backups' );
|
39 |
foreach( $migration_paths as $path ) {
|
40 |
+
if ( file_exists( $undesirable_dir . DIRECTORY_SEPARATOR . $path ) ) {
|
41 |
+
if ( !file_exists( WP_CONTENT_DIR . $desirable_dir . DIRECTORY_SEPARATOR . $path ) ) {
|
42 |
// This is a fresh migration, so let's just move it
|
43 |
+
if ( !rename( $undesirable_dir . DIRECTORY_SEPARATOR . $path, WP_CONTENT_DIR . $desirable_dir . DIRECTORY_SEPARATOR . $path ) ) {
|
44 |
define( 'WPTOUCH_MIGRATION_OLD_ISSUE', 1 );
|
45 |
}
|
46 |
}
|
core/config.php
CHANGED
@@ -13,7 +13,7 @@ define( 'WPTOUCH_DEBUG', FALSE );
|
|
13 |
define( 'WPTOUCH_SIMULATE_ALL', FALSE );
|
14 |
|
15 |
// Max News items
|
16 |
-
define( 'WPTOUCH_MAX_NEWS_ITEMS',
|
17 |
|
18 |
if ( defined( 'WPTOUCH_IS_FREE' ) ) {
|
19 |
define( 'WPTOUCH_PRODUCT_NAME', 'WPtouch' );
|
@@ -44,7 +44,7 @@ function wptouch_check_url_ssl( $ssl_string ) {
|
|
44 |
|
45 |
define( 'WPTOUCH_URL', wptouch_check_url_ssl( plugins_url() . '/' . WPTOUCH_ROOT_NAME ) );
|
46 |
|
47 |
-
define( 'WPTOUCH_ADMIN_DIR', WPTOUCH_DIR . '
|
48 |
define( 'WPTOUCH_ADMIN_URL', WPTOUCH_URL . '/admin' );
|
49 |
|
50 |
if ( !defined( 'WPTOUCH_BASE_CONTENT_DIR' ) && !defined( 'WPTOUCH_BASE_CONTENT_URL' ) ) {
|
@@ -52,22 +52,22 @@ if ( !defined( 'WPTOUCH_BASE_CONTENT_DIR' ) && !defined( 'WPTOUCH_BASE_CONTENT_U
|
|
52 |
}
|
53 |
|
54 |
define( 'WPTOUCH_CUSTOM_ICON_SET_NAME', __( 'Custom Icons', 'wptouch-pro' ) );
|
55 |
-
define( 'WPTOUCH_TEMP_DIRECTORY', WPTOUCH_BASE_CONTENT_DIR . '
|
56 |
define( 'WPTOUCH_TEMP_URL', WPTOUCH_BASE_CONTENT_URL . '/temp' );
|
57 |
-
define( 'WPTOUCH_CUSTOM_SET_DIRECTORY', WPTOUCH_BASE_CONTENT_DIR .'
|
58 |
-
define( 'WPTOUCH_CUSTOM_UPLOAD_DIRECTORY', WPTOUCH_BASE_CONTENT_DIR .'
|
59 |
-
define( 'WPTOUCH_CUSTOM_ICON_DIRECTORY', WPTOUCH_BASE_CONTENT_DIR . '
|
60 |
-
define( 'WPTOUCH_CUSTOM_THEME_DIRECTORY', WPTOUCH_BASE_CONTENT_DIR .'
|
61 |
-
define( 'WPTOUCH_CUSTOM_ADDON_DIRECTORY', WPTOUCH_BASE_CONTENT_DIR .'
|
62 |
-
define( 'WPTOUCH_CUSTOM_LANG_DIRECTORY', WPTOUCH_BASE_CONTENT_DIR .'
|
63 |
-
|
64 |
-
define( 'WPTOUCH_DEBUG_DIRECTORY', WPTOUCH_BASE_CONTENT_DIR . '
|
65 |
define( 'WPTOUCH_DEBUG_URL', WPTOUCH_BASE_CONTENT_URL . '/debug' );
|
66 |
-
define( 'WPTOUCH_CACHE_DIRECTORY', WPTOUCH_BASE_CONTENT_DIR . '
|
67 |
-
define( 'WPTOUCH_BACKUP_DIRECTORY', WPTOUCH_BASE_CONTENT_DIR . '
|
68 |
|
69 |
-
define( 'WPTOUCH_CACHE_URL', WPTOUCH_BASE_CONTENT_URL . '
|
70 |
-
define( 'WPTOUCH_CUSTOM_ICON_URL', WPTOUCH_BASE_CONTENT_URL .'
|
71 |
|
72 |
// Separates the two types of settings in terms of usability
|
73 |
define( 'WPTOUCH_SETTING_BASIC', 0 );
|
@@ -83,7 +83,18 @@ define( 'WPTOUCH_MULTISITE_LICENSED', 'wptouch_pro_licensed' );
|
|
83 |
define( 'WPTOUCH_THUMBNAIL_SIZE', 144 );
|
84 |
define( 'WPTOUCH_FEATURED_SIZE', 900 );
|
85 |
define( 'WPTOUCH_EXCERPT_LENGTH', 24 );
|
86 |
-
define( 'WPTOUCH_PRO_README_FILE', 'http://www.wptouch.com/wptouch-pro-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
87 |
|
88 |
define( 'ADDON_SETTING_DOMAIN', 'addons' );
|
89 |
|
@@ -95,6 +106,4 @@ if ( defined( 'WPTOUCH_IS_FREE' ) ) {
|
|
95 |
define( 'WPTOUCH_API_CHECK_INTERVAL', 43200 );
|
96 |
} else {
|
97 |
define( 'WPTOUCH_API_CHECK_INTERVAL', 1500 );
|
98 |
-
}
|
99 |
-
|
100 |
-
require_once( 'mobile-user-agents.php' );
|
13 |
define( 'WPTOUCH_SIMULATE_ALL', FALSE );
|
14 |
|
15 |
// Max News items
|
16 |
+
define( 'WPTOUCH_MAX_NEWS_ITEMS', 10 );
|
17 |
|
18 |
if ( defined( 'WPTOUCH_IS_FREE' ) ) {
|
19 |
define( 'WPTOUCH_PRODUCT_NAME', 'WPtouch' );
|
44 |
|
45 |
define( 'WPTOUCH_URL', wptouch_check_url_ssl( plugins_url() . '/' . WPTOUCH_ROOT_NAME ) );
|
46 |
|
47 |
+
define( 'WPTOUCH_ADMIN_DIR', WPTOUCH_DIR . DIRECTORY_SEPARATOR . 'admin' );
|
48 |
define( 'WPTOUCH_ADMIN_URL', WPTOUCH_URL . '/admin' );
|
49 |
|
50 |
if ( !defined( 'WPTOUCH_BASE_CONTENT_DIR' ) && !defined( 'WPTOUCH_BASE_CONTENT_URL' ) ) {
|
52 |
}
|
53 |
|
54 |
define( 'WPTOUCH_CUSTOM_ICON_SET_NAME', __( 'Custom Icons', 'wptouch-pro' ) );
|
55 |
+
define( 'WPTOUCH_TEMP_DIRECTORY', WPTOUCH_BASE_CONTENT_DIR . DIRECTORY_SEPARATOR . 'temp' );
|
56 |
define( 'WPTOUCH_TEMP_URL', WPTOUCH_BASE_CONTENT_URL . '/temp' );
|
57 |
+
define( 'WPTOUCH_CUSTOM_SET_DIRECTORY', WPTOUCH_BASE_CONTENT_DIR . DIRECTORY_SEPARATOR . 'icons' );
|
58 |
+
define( 'WPTOUCH_CUSTOM_UPLOAD_DIRECTORY', WPTOUCH_BASE_CONTENT_DIR . DIRECTORY_SEPARATOR . 'uploads' );
|
59 |
+
define( 'WPTOUCH_CUSTOM_ICON_DIRECTORY', WPTOUCH_BASE_CONTENT_DIR . DIRECTORY_SEPARATOR . 'icons' . DIRECTORY_SEPARATOR . 'custom' );
|
60 |
+
define( 'WPTOUCH_CUSTOM_THEME_DIRECTORY', WPTOUCH_BASE_CONTENT_DIR . DIRECTORY_SEPARATOR . 'themes' );
|
61 |
+
define( 'WPTOUCH_CUSTOM_ADDON_DIRECTORY', WPTOUCH_BASE_CONTENT_DIR . DIRECTORY_SEPARATOR . 'extensions' );
|
62 |
+
define( 'WPTOUCH_CUSTOM_LANG_DIRECTORY', WPTOUCH_BASE_CONTENT_DIR . DIRECTORY_SEPARATOR . 'lang' );
|
63 |
+
|
64 |
+
define( 'WPTOUCH_DEBUG_DIRECTORY', WPTOUCH_BASE_CONTENT_DIR . DIRECTORY_SEPARATOR . 'debug' );
|
65 |
define( 'WPTOUCH_DEBUG_URL', WPTOUCH_BASE_CONTENT_URL . '/debug' );
|
66 |
+
define( 'WPTOUCH_CACHE_DIRECTORY', WPTOUCH_BASE_CONTENT_DIR . DIRECTORY_SEPARATOR . 'cache' );
|
67 |
+
define( 'WPTOUCH_BACKUP_DIRECTORY', WPTOUCH_BASE_CONTENT_DIR . DIRECTORY_SEPARATOR . 'backups' );
|
68 |
|
69 |
+
define( 'WPTOUCH_CACHE_URL', WPTOUCH_BASE_CONTENT_URL . DIRECTORY_SEPARATOR . 'cache' );
|
70 |
+
define( 'WPTOUCH_CUSTOM_ICON_URL', WPTOUCH_BASE_CONTENT_URL . DIRECTORY_SEPARATOR . 'icons' . DIRECTORY_SEPARATOR . 'custom' );
|
71 |
|
72 |
// Separates the two types of settings in terms of usability
|
73 |
define( 'WPTOUCH_SETTING_BASIC', 0 );
|
83 |
define( 'WPTOUCH_THUMBNAIL_SIZE', 144 );
|
84 |
define( 'WPTOUCH_FEATURED_SIZE', 900 );
|
85 |
define( 'WPTOUCH_EXCERPT_LENGTH', 24 );
|
86 |
+
define( 'WPTOUCH_PRO_README_FILE', 'http://www.wptouch.com/wptouch-pro-4/readme.txt' );
|
87 |
+
|
88 |
+
define( 'WPTOUCH_ADMIN_UPDATES_AVAILABLE', __( 'Updates Available', 'wptouch-pro' ) );
|
89 |
+
define( 'WPTOUCH_ADMIN_MULTISITE_SETUP', __( 'Multisite Setup', 'wptouch-pro' ) );
|
90 |
+
define( 'WPTOUCH_ADMIN_SETUP_GENERAL', __( 'General', 'wptouch-pro' ) );
|
91 |
+
define( 'WPTOUCH_ADMIN_SETUP_COMPAT', __( 'Compatibility', 'wptouch-pro' ) );
|
92 |
+
define( 'WPTOUCH_ADMIN_SETUP_DEVICES', __( 'Devices', 'wptouch-pro' ) );
|
93 |
+
define( 'WPTOUCH_ADMIN_MENU_MANAGE_ICON_SETS', __( 'Menu Settings', 'wptouch-pro' ) );
|
94 |
+
define( 'WPTOUCH_PRO_ADMIN_THEME_CUSTOMIZING', __( 'Customize Theme', 'wptouch-pro' ) );
|
95 |
+
define( 'WPTOUCH_PRO_ADMIN_THEME_GOPRO', __( 'Go Pro', 'wptouch-pro' ) );
|
96 |
+
define( 'WPTOUCH_PRO_ADMIN_THEMES', __( 'Themes', 'wptouch-pro' ) );
|
97 |
+
define( 'WPTOUCH_PRO_ADMIN_ADDONS', __( 'Extensions', 'wptouch-pro' ) );
|
98 |
|
99 |
define( 'ADDON_SETTING_DOMAIN', 'addons' );
|
100 |
|
106 |
define( 'WPTOUCH_API_CHECK_INTERVAL', 43200 );
|
107 |
} else {
|
108 |
define( 'WPTOUCH_API_CHECK_INTERVAL', 1500 );
|
109 |
+
}
|
|
|
|
core/desktop-functions.php
DELETED
@@ -1,140 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
|
4 |
-
function wptouch_include_functions_file( $file_name, $template_path, $current_path, $load_type ) {
|
5 |
-
global $wptouch_pro;
|
6 |
-
|
7 |
-
// Figure out real name of the source file
|
8 |
-
$source_file = $file_name;
|
9 |
-
|
10 |
-
if ( !file_exists( $source_file ) ) {
|
11 |
-
$source_file = $current_path . '/' . $file_name;
|
12 |
-
if ( !file_exists( $source_file ) ) {
|
13 |
-
$source_file = $template_path . '/' . $file_name;
|
14 |
-
if ( !file_exists( $source_file ) ) {
|
15 |
-
echo 'Unable to load desktop functions file';
|
16 |
-
die;
|
17 |
-
}
|
18 |
-
}
|
19 |
-
}
|
20 |
-
|
21 |
-
// Determine name of cached file
|
22 |
-
$file_info = pathinfo( $source_file );
|
23 |
-
$cached_file = $file_info['dirname'] . '/.' . $file_info['basename'] . '.wptouch';
|
24 |
-
|
25 |
-
// Basic caching for generating new functions files
|
26 |
-
$generate_new_cached_file = true;
|
27 |
-
if ( file_exists( $cached_file ) ) {
|
28 |
-
$cached_file_mod_time = filemtime( $cached_file );
|
29 |
-
$time_since_last_update = time() - $cached_file_mod_time;
|
30 |
-
|
31 |
-
// Only update once an hour
|
32 |
-
if ( $time_since_last_update < WPTOUCH_PRO_DESKTOP_FCN_CACHE_TIME ) {
|
33 |
-
$generate_new_cached_file = false;
|
34 |
-
}
|
35 |
-
}
|
36 |
-
|
37 |
-
// Only generate cached file when it's stale or unavailable
|
38 |
-
if ( $generate_new_cached_file ) {
|
39 |
-
$contents = wptouch_generate_functions_file( $wptouch_pro, $file_name, $template_path, $current_path );
|
40 |
-
|
41 |
-
$f = fopen( $cached_file, 'wt+' );
|
42 |
-
if ( $f ) {
|
43 |
-
fwrite( $f, $contents );
|
44 |
-
fclose( $f );
|
45 |
-
}
|
46 |
-
}
|
47 |
-
|
48 |
-
// Load cached file
|
49 |
-
switch( $load_type ) {
|
50 |
-
case 'include':
|
51 |
-
include( $cached_file );
|
52 |
-
break;
|
53 |
-
case 'include_once';
|
54 |
-
include_once( $cached_file );
|
55 |
-
break;
|
56 |
-
case 'require';
|
57 |
-
require( $cached_file );
|
58 |
-
break;
|
59 |
-
case 'require_once';
|
60 |
-
require_once( $cached_file );
|
61 |
-
break;
|
62 |
-
default:
|
63 |
-
break;
|
64 |
-
}
|
65 |
-
}
|
66 |
-
|
67 |
-
function wptouch_generate_functions_file( $wptouch_pro, $file_name, $template_path, $current_path ) {
|
68 |
-
$path_info = pathinfo( $file_name );
|
69 |
-
|
70 |
-
$original_name = $file_name;
|
71 |
-
$file_name = $path_info['basename'];
|
72 |
-
|
73 |
-
if ( !file_exists( $original_name ) ) {
|
74 |
-
$test_name = $current_path . '/' . $file_name;
|
75 |
-
if ( !file_exists( $test_name ) ) {
|
76 |
-
$test_name = ABSPATH . '/' . $file_name;
|
77 |
-
if ( !file_exists( $test_name ) ) {
|
78 |
-
$test_name = $current_path . '/' . $original_name;
|
79 |
-
if ( !file_exists( $test_name ) ) {
|
80 |
-
die( 'Unable to properly load functions.php from the desktop theme, problem with ' . $test_name );
|
81 |
-
} else {
|
82 |
-
$file_name = $test_name;
|
83 |
-
}
|
84 |
-
} else {
|
85 |
-
$file_name = $test_name;
|
86 |
-
}
|
87 |
-
} else {
|
88 |
-
$file_name = $test_name;
|
89 |
-
}
|
90 |
-
} else {
|
91 |
-
$file_name = $original_name;
|
92 |
-
}
|
93 |
-
|
94 |
-
if ( strpos( $file_name, $template_path ) === FALSE ) {
|
95 |
-
return;
|
96 |
-
}
|
97 |
-
|
98 |
-
$file_contents = trim( $wptouch_pro->load_file( $file_name ) );
|
99 |
-
|
100 |
-
$already_included_list = array();
|
101 |
-
|
102 |
-
// Replace certain files
|
103 |
-
$replace_constants = array( 'TEMPLATEPATH', 'STYLESHEETPATH', 'get_template_directory()' );
|
104 |
-
foreach( $replace_constants as $to_replace ) {
|
105 |
-
$file_contents = str_replace( $to_replace, "'" . $template_path . "'", $file_contents );
|
106 |
-
}
|
107 |
-
|
108 |
-
$file_contents = str_replace( ' bloginfo(', ' wptouch_desktop_bloginfo(', $file_contents );
|
109 |
-
$file_contents = str_replace( ' get_bloginfo(', ' wptouch_get_desktop_bloginfo(', $file_contents );
|
110 |
-
|
111 |
-
$include_params = array( 'include', 'include_once', 'require', 'require_once', 'locate_template' );
|
112 |
-
foreach( $include_params as $include_param ) {
|
113 |
-
$reg_ex = '#' . $include_param . ' *\((.*)\);#';
|
114 |
-
if ( preg_match_all( $reg_ex, $file_contents, $match ) ) {
|
115 |
-
for( $i = 0; $i < count( $match[0] ); $i++ ) {
|
116 |
-
$statement_in_code_that_loads_file = $match[0][$i];
|
117 |
-
|
118 |
-
$new_statement = str_replace( $include_param . ' (', $include_param . '(', $statement_in_code_that_loads_file );
|
119 |
-
|
120 |
-
if ( $include_param == 'locate_template' ) {
|
121 |
-
$new_statement = str_replace( $include_param . '(', 'wptouch_locate_template(', $new_statement );
|
122 |
-
|
123 |
-
$new_statement = str_replace( ');', ", '" . $template_path . "', '" . $current_path . "');", $new_statement );
|
124 |
-
|
125 |
-
$file_contents = str_replace( $statement_in_code_that_loads_file, $new_statement, $file_contents );
|
126 |
-
} else {
|
127 |
-
|
128 |
-
$current_path = dirname( $file_name );
|
129 |
-
$new_statement = str_replace( $include_param . '(', 'wptouch_include_functions_file(', $new_statement );
|
130 |
-
|
131 |
-
$new_statement = str_replace( ');', ", '" . $template_path . "', '" . $current_path . "', '" . $include_param . "');", $new_statement );
|
132 |
-
|
133 |
-
$file_contents = str_replace( $statement_in_code_that_loads_file, $new_statement, $file_contents );
|
134 |
-
}
|
135 |
-
}
|
136 |
-
}
|
137 |
-
}
|
138 |
-
|
139 |
-
return $file_contents;
|
140 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
core/file-operations.php
CHANGED
@@ -202,3 +202,19 @@ function wptouch_recursive_copy( $source_dir, $dest_dir ) {
|
|
202 |
closedir( $src_dir );
|
203 |
}
|
204 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
202 |
closedir( $src_dir );
|
203 |
}
|
204 |
}
|
205 |
+
|
206 |
+
function wptouch_is_path_writable( $test_path ) {
|
207 |
+
$isOK = false;
|
208 |
+
$path = trim( $test_path );
|
209 |
+
if ( ( $path != '' ) && is_dir( $path ) && is_writable( $path ) ) {
|
210 |
+
$tmpfile = "mPC_" . uniqid( mt_rand() ) . '.writable';
|
211 |
+
$fullpathname = str_replace( DIRECTORY_SEPARATOR . DIRECTORY_SEPARATOR, DIRECTORY_SEPARATOR, $path . DIRECTORY_SEPARATOR . $tmpfile );
|
212 |
+
$fp = @fopen( $fullpathname, "w" );
|
213 |
+
if ( $fp !== false ) {
|
214 |
+
$isOK = true;
|
215 |
+
}
|
216 |
+
@fclose( $fp );
|
217 |
+
@unlink( $fullpathname );
|
218 |
+
}
|
219 |
+
return $isOK;
|
220 |
+
}
|
core/globals.php
CHANGED
@@ -5,11 +5,12 @@ if ( !defined( 'WPTOUCH_IS_FREE' ) ) {
|
|
5 |
}
|
6 |
|
7 |
define( 'WPTOUCH_PRO_DESKTOP_FCN_CACHE_TIME', 3600 );
|
|
|
8 |
|
9 |
-
add_action( 'wptouch_pro_loaded', 'wptouch_load_add_ons' );
|
10 |
add_filter( 'wptouch_modify_setting__compat__enabled_plugins', 'wptouch_modify_enabled_plugins' );
|
11 |
|
12 |
require_once( WPTOUCH_DIR . '/core/class-array-iterator.php' );
|
|
|
13 |
|
14 |
function wptouch_is_mobile_theme_showing() {
|
15 |
global $wptouch_pro;
|
@@ -17,17 +18,6 @@ function wptouch_is_mobile_theme_showing() {
|
|
17 |
return ( $wptouch_pro->is_mobile_device && $wptouch_pro->showing_mobile_theme );
|
18 |
}
|
19 |
|
20 |
-
function wptouch_load_add_ons() {
|
21 |
-
require_once( WPTOUCH_DIR . '/core/file-operations.php' );
|
22 |
-
$php_files = wptouch_get_all_recursive_files( WPTOUCH_DIR . '/include/add-ons/', '.php' );
|
23 |
-
|
24 |
-
if ( $php_files && count( $php_files ) ) {
|
25 |
-
foreach( $php_files as $php_file ) {
|
26 |
-
require_once( WPTOUCH_DIR . '/include/add-ons' . $php_file );
|
27 |
-
}
|
28 |
-
}
|
29 |
-
}
|
30 |
-
|
31 |
function wptouch_locate_template( $param1, $param2, $param3, $param4 = false, $param5 = false ) {
|
32 |
$template_path = false;
|
33 |
$current_path = false;
|
@@ -66,8 +56,6 @@ function wptouch_locate_template( $param1, $param2, $param3, $param4 = false, $p
|
|
66 |
} else {
|
67 |
wptouch_include_functions_file( $wptouch_pro, $template_file, $template_path, $current_path, 'require' );
|
68 |
}
|
69 |
-
} else {
|
70 |
-
// add debug statement
|
71 |
}
|
72 |
}
|
73 |
|
@@ -138,10 +126,6 @@ function wptouch_capture_include_file( $file_name ) {
|
|
138 |
return $contents;
|
139 |
}
|
140 |
|
141 |
-
function wptouch_is_multisite_enabled() {
|
142 |
-
return is_multisite();
|
143 |
-
}
|
144 |
-
|
145 |
function wptouch_get_supported_user_agents() {
|
146 |
global $wptouch_pro;
|
147 |
return $wptouch_pro->get_supported_user_agents();
|
@@ -197,7 +181,7 @@ function wptouch_rss_date( $rss_date ) {
|
|
197 |
echo date( 'F jS, Y', $date_time );
|
198 |
}
|
199 |
|
200 |
-
function
|
201 |
return ( isset( $_GET['wptouch_preview_theme'] ) );
|
202 |
}
|
203 |
|
@@ -221,7 +205,6 @@ function wptouch_desktop_switch_link( $echo_result = true ) {
|
|
221 |
|
222 |
function wptouch_should_show_desktop_switch_link() {
|
223 |
global $wptouch_pro;
|
224 |
-
|
225 |
return ( $wptouch_pro->is_mobile_device && !$wptouch_pro->showing_mobile_theme );
|
226 |
}
|
227 |
|
@@ -231,16 +214,7 @@ function wptouch_the_desktop_switch_link() {
|
|
231 |
|
232 |
function wptouch_get_desktop_switch_link() {
|
233 |
global $wptouch_pro;
|
234 |
-
|
235 |
-
if ( isset( $wptouch_pro->post[ 'wptouch_switch_location' ] ) ) {
|
236 |
-
$redirect_location = $wptouch_pro->post[ 'wptouch_switch_location' ];
|
237 |
-
} else {
|
238 |
-
$redirect_location = esc_url_raw( $_SERVER['REQUEST_URI'], array( 'http', 'https' ) );
|
239 |
-
}
|
240 |
-
|
241 |
-
$nonce = wp_create_nonce( 'wptouch_switch' );
|
242 |
-
|
243 |
-
return apply_filters( 'wptouch_desktop_switch_link', get_bloginfo( 'url' ) . '?wptouch_switch=mobile&redirect=' . urlencode( $redirect_location ) . '&nonce=' . $nonce );
|
244 |
}
|
245 |
|
246 |
if ( defined( 'WPTOUCH_IS_FREE' ) ) {
|
@@ -258,7 +232,7 @@ if ( defined( 'WPTOUCH_IS_FREE' ) ) {
|
|
258 |
}
|
259 |
|
260 |
function wptouch_admin_url( $url ) {
|
261 |
-
if (
|
262 |
return network_admin_url( $url );
|
263 |
} else {
|
264 |
return admin_url( $url );
|
@@ -274,21 +248,6 @@ function wptouch_should_show_activation_nag() {
|
|
274 |
return wptouch_should_show_license_nag();
|
275 |
}
|
276 |
|
277 |
-
function wptouch_is_multisite_primary() {
|
278 |
-
global $blog_id;
|
279 |
-
return ( $blog_id == 1 );
|
280 |
-
}
|
281 |
-
|
282 |
-
function wptouch_is_multisite_secondary() {
|
283 |
-
if ( wptouch_is_multisite_enabled() ) {
|
284 |
-
global $blog_id;
|
285 |
-
|
286 |
-
return ( $blog_id > 1 );
|
287 |
-
} else {
|
288 |
-
return false;
|
289 |
-
}
|
290 |
-
}
|
291 |
-
|
292 |
function wptouch_bloginfo( $setting_name ) {
|
293 |
echo wptouch_get_bloginfo( $setting_name );
|
294 |
}
|
@@ -319,8 +278,15 @@ function wptouch_get_bloginfo( $setting_name ) {
|
|
319 |
case 'theme_root_url':
|
320 |
$setting = $wptouch_pro->get_current_theme_uri();
|
321 |
break;
|
|
|
|
|
|
|
322 |
case 'site_title':
|
323 |
-
|
|
|
|
|
|
|
|
|
324 |
break;
|
325 |
case 'wptouch_directory':
|
326 |
$setting = WPTOUCH_DIR;
|
@@ -421,23 +387,24 @@ function wptouch_get_locale() {
|
|
421 |
}
|
422 |
|
423 |
function wptouch_get_desktop_bloginfo( $param ) {
|
424 |
-
|
425 |
-
|
426 |
-
|
427 |
-
|
428 |
-
|
429 |
-
|
430 |
-
|
431 |
-
|
432 |
}
|
433 |
|
434 |
function wptouch_desktop_bloginfo( $param ) {
|
435 |
-
|
436 |
}
|
437 |
|
438 |
function wptouch_can_cloud_install( $theme = true ) {
|
439 |
global $wptouch_pro;
|
440 |
return $wptouch_pro->can_perform_cloud_install( $theme );
|
|
|
441 |
}
|
442 |
|
443 |
function wptouchize_it( $str ) {
|
@@ -448,3 +415,157 @@ function wptouchize_it( $str ) {
|
|
448 |
}
|
449 |
}
|
450 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
}
|
6 |
|
7 |
define( 'WPTOUCH_PRO_DESKTOP_FCN_CACHE_TIME', 3600 );
|
8 |
+
define( 'WPTOUCH_PRO_LIVE_PREVIEW_SETTING', 1 );
|
9 |
|
|
|
10 |
add_filter( 'wptouch_modify_setting__compat__enabled_plugins', 'wptouch_modify_enabled_plugins' );
|
11 |
|
12 |
require_once( WPTOUCH_DIR . '/core/class-array-iterator.php' );
|
13 |
+
require_once( WPTOUCH_DIR . '/core/multisite.php' );
|
14 |
|
15 |
function wptouch_is_mobile_theme_showing() {
|
16 |
global $wptouch_pro;
|
18 |
return ( $wptouch_pro->is_mobile_device && $wptouch_pro->showing_mobile_theme );
|
19 |
}
|
20 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
21 |
function wptouch_locate_template( $param1, $param2, $param3, $param4 = false, $param5 = false ) {
|
22 |
$template_path = false;
|
23 |
$current_path = false;
|
56 |
} else {
|
57 |
wptouch_include_functions_file( $wptouch_pro, $template_file, $template_path, $current_path, 'require' );
|
58 |
}
|
|
|
|
|
59 |
}
|
60 |
}
|
61 |
|
126 |
return $contents;
|
127 |
}
|
128 |
|
|
|
|
|
|
|
|
|
129 |
function wptouch_get_supported_user_agents() {
|
130 |
global $wptouch_pro;
|
131 |
return $wptouch_pro->get_supported_user_agents();
|
181 |
echo date( 'F jS, Y', $date_time );
|
182 |
}
|
183 |
|
184 |
+
function wptouch_in_preview() {
|
185 |
return ( isset( $_GET['wptouch_preview_theme'] ) );
|
186 |
}
|
187 |
|
205 |
|
206 |
function wptouch_should_show_desktop_switch_link() {
|
207 |
global $wptouch_pro;
|
|
|
208 |
return ( $wptouch_pro->is_mobile_device && !$wptouch_pro->showing_mobile_theme );
|
209 |
}
|
210 |
|
214 |
|
215 |
function wptouch_get_desktop_switch_link() {
|
216 |
global $wptouch_pro;
|
217 |
+
return apply_filters( 'wptouch_desktop_switch_link', '?wptouch_switch=mobile' );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
218 |
}
|
219 |
|
220 |
if ( defined( 'WPTOUCH_IS_FREE' ) ) {
|
232 |
}
|
233 |
|
234 |
function wptouch_admin_url( $url ) {
|
235 |
+
if ( is_network_admin() ) {
|
236 |
return network_admin_url( $url );
|
237 |
} else {
|
238 |
return admin_url( $url );
|
248 |
return wptouch_should_show_license_nag();
|
249 |
}
|
250 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
251 |
function wptouch_bloginfo( $setting_name ) {
|
252 |
echo wptouch_get_bloginfo( $setting_name );
|
253 |
}
|
278 |
case 'theme_root_url':
|
279 |
$setting = $wptouch_pro->get_current_theme_uri();
|
280 |
break;
|
281 |
+
case 'theme_parent_url':
|
282 |
+
$setting = $wptouch_pro->change_dir_to_url( $wptouch_pro->get_current_parent_location() );
|
283 |
+
break;
|
284 |
case 'site_title':
|
285 |
+
if ( $settings->site_title != '' ) {
|
286 |
+
$setting = $settings->site_title;
|
287 |
+
} else {
|
288 |
+
$setting = get_bloginfo('name');
|
289 |
+
}
|
290 |
break;
|
291 |
case 'wptouch_directory':
|
292 |
$setting = WPTOUCH_DIR;
|
387 |
}
|
388 |
|
389 |
function wptouch_get_desktop_bloginfo( $param ) {
|
390 |
+
switch( $param ) {
|
391 |
+
case 'stylesheet_directory':
|
392 |
+
case 'template_url':
|
393 |
+
case 'template_directory':
|
394 |
+
return content_url() . '/themes/' . get_option( 'template' );
|
395 |
+
default:
|
396 |
+
return get_bloginfo( $param );
|
397 |
+
}
|
398 |
}
|
399 |
|
400 |
function wptouch_desktop_bloginfo( $param ) {
|
401 |
+
echo wptouch_get_desktop_bloginfo( $param );
|
402 |
}
|
403 |
|
404 |
function wptouch_can_cloud_install( $theme = true ) {
|
405 |
global $wptouch_pro;
|
406 |
return $wptouch_pro->can_perform_cloud_install( $theme );
|
407 |
+
// return false; // for testing
|
408 |
}
|
409 |
|
410 |
function wptouchize_it( $str ) {
|
415 |
}
|
416 |
}
|
417 |
|
418 |
+
function wptouch_load_framework( $version = 2 ) {
|
419 |
+
require_once( WPTOUCH_DIR . '/themes/foundation/root-functions.php' );
|
420 |
+
require_once( WPTOUCH_DIR . '/themes/foundation/default/functions.php' );
|
421 |
+
|
422 |
+
add_action( 'wp_enqueue_scripts', 'wptouch_foundation_load_framework_styles', 1 );
|
423 |
+
}
|
424 |
+
|
425 |
+
function wptouch_foundation_load_framework_styles() {
|
426 |
+
wp_enqueue_style( 'foundation-framework-style', WPTOUCH_URL . '/themes/foundation/default/style.css', false, md5( WPTOUCH_VERSION ) );
|
427 |
+
}
|
428 |
+
|
429 |
+
function wptouch_return_false() {
|
430 |
+
return false;
|
431 |
+
}
|
432 |
+
|
433 |
+
function wptouch_theme_version_compare( $required_version, $operator ) {
|
434 |
+
// Example: wptouch_theme_version_compare( '4.0', '>=' ); will return true if current theme requires 4.0 or higher
|
435 |
+
|
436 |
+
global $wptouch_pro;
|
437 |
+
$current_theme = $wptouch_pro->get_current_theme_info();
|
438 |
+
if ( isset( $current_theme->plugin_version ) && version_compare( $current_theme->plugin_version, $required_version, $operator ) ) {
|
439 |
+
return true;
|
440 |
+
} else {
|
441 |
+
return false;
|
442 |
+
}
|
443 |
+
}
|
444 |
+
|
445 |
+
function wptouch_admin_get_languages() {
|
446 |
+
$languages = array(
|
447 |
+
'auto' => __( 'Auto-detect', 'wptouch-pro' ),
|
448 |
+
'en_US' => 'English',
|
449 |
+
'fr_FR' => 'Français',
|
450 |
+
'it_IT' => 'Italiano',
|
451 |
+
'es_ES' => 'Español',
|
452 |
+
'sv_SE' => 'Svenska',
|
453 |
+
'de_DE' => 'Deutsch',
|
454 |
+
'el' => 'ελληνικά',
|
455 |
+
'da_DK' => 'Dansk',
|
456 |
+
'pt' => 'Português',
|
457 |
+
'nl_NL' => 'Nederlands',
|
458 |
+
'hu' => 'Magyar',
|
459 |
+
'id_ID' => 'Bahasa Indonesia',
|
460 |
+
'he_IL' => 'עִבְרִית',
|
461 |
+
'vi' => 'Tiếng Việt',
|
462 |
+
'tr' => 'Türkçe',
|
463 |
+
'ru_RU' => 'русский',
|
464 |
+
'th' => 'ภาษาไทย',
|
465 |
+
'ja_JP' => '日本語',
|
466 |
+
'zh_CN' => '简体字',
|
467 |
+
'zh_HK' => '繁體字',
|
468 |
+
'ko_KR' => '한국어,조선말',
|
469 |
+
'hi_IN' => 'मानक हिन्दी',
|
470 |
+
'ar' => 'العربية/عربي'
|
471 |
+
);
|
472 |
+
|
473 |
+
return apply_filters( 'wptouch_admin_languages', $languages );
|
474 |
+
}
|
475 |
+
|
476 |
+
function wptouch_free_go_pro() {
|
477 |
+
// Apply license
|
478 |
+
global $wptouch_pro;
|
479 |
+
|
480 |
+
$settings = $wptouch_pro->get_settings();
|
481 |
+
$settings->upgrade_from_free = true;
|
482 |
+
$settings->current_theme_friendly_name = false;
|
483 |
+
$settings->save();
|
484 |
+
|
485 |
+
$result = wptouch_free_upgrade_plugin();
|
486 |
+
|
487 |
+
return $result;
|
488 |
+
}
|
489 |
+
|
490 |
+
function wptouch_free_upgrade_plugin() {
|
491 |
+
global $wptouch_pro;
|
492 |
+
$wptouch_pro->bnc_api = false;
|
493 |
+
|
494 |
+
$settings = wptouch_get_settings( 'bncid' );
|
495 |
+
$wptouch_pro->setup_bncapi( $settings->bncid, $settings->wptouch_license_key, true );
|
496 |
+
$bnc_api = $wptouch_pro->get_bnc_api();
|
497 |
+
|
498 |
+
$plugin_name = 'wptouch/wptouch.php';
|
499 |
+
|
500 |
+
// Check for WordPress 3.0 function
|
501 |
+
if ( function_exists( 'is_super_admin' ) ) {
|
502 |
+
$option = get_site_transient( 'update_plugins' );
|
503 |
+
} else {
|
504 |
+
$option = function_exists( 'get_transient' ) ? get_transient( 'update_plugins' ) : get_option( 'update_plugins' );
|
505 |
+
}
|
506 |
+
|
507 |
+
$version_available = false;
|
508 |
+
|
509 |
+
$latest_info = $bnc_api->get_product_version();
|
510 |
+
|
511 |
+
if ( $latest_info && $latest_info[ 'version' ] != WPTOUCH_VERSION ) {
|
512 |
+
WPTOUCH_DEBUG( WPTOUCH_INFO, 'A new product update is available [' . $latest_info['version'] . ']' );
|
513 |
+
|
514 |
+
if ( isset( $latest_info[ 'upgrade_url' ] ) && wptouch_has_license() ) {
|
515 |
+
|
516 |
+
if ( !isset( $option->response[ $plugin_name ] ) ) {
|
517 |
+
$option->response[ $plugin_name ] = new stdClass();
|
518 |
+
}
|
519 |
+
|
520 |
+
// Update upgrade options
|
521 |
+
$option->response[ $plugin_name ]->url = 'http://www.wptouch.com/';
|
522 |
+
$option->response[ $plugin_name ]->package = $latest_info[ 'upgrade_url' ];
|
523 |
+
$option->response[ $plugin_name ]->new_version = $latest_info['version'];
|
524 |
+
$option->response[ $plugin_name ]->id = '0';
|
525 |
+
$option->response[ $plugin_name ]->slug = WPTOUCH_ROOT_NAME;
|
526 |
+
} else {
|
527 |
+
if ( is_object( $option ) && isset( $option->response ) ) {
|
528 |
+
unset( $option->response[ $plugin_name ] );
|
529 |
+
}
|
530 |
+
}
|
531 |
+
|
532 |
+
$wptouch_pro->latest_version_info = $latest_info;
|
533 |
+
$upgrade_available = $latest_info[ 'version' ];
|
534 |
+
} else {
|
535 |
+
if ( is_object( $option ) && isset( $option->response ) ) {
|
536 |
+
unset( $option->response[ $plugin_name ] );
|
537 |
+
}
|
538 |
+
}
|
539 |
+
|
540 |
+
if ( isset( $option->response[ $plugin_name ] ) ) {
|
541 |
+
// WordPress 3.0 changed some stuff, so we check for a WP 3.0 function
|
542 |
+
if ( function_exists( 'is_super_admin' ) ) {
|
543 |
+
set_site_transient( 'update_plugins', $option );
|
544 |
+
} else if ( function_exists( 'set_transient' ) ) {
|
545 |
+
set_transient( 'update_plugins', $option );
|
546 |
+
}
|
547 |
+
|
548 |
+
// Do Upgrade
|
549 |
+
include_once( ABSPATH . 'wp-admin/includes/admin.php' );
|
550 |
+
include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );
|
551 |
+
$upgrader = new Plugin_Upgrader( new Automatic_Upgrader_Skin() );
|
552 |
+
$upgrader->upgrade( 'wptouch/wptouch.php' );
|
553 |
+
|
554 |
+
if ( is_array( $upgrader->skin->result ) ) {
|
555 |
+
deactivate_plugins( 'wptouch/wptouch.php' );
|
556 |
+
$new_plugin_identifier = 'wptouch-pro/wptouch-pro.php';
|
557 |
+
|
558 |
+
$active_plugins = get_option( 'active_plugins', array() );
|
559 |
+
if ( !in_array( $new_plugin_identifier, $active_plugins ) ) {
|
560 |
+
$active_plugins[] = $new_plugin_identifier;
|
561 |
+
update_option( 'active_plugins', $active_plugins );
|
562 |
+
}
|
563 |
+
|
564 |
+
return '1';
|
565 |
+
} else {
|
566 |
+
return '0';
|
567 |
+
}
|
568 |
+
} else {
|
569 |
+
return '0';
|
570 |
+
}
|
571 |
+
}
|
core/menu-walkers.php
CHANGED
@@ -1,4 +1,434 @@
|
|
1 |
<?php
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
3 |
function wptouch_menu_walker_get_classes( $item, $has_icon = true ) {
|
4 |
$clear_classes = array( 'menu-item' );
|
@@ -48,7 +478,14 @@ class WPtouchProMainNavMenuWalker extends WPtouchProNavMenuWalker {
|
|
48 |
$target = ' target="_blank"';
|
49 |
}
|
50 |
|
51 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
52 |
$this->last_item = false;
|
53 |
}
|
54 |
|
@@ -70,7 +507,8 @@ class WPtouchProMainNavMenuWalker extends WPtouchProNavMenuWalker {
|
|
70 |
if ( !$this->skipping_item ) {
|
71 |
$output .= '<li class="' . wptouch_menu_walker_get_classes( $item, $this->show_menu_icons ) . '">';
|
72 |
|
73 |
-
|
|
|
74 |
$output .= '<img src="' . wptouch_get_menu_icon( $item->ID ) . '" alt="menu-icon" />';
|
75 |
}
|
76 |
|
@@ -123,7 +561,8 @@ class WPtouchProMainPageMenuWalker extends WPtouchProPageWalker {
|
|
123 |
if ( !$this->skipping_item ) {
|
124 |
$output .= '<li class="' . wptouch_menu_walker_get_classes( $item, $this->show_menu_icons ) . '">';
|
125 |
|
126 |
-
|
|
|
127 |
$output .= '<img src="' . wptouch_get_menu_icon( $item->ID ) . '" alt="menu-icon" />';
|
128 |
}
|
129 |
|
@@ -142,88 +581,6 @@ class WPtouchProMainPageMenuWalker extends WPtouchProPageWalker {
|
|
142 |
}
|
143 |
}
|
144 |
|
145 |
-
class WPtouchProAdminNavMenuWalker extends WPtouchProNavMenuWalker {
|
146 |
-
var $last_item;
|
147 |
-
|
148 |
-
function start_lvl( &$output, $depth=0, $args=array() ) {
|
149 |
-
if ( $this->last_item ) {
|
150 |
-
$output .= '<a href="#" class="expand title">' . $this->last_item->title . '</a>';
|
151 |
-
$this->last_item = false;
|
152 |
-
}
|
153 |
-
|
154 |
-
$output .= '<ul>';
|
155 |
-
}
|
156 |
-
|
157 |
-
function end_lvl( &$output, $depth=0, $args=array() ) {
|
158 |
-
$output .= '</ul>';
|
159 |
-
}
|
160 |
-
|
161 |
-
function start_el( &$output, $item, $depth=0, $args=array(), $current_object_id = 0 ) {
|
162 |
-
$output .= '<li class="' . wptouch_menu_walker_get_classes( $item ) . '">';
|
163 |
-
$output .= '<div class="drop-target" data-object-id="' . $item->ID . '">';
|
164 |
-
$output .= '<img src="' . wptouch_get_menu_icon( $item->ID ) . '" alt="menu-icon" />';
|
165 |
-
$output .= '</div>';
|
166 |
-
|
167 |
-
$output .= '<div class="menu-enable">';
|
168 |
-
$output .= '<input class="checkbox" type="checkbox" data-object-id="' . $item->ID . '"';
|
169 |
-
|
170 |
-
if ( !wptouch_menu_is_disabled( $item->ID ) ) $output .= " checked ";
|
171 |
-
$output .= '/></div>';
|
172 |
-
|
173 |
-
$this->last_item = $item;
|
174 |
-
}
|
175 |
-
|
176 |
-
function end_el( &$output, $item, $depth=0, $args=array() ) {
|
177 |
-
if ( $this->last_item ) {
|
178 |
-
$output .= '<span class="title">' . $item->title . '</span>';
|
179 |
-
$this->last_item = false;
|
180 |
-
}
|
181 |
-
|
182 |
-
$output .= "</li>";
|
183 |
-
}
|
184 |
-
}
|
185 |
-
|
186 |
-
class WPtouchProAdminPageMenuWalker extends WPtouchProPageWalker {
|
187 |
-
var $last_item;
|
188 |
-
|
189 |
-
function start_lvl( &$output, $depth=0, $args=array() ) {
|
190 |
-
if ( $this->last_item ) {
|
191 |
-
$output .= '<a href="#" class="expand title">' . $this->last_item->post_title . '</a>';
|
192 |
-
$this->last_item = false;
|
193 |
-
}
|
194 |
-
|
195 |
-
$output .= '<ul>';
|
196 |
-
}
|
197 |
-
|
198 |
-
function end_lvl( &$output, $depth=0, $args=array() ) {
|
199 |
-
$output .= '</ul>';
|
200 |
-
}
|
201 |
-
|
202 |
-
function start_el( &$output, $item, $depth=0, $args=array(), $current_object_id = 0 ) {
|
203 |
-
$output .= '<li class="' . wptouch_menu_walker_get_classes( $item ) . '">';
|
204 |
-
$output .= '<div class="drop-target" data-object-id="' . $item->ID . '">';
|
205 |
-
$output .= '<img src="' . wptouch_get_menu_icon( $item->ID ) . '" alt="menu-icon" />';
|
206 |
-
$output .= '</div>';
|
207 |
-
|
208 |
-
$output .= '<div class="menu-enable">';
|
209 |
-
$output .= '<input class="checkbox" type="checkbox" data-object-id="' . $item->ID . '"';
|
210 |
-
|
211 |
-
if ( !wptouch_menu_is_disabled( $item->ID ) ) $output .= " checked ";
|
212 |
-
$output .= '/></div>';
|
213 |
-
|
214 |
-
$this->last_item = $item;
|
215 |
-
}
|
216 |
-
|
217 |
-
function end_el( &$output, $item, $depth=0, $args=array() ) {
|
218 |
-
if ( $this->last_item ) {
|
219 |
-
$output .= '<span class="title">' . $item->post_title . '</span>';
|
220 |
-
$this->last_item = false;
|
221 |
-
}
|
222 |
-
|
223 |
-
$output .= "</li>";
|
224 |
-
}
|
225 |
-
}
|
226 |
-
|
227 |
/**
|
228 |
* Create HTML list of categories.
|
229 |
*
|
1 |
<?php
|
2 |
+
$theme = get_option( 'stylesheet' );
|
3 |
+
add_action( 'update_option_theme_mods_' . $theme, 'wptouch_save_menu_changes', 10, 2 );
|
4 |
+
|
5 |
+
function wptouch_save_menu_changes( $old_value, $new_value ) {
|
6 |
+
if ( isset( $new_value[ 'nav_menu_locations' ] ) ) {
|
7 |
+
global $wptouch_pro;
|
8 |
+
$menu_map = $new_value[ 'nav_menu_locations' ];
|
9 |
+
|
10 |
+
if ( is_array( $menu_map ) && count( $menu_map > 0 ) ) {
|
11 |
+
foreach ( $menu_map as $location => $menu_id ) {
|
12 |
+
if ( strstr( $location, 'wptouch_') ) {
|
13 |
+
$menu_data = wp_get_nav_menu_object( $menu_id );
|
14 |
+
$location = substr( $location, 8 );
|
15 |
+
|
16 |
+
global $wptouch_pro;
|
17 |
+
$menu_domain = false;
|
18 |
+
foreach( $wptouch_pro->theme_menus as $menu ) {
|
19 |
+
if ( $menu->setting_name == $location ) {
|
20 |
+
$menu_domain = $menu->settings_domain;
|
21 |
+
continue;
|
22 |
+
}
|
23 |
+
}
|
24 |
+
|
25 |
+
if ( $menu_domain ) {
|
26 |
+
$settings = wptouch_get_settings( $menu_domain );
|
27 |
+
$settings->{ $location } = $menu_id;
|
28 |
+
$settings->save();
|
29 |
+
}
|
30 |
+
}
|
31 |
+
}
|
32 |
+
}
|
33 |
+
|
34 |
+
wptouch_customizer_begin_theme_override();
|
35 |
+
set_theme_mod( 'nav_menu_locations', $menu_map );
|
36 |
+
wptouch_customizer_end_theme_override();
|
37 |
+
}
|
38 |
+
}
|
39 |
+
|
40 |
+
add_action( 'wptouch_after_reset_settings', 'wptouch_deregister_wordpress_menus' );
|
41 |
+
add_action( 'wptouch_after_self_destruct', 'wptouch_deregister_wordpress_menus' );
|
42 |
+
function wptouch_deregister_wordpress_menus() {
|
43 |
+
global $wptouch_pro;
|
44 |
+
|
45 |
+
$menu_map = get_theme_mod( 'nav_menu_locations' );
|
46 |
+
foreach( $wptouch_pro->theme_menus as $menu ) {
|
47 |
+
$location = $menu->setting_name;
|
48 |
+
unset( $menu_map[ 'wptouch_' . $location ] );
|
49 |
+
}
|
50 |
+
set_theme_mod( 'nav_menu_locations', $menu_map );
|
51 |
+
}
|
52 |
+
|
53 |
+
add_action( 'admin_init', 'wptouch_initialize_wordpress_menus' );
|
54 |
+
function wptouch_initialize_wordpress_menus() {
|
55 |
+
if ( !get_option( 'wptouch_menus_initialized' ) ) {
|
56 |
+
global $wptouch_pro;
|
57 |
+
|
58 |
+
foreach( $wptouch_pro->theme_menus as $menu ) {
|
59 |
+
$location = $menu->setting_name;
|
60 |
+
$menu_domain = $menu->settings_domain;
|
61 |
+
$settings = wptouch_get_settings( $menu_domain );
|
62 |
+
|
63 |
+
if ( $settings->{ $location } == 'wp' ) {
|
64 |
+
$menu_id = wptouch_migrate_modded_menu();
|
65 |
+
$settings->{ $location } = $menu_id;
|
66 |
+
$settings->save();
|
67 |
+
}
|
68 |
+
}
|
69 |
+
|
70 |
+
$menu_map = get_theme_mod( 'nav_menu_locations' );
|
71 |
+
foreach( $wptouch_pro->theme_menus as $menu ) {
|
72 |
+
$location = $menu->setting_name;
|
73 |
+
$menu_domain = $menu->settings_domain;
|
74 |
+
$settings = wptouch_get_settings( $menu_domain );
|
75 |
+
if ( $settings->{ $location } && $settings->{ $location } != '' ) {
|
76 |
+
$menu_map[ 'wptouch_' . $location ] = $settings->{ $location };
|
77 |
+
}
|
78 |
+
}
|
79 |
+
set_theme_mod( 'nav_menu_locations', $menu_map );
|
80 |
+
add_option( 'wptouch_menus_initialized', true );
|
81 |
+
}
|
82 |
+
}
|
83 |
+
|
84 |
+
function wptouch_migrate_modded_menu() {
|
85 |
+
$menu_name = 'WPtouch - Recovered Page Menu';
|
86 |
+
$menu_object = wp_get_nav_menu_object( $menu_name );
|
87 |
+
|
88 |
+
if ( !$menu_object ) {
|
89 |
+
$menu_id = wp_create_nav_menu($menu_name);
|
90 |
+
|
91 |
+
$pages = get_pages( array( 'post_status' => 'publish', 'sort_column' => 'menu_order, post_title' ));
|
92 |
+
$menu_items = array();
|
93 |
+
$skipped_pages = array();
|
94 |
+
|
95 |
+
foreach ( $pages as $page ) {
|
96 |
+
if ( wptouch_menu_is_disabled( $page->ID ) ) {
|
97 |
+
$skipped_pages[] = $page->ID;
|
98 |
+
} elseif ( !in_array( $page->post_parent, $skipped_pages ) ) {
|
99 |
+
$parent_id = 0;
|
100 |
+
if ( isset( $menu_items[ $page->post_parent ] ) ) {
|
101 |
+
$parent_id = $menu_items[ $page->post_parent ];
|
102 |
+
}
|
103 |
+
|
104 |
+
$args = array(
|
105 |
+
'menu-item-db-id' => 0,
|
106 |
+
'menu-item-object-id' => $page->ID,
|
107 |
+
'menu-item-object' => 'page',
|
108 |
+
'menu-item-type' => 'post_type',
|
109 |
+
'menu-item-parent-id' => $parent_id,
|
110 |
+
'menu-item-status' => 'publish'
|
111 |
+
);
|
112 |
+
|
113 |
+
$menu_items[ $page->ID ] = wp_update_nav_menu_item ( $menu_id, 0, $args );
|
114 |
+
|
115 |
+
$menu_icon = get_post_meta( $page->ID, '_wptouch_pro_menu_item_icon', true );
|
116 |
+
if ( $menu_icon ) {
|
117 |
+
add_post_meta( $menu_items[ $page->ID ], '_wptouch_pro_menu_item_icon', $menu_icon );
|
118 |
+
}
|
119 |
+
}
|
120 |
+
}
|
121 |
+
} else {
|
122 |
+
$menu_id = $menu_object->ID;
|
123 |
+
}
|
124 |
+
|
125 |
+
return ( $menu_id );
|
126 |
+
}
|
127 |
+
|
128 |
+
|
129 |
+
add_action( 'in_admin_header', 'wptouch_output_menu_icon_packs' );
|
130 |
+
|
131 |
+
function wptouch_output_menu_icon_packs() {
|
132 |
+
global $current_screen;
|
133 |
+
|
134 |
+
if ( $current_screen->base != 'nav-menus' || $current_screen->get_help_tab( 'locations-overview' ) != null ) {
|
135 |
+
return false;
|
136 |
+
}
|
137 |
+
|
138 |
+
require_once( WPTOUCH_DIR . '/core/admin-icons.php' );
|
139 |
+
if (wptouch_have_icon_packs() ) {
|
140 |
+
?>
|
141 |
+
<div id="icon-picker">
|
142 |
+
<div id="icon-packs">
|
143 |
+
<?php while ( wptouch_have_icon_packs() ) { wptouch_the_icon_pack(); ?>
|
144 |
+
|
145 |
+
<div class="pack" id="pack-<?php echo wptouch_get_icon_pack_class_name(); ?>">
|
146 |
+
<?php if ( wptouch_have_icons( wptouch_get_icon_pack_name() ) ) { ?>
|
147 |
+
<h3><?php echo wptouch_get_icon_pack_name(); ?></h3>
|
148 |
+
<ul>
|
149 |
+
<?php while ( wptouch_have_icons( wptouch_get_icon_pack_name() ) ) { ?>
|
150 |
+
<?php wptouch_the_icon(); ?>
|
151 |
+
<li>
|
152 |
+
<img src="<?php wptouch_the_icon_url(); ?>" alt="icon" />
|
153 |
+
</li>
|
154 |
+
<?php } ?>
|
155 |
+
</ul>
|
156 |
+
<?php } ?>
|
157 |
+
</div>
|
158 |
+
<?php } ?>
|
159 |
+
</div>
|
160 |
+
</div>
|
161 |
+
<?php
|
162 |
+
}
|
163 |
+
}
|
164 |
+
|
165 |
+
add_action( 'wp_update_nav_menu_item', 'wptouch_save_menu_icon', 10, 3 );
|
166 |
+
|
167 |
+
function wptouch_save_menu_icon( $menu_id, $menu_item_db_id, $args ) {
|
168 |
+
if ( isset( $_POST[ 'menu-item-icon' ] ) && isset( $_POST[ 'menu-item-icon' ][ $menu_item_db_id ] ) ) {
|
169 |
+
$image_file = str_replace( wptouch_check_url_ssl( site_url() ), '', $_POST[ 'menu-item-icon' ][ $menu_item_db_id ] );
|
170 |
+
|
171 |
+
if ( substr( $image_file, 0, 2 ) == '//' ) {
|
172 |
+
// Fix for sites that implement protocol-relative media URLs, e.g. with Cloudflare plugin
|
173 |
+
$image_file = substr( $image_file, 2 );
|
174 |
+
$image_file = substr( $image_file, strpos( $image_file, '/' ) );
|
175 |
+
}
|
176 |
+
update_post_meta( $menu_item_db_id, '_wptouch_pro_menu_item_icon', $image_file );
|
177 |
+
}
|
178 |
+
}
|
179 |
+
|
180 |
+
$temp_settings = wptouch_get_settings();
|
181 |
+
if ( $temp_settings->enable_menu_icons ) {
|
182 |
+
add_filter( 'wp_edit_nav_menu_walker', 'wptouch_edit_nav_menu_walker', 9999, 2 );
|
183 |
+
}
|
184 |
+
|
185 |
+
function wptouch_edit_nav_menu_walker( $walker, $menu_id ) {
|
186 |
+
return 'WPtouch_Walker_Nav_Menu_Edit';
|
187 |
+
}
|
188 |
+
|
189 |
+
class WPtouch_Walker_Nav_Menu_Edit extends Walker_Nav_Menu {
|
190 |
+
var $show_menu_icons;
|
191 |
+
|
192 |
+
function __construct( $show_menu_icons = true ) {
|
193 |
+
$this->show_menu_icons = $show_menu_icons;
|
194 |
+
}
|
195 |
+
|
196 |
+
/**
|
197 |
+
* Starts the list before the elements are added.
|
198 |
+
*
|
199 |
+
* @see Walker_Nav_Menu::start_lvl()
|
200 |
+
*
|
201 |
+
* @since 3.0.0
|
202 |
+
*
|
203 |
+
* @param string $output Passed by reference.
|
204 |
+
* @param int $depth Depth of menu item. Used for padding.
|
205 |
+
* @param array $args Not used.
|
206 |
+
*/
|
207 |
+
public function start_lvl( &$output, $depth = 0, $args = array() ) {}
|
208 |
+
|
209 |
+
/**
|
210 |
+
* Ends the list of after the elements are added.
|
211 |
+
*
|
212 |
+
* @see Walker_Nav_Menu::end_lvl()
|
213 |
+
*
|
214 |
+
* @since 3.0.0
|
215 |
+
*
|
216 |
+
* @param string $output Passed by reference.
|
217 |
+
* @param int $depth Depth of menu item. Used for padding.
|
218 |
+
* @param array $args Not used.
|
219 |
+
*/
|
220 |
+
public function end_lvl( &$output, $depth = 0, $args = array() ) {}
|
221 |
+
|
222 |
+
/**
|
223 |
+
* Start the element output.
|
224 |
+
*
|
225 |
+
* @see Walker_Nav_Menu::start_el()
|
226 |
+
* @since 3.0.0
|
227 |
+
*
|
228 |
+
* @param string $output Passed by reference. Used to append additional content.
|
229 |
+
* @param object $item Menu item data object.
|
230 |
+
* @param int $depth Depth of menu item. Used for padding.
|
231 |
+
* @param array $args Not used.
|
232 |
+
* @param int $id Not used.
|
233 |
+
*/
|
234 |
+
public function start_el( &$output, $item, $depth = 0, $args = array(), $id = 0 ) {
|
235 |
+
global $_wp_nav_menu_max_depth;
|
236 |
+
$_wp_nav_menu_max_depth = $depth > $_wp_nav_menu_max_depth ? $depth : $_wp_nav_menu_max_depth;
|
237 |
+
|
238 |
+
ob_start();
|
239 |
+
$item_id = esc_attr( $item->ID );
|
240 |
+
$removed_args = array(
|
241 |
+
'action',
|
242 |
+
'customlink-tab',
|
243 |
+
'edit-menu-item',
|
244 |
+
'menu-item',
|
245 |
+
'page-tab',
|
246 |
+
'_wpnonce',
|
247 |
+
);
|
248 |
+
|
249 |
+
$original_title = '';
|
250 |
+
if ( 'taxonomy' == $item->type ) {
|
251 |
+
$original_title = get_term_field( 'name', $item->object_id, $item->object, 'raw' );
|
252 |
+
if ( is_wp_error( $original_title ) )
|
253 |
+
$original_title = false;
|
254 |
+
} elseif ( 'post_type' == $item->type ) {
|
255 |
+
$original_object = get_post( $item->object_id );
|
256 |
+
$original_title = get_the_title( $original_object->ID );
|
257 |
+
}
|
258 |
+
|
259 |
+
$classes = array(
|
260 |
+
'menu-item menu-item-depth-' . $depth,
|
261 |
+
'menu-item-' . esc_attr( $item->object ),
|
262 |
+
'menu-item-edit-' . ( ( isset( $_GET['edit-menu-item'] ) && $item_id == $_GET['edit-menu-item'] ) ? 'active' : 'inactive'),
|
263 |
+
);
|
264 |
+
|
265 |
+
$title = $item->title;
|
266 |
+
|
267 |
+
if ( ! empty( $item->_invalid ) ) {
|
268 |
+
$classes[] = 'menu-item-invalid';
|
269 |
+
/* translators: %s: title of menu item which is invalid */
|
270 |
+
$title = sprintf( __( '%s (Invalid)' ), $item->title );
|
271 |
+
} elseif ( isset( $item->post_status ) && 'draft' == $item->post_status ) {
|
272 |
+
$classes[] = 'pending';
|
273 |
+
/* translators: %s: title of menu item in draft status */
|
274 |
+
$title = sprintf( __('%s (Pending)'), $item->title );
|
275 |
+
}
|
276 |
+
|
277 |
+
$title = ( ! isset( $item->label ) || '' == $item->label ) ? $title : $item->label;
|
278 |
+
|
279 |
+
$submenu_text = '';
|
280 |
+
if ( 0 == $depth )
|
281 |
+
$submenu_text = 'style="display: none;"';
|
282 |
+
|
283 |
+
?>
|
284 |
+
<li id="menu-item-<?php echo $item_id; ?>" class="<?php echo implode(' ', $classes ); ?>">
|
285 |
+
<dl class="menu-item-bar">
|
286 |
+
<dt class="menu-item-handle">
|
287 |
+
<span class="item-title"><span class="menu-item-title"><?php echo esc_html( $title ); ?></span> <span class="is-submenu" <?php echo $submenu_text; ?>><?php _e( 'sub item' ); ?></span></span>
|
288 |
+
<span class="item-controls">
|
289 |
+
<span class="item-type"><?php echo esc_html( $item->type_label ); ?></span>
|
290 |
+
<span class="item-order hide-if-js">
|
291 |
+
<a href="<?php
|
292 |
+
echo wp_nonce_url(
|
293 |
+
add_query_arg(
|
294 |
+
array(
|
295 |
+
'action' => 'move-up-menu-item',
|
296 |
+
'menu-item' => $item_id,
|
297 |
+
),
|
298 |
+
remove_query_arg($removed_args, admin_url( 'nav-menus.php' ) )
|
299 |
+
),
|
300 |
+
'move-menu_item'
|
301 |
+
);
|
302 |
+
?>" class="item-move-up"><abbr title="<?php esc_attr_e('Move up'); ?>">↑</abbr></a>
|
303 |
+
|
|
304 |
+
<a href="<?php
|
305 |
+
echo wp_nonce_url(
|
306 |
+
add_query_arg(
|
307 |
+
array(
|
308 |
+
'action' => 'move-down-menu-item',
|
309 |
+
'menu-item' => $item_id,
|
310 |
+
),
|
311 |
+
remove_query_arg($removed_args, admin_url( 'nav-menus.php' ) )
|
312 |
+
),
|
313 |
+
'move-menu_item'
|
314 |
+
);
|
315 |
+
?>" class="item-move-down"><abbr title="<?php esc_attr_e('Move down'); ?>">↓</abbr></a>
|
316 |
+
</span>
|
317 |
+
<a class="item-edit" id="edit-<?php echo $item_id; ?>" title="<?php esc_attr_e('Edit Menu Item'); ?>" href="<?php
|
318 |
+
echo ( isset( $_GET['edit-menu-item'] ) && $item_id == $_GET['edit-menu-item'] ) ? admin_url( 'nav-menus.php' ) : add_query_arg( 'edit-menu-item', $item_id, remove_query_arg( $removed_args, admin_url( 'nav-menus.php#menu-item-settings-' . $item_id ) ) );
|
319 |
+
?>"><?php _e( 'Edit Menu Item' ); ?></a>
|
320 |
+
</span>
|
321 |
+
</dt>
|
322 |
+
</dl>
|
323 |
+
|
324 |
+
<div class="menu-item-settings" id="menu-item-settings-<?php echo $item_id; ?>">
|
325 |
+
<?php if( 'custom' == $item->type ) : ?>
|
326 |
+
<p class="field-url description description-wide">
|
327 |
+
<label for="edit-menu-item-url-<?php echo $item_id; ?>">
|
328 |
+
<?php _e( 'URL' ); ?><br />
|
329 |
+
<input type="text" id="edit-menu-item-url-<?php echo $item_id; ?>" class="widefat code edit-menu-item-url" name="menu-item-url[<?php echo $item_id; ?>]" value="<?php echo esc_attr( $item->url ); ?>" />
|
330 |
+
</label>
|
331 |
+
</p>
|
332 |
+
<?php endif; ?>
|
333 |
+
<p class="description description-thin">
|
334 |
+
<label for="edit-menu-item-title-<?php echo $item_id; ?>">
|
335 |
+
<?php _e( 'Navigation Label' ); ?><br />
|
336 |
+
<input type="text" id="edit-menu-item-title-<?php echo $item_id; ?>" class="widefat edit-menu-item-title" name="menu-item-title[<?php echo $item_id; ?>]" value="<?php echo esc_attr( $item->title ); ?>" />
|
337 |
+
</label>
|
338 |
+
</p>
|
339 |
+
<p class="description description-thin">
|
340 |
+
<label for="edit-menu-item-attr-title-<?php echo $item_id; ?>">
|
341 |
+
<?php _e( 'Title Attribute' ); ?><br />
|
342 |
+
<input type="text" id="edit-menu-item-attr-title-<?php echo $item_id; ?>" class="widefat edit-menu-item-attr-title" name="menu-item-attr-title[<?php echo $item_id; ?>]" value="<?php echo esc_attr( $item->post_excerpt ); ?>" />
|
343 |
+
</label>
|
344 |
+
</p>
|
345 |
+
<p class="field-link-target description">
|
346 |
+
<label for="edit-menu-item-target-<?php echo $item_id; ?>">
|
347 |
+
<input type="checkbox" id="edit-menu-item-target-<?php echo $item_id; ?>" value="_blank" name="menu-item-target[<?php echo $item_id; ?>]"<?php checked( $item->target, '_blank' ); ?> />
|
348 |
+
<?php _e( 'Open link in a new window/tab' ); ?>
|
349 |
+
</label>
|
350 |
+
</p>
|
351 |
+
<p class="field-css-classes description description-thin">
|
352 |
+
<label for="edit-menu-item-classes-<?php echo $item_id; ?>">
|
353 |
+
<?php _e( 'CSS Classes (optional)' ); ?><br />
|
354 |
+
<input type="text" id="edit-menu-item-classes-<?php echo $item_id; ?>" class="widefat code edit-menu-item-classes" name="menu-item-classes[<?php echo $item_id; ?>]" value="<?php echo esc_attr( implode(' ', $item->classes ) ); ?>" />
|
355 |
+
</label>
|
356 |
+
</p>
|
357 |
+
<p class="field-xfn description description-thin">
|
358 |
+
<label for="edit-menu-item-xfn-<?php echo $item_id; ?>">
|
359 |
+
<?php _e( 'Link Relationship (XFN)' ); ?><br />
|
360 |
+
<input type="text" id="edit-menu-item-xfn-<?php echo $item_id; ?>" class="widefat code edit-menu-item-xfn" name="menu-item-xfn[<?php echo $item_id; ?>]" value="<?php echo esc_attr( $item->xfn ); ?>" />
|
361 |
+
</label>
|
362 |
+
</p>
|
363 |
+
<p class="field-description description description-wide">
|
364 |
+
<label for="edit-menu-item-description-<?php echo $item_id; ?>">
|
365 |
+
<?php _e( 'Description' ); ?><br />
|
366 |
+
<textarea id="edit-menu-item-description-<?php echo $item_id; ?>" class="widefat edit-menu-item-description" rows="3" cols="20" name="menu-item-description[<?php echo $item_id; ?>]"><?php echo esc_html( $item->description ); // textarea_escaped ?></textarea>
|
367 |
+
<span class="description"><?php _e('The description will be displayed in the menu if the current theme supports it.'); ?></span>
|
368 |
+
</label>
|
369 |
+
</p>
|
370 |
+
|
371 |
+
<?php
|
372 |
+
$settings = wptouch_get_settings();
|
373 |
+
if ( $this->show_menu_icons && $settings->enable_menu_icons ) {
|
374 |
+
?>
|
375 |
+
<p class="field-icon description wptouch-menu-icon" data-object-id="<?php echo $item_id; ?>">
|
376 |
+
<label for="edit-menu-item-icon-<?php echo $item_id; ?>">
|
377 |
+
<?php _e( 'Mobile Menu Icon' ); ?><br />
|
378 |
+
</label>
|
379 |
+
<img class="icon-preview" src="<?php echo wptouch_get_menu_icon( $item->ID ); ?>" alt="menu-icon" style="height: 36px; width: 36px;" />
|
380 |
+
<input type="hidden" id="edit-menu-item-icon-<?php echo $item_id; ?>" class="widefat edit-menu-item-icon" name="menu-item-icon[<?php echo $item_id; ?>]" value="<?php echo esc_attr( wptouch_get_menu_icon( $item->ID ) ); ?>" />
|
381 |
+
<a tabindex="0" role="button" class="button change_icon" data-toggle="wptouch-popover" title="<?php _e( 'WPtouch Icons', 'wptouch-pro' ); ?>"><?php _e( 'Change Icon', 'wptouch-pro' ); ?></a>
|
382 |
+
<a role="button" style="display:none" class="remove_icon"<?php if ( wptouch_get_menu_icon( $item->ID ) == wptouch_get_site_default_icon() ) { echo ' style="display: none;"'; } ?>><?php _e( 'Use Default', 'wptouch-pro' ); ?></a>
|
383 |
+
</p>
|
384 |
+
<?php
|
385 |
+
}
|
386 |
+
?>
|
387 |
+
|
388 |
+
<p class="field-move hide-if-no-js description description-wide">
|
389 |
+
<label>
|
390 |
+
<span><?php _e( 'Move' ); ?></span>
|
391 |
+
<a href="#" class="menus-move menus-move-up" data-dir="up"><?php _e( 'Up one' ); ?></a>
|
392 |
+
<a href="#" class="menus-move menus-move-down" data-dir="down"><?php _e( 'Down one' ); ?></a>
|
393 |
+
<a href="#" class="menus-move menus-move-left" data-dir="left"></a>
|
394 |
+
<a href="#" class="menus-move menus-move-right" data-dir="right"></a>
|
395 |
+
<a href="#" class="menus-move menus-move-top" data-dir="top"><?php _e( 'To the top' ); ?></a>
|
396 |
+
</label>
|
397 |
+
</p>
|
398 |
+
|
399 |
+
<div class="menu-item-actions description-wide submitbox">
|
400 |
+
<?php if( 'custom' != $item->type && $original_title !== false ) : ?>
|
401 |
+
<p class="link-to-original">
|
402 |
+
<?php printf( __('Original: %s'), '<a href="' . esc_attr( $item->url ) . '">' . esc_html( $original_title ) . '</a>' ); ?>
|
403 |
+
</p>
|
404 |
+
<?php endif; ?>
|
405 |
+
<a class="item-delete submitdelete deletion" id="delete-<?php echo $item_id; ?>" href="<?php
|
406 |
+
echo wp_nonce_url(
|
407 |
+
add_query_arg(
|
408 |
+
array(
|
409 |
+
'action' => 'delete-menu-item',
|
410 |
+
'menu-item' => $item_id,
|
411 |
+
),
|
412 |
+
admin_url( 'nav-menus.php' )
|
413 |
+
),
|
414 |
+
'delete-menu_item_' . $item_id
|
415 |
+
); ?>"><?php _e( 'Remove' ); ?></a> <span class="meta-sep hide-if-no-js"> | </span> <a class="item-cancel submitcancel hide-if-no-js" id="cancel-<?php echo $item_id; ?>" href="<?php echo esc_url( add_query_arg( array( 'edit-menu-item' => $item_id, 'cancel' => time() ), admin_url( 'nav-menus.php' ) ) );
|
416 |
+
?>#menu-item-settings-<?php echo $item_id; ?>"><?php _e('Cancel'); ?></a>
|
417 |
+
</div>
|
418 |
+
|
419 |
+
<input class="menu-item-data-db-id" type="hidden" name="menu-item-db-id[<?php echo $item_id; ?>]" value="<?php echo $item_id; ?>" />
|
420 |
+
<input class="menu-item-data-object-id" type="hidden" name="menu-item-object-id[<?php echo $item_id; ?>]" value="<?php echo esc_attr( $item->object_id ); ?>" />
|
421 |
+
<input class="menu-item-data-object" type="hidden" name="menu-item-object[<?php echo $item_id; ?>]" value="<?php echo esc_attr( $item->object ); ?>" />
|
422 |
+
<input class="menu-item-data-parent-id" type="hidden" name="menu-item-parent-id[<?php echo $item_id; ?>]" value="<?php echo esc_attr( $item->menu_item_parent ); ?>" />
|
423 |
+
<input class="menu-item-data-position" type="hidden" name="menu-item-position[<?php echo $item_id; ?>]" value="<?php echo esc_attr( $item->menu_order ); ?>" />
|
424 |
+
<input class="menu-item-data-type" type="hidden" name="menu-item-type[<?php echo $item_id; ?>]" value="<?php echo esc_attr( $item->type ); ?>" />
|
425 |
+
</div><!-- .menu-item-settings-->
|
426 |
+
<ul class="menu-item-transport"></ul>
|
427 |
+
<?php
|
428 |
+
$output .= ob_get_clean();
|
429 |
+
}
|
430 |
+
|
431 |
+
} // Walker_Nav_Menu_Edit
|
432 |
|
433 |
function wptouch_menu_walker_get_classes( $item, $has_icon = true ) {
|
434 |
$clear_classes = array( 'menu-item' );
|
478 |
$target = ' target="_blank"';
|
479 |
}
|
480 |
|
481 |
+
$title = '';
|
482 |
+
if ( $this->last_item->title ) {
|
483 |
+
$title = $this->last_item->title;
|
484 |
+
} else {
|
485 |
+
$title = $this->last_item->post_title;
|
486 |
+
}
|
487 |
+
|
488 |
+
$output .= '<a href="' . $link . '" class="title"' . $target . '>' . $title . '</a>';
|
489 |
$this->last_item = false;
|
490 |
}
|
491 |
|
507 |
if ( !$this->skipping_item ) {
|
508 |
$output .= '<li class="' . wptouch_menu_walker_get_classes( $item, $this->show_menu_icons ) . '">';
|
509 |
|
510 |
+
$settings = wptouch_get_settings();
|
511 |
+
if ( $this->show_menu_icons && $settings->enable_menu_icons ) {
|
512 |
$output .= '<img src="' . wptouch_get_menu_icon( $item->ID ) . '" alt="menu-icon" />';
|
513 |
}
|
514 |
|
561 |
if ( !$this->skipping_item ) {
|
562 |
$output .= '<li class="' . wptouch_menu_walker_get_classes( $item, $this->show_menu_icons ) . '">';
|
563 |
|
564 |
+
$settings = wptouch_get_settings();
|
565 |
+
if ( $this->show_menu_icons && $settings->enable_menu_icons ) {
|
566 |
$output .= '<img src="' . wptouch_get_menu_icon( $item->ID ) . '" alt="menu-icon" />';
|
567 |
}
|
568 |
|
581 |
}
|
582 |
}
|
583 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
584 |
/**
|
585 |
* Create HTML list of categories.
|
586 |
*
|
core/menu.php
CHANGED
@@ -9,9 +9,17 @@ function wptouch_has_menu( $menu_slug = false ) {
|
|
9 |
global $wptouch_pro;
|
10 |
$settings = $wptouch_pro->get_settings();
|
11 |
|
12 |
-
|
|
|
|
|
|
|
|
|
13 |
|
14 |
-
|
|
|
|
|
|
|
|
|
15 |
}
|
16 |
|
17 |
function wptouch_get_menu_name_from_slug( $menu_slug ) {
|
@@ -31,29 +39,30 @@ function wptouch_get_menu_name_from_slug( $menu_slug ) {
|
|
31 |
}
|
32 |
}
|
33 |
|
|
|
|
|
34 |
return false;
|
35 |
}
|
36 |
|
37 |
-
function _wptouch_show_menu( $menu_slug, $nav_menu_walker, $page_menu_walker ) {
|
38 |
$nav_menu_walker = apply_filters( 'wptouch_nav_menu_walker', $nav_menu_walker, $menu_slug );
|
39 |
$page_menu_walker = apply_filters( 'wptouch_page_menu_walker', $page_menu_walker, $menu_slug );
|
40 |
|
41 |
-
|
|
|
|
|
42 |
|
43 |
-
if (
|
44 |
wp_list_pages (
|
45 |
array(
|
46 |
'title_li' => '',
|
47 |
'walker' => $page_menu_walker
|
48 |
)
|
49 |
);
|
50 |
-
} else
|
51 |
-
if ( $nav_menu_walker == false ) {
|
52 |
-
$nav_menu_walker = new WPtouchProMainNavMenuWalker;
|
53 |
-
}
|
54 |
-
|
55 |
// WordPress menu
|
56 |
$menu_params = array(
|
|
|
57 |
'before' => '',
|
58 |
'after' => '',
|
59 |
'container' => '',
|
@@ -63,7 +72,6 @@ function _wptouch_show_menu( $menu_slug, $nav_menu_walker, $page_menu_walker ) {
|
|
63 |
'link_after' => '',
|
64 |
'menu_class' => '',
|
65 |
'items_wrap' => '%3$s',
|
66 |
-
'menu' => $menu_to_show,
|
67 |
'walker' => $nav_menu_walker
|
68 |
);
|
69 |
|
@@ -73,18 +81,18 @@ function _wptouch_show_menu( $menu_slug, $nav_menu_walker, $page_menu_walker ) {
|
|
73 |
}
|
74 |
}
|
75 |
|
76 |
-
function wptouch_show_menu(
|
77 |
-
$menu_slug = false,
|
78 |
-
$nav_menu_walker = false,
|
79 |
-
$page_menu_walker = false
|
80 |
-
) {
|
81 |
$menu_html = false;
|
82 |
$wptouch_menu_items = array();
|
83 |
$settings = wptouch_get_settings();
|
84 |
|
85 |
$parent_link_class = 'parent-links';
|
86 |
|
87 |
-
if (
|
|
|
|
|
|
|
|
|
88 |
$parent_link_class = 'no-parent-links';
|
89 |
}
|
90 |
|
@@ -101,9 +109,16 @@ function wptouch_show_menu(
|
|
101 |
|
102 |
$menu_slugs_to_show = apply_filters( 'wptouch_menu_slugs_to_show', array( $menu_slug ) );
|
103 |
|
|
|
|
|
104 |
// Loop through all menus
|
105 |
foreach( $menu_slugs_to_show as $key => $menu_slug ) {
|
106 |
-
|
|
|
|
|
|
|
|
|
|
|
107 |
}
|
108 |
|
109 |
echo apply_filters( 'wptouch_menu_end_html', '</ul>' );
|
@@ -117,6 +132,7 @@ function wptouch_get_menu_icon( $page_id ) {
|
|
117 |
}
|
118 |
|
119 |
$menu_icon = get_post_meta( $page_id, '_wptouch_pro_menu_item_icon', true );
|
|
|
120 |
if ( $menu_icon ) {
|
121 |
$icon = wptouch_check_url_ssl( site_url() . $menu_icon );
|
122 |
|
@@ -124,10 +140,15 @@ function wptouch_get_menu_icon( $page_id ) {
|
|
124 |
$wptouch_free_potential_path = DIRECTORY_SEPARATOR . 'wptouch' . DIRECTORY_SEPARATOR;
|
125 |
|
126 |
if ( strpos( $icon, $wptouch_free_potential_path ) !== false ) {
|
127 |
-
|
|
|
|
|
|
|
128 |
}
|
129 |
}
|
|
|
130 |
return $icon;
|
|
|
131 |
} else {
|
132 |
return wptouch_get_site_default_icon();
|
133 |
}
|
@@ -144,7 +165,11 @@ function wptouch_get_site_default_icon() {
|
|
144 |
global $wptouch_pro;
|
145 |
|
146 |
$settings = $wptouch_pro->get_settings();
|
147 |
-
|
|
|
|
|
|
|
|
|
148 |
}
|
149 |
|
150 |
function wptouch_the_site_default_icon() {
|
@@ -176,10 +201,12 @@ function wptouch_register_theme_menu( $menu_info ) {
|
|
176 |
|
177 |
global $wptouch_pro;
|
178 |
$wptouch_pro->theme_menus[] = $menu;
|
|
|
|
|
179 |
}
|
180 |
|
181 |
function wptouch_get_registered_theme_count() {
|
182 |
global $wptouch_pro;
|
183 |
|
184 |
return count( $wptouch_pro->theme_menus );
|
185 |
-
}
|
9 |
global $wptouch_pro;
|
10 |
$settings = $wptouch_pro->get_settings();
|
11 |
|
12 |
+
foreach ( $wptouch_pro->theme_menus as $menu_info ) {
|
13 |
+
if ( $menu_info->setting_name == $menu_slug ) {
|
14 |
+
$can_be_disabled = $menu_info->can_be_disabled;
|
15 |
+
}
|
16 |
+
}
|
17 |
|
18 |
+
if ( has_nav_menu( 'wptouch_' . $menu_slug ) || !$can_be_disabled ) {
|
19 |
+
return true;
|
20 |
+
} else {
|
21 |
+
return false;
|
22 |
+
}
|
23 |
}
|
24 |
|
25 |
function wptouch_get_menu_name_from_slug( $menu_slug ) {
|
39 |
}
|
40 |
}
|
41 |
|
42 |
+
|
43 |
+
|
44 |
return false;
|
45 |
}
|
46 |
|
47 |
+
function _wptouch_show_menu( $menu_slug, $nav_menu_walker, $page_menu_walker, $can_be_disabled = false ) {
|
48 |
$nav_menu_walker = apply_filters( 'wptouch_nav_menu_walker', $nav_menu_walker, $menu_slug );
|
49 |
$page_menu_walker = apply_filters( 'wptouch_page_menu_walker', $page_menu_walker, $menu_slug );
|
50 |
|
51 |
+
if ( $nav_menu_walker == false ) {
|
52 |
+
$nav_menu_walker = new WPtouchProMainNavMenuWalker;
|
53 |
+
}
|
54 |
|
55 |
+
if ( !has_nav_menu( 'wptouch_' . $menu_slug ) && !$can_be_disabled ) {
|
56 |
wp_list_pages (
|
57 |
array(
|
58 |
'title_li' => '',
|
59 |
'walker' => $page_menu_walker
|
60 |
)
|
61 |
);
|
62 |
+
} else {
|
|
|
|
|
|
|
|
|
63 |
// WordPress menu
|
64 |
$menu_params = array(
|
65 |
+
'theme_location' => 'wptouch_' . $menu_slug,
|
66 |
'before' => '',
|
67 |
'after' => '',
|
68 |
'container' => '',
|
72 |
'link_after' => '',
|
73 |
'menu_class' => '',
|
74 |
'items_wrap' => '%3$s',
|
|
|
75 |
'walker' => $nav_menu_walker
|
76 |
);
|
77 |
|
81 |
}
|
82 |
}
|
83 |
|
84 |
+
function wptouch_show_menu( $menu_slug = false, $nav_menu_walker = false, $page_menu_walker = false ) {
|
|
|
|
|
|
|
|
|
85 |
$menu_html = false;
|
86 |
$wptouch_menu_items = array();
|
87 |
$settings = wptouch_get_settings();
|
88 |
|
89 |
$parent_link_class = 'parent-links';
|
90 |
|
91 |
+
if ( defined( 'WPTOUCH_MENU_LINK_PARENT_ITEMS' ) && WPTOUCH_MENU_LINK_PARENT_ITEMS == false ) {
|
92 |
+
$parent_link_class = 'no-parent-links';
|
93 |
+
}
|
94 |
+
|
95 |
+
if ( !$settings->enable_parent_items ) {
|
96 |
$parent_link_class = 'no-parent-links';
|
97 |
}
|
98 |
|
109 |
|
110 |
$menu_slugs_to_show = apply_filters( 'wptouch_menu_slugs_to_show', array( $menu_slug ) );
|
111 |
|
112 |
+
global $wptouch_pro;
|
113 |
+
|
114 |
// Loop through all menus
|
115 |
foreach( $menu_slugs_to_show as $key => $menu_slug ) {
|
116 |
+
foreach ( $wptouch_pro->theme_menus as $menu_info ) {
|
117 |
+
if ( $menu_info->setting_name == $menu_slug ) {
|
118 |
+
$can_be_disabled = $menu_info->can_be_disabled;
|
119 |
+
}
|
120 |
+
}
|
121 |
+
_wptouch_show_menu( $menu_slug, $nav_menu_walker, $page_menu_walker, $can_be_disabled );
|
122 |
}
|
123 |
|
124 |
echo apply_filters( 'wptouch_menu_end_html', '</ul>' );
|
132 |
}
|
133 |
|
134 |
$menu_icon = get_post_meta( $page_id, '_wptouch_pro_menu_item_icon', true );
|
135 |
+
|
136 |
if ( $menu_icon ) {
|
137 |
$icon = wptouch_check_url_ssl( site_url() . $menu_icon );
|
138 |
|
140 |
$wptouch_free_potential_path = DIRECTORY_SEPARATOR . 'wptouch' . DIRECTORY_SEPARATOR;
|
141 |
|
142 |
if ( strpos( $icon, $wptouch_free_potential_path ) !== false ) {
|
143 |
+
$icon = str_replace( $wptouch_free_potential_path, DIRECTORY_SEPARATOR . 'wptouch-pro' . DIRECTORY_SEPARATOR, $icon );
|
144 |
+
}
|
145 |
+
if ( strpos( $icon, 'wptouch-pro-3' ) !== false ) {
|
146 |
+
$icon = str_replace( 'wptouch-pro-3', DIRECTORY_SEPARATOR . 'wptouch-pro' . DIRECTORY_SEPARATOR, $icon );
|
147 |
}
|
148 |
}
|
149 |
+
|
150 |
return $icon;
|
151 |
+
|
152 |
} else {
|
153 |
return wptouch_get_site_default_icon();
|
154 |
}
|
165 |
global $wptouch_pro;
|
166 |
|
167 |
$settings = $wptouch_pro->get_settings();
|
168 |
+
$icon = $settings->default_menu_icon;
|
169 |
+
if ( strpos( $icon, 'wptouch-pro-3' ) !== false ) {
|
170 |
+
$icon = str_replace( 'wptouch-pro-3', 'wptouch-pro', $icon );
|
171 |
+
}
|
172 |
+
return site_url() . $icon;
|
173 |
}
|
174 |
|
175 |
function wptouch_the_site_default_icon() {
|
201 |
|
202 |
global $wptouch_pro;
|
203 |
$wptouch_pro->theme_menus[] = $menu;
|
204 |
+
|
205 |
+
register_nav_menu( 'wptouch_' . $menu_info[ 'name' ], wptouchize_it( 'WPtouch Pro: ' ) . $menu_info[ 'friendly_name' ] );
|
206 |
}
|
207 |
|
208 |
function wptouch_get_registered_theme_count() {
|
209 |
global $wptouch_pro;
|
210 |
|
211 |
return count( $wptouch_pro->theme_menus );
|
212 |
+
}
|
core/mobile-user-agents.php
CHANGED
@@ -1,29 +1,43 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
/* Smartphones */
|
4 |
global $wptouch_smartphone_list;
|
|
|
5 |
|
6 |
-
$
|
7 |
-
array( 'iPhone' ), // iPhone
|
8 |
-
array( 'iPod', 'Mobile' ), // iPod touch
|
9 |
-
array( 'Android', 'Mobile' ), // Android devices
|
10 |
-
array( 'Opera', 'Mini/7' ), // Opera Mini 7
|
11 |
-
array( 'BB', 'Mobile Safari' ), // BB10 devices
|
12 |
-
array( 'BlackBerry', 'Mobile Safari' ), // BB 6, 7 devices
|
13 |
-
array( 'Firefox', 'Mobile' ), // Firefox OS devices
|
14 |
-
'IEMobile/7.0', // Windows Phone OS 7
|
15 |
-
'IEMobile/8.0', // Windows Phone OS 8
|
16 |
-
'IEMobile/9.0', // Windows Phone OS 9
|
17 |
-
array( 'IEMobile/10', 'Touch' ), // Windows IE 10 touch devices
|
18 |
-
array( 'IEMobile/11', 'Touch' ) // Windows IE 11 touch devices
|
19 |
-
);
|
20 |
|
21 |
-
|
22 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
23 |
|
24 |
-
$
|
25 |
-
//
|
26 |
-
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
27 |
|
28 |
/* Matching any of these user-agents will cause WPtouch Pro to be shown for the 'default' theme */
|
29 |
global $wptouch_device_classes;
|
@@ -31,5 +45,4 @@ global $wptouch_device_classes;
|
|
31 |
$wptouch_device_classes[ 'default' ] = $wptouch_smartphone_list;
|
32 |
|
33 |
global $wptouch_exclusion_list;
|
34 |
-
|
35 |
-
$wptouch_exclusion_list = $wptouch_tablet_list;
|
1 |
<?php
|
|
|
2 |
/* Smartphones */
|
3 |
global $wptouch_smartphone_list;
|
4 |
+
$wptouch_smartphone_list = array();
|
5 |
|
6 |
+
$settings = wptouch_get_settings();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
|
8 |
+
if ( $settings->enable_ios_phone ) {
|
9 |
+
$wptouch_smartphone_list[] = array( 'iPhone' ); // iPhone
|
10 |
+
$wptouch_smartphone_list[] = array( 'iPod', 'Mobile' ); // iPod touch
|
11 |
+
}
|
12 |
+
|
13 |
+
if ( $settings->enable_android_phone ) {
|
14 |
+
$wptouch_smartphone_list[] = array( 'Android', 'Mobile' ); // Android devices
|
15 |
+
}
|
16 |
+
|
17 |
+
if ( $settings->enable_blackberry_phone ) {
|
18 |
+
$wptouch_smartphone_list[] = array( 'BB', 'Mobile Safari' ); // BB10 devices
|
19 |
+
$wptouch_smartphone_list[] = array( 'BlackBerry', 'Mobile Safari' ); // BB 6, 7 devices
|
20 |
+
}
|
21 |
+
|
22 |
+
if ( $settings->enable_firefox_phone ) {
|
23 |
+
$wptouch_smartphone_list[] = array( 'Firefox', 'Mobile' ); // Firefox OS devices
|
24 |
+
}
|
25 |
|
26 |
+
if ( $settings->enable_windows_phone ) {
|
27 |
+
$wptouch_smartphone_list[] = array( 'IEMobile/11', 'Touch' ); // Windows IE 11 touch devices
|
28 |
+
$wptouch_smartphone_list[] = array( 'IEMobile/10', 'Touch' ); // Windows IE 10 touch devices
|
29 |
+
$wptouch_smartphone_list[] = 'IEMobile/9.0'; // Windows Phone OS 9
|
30 |
+
$wptouch_smartphone_list[] = 'IEMobile/8.0'; // Windows Phone OS 8
|
31 |
+
$wptouch_smartphone_list[] = 'IEMobile/7.0'; // Windows Phone OS 7
|
32 |
+
}
|
33 |
+
|
34 |
+
if ( $settings->enable_opera_phone ) {
|
35 |
+
$wptouch_smartphone_list[] = array( 'OPiOS', 'Mobile' ); // Opera Mini iOS
|
36 |
+
$wptouch_smartphone_list[] = array( 'Coast', 'Mobile' ); // Opera Coast iOS
|
37 |
+
}
|
38 |
+
|
39 |
+
/* Tablets */
|
40 |
+
// Handled by the tablets module.
|
41 |
|
42 |
/* Matching any of these user-agents will cause WPtouch Pro to be shown for the 'default' theme */
|
43 |
global $wptouch_device_classes;
|
45 |
$wptouch_device_classes[ 'default' ] = $wptouch_smartphone_list;
|
46 |
|
47 |
global $wptouch_exclusion_list;
|
48 |
+
$wptouch_exclusion_list = array();
|
|
core/multisite.php
ADDED
@@ -0,0 +1,72 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
if ( ! function_exists( 'is_plugin_active_for_network' ) ) {
|
4 |
+
require_once( ABSPATH . '/wp-admin/includes/plugin.php' );
|
5 |
+
}
|
6 |
+
|
7 |
+
function wptouch_is_controlled_network() {
|
8 |
+
$bncid_info = wptouch_get_settings( 'bncid' );
|
9 |
+
|
10 |
+
return ( is_plugin_active_for_network( WPTOUCH_PLUGIN_SLUG ) && $bncid_info->multisite_control );
|
11 |
+
}
|
12 |
+
|
13 |
+
function wptouch_is_multisite_enabled() {
|
14 |
+
return is_multisite();
|
15 |
+
}
|
16 |
+
|
17 |
+
function wptouch_is_multisite_primary() {
|
18 |
+
global $blog_id;
|
19 |
+
return ( $blog_id == 1 );
|
20 |
+
}
|
21 |
+
|
22 |
+
function wptouch_is_multisite_secondary() {
|
23 |
+
if ( wptouch_is_multisite_enabled() ) {
|
24 |
+
global $blog_id;
|
25 |
+
|
26 |
+
return ( $blog_id > 1 );
|
27 |
+
} else {
|
28 |
+
return false;
|
29 |
+
}
|
30 |
+
}
|
31 |
+
|
32 |
+
function wptouch_get_multsite_aware_install_path( $suffix ) {
|
33 |
+
if ( wptouch_is_controlled_network() ) {
|
34 |
+
return WPTOUCH_BASE_CONTENT_MS_DIR . '/' . $suffix;
|
35 |
+
} else {
|
36 |
+
return WPTOUCH_BASE_CONTENT_DIR . '/' . $suffix;
|
37 |
+
}
|
38 |
+
}
|
39 |
+
|
40 |
+
function wptouch_get_multsite_aware_content_url( $suffix ) {
|
41 |
+
if ( wptouch_is_controlled_network() ) {
|
42 |
+
return WPTOUCH_BASE_CONTENT_MS_URL . '/' . $suffix;
|
43 |
+
} else {
|
44 |
+
return WPTOUCH_BASE_CONTENT_URL . '/' . $suffix;
|
45 |
+
}
|
46 |
+
}
|
47 |
+
|
48 |
+
function wptouch_is_network_available( $type, $check_product = false ) {
|
49 |
+
if ( $type == 'theme' && !$check_product ) {
|
50 |
+
global $wptouch_cur_theme;
|
51 |
+
$check_product = $wptouch_cur_theme;
|
52 |
+
} elseif ( !$check_product ) {
|
53 |
+
global $wptouch_cur_addon;
|
54 |
+
$check_product = $wptouch_cur_addon;
|
55 |
+
}
|
56 |
+
|
57 |
+
if ( $check_product ) {
|
58 |
+
if ( !is_multisite() ) {
|
59 |
+
return true;
|
60 |
+
} else {
|
61 |
+
if ( $check_product->location != 'cloud' ) {
|
62 |
+
return true;
|
63 |
+
} elseif ( !wptouch_is_controlled_network() || ( wptouch_is_controlled_network() && is_network_admin() ) ) {
|
64 |
+
return true;
|
65 |
+
}
|
66 |
+
|
67 |
+
return false;
|
68 |
+
}
|
69 |
+
}
|
70 |
+
|
71 |
+
return false;
|
72 |
+
}
|
core/notifications.php
DELETED
@@ -1,221 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
global $wptouch_plugin_notification_iterator;
|
4 |
-
global $wptouch_plugin_notification;
|
5 |
-
|
6 |
-
function wptouch_get_notification_count() {
|
7 |
-
global $wptouch_pro;
|
8 |
-
$settings = wptouch_get_settings();
|
9 |
-
|
10 |
-
$warnings = apply_filters( 'wptouch_notifications', $wptouch_pro->notifications );
|
11 |
-
|
12 |
-
$new_notifications = array();
|
13 |
-
if ( is_array( $warnings ) && count( $warnings ) ) {
|
14 |
-
foreach( $warnings as $key => $value ) {
|
15 |
-
if ( !in_array( $key, $settings->dismissed_notifications ) ) {
|
16 |
-
$new_notifications[ $key ] = $value;
|
17 |
-
}
|
18 |
-
}
|
19 |
-
}
|
20 |
-
|
21 |
-
return count( $new_notifications );
|
22 |
-
}
|
23 |
-
|
24 |
-
function wptouch_the_notification_count() {
|
25 |
-
echo wptouch_get_notification_count();
|
26 |
-
}
|
27 |
-
|
28 |
-
function wptouch_get_notification_key() {
|
29 |
-
global $wptouch_plugin_notification_iterator;
|
30 |
-
|
31 |
-
return $wptouch_plugin_notification_iterator->the_key();
|
32 |
-
}
|
33 |
-
|
34 |
-
function wptouch_the_notification_key() {
|
35 |
-
echo wptouch_get_notification_key();
|
36 |
-
}
|
37 |
-
|
38 |
-
function wptouch_has_notifications() {
|
39 |
-
global $wptouch_pro;
|
40 |
-
global $wptouch_plugin_notification_iterator;
|
41 |
-
$settings = wptouch_get_settings();
|
42 |
-
|
43 |
-
if ( !$wptouch_plugin_notification_iterator ) {
|
44 |
-
$warnings = apply_filters( 'wptouch_notifications', $wptouch_pro->notifications );
|
45 |
-
|
46 |
-
$new_notifications = array();
|
47 |
-
if ( is_array( $warnings ) && count( $warnings ) ) {
|
48 |
-
foreach( $warnings as $key => $value ) {
|
49 |
-
if ( !in_array( $key, $settings->dismissed_notifications ) ) {
|
50 |
-
$new_notifications[ $key ] = $value;
|
51 |
-
}
|
52 |
-
}
|
53 |
-
}
|
54 |
-
|
55 |
-
$wptouch_plugin_notification_iterator = new WPtouchArrayIterator( $new_notifications );
|
56 |
-
}
|
57 |
-
|
58 |
-
return $wptouch_plugin_notification_iterator->have_items();
|
59 |
-
}
|
60 |
-
|
61 |
-
function wptouch_the_notification() {
|
62 |
-
global $wptouch_plugin_notification_iterator;
|
63 |
-
global $wptouch_plugin_notification;
|
64 |
-
|
65 |
-
if ( $wptouch_plugin_notification_iterator ) {
|
66 |
-
$wptouch_plugin_notification = apply_filters( 'wptouch_notification', $wptouch_plugin_notification_iterator->the_item() );
|
67 |
-
}
|
68 |
-
}
|
69 |
-
|
70 |
-
function wptouch_notification_the_name() {
|
71 |
-
echo wptouch_notification_get_name();
|
72 |
-
}
|
73 |
-
|
74 |
-
function wptouch_notification_get_name() {
|
75 |
-
global $wptouch_plugin_notification;
|
76 |
-
return apply_filters( 'wptouch_notification_name', $wptouch_plugin_notification[0] );
|
77 |
-
}
|
78 |
-
|
79 |
-
function wptouch_notification_the_desc() {
|
80 |
-
echo wptouch_notification_get_desc();
|
81 |
-
}
|
82 |
-
|
83 |
-
function wptouch_notification_get_desc() {
|
84 |
-
global $wptouch_plugin_notification;
|
85 |
-
return apply_filters( 'wptouch_notification_desc', $wptouch_plugin_notification[1] );
|
86 |
-
}
|
87 |
-
|
88 |
-
function wptouch_notification_get_type() {
|
89 |
-
global $wptouch_plugin_notification;
|
90 |
-
return apply_filters( 'wptouch_notification_type', $wptouch_plugin_notification[2] );
|
91 |
-
}
|
92 |
-
|
93 |
-
function wptouch_notification_the_type() {
|
94 |
-
echo wptouch_notification_get_type();
|
95 |
-
}
|
96 |
-
|
97 |
-
function wptouch_notification_has_link() {
|
98 |
-
global $wptouch_plugin_notification;
|
99 |
-
|
100 |
-
return ( $wptouch_plugin_notification[3] );
|
101 |
-
}
|
102 |
-
|
103 |
-
function wptouch_notification_get_link() {
|
104 |
-
global $wptouch_plugin_notification;
|
105 |
-
|
106 |
-
return $wptouch_plugin_notification[3];
|
107 |
-
}
|
108 |
-
|
109 |
-
function wptouch_notification_the_link() {
|
110 |
-
echo wptouch_notification_get_link();
|
111 |
-
}
|
112 |
-
|
113 |
-
function wptouch_notification_setup() {
|
114 |
-
global $wptouch_pro;
|
115 |
-
$settings = wptouch_get_settings();
|
116 |
-
|
117 |
-
if ( function_exists( 'wptouch_add_pro_notifications' ) ) {
|
118 |
-
wptouch_add_pro_notifications();
|
119 |
-
}
|
120 |
-
|
121 |
-
// Preview Mode
|
122 |
-
if ( WPTOUCH_SIMULATE_ALL || $settings->display_mode === 'preview' ) {
|
123 |
-
$wptouch_pro->add_notification(
|
124 |
-
__( 'Preview Mode Enabled', 'wptouch-pro' ),
|
125 |
-
sprintf( __( 'Only logged-in admins can see the mobile theme right now. You can change this at any time in %sCore Settings%s under %sDisplay Mode%s.', 'wptouch-pro' ), '<em>', '</em>', '<em>', '</em>' ),
|
126 |
-
'warning',
|
127 |
-
'admin.php?page=wptouch-admin-general-settings'
|
128 |
-
);
|
129 |
-
}
|
130 |
-
|
131 |
-
if ( WPTOUCH_SIMULATE_ALL || $settings->display_mode === 'disabled' ) {
|
132 |
-
$wptouch_pro->add_notification(
|
133 |
-
__( 'Theme Presentation Disabled', 'wptouch-pro' ),
|
134 |
-
sprintf( __( 'No one can see the mobile theme right now. You can change this at any time in %sCore Settings%s under %sDisplay Mode%s.', 'wptouch-pro' ), '<em>', '</em>', '<em>', '</em>' ),
|
135 |
-
'warning',
|
136 |
-
'admin.php?page=wptouch-admin-general-settings'
|
137 |
-
);
|
138 |
-
}
|
139 |
-
|
140 |
-
// Warning
|
141 |
-
$permalink_structure = get_option('permalink_structure');
|
142 |
-
if ( WPTOUCH_SIMULATE_ALL || !$permalink_structure ) {
|
143 |
-
$wptouch_pro->add_notification(
|
144 |
-
'WordPress Permalinks',
|
145 |
-
__( 'WPtouch Pro prefers pretty permalinks to be enabled within WordPress.', 'wptouch-pro' ),
|
146 |
-
'warning',
|
147 |
-
''
|
148 |
-
);
|
149 |
-
}
|
150 |
-
|
151 |
-
// Warning
|
152 |
-
if ( WPTOUCH_SIMULATE_ALL || ini_get('safe_mode' ) ) {
|
153 |
-
$wptouch_pro->add_notification(
|
154 |
-
'PHP Safe Mode',
|
155 |
-
__( 'WPtouch Pro will not work fully in safe mode.', 'wptouch-pro' ),
|
156 |
-
'warning',
|
157 |
-
'https://support.wptouch.com/support/solutions/articles/5000525315-setting-up-your-server-for-wptouch-pro'
|
158 |
-
);
|
159 |
-
}
|
160 |
-
|
161 |
-
// Warning
|
162 |
-
if ( WPTOUCH_SIMULATE_ALL || function_exists( 'wp_super_cache_init' ) ) {
|
163 |
-
$wptouch_pro->add_notification(
|
164 |
-
'WP Super Cache',
|
165 |
-
__( 'Extra configuration is required. The plugin must be configured to exclude the user agents that WPtouch Pro uses.', 'wptouch-pro' ),
|
166 |
-
'warning',
|
167 |
-
'https://support.wptouch.com/support/solutions/articles/5000537668-optimizing-caching-plugins-for-mobile-use'
|
168 |
-
);
|
169 |
-
}
|
170 |
-
|
171 |
-
// Warning
|
172 |
-
if ( WPTOUCH_SIMULATE_ALL || class_exists( 'W3_Plugin_TotalCache' ) ) {
|
173 |
-
$wptouch_pro->add_notification(
|
174 |
-
'W3 Total Cache',
|
175 |
-
__( 'Extra configuration is required. The plugin must be configured to exclude the user agents that WPtouch Pro uses.', 'wptouch-pro' ),
|
176 |
-
'warning',
|
177 |
-
'https://support.wptouch.com/support/solutions/articles/5000537668-optimizing-caching-plugins-for-mobile-use'
|
178 |
-
);
|
179 |
-
}
|
180 |
-
|
181 |
-
// Warning
|
182 |
-
if ( WPTOUCH_SIMULATE_ALL || function_exists( 'hyper_activate' ) ) {
|
183 |
-
$wptouch_pro->add_notification(
|
184 |
-
'Hyper Cache',
|
185 |
-
__( 'Extra configuration is required. The plugin must be configured to exclude the user agents that WPtouch Pro uses.', 'wptouch-pro' ),
|
186 |
-
'warning',
|
187 |
-
'https://support.wptouch.com/support/solutions/articles/5000537668-optimizing-caching-plugins-for-mobile-use'
|
188 |
-
);
|
189 |
-
}
|
190 |
-
|
191 |
-
// Warning
|
192 |
-
if ( WPTOUCH_SIMULATE_ALL || class_exists( 'WPMinify' ) ) {
|
193 |
-
$wptouch_pro->add_notification(
|
194 |
-
'WPMinify',
|
195 |
-
__( 'Extra configuration is required. Add paths to your active WPtouch Pro theme CSS and Javascript files as files to ignore in WPMinify.', 'wptouch-pro' ),
|
196 |
-
'warning',
|
197 |
-
'https://support.wptouch.com/support/solutions/articles/5000542071-wpminify'
|
198 |
-
);
|
199 |
-
}
|
200 |
-
|
201 |
-
// Warning
|
202 |
-
if ( WPTOUCH_SIMULATE_ALL || function_exists( 'lightbox_styles' ) ) {
|
203 |
-
$wptouch_pro->add_notification(
|
204 |
-
'Lightbox 2',
|
205 |
-
__( 'This plugin may not work correctly in WPtouch Pro, and should be disabled in the Plugin Compatibility section.', 'wptouch-pro' ),
|
206 |
-
'warning',
|
207 |
-
'https://support.wptouch.com/support/solutions/articles/5000525434-known-incompatibilities'
|
208 |
-
);
|
209 |
-
}
|
210 |
-
|
211 |
-
// Warning
|
212 |
-
if ( WPTOUCH_SIMULATE_ALL || !is_writable( WPTOUCH_CUSTOM_SET_DIRECTORY ) ) {
|
213 |
-
$wptouch_pro->add_notification(
|
214 |
-
__( 'Icon Installation Issue', 'wptouch-pro' ),
|
215 |
-
sprintf( __( 'The %s%s%s directory is not currently writable. %sPlease fix this issue to enable installation of additional icon sets.', 'wptouch-pro' ), '', 'wp-content/wptouch-data/icons', '', '' ),
|
216 |
-
'warning',
|
217 |
-
'https://support.wptouch.com/support/solutions/articles/5000525315-setting-up-your-server-for-wptouch-pro'
|
218 |
-
);
|
219 |
-
}
|
220 |
-
|
221 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
core/plugins.php
CHANGED
@@ -1,8 +1,4 @@
|
|
1 |
<?php
|
2 |
-
function wptouch_return_false() {
|
3 |
-
return false;
|
4 |
-
}
|
5 |
-
|
6 |
function wptouch_remove_jetpack_related() {
|
7 |
if ( class_exists( 'Jetpack_RelatedPosts' ) )
|
8 |
{
|
@@ -20,7 +16,7 @@ function wptouch_plugins_generate_hook_list( $wptouch_pro, $settings ) {
|
|
20 |
$new_plugin_list = array();
|
21 |
|
22 |
foreach( $php_files as $plugin_file ) {
|
23 |
-
$path_info = explode(
|
24 |
|
25 |
if ( $path_info[1] <> 'index.php' ) {
|
26 |
$plugin_slug = $path_info[1];
|
@@ -203,4 +199,4 @@ function wptouch_plugins_get_friendly_name( $wptouch_pro, $name ) {
|
|
203 |
}
|
204 |
|
205 |
return str_replace( '_' , ' ', $name );
|
206 |
-
}
|
1 |
<?php
|
|
|
|
|
|
|
|
|
2 |
function wptouch_remove_jetpack_related() {
|
3 |
if ( class_exists( 'Jetpack_RelatedPosts' ) )
|
4 |
{
|
16 |
$new_plugin_list = array();
|
17 |
|
18 |
foreach( $php_files as $plugin_file ) {
|
19 |
+
$path_info = explode( DIRECTORY_SEPARATOR, $plugin_file );
|
20 |
|
21 |
if ( $path_info[1] <> 'index.php' ) {
|
22 |
$plugin_slug = $path_info[1];
|
199 |
}
|
200 |
|
201 |
return str_replace( '_' , ' ', $name );
|
202 |
+
}
|
core/rtl.php
CHANGED
@@ -8,10 +8,9 @@ function wptouch_should_load_rtl() {
|
|
8 |
if ( defined( 'WPTOUCH_ADMIN_IGNORE_LOCALIZATION' ) ) {
|
9 |
return false;
|
10 |
}
|
11 |
-
/* TODO: Remove deprecated setting
|
12 |
if ( !$settings->translate_admin ) {
|
13 |
return false;
|
14 |
-
}
|
15 |
}
|
16 |
|
17 |
return is_rtl() || $wptouch_pro->locale == 'ar' || $wptouch_pro->locale == 'he_IL';
|
8 |
if ( defined( 'WPTOUCH_ADMIN_IGNORE_LOCALIZATION' ) ) {
|
9 |
return false;
|
10 |
}
|
|
|
11 |
if ( !$settings->translate_admin ) {
|
12 |
return false;
|
13 |
+
}
|
14 |
}
|
15 |
|
16 |
return is_rtl() || $wptouch_pro->locale == 'ar' || $wptouch_pro->locale == 'he_IL';
|
core/settings.php
CHANGED
@@ -102,10 +102,13 @@ function wptouch_admin_get_split_version( $ver ) {
|
|
102 |
return $float_ver;
|
103 |
}
|
104 |
|
105 |
-
function wptouch_admin_is_setting_pro() {
|
106 |
-
|
|
|
|
|
|
|
107 |
|
108 |
-
return $
|
109 |
}
|
110 |
|
111 |
function wptouch_admin_is_setting_new() {
|
102 |
return $float_ver;
|
103 |
}
|
104 |
|
105 |
+
function wptouch_admin_is_setting_pro( $setting = false ) {
|
106 |
+
if ( !$setting ) {
|
107 |
+
global $_primed_setting;
|
108 |
+
$setting = $_primed_setting;
|
109 |
+
}
|
110 |
|
111 |
+
return $setting->is_pro;
|
112 |
}
|
113 |
|
114 |
function wptouch_admin_is_setting_new() {
|
core/theme-hashes.php
DELETED
@@ -1,129 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
function wptouch_get_hashes() {
|
3 |
-
$theme_hases = array();
|
4 |
-
|
5 |
-
$theme_hashes[ 'bauhaus' ] = array(
|
6 |
-
'1.0.1' => '4a8191ca6d678e7316c40100f5da6e62',
|
7 |
-
'1.0.2' => '596c46a88f2b36c5b08affc01be0772c',
|
8 |
-
'1.0.3' => '8bf9e89ee26f8c056f34c94da221ee09',
|
9 |
-
'1.0.4' => '186109a5bdf164e2e7abf3d474f844af',
|
10 |
-
'1.0.5' => 'd78c8f124cdff22cae69ab5ee527a92c',
|
11 |
-
'1.0.6' => 'f0b7d32e320fac090e509bfa7fdeee55',
|
12 |
-
'1.0.7' => '12b86776f9c168b56a24ea58f9013eec',
|
13 |
-
'1.0.8' => '0c9e769c2bfb1ec84f367f492485a8ec',
|
14 |
-
'1.0.9' => 'eecd4064953406d9587e9b8889cf15cf',
|
15 |
-
'1.0' => 'a8530fb747ed2321723a92b1af685c07',
|
16 |
-
'1.1' => '43aaa4c67cfb5fd332765dba1e90b8f2',
|
17 |
-
'1.2.1' => '5df2e52222e927b648ccacbb4e426970',
|
18 |
-
'1.2' => 'cdeada535c1f83e4e76a836544eff263',
|
19 |
-
'1.3.1' => '4138eeed1de619272d84b42f433263ff',
|
20 |
-
'1.3' => '50f2677d3dc28e002fb67f4a89af7d29',
|
21 |
-
'1.4.1' => 'e7678f85552de546dca1f1f0f2edac56',
|
22 |
-
'1.4.2' => '1ef9dcde45f9ae4b155ff486f13ebd94',
|
23 |
-
'1.4.3' => '5cd25c32e5c898be3ed74f82cedcf999',
|
24 |
-
'1.4.4' => '346a9811fc01a388aa9d81016342b3ab',
|
25 |
-
'1.4.5' => 'bb7acd8cd44b4689a56d0cc06f6850fb',
|
26 |
-
'1.4.6' => 'dc6306a00fa753701e738b14297c12dd',
|
27 |
-
'1.4.7' => '8f2062860f881205101cc5de916cb1ee',
|
28 |
-
'1.4.8' => '534c5500224b75e045036cb25faae646',
|
29 |
-
'1.4' => 'c59235059ca22f8d41bca4d79a650df0',
|
30 |
-
);
|
31 |
-
|
32 |
-
$theme_hashes[ 'classic-redux' ] = array(
|
33 |
-
'1.1.1' => '407c585ff6ce007cb243fa2336fe33c5',
|
34 |
-
'1.1.2' => 'acab7145a3bf472e8695cbe396f9ff12',
|
35 |
-
'1.1.3' => '104e5b708a815feb4eb15399d77c8e1b',
|
36 |
-
'1.1.4' => '598c598c581c8651ab91408ff1447971',
|
37 |
-
'1.1.5' => '2d6c57d02a1a946bcf4b2b6ade80346b',
|
38 |
-
'1.1.6' => '9c7dc6b1e21b2ccbf4b29b182e75a27f',
|
39 |
-
'1.1' => '1bd2e0cfa3c54690bb07246d103e4fb1',
|
40 |
-
'1.2.1' => '1b6d1d1f1f7d1d0a87b7a116e9aac990',
|
41 |
-
'1.2' => '9acaa0a802ece99a229abdacb50d400a',
|
42 |
-
'1.3' => 'c04f2a4e24f6c1187556e2e74c057369',
|
43 |
-
'1.4.1' => '58c8a27687c37cdc31ee7a54a50ae8e7',
|
44 |
-
'1.4.2' => '51cc6fce56fbfe2dc39a4fa3b5c0b482',
|
45 |
-
'1.4' => '1e47a4aa31dadb8ede23c09ae3310d7c',
|
46 |
-
);
|
47 |
-
|
48 |
-
$theme_hashes[ 'cms' ] = array(
|
49 |
-
'1.1.1' => '308ac26e728c86510e1a673a8c94460f',
|
50 |
-
'1.1.2' => 'c3a9e919007213d3ec5bef6e05b189fe',
|
51 |
-
'1.1.3' => '5be7265ba7f7987a537f52489ee2fd1d',
|
52 |
-
'1.1.4' => '6fea641bbfec3f9982601ff31a88d4d7',
|
53 |
-
'1.1.7' => 'd12742376dde0857dd404fbef25133d4',
|
54 |
-
'1.1' => 'eaf9ae919b89844af381437aba45151b',
|
55 |
-
'1.2.1' => 'ad8befc86d3275845d7385317422095e',
|
56 |
-
'1.2' => '5d4f3ba59119e3d9929b7f2adfa1ba36',
|
57 |
-
'1.3.1' => 'c8a51c3961b0375943f43b6d9bd3d91c',
|
58 |
-
'1.3.2' => '92e27299a3e5a747f1c4a07b14c0b900',
|
59 |
-
'1.3.3' => '114622b6c6affcb084ac0953331d4271',
|
60 |
-
'1.3.5' => '7b8edc0e78c10bb233f91efb88019e6c',
|
61 |
-
'1.3' => '9c0a8c5160771e1879fdc63e88b68705',
|
62 |
-
);
|
63 |
-
|
64 |
-
$theme_hashes[ 'mobilestore' ] = array(
|
65 |
-
'1.0.1' => '5f3ebc75ccfaac0c9dda89c037880c1a',
|
66 |
-
'1.0.10' => 'c6a5f3fdd3d9c0e2459b758fcf3037ed',
|
67 |
-
'1.0.11.1' => 'b2a77e0bbcbbbf08a5a6b45609e2c25b',
|
68 |
-
'1.0.11' => 'b7a96487e60fbc7b79ccd305f507ad24',
|
69 |
-
'1.0.12' => '8ad04cbd909f533d3218c3b0a1b7e49f',
|
70 |
-
'1.0.2' => 'a269b3e46716b4df879fd0cb04a0d1e5',
|
71 |
-
'1.0.3' => 'f1ad6bcc1448680a5cb09a2b4f5bbb12',
|
72 |
-
'1.0.4' => 'ec2bfa70229a0c52c226678893408d23',
|
73 |
-
'1.0.5' => '307775af6f2462dd93a3bdfc30ee0d3d',
|
74 |
-
'1.0.6' => '76805c9bd5fff72f0fe6676cba2a4b89',
|
75 |
-
'1.0.7' => '8a306d19b9fa6fafffaed4169b721039',
|
76 |
-
'1.0.8' => '2b3534dcfdb02321ac5fe66941b1493c',
|
77 |
-
'1.0.9' => '4c9da9be8cbe94b79379116b8d5018f3',
|
78 |
-
'1.0' => 'f0a23183f613a2b2fb0fd3167effad3d',
|
79 |
-
'1.1.1' => '0feff71f14f3deabba64a8d8f12c16f4',
|
80 |
-
'1.1.2' => 'f8e31aa5e39f65bc97c98d3591e8e831',
|
81 |
-
'1.1.3' => '0d46de921e792add4277260d3ad359bc',
|
82 |
-
'1.1' => '6e80a32d2abd10f49a7e37761921c1bd',
|
83 |
-
);
|
84 |
-
|
85 |
-
$theme_hashes[ 'open' ] = array(
|
86 |
-
'1.0' => '6efccd01e67e790922aacec59f2b50e3',
|
87 |
-
'1.1.1' => '71d57664dc4ee2ef375e03844dc1312f',
|
88 |
-
'1.1.3' => '1f8f1f11ea108fac9bf58a5b4a38fec7',
|
89 |
-
'1.1.4' => 'b7865db2d25a298df565e327e77e100c',
|
90 |
-
'1.1' => 'a544b457f58487f11970bfd5ae60288e',
|
91 |
-
'1.2.1' => '7dc79d8895d7f03a2b3217de7a4dfb43',
|
92 |
-
'1.2' => '9ebb04be96635b2ef8fec4a513c8b3ba',
|
93 |
-
'1.3.1' => 'b0fc856d7066920eafb8327e570bc0f1',
|
94 |
-
'1.3.2' => 'a6ce39a72e086925cac0a624963d6dde',
|
95 |
-
'1.3.3' => '86f8115c374bfaa92e83ea2185ab0c44',
|
96 |
-
'1.3' => 'c2a7ae60bde5e1e5788f03b898897712',
|
97 |
-
'1.4.1' => 'dbd2694dfbb6716e4aac66e06f4815e3',
|
98 |
-
'1.4' => '42c7e14aa644079a6157bb4ae770aedd',
|
99 |
-
);
|
100 |
-
|
101 |
-
$theme_hashes[ 'prose' ] = array(
|
102 |
-
'1.0' => '8c612e0876e4ad1235af95d2fc8eeae3',
|
103 |
-
'1.1.1' => 'ebf97bd71ba1693e78b9413db6634826',
|
104 |
-
'1.2' => '7eadcafc919f91b85ad62531d9e8c1da',
|
105 |
-
'1.3' => '9151f9fb5cae05759fa8d679e48363d6',
|
106 |
-
'1.4.1' => '052b18b6b1642e8f89c94fdc214310f5',
|
107 |
-
'1.4.2' => 'b03daf3edd9cd8fd1a9339e861b5606b',
|
108 |
-
'1.4.3' => 'e8135fdc3f26560560add4caaed16384',
|
109 |
-
'1.4.4' => 'd462526da2c757775dd784914b45f141',
|
110 |
-
'1.4.5' => 'abc5c9990e3c41256562b5e2046e3932',
|
111 |
-
'1.4' => '49e7e8bd9effc5a7741509eaaa807794',
|
112 |
-
);
|
113 |
-
|
114 |
-
$theme_hashes[ 'simple' ] = array(
|
115 |
-
'1.1.1' => '7548bfb101e43196c218c6b5533ec5b9',
|
116 |
-
'1.1.2' => '42b2f111b2a68adda611dde3e4297c06',
|
117 |
-
'1.1.3' => '74273da11d028dda51c41901c815b49c',
|
118 |
-
'1.1' => 'c1da063816962e4aab78aa5f86346508',
|
119 |
-
'1.2.1' => '95e66b63f3ab3ffdd03f5f12a001e7fa',
|
120 |
-
'1.2' => 'e777c8a8ecb159b49df4bd8e2da1e69b',
|
121 |
-
'1.3' => '5f900337728c9bae5d3f10dc536a0434',
|
122 |
-
'1.4.1' => '8bc4456db9bb3568331ef295f4512c03',
|
123 |
-
'1.4.2' => '9e103ca85d267f8dcc2147f0e54cc21a',
|
124 |
-
'1.4.3' => '0533ace83db8028d95c5510049449323',
|
125 |
-
'1.4' => '51c4c86e539ed6b6fe7534fec306aa15',
|
126 |
-
);
|
127 |
-
|
128 |
-
return $theme_hashes;
|
129 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
core/theme.php
CHANGED
@@ -1,7 +1,11 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
// Main template functions for WPtouch Pro
|
4 |
function wptouch_head() {
|
|
|
|
|
|
|
|
|
|
|
5 |
do_action( 'wptouch_pre_head' );
|
6 |
wp_head();
|
7 |
do_action( 'wptouch_post_head' );
|
@@ -26,9 +30,7 @@ function wptouch_site_title() {
|
|
26 |
}
|
27 |
|
28 |
function wptouch_get_site_title() {
|
29 |
-
|
30 |
-
|
31 |
-
return apply_filters( 'wptouch_site_title', $settings->site_title );
|
32 |
}
|
33 |
|
34 |
function wptouch_have_posts() {
|
@@ -71,15 +73,28 @@ function wptouch_body_classes() {
|
|
71 |
|
72 |
function wptouch_get_body_classes() {
|
73 |
global $wptouch_pro;
|
74 |
-
$settings = $wptouch_pro->get_settings();
|
75 |
|
76 |
$body_classes = array();
|
77 |
|
78 |
// Add a class to the body when we're in preview mode, or the preview window
|
79 |
-
if (
|
80 |
$body_classes[] = 'preview-mode';
|
81 |
}
|
82 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
83 |
return implode( ' ', apply_filters( 'wptouch_body_classes', $body_classes ) );
|
84 |
}
|
85 |
|
@@ -88,13 +103,15 @@ function wptouch_make_css_friendly( $name ) {
|
|
88 |
}
|
89 |
|
90 |
function wptouch_canonical_link() {
|
|
|
|
|
91 |
$settings = foundation_get_settings();
|
92 |
$wordpress_posts_page = get_option( 'page_for_posts' );
|
93 |
$wptouch_posts_page = $settings->latest_posts_page;
|
94 |
$on_wptouch_posts_page = false;
|
95 |
|
96 |
if ( $wptouch_posts_page != 'none' ) {
|
97 |
-
$on_wptouch_posts_page = get_permalink() == get_permalink( $wptouch_posts_page );
|
98 |
}
|
99 |
|
100 |
if ( is_home() && !$on_wptouch_posts_page ) {
|
@@ -104,7 +121,7 @@ function wptouch_canonical_link() {
|
|
104 |
$permalink = site_url() . '/';
|
105 |
}
|
106 |
} else {
|
107 |
-
$permalink = get_permalink();
|
108 |
}
|
109 |
|
110 |
echo '<link rel="canonical" href="' . $permalink . '" />';
|
@@ -289,31 +306,12 @@ function wptouch_the_mobile_switch_link() {
|
|
289 |
|
290 |
function wptouch_get_mobile_switch_link() {
|
291 |
$settings = wptouch_get_settings();
|
292 |
-
|
293 |
-
/*
|
294 |
-
TODO: Deprecated
|
295 |
-
switch( $settings->mobile_switch_link_target ) {
|
296 |
-
case 'current_page':
|
297 |
-
$link_target = $_SERVER['REQUEST_URI'];
|
298 |
-
break;
|
299 |
-
case 'home_page':
|
300 |
-
$link_target = home_url();
|
301 |
-
break;
|
302 |
-
default:
|
303 |
-
$link_target = '';
|
304 |
-
break;
|
305 |
-
}
|
306 |
-
*/
|
307 |
-
$link_target = apply_filters( 'wptouch_mobile_switch_link_target', $_SERVER[ 'REQUEST_URI' ] );
|
308 |
-
|
309 |
-
$nonce = wp_create_nonce( 'wptouch_switch' );
|
310 |
-
|
311 |
-
return apply_filters( 'wptouch_mobile_switch_link', get_bloginfo( 'url' ) . '?wptouch_switch=desktop&redirect=' . urlencode( $link_target ) . '&nonce=' . $nonce );
|
312 |
}
|
313 |
|
314 |
function wptouch_use_mobile_switch_link() {
|
315 |
$settings = wptouch_get_settings();
|
316 |
-
if ( $settings->show_switch_link == true ) {
|
317 |
return true;
|
318 |
} else {
|
319 |
return false;
|
1 |
<?php
|
|
|
2 |
// Main template functions for WPtouch Pro
|
3 |
function wptouch_head() {
|
4 |
+
if ( is_single() ) {
|
5 |
+
add_action( 'wp_head', 'wptouch_canonical_link' );
|
6 |
+
remove_action( 'wp_head', 'rel_canonical' );
|
7 |
+
}
|
8 |
+
|
9 |
do_action( 'wptouch_pre_head' );
|
10 |
wp_head();
|
11 |
do_action( 'wptouch_post_head' );
|
30 |
}
|
31 |
|
32 |
function wptouch_get_site_title() {
|
33 |
+
return get_bloginfo('name');
|
|
|
|
|
34 |
}
|
35 |
|
36 |
function wptouch_have_posts() {
|
73 |
|
74 |
function wptouch_get_body_classes() {
|
75 |
global $wptouch_pro;
|
|
|
76 |
|
77 |
$body_classes = array();
|
78 |
|
79 |
// Add a class to the body when we're in preview mode, or the preview window
|
80 |
+
if ( wptouch_in_preview() ) {
|
81 |
$body_classes[] = 'preview-mode';
|
82 |
}
|
83 |
|
84 |
+
$colors = foundation_get_theme_colors();
|
85 |
+
foreach ( $colors as $color ) {
|
86 |
+
$domain_settings = $wptouch_pro->get_settings( $color->domain );
|
87 |
+
|
88 |
+
if ( isset( $color->luma_threshold ) && $color->luma_threshold != false ) {
|
89 |
+
$current_luma = wptouch_hex_to_luma( $domain_settings->{ $color->setting } );
|
90 |
+
if ( $current_luma < $color->luma_threshold ) {
|
91 |
+
$body_classes[] = 'dark-' . $color->luma_class;
|
92 |
+
} else {
|
93 |
+
$body_classes[] = 'light-' . $color->luma_class;
|
94 |
+
}
|
95 |
+
}
|
96 |
+
}
|
97 |
+
|
98 |
return implode( ' ', apply_filters( 'wptouch_body_classes', $body_classes ) );
|
99 |
}
|
100 |
|
103 |
}
|
104 |
|
105 |
function wptouch_canonical_link() {
|
106 |
+
global $post;
|
107 |
+
|
108 |
$settings = foundation_get_settings();
|
109 |
$wordpress_posts_page = get_option( 'page_for_posts' );
|
110 |
$wptouch_posts_page = $settings->latest_posts_page;
|
111 |
$on_wptouch_posts_page = false;
|
112 |
|
113 |
if ( $wptouch_posts_page != 'none' ) {
|
114 |
+
$on_wptouch_posts_page = get_permalink( $post->ID ) == get_permalink( $wptouch_posts_page );
|
115 |
}
|
116 |
|
117 |
if ( is_home() && !$on_wptouch_posts_page ) {
|
121 |
$permalink = site_url() . '/';
|
122 |
}
|
123 |
} else {
|
124 |
+
$permalink = get_permalink( $post->ID );
|
125 |
}
|
126 |
|
127 |
echo '<link rel="canonical" href="' . $permalink . '" />';
|
306 |
|
307 |
function wptouch_get_mobile_switch_link() {
|
308 |
$settings = wptouch_get_settings();
|
309 |
+
return apply_filters( 'wptouch_mobile_switch_link', '?wptouch_switch=desktop' );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
310 |
}
|
311 |
|
312 |
function wptouch_use_mobile_switch_link() {
|
313 |
$settings = wptouch_get_settings();
|
314 |
+
if ( apply_filters( 'wptouch_show_mobile_switch_link', $settings->show_switch_link == true ) ) {
|
315 |
return true;
|
316 |
} else {
|
317 |
return false;
|
general-public-license-3.0.txt
ADDED
@@ -0,0 +1,188 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
GNU GENERAL PUBLIC LICENSE
|
2 |
+
|
3 |
+
Version 3, 29 June 2007
|
4 |
+
|
5 |
+
Copyright © 2007 Free Software Foundation, Inc. <http://fsf.org/>
|
6 |
+
|
7 |
+
Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
|
8 |
+
|
9 |
+
Preamble
|
10 |
+
|
11 |
+
The GNU General Public License is a free, copyleft license for software and other kinds of works.
|
12 |
+
|
13 |
+
The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too.
|
14 |
+
|
15 |
+
When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things.
|
16 |
+
|
17 |
+
To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others.
|
18 |
+
|
19 |
+
For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights.
|
20 |
+
|
21 |
+
Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it.
|
22 |
+
|
23 |
+
For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions.
|
24 |
+
|
25 |
+
Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users.
|
26 |
+
|
27 |
+
Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free.
|
28 |
+
|
29 |
+
The precise terms and conditions for copying, distribution and modification follow.
|
30 |
+
|
31 |
+
TERMS AND CONDITIONS
|
32 |
+
|
33 |
+
0. Definitions.
|
34 |
+
“This License” refers to version 3 of the GNU General Public License.
|
35 |
+
|
36 |
+
“Copyright” also means copyright-like laws that apply to other kinds of works, such as semiconductor masks.
|
37 |
+
|
38 |
+
“The Program” refers to any copyrightable work licensed under this License. Each licensee is addressed as “you”. “Licensees” and “recipients” may be individuals or organizations.
|
39 |
+
|
40 |
+
To “modify” a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a “modified version” of the earlier work or a work “based on” the earlier work.
|
41 |
+
|
42 |
+
A “covered work” means either the unmodified Program or a work based on the Program.
|
43 |
+
|
44 |
+
To “propagate” a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well.
|
45 |
+
|
46 |
+
To “convey” a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying.
|
47 |
+
|
48 |
+
An interactive user interface displays “Appropriate Legal Notices” to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion.
|
49 |
+
|
50 |
+
1. Source Code.
|
51 |
+
The “source code” for a work means the preferred form of the work for making modifications to it. “Object code” means any non-source form of a work.
|
52 |
+
|
53 |
+
A “Standard Interface” means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language.
|
54 |
+
|
55 |
+
The “System Libraries” of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A “Major Component”, in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it.
|
56 |
+
|
57 |
+
The “Corresponding Source” for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work.
|
58 |
+
|
59 |
+
The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source.
|
60 |
+
|
61 |
+
The Corresponding Source for a work in source code form is that same work.
|
62 |
+
|
63 |
+
2. Basic Permissions.
|
64 |
+
All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law.
|
65 |
+
|
66 |
+
You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you.
|
67 |
+
|
68 |
+
Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary.
|
69 |
+
|
70 |
+
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
71 |
+
No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures.
|
72 |
+
|
73 |
+
When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures.
|
74 |
+
|
75 |
+
4. Conveying Verbatim Copies.
|
76 |
+
You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program.
|
77 |
+
|
78 |
+
You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee.
|
79 |
+
|
80 |
+
5. Conveying Modified Source Versions.
|
81 |
+
You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions:
|
82 |
+
|
83 |
+
a) The work must carry prominent notices stating that you modified it, and giving a relevant date.
|
84 |
+
b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to “keep intact all notices”.
|
85 |
+
c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it.
|
86 |
+
d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so.
|
87 |
+
A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an “aggregate” if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate.
|
88 |
+
|
89 |
+
6. Conveying Non-Source Forms.
|
90 |
+
You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways:
|
91 |
+
|
92 |
+
a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange.
|
93 |
+
b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge.
|
94 |
+
c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b.
|
95 |
+
d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements.
|
96 |
+
e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d.
|
97 |
+
A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work.
|
98 |
+
|
99 |
+
A “User Product” is either (1) a “consumer product”, which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, “normally used” refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product.
|
100 |
+
|
101 |
+
“Installation Information” for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made.
|
102 |
+
|
103 |
+
If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM).
|
104 |
+
|
105 |
+
The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network.
|
106 |
+
|
107 |
+
Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying.
|
108 |
+
|
109 |
+
7. Additional Terms.
|
110 |
+
“Additional permissions” are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions.
|
111 |
+
|
112 |
+
When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission.
|
113 |
+
|
114 |
+
Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms:
|
115 |
+
|
116 |
+
a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or
|
117 |
+
b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or
|
118 |
+
c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or
|
119 |
+
d) Limiting the use for publicity purposes of names of licensors or authors of the material; or
|
120 |
+
e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or
|
121 |
+
f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors.
|
122 |
+
All other non-permissive additional terms are considered “further restrictions” within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying.
|
123 |
+
|
124 |
+
If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms.
|
125 |
+
|
126 |
+
Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way.
|
127 |
+
|
128 |
+
8. Termination.
|
129 |
+
You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11).
|
130 |
+
|
131 |
+
However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation.
|
132 |
+
|
133 |
+
Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice.
|
134 |
+
|
135 |
+
Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10.
|
136 |
+
|
137 |
+
9. Acceptance Not Required for Having Copies.
|
138 |
+
You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so.
|
139 |
+
|
140 |
+
10. Automatic Licensing of Downstream Recipients.
|
141 |
+
Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License.
|
142 |
+
|
143 |
+
An “entity transaction” is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts.
|
144 |
+
|
145 |
+
You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it.
|
146 |
+
|
147 |
+
11. Patents.
|
148 |
+
A “contributor” is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's “contributor version”.
|
149 |
+
|
150 |
+
A contributor's “essential patent claims” are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, “control” includes the right to grant patent sublicenses in a manner consistent with the requirements of this License.
|
151 |
+
|
152 |
+
Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version.
|
153 |
+
|
154 |
+
In the following three paragraphs, a “patent license” is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To “grant” such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party.
|
155 |
+
|
156 |
+
If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. “Knowingly relying” means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid.
|
157 |
+
|
158 |
+
If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it.
|
159 |
+
|
160 |
+
A patent license is “discriminatory” if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007.
|
161 |
+
|
162 |
+
Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law.
|
163 |
+
|
164 |
+
12. No Surrender of Others' Freedom.
|
165 |
+
If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program.
|
166 |
+
|
167 |
+
13. Use with the GNU Affero General Public License.
|
168 |
+
Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such.
|
169 |
+
|
170 |
+
14. Revised Versions of this License.
|
171 |
+
The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.
|
172 |
+
|
173 |
+
Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License “or any later version” applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation.
|
174 |
+
|
175 |
+
If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program.
|
176 |
+
|
177 |
+
Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version.
|
178 |
+
|
179 |
+
15. Disclaimer of Warranty.
|
180 |
+
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
181 |
+
|
182 |
+
16. Limitation of Liability.
|
183 |
+
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
|
184 |
+
|
185 |
+
17. Interpretation of Sections 15 and 16.
|
186 |
+
If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee.
|
187 |
+
|
188 |
+
END OF TERMS AND CONDITIONS
|
gpl-2.0.txt
DELETED
@@ -1,339 +0,0 @@
|
|
1 |
-
GNU GENERAL PUBLIC LICENSE
|
2 |
-
Version 2, June 1991
|
3 |
-
|
4 |
-
Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
|
5 |
-
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
6 |
-
Everyone is permitted to copy and distribute verbatim copies
|
7 |
-
of this license document, but changing it is not allowed.
|
8 |
-
|
9 |
-
Preamble
|
10 |
-
|
11 |
-
The licenses for most software are designed to take away your
|
12 |
-
freedom to share and change it. By contrast, the GNU General Public
|
13 |
-
License is intended to guarantee your freedom to share and change free
|
14 |
-
software--to make sure the software is free for all its users. This
|
15 |
-
General Public License applies to most of the Free Software
|
16 |
-
Foundation's software and to any other program whose authors commit to
|
17 |
-
using it. (Some other Free Software Foundation software is covered by
|
18 |
-
the GNU Lesser General Public License instead.) You can apply it to
|
19 |
-
your programs, too.
|
20 |
-
|
21 |
-
When we speak of free software, we are referring to freedom, not
|
22 |
-
price. Our General Public Licenses are designed to make sure that you
|
23 |
-
have the freedom to distribute copies of free software (and charge for
|
24 |
-
this service if you wish), that you receive source code or can get it
|
25 |
-
if you want it, that you can change the software or use pieces of it
|
26 |
-
in new free programs; and that you know you can do these things.
|
27 |
-
|
28 |
-
To protect your rights, we need to make restrictions that forbid
|
29 |
-
anyone to deny you these rights or to ask you to surrender the rights.
|
30 |
-
These restrictions translate to certain responsibilities for you if you
|
31 |
-
distribute copies of the software, or if you modify it.
|
32 |
-
|
33 |
-
For example, if you distribute copies of such a program, whether
|
34 |
-
gratis or for a fee, you must give the recipients all the rights that
|
35 |
-
you have. You must make sure that they, too, receive or can get the
|
36 |
-
source code. And you must show them these terms so they know their
|
37 |
-
rights.
|
38 |
-
|
39 |
-
We protect your rights with two steps: (1) copyright the software, and
|
40 |
-
(2) offer you this license which gives you legal permission to copy,
|
41 |
-
distribute and/or modify the software.
|
42 |
-
|
43 |
-
Also, for each author's protection and ours, we want to make certain
|
44 |
-
that everyone understands that there is no warranty for this free
|
45 |
-
software. If the software is modified by someone else and passed on, we
|
46 |
-
want its recipients to know that what they have is not the original, so
|
47 |
-
that any problems introduced by others will not reflect on the original
|
48 |
-
authors' reputations.
|
49 |
-
|
50 |
-
Finally, any free program is threatened constantly by software
|
51 |
-
patents. We wish to avoid the danger that redistributors of a free
|
52 |
-
program will individually obtain patent licenses, in effect making the
|
53 |
-
program proprietary. To prevent this, we have made it clear that any
|
54 |
-
patent must be licensed for everyone's free use or not licensed at all.
|
55 |
-
|
56 |
-
The precise terms and conditions for copying, distribution and
|
57 |
-
modification follow.
|
58 |
-
|
59 |
-
GNU GENERAL PUBLIC LICENSE
|
60 |
-
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
61 |
-
|
62 |
-
0. This License applies to any program or other work which contains
|
63 |
-
a notice placed by the copyright holder saying it may be distributed
|
64 |
-
under the terms of this General Public License. The "Program", below,
|
65 |
-
refers to any such program or work, and a "work based on the Program"
|
66 |
-
means either the Program or any derivative work under copyright law:
|
67 |
-
that is to say, a work containing the Program or a portion of it,
|
68 |
-
either verbatim or with modifications and/or translated into another
|
69 |
-
language. (Hereinafter, translation is included without limitation in
|
70 |
-
the term "modification".) Each licensee is addressed as "you".
|
71 |
-
|
72 |
-
Activities other than copying, distribution and modification are not
|
73 |
-
covered by this License; they are outside its scope. The act of
|
74 |
-
running the Program is not restricted, and the output from the Program
|
75 |
-
is covered only if its contents constitute a work based on the
|
76 |
-
Program (independent of having been made by running the Program).
|
77 |
-
Whether that is true depends on what the Program does.
|
78 |
-
|
79 |
-
1. You may copy and distribute verbatim copies of the Program's
|
80 |
-
source code as you receive it, in any medium, provided that you
|
81 |
-
conspicuously and appropriately publish on each copy an appropriate
|
82 |
-
copyright notice and disclaimer of warranty; keep intact all the
|
83 |
-
notices that refer to this License and to the absence of any warranty;
|
84 |
-
and give any other recipients of the Program a copy of this License
|
85 |
-
along with the Program.
|
86 |
-
|
87 |
-
You may charge a fee for the physical act of transferring a copy, and
|
88 |
-
you may at your option offer warranty protection in exchange for a fee.
|
89 |
-
|
90 |
-
2. You may modify your copy or copies of the Program or any portion
|
91 |
-
of it, thus forming a work based on the Program, and copy and
|
92 |
-
distribute such modifications or work under the terms of Section 1
|
93 |
-
above, provided that you also meet all of these conditions:
|
94 |
-
|
95 |
-
a) You must cause the modified files to carry prominent notices
|
96 |
-
stating that you changed the files and the date of any change.
|
97 |
-
|
98 |
-
b) You must cause any work that you distribute or publish, that in
|
99 |
-
whole or in part contains or is derived from the Program or any
|
100 |
-
part thereof, to be licensed as a whole at no charge to all third
|
101 |
-
parties under the terms of this License.
|
102 |
-
|
103 |
-
c) If the modified program normally reads commands interactively
|
104 |
-
when run, you must cause it, when started running for such
|
105 |
-
interactive use in the most ordinary way, to print or display an
|
106 |
-
announcement including an appropriate copyright notice and a
|
107 |
-
notice that there is no warranty (or else, saying that you provide
|
108 |
-
a warranty) and that users may redistribute the program under
|
109 |
-
these conditions, and telling the user how to view a copy of this
|
110 |
-
License. (Exception: if the Program itself is interactive but
|
111 |
-
does not normally print such an announcement, your work based on
|
112 |
-
the Program is not required to print an announcement.)
|
113 |
-
|
114 |
-
These requirements apply to the modified work as a whole. If
|
115 |
-
identifiable sections of that work are not derived from the Program,
|
116 |
-
and can be reasonably considered independent and separate works in
|
117 |
-
themselves, then this License, and its terms, do not apply to those
|
118 |
-
sections when you distribute them as separate works. But when you
|
119 |
-
distribute the same sections as part of a whole which is a work based
|
120 |
-
on the Program, the distribution of the whole must be on the terms of
|
121 |
-
this License, whose permissions for other licensees extend to the
|
122 |
-
entire whole, and thus to each and every part regardless of who wrote it.
|
123 |
-
|
124 |
-
Thus, it is not the intent of this section to claim rights or contest
|
125 |
-
your rights to work written entirely by you; rather, the intent is to
|
126 |
-
exercise the right to control the distribution of derivative or
|
127 |
-
collective works based on the Program.
|
128 |
-
|
129 |
-
In addition, mere aggregation of another work not based on the Program
|
130 |
-
with the Program (or with a work based on the Program) on a volume of
|
131 |
-
a storage or distribution medium does not bring the other work under
|
132 |
-
the scope of this License.
|
133 |
-
|
134 |
-
3. You may copy and distribute the Program (or a work based on it,
|
135 |
-
under Section 2) in object code or executable form under the terms of
|
136 |
-
Sections 1 and 2 above provided that you also do one of the following:
|
137 |
-
|
138 |
-
a) Accompany it with the complete corresponding machine-readable
|
139 |
-
source code, which must be distributed under the terms of Sections
|
140 |
-
1 and 2 above on a medium customarily used for software interchange; or,
|
141 |
-
|
142 |
-
b) Accompany it with a written offer, valid for at least three
|
143 |
-
years, to give any third party, for a charge no more than your
|
144 |
-
cost of physically performing source distribution, a complete
|
145 |
-
machine-readable copy of the corresponding source code, to be
|
146 |
-
distributed under the terms of Sections 1 and 2 above on a medium
|
147 |
-
customarily used for software interchange; or,
|
148 |
-
|
149 |
-
c) Accompany it with the information you received as to the offer
|
150 |
-
to distribute corresponding source code. (This alternative is
|
151 |
-
allowed only for noncommercial distribution and only if you
|
152 |
-
received the program in object code or executable form with such
|
153 |
-
an offer, in accord with Subsection b above.)
|
154 |
-
|
155 |
-
The source code for a work means the preferred form of the work for
|
156 |
-
making modifications to it. For an executable work, complete source
|
157 |
-
code means all the source code for all modules it contains, plus any
|
158 |
-
associated interface definition files, plus the scripts used to
|
159 |
-
control compilation and installation of the executable. However, as a
|
160 |
-
special exception, the source code distributed need not include
|
161 |
-
anything that is normally distributed (in either source or binary
|
162 |
-
form) with the major components (compiler, kernel, and so on) of the
|
163 |
-
operating system on which the executable runs, unless that component
|
164 |
-
itself accompanies the executable.
|
165 |
-
|
166 |
-
If distribution of executable or object code is made by offering
|
167 |
-
access to copy from a designated place, then offering equivalent
|
168 |
-
access to copy the source code from the same place counts as
|
169 |
-
distribution of the source code, even though third parties are not
|
170 |
-
compelled to copy the source along with the object code.
|
171 |
-
|
172 |
-
4. You may not copy, modify, sublicense, or distribute the Program
|
173 |
-
except as expressly provided under this License. Any attempt
|
174 |
-
otherwise to copy, modify, sublicense or distribute the Program is
|
175 |
-
void, and will automatically terminate your rights under this License.
|
176 |
-
However, parties who have received copies, or rights, from you under
|
177 |
-
this License will not have their licenses terminated so long as such
|
178 |
-
parties remain in full compliance.
|
179 |
-
|
180 |
-
5. You are not required to accept this License, since you have not
|
181 |
-
signed it. However, nothing else grants you permission to modify or
|
182 |
-
distribute the Program or its derivative works. These actions are
|
183 |
-
prohibited by law if you do not accept this License. Therefore, by
|
184 |
-
modifying or distributing the Program (or any work based on the
|
185 |
-
Program), you indicate your acceptance of this License to do so, and
|
186 |
-
all its terms and conditions for copying, distributing or modifying
|
187 |
-
the Program or works based on it.
|
188 |
-
|
189 |
-
6. Each time you redistribute the Program (or any work based on the
|
190 |
-
Program), the recipient automatically receives a license from the
|
191 |
-
original licensor to copy, distribute or modify the Program subject to
|
192 |
-
these terms and conditions. You may not impose any further
|
193 |
-
restrictions on the recipients' exercise of the rights granted herein.
|
194 |
-
You are not responsible for enforcing compliance by third parties to
|
195 |
-
this License.
|
196 |
-
|
197 |
-
7. If, as a consequence of a court judgment or allegation of patent
|
198 |
-
infringement or for any other reason (not limited to patent issues),
|
199 |
-
conditions are imposed on you (whether by court order, agreement or
|
200 |
-
otherwise) that contradict the conditions of this License, they do not
|
201 |
-
excuse you from the conditions of this License. If you cannot
|
202 |
-
distribute so as to satisfy simultaneously your obligations under this
|
203 |
-
License and any other pertinent obligations, then as a consequence you
|
204 |
-
may not distribute the Program at all. For example, if a patent
|
205 |
-
license would not permit royalty-free redistribution of the Program by
|
206 |
-
all those who receive copies directly or indirectly through you, then
|
207 |
-
the only way you could satisfy both it and this License would be to
|
208 |
-
refrain entirely from distribution of the Program.
|
209 |
-
|
210 |
-
If any portion of this section is held invalid or unenforceable under
|
211 |
-
any particular circumstance, the balance of the section is intended to
|
212 |
-
apply and the section as a whole is intended to apply in other
|
213 |
-
circumstances.
|
214 |
-
|
215 |
-
It is not the purpose of this section to induce you to infringe any
|
216 |
-
patents or other property right claims or to contest validity of any
|
217 |
-
such claims; this section has the sole purpose of protecting the
|
218 |
-
integrity of the free software distribution system, which is
|
219 |
-
implemented by public license practices. Many people have made
|
220 |
-
generous contributions to the wide range of software distributed
|
221 |
-
through that system in reliance on consistent application of that
|
222 |
-
system; it is up to the author/donor to decide if he or she is willing
|
223 |
-
to distribute software through any other system and a licensee cannot
|
224 |
-
impose that choice.
|
225 |
-
|
226 |
-
This section is intended to make thoroughly clear what is believed to
|
227 |
-
be a consequence of the rest of this License.
|
228 |
-
|
229 |
-
8. If the distribution and/or use of the Program is restricted in
|
230 |
-
certain countries either by patents or by copyrighted interfaces, the
|
231 |
-
original copyright holder who places the Program under this License
|
232 |
-
may add an explicit geographical distribution limitation excluding
|
233 |
-
those countries, so that distribution is permitted only in or among
|
234 |
-
countries not thus excluded. In such case, this License incorporates
|
235 |
-
the limitation as if written in the body of this License.
|
236 |
-
|
237 |
-
9. The Free Software Foundation may publish revised and/or new versions
|
238 |
-
of the General Public License from time to time. Such new versions will
|
239 |
-
be similar in spirit to the present version, but may differ in detail to
|
240 |
-
address new problems or concerns.
|
241 |
-
|
242 |
-
Each version is given a distinguishing version number. If the Program
|
243 |
-
specifies a version number of this License which applies to it and "any
|
244 |
-
later version", you have the option of following the terms and conditions
|
245 |
-
either of that version or of any later version published by the Free
|
246 |
-
Software Foundation. If the Program does not specify a version number of
|
247 |
-
this License, you may choose any version ever published by the Free Software
|
248 |
-
Foundation.
|
249 |
-
|
250 |
-
10. If you wish to incorporate parts of the Program into other free
|
251 |
-
programs whose distribution conditions are different, write to the author
|
252 |
-
to ask for permission. For software which is copyrighted by the Free
|
253 |
-
Software Foundation, write to the Free Software Foundation; we sometimes
|
254 |
-
make exceptions for this. Our decision will be guided by the two goals
|
255 |
-
of preserving the free status of all derivatives of our free software and
|
256 |
-
of promoting the sharing and reuse of software generally.
|
257 |
-
|
258 |
-
NO WARRANTY
|
259 |
-
|
260 |
-
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
|
261 |
-
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
|
262 |
-
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
|
263 |
-
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
|
264 |
-
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
265 |
-
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
|
266 |
-
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
|
267 |
-
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
|
268 |
-
REPAIR OR CORRECTION.
|
269 |
-
|
270 |
-
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
271 |
-
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
|
272 |
-
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
|
273 |
-
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
|
274 |
-
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
|
275 |
-
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
|
276 |
-
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
|
277 |
-
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
|
278 |
-
POSSIBILITY OF SUCH DAMAGES.
|
279 |
-
|
280 |
-
END OF TERMS AND CONDITIONS
|
281 |
-
|
282 |
-
How to Apply These Terms to Your New Programs
|
283 |
-
|
284 |
-
If you develop a new program, and you want it to be of the greatest
|
285 |
-
possible use to the public, the best way to achieve this is to make it
|
286 |
-
free software which everyone can redistribute and change under these terms.
|
287 |
-
|
288 |
-
To do so, attach the following notices to the program. It is safest
|
289 |
-
to attach them to the start of each source file to most effectively
|
290 |
-
convey the exclusion of warranty; and each file should have at least
|
291 |
-
the "copyright" line and a pointer to where the full notice is found.
|
292 |
-
|
293 |
-
<one line to give the program's name and a brief idea of what it does.>
|
294 |
-
Copyright (C) <year> <name of author>
|
295 |
-
|
296 |
-
This program is free software; you can redistribute it and/or modify
|
297 |
-
it under the terms of the GNU General Public License as published by
|
298 |
-
the Free Software Foundation; either version 2 of the License, or
|
299 |
-
(at your option) any later version.
|
300 |
-
|
301 |
-
This program is distributed in the hope that it will be useful,
|
302 |
-
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
303 |
-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
304 |
-
GNU General Public License for more details.
|
305 |
-
|
306 |
-
You should have received a copy of the GNU General Public License along
|
307 |
-
with this program; if not, write to the Free Software Foundation, Inc.,
|
308 |
-
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
309 |
-
|
310 |
-
Also add information on how to contact you by electronic and paper mail.
|
311 |
-
|
312 |
-
If the program is interactive, make it output a short notice like this
|
313 |
-
when it starts in an interactive mode:
|
314 |
-
|
315 |
-
Gnomovision version 69, Copyright (C) year name of author
|
316 |
-
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type 'show w'.
|
317 |
-
This is free software, and you are welcome to redistribute it
|
318 |
-
under certain conditions; type 'show c' for details.
|
319 |
-
|
320 |
-
The hypothetical commands 'show w' and 'show c' should show the appropriate
|
321 |
-
parts of the General Public License. Of course, the commands you use may
|
322 |
-
be called something other than 'show w' and 'show c'; they could even be
|
323 |
-
mouse-clicks or menu items--whatever suits your program.
|
324 |
-
|
325 |
-
You should also get your employer (if you work as a programmer) or your
|
326 |
-
school, if any, to sign a "copyright disclaimer" for the program, if
|
327 |
-
necessary. Here is a sample; alter the names:
|
328 |
-
|
329 |
-
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
|
330 |
-
'Gnomovision' (which makes passes at compilers) written by James Hacker.
|
331 |
-
|
332 |
-
<signature of Ty Coon>, 1 April 1989
|
333 |
-
Ty Coon, President of Vice
|
334 |
-
|
335 |
-
This General Public License does not permit incorporating your program into
|
336 |
-
proprietary programs. If your program is a subroutine library, you may
|
337 |
-
consider it more useful to permit linking proprietary applications with the
|
338 |
-
library. If this is what you want to do, use the GNU Lesser General
|
339 |
-
Public License instead of this License.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
include/add-ons/wordtwit-pro.php
DELETED
@@ -1,194 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
// Only define these functions if WordTwit Pro is installed
|
4 |
-
if ( defined( 'WORDTWIT_PRO_INSTALLED' ) ) {
|
5 |
-
|
6 |
-
function wptouch_wordtwit_get_enabled_accounts() {
|
7 |
-
$enabled_accounts = array();
|
8 |
-
|
9 |
-
if ( wordtwit_wptouch_has_accounts() ) {
|
10 |
-
$accounts = wordtwit_wptouch_get_accounts();
|
11 |
-
$settings = wptouch_get_settings();
|
12 |
-
|
13 |
-
foreach( $accounts as $name => $account ) {
|
14 |
-
if ( wptouch_wordtwit_current_user_can_use_account( $account ) ) {
|
15 |
-
$setting_name = 'wordtwit_account_' . $name;
|
16 |
-
|
17 |
-
if ( isset( $settings->$setting_name ) && $settings->$setting_name ) {
|
18 |
-
$enabled_accounts[ $name ] = $account;
|
19 |
-
}
|
20 |
-
}
|
21 |
-
}
|
22 |
-
}
|
23 |
-
|
24 |
-
return $enabled_accounts;
|
25 |
-
}
|
26 |
-
|
27 |
-
function wptouch_wordtwit_current_user_can_use_account( $account ) {
|
28 |
-
return ( wordtwit_current_user_can_tweet_from_account( $account ) && ( $account->is_global || $account->is_site_wide ) );
|
29 |
-
}
|
30 |
-
|
31 |
-
function wptouch_wordtwit_get_recent_tweets() {
|
32 |
-
$recent_tweets = array();
|
33 |
-
|
34 |
-
$enabled_accounts = wptouch_wordtwit_get_enabled_accounts();
|
35 |
-
if ( count( $enabled_accounts ) ) {
|
36 |
-
|
37 |
-
$hash_string = '';
|
38 |
-
foreach( $enabled_accounts as $name => $account ) {
|
39 |
-
$hash_string = $hash_string . $name;
|
40 |
-
}
|
41 |
-
|
42 |
-
$hash = md5( $hash_string );
|
43 |
-
|
44 |
-
$account_info = get_option( 'wordtwit_pro_tweet_cache' );
|
45 |
-
if ( $account_info ) {
|
46 |
-
if ( time() < ( $account_info->last_time + 300 ) ) {
|
47 |
-
if ( $account_info->hash == $hash ) {
|
48 |
-
return $account_info->cached_data;
|
49 |
-
}
|
50 |
-
}
|
51 |
-
}
|
52 |
-
|
53 |
-
foreach( $enabled_accounts as $name => $account ) {
|
54 |
-
$tweets = wordtwit_wptouch_get_tweets_for_account( $name );
|
55 |
-
|
56 |
-
foreach( $tweets as $num => $one_tweet ) {
|
57 |
-
$tweet = new stdClass;
|
58 |
-
|
59 |
-
$tweet->screen_name = $account->screen_name;
|
60 |
-
$tweet->profile_image_url = $account->profile_image_url;
|
61 |
-
$tweet->created_at = strtotime( $one_tweet['created_at'] );
|
62 |
-
$tweet->text = $one_tweet['text'];
|
63 |
-
$tweet->id = $one_tweet['id'];
|
64 |
-
$tweet->url = 'https://mobile.twitter.com/#!/' . $account->screen_name . '/status/' . $one_tweet['id'];
|
65 |
-
|
66 |
-
$recent_tweets[ $tweet->created_at ] = $tweet;
|
67 |
-
}
|
68 |
-
}
|
69 |
-
|
70 |
-
if ( count( $recent_tweets ) ) {
|
71 |
-
krsort( $recent_tweets );
|
72 |
-
}
|
73 |
-
|
74 |
-
if ( count( $recent_tweets ) > 10 ) {
|
75 |
-
$recent_tweets = array_slice( $recent_tweets, 0, 10 );
|
76 |
-
}
|
77 |
-
|
78 |
-
$account_info = new stdClass;
|
79 |
-
$account_info->cached_data = $recent_tweets;
|
80 |
-
$account_info->last_time = time();
|
81 |
-
$account_info->hash = $hash;
|
82 |
-
|
83 |
-
update_option( 'wordtwit_pro_tweet_cache', $account_info );
|
84 |
-
}
|
85 |
-
|
86 |
-
return $recent_tweets;
|
87 |
-
}
|
88 |
-
|
89 |
-
global $wordtwit_tweet;
|
90 |
-
global $wordtwit_tweet_iterator;
|
91 |
-
|
92 |
-
$wordtwit_tweet_iterator = false;
|
93 |
-
|
94 |
-
function wptouch_wordtwit_has_recent_tweets() {
|
95 |
-
global $wordtwit_tweet;
|
96 |
-
global $wordtwit_tweet_iterator;
|
97 |
-
|
98 |
-
if ( !$wordtwit_tweet_iterator ) {
|
99 |
-
$tweets = wptouch_wordtwit_get_recent_tweets();
|
100 |
-
|
101 |
-
$wordtwit_tweet_iterator = new WPtouchArrayIterator( $tweets );
|
102 |
-
}
|
103 |
-
|
104 |
-
return $wordtwit_tweet_iterator->have_items();
|
105 |
-
}
|
106 |
-
|
107 |
-
function wptouch_wordtwit_the_recent_tweet() {
|
108 |
-
global $wordtwit_tweet_iterator;
|
109 |
-
global $wordtwit_tweet;
|
110 |
-
|
111 |
-
if ( $wordtwit_tweet_iterator ) {
|
112 |
-
$wordtwit_tweet = $wordtwit_tweet_iterator->the_item();
|
113 |
-
}
|
114 |
-
}
|
115 |
-
|
116 |
-
function wptouch_wordtwit_recent_tweet_get_profile_image() {
|
117 |
-
global $wordtwit_tweet;
|
118 |
-
$image = false;
|
119 |
-
|
120 |
-
if ( isset( $wordtwit_tweet->profile_image_url ) ) {
|
121 |
-
$image = $wordtwit_tweet->profile_image_url;
|
122 |
-
}
|
123 |
-
|
124 |
-
return apply_filters( 'wptouch_wordtwit_recent_tweet_profile_image', $image );
|
125 |
-
}
|
126 |
-
|
127 |
-
function wptouch_wordtwit_recent_tweet_the_profile_image() {
|
128 |
-
echo wptouch_wordtwit_recent_tweet_get_profile_image();
|
129 |
-
}
|
130 |
-
|
131 |
-
function wptouch_wordtwit_recent_tweet_get_screen_name() {
|
132 |
-
global $wordtwit_tweet;
|
133 |
-
$screen_name = false;
|
134 |
-
|
135 |
-
if ( isset( $wordtwit_tweet->screen_name ) ) {
|
136 |
-
$screen_name = $wordtwit_tweet->screen_name;
|
137 |
-
}
|
138 |
-
|
139 |
-
return apply_filters( 'wptouch_wordtwit_recent_tweet_screen_name', $screen_name );
|
140 |
-
}
|
141 |
-
|
142 |
-
function wptouch_wordtwit_the_recent_tweet_url() {
|
143 |
-
global $wordtwit_tweet;
|
144 |
-
|
145 |
-
echo $wordtwit_tweet->url;
|
146 |
-
}
|
147 |
-
|
148 |
-
|
149 |
-
function wptouch_wordtwit_recent_tweet_the_screen_name() {
|
150 |
-
echo wptouch_wordtwit_recent_tweet_get_screen_name();
|
151 |
-
}
|
152 |
-
|
153 |
-
function wptouch_wordtwit_recent_tweet_get_text() {
|
154 |
-
global $wordtwit_tweet;
|
155 |
-
$tweet_text = false;
|
156 |
-
|
157 |
-
if ( isset( $wordtwit_tweet->text ) ) {
|
158 |
-
$tweet_text = $wordtwit_tweet->text;
|
159 |
-
}
|
160 |
-
|
161 |
-
return apply_filters( 'wptouch_wordtwit_recent_tweet_text', $tweet_text );
|
162 |
-
}
|
163 |
-
|
164 |
-
function wptouch_wordtwit_recent_tweet_the_text() {
|
165 |
-
echo wptouch_wordtwit_recent_tweet_get_text();
|
166 |
-
}
|
167 |
-
|
168 |
-
function wptouch_wordtwit_recent_tweet_the_hours_ago() {
|
169 |
-
global $wordtwit_tweet;
|
170 |
-
|
171 |
-
if ( isset( $wordtwit_tweet->created_at ) ) {
|
172 |
-
$seconds_since = time() - $wordtwit_tweet->created_at;
|
173 |
-
|
174 |
-
$secs_60 = 60;
|
175 |
-
$mins_60 = 3600;
|
176 |
-
$hours_24 = 24*3600;
|
177 |
-
|
178 |
-
if ( $seconds_since < $secs_60 ) {
|
179 |
-
echo sprintf( _n( '%d second ago', '%d seconds ago', $seconds_since, 'wptouch-pro' ), $seconds_since );
|
180 |
-
} else if ( $seconds_since < $mins_60 ) {
|
181 |
-
$mins = floor( $seconds_since / 60 );
|
182 |
-
echo sprintf( _n( '%d minute ago', '%d minutes ago', $mins, 'wptouch-pro' ), $mins );
|
183 |
-
} else if ( $seconds_since < $hours_24 ) {
|
184 |
-
$hours = floor( $seconds_since / 3600 );
|
185 |
-
echo sprintf( _n( '%d hour ago', '%d hours ago', $hours, 'wptouch-pro' ), $hours );
|
186 |
-
} else {
|
187 |
-
$days = floor( $seconds_since / $hours_24 );
|
188 |
-
echo sprintf( _n( '%d day ago', '%d days ago', $days, 'wptouch-pro' ), $days );
|
189 |
-
}
|
190 |
-
}
|
191 |
-
}
|
192 |
-
|
193 |
-
}
|
194 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
include/html/pro.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
|
1 |
+
<!-- not used in WPtouch 4 -->
|
include/js/wptouch.js
CHANGED
@@ -21,6 +21,9 @@ jQuery( '#footer .back-to-top' ).click( function( e ) {
|
|
21 |
});
|
22 |
|
23 |
function doWPtouchReady() {
|
|
|
|
|
|
|
24 |
// Shortcode
|
25 |
var shortcodeDiv = jQuery( '.wptouch-sc-content' );
|
26 |
|
21 |
});
|
22 |
|
23 |
function doWPtouchReady() {
|
24 |
+
// Parse query vars json
|
25 |
+
wptouchMain.query_vars = jQuery.parseJSON( wptouchMain.query_vars );
|
26 |
+
|
27 |
// Shortcode
|
28 |
var shortcodeDiv = jQuery( '.wptouch-sc-content' );
|
29 |
|
lang/wptouch-pro-3.pot
DELETED
@@ -1,2737 +0,0 @@
|
|
1 |
-
# Copyright (C) 2013
|
2 |
-
# This file is distributed under the same license as the package.
|
3 |
-
msgid ""
|
4 |
-
msgstr ""
|
5 |
-
"Project-Id-Version: \n"
|
6 |
-
"Report-Msgid-Bugs-To: http://wordpress.org/tag/combined\n"
|
7 |
-
"POT-Creation-Date: 2013-11-26 12:08:18+00:00\n"
|
8 |
-
"MIME-Version: 1.0\n"
|
9 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
-
"Content-Transfer-Encoding: 8bit\n"
|
11 |
-
"PO-Revision-Date: 2013-MO-DA HO:MI+ZONE\n"
|
12 |
-
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
13 |
-
"Language-Team: LANGUAGE <LL@li.org>\n"
|
14 |
-
|
15 |
-
#: wptouch-pro-3/admin/html/help.php:1
|
16 |
-
msgid "WPtouch Pro Help & Account Links"
|
17 |
-
msgstr ""
|
18 |
-
|
19 |
-
#: wptouch-pro-3/admin/html/help.php:3
|
20 |
-
msgid "Support Forums"
|
21 |
-
msgstr ""
|
22 |
-
|
23 |
-
#: wptouch-pro-3/admin/html/help.php:4
|
24 |
-
msgid "Documentation"
|
25 |
-
msgstr ""
|
26 |
-
|
27 |
-
#: wptouch-pro-3/admin/html/help.php:5
|
28 |
-
msgid "Account & Downloads"
|
29 |
-
msgstr ""
|
30 |
-
|
31 |
-
#: wptouch-pro-3/admin/html/help.php:6
|
32 |
-
msgid "BraveNewCode on Twitter"
|
33 |
-
msgstr ""
|
34 |
-
|
35 |
-
#: wptouch-pro-3/admin/html/help.php:7
|
36 |
-
msgid "Plugin Licensing Terms"
|
37 |
-
msgstr ""
|
38 |
-
|
39 |
-
#: wptouch-pro-3/admin/html/notification-center.php:5
|
40 |
-
msgid "Notifications"
|
41 |
-
msgstr ""
|
42 |
-
|
43 |
-
#: wptouch-pro-3/admin/html/notification-content.php:20
|
44 |
-
msgid "No notifications"
|
45 |
-
msgstr ""
|
46 |
-
|
47 |
-
#: wptouch-pro-3/admin/html/plugin-area.php:7
|
48 |
-
msgid ""
|
49 |
-
"This copy of WPtouch Pro is unlicensed! Please %sactivate your license%s, or "
|
50 |
-
"%spurchase a license%s to enable automatic updates and full product support "
|
51 |
-
"from us!"
|
52 |
-
msgstr ""
|
53 |
-
|
54 |
-
#: wptouch-pro-3/admin/html/plugin-area.php:9
|
55 |
-
msgid ""
|
56 |
-
"This copy of WPtouch Pro is unlicensed! Please contact the site "
|
57 |
-
"administrator regarding product licensing."
|
58 |
-
msgstr ""
|
59 |
-
|
60 |
-
#: wptouch-pro-3/admin/pages/custom/wptouch-admin-license.php:9
|
61 |
-
msgid "License Details"
|
62 |
-
msgstr ""
|
63 |
-
|
64 |
-
#: wptouch-pro-3/admin/pages/custom/wptouch-admin-license.php:11
|
65 |
-
msgid "Note"
|
66 |
-
msgstr ""
|
67 |
-
|
68 |
-
#: wptouch-pro-3/admin/pages/custom/wptouch-admin-license.php:12
|
69 |
-
msgid "Once you activate, this page will be hidden."
|
70 |
-
msgstr ""
|
71 |
-
|
72 |
-
#: wptouch-pro-3/admin/pages/custom/wptouch-admin-license.php:15
|
73 |
-
msgid "It will only reappear if you reset your WPtouch Pro settings."
|
74 |
-
msgstr ""
|
75 |
-
|
76 |
-
#: wptouch-pro-3/admin/pages/custom/wptouch-admin-license.php:18
|
77 |
-
msgid "Account E-Mail Address"
|
78 |
-
msgstr ""
|
79 |
-
|
80 |
-
#: wptouch-pro-3/admin/pages/custom/wptouch-admin-license.php:20
|
81 |
-
msgid "Product License Key"
|
82 |
-
msgstr ""
|
83 |
-
|
84 |
-
#: wptouch-pro-3/admin/pages/custom/wptouch-admin-license.php:23
|
85 |
-
#: wptouch-pro-3/admin/settings/html/theme-browser-item.php:14
|
86 |
-
#: wptouch-pro-3/pro/settings/html/extension-browser-item.php:71
|
87 |
-
#: wptouch-pro-3/pro/settings/html/theme-browser-item.php:109
|
88 |
-
msgid "Activate"
|
89 |
-
msgstr ""
|
90 |
-
|
91 |
-
#: wptouch-pro-3/admin/pages/custom/wptouch-admin-license.php:33
|
92 |
-
msgid "Success."
|
93 |
-
msgstr ""
|
94 |
-
|
95 |
-
#: wptouch-pro-3/admin/pages/custom/wptouch-admin-license.php:34
|
96 |
-
msgid "Activation Complete. Enjoy WPtouch Pro!"
|
97 |
-
msgstr ""
|
98 |
-
|
99 |
-
#: wptouch-pro-3/admin/pages/custom/wptouch-admin-license.php:38
|
100 |
-
msgid "E-mail address or license key rejected"
|
101 |
-
msgstr ""
|
102 |
-
|
103 |
-
#: wptouch-pro-3/admin/pages/custom/wptouch-admin-license.php:39
|
104 |
-
msgid ""
|
105 |
-
"The bravenewcode.com server rejected your E-Mail address and/or License Key. "
|
106 |
-
"Please check they are correct and try again."
|
107 |
-
msgstr ""
|
108 |
-
|
109 |
-
#: wptouch-pro-3/admin/pages/custom/wptouch-admin-license.php:43
|
110 |
-
msgid "No licenses remaining."
|
111 |
-
msgstr ""
|
112 |
-
|
113 |
-
#: wptouch-pro-3/admin/pages/custom/wptouch-admin-license.php:44
|
114 |
-
msgid "You have used all your activations. What do you want to do?"
|
115 |
-
msgstr ""
|
116 |
-
|
117 |
-
#: wptouch-pro-3/admin/pages/custom/wptouch-admin-license.php:45
|
118 |
-
msgid "Upgrade My License"
|
119 |
-
msgstr ""
|
120 |
-
|
121 |
-
#: wptouch-pro-3/admin/pages/custom/wptouch-admin-license.php:46
|
122 |
-
msgid "Contact support for assistance"
|
123 |
-
msgstr ""
|
124 |
-
|
125 |
-
#: wptouch-pro-3/admin/pages/custom/wptouch-admin-license.php:50
|
126 |
-
msgid "The server is unavailable."
|
127 |
-
msgstr ""
|
128 |
-
|
129 |
-
#: wptouch-pro-3/admin/pages/custom/wptouch-admin-license.php:51
|
130 |
-
msgid "The bravenewcode.com server currently cannot authorize your License."
|
131 |
-
msgstr ""
|
132 |
-
|
133 |
-
#: wptouch-pro-3/admin/pages/custom/wptouch-admin-license.php:52
|
134 |
-
msgid "Please %scontact us%s and let us know about it."
|
135 |
-
msgstr ""
|
136 |
-
|
137 |
-
#: wptouch-pro-3/admin/pages/wptouch-admin-general-settings.php:3
|
138 |
-
#: wptouch-pro-3/themes/foundation/root-functions.php:10
|
139 |
-
msgid "General"
|
140 |
-
msgstr ""
|
141 |
-
|
142 |
-
#: wptouch-pro-3/admin/pages/wptouch-admin-general-settings.php:4
|
143 |
-
msgid "Compatibility"
|
144 |
-
msgstr ""
|
145 |
-
|
146 |
-
#: wptouch-pro-3/admin/pages/wptouch-admin-general-settings.php:10
|
147 |
-
msgid "Auto-detect"
|
148 |
-
msgstr ""
|
149 |
-
|
150 |
-
#: wptouch-pro-3/admin/pages/wptouch-admin-general-settings.php:45
|
151 |
-
msgid "Site Title & Byline"
|
152 |
-
msgstr ""
|
153 |
-
|
154 |
-
#: wptouch-pro-3/admin/pages/wptouch-admin-general-settings.php:51
|
155 |
-
msgid "WPtouch Pro site title"
|
156 |
-
msgstr ""
|
157 |
-
|
158 |
-
#: wptouch-pro-3/admin/pages/wptouch-admin-general-settings.php:52
|
159 |
-
msgid ""
|
160 |
-
"If the title of your site is long, you can shorten it for display within "
|
161 |
-
"WPtouch Pro themes."
|
162 |
-
msgstr ""
|
163 |
-
|
164 |
-
#: wptouch-pro-3/admin/pages/wptouch-admin-general-settings.php:59
|
165 |
-
msgid "Display %sPowered by WPtouch Pro%s in footer"
|
166 |
-
msgstr ""
|
167 |
-
|
168 |
-
#: wptouch-pro-3/admin/pages/wptouch-admin-general-settings.php:71
|
169 |
-
msgid "Regionalization"
|
170 |
-
msgstr ""
|
171 |
-
|
172 |
-
#: wptouch-pro-3/admin/pages/wptouch-admin-general-settings.php:77
|
173 |
-
msgid "Language"
|
174 |
-
msgstr ""
|
175 |
-
|
176 |
-
#: wptouch-pro-3/admin/pages/wptouch-admin-general-settings.php:78
|
177 |
-
msgid ""
|
178 |
-
"The WPtouch Pro admin panel & supported themes will be shown in this "
|
179 |
-
"locale."
|
180 |
-
msgstr ""
|
181 |
-
|
182 |
-
#: wptouch-pro-3/admin/pages/wptouch-admin-general-settings.php:86
|
183 |
-
msgid "Translate administration panel text"
|
184 |
-
msgstr ""
|
185 |
-
|
186 |
-
#: wptouch-pro-3/admin/pages/wptouch-admin-general-settings.php:97
|
187 |
-
msgid "Display Mode"
|
188 |
-
msgstr ""
|
189 |
-
|
190 |
-
#: wptouch-pro-3/admin/pages/wptouch-admin-general-settings.php:103
|
191 |
-
msgid "Theme Display"
|
192 |
-
msgstr ""
|
193 |
-
|
194 |
-
#: wptouch-pro-3/admin/pages/wptouch-admin-general-settings.php:108
|
195 |
-
msgid "Normal (active for all mobile visitors)"
|
196 |
-
msgstr ""
|
197 |
-
|
198 |
-
#: wptouch-pro-3/admin/pages/wptouch-admin-general-settings.php:109
|
199 |
-
msgid "Preview (active only for logged-in site administrators)"
|
200 |
-
msgstr ""
|
201 |
-
|
202 |
-
#: wptouch-pro-3/admin/pages/wptouch-admin-general-settings.php:110
|
203 |
-
msgid "Disabled (mobile theme will never show)"
|
204 |
-
msgstr ""
|
205 |
-
|
206 |
-
#: wptouch-pro-3/admin/pages/wptouch-admin-general-settings.php:119
|
207 |
-
msgid "Landing Page"
|
208 |
-
msgstr ""
|
209 |
-
|
210 |
-
#: wptouch-pro-3/admin/pages/wptouch-admin-general-settings.php:125
|
211 |
-
msgid "WPtouch Pro landing page"
|
212 |
-
msgstr ""
|
213 |
-
|
214 |
-
#: wptouch-pro-3/admin/pages/wptouch-admin-general-settings.php:130
|
215 |
-
msgid "Default (same as WordPress)"
|
216 |
-
msgstr ""
|
217 |
-
|
218 |
-
#: wptouch-pro-3/admin/pages/wptouch-admin-general-settings.php:131
|
219 |
-
msgid "Select from WordPress pages"
|
220 |
-
msgstr ""
|
221 |
-
|
222 |
-
#: wptouch-pro-3/admin/pages/wptouch-admin-general-settings.php:132
|
223 |
-
msgctxt "Refers to a custom landing page"
|
224 |
-
msgid "Custom"
|
225 |
-
msgstr ""
|
226 |
-
|
227 |
-
#: wptouch-pro-3/admin/pages/wptouch-admin-general-settings.php:139
|
228 |
-
msgid "Custom Slug or URL"
|
229 |
-
msgstr ""
|
230 |
-
|
231 |
-
#: wptouch-pro-3/admin/pages/wptouch-admin-general-settings.php:140
|
232 |
-
msgid "Enter a Slug (i.e. \"/home\") or a full URL path"
|
233 |
-
msgstr ""
|
234 |
-
|
235 |
-
#: wptouch-pro-3/admin/pages/wptouch-admin-general-settings.php:150
|
236 |
-
msgid "Desktop / Mobile Switching"
|
237 |
-
msgstr ""
|
238 |
-
|
239 |
-
#: wptouch-pro-3/admin/pages/wptouch-admin-general-settings.php:156
|
240 |
-
msgid "1st time visitors see desktop theme"
|
241 |
-
msgstr ""
|
242 |
-
|
243 |
-
#: wptouch-pro-3/admin/pages/wptouch-admin-general-settings.php:157
|
244 |
-
msgid "Your regular theme will be shown to 1st time mobile visitors."
|
245 |
-
msgstr ""
|
246 |
-
|
247 |
-
#: wptouch-pro-3/admin/pages/wptouch-admin-general-settings.php:164
|
248 |
-
msgid "Show switch link in mobile view"
|
249 |
-
msgstr ""
|
250 |
-
|
251 |
-
#: wptouch-pro-3/admin/pages/wptouch-admin-general-settings.php:165
|
252 |
-
msgid ""
|
253 |
-
"Will show toggle buttons in the theme's footer allowing users to switch to "
|
254 |
-
"your desktop theme. Is not shown in Web-App Mode."
|
255 |
-
msgstr ""
|
256 |
-
|
257 |
-
#: wptouch-pro-3/admin/pages/wptouch-admin-general-settings.php:172
|
258 |
-
msgid "Choose the target for the mobile switch link"
|
259 |
-
msgstr ""
|
260 |
-
|
261 |
-
#: wptouch-pro-3/admin/pages/wptouch-admin-general-settings.php:177
|
262 |
-
msgid "Current page"
|
263 |
-
msgstr ""
|
264 |
-
|
265 |
-
#: wptouch-pro-3/admin/pages/wptouch-admin-general-settings.php:178
|
266 |
-
msgid "Home page"
|
267 |
-
msgstr ""
|
268 |
-
|
269 |
-
#: wptouch-pro-3/admin/pages/wptouch-admin-general-settings.php:184
|
270 |
-
msgid "Desktop theme switch buttons"
|
271 |
-
msgstr ""
|
272 |
-
|
273 |
-
#: wptouch-pro-3/admin/pages/wptouch-admin-general-settings.php:185
|
274 |
-
msgid ""
|
275 |
-
"Allows visitors to switch from your desktop theme to your mobile theme. You "
|
276 |
-
"can also customize the placement of Switch buttons by placing the "
|
277 |
-
"wptouch_desktop_switch_link() template tag somewhere in your desktop theme."
|
278 |
-
msgstr ""
|
279 |
-
|
280 |
-
#: wptouch-pro-3/admin/pages/wptouch-admin-general-settings.php:189
|
281 |
-
msgid "Automatically inserted inline"
|
282 |
-
msgstr ""
|
283 |
-
|
284 |
-
#: wptouch-pro-3/admin/pages/wptouch-admin-general-settings.php:190
|
285 |
-
msgid "Automatically inserted with AJAX (better for caching)"
|
286 |
-
msgstr ""
|
287 |
-
|
288 |
-
#: wptouch-pro-3/admin/pages/wptouch-admin-general-settings.php:191
|
289 |
-
msgid "Template tag"
|
290 |
-
msgstr ""
|
291 |
-
|
292 |
-
#: wptouch-pro-3/admin/pages/wptouch-admin-general-settings.php:200
|
293 |
-
msgid "Custom Code"
|
294 |
-
msgstr ""
|
295 |
-
|
296 |
-
#: wptouch-pro-3/admin/pages/wptouch-admin-general-settings.php:206
|
297 |
-
msgid "HTML, JavaScript, statistics or custom code"
|
298 |
-
msgstr ""
|
299 |
-
|
300 |
-
#: wptouch-pro-3/admin/pages/wptouch-admin-general-settings.php:207
|
301 |
-
msgid "Enter any custom code here to be output in the theme footer."
|
302 |
-
msgstr ""
|
303 |
-
|
304 |
-
#: wptouch-pro-3/admin/pages/wptouch-admin-general-settings.php:217
|
305 |
-
msgid "Custom Stylesheet"
|
306 |
-
msgstr ""
|
307 |
-
|
308 |
-
#: wptouch-pro-3/admin/pages/wptouch-admin-general-settings.php:223
|
309 |
-
msgid "URL to a custom CSS file to load"
|
310 |
-
msgstr ""
|
311 |
-
|
312 |
-
#: wptouch-pro-3/admin/pages/wptouch-admin-general-settings.php:224
|
313 |
-
msgid "Useful if you have specific compatibility CSS you need to add."
|
314 |
-
msgstr ""
|
315 |
-
|
316 |
-
#: wptouch-pro-3/admin/pages/wptouch-admin-general-settings.php:234
|
317 |
-
msgid "Shortcodes"
|
318 |
-
msgstr ""
|
319 |
-
|
320 |
-
#: wptouch-pro-3/admin/pages/wptouch-admin-general-settings.php:240
|
321 |
-
msgid "Remove these shortcodes when WPtouch Pro is active"
|
322 |
-
msgstr ""
|
323 |
-
|
324 |
-
#: wptouch-pro-3/admin/pages/wptouch-admin-general-settings.php:241
|
325 |
-
msgid "Enter a comma separated list of shortcodes to remove."
|
326 |
-
msgstr ""
|
327 |
-
|
328 |
-
#: wptouch-pro-3/admin/pages/wptouch-admin-general-settings.php:251
|
329 |
-
msgid "Ignored URLs"
|
330 |
-
msgstr ""
|
331 |
-
|
332 |
-
#: wptouch-pro-3/admin/pages/wptouch-admin-general-settings.php:257
|
333 |
-
msgid "Do not load WPtouch Pro on these URLs/Pages"
|
334 |
-
msgstr ""
|
335 |
-
|
336 |
-
#: wptouch-pro-3/admin/pages/wptouch-admin-general-settings.php:258
|
337 |
-
msgid ""
|
338 |
-
"Each permalink URL fragment should be on its own line and relative, e.g. \"/"
|
339 |
-
"about\" or \"/products/store\""
|
340 |
-
msgstr ""
|
341 |
-
|
342 |
-
#: wptouch-pro-3/admin/pages/wptouch-admin-general-settings.php:268
|
343 |
-
msgid "Desktop Theme"
|
344 |
-
msgstr ""
|
345 |
-
|
346 |
-
#: wptouch-pro-3/admin/pages/wptouch-admin-general-settings.php:274
|
347 |
-
msgid "Try to include desktop theme functions.php file"
|
348 |
-
msgstr ""
|
349 |
-
|
350 |
-
#: wptouch-pro-3/admin/pages/wptouch-admin-general-settings.php:275
|
351 |
-
msgid ""
|
352 |
-
"This may be required for desktop themes with unique features that are not "
|
353 |
-
"showing when WPtouch Pro is active."
|
354 |
-
msgstr ""
|
355 |
-
|
356 |
-
#: wptouch-pro-3/admin/pages/wptouch-admin-general-settings.php:282
|
357 |
-
msgid "Method to load file"
|
358 |
-
msgstr ""
|
359 |
-
|
360 |
-
#: wptouch-pro-3/admin/pages/wptouch-admin-general-settings.php:287
|
361 |
-
msgid "Include file directly"
|
362 |
-
msgstr ""
|
363 |
-
|
364 |
-
#: wptouch-pro-3/admin/pages/wptouch-admin-general-settings.php:288
|
365 |
-
msgid "Translate and create new files"
|
366 |
-
msgstr ""
|
367 |
-
|
368 |
-
#: wptouch-pro-3/admin/pages/wptouch-admin-general-settings.php:297
|
369 |
-
msgid "Custom User-Agents"
|
370 |
-
msgstr ""
|
371 |
-
|
372 |
-
#: wptouch-pro-3/admin/pages/wptouch-admin-general-settings.php:303
|
373 |
-
msgid "User-agents (line separated)"
|
374 |
-
msgstr ""
|
375 |
-
|
376 |
-
#: wptouch-pro-3/admin/pages/wptouch-admin-general-settings.php:304
|
377 |
-
msgid ""
|
378 |
-
"Adding additional user-agents will force WPtouch Pro to be active for "
|
379 |
-
"matching browsers."
|
380 |
-
msgstr ""
|
381 |
-
|
382 |
-
#: wptouch-pro-3/admin/pages/wptouch-admin-general-settings.php:318
|
383 |
-
msgid "Backup & Import"
|
384 |
-
msgstr ""
|
385 |
-
|
386 |
-
#: wptouch-pro-3/admin/pages/wptouch-admin-general-settings.php:324
|
387 |
-
msgid "Automatically backup settings to the %s folder"
|
388 |
-
msgstr ""
|
389 |
-
|
390 |
-
#: wptouch-pro-3/admin/pages/wptouch-admin-general-settings.php:326
|
391 |
-
msgid "WPtouch Pro backups your settings each time they are saved."
|
392 |
-
msgstr ""
|
393 |
-
|
394 |
-
#: wptouch-pro-3/admin/pages/wptouch-admin-general-settings.php:337
|
395 |
-
msgid "Tools & Debug"
|
396 |
-
msgstr ""
|
397 |
-
|
398 |
-
#: wptouch-pro-3/admin/pages/wptouch-admin-general-settings.php:343
|
399 |
-
msgid ""
|
400 |
-
"Use jQuery 2.0 in themes (faster for mobile devices) instead of WordPress' "
|
401 |
-
"version"
|
402 |
-
msgstr ""
|
403 |
-
|
404 |
-
#: wptouch-pro-3/admin/pages/wptouch-admin-general-settings.php:344
|
405 |
-
msgid ""
|
406 |
-
"jQuery 2.0 is significantly smaller and faster than previous jQuery versions "
|
407 |
-
"- may cause problems with other plugins, use carefully."
|
408 |
-
msgstr ""
|
409 |
-
|
410 |
-
#: wptouch-pro-3/admin/pages/wptouch-admin-general-settings.php:351
|
411 |
-
msgid "Show load times and query counts in the footer"
|
412 |
-
msgstr ""
|
413 |
-
|
414 |
-
#: wptouch-pro-3/admin/pages/wptouch-admin-general-settings.php:352
|
415 |
-
msgid "Helps you find slow pages/posts on your site."
|
416 |
-
msgstr ""
|
417 |
-
|
418 |
-
#: wptouch-pro-3/admin/pages/wptouch-admin-general-settings.php:359
|
419 |
-
msgid "Enable debug log"
|
420 |
-
msgstr ""
|
421 |
-
|
422 |
-
#: wptouch-pro-3/admin/pages/wptouch-admin-general-settings.php:360
|
423 |
-
msgid "Creates a debug file to help diagnose installation issues."
|
424 |
-
msgstr ""
|
425 |
-
|
426 |
-
#: wptouch-pro-3/admin/pages/wptouch-admin-general-settings.php:371
|
427 |
-
msgid "WordPress Plugins"
|
428 |
-
msgstr ""
|
429 |
-
|
430 |
-
#: wptouch-pro-3/admin/pages/wptouch-admin-general-settings.php:384
|
431 |
-
msgid "Admin Mode"
|
432 |
-
msgstr ""
|
433 |
-
|
434 |
-
#: wptouch-pro-3/admin/pages/wptouch-admin-general-settings.php:390
|
435 |
-
msgid "Admin panel settings shown"
|
436 |
-
msgstr ""
|
437 |
-
|
438 |
-
#: wptouch-pro-3/admin/pages/wptouch-admin-general-settings.php:395
|
439 |
-
msgid "Default"
|
440 |
-
msgstr ""
|
441 |
-
|
442 |
-
#: wptouch-pro-3/admin/pages/wptouch-admin-general-settings.php:396
|
443 |
-
#: wptouch-pro-3/admin/settings/html/button.php:5
|
444 |
-
#: wptouch-pro-3/admin/settings/html/checkbox.php:6
|
445 |
-
#: wptouch-pro-3/admin/settings/html/custom-latest-posts.php:4
|
446 |
-
#: wptouch-pro-3/admin/settings/html/list.php:16
|
447 |
-
#: wptouch-pro-3/admin/settings/html/numeric.php:12
|
448 |
-
#: wptouch-pro-3/admin/settings/html/radiolist.php:12
|
449 |
-
#: wptouch-pro-3/admin/settings/html/text.php:8
|
450 |
-
#: wptouch-pro-3/admin/settings/html/textarea.php:8
|
451 |
-
msgid "Advanced"
|
452 |
-
msgstr ""
|
453 |
-
|
454 |
-
#: wptouch-pro-3/admin/pages/wptouch-admin-menus.php:3
|
455 |
-
msgid "Theme Menus"
|
456 |
-
msgstr ""
|
457 |
-
|
458 |
-
#: wptouch-pro-3/admin/pages/wptouch-admin-menus.php:4
|
459 |
-
msgid "Menu Setup"
|
460 |
-
msgstr ""
|
461 |
-
|
462 |
-
#: wptouch-pro-3/admin/pages/wptouch-admin-menus.php:5
|
463 |
-
msgid "Icon Upload & Sets"
|
464 |
-
msgstr ""
|
465 |
-
|
466 |
-
#: wptouch-pro-3/admin/pages/wptouch-admin-menus.php:22
|
467 |
-
msgid "WordPress Pages"
|
468 |
-
msgstr ""
|
469 |
-
|
470 |
-
#: wptouch-pro-3/admin/pages/wptouch-admin-menus.php:28
|
471 |
-
#: wptouch-pro-3/admin/settings/html/icon_menu_area.php:6
|
472 |
-
#: wptouch-pro-3/themes/foundation/modules/advertising/advertising.php:180
|
473 |
-
#: wptouch-pro-3/themes/foundation/modules/media/media.php:59
|
474 |
-
#: wptouch-pro-3-extras/extensions/infinity-cache/infinity-cache.php:206
|
475 |
-
msgid "None"
|
476 |
-
msgstr ""
|
477 |
-
|
478 |
-
#: wptouch-pro-3/admin/pages/wptouch-admin-menus.php:66
|
479 |
-
msgid "Menu Options"
|
480 |
-
msgstr ""
|
481 |
-
|
482 |
-
#: wptouch-pro-3/admin/pages/wptouch-admin-menus.php:72
|
483 |
-
msgid "Enable parent items as links"
|
484 |
-
msgstr ""
|
485 |
-
|
486 |
-
#: wptouch-pro-3/admin/pages/wptouch-admin-menus.php:73
|
487 |
-
msgid "If disabled, parent menu items will only toggle child items."
|
488 |
-
msgstr ""
|
489 |
-
|
490 |
-
#: wptouch-pro-3/admin/pages/wptouch-admin-menus.php:80
|
491 |
-
msgid "Use menu icons"
|
492 |
-
msgstr ""
|
493 |
-
|
494 |
-
#: wptouch-pro-3/admin/pages/wptouch-admin-menus.php:104
|
495 |
-
msgid "Icon Upload"
|
496 |
-
msgstr ""
|
497 |
-
|
498 |
-
#: wptouch-pro-3/admin/pages/wptouch-admin-menus.php:117
|
499 |
-
msgid "Uploaded Icons"
|
500 |
-
msgstr ""
|
501 |
-
|
502 |
-
#: wptouch-pro-3/admin/pages/wptouch-admin-menus.php:130
|
503 |
-
msgid "Icon Sets"
|
504 |
-
msgstr ""
|
505 |
-
|
506 |
-
#: wptouch-pro-3/admin/pages/wptouch-admin-themes-and-addons.php:3
|
507 |
-
msgid "Themes"
|
508 |
-
msgstr ""
|
509 |
-
|
510 |
-
#: wptouch-pro-3/admin/pages/wptouch-admin-themes-and-addons.php:4
|
511 |
-
msgid "Extensions"
|
512 |
-
msgstr ""
|
513 |
-
|
514 |
-
#: wptouch-pro-3/admin/pages/wptouch-admin-touchboard.php:3
|
515 |
-
#: wptouch-pro-3/core/admin-menu.php:34 wptouch-pro-3/core/admin-menu.php:38
|
516 |
-
msgid "What's New"
|
517 |
-
msgstr ""
|
518 |
-
|
519 |
-
#: wptouch-pro-3/admin/settings/html/addon-browser-item.php:38
|
520 |
-
#: wptouch-pro-3/admin/settings/html/installed_icon_sets_ajax.php:8
|
521 |
-
#: wptouch-pro-3/admin/settings/html/installed_icon_sets_ajax.php:20
|
522 |
-
#: wptouch-pro-3/admin/settings/html/theme-browser-item.php:59
|
523 |
-
#: wptouch-pro-3/pro/settings/html/extension-browser-item.php:41
|
524 |
-
#: wptouch-pro-3/pro/settings/html/theme-browser-item.php:62
|
525 |
-
msgid "by %s"
|
526 |
-
msgstr ""
|
527 |
-
|
528 |
-
#: wptouch-pro-3/admin/settings/html/addon-browser-item.php:43
|
529 |
-
msgid "This add-on is only available in WPtouch Pro"
|
530 |
-
msgstr ""
|
531 |
-
|
532 |
-
#: wptouch-pro-3/admin/settings/html/backup.php:1
|
533 |
-
msgid "Download Backup File"
|
534 |
-
msgstr ""
|
535 |
-
|
536 |
-
#: wptouch-pro-3/admin/settings/html/backup.php:2
|
537 |
-
msgid "Restore Backup File"
|
538 |
-
msgstr ""
|
539 |
-
|
540 |
-
#: wptouch-pro-3/admin/settings/html/button.php:6
|
541 |
-
#: wptouch-pro-3/admin/settings/html/checkbox.php:7
|
542 |
-
#: wptouch-pro-3/admin/settings/html/custom-latest-posts.php:8
|
543 |
-
#: wptouch-pro-3/admin/settings/html/list.php:20
|
544 |
-
#: wptouch-pro-3/admin/settings/html/numeric.php:16
|
545 |
-
#: wptouch-pro-3/admin/settings/html/radiolist.php:14
|
546 |
-
#: wptouch-pro-3/admin/settings/html/text.php:9
|
547 |
-
#: wptouch-pro-3/admin/settings/html/textarea.php:9
|
548 |
-
msgid "New"
|
549 |
-
msgstr ""
|
550 |
-
|
551 |
-
#: wptouch-pro-3/admin/settings/html/color.php:6
|
552 |
-
msgid "Undo"
|
553 |
-
msgstr ""
|
554 |
-
|
555 |
-
#: wptouch-pro-3/admin/settings/html/color.php:7
|
556 |
-
msgid "Desktop theme colors"
|
557 |
-
msgstr ""
|
558 |
-
|
559 |
-
#: wptouch-pro-3/admin/settings/html/color.php:7
|
560 |
-
msgid "Palette"
|
561 |
-
msgstr ""
|
562 |
-
|
563 |
-
#: wptouch-pro-3/admin/settings/html/custom-latest-posts.php:1
|
564 |
-
msgid "Custom latest posts page"
|
565 |
-
msgstr ""
|
566 |
-
|
567 |
-
#: wptouch-pro-3/admin/settings/html/custom_icon_management.php:3
|
568 |
-
msgid "No icons have been uploaded yet"
|
569 |
-
msgstr ""
|
570 |
-
|
571 |
-
#: wptouch-pro-3/admin/settings/html/custom_icon_management.php:12
|
572 |
-
#: wptouch-pro-3/admin/settings/html/image-upload.php:13
|
573 |
-
#: wptouch-pro-3/admin/settings/html/theme-browser-item.php:18
|
574 |
-
#: wptouch-pro-3/pro/settings/html/theme-browser-item.php:115
|
575 |
-
msgid "Delete"
|
576 |
-
msgstr ""
|
577 |
-
|
578 |
-
#: wptouch-pro-3/admin/settings/html/custom_icon_upload.php:3
|
579 |
-
msgid "Upload Icon"
|
580 |
-
msgstr ""
|
581 |
-
|
582 |
-
#: wptouch-pro-3/admin/settings/html/custom_icon_upload.php:4
|
583 |
-
#: wptouch-pro-3/admin/settings/html/image-upload.php:15
|
584 |
-
msgid "Upload Complete!"
|
585 |
-
msgstr ""
|
586 |
-
|
587 |
-
#: wptouch-pro-3/admin/settings/html/custom_icon_upload.php:9
|
588 |
-
msgid "Ready to upload"
|
589 |
-
msgstr ""
|
590 |
-
|
591 |
-
#: wptouch-pro-3/admin/settings/html/debuginfo.php:12
|
592 |
-
msgid "View Debug File"
|
593 |
-
msgstr ""
|
594 |
-
|
595 |
-
#: wptouch-pro-3/admin/settings/html/debuginfo.php:16
|
596 |
-
#: wptouch-pro-3/admin/settings/html/debuginfo.php:18
|
597 |
-
msgid "Your Server Configuration"
|
598 |
-
msgstr ""
|
599 |
-
|
600 |
-
#: wptouch-pro-3/admin/settings/html/icon_menu_area.php:5
|
601 |
-
msgid "Check All"
|
602 |
-
msgstr ""
|
603 |
-
|
604 |
-
#: wptouch-pro-3/admin/settings/html/icon_menu_area.php:7
|
605 |
-
msgid "Reset"
|
606 |
-
msgstr ""
|
607 |
-
|
608 |
-
#: wptouch-pro-3/admin/settings/html/icon_menu_area.php:9
|
609 |
-
#: wptouch-pro-3-extras/themes/bio/default/header-bottom.php:13
|
610 |
-
#: wptouch-pro-3-extras/themes/classic-redux/default/header-bottom.php:21
|
611 |
-
#: wptouch-pro-3-extras/themes/classic-redux/default/header-bottom.php:32
|
612 |
-
#: wptouch-pro-3-extras/themes/classic-redux/default/header-bottom.php:112
|
613 |
-
#: wptouch-pro-3-extras/themes/hammock/default/header-bottom.php:23
|
614 |
-
#: wptouch-pro-3-extras/themes/hammock/default/header-bottom.php:36
|
615 |
-
#: wptouch-pro-3-extras/themes/hammock/root-functions.php:82
|
616 |
-
#: wptouch-pro-3-extras/themes/scaffold/default/header-bottom.php:13
|
617 |
-
msgid "Menu"
|
618 |
-
msgstr ""
|
619 |
-
|
620 |
-
#: wptouch-pro-3/admin/settings/html/icon_menu_area.php:19
|
621 |
-
msgid "Active menus used in this theme."
|
622 |
-
msgstr ""
|
623 |
-
|
624 |
-
#: wptouch-pro-3/admin/settings/html/icon_menu_area.php:23
|
625 |
-
msgid "Show/Hide"
|
626 |
-
msgstr ""
|
627 |
-
|
628 |
-
#: wptouch-pro-3/admin/settings/html/icon_menu_area.php:24
|
629 |
-
msgid "Menu Item"
|
630 |
-
msgstr ""
|
631 |
-
|
632 |
-
#: wptouch-pro-3/admin/settings/html/icon_menu_area.php:44
|
633 |
-
msgid "Icon Set"
|
634 |
-
msgstr ""
|
635 |
-
|
636 |
-
#: wptouch-pro-3/admin/settings/html/icon_menu_area.php:54
|
637 |
-
msgid "Drag icons to associate them with menu items"
|
638 |
-
msgstr ""
|
639 |
-
|
640 |
-
#: wptouch-pro-3/admin/settings/html/icon_menu_area.php:79
|
641 |
-
msgid "You don't have any custom icons yet."
|
642 |
-
msgstr ""
|
643 |
-
|
644 |
-
#: wptouch-pro-3/admin/settings/html/icon_menu_area.php:94
|
645 |
-
msgid "Default Icon"
|
646 |
-
msgstr ""
|
647 |
-
|
648 |
-
#: wptouch-pro-3/admin/settings/html/icon_menu_area.php:95
|
649 |
-
msgid "applies to all unset icons"
|
650 |
-
msgstr ""
|
651 |
-
|
652 |
-
#: wptouch-pro-3/admin/settings/html/icon_menu_area.php:103
|
653 |
-
msgid "Trash"
|
654 |
-
msgstr ""
|
655 |
-
|
656 |
-
#: wptouch-pro-3/admin/settings/html/icon_menu_area.php:104
|
657 |
-
msgid "drag icon here to reset"
|
658 |
-
msgstr ""
|
659 |
-
|
660 |
-
#: wptouch-pro-3/admin/settings/html/image-upload.php:11
|
661 |
-
msgid "Upload"
|
662 |
-
msgstr ""
|
663 |
-
|
664 |
-
#: wptouch-pro-3/admin/settings/html/installed_icon_sets.php:2
|
665 |
-
msgid "Gathering information about available icon sets..."
|
666 |
-
msgstr ""
|
667 |
-
|
668 |
-
#: wptouch-pro-3/admin/settings/html/installed_icon_sets.php:4
|
669 |
-
#: wptouch-pro-3/core/notifications.php:264
|
670 |
-
msgid ""
|
671 |
-
"The %s%s%s directory is not currently writable. %sPlease fix this issue to "
|
672 |
-
"enable installation of additional icon sets."
|
673 |
-
msgstr ""
|
674 |
-
|
675 |
-
#: wptouch-pro-3/admin/settings/html/installed_icon_sets_ajax.php:4
|
676 |
-
#: wptouch-pro-3/core/class-wptouch-pro.php:1555
|
677 |
-
#: wptouch-pro-3/core/class-wptouch-pro.php:1556
|
678 |
-
#: wptouch-pro-3/core/config.php:54
|
679 |
-
msgid "Custom Icons"
|
680 |
-
msgstr ""
|
681 |
-
|
682 |
-
#: wptouch-pro-3/admin/settings/html/installed_icon_sets_ajax.php:9
|
683 |
-
#: wptouch-pro-3/admin/settings/html/installed_icon_sets_ajax.php:22
|
684 |
-
msgid "Installed"
|
685 |
-
msgstr ""
|
686 |
-
|
687 |
-
#: wptouch-pro-3/admin/settings/html/installed_icon_sets_ajax.php:21
|
688 |
-
msgid "Installing..."
|
689 |
-
msgstr ""
|
690 |
-
|
691 |
-
#: wptouch-pro-3/admin/settings/html/installed_icon_sets_ajax.php:21
|
692 |
-
#: wptouch-pro-3/pro/settings/html/extension-browser-item.php:66
|
693 |
-
#: wptouch-pro-3/pro/settings/html/theme-browser-item.php:96
|
694 |
-
msgid "Install"
|
695 |
-
msgstr ""
|
696 |
-
|
697 |
-
#: wptouch-pro-3/admin/settings/html/installed_icon_sets_ajax.php:23
|
698 |
-
msgid "Unable to Install"
|
699 |
-
msgstr ""
|
700 |
-
|
701 |
-
#: wptouch-pro-3/admin/settings/html/plugin-compat-ajax.php:11
|
702 |
-
#: wptouch-pro-3/themes/foundation/modules/custom-posts/custom-posts.php:64
|
703 |
-
msgid "Enable %s"
|
704 |
-
msgstr ""
|
705 |
-
|
706 |
-
#: wptouch-pro-3/admin/settings/html/plugin-compat-ajax.php:12
|
707 |
-
msgid ""
|
708 |
-
"When unchecked, %s will be disabled for users viewing your WPtouch Pro theme."
|
709 |
-
msgstr ""
|
710 |
-
|
711 |
-
#: wptouch-pro-3/admin/settings/html/plugin-compat-ajax.php:20
|
712 |
-
msgid "No plugins to disable."
|
713 |
-
msgstr ""
|
714 |
-
|
715 |
-
#: wptouch-pro-3/admin/settings/html/plugin-compat.php:3
|
716 |
-
msgid "Your active plugin list is refreshing"
|
717 |
-
msgstr ""
|
718 |
-
|
719 |
-
#: wptouch-pro-3/admin/settings/html/redirect.php:17
|
720 |
-
msgid "WordPress Page"
|
721 |
-
msgstr ""
|
722 |
-
|
723 |
-
#: wptouch-pro-3/admin/settings/html/restore.php:2
|
724 |
-
msgid ""
|
725 |
-
"Please paste your encoded settings below and save to restore your settings."
|
726 |
-
msgstr ""
|
727 |
-
|
728 |
-
#: wptouch-pro-3/admin/settings/html/theme-browser-item.php:6
|
729 |
-
#: wptouch-pro-3/pro/settings/html/theme-browser-item.php:6
|
730 |
-
#: wptouch-pro-3/pro/settings/html/theme-browser-item.php:10
|
731 |
-
msgid "Click to view screenshots"
|
732 |
-
msgstr ""
|
733 |
-
|
734 |
-
#: wptouch-pro-3/admin/settings/html/theme-browser-item.php:11
|
735 |
-
#: wptouch-pro-3/pro/settings/html/extension-browser-item.php:74
|
736 |
-
#: wptouch-pro-3/pro/settings/html/theme-browser-item.php:105
|
737 |
-
msgid "Setup"
|
738 |
-
msgstr ""
|
739 |
-
|
740 |
-
#: wptouch-pro-3/admin/settings/html/theme-browser-item.php:16
|
741 |
-
#: wptouch-pro-3/pro/settings/html/theme-browser-item.php:112
|
742 |
-
msgid "Copy"
|
743 |
-
msgstr ""
|
744 |
-
|
745 |
-
#: wptouch-pro-3/admin/settings/html/theme-browser-item.php:54
|
746 |
-
#: wptouch-pro-3/pro/settings/html/theme-browser-item.php:57
|
747 |
-
msgid "This theme supports %s devices"
|
748 |
-
msgstr ""
|
749 |
-
|
750 |
-
#: wptouch-pro-3/admin/settings/html/theme-browser-item.php:64
|
751 |
-
#: wptouch-pro-3/pro/settings/html/theme-browser-item.php:69
|
752 |
-
msgid "Theme location: %s"
|
753 |
-
msgstr ""
|
754 |
-
|
755 |
-
#: wptouch-pro-3/admin/settings/html/theme-browser-item.php:65
|
756 |
-
#: wptouch-pro-3/pro/settings/html/extension-browser-item.php:48
|
757 |
-
#: wptouch-pro-3/pro/settings/html/theme-browser-item.php:70
|
758 |
-
msgid "Relative to your WordPress wp-content directory."
|
759 |
-
msgstr ""
|
760 |
-
|
761 |
-
#: wptouch-pro-3/admin/settings/html/touchboard.php:6
|
762 |
-
msgid "Quick Links"
|
763 |
-
msgstr ""
|
764 |
-
|
765 |
-
#: wptouch-pro-3/admin/settings/html/touchboard.php:8
|
766 |
-
msgid "What's New Changelog"
|
767 |
-
msgstr ""
|
768 |
-
|
769 |
-
#: wptouch-pro-3/admin/settings/html/touchboard.php:9
|
770 |
-
msgid "Product Knowledgebase"
|
771 |
-
msgstr ""
|
772 |
-
|
773 |
-
#: wptouch-pro-3/admin/settings/html/touchboard.php:10
|
774 |
-
msgid "Product Support"
|
775 |
-
msgstr ""
|
776 |
-
|
777 |
-
#: wptouch-pro-3/admin/settings/html/touchboard.php:11
|
778 |
-
msgid "Manage Account"
|
779 |
-
msgstr ""
|
780 |
-
|
781 |
-
#: wptouch-pro-3/admin/settings/html/touchboard.php:12
|
782 |
-
msgid "Manage License"
|
783 |
-
msgstr ""
|
784 |
-
|
785 |
-
#: wptouch-pro-3/admin/settings/html/touchboard.php:18
|
786 |
-
msgid "WPtouch News"
|
787 |
-
msgstr ""
|
788 |
-
|
789 |
-
#: wptouch-pro-3/admin/settings/html/touchboard.php:19
|
790 |
-
msgid "Read More"
|
791 |
-
msgstr ""
|
792 |
-
|
793 |
-
#: wptouch-pro-3/admin/settings/html/touchboard.php:25
|
794 |
-
msgid "WPtouch Updates"
|
795 |
-
msgstr ""
|
796 |
-
|
797 |
-
#: wptouch-pro-3/admin/settings/html/touchboard.php:35
|
798 |
-
msgid "What's New in %s"
|
799 |
-
msgstr ""
|
800 |
-
|
801 |
-
#: wptouch-pro-3/admin/settings/html/touchboard.php:38
|
802 |
-
#: wptouch-pro-3/admin/settings/html/touchboard.php:40
|
803 |
-
#: wptouch-pro-3/core/admin-menu.php:59
|
804 |
-
msgid "License"
|
805 |
-
msgstr ""
|
806 |
-
|
807 |
-
#: wptouch-pro-3/admin/settings/html/touchboard.php:38
|
808 |
-
msgid "Unlicensed"
|
809 |
-
msgstr ""
|
810 |
-
|
811 |
-
#: wptouch-pro-3/admin/settings/html/touchboard.php:38
|
812 |
-
#: wptouch-pro-3/core/class-wptouch-pro.php:453
|
813 |
-
msgid "Offline"
|
814 |
-
msgstr ""
|
815 |
-
|
816 |
-
#: wptouch-pro-3/admin/settings/html/touchboard.php:40
|
817 |
-
msgid "Active"
|
818 |
-
msgstr ""
|
819 |
-
|
820 |
-
#: wptouch-pro-3/admin/settings/html/touchboard.php:40
|
821 |
-
msgid "Online"
|
822 |
-
msgstr ""
|
823 |
-
|
824 |
-
#: wptouch-pro-3/admin/settings/html/touchboard.php:64
|
825 |
-
msgid "%s Change Log"
|
826 |
-
msgstr ""
|
827 |
-
|
828 |
-
#: wptouch-pro-3/admin/settings/html/user-agent-list.php:4
|
829 |
-
#: wptouch-pro-3/admin/settings/html/user-agent-list.php:6
|
830 |
-
msgid ""
|
831 |
-
"WPtouch Pro will be active when any of the following user-agents or user-"
|
832 |
-
"agent combinations are matched"
|
833 |
-
msgstr ""
|
834 |
-
|
835 |
-
#: wptouch-pro-3/admin/settings/include/custom-latest-posts.php:14
|
836 |
-
msgid "None (Use WordPress Settings)"
|
837 |
-
msgstr ""
|
838 |
-
|
839 |
-
#: wptouch-pro-3/core/admin-ajax.php:286
|
840 |
-
msgid "Version %s"
|
841 |
-
msgstr ""
|
842 |
-
|
843 |
-
#: wptouch-pro-3/core/admin-ajax.php:292
|
844 |
-
msgid ""
|
845 |
-
"There is a temporary issue retrieving the change-log. Please try again "
|
846 |
-
"later."
|
847 |
-
msgstr ""
|
848 |
-
|
849 |
-
#: wptouch-pro-3/core/admin-menu.php:39
|
850 |
-
msgid "Core Settings"
|
851 |
-
msgstr ""
|
852 |
-
|
853 |
-
#: wptouch-pro-3/core/admin-menu.php:40
|
854 |
-
msgid "Themes & Extensions"
|
855 |
-
msgstr ""
|
856 |
-
|
857 |
-
#: wptouch-pro-3/core/admin-menu.php:41
|
858 |
-
msgid "Theme Settings"
|
859 |
-
msgstr ""
|
860 |
-
|
861 |
-
#: wptouch-pro-3/core/admin-menu.php:41
|
862 |
-
msgid "%s Settings"
|
863 |
-
msgstr ""
|
864 |
-
|
865 |
-
#: wptouch-pro-3/core/admin-menu.php:46
|
866 |
-
msgid "Extension Settings"
|
867 |
-
msgstr ""
|
868 |
-
|
869 |
-
#: wptouch-pro-3/core/admin-menu.php:51 wptouch-pro-3/core/admin-menu.php:53
|
870 |
-
msgid "Menus"
|
871 |
-
msgstr ""
|
872 |
-
|
873 |
-
#: wptouch-pro-3/core/admin-page-templates.php:16
|
874 |
-
msgid "Mobile Page Template"
|
875 |
-
msgstr ""
|
876 |
-
|
877 |
-
#: wptouch-pro-3/core/admin-render.php:25
|
878 |
-
msgid "This copy of %s is currently unlicensed!"
|
879 |
-
msgstr ""
|
880 |
-
|
881 |
-
#: wptouch-pro-3/core/admin-render.php:27
|
882 |
-
msgid "Add a license %s"
|
883 |
-
msgstr ""
|
884 |
-
|
885 |
-
#: wptouch-pro-3/core/admin-render.php:81
|
886 |
-
msgid "Save Changes"
|
887 |
-
msgstr ""
|
888 |
-
|
889 |
-
#: wptouch-pro-3/core/admin-render.php:82
|
890 |
-
msgid "Preview Theme"
|
891 |
-
msgstr ""
|
892 |
-
|
893 |
-
#: wptouch-pro-3/core/admin-render.php:83
|
894 |
-
msgid "Reset Settings"
|
895 |
-
msgstr ""
|
896 |
-
|
897 |
-
#: wptouch-pro-3/core/class-wptouch-pro.php:232
|
898 |
-
msgid ""
|
899 |
-
"Automatic theme migration from uploads/wptouch-data directory failed. Please "
|
900 |
-
"manually move these files to wp-content/wptouch-data, or %scontact support%s "
|
901 |
-
"to address this issue."
|
902 |
-
msgstr ""
|
903 |
-
|
904 |
-
#: wptouch-pro-3/core/class-wptouch-pro.php:239
|
905 |
-
msgid ""
|
906 |
-
"Please wait, we are downloading a fresh copy of your active WPtouch theme "
|
907 |
-
"from the Cloud."
|
908 |
-
msgstr ""
|
909 |
-
|
910 |
-
#: wptouch-pro-3/core/class-wptouch-pro.php:242
|
911 |
-
msgid ""
|
912 |
-
"We were unable to install your WPtouch theme from the Cloud. Please visit "
|
913 |
-
"%sthis article%s for more information."
|
914 |
-
msgstr ""
|
915 |
-
|
916 |
-
#: wptouch-pro-3/core/class-wptouch-pro.php:449
|
917 |
-
msgid "Unsupported Browser"
|
918 |
-
msgstr ""
|
919 |
-
|
920 |
-
#: wptouch-pro-3/core/class-wptouch-pro.php:450
|
921 |
-
msgid "Theme Preview requires Chrome or Safari."
|
922 |
-
msgstr ""
|
923 |
-
|
924 |
-
#: wptouch-pro-3/core/class-wptouch-pro.php:451
|
925 |
-
msgid ""
|
926 |
-
"This will reset all WPtouch Pro settings.\n"
|
927 |
-
"Are you sure?"
|
928 |
-
msgstr ""
|
929 |
-
|
930 |
-
#: wptouch-pro-3/core/class-wptouch-pro.php:452
|
931 |
-
msgid ""
|
932 |
-
"This will reset all WPtouch Pro menu and icon settings.\n"
|
933 |
-
"Are you sure?"
|
934 |
-
msgstr ""
|
935 |
-
|
936 |
-
#: wptouch-pro-3/core/class-wptouch-pro.php:454
|
937 |
-
msgid ""
|
938 |
-
"You appear to be offline. Connect to the internet to see available "
|
939 |
-
"BraveNewCloud items."
|
940 |
-
msgstr ""
|
941 |
-
|
942 |
-
#: wptouch-pro-3/core/class-wptouch-pro.php:455
|
943 |
-
msgid "The item failed to download. Please refresh the page and try again."
|
944 |
-
msgstr ""
|
945 |
-
|
946 |
-
#: wptouch-pro-3/core/class-wptouch-pro.php:1069
|
947 |
-
#: wptouch-pro-3/themes/foundation/modules/webapp/webapp.php:207
|
948 |
-
msgid "Settings"
|
949 |
-
msgstr ""
|
950 |
-
|
951 |
-
#: wptouch-pro-3/core/class-wptouch-pro.php:1150
|
952 |
-
msgid "WPtouch Pro Changelog"
|
953 |
-
msgstr ""
|
954 |
-
|
955 |
-
#: wptouch-pro-3/core/class-wptouch-pro.php:2326
|
956 |
-
msgid "Directory Problem"
|
957 |
-
msgstr ""
|
958 |
-
|
959 |
-
#: wptouch-pro-3/core/class-wptouch-pro.php:2327
|
960 |
-
msgid "One or more required directories could not be created"
|
961 |
-
msgstr ""
|
962 |
-
|
963 |
-
#: wptouch-pro-3/core/globals.php:192
|
964 |
-
msgid "smartphone"
|
965 |
-
msgstr ""
|
966 |
-
|
967 |
-
#: wptouch-pro-3/core/globals.php:194
|
968 |
-
msgid "tablet"
|
969 |
-
msgstr ""
|
970 |
-
|
971 |
-
#: wptouch-pro-3/core/notifications.php:121
|
972 |
-
msgid "License Missing"
|
973 |
-
msgstr ""
|
974 |
-
|
975 |
-
#: wptouch-pro-3/core/notifications.php:122
|
976 |
-
msgid "This installation of WPtouch Pro is currently unlicensed."
|
977 |
-
msgstr ""
|
978 |
-
|
979 |
-
#: wptouch-pro-3/core/notifications.php:133
|
980 |
-
msgid "WPtouch Pro %s"
|
981 |
-
msgstr ""
|
982 |
-
|
983 |
-
#: wptouch-pro-3/core/notifications.php:134
|
984 |
-
msgid "A new version of WPtouch Pro is available."
|
985 |
-
msgstr ""
|
986 |
-
|
987 |
-
#: wptouch-pro-3/core/notifications.php:145
|
988 |
-
msgid "Theme Update Available"
|
989 |
-
msgstr ""
|
990 |
-
|
991 |
-
#: wptouch-pro-3/core/notifications.php:146
|
992 |
-
msgid "One or more updates are available for your installed themes."
|
993 |
-
msgstr ""
|
994 |
-
|
995 |
-
#: wptouch-pro-3/core/notifications.php:160
|
996 |
-
msgid "Extension Update Available"
|
997 |
-
msgstr ""
|
998 |
-
|
999 |
-
#: wptouch-pro-3/core/notifications.php:161
|
1000 |
-
msgid "One or more updates are available for your installed extensions."
|
1001 |
-
msgstr ""
|
1002 |
-
|
1003 |
-
#: wptouch-pro-3/core/notifications.php:173
|
1004 |
-
msgid "Preview Mode Enabled"
|
1005 |
-
msgstr ""
|
1006 |
-
|
1007 |
-
#: wptouch-pro-3/core/notifications.php:174
|
1008 |
-
msgid ""
|
1009 |
-
"Only logged-in admins can see the mobile theme right now. You can change "
|
1010 |
-
"this at any time in %sCore Settings%s under %sDisplay Mode%s."
|
1011 |
-
msgstr ""
|
1012 |
-
|
1013 |
-
#: wptouch-pro-3/core/notifications.php:182
|
1014 |
-
msgid "Theme Presentation Disabled"
|
1015 |
-
msgstr ""
|
1016 |
-
|
1017 |
-
#: wptouch-pro-3/core/notifications.php:183
|
1018 |
-
msgid ""
|
1019 |
-
"No one can see the mobile theme right now. You can change this at any time "
|
1020 |
-
"in %sCore Settings%s under %sDisplay Mode%s."
|
1021 |
-
msgstr ""
|
1022 |
-
|
1023 |
-
#: wptouch-pro-3/core/notifications.php:194
|
1024 |
-
msgid "WPtouch Pro prefers pretty permalinks to be enabled within WordPress."
|
1025 |
-
msgstr ""
|
1026 |
-
|
1027 |
-
#: wptouch-pro-3/core/notifications.php:204
|
1028 |
-
msgid "WPtouch Pro will not work fully in safe mode."
|
1029 |
-
msgstr ""
|
1030 |
-
|
1031 |
-
#: wptouch-pro-3/core/notifications.php:214
|
1032 |
-
#: wptouch-pro-3/core/notifications.php:224
|
1033 |
-
#: wptouch-pro-3/core/notifications.php:234
|
1034 |
-
msgid ""
|
1035 |
-
"Extra configuration is required. The plugin must be configured to exclude "
|
1036 |
-
"the user agents that WPtouch Pro uses."
|
1037 |
-
msgstr ""
|
1038 |
-
|
1039 |
-
#: wptouch-pro-3/core/notifications.php:244
|
1040 |
-
msgid ""
|
1041 |
-
"Extra configuration is required. Add paths to your active WPtouch Pro theme "
|
1042 |
-
"CSS and Javascript files as files to ignore in WPMinify."
|
1043 |
-
msgstr ""
|
1044 |
-
|
1045 |
-
#: wptouch-pro-3/core/notifications.php:254
|
1046 |
-
msgid ""
|
1047 |
-
"This plugin may not work correctly in WPtouch Pro, and should be disabled in "
|
1048 |
-
"the Plugin Compatibility section."
|
1049 |
-
msgstr ""
|
1050 |
-
|
1051 |
-
#: wptouch-pro-3/core/notifications.php:263
|
1052 |
-
msgid "Icon Installation Issue"
|
1053 |
-
msgstr ""
|
1054 |
-
|
1055 |
-
#: wptouch-pro-3/core/notifications.php:274
|
1056 |
-
msgid ""
|
1057 |
-
"WPtouch Pro 3 cannot co-exist with WPtouch 1.x. Disable it first in the "
|
1058 |
-
"WordPress Plugins settings."
|
1059 |
-
msgstr ""
|
1060 |
-
|
1061 |
-
#: wptouch-pro-3/core/notifications.php:284
|
1062 |
-
msgid ""
|
1063 |
-
"WPtouch Pro 3 cannot co-exist with WPtouch Pro 2.x. Disable it first in the "
|
1064 |
-
"WordPress Plugins settings."
|
1065 |
-
msgstr ""
|
1066 |
-
|
1067 |
-
#: wptouch-pro-3/include/add-ons/wordtwit-pro.php:179
|
1068 |
-
#: wptouch-pro-3/themes/foundation/modules/twitter/twitter.php:42
|
1069 |
-
msgid "%d second ago"
|
1070 |
-
msgid_plural "%d seconds ago"
|
1071 |
-
msgstr[0] ""
|
1072 |
-
msgstr[1] ""
|
1073 |
-
|
1074 |
-
#: wptouch-pro-3/include/add-ons/wordtwit-pro.php:182
|
1075 |
-
#: wptouch-pro-3/themes/foundation/modules/twitter/twitter.php:45
|
1076 |
-
msgid "%d minute ago"
|
1077 |
-
msgid_plural "%d minutes ago"
|
1078 |
-
msgstr[0] ""
|
1079 |
-
msgstr[1] ""
|
1080 |
-
|
1081 |
-
#: wptouch-pro-3/include/add-ons/wordtwit-pro.php:185
|
1082 |
-
#: wptouch-pro-3/themes/foundation/modules/twitter/twitter.php:48
|
1083 |
-
msgid "%d hour ago"
|
1084 |
-
msgid_plural "%d hours ago"
|
1085 |
-
msgstr[0] ""
|
1086 |
-
msgstr[1] ""
|
1087 |
-
|
1088 |
-
#: wptouch-pro-3/include/add-ons/wordtwit-pro.php:188
|
1089 |
-
#: wptouch-pro-3/themes/foundation/modules/twitter/twitter.php:51
|
1090 |
-
msgid "%d day ago"
|
1091 |
-
msgid_plural "%d days ago"
|
1092 |
-
msgstr[0] ""
|
1093 |
-
msgstr[1] ""
|
1094 |
-
|
1095 |
-
#: wptouch-pro-3/include/html/desktop-switch.php:2
|
1096 |
-
msgid "Desktop Version"
|
1097 |
-
msgstr ""
|
1098 |
-
|
1099 |
-
#: wptouch-pro-3/include/html/desktop-switch.php:2
|
1100 |
-
msgid "Switch To Mobile Version"
|
1101 |
-
msgstr ""
|
1102 |
-
|
1103 |
-
#: wptouch-pro-3/include/html/footer.php:2
|
1104 |
-
msgid "Powered by %s%s%s"
|
1105 |
-
msgstr ""
|
1106 |
-
|
1107 |
-
#: wptouch-pro-3/include/html/footer.php:3
|
1108 |
-
msgid "By %s"
|
1109 |
-
msgstr ""
|
1110 |
-
|
1111 |
-
#: wptouch-pro-3/include/html/load-times.php:2
|
1112 |
-
msgid "%d queries in %0.1f ms"
|
1113 |
-
msgstr ""
|
1114 |
-
|
1115 |
-
#: wptouch-pro-3/include/html/page-template.php:8
|
1116 |
-
msgid "Default Template"
|
1117 |
-
msgstr ""
|
1118 |
-
|
1119 |
-
#: wptouch-pro-3/pro/settings/html/extension-browser-item.php:35
|
1120 |
-
#: wptouch-pro-3/pro/settings/html/theme-browser-item.php:47
|
1121 |
-
msgid "Upgrading..."
|
1122 |
-
msgstr ""
|
1123 |
-
|
1124 |
-
#: wptouch-pro-3/pro/settings/html/extension-browser-item.php:35
|
1125 |
-
msgid "Upgrade to %s"
|
1126 |
-
msgstr ""
|
1127 |
-
|
1128 |
-
#: wptouch-pro-3/pro/settings/html/extension-browser-item.php:47
|
1129 |
-
msgid "Extension location: %s"
|
1130 |
-
msgstr ""
|
1131 |
-
|
1132 |
-
#: wptouch-pro-3/pro/settings/html/extension-browser-item.php:56
|
1133 |
-
#: wptouch-pro-3/pro/settings/html/theme-browser-item.php:81
|
1134 |
-
msgid "More Info"
|
1135 |
-
msgstr ""
|
1136 |
-
|
1137 |
-
#: wptouch-pro-3/pro/settings/html/extension-browser-item.php:59
|
1138 |
-
#: wptouch-pro-3/pro/settings/html/theme-browser-item.php:84
|
1139 |
-
msgid "Upgrade License"
|
1140 |
-
msgstr ""
|
1141 |
-
|
1142 |
-
#: wptouch-pro-3/pro/settings/html/extension-browser-item.php:61
|
1143 |
-
#: wptouch-pro-3/pro/settings/html/theme-browser-item.php:86
|
1144 |
-
msgid "Get License"
|
1145 |
-
msgstr ""
|
1146 |
-
|
1147 |
-
#: wptouch-pro-3/pro/settings/html/extension-browser-item.php:66
|
1148 |
-
#: wptouch-pro-3/pro/settings/html/theme-browser-item.php:95
|
1149 |
-
msgid "Downloading..."
|
1150 |
-
msgstr ""
|
1151 |
-
|
1152 |
-
#: wptouch-pro-3/pro/settings/html/extension-browser-item.php:75
|
1153 |
-
msgid "Deactivate"
|
1154 |
-
msgstr ""
|
1155 |
-
|
1156 |
-
#: wptouch-pro-3/pro/settings/html/extension-browser-pro.php:10
|
1157 |
-
msgid "Loading Cloud Extensions"
|
1158 |
-
msgstr ""
|
1159 |
-
|
1160 |
-
#: wptouch-pro-3/pro/settings/html/theme-browser-item.php:49
|
1161 |
-
msgid "Update to %s"
|
1162 |
-
msgstr ""
|
1163 |
-
|
1164 |
-
#: wptouch-pro-3/pro/settings/html/theme-browser-item.php:89
|
1165 |
-
msgid "Buy Now"
|
1166 |
-
msgstr ""
|
1167 |
-
|
1168 |
-
#: wptouch-pro-3/pro/settings/html/theme-browser-pro.php:11
|
1169 |
-
msgid "Loading Cloud Themes"
|
1170 |
-
msgstr ""
|
1171 |
-
|
1172 |
-
#: wptouch-pro-3/themes/foundation/default/404.php:6
|
1173 |
-
msgid "404 Not Found"
|
1174 |
-
msgstr ""
|
1175 |
-
|
1176 |
-
#: wptouch-pro-3/themes/foundation/default/404.php:8
|
1177 |
-
msgid "The post or page you requested is no longer available."
|
1178 |
-
msgstr ""
|
1179 |
-
|
1180 |
-
#: wptouch-pro-3/themes/foundation/default/attachment.php:43
|
1181 |
-
msgid "« previous in gallery"
|
1182 |
-
msgstr ""
|
1183 |
-
|
1184 |
-
#: wptouch-pro-3/themes/foundation/default/attachment.php:45
|
1185 |
-
msgid "next in gallery »"
|
1186 |
-
msgstr ""
|
1187 |
-
|
1188 |
-
#: wptouch-pro-3/themes/foundation/default/comments.php:10
|
1189 |
-
#: wptouch-pro-3-extras/themes/classic-redux/default/post-loop.php:33
|
1190 |
-
msgid "no responses"
|
1191 |
-
msgstr ""
|
1192 |
-
|
1193 |
-
#: wptouch-pro-3/themes/foundation/default/comments.php:10
|
1194 |
-
#: wptouch-pro-3-extras/themes/classic-redux/default/post-loop.php:33
|
1195 |
-
msgid "1 response"
|
1196 |
-
msgstr ""
|
1197 |
-
|
1198 |
-
#: wptouch-pro-3/themes/foundation/default/comments.php:10
|
1199 |
-
#: wptouch-pro-3-extras/themes/classic-redux/default/post-loop.php:33
|
1200 |
-
msgid "% responses"
|
1201 |
-
msgstr ""
|
1202 |
-
|
1203 |
-
#: wptouch-pro-3/themes/foundation/default/comments.php:20
|
1204 |
-
#: wptouch-pro-3/themes/foundation/default/comments.php:26
|
1205 |
-
msgid "Load More Comments…"
|
1206 |
-
msgstr ""
|
1207 |
-
|
1208 |
-
#: wptouch-pro-3/themes/foundation/default/comments.php:38
|
1209 |
-
msgid "Comments are closed"
|
1210 |
-
msgstr ""
|
1211 |
-
|
1212 |
-
#: wptouch-pro-3/themes/foundation/default/comments.php:48
|
1213 |
-
msgid "Cancel"
|
1214 |
-
msgstr ""
|
1215 |
-
|
1216 |
-
#: wptouch-pro-3/themes/foundation/default/comments.php:51
|
1217 |
-
msgid "Leave a Reply"
|
1218 |
-
msgstr ""
|
1219 |
-
|
1220 |
-
#: wptouch-pro-3/themes/foundation/default/comments.php:51
|
1221 |
-
msgid "Leave a Reply to %s"
|
1222 |
-
msgstr ""
|
1223 |
-
|
1224 |
-
#: wptouch-pro-3/themes/foundation/default/comments.php:54
|
1225 |
-
msgid "You must be %slogged in%s to post a comment."
|
1226 |
-
msgstr ""
|
1227 |
-
|
1228 |
-
#: wptouch-pro-3/themes/foundation/default/comments.php:61
|
1229 |
-
msgid "Logged in as"
|
1230 |
-
msgstr ""
|
1231 |
-
|
1232 |
-
#: wptouch-pro-3/themes/foundation/default/comments.php:61
|
1233 |
-
msgid "Log out"
|
1234 |
-
msgstr ""
|
1235 |
-
|
1236 |
-
#: wptouch-pro-3/themes/foundation/default/comments.php:65
|
1237 |
-
msgid "Name"
|
1238 |
-
msgstr ""
|
1239 |
-
|
1240 |
-
#: wptouch-pro-3/themes/foundation/default/comments.php:67
|
1241 |
-
#: wptouch-pro-3/themes/foundation/modules/social-links/social-links.php:78
|
1242 |
-
msgid "E-Mail"
|
1243 |
-
msgstr ""
|
1244 |
-
|
1245 |
-
#: wptouch-pro-3/themes/foundation/default/comments.php:69
|
1246 |
-
msgid "Website"
|
1247 |
-
msgstr ""
|
1248 |
-
|
1249 |
-
#: wptouch-pro-3/themes/foundation/default/comments.php:75
|
1250 |
-
msgid "Publish"
|
1251 |
-
msgstr ""
|
1252 |
-
|
1253 |
-
#: wptouch-pro-3/themes/foundation/default/formerror.php:6
|
1254 |
-
msgid "Comment Error"
|
1255 |
-
msgstr ""
|
1256 |
-
|
1257 |
-
#: wptouch-pro-3/themes/foundation/default/formerror.php:8
|
1258 |
-
msgid "Please enter all fields correctly to post a comment."
|
1259 |
-
msgstr ""
|
1260 |
-
|
1261 |
-
#: wptouch-pro-3/themes/foundation/default/formerror.php:9
|
1262 |
-
msgid "Go back"
|
1263 |
-
msgstr ""
|
1264 |
-
|
1265 |
-
#: wptouch-pro-3/themes/foundation/default/index.php:33
|
1266 |
-
#: wptouch-pro-3-extras/themes/classic-redux/default/index.php:34
|
1267 |
-
#: wptouch-pro-3-extras/themes/cms/default/header-bottom.php:60
|
1268 |
-
#: wptouch-pro-3-extras/themes/hammock/default/index.php:34
|
1269 |
-
msgid "newer posts"
|
1270 |
-
msgstr ""
|
1271 |
-
|
1272 |
-
#: wptouch-pro-3/themes/foundation/default/index.php:33
|
1273 |
-
#: wptouch-pro-3-extras/themes/classic-redux/default/index.php:34
|
1274 |
-
#: wptouch-pro-3-extras/themes/cms/default/header-bottom.php:56
|
1275 |
-
#: wptouch-pro-3-extras/themes/hammock/default/index.php:34
|
1276 |
-
msgid "older posts"
|
1277 |
-
msgstr ""
|
1278 |
-
|
1279 |
-
#: wptouch-pro-3/themes/foundation/default/nav-bar.php:6
|
1280 |
-
#: wptouch-pro-3-extras/themes/bauhaus/default/nav-bar.php:6
|
1281 |
-
msgid "previous post"
|
1282 |
-
msgstr ""
|
1283 |
-
|
1284 |
-
#: wptouch-pro-3/themes/foundation/default/nav-bar.php:12
|
1285 |
-
#: wptouch-pro-3-extras/themes/bauhaus/default/nav-bar.php:13
|
1286 |
-
msgid "next post"
|
1287 |
-
msgstr ""
|
1288 |
-
|
1289 |
-
#: wptouch-pro-3/themes/foundation/default/one-comment.php:12
|
1290 |
-
msgid "Your comment is awaiting moderation"
|
1291 |
-
msgstr ""
|
1292 |
-
|
1293 |
-
#: wptouch-pro-3/themes/foundation/default/related-posts.php:4
|
1294 |
-
msgid "Related"
|
1295 |
-
msgstr ""
|
1296 |
-
|
1297 |
-
#: wptouch-pro-3/themes/foundation/default/search.php:6
|
1298 |
-
#: wptouch-pro-3-extras/themes/bauhaus/default/search.php:6
|
1299 |
-
#: wptouch-pro-3-extras/themes/classic-redux/default/search.php:5
|
1300 |
-
#: wptouch-pro-3-extras/themes/hammock/default/search.php:5
|
1301 |
-
msgid "You searched for \"%s\""
|
1302 |
-
msgstr ""
|
1303 |
-
|
1304 |
-
#: wptouch-pro-3/themes/foundation/default/search.php:16
|
1305 |
-
#: wptouch-pro-3-extras/themes/classic-redux/default/search.php:15
|
1306 |
-
#: wptouch-pro-3-extras/themes/hammock/default/search.php:16
|
1307 |
-
msgid "%s results"
|
1308 |
-
msgstr ""
|
1309 |
-
|
1310 |
-
#: wptouch-pro-3/themes/foundation/default/search.php:36
|
1311 |
-
#: wptouch-pro-3-extras/themes/classic-redux/default/search.php:38
|
1312 |
-
#: wptouch-pro-3-extras/themes/hammock/default/search.php:40
|
1313 |
-
msgid "No search results found"
|
1314 |
-
msgstr ""
|
1315 |
-
|
1316 |
-
#: wptouch-pro-3/themes/foundation/default/search.php:45
|
1317 |
-
#: wptouch-pro-3-extras/themes/bauhaus/default/search.php:46
|
1318 |
-
#: wptouch-pro-3-extras/themes/classic-redux/default/search.php:47
|
1319 |
-
msgid "Load more %s results"
|
1320 |
-
msgstr ""
|
1321 |
-
|
1322 |
-
#: wptouch-pro-3/themes/foundation/default/single.php:13
|
1323 |
-
#: wptouch-pro-3-extras/themes/hammock/default/post-loop-menu.php:15
|
1324 |
-
#: wptouch-pro-3-extras/themes/hammock/default/post-loop.php:19
|
1325 |
-
msgid "By"
|
1326 |
-
msgstr ""
|
1327 |
-
|
1328 |
-
#: wptouch-pro-3/themes/foundation/default/switch-link.php:8
|
1329 |
-
msgid "mobile"
|
1330 |
-
msgstr ""
|
1331 |
-
|
1332 |
-
#: wptouch-pro-3/themes/foundation/default/switch-link.php:9
|
1333 |
-
msgid "desktop"
|
1334 |
-
msgstr ""
|
1335 |
-
|
1336 |
-
#: wptouch-pro-3/themes/foundation/modules/advertising/advertising.php:169
|
1337 |
-
msgid "Service"
|
1338 |
-
msgstr ""
|
1339 |
-
|
1340 |
-
#: wptouch-pro-3/themes/foundation/modules/advertising/advertising.php:175
|
1341 |
-
msgid "Choose a service"
|
1342 |
-
msgstr ""
|
1343 |
-
|
1344 |
-
#: wptouch-pro-3/themes/foundation/modules/advertising/advertising.php:181
|
1345 |
-
msgid "Google Adsense"
|
1346 |
-
msgstr ""
|
1347 |
-
|
1348 |
-
#: wptouch-pro-3/themes/foundation/modules/advertising/advertising.php:182
|
1349 |
-
msgctxt "Refers to a custom advertising service"
|
1350 |
-
msgid "Custom"
|
1351 |
-
msgstr ""
|
1352 |
-
|
1353 |
-
#: wptouch-pro-3/themes/foundation/modules/advertising/advertising.php:192
|
1354 |
-
msgid "Google AdSense"
|
1355 |
-
msgstr ""
|
1356 |
-
|
1357 |
-
#: wptouch-pro-3/themes/foundation/modules/advertising/advertising.php:195
|
1358 |
-
msgid "Publisher ID"
|
1359 |
-
msgstr ""
|
1360 |
-
|
1361 |
-
#: wptouch-pro-3/themes/foundation/modules/advertising/advertising.php:196
|
1362 |
-
msgid "Slot ID"
|
1363 |
-
msgstr ""
|
1364 |
-
|
1365 |
-
#: wptouch-pro-3/themes/foundation/modules/advertising/advertising.php:200
|
1366 |
-
msgid "Code Type"
|
1367 |
-
msgstr ""
|
1368 |
-
|
1369 |
-
#: wptouch-pro-3/themes/foundation/modules/advertising/advertising.php:212
|
1370 |
-
msgid "Custom Ads"
|
1371 |
-
msgstr ""
|
1372 |
-
|
1373 |
-
#: wptouch-pro-3/themes/foundation/modules/advertising/advertising.php:215
|
1374 |
-
msgid "Mobile advertising script"
|
1375 |
-
msgstr ""
|
1376 |
-
|
1377 |
-
#: wptouch-pro-3/themes/foundation/modules/advertising/advertising.php:224
|
1378 |
-
msgid "Ad Presentation"
|
1379 |
-
msgstr ""
|
1380 |
-
|
1381 |
-
#: wptouch-pro-3/themes/foundation/modules/advertising/advertising.php:230
|
1382 |
-
msgid "Theme location"
|
1383 |
-
msgstr ""
|
1384 |
-
|
1385 |
-
#: wptouch-pro-3/themes/foundation/modules/advertising/advertising.php:235
|
1386 |
-
msgid "In the header"
|
1387 |
-
msgstr ""
|
1388 |
-
|
1389 |
-
#: wptouch-pro-3/themes/foundation/modules/advertising/advertising.php:236
|
1390 |
-
msgid "Above the page content"
|
1391 |
-
msgstr ""
|
1392 |
-
|
1393 |
-
#: wptouch-pro-3/themes/foundation/modules/advertising/advertising.php:237
|
1394 |
-
msgid "Below the page content"
|
1395 |
-
msgstr ""
|
1396 |
-
|
1397 |
-
#: wptouch-pro-3/themes/foundation/modules/advertising/advertising.php:247
|
1398 |
-
msgid "Active Pages"
|
1399 |
-
msgstr ""
|
1400 |
-
|
1401 |
-
#: wptouch-pro-3/themes/foundation/modules/advertising/advertising.php:250
|
1402 |
-
msgid "Blog listings"
|
1403 |
-
msgstr ""
|
1404 |
-
|
1405 |
-
#: wptouch-pro-3/themes/foundation/modules/advertising/advertising.php:251
|
1406 |
-
msgid "Single posts"
|
1407 |
-
msgstr ""
|
1408 |
-
|
1409 |
-
#: wptouch-pro-3/themes/foundation/modules/advertising/advertising.php:252
|
1410 |
-
msgid "Static pages"
|
1411 |
-
msgstr ""
|
1412 |
-
|
1413 |
-
#: wptouch-pro-3/themes/foundation/modules/advertising/advertising.php:253
|
1414 |
-
msgid "Taxonomy"
|
1415 |
-
msgstr ""
|
1416 |
-
|
1417 |
-
#: wptouch-pro-3/themes/foundation/modules/advertising/advertising.php:254
|
1418 |
-
msgid "Search results"
|
1419 |
-
msgstr ""
|
1420 |
-
|
1421 |
-
#: wptouch-pro-3/themes/foundation/modules/base/base.php:69
|
1422 |
-
msgid "Loading"
|
1423 |
-
msgstr ""
|
1424 |
-
|
1425 |
-
#: wptouch-pro-3/themes/foundation/modules/base/preview-bar.php:2
|
1426 |
-
msgid "Theme Preview"
|
1427 |
-
msgstr ""
|
1428 |
-
|
1429 |
-
#: wptouch-pro-3/themes/foundation/modules/base/preview-bar.php:3
|
1430 |
-
msgid "Reload"
|
1431 |
-
msgstr ""
|
1432 |
-
|
1433 |
-
#: wptouch-pro-3/themes/foundation/modules/custom-posts/custom-posts.php:76
|
1434 |
-
msgid "Custom Post Support"
|
1435 |
-
msgstr ""
|
1436 |
-
|
1437 |
-
#: wptouch-pro-3/themes/foundation/modules/custom-posts/custom-posts.php:82
|
1438 |
-
msgid "Enable custom post-type support"
|
1439 |
-
msgstr ""
|
1440 |
-
|
1441 |
-
#: wptouch-pro-3/themes/foundation/modules/custom-posts/custom-posts.php:90
|
1442 |
-
msgid "Show custom post taxonomy"
|
1443 |
-
msgstr ""
|
1444 |
-
|
1445 |
-
#: wptouch-pro-3/themes/foundation/modules/custom-posts/custom-posts.php:102
|
1446 |
-
msgid "Custom Post Types"
|
1447 |
-
msgstr ""
|
1448 |
-
|
1449 |
-
#: wptouch-pro-3/themes/foundation/modules/featured/featured.php:231
|
1450 |
-
msgid "Featured Slider"
|
1451 |
-
msgstr ""
|
1452 |
-
|
1453 |
-
#: wptouch-pro-3/themes/foundation/modules/featured/featured.php:237
|
1454 |
-
msgid "Enable featured slider"
|
1455 |
-
msgstr ""
|
1456 |
-
|
1457 |
-
#: wptouch-pro-3/themes/foundation/modules/featured/featured.php:238
|
1458 |
-
msgid "Requires at least 2 entries to contain featured images"
|
1459 |
-
msgstr ""
|
1460 |
-
|
1461 |
-
#: wptouch-pro-3/themes/foundation/modules/featured/featured.php:245
|
1462 |
-
msgid "Maximum number of posts"
|
1463 |
-
msgstr ""
|
1464 |
-
|
1465 |
-
#: wptouch-pro-3/themes/foundation/modules/featured/featured.php:250
|
1466 |
-
msgid "3 posts"
|
1467 |
-
msgstr ""
|
1468 |
-
|
1469 |
-
#: wptouch-pro-3/themes/foundation/modules/featured/featured.php:251
|
1470 |
-
msgid "5 posts"
|
1471 |
-
msgstr ""
|
1472 |
-
|
1473 |
-
#: wptouch-pro-3/themes/foundation/modules/featured/featured.php:252
|
1474 |
-
msgid "10 posts"
|
1475 |
-
msgstr ""
|
1476 |
-
|
1477 |
-
#: wptouch-pro-3/themes/foundation/modules/featured/featured.php:258
|
1478 |
-
msgid "Automatically slide"
|
1479 |
-
msgstr ""
|
1480 |
-
|
1481 |
-
#: wptouch-pro-3/themes/foundation/modules/featured/featured.php:266
|
1482 |
-
msgid "Continuously slide"
|
1483 |
-
msgstr ""
|
1484 |
-
|
1485 |
-
#: wptouch-pro-3/themes/foundation/modules/featured/featured.php:274
|
1486 |
-
msgid "Grayscale images (CSS 3 effect)"
|
1487 |
-
msgstr ""
|
1488 |
-
|
1489 |
-
#: wptouch-pro-3/themes/foundation/modules/featured/featured.php:275
|
1490 |
-
msgid ""
|
1491 |
-
"Featured slider images will be in grayscale for devices that support CSS "
|
1492 |
-
"filters."
|
1493 |
-
msgstr ""
|
1494 |
-
|
1495 |
-
#: wptouch-pro-3/themes/foundation/modules/featured/featured.php:282
|
1496 |
-
msgid "Show title & date"
|
1497 |
-
msgstr ""
|
1498 |
-
|
1499 |
-
#: wptouch-pro-3/themes/foundation/modules/featured/featured.php:283
|
1500 |
-
msgid ""
|
1501 |
-
"If disabled, the title and date will not be shown. Note: some themes do not "
|
1502 |
-
"show the date."
|
1503 |
-
msgstr ""
|
1504 |
-
|
1505 |
-
#: wptouch-pro-3/themes/foundation/modules/featured/featured.php:290
|
1506 |
-
msgid "Featured slider posts also show in listings"
|
1507 |
-
msgstr ""
|
1508 |
-
|
1509 |
-
#: wptouch-pro-3/themes/foundation/modules/featured/featured.php:298
|
1510 |
-
msgid "Slide transition speed"
|
1511 |
-
msgstr ""
|
1512 |
-
|
1513 |
-
#: wptouch-pro-3/themes/foundation/modules/featured/featured.php:303
|
1514 |
-
msgid "Slow"
|
1515 |
-
msgstr ""
|
1516 |
-
|
1517 |
-
#: wptouch-pro-3/themes/foundation/modules/featured/featured.php:304
|
1518 |
-
msgid "Normal"
|
1519 |
-
msgstr ""
|
1520 |
-
|
1521 |
-
#: wptouch-pro-3/themes/foundation/modules/featured/featured.php:305
|
1522 |
-
msgid "Fast"
|
1523 |
-
msgstr ""
|
1524 |
-
|
1525 |
-
#: wptouch-pro-3/themes/foundation/modules/featured/featured.php:316
|
1526 |
-
msgid "Show latest posts"
|
1527 |
-
msgstr ""
|
1528 |
-
|
1529 |
-
#: wptouch-pro-3/themes/foundation/modules/featured/featured.php:317
|
1530 |
-
msgid "Show posts from a specific tag"
|
1531 |
-
msgstr ""
|
1532 |
-
|
1533 |
-
#: wptouch-pro-3/themes/foundation/modules/featured/featured.php:318
|
1534 |
-
msgid "Show posts from a specific category"
|
1535 |
-
msgstr ""
|
1536 |
-
|
1537 |
-
#: wptouch-pro-3/themes/foundation/modules/featured/featured.php:319
|
1538 |
-
msgid "Show only specific posts or pages"
|
1539 |
-
msgstr ""
|
1540 |
-
|
1541 |
-
#: wptouch-pro-3/themes/foundation/modules/featured/featured.php:325
|
1542 |
-
msgid "Only this tag"
|
1543 |
-
msgstr ""
|
1544 |
-
|
1545 |
-
#: wptouch-pro-3/themes/foundation/modules/featured/featured.php:334
|
1546 |
-
msgid "Only this category"
|
1547 |
-
msgstr ""
|
1548 |
-
|
1549 |
-
#: wptouch-pro-3/themes/foundation/modules/featured/featured.php:343
|
1550 |
-
msgid "Comma-separated list of post/page IDs"
|
1551 |
-
msgstr ""
|
1552 |
-
|
1553 |
-
#: wptouch-pro-3/themes/foundation/modules/google-fonts/google-fonts.php:10
|
1554 |
-
msgid "Browser Fonts"
|
1555 |
-
msgstr ""
|
1556 |
-
|
1557 |
-
#: wptouch-pro-3/themes/foundation/modules/google-fonts/google-fonts.php:18
|
1558 |
-
msgid "Typography"
|
1559 |
-
msgstr ""
|
1560 |
-
|
1561 |
-
#: wptouch-pro-3/themes/foundation/modules/google-fonts/google-fonts.php:24
|
1562 |
-
msgid "Font style"
|
1563 |
-
msgstr ""
|
1564 |
-
|
1565 |
-
#: wptouch-pro-3/themes/foundation/modules/google-fonts/google-fonts.php:25
|
1566 |
-
msgid ""
|
1567 |
-
"Choose a Google font pairing designed for this theme, or default browser "
|
1568 |
-
"fonts."
|
1569 |
-
msgstr ""
|
1570 |
-
|
1571 |
-
#: wptouch-pro-3/themes/foundation/modules/login/login-html.php:7
|
1572 |
-
msgid "Remember Me"
|
1573 |
-
msgstr ""
|
1574 |
-
|
1575 |
-
#: wptouch-pro-3/themes/foundation/modules/login/login-html.php:9
|
1576 |
-
msgid "Log In"
|
1577 |
-
msgstr ""
|
1578 |
-
|
1579 |
-
#: wptouch-pro-3/themes/foundation/modules/login/login-html.php:20
|
1580 |
-
#: wptouch-pro-3-extras/themes/classic-redux/default/header-bottom.php:51
|
1581 |
-
#: wptouch-pro-3-extras/themes/hammock/default/header-bottom.php:49
|
1582 |
-
#: wptouch-pro-3-extras/themes/simple/default/header-bottom.php:22
|
1583 |
-
msgid "Login"
|
1584 |
-
msgstr ""
|
1585 |
-
|
1586 |
-
#: wptouch-pro-3/themes/foundation/modules/login/login-html.php:29
|
1587 |
-
#: wptouch-pro-3-extras/extensions/infinity-cache/infinity-cache.php:207
|
1588 |
-
msgid "Sign-up"
|
1589 |
-
msgstr ""
|
1590 |
-
|
1591 |
-
#: wptouch-pro-3/themes/foundation/modules/login/login-html.php:30
|
1592 |
-
msgid "Lost password?"
|
1593 |
-
msgstr ""
|
1594 |
-
|
1595 |
-
#: wptouch-pro-3/themes/foundation/modules/login/login.php:22
|
1596 |
-
msgid "Account Username"
|
1597 |
-
msgstr ""
|
1598 |
-
|
1599 |
-
#: wptouch-pro-3/themes/foundation/modules/login/login.php:23
|
1600 |
-
msgid "Account Password"
|
1601 |
-
msgstr ""
|
1602 |
-
|
1603 |
-
#: wptouch-pro-3/themes/foundation/modules/login/login.php:32
|
1604 |
-
msgid "Login Form"
|
1605 |
-
msgstr ""
|
1606 |
-
|
1607 |
-
#: wptouch-pro-3/themes/foundation/modules/login/login.php:38
|
1608 |
-
msgid "Use fly-in login form"
|
1609 |
-
msgstr ""
|
1610 |
-
|
1611 |
-
#: wptouch-pro-3/themes/foundation/modules/login/login.php:39
|
1612 |
-
msgid ""
|
1613 |
-
"Will add login links and allow mobile visitors to login to your website from "
|
1614 |
-
"mobile devices"
|
1615 |
-
msgstr ""
|
1616 |
-
|
1617 |
-
#: wptouch-pro-3/themes/foundation/modules/login/login.php:46
|
1618 |
-
msgid "Show \"Sign-up\" and \"Lost Password?\" links"
|
1619 |
-
msgstr ""
|
1620 |
-
|
1621 |
-
#: wptouch-pro-3/themes/foundation/modules/media/media.php:48
|
1622 |
-
msgid "Video Handling"
|
1623 |
-
msgstr ""
|
1624 |
-
|
1625 |
-
#: wptouch-pro-3/themes/foundation/modules/media/media.php:60
|
1626 |
-
msgid "CSS only (HTML5 videos)"
|
1627 |
-
msgstr ""
|
1628 |
-
|
1629 |
-
#: wptouch-pro-3/themes/foundation/modules/media/media.php:61
|
1630 |
-
msgid "FitVids Method"
|
1631 |
-
msgstr ""
|
1632 |
-
|
1633 |
-
#: wptouch-pro-3/themes/foundation/modules/media/media.php:62
|
1634 |
-
msgid "Fluid-Width Method"
|
1635 |
-
msgstr ""
|
1636 |
-
|
1637 |
-
#: wptouch-pro-3/themes/foundation/modules/related-posts/related-posts.php:106
|
1638 |
-
msgid "Related Posts"
|
1639 |
-
msgstr ""
|
1640 |
-
|
1641 |
-
#: wptouch-pro-3/themes/foundation/modules/related-posts/related-posts.php:112
|
1642 |
-
msgid "Enable display of related posts"
|
1643 |
-
msgstr ""
|
1644 |
-
|
1645 |
-
#: wptouch-pro-3/themes/foundation/modules/related-posts/related-posts.php:120
|
1646 |
-
msgid "Maximum number of related posts to show"
|
1647 |
-
msgstr ""
|
1648 |
-
|
1649 |
-
#: wptouch-pro-3/themes/foundation/modules/sharing/sharing-html.php:1
|
1650 |
-
#: wptouch-pro-3-extras/themes/hammock/default/sharing-html.php:2
|
1651 |
-
msgid "Share"
|
1652 |
-
msgstr ""
|
1653 |
-
|
1654 |
-
#: wptouch-pro-3/themes/foundation/modules/sharing/sharing-html.php:1
|
1655 |
-
#: wptouch-pro-3-extras/themes/hammock/default/sharing-html.php:3
|
1656 |
-
msgid "Tweet"
|
1657 |
-
msgstr ""
|
1658 |
-
|
1659 |
-
#: wptouch-pro-3/themes/foundation/modules/sharing/sharing-html.php:1
|
1660 |
-
#: wptouch-pro-3-extras/themes/hammock/default/sharing-html.php:5
|
1661 |
-
msgid "Mail"
|
1662 |
-
msgstr ""
|
1663 |
-
|
1664 |
-
#: wptouch-pro-3/themes/foundation/modules/sharing/sharing.php:81
|
1665 |
-
#: wptouch-pro-3-extras/themes/hammock/root-functions.php:317
|
1666 |
-
msgid "Sharing"
|
1667 |
-
msgstr ""
|
1668 |
-
|
1669 |
-
#: wptouch-pro-3/themes/foundation/modules/sharing/sharing.php:87
|
1670 |
-
#: wptouch-pro-3-extras/themes/hammock/root-functions.php:323
|
1671 |
-
msgid "Show sharing links"
|
1672 |
-
msgstr ""
|
1673 |
-
|
1674 |
-
#: wptouch-pro-3/themes/foundation/modules/sharing/sharing.php:88
|
1675 |
-
#: wptouch-pro-3-extras/themes/hammock/root-functions.php:324
|
1676 |
-
msgid "Will show Facebook, Twitter, Google+ and Email buttons on single posts."
|
1677 |
-
msgstr ""
|
1678 |
-
|
1679 |
-
#: wptouch-pro-3/themes/foundation/modules/sharing/sharing.php:95
|
1680 |
-
msgid "Show sharing links on pages"
|
1681 |
-
msgstr ""
|
1682 |
-
|
1683 |
-
#: wptouch-pro-3/themes/foundation/modules/sharing/sharing.php:96
|
1684 |
-
msgid ""
|
1685 |
-
"Will show Facebook, Twitter, Google+ and Email buttons on pages as well as "
|
1686 |
-
"single posts."
|
1687 |
-
msgstr ""
|
1688 |
-
|
1689 |
-
#: wptouch-pro-3/themes/foundation/modules/sharing/sharing.php:103
|
1690 |
-
msgid "Sharing links location"
|
1691 |
-
msgstr ""
|
1692 |
-
|
1693 |
-
#: wptouch-pro-3/themes/foundation/modules/sharing/sharing.php:108
|
1694 |
-
msgid "Above post content"
|
1695 |
-
msgstr ""
|
1696 |
-
|
1697 |
-
#: wptouch-pro-3/themes/foundation/modules/sharing/sharing.php:109
|
1698 |
-
msgid "Below post content"
|
1699 |
-
msgstr ""
|
1700 |
-
|
1701 |
-
#: wptouch-pro-3/themes/foundation/modules/sharing/sharing.php:115
|
1702 |
-
msgid "Color scheme"
|
1703 |
-
msgstr ""
|
1704 |
-
|
1705 |
-
#: wptouch-pro-3/themes/foundation/modules/sharing/sharing.php:120
|
1706 |
-
msgid "Theme colors"
|
1707 |
-
msgstr ""
|
1708 |
-
|
1709 |
-
#: wptouch-pro-3/themes/foundation/modules/sharing/sharing.php:121
|
1710 |
-
msgid "Social network colors"
|
1711 |
-
msgstr ""
|
1712 |
-
|
1713 |
-
#: wptouch-pro-3/themes/foundation/modules/social-links/social-links.php:8
|
1714 |
-
msgid "Footer Social Links"
|
1715 |
-
msgstr ""
|
1716 |
-
|
1717 |
-
#: wptouch-pro-3/themes/foundation/modules/social-links/social-links.php:23
|
1718 |
-
msgid "Full URL to your Facebook page"
|
1719 |
-
msgstr ""
|
1720 |
-
|
1721 |
-
#: wptouch-pro-3/themes/foundation/modules/social-links/social-links.php:31
|
1722 |
-
msgid "Full URL to your Twitter profile"
|
1723 |
-
msgstr ""
|
1724 |
-
|
1725 |
-
#: wptouch-pro-3/themes/foundation/modules/social-links/social-links.php:39
|
1726 |
-
msgid "Full URL to your Google+ profile"
|
1727 |
-
msgstr ""
|
1728 |
-
|
1729 |
-
#: wptouch-pro-3/themes/foundation/modules/social-links/social-links.php:47
|
1730 |
-
msgid "Full URL to your Pinterest page"
|
1731 |
-
msgstr ""
|
1732 |
-
|
1733 |
-
#: wptouch-pro-3/themes/foundation/modules/social-links/social-links.php:55
|
1734 |
-
msgid "Full URL to your Vimeo page"
|
1735 |
-
msgstr ""
|
1736 |
-
|
1737 |
-
#: wptouch-pro-3/themes/foundation/modules/social-links/social-links.php:63
|
1738 |
-
msgid "Full URL to your %s profile"
|
1739 |
-
msgstr ""
|
1740 |
-
|
1741 |
-
#: wptouch-pro-3/themes/foundation/modules/social-links/social-links.php:70
|
1742 |
-
msgid "LinkedIn"
|
1743 |
-
msgstr ""
|
1744 |
-
|
1745 |
-
#: wptouch-pro-3/themes/foundation/modules/social-links/social-links.php:71
|
1746 |
-
msgid "Full URL to your LinkedIn profile"
|
1747 |
-
msgstr ""
|
1748 |
-
|
1749 |
-
#: wptouch-pro-3/themes/foundation/modules/social-links/social-links.php:79
|
1750 |
-
msgid "E-Mail address"
|
1751 |
-
msgstr ""
|
1752 |
-
|
1753 |
-
#: wptouch-pro-3/themes/foundation/modules/social-links/social-links.php:87
|
1754 |
-
msgid "Full URL to your RSS feed"
|
1755 |
-
msgstr ""
|
1756 |
-
|
1757 |
-
#: wptouch-pro-3/themes/foundation/modules/tablets/tablets.php:46
|
1758 |
-
msgid "iPad"
|
1759 |
-
msgstr ""
|
1760 |
-
|
1761 |
-
#: wptouch-pro-3/themes/foundation/modules/tablets/tablets.php:52
|
1762 |
-
#: wptouch-pro-3/themes/foundation/modules/webapp/webapp.php:268
|
1763 |
-
#: wptouch-pro-3/themes/foundation/modules/webapp/webapp.php:286
|
1764 |
-
#: wptouch-pro-3/themes/foundation/modules/webapp/webapp.php:304
|
1765 |
-
#: wptouch-pro-3/themes/foundation/modules/webapp/webapp.php:323
|
1766 |
-
#: wptouch-pro-3/themes/foundation/modules/webapp/webapp.php:331
|
1767 |
-
#: wptouch-pro-3/themes/foundation/modules/webapp/webapp.php:349
|
1768 |
-
#: wptouch-pro-3/themes/foundation/modules/webapp/webapp.php:357
|
1769 |
-
#: wptouch-pro-3/themes/foundation/root-functions.php:390
|
1770 |
-
#: wptouch-pro-3/themes/foundation/root-functions.php:408
|
1771 |
-
msgid "%d by %d pixels (PNG)"
|
1772 |
-
msgstr ""
|
1773 |
-
|
1774 |
-
#: wptouch-pro-3/themes/foundation/modules/twitter/twitter.php:66
|
1775 |
-
msgid "Disabled"
|
1776 |
-
msgstr ""
|
1777 |
-
|
1778 |
-
#: wptouch-pro-3/themes/foundation/modules/twitter/twitter.php:81
|
1779 |
-
msgid "Twitter account to use for Tweet display"
|
1780 |
-
msgstr ""
|
1781 |
-
|
1782 |
-
#: wptouch-pro-3/themes/foundation/modules/webapp/webapp.php:122
|
1783 |
-
msgid "External link— open it in the browser?"
|
1784 |
-
msgstr ""
|
1785 |
-
|
1786 |
-
#: wptouch-pro-3/themes/foundation/modules/webapp/webapp.php:123
|
1787 |
-
msgid "File link— Do you want to open it in the browser?"
|
1788 |
-
msgstr ""
|
1789 |
-
|
1790 |
-
#: wptouch-pro-3/themes/foundation/modules/webapp/webapp.php:210
|
1791 |
-
msgid "Enable iOS Web-App Mode"
|
1792 |
-
msgstr ""
|
1793 |
-
|
1794 |
-
#: wptouch-pro-3/themes/foundation/modules/webapp/webapp.php:214
|
1795 |
-
msgid "Enable persistence"
|
1796 |
-
msgstr ""
|
1797 |
-
|
1798 |
-
#: wptouch-pro-3/themes/foundation/modules/webapp/webapp.php:215
|
1799 |
-
msgid "Loads the last visited URL for visitors on open."
|
1800 |
-
msgstr ""
|
1801 |
-
|
1802 |
-
#: wptouch-pro-3/themes/foundation/modules/webapp/webapp.php:222
|
1803 |
-
msgid "URLs to ignore in Web-App Mode"
|
1804 |
-
msgstr ""
|
1805 |
-
|
1806 |
-
#: wptouch-pro-3/themes/foundation/modules/webapp/webapp.php:235
|
1807 |
-
msgid "Notice Message"
|
1808 |
-
msgstr ""
|
1809 |
-
|
1810 |
-
#: wptouch-pro-3/themes/foundation/modules/webapp/webapp.php:238
|
1811 |
-
msgid ""
|
1812 |
-
"Show a notice message for iPhone, iPod touch & iPad visitors about my Web-App"
|
1813 |
-
msgstr ""
|
1814 |
-
|
1815 |
-
#: wptouch-pro-3/themes/foundation/modules/webapp/webapp.php:238
|
1816 |
-
msgid ""
|
1817 |
-
"WPtouch shows a notice bubble on 1st visit letting users know about your Web-"
|
1818 |
-
"App enabled website on iOS devices."
|
1819 |
-
msgstr ""
|
1820 |
-
|
1821 |
-
#: wptouch-pro-3/themes/foundation/modules/webapp/webapp.php:239
|
1822 |
-
msgid "Notice message contents"
|
1823 |
-
msgstr ""
|
1824 |
-
|
1825 |
-
#: wptouch-pro-3/themes/foundation/modules/webapp/webapp.php:239
|
1826 |
-
msgid ""
|
1827 |
-
"[device] and [icon] are dynamic and used to determine the device and iOS "
|
1828 |
-
"version. Do not remove these from your message."
|
1829 |
-
msgstr ""
|
1830 |
-
|
1831 |
-
#: wptouch-pro-3/themes/foundation/modules/webapp/webapp.php:243
|
1832 |
-
msgid "the notice message will be shown again for visitors"
|
1833 |
-
msgstr ""
|
1834 |
-
|
1835 |
-
#: wptouch-pro-3/themes/foundation/modules/webapp/webapp.php:248
|
1836 |
-
msgid "1 day until"
|
1837 |
-
msgstr ""
|
1838 |
-
|
1839 |
-
#: wptouch-pro-3/themes/foundation/modules/webapp/webapp.php:249
|
1840 |
-
msgid "7 days until"
|
1841 |
-
msgstr ""
|
1842 |
-
|
1843 |
-
#: wptouch-pro-3/themes/foundation/modules/webapp/webapp.php:250
|
1844 |
-
msgid "1 month until"
|
1845 |
-
msgstr ""
|
1846 |
-
|
1847 |
-
#: wptouch-pro-3/themes/foundation/modules/webapp/webapp.php:251
|
1848 |
-
msgid "Every time"
|
1849 |
-
msgstr ""
|
1850 |
-
|
1851 |
-
#: wptouch-pro-3/themes/foundation/modules/webapp/webapp.php:262
|
1852 |
-
msgid "iPhone Startup Screen"
|
1853 |
-
msgstr ""
|
1854 |
-
|
1855 |
-
#: wptouch-pro-3/themes/foundation/modules/webapp/webapp.php:280
|
1856 |
-
msgid "Retina iPhone Startup Screen"
|
1857 |
-
msgstr ""
|
1858 |
-
|
1859 |
-
#: wptouch-pro-3/themes/foundation/modules/webapp/webapp.php:298
|
1860 |
-
msgid "iPhone 5 Startup Screen"
|
1861 |
-
msgstr ""
|
1862 |
-
|
1863 |
-
#: wptouch-pro-3/themes/foundation/modules/webapp/webapp.php:317
|
1864 |
-
msgid "iPad Mini and iPad Startup Screens"
|
1865 |
-
msgstr ""
|
1866 |
-
|
1867 |
-
#: wptouch-pro-3/themes/foundation/modules/webapp/webapp.php:343
|
1868 |
-
msgid "Retina iPad Startup Screens"
|
1869 |
-
msgstr ""
|
1870 |
-
|
1871 |
-
#: wptouch-pro-3/themes/foundation/root-functions.php:11
|
1872 |
-
msgid "Branding"
|
1873 |
-
msgstr ""
|
1874 |
-
|
1875 |
-
#: wptouch-pro-3/themes/foundation/root-functions.php:12
|
1876 |
-
msgid "Media Handling"
|
1877 |
-
msgstr ""
|
1878 |
-
|
1879 |
-
#: wptouch-pro-3/themes/foundation/root-functions.php:13
|
1880 |
-
msgid "Web-App Mode"
|
1881 |
-
msgstr ""
|
1882 |
-
|
1883 |
-
#: wptouch-pro-3/themes/foundation/root-functions.php:14
|
1884 |
-
msgid "Bookmark Icons"
|
1885 |
-
msgstr ""
|
1886 |
-
|
1887 |
-
#: wptouch-pro-3/themes/foundation/root-functions.php:15
|
1888 |
-
msgid "Advertising"
|
1889 |
-
msgstr ""
|
1890 |
-
|
1891 |
-
#: wptouch-pro-3/themes/foundation/root-functions.php:16
|
1892 |
-
msgid "Custom Content"
|
1893 |
-
msgstr ""
|
1894 |
-
|
1895 |
-
#: wptouch-pro-3/themes/foundation/root-functions.php:113
|
1896 |
-
msgid ""
|
1897 |
-
"Install this Web-App on your [device]: tap [icon] then \"Add to Home Screen\""
|
1898 |
-
msgstr ""
|
1899 |
-
|
1900 |
-
#: wptouch-pro-3/themes/foundation/root-functions.php:304
|
1901 |
-
msgid "Number of posts in post listings"
|
1902 |
-
msgstr ""
|
1903 |
-
|
1904 |
-
#: wptouch-pro-3/themes/foundation/root-functions.php:305
|
1905 |
-
msgid ""
|
1906 |
-
"Overrides the WordPress Reading settings for \"Blog pages show at most\""
|
1907 |
-
msgstr ""
|
1908 |
-
|
1909 |
-
#: wptouch-pro-3/themes/foundation/root-functions.php:312
|
1910 |
-
msgid "Excluded categories"
|
1911 |
-
msgstr ""
|
1912 |
-
|
1913 |
-
#: wptouch-pro-3/themes/foundation/root-functions.php:313
|
1914 |
-
msgid "Comma separated by category name"
|
1915 |
-
msgstr ""
|
1916 |
-
|
1917 |
-
#: wptouch-pro-3/themes/foundation/root-functions.php:320
|
1918 |
-
msgid "Excluded tags"
|
1919 |
-
msgstr ""
|
1920 |
-
|
1921 |
-
#: wptouch-pro-3/themes/foundation/root-functions.php:321
|
1922 |
-
msgid "Comma separated by tag name"
|
1923 |
-
msgstr ""
|
1924 |
-
|
1925 |
-
#: wptouch-pro-3/themes/foundation/root-functions.php:331
|
1926 |
-
msgid "Blog"
|
1927 |
-
msgstr ""
|
1928 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|