Version Description
Download this release
Release Info
Developer | danieliser |
Plugin | Easy Modal |
Version | 1.1.9 |
Comparing to | |
See all releases |
Code changes from version 1.0.4 to 1.1.9
- ajax/content.php +0 -12
- css/easy-modal-admin.css +0 -14
- css/jquery-ui-1.8.14.custom.css +0 -307
- easy-modal.php +792 -180
- inc/ajax/content.php +17 -0
- inc/css/admin-styles.min.css +492 -0
- inc/css/styles.min.css +12 -0
- inc/dashboard.php +0 -0
- inc/images/admin/color_selector.png +0 -0
- inc/images/admin/colorpicker_background.png +0 -0
- inc/images/admin/colorpicker_hex.png +0 -0
- inc/images/admin/colorpicker_hsb_b.png +0 -0
- inc/images/admin/colorpicker_hsb_h.png +0 -0
- inc/images/admin/colorpicker_hsb_s.png +0 -0
- inc/images/admin/colorpicker_indic.gif +0 -0
- inc/images/admin/colorpicker_overlay.png +0 -0
- inc/images/admin/colorpicker_rgb_b.png +0 -0
- inc/images/admin/colorpicker_rgb_g.png +0 -0
- inc/images/admin/colorpicker_rgb_r.png +0 -0
- inc/images/admin/colorpicker_select.gif +0 -0
- inc/images/admin/colorpicker_submit.png +0 -0
- inc/images/admin/switch.gif +0 -0
- inc/images/admin/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- inc/images/admin/ui-bg_flat_55_fbec88_40x100.png +0 -0
- inc/images/admin/ui-bg_glass_75_d0e5f5_1x400.png +0 -0
- inc/images/admin/ui-bg_glass_85_dfeffc_1x400.png +0 -0
- inc/images/admin/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- inc/images/admin/ui-bg_gloss-wave_55_5c9ccc_500x100.png +0 -0
- inc/images/admin/ui-bg_inset-hard_100_f5f8f9_1x100.png +0 -0
- inc/images/admin/ui-bg_inset-hard_100_fcfdfd_1x100.png +0 -0
- inc/images/admin/ui-icons_217bc0_256x240.png +0 -0
- inc/images/admin/ui-icons_2e83ff_256x240.png +0 -0
- inc/images/admin/ui-icons_469bdd_256x240.png +0 -0
- inc/images/admin/ui-icons_6da8d5_256x240.png +0 -0
- inc/images/admin/ui-icons_cd0a0a_256x240.png +0 -0
- inc/images/admin/ui-icons_d8e7f3_256x240.png +0 -0
- inc/images/admin/ui-icons_f9bd01_256x240.png +0 -0
- {themes/default → inc/images}/loader.gif +0 -0
- inc/js/colorpicker.js +484 -0
- inc/js/colorpicker.min.js +1 -0
- inc/js/easy-modal-admin.min.js +1 -0
- inc/js/easy-modal.min.js +1 -0
- inc/js/jquery.form.js +12 -0
- inc/modals.php +134 -0
- inc/settings.php +47 -0
- inc/themes.php +323 -0
- includes/easy-modal.class.php +0 -271
- js/easy-modal.js +0 -156
- readme.txt +3 -3
- themes/default/PIE.htc +0 -80
- themes/default/_notes/dwsync.xml +0 -4
- themes/default/close.png +0 -0
- themes/default/close_hover.png +0 -0
- themes/default/styles.css +0 -53
ajax/content.php
DELETED
@@ -1,12 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Easy Modal
|
4 |
-
* http://wizardinternetsolutions.com/project/easy-modal/
|
5 |
-
*/
|
6 |
-
require( '../../../../wp-load.php' );
|
7 |
-
global $eModal;
|
8 |
-
$options = $eModal->getAdminOptions($_POST['modalId']);
|
9 |
-
|
10 |
-
?>
|
11 |
-
<h1 class='eM-title'><?php echo $options['title'] ?></h1>
|
12 |
-
<?php echo do_shortcode($options['content']) ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
css/easy-modal-admin.css
DELETED
@@ -1,14 +0,0 @@
|
|
1 |
-
/*
|
2 |
-
* Easy Modal
|
3 |
-
* http://wizardinternetsolutions.com/project/easy-modal/
|
4 |
-
*/
|
5 |
-
.full{width:100%;}
|
6 |
-
.half{width:49%;float:left;}
|
7 |
-
.half.last{float:right;}
|
8 |
-
span.description{font-weight:normal;margin-top:2px;display:block;}
|
9 |
-
input[type=radio]{margin:0 5px;}
|
10 |
-
input[type=radio]+h5{margin-right: 15px;}
|
11 |
-
.submit{border:none; padding:0;margin:5px 0;display:block;clear:both;overflow:auto;}
|
12 |
-
input[type=submit]{float:right;}
|
13 |
-
h5{display:inline-block;margin:0;}
|
14 |
-
h4{margin:10px 0 5px;}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
css/jquery-ui-1.8.14.custom.css
DELETED
@@ -1,307 +0,0 @@
|
|
1 |
-
/*
|
2 |
-
* jQuery UI CSS Framework 1.8.14
|
3 |
-
*
|
4 |
-
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
5 |
-
* Dual licensed under the MIT or GPL Version 2 licenses.
|
6 |
-
* http://jquery.org/license
|
7 |
-
*
|
8 |
-
* http://docs.jquery.com/UI/Theming/API
|
9 |
-
*/
|
10 |
-
|
11 |
-
/* Layout helpers
|
12 |
-
----------------------------------*/
|
13 |
-
.ui-helper-hidden { display: none; }
|
14 |
-
.ui-helper-hidden-accessible { position: absolute !important; clip: rect(1px 1px 1px 1px); clip: rect(1px,1px,1px,1px); }
|
15 |
-
.ui-helper-reset { margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none; }
|
16 |
-
.ui-helper-clearfix:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; }
|
17 |
-
.ui-helper-clearfix { display: inline-block; }
|
18 |
-
/* required comment for clearfix to work in Opera \*/
|
19 |
-
* html .ui-helper-clearfix { height:1%; }
|
20 |
-
.ui-helper-clearfix { display:block; }
|
21 |
-
/* end clearfix */
|
22 |
-
.ui-helper-zfix { width: 100%; height: 100%; top: 0; left: 0; position: absolute; opacity: 0; filter:Alpha(Opacity=0); }
|
23 |
-
|
24 |
-
|
25 |
-
/* Interaction Cues
|
26 |
-
----------------------------------*/
|
27 |
-
.ui-state-disabled { cursor: default !important; }
|
28 |
-
|
29 |
-
|
30 |
-
/* Icons
|
31 |
-
----------------------------------*/
|
32 |
-
|
33 |
-
/* states and images */
|
34 |
-
.ui-icon { display: block; text-indent: -99999px; overflow: hidden; background-repeat: no-repeat; }
|
35 |
-
|
36 |
-
|
37 |
-
/* Misc visuals
|
38 |
-
----------------------------------*/
|
39 |
-
|
40 |
-
/* Overlays */
|
41 |
-
.ui-widget-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
|
42 |
-
|
43 |
-
|
44 |
-
/*
|
45 |
-
* jQuery UI CSS Framework 1.8.14
|
46 |
-
*
|
47 |
-
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
48 |
-
* Dual licensed under the MIT or GPL Version 2 licenses.
|
49 |
-
* http://jquery.org/license
|
50 |
-
*
|
51 |
-
* http://docs.jquery.com/UI/Theming/API
|
52 |
-
*
|
53 |
-
* To view and modify this theme, visit http://jqueryui.com/themeroller/?ffDefault=Verdana,Arial,sans-serif&fwDefault=normal&fsDefault=1.1em&cornerRadius=4px&bgColorHeader=cccccc&bgTextureHeader=03_highlight_soft.png&bgImgOpacityHeader=75&borderColorHeader=aaaaaa&fcHeader=222222&iconColorHeader=222222&bgColorContent=ffffff&bgTextureContent=01_flat.png&bgImgOpacityContent=75&borderColorContent=aaaaaa&fcContent=222222&iconColorContent=222222&bgColorDefault=e6e6e6&bgTextureDefault=02_glass.png&bgImgOpacityDefault=75&borderColorDefault=d3d3d3&fcDefault=555555&iconColorDefault=888888&bgColorHover=dadada&bgTextureHover=02_glass.png&bgImgOpacityHover=75&borderColorHover=999999&fcHover=212121&iconColorHover=454545&bgColorActive=ffffff&bgTextureActive=02_glass.png&bgImgOpacityActive=65&borderColorActive=aaaaaa&fcActive=212121&iconColorActive=454545&bgColorHighlight=fbf9ee&bgTextureHighlight=02_glass.png&bgImgOpacityHighlight=55&borderColorHighlight=fcefa1&fcHighlight=363636&iconColorHighlight=2e83ff&bgColorError=fef1ec&bgTextureError=02_glass.png&bgImgOpacityError=95&borderColorError=cd0a0a&fcError=cd0a0a&iconColorError=cd0a0a&bgColorOverlay=aaaaaa&bgTextureOverlay=01_flat.png&bgImgOpacityOverlay=0&opacityOverlay=30&bgColorShadow=aaaaaa&bgTextureShadow=01_flat.png&bgImgOpacityShadow=0&opacityShadow=30&thicknessShadow=8px&offsetTopShadow=-8px&offsetLeftShadow=-8px&cornerRadiusShadow=8px
|
54 |
-
*/
|
55 |
-
|
56 |
-
|
57 |
-
/* Component containers
|
58 |
-
----------------------------------*/
|
59 |
-
.ui-widget { font-family: Verdana,Arial,sans-serif; font-size: 1.1em; }
|
60 |
-
.ui-widget .ui-widget { font-size: 1em; }
|
61 |
-
.ui-widget input, .ui-widget select, .ui-widget textarea, .ui-widget button { font-family: Verdana,Arial,sans-serif; font-size: 1em; }
|
62 |
-
.ui-widget-content { border: 1px solid #aaaaaa; background: #ffffff url(images/ui-bg_flat_75_ffffff_40x100.png) 50% 50% repeat-x; color: #222222; }
|
63 |
-
.ui-widget-content a { color: #222222; }
|
64 |
-
.ui-widget-header { border: 1px solid #aaaaaa; background: #cccccc url(images/ui-bg_highlight-soft_75_cccccc_1x100.png) 50% 50% repeat-x; color: #222222; font-weight: bold; }
|
65 |
-
.ui-widget-header a { color: #222222; }
|
66 |
-
|
67 |
-
/* Interaction states
|
68 |
-
----------------------------------*/
|
69 |
-
.ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default { border: 1px solid #d3d3d3; background: #e6e6e6 url(images/ui-bg_glass_75_e6e6e6_1x400.png) 50% 50% repeat-x; font-weight: normal; color: #555555; }
|
70 |
-
.ui-state-default a, .ui-state-default a:link, .ui-state-default a:visited { color: #555555; text-decoration: none; }
|
71 |
-
.ui-state-hover, .ui-widget-content .ui-state-hover, .ui-widget-header .ui-state-hover, .ui-state-focus, .ui-widget-content .ui-state-focus, .ui-widget-header .ui-state-focus { border: 1px solid #999999; background: #dadada url(images/ui-bg_glass_75_dadada_1x400.png) 50% 50% repeat-x; font-weight: normal; color: #212121; }
|
72 |
-
.ui-state-hover a, .ui-state-hover a:hover { color: #212121; text-decoration: none; }
|
73 |
-
.ui-state-active, .ui-widget-content .ui-state-active, .ui-widget-header .ui-state-active { border: 1px solid #aaaaaa; background: #ffffff url(images/ui-bg_glass_65_ffffff_1x400.png) 50% 50% repeat-x; font-weight: normal; color: #212121; }
|
74 |
-
.ui-state-active a, .ui-state-active a:link, .ui-state-active a:visited { color: #212121; text-decoration: none; }
|
75 |
-
.ui-widget :active { outline: none; }
|
76 |
-
|
77 |
-
/* Interaction Cues
|
78 |
-
----------------------------------*/
|
79 |
-
.ui-state-highlight, .ui-widget-content .ui-state-highlight, .ui-widget-header .ui-state-highlight {border: 1px solid #fcefa1; background: #fbf9ee url(images/ui-bg_glass_55_fbf9ee_1x400.png) 50% 50% repeat-x; color: #363636; }
|
80 |
-
.ui-state-highlight a, .ui-widget-content .ui-state-highlight a,.ui-widget-header .ui-state-highlight a { color: #363636; }
|
81 |
-
.ui-state-error, .ui-widget-content .ui-state-error, .ui-widget-header .ui-state-error {border: 1px solid #cd0a0a; background: #fef1ec url(images/ui-bg_glass_95_fef1ec_1x400.png) 50% 50% repeat-x; color: #cd0a0a; }
|
82 |
-
.ui-state-error a, .ui-widget-content .ui-state-error a, .ui-widget-header .ui-state-error a { color: #cd0a0a; }
|
83 |
-
.ui-state-error-text, .ui-widget-content .ui-state-error-text, .ui-widget-header .ui-state-error-text { color: #cd0a0a; }
|
84 |
-
.ui-priority-primary, .ui-widget-content .ui-priority-primary, .ui-widget-header .ui-priority-primary { font-weight: bold; }
|
85 |
-
.ui-priority-secondary, .ui-widget-content .ui-priority-secondary, .ui-widget-header .ui-priority-secondary { opacity: .7; filter:Alpha(Opacity=70); font-weight: normal; }
|
86 |
-
.ui-state-disabled, .ui-widget-content .ui-state-disabled, .ui-widget-header .ui-state-disabled { opacity: .35; filter:Alpha(Opacity=35); background-image: none; }
|
87 |
-
|
88 |
-
/* Icons
|
89 |
-
----------------------------------*/
|
90 |
-
|
91 |
-
/* states and images */
|
92 |
-
.ui-icon { width: 16px; height: 16px; background-image: url(images/ui-icons_222222_256x240.png); }
|
93 |
-
.ui-widget-content .ui-icon {background-image: url(images/ui-icons_222222_256x240.png); }
|
94 |
-
.ui-widget-header .ui-icon {background-image: url(images/ui-icons_222222_256x240.png); }
|
95 |
-
.ui-state-default .ui-icon { background-image: url(images/ui-icons_888888_256x240.png); }
|
96 |
-
.ui-state-hover .ui-icon, .ui-state-focus .ui-icon {background-image: url(images/ui-icons_454545_256x240.png); }
|
97 |
-
.ui-state-active .ui-icon {background-image: url(images/ui-icons_454545_256x240.png); }
|
98 |
-
.ui-state-highlight .ui-icon {background-image: url(images/ui-icons_2e83ff_256x240.png); }
|
99 |
-
.ui-state-error .ui-icon, .ui-state-error-text .ui-icon {background-image: url(images/ui-icons_cd0a0a_256x240.png); }
|
100 |
-
|
101 |
-
/* positioning */
|
102 |
-
.ui-icon-carat-1-n { background-position: 0 0; }
|
103 |
-
.ui-icon-carat-1-ne { background-position: -16px 0; }
|
104 |
-
.ui-icon-carat-1-e { background-position: -32px 0; }
|
105 |
-
.ui-icon-carat-1-se { background-position: -48px 0; }
|
106 |
-
.ui-icon-carat-1-s { background-position: -64px 0; }
|
107 |
-
.ui-icon-carat-1-sw { background-position: -80px 0; }
|
108 |
-
.ui-icon-carat-1-w { background-position: -96px 0; }
|
109 |
-
.ui-icon-carat-1-nw { background-position: -112px 0; }
|
110 |
-
.ui-icon-carat-2-n-s { background-position: -128px 0; }
|
111 |
-
.ui-icon-carat-2-e-w { background-position: -144px 0; }
|
112 |
-
.ui-icon-triangle-1-n { background-position: 0 -16px; }
|
113 |
-
.ui-icon-triangle-1-ne { background-position: -16px -16px; }
|
114 |
-
.ui-icon-triangle-1-e { background-position: -32px -16px; }
|
115 |
-
.ui-icon-triangle-1-se { background-position: -48px -16px; }
|
116 |
-
.ui-icon-triangle-1-s { background-position: -64px -16px; }
|
117 |
-
.ui-icon-triangle-1-sw { background-position: -80px -16px; }
|
118 |
-
.ui-icon-triangle-1-w { background-position: -96px -16px; }
|
119 |
-
.ui-icon-triangle-1-nw { background-position: -112px -16px; }
|
120 |
-
.ui-icon-triangle-2-n-s { background-position: -128px -16px; }
|
121 |
-
.ui-icon-triangle-2-e-w { background-position: -144px -16px; }
|
122 |
-
.ui-icon-arrow-1-n { background-position: 0 -32px; }
|
123 |
-
.ui-icon-arrow-1-ne { background-position: -16px -32px; }
|
124 |
-
.ui-icon-arrow-1-e { background-position: -32px -32px; }
|
125 |
-
.ui-icon-arrow-1-se { background-position: -48px -32px; }
|
126 |
-
.ui-icon-arrow-1-s { background-position: -64px -32px; }
|
127 |
-
.ui-icon-arrow-1-sw { background-position: -80px -32px; }
|
128 |
-
.ui-icon-arrow-1-w { background-position: -96px -32px; }
|
129 |
-
.ui-icon-arrow-1-nw { background-position: -112px -32px; }
|
130 |
-
.ui-icon-arrow-2-n-s { background-position: -128px -32px; }
|
131 |
-
.ui-icon-arrow-2-ne-sw { background-position: -144px -32px; }
|
132 |
-
.ui-icon-arrow-2-e-w { background-position: -160px -32px; }
|
133 |
-
.ui-icon-arrow-2-se-nw { background-position: -176px -32px; }
|
134 |
-
.ui-icon-arrowstop-1-n { background-position: -192px -32px; }
|
135 |
-
.ui-icon-arrowstop-1-e { background-position: -208px -32px; }
|
136 |
-
.ui-icon-arrowstop-1-s { background-position: -224px -32px; }
|
137 |
-
.ui-icon-arrowstop-1-w { background-position: -240px -32px; }
|
138 |
-
.ui-icon-arrowthick-1-n { background-position: 0 -48px; }
|
139 |
-
.ui-icon-arrowthick-1-ne { background-position: -16px -48px; }
|
140 |
-
.ui-icon-arrowthick-1-e { background-position: -32px -48px; }
|
141 |
-
.ui-icon-arrowthick-1-se { background-position: -48px -48px; }
|
142 |
-
.ui-icon-arrowthick-1-s { background-position: -64px -48px; }
|
143 |
-
.ui-icon-arrowthick-1-sw { background-position: -80px -48px; }
|
144 |
-
.ui-icon-arrowthick-1-w { background-position: -96px -48px; }
|
145 |
-
.ui-icon-arrowthick-1-nw { background-position: -112px -48px; }
|
146 |
-
.ui-icon-arrowthick-2-n-s { background-position: -128px -48px; }
|
147 |
-
.ui-icon-arrowthick-2-ne-sw { background-position: -144px -48px; }
|
148 |
-
.ui-icon-arrowthick-2-e-w { background-position: -160px -48px; }
|
149 |
-
.ui-icon-arrowthick-2-se-nw { background-position: -176px -48px; }
|
150 |
-
.ui-icon-arrowthickstop-1-n { background-position: -192px -48px; }
|
151 |
-
.ui-icon-arrowthickstop-1-e { background-position: -208px -48px; }
|
152 |
-
.ui-icon-arrowthickstop-1-s { background-position: -224px -48px; }
|
153 |
-
.ui-icon-arrowthickstop-1-w { background-position: -240px -48px; }
|
154 |
-
.ui-icon-arrowreturnthick-1-w { background-position: 0 -64px; }
|
155 |
-
.ui-icon-arrowreturnthick-1-n { background-position: -16px -64px; }
|
156 |
-
.ui-icon-arrowreturnthick-1-e { background-position: -32px -64px; }
|
157 |
-
.ui-icon-arrowreturnthick-1-s { background-position: -48px -64px; }
|
158 |
-
.ui-icon-arrowreturn-1-w { background-position: -64px -64px; }
|
159 |
-
.ui-icon-arrowreturn-1-n { background-position: -80px -64px; }
|
160 |
-
.ui-icon-arrowreturn-1-e { background-position: -96px -64px; }
|
161 |
-
.ui-icon-arrowreturn-1-s { background-position: -112px -64px; }
|
162 |
-
.ui-icon-arrowrefresh-1-w { background-position: -128px -64px; }
|
163 |
-
.ui-icon-arrowrefresh-1-n { background-position: -144px -64px; }
|
164 |
-
.ui-icon-arrowrefresh-1-e { background-position: -160px -64px; }
|
165 |
-
.ui-icon-arrowrefresh-1-s { background-position: -176px -64px; }
|
166 |
-
.ui-icon-arrow-4 { background-position: 0 -80px; }
|
167 |
-
.ui-icon-arrow-4-diag { background-position: -16px -80px; }
|
168 |
-
.ui-icon-extlink { background-position: -32px -80px; }
|
169 |
-
.ui-icon-newwin { background-position: -48px -80px; }
|
170 |
-
.ui-icon-refresh { background-position: -64px -80px; }
|
171 |
-
.ui-icon-shuffle { background-position: -80px -80px; }
|
172 |
-
.ui-icon-transfer-e-w { background-position: -96px -80px; }
|
173 |
-
.ui-icon-transferthick-e-w { background-position: -112px -80px; }
|
174 |
-
.ui-icon-folder-collapsed { background-position: 0 -96px; }
|
175 |
-
.ui-icon-folder-open { background-position: -16px -96px; }
|
176 |
-
.ui-icon-document { background-position: -32px -96px; }
|
177 |
-
.ui-icon-document-b { background-position: -48px -96px; }
|
178 |
-
.ui-icon-note { background-position: -64px -96px; }
|
179 |
-
.ui-icon-mail-closed { background-position: -80px -96px; }
|
180 |
-
.ui-icon-mail-open { background-position: -96px -96px; }
|
181 |
-
.ui-icon-suitcase { background-position: -112px -96px; }
|
182 |
-
.ui-icon-comment { background-position: -128px -96px; }
|
183 |
-
.ui-icon-person { background-position: -144px -96px; }
|
184 |
-
.ui-icon-print { background-position: -160px -96px; }
|
185 |
-
.ui-icon-trash { background-position: -176px -96px; }
|
186 |
-
.ui-icon-locked { background-position: -192px -96px; }
|
187 |
-
.ui-icon-unlocked { background-position: -208px -96px; }
|
188 |
-
.ui-icon-bookmark { background-position: -224px -96px; }
|
189 |
-
.ui-icon-tag { background-position: -240px -96px; }
|
190 |
-
.ui-icon-home { background-position: 0 -112px; }
|
191 |
-
.ui-icon-flag { background-position: -16px -112px; }
|
192 |
-
.ui-icon-calendar { background-position: -32px -112px; }
|
193 |
-
.ui-icon-cart { background-position: -48px -112px; }
|
194 |
-
.ui-icon-pencil { background-position: -64px -112px; }
|
195 |
-
.ui-icon-clock { background-position: -80px -112px; }
|
196 |
-
.ui-icon-disk { background-position: -96px -112px; }
|
197 |
-
.ui-icon-calculator { background-position: -112px -112px; }
|
198 |
-
.ui-icon-zoomin { background-position: -128px -112px; }
|
199 |
-
.ui-icon-zoomout { background-position: -144px -112px; }
|
200 |
-
.ui-icon-search { background-position: -160px -112px; }
|
201 |
-
.ui-icon-wrench { background-position: -176px -112px; }
|
202 |
-
.ui-icon-gear { background-position: -192px -112px; }
|
203 |
-
.ui-icon-heart { background-position: -208px -112px; }
|
204 |
-
.ui-icon-star { background-position: -224px -112px; }
|
205 |
-
.ui-icon-link { background-position: -240px -112px; }
|
206 |
-
.ui-icon-cancel { background-position: 0 -128px; }
|
207 |
-
.ui-icon-plus { background-position: -16px -128px; }
|
208 |
-
.ui-icon-plusthick { background-position: -32px -128px; }
|
209 |
-
.ui-icon-minus { background-position: -48px -128px; }
|
210 |
-
.ui-icon-minusthick { background-position: -64px -128px; }
|
211 |
-
.ui-icon-close { background-position: -80px -128px; }
|
212 |
-
.ui-icon-closethick { background-position: -96px -128px; }
|
213 |
-
.ui-icon-key { background-position: -112px -128px; }
|
214 |
-
.ui-icon-lightbulb { background-position: -128px -128px; }
|
215 |
-
.ui-icon-scissors { background-position: -144px -128px; }
|
216 |
-
.ui-icon-clipboard { background-position: -160px -128px; }
|
217 |
-
.ui-icon-copy { background-position: -176px -128px; }
|
218 |
-
.ui-icon-contact { background-position: -192px -128px; }
|
219 |
-
.ui-icon-image { background-position: -208px -128px; }
|
220 |
-
.ui-icon-video { background-position: -224px -128px; }
|
221 |
-
.ui-icon-script { background-position: -240px -128px; }
|
222 |
-
.ui-icon-alert { background-position: 0 -144px; }
|
223 |
-
.ui-icon-info { background-position: -16px -144px; }
|
224 |
-
.ui-icon-notice { background-position: -32px -144px; }
|
225 |
-
.ui-icon-help { background-position: -48px -144px; }
|
226 |
-
.ui-icon-check { background-position: -64px -144px; }
|
227 |
-
.ui-icon-bullet { background-position: -80px -144px; }
|
228 |
-
.ui-icon-radio-off { background-position: -96px -144px; }
|
229 |
-
.ui-icon-radio-on { background-position: -112px -144px; }
|
230 |
-
.ui-icon-pin-w { background-position: -128px -144px; }
|
231 |
-
.ui-icon-pin-s { background-position: -144px -144px; }
|
232 |
-
.ui-icon-play { background-position: 0 -160px; }
|
233 |
-
.ui-icon-pause { background-position: -16px -160px; }
|
234 |
-
.ui-icon-seek-next { background-position: -32px -160px; }
|
235 |
-
.ui-icon-seek-prev { background-position: -48px -160px; }
|
236 |
-
.ui-icon-seek-end { background-position: -64px -160px; }
|
237 |
-
.ui-icon-seek-start { background-position: -80px -160px; }
|
238 |
-
/* ui-icon-seek-first is deprecated, use ui-icon-seek-start instead */
|
239 |
-
.ui-icon-seek-first { background-position: -80px -160px; }
|
240 |
-
.ui-icon-stop { background-position: -96px -160px; }
|
241 |
-
.ui-icon-eject { background-position: -112px -160px; }
|
242 |
-
.ui-icon-volume-off { background-position: -128px -160px; }
|
243 |
-
.ui-icon-volume-on { background-position: -144px -160px; }
|
244 |
-
.ui-icon-power { background-position: 0 -176px; }
|
245 |
-
.ui-icon-signal-diag { background-position: -16px -176px; }
|
246 |
-
.ui-icon-signal { background-position: -32px -176px; }
|
247 |
-
.ui-icon-battery-0 { background-position: -48px -176px; }
|
248 |
-
.ui-icon-battery-1 { background-position: -64px -176px; }
|
249 |
-
.ui-icon-battery-2 { background-position: -80px -176px; }
|
250 |
-
.ui-icon-battery-3 { background-position: -96px -176px; }
|
251 |
-
.ui-icon-circle-plus { background-position: 0 -192px; }
|
252 |
-
.ui-icon-circle-minus { background-position: -16px -192px; }
|
253 |
-
.ui-icon-circle-close { background-position: -32px -192px; }
|
254 |
-
.ui-icon-circle-triangle-e { background-position: -48px -192px; }
|
255 |
-
.ui-icon-circle-triangle-s { background-position: -64px -192px; }
|
256 |
-
.ui-icon-circle-triangle-w { background-position: -80px -192px; }
|
257 |
-
.ui-icon-circle-triangle-n { background-position: -96px -192px; }
|
258 |
-
.ui-icon-circle-arrow-e { background-position: -112px -192px; }
|
259 |
-
.ui-icon-circle-arrow-s { background-position: -128px -192px; }
|
260 |
-
.ui-icon-circle-arrow-w { background-position: -144px -192px; }
|
261 |
-
.ui-icon-circle-arrow-n { background-position: -160px -192px; }
|
262 |
-
.ui-icon-circle-zoomin { background-position: -176px -192px; }
|
263 |
-
.ui-icon-circle-zoomout { background-position: -192px -192px; }
|
264 |
-
.ui-icon-circle-check { background-position: -208px -192px; }
|
265 |
-
.ui-icon-circlesmall-plus { background-position: 0 -208px; }
|
266 |
-
.ui-icon-circlesmall-minus { background-position: -16px -208px; }
|
267 |
-
.ui-icon-circlesmall-close { background-position: -32px -208px; }
|
268 |
-
.ui-icon-squaresmall-plus { background-position: -48px -208px; }
|
269 |
-
.ui-icon-squaresmall-minus { background-position: -64px -208px; }
|
270 |
-
.ui-icon-squaresmall-close { background-position: -80px -208px; }
|
271 |
-
.ui-icon-grip-dotted-vertical { background-position: 0 -224px; }
|
272 |
-
.ui-icon-grip-dotted-horizontal { background-position: -16px -224px; }
|
273 |
-
.ui-icon-grip-solid-vertical { background-position: -32px -224px; }
|
274 |
-
.ui-icon-grip-solid-horizontal { background-position: -48px -224px; }
|
275 |
-
.ui-icon-gripsmall-diagonal-se { background-position: -64px -224px; }
|
276 |
-
.ui-icon-grip-diagonal-se { background-position: -80px -224px; }
|
277 |
-
|
278 |
-
|
279 |
-
/* Misc visuals
|
280 |
-
----------------------------------*/
|
281 |
-
|
282 |
-
/* Corner radius */
|
283 |
-
.ui-corner-all, .ui-corner-top, .ui-corner-left, .ui-corner-tl { -moz-border-radius-topleft: 4px; -webkit-border-top-left-radius: 4px; -khtml-border-top-left-radius: 4px; border-top-left-radius: 4px; }
|
284 |
-
.ui-corner-all, .ui-corner-top, .ui-corner-right, .ui-corner-tr { -moz-border-radius-topright: 4px; -webkit-border-top-right-radius: 4px; -khtml-border-top-right-radius: 4px; border-top-right-radius: 4px; }
|
285 |
-
.ui-corner-all, .ui-corner-bottom, .ui-corner-left, .ui-corner-bl { -moz-border-radius-bottomleft: 4px; -webkit-border-bottom-left-radius: 4px; -khtml-border-bottom-left-radius: 4px; border-bottom-left-radius: 4px; }
|
286 |
-
.ui-corner-all, .ui-corner-bottom, .ui-corner-right, .ui-corner-br { -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 4px; -khtml-border-bottom-right-radius: 4px; border-bottom-right-radius: 4px; }
|
287 |
-
|
288 |
-
/* Overlays */
|
289 |
-
.ui-widget-overlay { background: #aaaaaa url(images/ui-bg_flat_0_aaaaaa_40x100.png) 50% 50% repeat-x; opacity: .30;filter:Alpha(Opacity=30); }
|
290 |
-
.ui-widget-shadow { margin: -8px 0 0 -8px; padding: 8px; background: #aaaaaa url(images/ui-bg_flat_0_aaaaaa_40x100.png) 50% 50% repeat-x; opacity: .30;filter:Alpha(Opacity=30); -moz-border-radius: 8px; -khtml-border-radius: 8px; -webkit-border-radius: 8px; border-radius: 8px; }/*
|
291 |
-
* jQuery UI Tabs 1.8.14
|
292 |
-
*
|
293 |
-
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
294 |
-
* Dual licensed under the MIT or GPL Version 2 licenses.
|
295 |
-
* http://jquery.org/license
|
296 |
-
*
|
297 |
-
* http://docs.jquery.com/UI/Tabs#theming
|
298 |
-
*/
|
299 |
-
.ui-tabs { position: relative; padding: .2em; zoom: 1; } /* position: relative prevents IE scroll bug (element with position: relative inside container with overflow: auto appear as "fixed") */
|
300 |
-
.ui-tabs .ui-tabs-nav { margin: 0; padding: .2em .2em 0; }
|
301 |
-
.ui-tabs .ui-tabs-nav li { list-style: none; float: left; position: relative; top: 1px; margin: 0 .2em 1px 0; border-bottom: 0 !important; padding: 0; white-space: nowrap; }
|
302 |
-
.ui-tabs .ui-tabs-nav li a { float: left; padding: .5em 1em; text-decoration: none; }
|
303 |
-
.ui-tabs .ui-tabs-nav li.ui-tabs-selected { margin-bottom: 0; padding-bottom: 1px; }
|
304 |
-
.ui-tabs .ui-tabs-nav li.ui-tabs-selected a, .ui-tabs .ui-tabs-nav li.ui-state-disabled a, .ui-tabs .ui-tabs-nav li.ui-state-processing a { cursor: text; }
|
305 |
-
.ui-tabs .ui-tabs-nav li a, .ui-tabs.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-selected a { cursor: pointer; } /* first selector in group seems obsolete, but required to overcome bug in Opera applying cursor: text overall if defined elsewhere... */
|
306 |
-
.ui-tabs .ui-tabs-panel { display: block; border-width: 0; padding: 1em 1.4em; background: none; }
|
307 |
-
.ui-tabs .ui-tabs-hide { display: none !important; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
easy-modal.php
CHANGED
@@ -4,199 +4,811 @@ Plugin Name: Easy Modal
|
|
4 |
Plugin URI: http://wizardinternetsolutions.com/plugins/easy-modal/
|
5 |
Description: Easy Modal allows you to easily add just about any shortcodes or other content into a modal window. This includes forms such as CF7.
|
6 |
Author: Wizard Internet Solutions
|
7 |
-
Version: 1.
|
8 |
Author URI: http://wizardinternetsolutions.com
|
9 |
*/
|
10 |
-
|
11 |
-
$pluginFILE = __FILE__;
|
12 |
-
if ( ! function_exists( 'get_plugin_data' ) )
|
13 |
require_once( ABSPATH . 'wp-admin/includes/plugin.php' );
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
require_once('includes/easy-modal.class.php');
|
19 |
-
$eModal = new easy_modal;
|
20 |
-
|
21 |
-
add_action( 'wp_ajax_nopriv_eModal_Form', 'easy_modal_new_form' );
|
22 |
-
add_action( 'wp_ajax_eModal_Form', 'easy_modal_new_form' );
|
23 |
-
function easy_modal_new_form(){
|
24 |
-
global $eModal;
|
25 |
-
foreach ($_POST as $key => $value) {
|
26 |
-
$_POST[$key] = mysql_real_escape_string($value);
|
27 |
-
}
|
28 |
-
extract($_POST);
|
29 |
-
echo $eModal->display_emodal_option($modalId);
|
30 |
-
exit;
|
31 |
-
}
|
32 |
-
add_action( 'wp_ajax_nopriv_eModal_Delete_Modal', 'easy_modal_delete_modal' );
|
33 |
-
add_action( 'wp_ajax_eModal_Delete_Modal', 'easy_modal_delete_modal' );
|
34 |
-
function easy_modal_delete_modal(){
|
35 |
-
global $eModal;
|
36 |
-
foreach ($_POST as $key => $value) {
|
37 |
-
$_POST[$key] = mysql_real_escape_string($value);
|
38 |
-
}
|
39 |
-
extract($_POST);
|
40 |
-
if($eModal->deleteModal($modalId)) {
|
41 |
-
die('Deleted');
|
42 |
-
} else {
|
43 |
-
die('0');
|
44 |
-
}
|
45 |
-
exit;
|
46 |
-
}
|
47 |
-
|
48 |
-
add_action('wp_print_styles', 'easy_modal_styles');
|
49 |
-
add_action( 'admin_init', 'easy_modal_styles' );
|
50 |
-
function easy_modal_styles()
|
51 |
{
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
64 |
|
65 |
-
|
66 |
-
?>
|
67 |
-
<script type='text/javascript'>
|
68 |
-
/* <![CDATA[ */
|
69 |
-
var <?php echo $name; ?> =
|
70 |
-
<?php
|
71 |
-
require_once(ABSPATH . '/wp-includes/class-json.php');
|
72 |
-
$wp_json = new Services_JSON();
|
73 |
-
echo stripslashes($wp_json->encodeUnsafe($vars));
|
74 |
-
?>;
|
75 |
-
/* ]]> */
|
76 |
-
</script>
|
77 |
-
<?php
|
78 |
-
}
|
79 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
80 |
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
87 |
wp_enqueue_script('jquery');
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
97 |
}
|
98 |
-
}
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
function easy_modal_ajax() {
|
109 |
-
// get the submitted parameters
|
110 |
-
foreach ($_POST as $key => $value) {
|
111 |
-
$_POST[$key] = mysql_real_escape_string($value);
|
112 |
-
}
|
113 |
-
extract($_POST);
|
114 |
-
|
115 |
-
global $eModal, $post;
|
116 |
-
$settings = $eModal->getAdminOptions($modalId);?>
|
117 |
-
|
118 |
-
<h1 class='eM-title'><?php echo $settings['title'] ?></h1><?php
|
119 |
-
echo apply_filters('the_content',do_shortcode($settings['content']));
|
120 |
|
121 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
122 |
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
138 |
}
|
139 |
-
if
|
140 |
-
|
|
|
141 |
}
|
142 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
143 |
}
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
// Display a Settings link on the main Plugins page
|
161 |
-
add_filter( 'plugin_action_links', 'easy_modal_plugin_action_links', 10, 2 );
|
162 |
-
function easy_modal_plugin_action_links( $links, $file ) {
|
163 |
-
if ( $file == plugin_basename( __FILE__ ) ) {
|
164 |
-
$posk_links = '<a href="'.get_admin_url().'options-general.php?page=easy-modal.php">'.__('Settings').'</a>';
|
165 |
-
// make the 'Settings' link appear first
|
166 |
-
array_unshift( $links, $posk_links );
|
167 |
-
}
|
168 |
-
return $links;
|
169 |
}
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
/* Initialize i18n Support
|
186 |
-
add_action( 'init', 'easy_modal_i18n' );
|
187 |
-
if(!function_exists(easy_modal_i18n)){
|
188 |
-
function easy_modal_i18n() {
|
189 |
-
load_plugin_textdomain( 'easy-modal', false, 'easy-modal/languages' );
|
190 |
-
}
|
191 |
-
} */
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
register_activation_hook(__FILE__, array(&$eModal, 'init'));
|
202 |
-
?>
|
4 |
Plugin URI: http://wizardinternetsolutions.com/plugins/easy-modal/
|
5 |
Description: Easy Modal allows you to easily add just about any shortcodes or other content into a modal window. This includes forms such as CF7.
|
6 |
Author: Wizard Internet Solutions
|
7 |
+
Version: 1.1.9
|
8 |
Author URI: http://wizardinternetsolutions.com
|
9 |
*/
|
10 |
+
if (is_admin() && ! function_exists( 'get_plugin_data' ) )
|
|
|
|
|
11 |
require_once( ABSPATH . 'wp-admin/includes/plugin.php' );
|
12 |
+
|
13 |
+
add_action('admin_init', '_disable_older_versions', 1 );
|
14 |
+
function _disable_older_versions()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
{
|
16 |
+
deactivate_plugins(array(
|
17 |
+
ABSPATH.'wp-content/plugins/easy-modal-lite/easy-modal-lite.php',
|
18 |
+
ABSPATH.'wp-content/plugins/easy-modal-pro/easy-modal-pro.php'
|
19 |
+
));
|
20 |
+
}
|
21 |
+
/* Change Begin */
|
22 |
+
class Easy_Modal {
|
23 |
+
var $Plugin = array(
|
24 |
+
'name' => 'Easy Modal',
|
25 |
+
'slug' => 'easy-modal',
|
26 |
+
'short'=> 'EasyModal'
|
27 |
+
);
|
28 |
+
var $api_url = 'http://wizardinternetsolutions.com/api/';
|
29 |
+
public function __construct()
|
30 |
+
{
|
31 |
+
$this->Plugin['file'] = __FILE__;
|
32 |
+
$this->Plugin['dir'] = PLUGINDIR.'/'. dirname( plugin_basename(__FILE__));
|
33 |
+
$this->Plugin['url'] = trailingslashit (get_bloginfo('wpurl') ).PLUGINDIR.'/'. dirname( plugin_basename(__FILE__) );
|
34 |
+
|
35 |
+
// Add WPMU Support
|
36 |
+
// Add default options on new site creation.
|
37 |
+
add_action('wpmu_new_blog', array(&$this, '_wpmu_activation'));
|
38 |
+
|
39 |
+
if(!get_option('EasyModal_Version'))
|
40 |
+
{
|
41 |
+
$this->resetOptions();
|
42 |
+
}
|
43 |
+
if (is_admin())
|
44 |
+
{
|
45 |
+
$this->Plugin['info'] = get_plugin_data($this->Plugin['file']);
|
46 |
+
$this->Plugin['license'] = get_option('EasyModal_License');
|
47 |
+
add_action('admin_menu', array(&$this, '_menus') );
|
48 |
+
|
49 |
+
add_filter( 'plugin_action_links', array(&$this, '_actionLinks') , 10, 2 );
|
50 |
+
register_activation_hook(__FILE__, array(&$this, '_activation'));
|
51 |
+
add_filter('mce_buttons_2', array(&$this, '_TinyMCEButtons'), 999);
|
52 |
+
add_filter('tiny_mce_before_init', array(&$this, '_TinyMCEInit'));
|
53 |
+
}
|
54 |
+
$this->_styles_scripts();
|
55 |
+
$license_status = get_option('EasyModal_License_Status');
|
56 |
+
if($license_status['status']===200)
|
57 |
+
{
|
58 |
+
add_filter('pre_set_site_transient_update_plugins', array(&$this,'check_updates'));
|
59 |
+
add_filter('plugins_api', array(&$this,'get_plugin_info'), 10, 3);
|
60 |
+
}
|
61 |
+
}
|
62 |
+
public function _styles_scripts()
|
63 |
+
{
|
64 |
+
if (is_admin())
|
65 |
+
{
|
66 |
+
add_action("admin_head-toplevel_page_easy-modal",array(&$this,'_styles'));
|
67 |
+
add_action("admin_head-toplevel_page_easy-modal",array(&$this,'_scripts'));
|
68 |
+
add_action("admin_head-easy-modal_page_easy-modal-modals",array(&$this,'_styles'));
|
69 |
+
add_action("admin_head-easy-modal_page_easy-modal-modals",array(&$this,'_scripts'));
|
70 |
+
add_action("admin_head-easy-modal_page_easy-modal-themes",array(&$this,'_styles'));
|
71 |
+
add_action("admin_head-easy-modal_page_easy-modal-themes",array(&$this,'_scripts'));
|
72 |
+
add_action("admin_head-easy-modal_page_easy-modal-settings",array(&$this,'_styles'));
|
73 |
+
add_action("admin_head-easy-modal_page_easy-modal-settings",array(&$this,'_scripts'));
|
74 |
+
}
|
75 |
+
else
|
76 |
+
{
|
77 |
+
add_action('wp_print_styles', array(&$this, '_styles') );
|
78 |
+
add_action('wp_print_scripts', array(&$this, '_scripts') );
|
79 |
+
}
|
80 |
+
}
|
81 |
+
private function _migrate_EM()
|
82 |
+
{
|
83 |
+
$o_modal_list = get_option('EasyModal');
|
84 |
+
if(!is_array($o_modal_list))
|
85 |
+
{
|
86 |
+
$o_modal_list = unserialize($o_modal_list);
|
87 |
+
}
|
88 |
+
foreach($o_modal_list as $id)
|
89 |
+
{
|
90 |
+
$Modal = get_option('EasyModal_'.$id);
|
91 |
+
if(!is_array($Modal))
|
92 |
+
{
|
93 |
+
$Modal = unserialize($Modal);
|
94 |
+
}
|
95 |
+
$Modal['name'] = $Modal['title'];
|
96 |
+
$this->updateModalSettings('new',$Modal);
|
97 |
+
delete_option('EasyModal_'.$id);
|
98 |
+
}
|
99 |
+
delete_option('eM_version');
|
100 |
+
delete_option('EasyModal');
|
101 |
+
}
|
102 |
+
private function _migrate_EM_Lite()
|
103 |
+
{
|
104 |
+
$o_modal_list = get_option('EasyModalLite_ModalList');
|
105 |
+
if(!is_array($o_modal_list))
|
106 |
+
{
|
107 |
+
$o_modal_list = unserialize($o_modal_list);
|
108 |
+
}
|
109 |
+
foreach($o_modal_list as $id => $title)
|
110 |
+
{
|
111 |
+
$Modal = get_option('EasyModalLite_Modal-'.$id);
|
112 |
+
if(!is_array($Modal))
|
113 |
+
{
|
114 |
+
$Modal = unserialize($Modal);
|
115 |
+
}
|
116 |
+
$this->updateModalSettings('new',$Modal);
|
117 |
+
delete_option('EasyModalLite_Modal-'.$id);
|
118 |
+
}
|
119 |
+
$Theme = get_option('EasyModalLite_Theme-1');
|
120 |
+
if(!is_array($Theme))
|
121 |
+
{
|
122 |
+
$Theme = unserialize($Theme);
|
123 |
+
}
|
124 |
+
$this->updateThemeSettings(1,$Theme);
|
125 |
+
delete_option('EasyModalLite_Theme-1');
|
126 |
+
$o_settings = get_option('EasyModalLite_Settings');
|
127 |
+
if(!is_array($o_settings))
|
128 |
+
{
|
129 |
+
$o_settings = unserialize($o_settings);
|
130 |
+
}
|
131 |
+
$this->updateSettings($o_settings);
|
132 |
+
delete_option('EasyModalLite_Settings');
|
133 |
+
delete_option('EasyModalLite_Version');
|
134 |
+
delete_option('EasyModalLite_ModalList');
|
135 |
+
delete_option('EasyModalLite_ThemeList');
|
136 |
+
}
|
137 |
+
private function _migrate_EM_Pro()
|
138 |
+
{
|
139 |
+
$o_theme_list = get_option('EasyModalPro_ModalList');
|
140 |
+
if(!is_array($o_theme_list))
|
141 |
+
{
|
142 |
+
$o_theme_list = unserialize($o_theme_list);
|
143 |
+
}
|
144 |
+
foreach($o_theme_list as $id => $name)
|
145 |
+
{
|
146 |
+
$Theme = get_option('EasyModalPro_Theme-'.$id);
|
147 |
+
if(!is_array($Theme))
|
148 |
+
{
|
149 |
+
$Theme = unserialize($Theme);
|
150 |
+
}
|
151 |
+
$theme = $this->updateThemeSettings('new',$Theme);
|
152 |
+
delete_option('EasyModalPro_Theme-'.$id);
|
153 |
+
$themes[$id] = $theme['theme_id'];
|
154 |
+
}
|
155 |
+
delete_option('EasyModalPro_ThemeList');
|
156 |
|
157 |
+
$themes = $this->getThemeList();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
158 |
|
159 |
+
$o_modal_list = get_option('EasyModalPro_ModalList');
|
160 |
+
if(!is_array($o_modal_list))
|
161 |
+
{
|
162 |
+
$o_modal_list = unserialize($o_modal_list);
|
163 |
+
}
|
164 |
+
foreach($o_modal_list as $id => $title)
|
165 |
+
{
|
166 |
+
$Modal = get_option('EasyModalPro_Modal-'.$id);
|
167 |
+
if(!is_array($Modal))
|
168 |
+
{
|
169 |
+
$Modal = unserialize($Modal);
|
170 |
+
}
|
171 |
+
$Modal['theme'] = isset($themes[$id]) ? $theme[$id] : 1;
|
172 |
+
$this->updateModalSettings('new',$Modal);
|
173 |
+
delete_option('EasyModalPro_Modal-'.$id);
|
174 |
+
}
|
175 |
+
delete_option('EasyModalPro_ModalList');
|
176 |
|
177 |
+
$o_settings = get_option('EasyModalPro_Settings');
|
178 |
+
if(!is_array($o_settings))
|
179 |
+
{
|
180 |
+
$o_settings = unserialize($o_settings);
|
181 |
+
}
|
182 |
+
$o_settings['license'] = get_option('EasyModalPro_License');
|
183 |
+
delete_option('EasyModalPro_License');
|
184 |
+
delete_option('EasyModalPro_Settings');
|
185 |
+
delete_option('EasyModalPro_Version');
|
186 |
+
$this->updateSettings($o_settings);
|
187 |
+
}
|
188 |
+
public function _activation()
|
189 |
+
{
|
190 |
+
global $wp;
|
191 |
+
if(!get_option('EasyModal_Version'))
|
192 |
+
{
|
193 |
+
$this->resetOptions();
|
194 |
+
}
|
195 |
+
update_option('EasyModal_Version', $this->Plugin['info']['Version']);
|
196 |
+
// detect EM Free
|
197 |
+
if(get_option('eM_version'))
|
198 |
+
{
|
199 |
+
$this->_migrate_EM();
|
200 |
+
}
|
201 |
+
// detect EM Lite
|
202 |
+
if(get_option('EasyModalLite_Version'))
|
203 |
+
{
|
204 |
+
$this->_migrate_EM_Lite();
|
205 |
+
}
|
206 |
+
// detect EM Lite
|
207 |
+
if(get_option('EasyModalPro_Version'))
|
208 |
+
{
|
209 |
+
$this->_migrate_EM_Pro();
|
210 |
+
}
|
211 |
+
}
|
212 |
+
public function _wpmu_activation($blog_id, $user_id, $domain, $path, $site_id, $meta)
|
213 |
+
{
|
214 |
+
// Make sure the user can perform this action and the request came from the correct page.
|
215 |
+
switch_to_blog($blog_id);
|
216 |
+
// Use a default value here if the field was not submitted.
|
217 |
+
if(!get_option('EasyModal_Version'))
|
218 |
+
{
|
219 |
+
$this->resetOptions();
|
220 |
+
}
|
221 |
+
update_option('EasyModal_Version', $this->Plugin['info']['Version']);
|
222 |
+
// detect EM Free
|
223 |
+
if(get_option('eM_version'))
|
224 |
+
{
|
225 |
+
$this->_migrate_EM();
|
226 |
+
}
|
227 |
+
// detect EM Lite
|
228 |
+
if(get_option('EasyModalLite_Version'))
|
229 |
+
{
|
230 |
+
$this->_migrate_EM_Lite();
|
231 |
+
}
|
232 |
+
// detect EM Lite
|
233 |
+
if(get_option('EasyModalPro_Version'))
|
234 |
+
{
|
235 |
+
$this->_migrate_EM_Pro();
|
236 |
+
}
|
237 |
+
restore_current_blog();
|
238 |
+
}
|
239 |
+
public function resetOptions()
|
240 |
+
{
|
241 |
+
update_option('EasyModal_Settings', $this->defaultSettings());
|
242 |
+
foreach(get_option('EasyModal_ModalList') as $id => $name)
|
243 |
+
{
|
244 |
+
$this->deleteModal($id);
|
245 |
+
}
|
246 |
+
update_option('EasyModal_ModalList', array());
|
247 |
+
foreach(get_option('EasyModal_ThemeList') as $id => $name)
|
248 |
+
{
|
249 |
+
$this->deleteTheme($id);
|
250 |
+
}
|
251 |
+
update_option('EasyModal_ThemeList', array('1'=>'Black'));
|
252 |
+
$theme = $this->defaultThemeSettings();
|
253 |
+
$theme['name'] = 'Black';
|
254 |
+
update_option('EasyModal_Theme-1', $theme);
|
255 |
+
}
|
256 |
+
|
257 |
+
public function _styles()
|
258 |
+
{
|
259 |
+
if (!is_admin())
|
260 |
+
{
|
261 |
+
wp_enqueue_style($this->Plugin['slug'].'-styles', $this->Plugin['url'].'/inc/css/styles.min.css');
|
262 |
+
}
|
263 |
+
else
|
264 |
+
{
|
265 |
+
wp_enqueue_style($this->Plugin['slug'].'-admin-styles', $this->Plugin['url'].'/inc/css/admin-styles.min.css');
|
266 |
+
}
|
267 |
+
}
|
268 |
+
public function _scripts()
|
269 |
+
{
|
270 |
wp_enqueue_script('jquery');
|
271 |
+
if (!is_admin())
|
272 |
+
{
|
273 |
+
wp_enqueue_script( 'jquery-form', $this->Plugin['url'].'/inc/js/jquery.form.js', array( 'jquery' ));
|
274 |
+
wp_enqueue_script($this->Plugin['slug'].'-scripts', $this->Plugin['url'].'/inc/js/easy-modal.min.js', array('jquery'));
|
275 |
+
$data = array(
|
276 |
+
'ajaxurl' => $this->Plugin['url'].'/inc/ajax/content.php',
|
277 |
+
'modals' => $this->enqueue_modals(),
|
278 |
+
'themes' => $this->enqueue_themes(),
|
279 |
+
'settings' => $this->getSettings()
|
280 |
+
);
|
281 |
+
$params = array(
|
282 |
+
'l10n_print_after' => 'easymodal = ' . json_encode($data) . ';'
|
283 |
+
);
|
284 |
+
wp_localize_script( $this->Plugin['slug'].'-scripts', 'easymodal', $params );
|
285 |
+
}
|
286 |
+
else
|
287 |
+
{
|
288 |
+
wp_enqueue_script('jquery-ui-core');
|
289 |
+
wp_enqueue_script('jquery-ui-accordion');
|
290 |
+
wp_enqueue_script('jquery-ui-slider');
|
291 |
+
wp_enqueue_script('jquery-colorpicker', $this->Plugin['url'].'/inc/js/colorpicker.min.js', array('jquery'));
|
292 |
+
wp_enqueue_script('easy-modal-admin', $this->Plugin['url'].'/inc/js/easy-modal-admin.min.js', array('jquery', 'jquery-ui-core', 'jquery-ui-slider', 'jquery-colorpicker'));
|
293 |
+
}
|
294 |
+
}
|
295 |
+
public function _menus()
|
296 |
+
{
|
297 |
+
add_menu_page( 'Home', $this->Plugin['name'] , 'edit_posts', $this->Plugin['slug'], array(&$this, 'dashboard_page'),'',1000);
|
298 |
+
add_submenu_page( $this->Plugin['slug'], 'Modals', 'Modals', 'edit_posts', $this->Plugin['slug'].'-modals', array(&$this, 'modal_page'));
|
299 |
+
add_submenu_page( $this->Plugin['slug'], 'Theme', 'Theme', 'edit_themes', $this->Plugin['slug'].'-themes', array(&$this, 'theme_page'));
|
300 |
+
add_submenu_page( $this->Plugin['slug'], 'Settings', 'Settings', 'manage_options', $this->Plugin['slug'].'-settings', array(&$this, 'settings_page'));
|
301 |
+
}
|
302 |
+
public function _actionLinks( $links, $file )
|
303 |
+
{
|
304 |
+
if ( $file == plugin_basename( __FILE__ ) )
|
305 |
+
{
|
306 |
+
$posk_links = '<a href="'.get_admin_url().'admin.php?page='.$this->Plugin['slug'].'-settings">'.__('Settings').'</a>';
|
307 |
+
array_unshift( $links, $posk_links );
|
308 |
+
}
|
309 |
+
return $links;
|
310 |
+
}
|
311 |
+
public function _TinyMCEButtons($orig)
|
312 |
+
{
|
313 |
+
return array_merge($orig, array('styleselect'));
|
314 |
+
}
|
315 |
+
public function _TinyMCEInit($initArray)
|
316 |
+
{
|
317 |
+
global $wpdb;
|
318 |
+
// Custom classes
|
319 |
+
$modals = $this->getModalList();
|
320 |
+
$customClasses = array();
|
321 |
+
foreach($modals as $key => $modal)
|
322 |
+
{
|
323 |
+
$customClasses['eModal'.$modal] = 'eModal-'.$key;
|
324 |
+
}
|
325 |
+
// Build array
|
326 |
+
$initArray['theme_advanced_styles'] = isset($initArray['theme_advanced_styles']) ? $initArray['theme_advanced_styles'] : '';
|
327 |
+
foreach($customClasses as $name => $css)
|
328 |
+
{
|
329 |
+
$initArray['theme_advanced_styles'] .= $name.'='.$css.';';
|
330 |
+
}
|
331 |
+
$initArray['theme_advanced_styles'] = rtrim($initArray['theme_advanced_styles'], ';'); // Remove final semicolon from list
|
332 |
+
return $initArray;
|
333 |
}
|
|
|
|
|
|
|
|
|
334 |
|
335 |
+
public function dashboard_page()
|
336 |
+
{
|
337 |
+
require_once('/inc/dashboard.php');
|
338 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
339 |
|
340 |
+
public function settings_page()
|
341 |
+
{
|
342 |
+
require_once('/inc/settings.php');
|
343 |
+
}
|
344 |
+
public function getSettings()
|
345 |
+
{
|
346 |
+
return get_option('EasyModal_Settings');
|
347 |
+
}
|
348 |
+
public function defaultSettings()
|
349 |
+
{
|
350 |
+
return array();
|
351 |
+
}
|
352 |
+
public function updateSettings( $post = NULL )
|
353 |
+
{
|
354 |
+
global $wp;
|
355 |
+
$settings = get_option('EasyModal_Settings');
|
356 |
+
if(!$settings)
|
357 |
+
{
|
358 |
+
$settings = $this->defaultSettings();
|
359 |
+
}
|
360 |
+
elseif(!is_array($settings))
|
361 |
+
{
|
362 |
+
$settings = unserialize($settings);
|
363 |
+
}
|
364 |
+
if($post)
|
365 |
+
{
|
366 |
+
$post = stripslashes_deep($post);
|
367 |
+
extract($post);
|
368 |
+
if (isset($license))
|
369 |
+
{
|
370 |
+
$current = get_option('EasyModal_License');
|
371 |
+
if($license != $current)
|
372 |
+
{
|
373 |
+
$redirect = true;
|
374 |
+
}
|
375 |
+
update_option('EasyModal_License', $license);
|
376 |
+
$license_status = $this->check_license($license);
|
377 |
+
update_option('EasyModal_License_Status', $license_status);
|
378 |
+
if($license_status['status']===200)
|
379 |
+
{
|
380 |
+
update_option('EasyModal_License_LastChecked', strtotime(date("Y-m-d H:i:s")));
|
381 |
+
delete_option('_site_transient_update_plugins');
|
382 |
+
}
|
383 |
+
}
|
384 |
+
if (isset($autoOpen))
|
385 |
+
{
|
386 |
+
$settings['autoOpen'] = $autoOpen;
|
387 |
+
}
|
388 |
+
else
|
389 |
+
{
|
390 |
+
$settings['autoOpen'] = 'false';
|
391 |
+
}
|
392 |
+
if (isset($autoOpenId))
|
393 |
+
{
|
394 |
+
$settings['autoOpenDelay'] = $autoOpenDelay;
|
395 |
+
}
|
396 |
+
if (isset($autoOpenId))
|
397 |
+
{
|
398 |
+
$settings['autoOpenId'] = $autoOpenId;
|
399 |
+
}
|
400 |
+
if (isset($exitOpen))
|
401 |
+
{
|
402 |
+
$settings['exitOpen'] = $exitOpen;
|
403 |
+
}
|
404 |
+
if (isset($exitOpenId))
|
405 |
+
{
|
406 |
+
$settings['exitOpenId'] = $exitOpenId;
|
407 |
+
}
|
408 |
+
}
|
409 |
+
update_option('EasyModal_Settings', $settings);
|
410 |
+
if(!empty($redirect) && $redirect == true)
|
411 |
+
{
|
412 |
+
wp_redirect('admin.php?page='.$this->Plugin['slug'].'-settings',302);
|
413 |
+
exit;
|
414 |
+
}
|
415 |
+
return $settings;
|
416 |
+
}
|
417 |
|
418 |
+
/* Modal Functions */
|
419 |
+
public function modal_page()
|
420 |
+
{
|
421 |
+
require_once('/inc/modals.php');
|
422 |
+
}
|
423 |
+
public function getModalList()
|
424 |
+
{
|
425 |
+
return get_option('EasyModal_ModalList');
|
426 |
+
}
|
427 |
+
public function getModalSettings($modal_id)
|
428 |
+
{
|
429 |
+
return get_option('EasyModal_Modal-'.$modal_id);
|
430 |
+
}
|
431 |
+
public function defaultModalSettings()
|
432 |
+
{
|
433 |
+
return array(
|
434 |
+
'name' => 'change_me',
|
435 |
+
'title' => '',
|
436 |
+
'content' => '',
|
437 |
+
'cf7form' => false,
|
438 |
+
'gravityform' => false,
|
439 |
+
'theme' => 1,
|
440 |
+
'userMaxHeight' => 0,
|
441 |
+
'userHeight' => 0,
|
442 |
+
'userMaxWidth' => 0,
|
443 |
+
'userWidth' => 0,
|
444 |
+
'overlayClose' => 'false',
|
445 |
+
'overlayEscClose' => 'false',
|
446 |
+
);
|
447 |
+
}
|
448 |
+
public function updateModalSettings( $modal_id, $post = NULL )
|
449 |
+
{
|
450 |
+
global $wp;
|
451 |
+
$modals = get_option('EasyModal_ModalList');
|
452 |
+
if($modal_id == 'new')
|
453 |
+
{
|
454 |
+
$highest = 0;
|
455 |
+
foreach($modals as $id => $name)
|
456 |
+
{
|
457 |
+
if($id > $highest) $highest = $id;
|
458 |
+
}
|
459 |
+
$modal_id = $highest+1;
|
460 |
}
|
461 |
+
if(array_key_exists($modal_id, $modals))
|
462 |
+
{
|
463 |
+
$settings = get_option( 'EasyModal_Modal-'.$modal_id);
|
464 |
}
|
465 |
+
else
|
466 |
+
{
|
467 |
+
$settings = $this->defaultModalSettings();
|
468 |
+
}
|
469 |
+
$settings['modal_id'] = $modal_id;
|
470 |
+
if($post)
|
471 |
+
{
|
472 |
+
$post = stripslashes_deep($post);
|
473 |
+
extract($post);
|
474 |
+
if (isset($name))
|
475 |
+
{
|
476 |
+
$settings['name'] = $name;
|
477 |
+
}
|
478 |
+
if (isset($title))
|
479 |
+
{
|
480 |
+
$settings['title'] = apply_filters('content_save_pre', $title);
|
481 |
+
}
|
482 |
+
if (isset($content))
|
483 |
+
{
|
484 |
+
if(strstr($content,'[contact-form')!= NULL){ $settings['cf7form'] = true; }
|
485 |
+
else { $settings['cf7form'] = false; }
|
486 |
+
$settings['content'] = $content;
|
487 |
+
}
|
488 |
+
if (isset($content))
|
489 |
+
{
|
490 |
+
if(strstr($content,'[gravityform')!= NULL){ $settings['gravityform'] = true; }
|
491 |
+
else { $settings['gravityform'] = false; }
|
492 |
+
$settings['content'] = $content;
|
493 |
+
}
|
494 |
+
if (isset($userMaxHeight)){
|
495 |
+
$settings['userMaxHeight'] = $userMaxHeight;
|
496 |
+
}
|
497 |
+
if (isset($userHeight))
|
498 |
+
{
|
499 |
+
$settings['userHeight'] = $userHeight;
|
500 |
+
}
|
501 |
+
if (isset($userMaxWidth))
|
502 |
+
{
|
503 |
+
$settings['userMaxWidth'] = $userMaxWidth;
|
504 |
+
}
|
505 |
+
if (isset($userWidth))
|
506 |
+
{
|
507 |
+
$settings['userWidth'] = $userWidth;
|
508 |
+
}
|
509 |
+
if (isset($overlayClose))
|
510 |
+
{
|
511 |
+
$settings['overlayClose'] = $overlayClose;
|
512 |
+
}
|
513 |
+
else
|
514 |
+
{
|
515 |
+
$settings['overlayClose'] = 'false';
|
516 |
+
}
|
517 |
+
if (isset($overlayEscClose))
|
518 |
+
{
|
519 |
+
$settings['overlayEscClose'] = $overlayEscClose;
|
520 |
+
}
|
521 |
+
else
|
522 |
+
{
|
523 |
+
$settings['overlayEscClose'] = 'false';
|
524 |
+
}
|
525 |
+
}
|
526 |
+
$modals[$modal_id] = $settings['name'];
|
527 |
+
update_option('EasyModal_ModalList', $modals);
|
528 |
+
update_option('EasyModal_Modal-'.$modal_id, $settings);
|
529 |
+
return $settings;
|
530 |
+
}
|
531 |
+
public function deleteModal( $modal_id )
|
532 |
+
{
|
533 |
+
$modals = get_option('EasyModal_ModalList');
|
534 |
+
unset($modals[$modal_id]);
|
535 |
+
update_option('EasyModal_ModalList', $modals);
|
536 |
+
delete_option('EasyModal_Modal-'.$modal_id);
|
537 |
+
}
|
538 |
+
public function enqueue_modals()
|
539 |
+
{
|
540 |
+
$modals = $this->getModalList();
|
541 |
+
$settings = array();
|
542 |
+
$setting = $this->getModalSettings('Link');
|
543 |
+
$settings['Link'] = array(
|
544 |
+
"requestData" => array(
|
545 |
+
"modalId" => 'Link'
|
546 |
+
),
|
547 |
+
"theme" => '1',
|
548 |
+
"type" => 'Link'
|
549 |
+
);
|
550 |
+
foreach($modals as $key => $value)
|
551 |
+
{
|
552 |
+
$setting = $this->getModalSettings($key);
|
553 |
+
$setting["requestData"] = array('modalId' => $key);
|
554 |
+
$settings[$key] = $setting;
|
555 |
+
}
|
556 |
+
return $settings;
|
557 |
+
}
|
558 |
+
/* Theme Functions */
|
559 |
+
public function theme_page()
|
560 |
+
{
|
561 |
+
require_once('/inc/themes.php');
|
562 |
+
}
|
563 |
+
public function getThemeList()
|
564 |
+
{
|
565 |
+
return get_option('EasyModal_ThemeList');
|
566 |
+
}
|
567 |
+
public function getThemeSettings($theme_id)
|
568 |
+
{
|
569 |
+
return get_option('EasyModal_Theme-'.$theme_id);
|
570 |
+
}
|
571 |
+
public function defaultThemeSettings()
|
572 |
+
{
|
573 |
+
return array(
|
574 |
+
'name' => 'change_me',
|
575 |
+
'overlayColor' => '#000000',
|
576 |
+
'overlayOpacity' => '75',
|
577 |
+
'containerBgColor' => '#000000',
|
578 |
+
'containerPadding' => '10',
|
579 |
+
'containerBorderColor' => '#ffffff',
|
580 |
+
'containerBorderStyle' => 'solid',
|
581 |
+
'containerBorderWidth' => '3',
|
582 |
+
'containerBorderRadius' => '20',
|
583 |
+
'closeBgColor' => '#000000',
|
584 |
+
'closeFontColor' => '#ffffff',
|
585 |
+
'closeFontSize' => '15',
|
586 |
+
'closeBorderRadius' => '10',
|
587 |
+
'closeSize' => '20',
|
588 |
+
'closePosition' => 'topright',
|
589 |
+
'contentTitleFontColor' => '#ffffff',
|
590 |
+
'contentTitleFontSize' => '32',
|
591 |
+
'contentTitleFontFamily' => 'Tahoma',
|
592 |
+
'contentFontColor' => '#ffffff'
|
593 |
+
);
|
594 |
+
}
|
595 |
+
public function updateThemeSettings( $theme_id, $post = NULL )
|
596 |
+
{
|
597 |
+
global $wp;
|
598 |
+
$themes = get_option('EasyModal_ThemeList');
|
599 |
+
if($theme_id == 'new')
|
600 |
+
{
|
601 |
+
$highest = 0;
|
602 |
+
foreach($themes as $id => $name)
|
603 |
+
{
|
604 |
+
if($id > $highest) $highest = $id;
|
605 |
+
}
|
606 |
+
$theme_id = $highest+1;
|
607 |
+
}
|
608 |
+
if(array_key_exists($theme_id, $themes))
|
609 |
+
{
|
610 |
+
$settings = get_option( 'EasyModal_Theme-'.$theme_id);
|
611 |
+
}
|
612 |
+
else
|
613 |
+
{
|
614 |
+
$settings = $this->defaultThemeSettings();
|
615 |
+
}
|
616 |
+
if($post)
|
617 |
+
{
|
618 |
+
$post = stripslashes_deep($post);
|
619 |
+
extract($post);
|
620 |
+
$settings['theme_id'] = $theme_id;
|
621 |
+
if (isset($name))
|
622 |
+
{
|
623 |
+
$settings['name'] = $name;
|
624 |
+
}
|
625 |
+
if (isset($overlayColor) && preg_match('/^#[a-f0-9]{6}$/i', $overlayColor))
|
626 |
+
{
|
627 |
+
$settings['overlayColor'] = $overlayColor;
|
628 |
+
}
|
629 |
+
if (isset($overlayOpacity) && $overlayOpacity >= 0 && $overlayOpacity <= 100){
|
630 |
+
$settings['overlayOpacity'] = $overlayOpacity;
|
631 |
+
}
|
632 |
+
if (isset($containerBgColor) && preg_match('/^#[a-f0-9]{6}$/i', $containerBgColor))
|
633 |
+
{
|
634 |
+
$settings['containerBgColor'] = $containerBgColor;
|
635 |
+
}
|
636 |
+
if (isset($containerPadding))
|
637 |
+
{
|
638 |
+
$settings['containerPadding'] = $containerPadding;
|
639 |
+
}
|
640 |
+
if (isset($containerBorderColor) && preg_match('/^#[a-f0-9]{6}$/i', $containerBorderColor))
|
641 |
+
{
|
642 |
+
$settings['containerBorderColor'] = $containerBorderColor;
|
643 |
+
}
|
644 |
+
if (isset($containerBorderStyle))
|
645 |
+
{
|
646 |
+
$settings['containerBorderStyle'] = $containerBorderStyle;
|
647 |
+
}
|
648 |
+
if (isset($containerBorderWidth))
|
649 |
+
{
|
650 |
+
$settings['containerBorderWidth'] = $containerBorderWidth;
|
651 |
+
}
|
652 |
+
if (isset($containerBorderRadius))
|
653 |
+
{
|
654 |
+
$settings['containerBorderRadius'] = $containerBorderRadius;
|
655 |
+
}
|
656 |
+
if (isset($closeBgColor) && preg_match('/^#[a-f0-9]{6}$/i', $closeBgColor))
|
657 |
+
{
|
658 |
+
$settings['closeBgColor'] = $closeBgColor;
|
659 |
+
}
|
660 |
+
if (isset($closeFontColor) && preg_match('/^#[a-f0-9]{6}$/i', $closeFontColor))
|
661 |
+
{
|
662 |
+
$settings['closeFontColor'] = $closeFontColor;
|
663 |
+
}
|
664 |
+
if (isset($closeFontSize))
|
665 |
+
{
|
666 |
+
$settings['closeFontSize'] = $closeFontSize;
|
667 |
+
}
|
668 |
+
if (isset($closeBorderRadius))
|
669 |
+
{
|
670 |
+
$settings['closeBorderRadius'] = $closeBorderRadius;
|
671 |
+
}
|
672 |
+
if (isset($closeSize))
|
673 |
+
{
|
674 |
+
$settings['closeSize'] = $closeSize;
|
675 |
+
}
|
676 |
+
if (isset($closePosition))
|
677 |
+
{
|
678 |
+
$settings['closePosition'] = $closePosition;
|
679 |
+
}
|
680 |
+
if (isset($contentTitleFontColor) && preg_match('/^#[a-f0-9]{6}$/i', $contentTitleFontColor))
|
681 |
+
{
|
682 |
+
$settings['contentTitleFontColor'] = $contentTitleFontColor;
|
683 |
+
}
|
684 |
+
if (isset($contentTitleFontSize))
|
685 |
+
{
|
686 |
+
$settings['contentTitleFontSize'] = $contentTitleFontSize;
|
687 |
+
}
|
688 |
+
if (isset($contentTitleFontFamily))
|
689 |
+
{
|
690 |
+
$settings['contentTitleFontFamily'] = $contentTitleFontFamily;
|
691 |
+
}
|
692 |
+
if (isset($contentFontColor) && preg_match('/^#[a-f0-9]{6}$/i', $contentFontColor))
|
693 |
+
{
|
694 |
+
$settings['contentFontColor'] = $contentFontColor;
|
695 |
+
}
|
696 |
+
}
|
697 |
+
$themes[$theme_id] = $settings['name'];
|
698 |
+
update_option('EasyModal_ThemeList', $themes);
|
699 |
+
update_option('EasyModal_Theme-'.$theme_id, $settings);
|
700 |
+
return $settings;
|
701 |
+
}
|
702 |
+
public function deleteTheme( $theme_id )
|
703 |
+
{
|
704 |
+
$themes = $this->getThemeList();
|
705 |
+
unset($themes[$theme_id]);
|
706 |
+
update_option('EasyModal_ThemeList', $themes);
|
707 |
+
delete_option('EasyModal_Theme-'.$theme_id);
|
708 |
+
}
|
709 |
+
public function enqueue_themes()
|
710 |
+
{
|
711 |
+
$settings = array(
|
712 |
+
1 => $this->getThemeSettings(1)
|
713 |
+
);
|
714 |
+
return $settings;
|
715 |
+
}
|
716 |
+
|
717 |
+
|
718 |
+
public function check_license()
|
719 |
+
{
|
720 |
+
$args = new stdClass;
|
721 |
+
$args->slug = $this->Plugin['slug'];
|
722 |
+
$args->version = $this->Plugin['info']['Version'];
|
723 |
+
$request_string = $this->uopdate_request('license_check', $args);
|
724 |
+
$request = wp_remote_post($this->api_url, $request_string);
|
725 |
+
if (is_wp_error($request))
|
726 |
+
{
|
727 |
+
$res = new WP_Error('plugins_api_failed', __('An Unexpected HTTP Error occurred during the API request.</p> <p><a href="?" onclick="document.location.reload(); return false;">Try again</a>'), $request->get_error_message());
|
728 |
+
}
|
729 |
+
else
|
730 |
+
{
|
731 |
+
$res = unserialize($request['body']);
|
732 |
+
if ($res === false)
|
733 |
+
{
|
734 |
+
$res = new WP_Error('plugins_api_failed', __('An unknown error occurred'), $request['body']);
|
735 |
+
}
|
736 |
+
}
|
737 |
+
return $res;
|
738 |
+
}
|
739 |
+
public function uopdate_request($action, $args)
|
740 |
+
{
|
741 |
+
global $wp_version;
|
742 |
+
return array(
|
743 |
+
'body' => array(
|
744 |
+
'action' => $action,
|
745 |
+
'request' => serialize($args),
|
746 |
+
'domain' => get_bloginfo('url'),
|
747 |
+
'api_key' => md5(get_bloginfo('url')),
|
748 |
+
'license' => get_option('EasyModal_License'),
|
749 |
+
'wp_version'=> $wp_version
|
750 |
+
),
|
751 |
+
'user-agent' => 'WordPress/' . $wp_version . '; ' . get_bloginfo('url')
|
752 |
+
);
|
753 |
+
}
|
754 |
+
// Activated With Valid License
|
755 |
+
public function check_updates($checked_data)
|
756 |
+
{
|
757 |
+
if (empty($checked_data->checked))
|
758 |
+
{
|
759 |
+
return $checked_data;
|
760 |
+
}
|
761 |
+
$request_args = array(
|
762 |
+
'slug' => $this->Plugin['slug'],
|
763 |
+
'version' => $checked_data->checked[$this->Plugin['slug'] .'/'. $this->Plugin['slug'] .'.php'],
|
764 |
+
);
|
765 |
+
$request_string = $this->uopdate_request('basic_check', $request_args);
|
766 |
+
// Start checking for an update
|
767 |
+
$raw_response = wp_remote_post($this->api_url, $request_string);
|
768 |
+
if (!is_wp_error($raw_response) && ($raw_response['response']['code'] == 200))
|
769 |
+
{
|
770 |
+
$response = unserialize($raw_response['body']);
|
771 |
+
}
|
772 |
+
if (is_object($response) && !empty($response)) // Feed the update data into WP updater
|
773 |
+
{
|
774 |
+
$checked_data->response[$this->Plugin['slug'] .'/'. $this->Plugin['slug'] .'.php'] = $response;
|
775 |
+
}
|
776 |
+
return $checked_data;
|
777 |
+
}
|
778 |
+
public function get_plugin_info($def, $action, $args)
|
779 |
+
{
|
780 |
+
if (empty($args->slug) || $args->slug != $this->Plugin['slug'])
|
781 |
+
{
|
782 |
+
return false;
|
783 |
+
}
|
784 |
+
// Get the current version
|
785 |
+
$plugin_info = get_site_transient('update_plugins');
|
786 |
+
$current_version = $plugin_info->checked[$this->Plugin['slug'] .'/'. $this->Plugin['slug'] .'.php'];
|
787 |
+
$args->version = $current_version;
|
788 |
+
$request_string = $this->uopdate_request($action, $args);
|
789 |
+
$request = wp_remote_post($this->api_url, $request_string);
|
790 |
+
if (is_wp_error($request))
|
791 |
+
{
|
792 |
+
$res = new WP_Error('plugins_api_failed', __('An Unexpected HTTP Error occurred during the API request.</p> <p><a href="?" onclick="document.location.reload(); return false;">Try again</a>'), $request->get_error_message());
|
793 |
+
}
|
794 |
+
else
|
795 |
+
{
|
796 |
+
$res = unserialize($request['body']);
|
797 |
+
if ($res === false)
|
798 |
+
{
|
799 |
+
$res = new WP_Error('plugins_api_failed', __('An unknown error occurred'), $request['body']);
|
800 |
+
}
|
801 |
+
}
|
802 |
+
return $res;
|
803 |
+
}
|
804 |
}
|
805 |
+
$license_status = get_option('EasyModal_License_Status');
|
806 |
+
if(file_exists(ABSPATH.PLUGINDIR.'/'.dirname(plugin_basename(__FILE__)).'/easy-modal-pro.php') && isset($license_status['status']) && $license_status['status']===200)
|
807 |
+
{
|
808 |
+
include(ABSPATH.PLUGINDIR.'/'.dirname(plugin_basename(__FILE__)).'/easy-modal-pro.php');
|
809 |
+
$EM = new Easy_Modal_Pro;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
810 |
}
|
811 |
+
else
|
812 |
+
{
|
813 |
+
$EM = new Easy_Modal;
|
814 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
inc/ajax/content.php
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
* Easy Modal
|
4 |
+
* http://wizardinternetsolutions.com/plugins/easy-modal/
|
5 |
+
*/
|
6 |
+
require( '../../../../../wp-load.php' );
|
7 |
+
global $EM;
|
8 |
+
$options = $EM->getModalSettings($_POST['modalId']);
|
9 |
+
|
10 |
+
if($_POST['modalId'] == 'Link'){?>
|
11 |
+
<iframe src="<?php echo $_POST['url']?>" height="<?php echo $_POST['iframeHeight']?>" width="<?php echo $_POST['iframeWidth']?>" style="background:#fff" >
|
12 |
+
<p>Your browser does not support iframes.</p>
|
13 |
+
</iframe><?php
|
14 |
+
} else {?>
|
15 |
+
<h1 id='eModal-Title'><?php echo $options['title'] ?></h1>
|
16 |
+
<?php echo do_shortcode($options['content']);
|
17 |
+
}?>
|
inc/css/admin-styles.min.css
ADDED
@@ -0,0 +1,492 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
h4 span.desc{font-weight:400;font-size:.9em;margin-top:2px;display:block}
|
2 |
+
.emthemes h4{margin:0}
|
3 |
+
.emthemes td,.emthemes th{vertical-align:middle;width:49.9%;padding:5px}
|
4 |
+
.empreview{width:49.9%;float:left;position:relative;border:1px solid #666}
|
5 |
+
.empreview h2{text-align:center;color:#fff;margin:0 7px;font-size:30px;position:relative}
|
6 |
+
.empreview #eModal-Preview{height:450px;width:100%;position:relative}
|
7 |
+
.empreview #eModal-Overlay{position:absolute;width:100%;height:100%;top:0;left:0}
|
8 |
+
.empreview #eModal-Container{position:relative;width:300px;top:10px;margin:auto}
|
9 |
+
.empreview #eModal-Close{position:absolute;text-align:center;font-weight:700;text-decoration:none;top:-10px;right:-10px;display:block;width:20px;height:20px;background-color:#000;border:2px solid #fff;-moz-border-radius:10px;-webkit-border-radius:10px;border-radius:10px;color:#fff;vertical-align:middle}
|
10 |
+
.empreview #eModal-Close.topright{top:-10px;right:-10px;bottom:auto;left:auto}
|
11 |
+
.empreview #eModal-Close.topleft{top:-10px;left:-10px;bottom:auto;right:auto}
|
12 |
+
.empreview #eModal-Close.bottomright{bottom:-10px;right:-10px;top:auto;left:auto}
|
13 |
+
.empreview #eModal-Close.bottomleft{bottom:-10px;left:-10px;top:auto;right:auto}
|
14 |
+
.settings_page_easy-modal-pro .half.last,.settings_page_easy-modal-pro input[type=submit]{float:right}
|
15 |
+
.emthemes{display:inline-block;float:left;width:48%;margin-right:1%}
|
16 |
+
.emthemes>div{display:block;float:left;width:100%}
|
17 |
+
.colorpicker{width:356px;height:176px;overflow:hidden;position:absolute;background:url(../images/admin/colorpicker_background.png);font-family:Arial,Helvetica,sans-serif;display:none;z-index:1000}
|
18 |
+
.colorpicker_color{width:150px;height:150px;left:14px;top:13px;position:absolute;background:red;overflow:hidden;cursor:crosshair}
|
19 |
+
.colorpicker_color div{position:absolute;top:0;left:0;width:150px;height:150px;background:url(../images/admin/colorpicker_overlay.png)}
|
20 |
+
.colorpicker_color div div{position:absolute;top:0;left:0;width:11px;height:11px;overflow:hidden;background:url(../images/admin/colorpicker_select.gif);margin:-5px 0 0 -5px}
|
21 |
+
.colorpicker_hue{position:absolute;top:13px;left:171px;width:35px;height:150px;cursor:n-resize}
|
22 |
+
.colorpicker_hue div{position:absolute;width:35px;height:9px;overflow:hidden;background:url(../images/admin/colorpicker_indic.gif) left top;left:0;margin:-4px 0 0}
|
23 |
+
.colorpicker_new_color{position:absolute;width:60px;height:30px;left:213px;top:13px;background:red}
|
24 |
+
.colorpicker_current_color{position:absolute;width:60px;height:30px;left:283px;top:13px;background:red}
|
25 |
+
.colorpicker input{background-color:transparent;border:1px solid transparent;position:absolute;font-size:10px;font-family:Arial,Helvetica,sans-serif;color:#898989;top:4px;right:11px;text-align:right;height:11px;margin:0;padding:0}
|
26 |
+
.colorpicker_hex{position:absolute;width:72px;height:22px;background:url(../images/admin/colorpicker_hex.png) top;left:212px;top:142px}
|
27 |
+
.colorpicker_hex input{right:6px}
|
28 |
+
.colorpicker_field{height:22px;width:62px;background-position:top;position:absolute}
|
29 |
+
.colorpicker_field span{position:absolute;width:12px;height:22px;overflow:hidden;top:0;right:0;cursor:n-resize}
|
30 |
+
.colorpicker_rgb_r{background-image:url(../images/admin/colorpicker_rgb_r.png);top:52px;left:212px}
|
31 |
+
.colorpicker_rgb_g{background-image:url(../images/admin/colorpicker_rgb_g.png);top:82px;left:212px}
|
32 |
+
.colorpicker_rgb_b{background-image:url(../images/admin/colorpicker_rgb_b.png);top:112px;left:212px}
|
33 |
+
.colorpicker_hsb_h{background-image:url(../images/admin/colorpicker_hsb_h.png);top:52px;left:282px}
|
34 |
+
.colorpicker_hsb_s{background-image:url(../images/admin/colorpicker_hsb_s.png);top:82px;left:282px}
|
35 |
+
.colorpicker_hsb_b{background-image:url(../images/admin/colorpicker_hsb_b.png);top:112px;left:282px}
|
36 |
+
.colorpicker_submit{position:absolute;width:22px;height:22px;background:url(../images/admin/colorpicker_submit.png) top;left:322px;top:142px;overflow:hidden}
|
37 |
+
.colorpicker_focus{background-position:center}
|
38 |
+
.colorpicker_hex.colorpicker_focus,.colorpicker_submit.colorpicker_focus,.colorpicker_slider{background-position:bottom}
|
39 |
+
/*!
|
40 |
+
* jQuery UI CSS Framework 1.8.22
|
41 |
+
*
|
42 |
+
* Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
|
43 |
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
44 |
+
* http://jquery.org/license
|
45 |
+
*
|
46 |
+
* http://docs.jquery.com/UI/Theming/API
|
47 |
+
*/.ui-helper-hidden{display:none}
|
48 |
+
.ui-helper-hidden-accessible{position:absolute!important;clip:rect(1px 1px 1px 1px);clip:rect(1px,1px,1px,1px)}
|
49 |
+
.ui-helper-reset{margin:0;padding:0;border:0;outline:0;line-height:1.3;text-decoration:none;font-size:100%;list-style:none}
|
50 |
+
.ui-helper-clearfix:before,.ui-helper-clearfix:after{content:"";display:table}
|
51 |
+
.ui-helper-clearfix:after{clear:both}
|
52 |
+
.ui-helper-clearfix{zoom:1}
|
53 |
+
.ui-helper-zfix{width:100%;height:100%;top:0;left:0;position:absolute;opacity:0;filter:Alpha(Opacity=0)}
|
54 |
+
.ui-state-disabled{cursor:default!important}
|
55 |
+
.ui-icon{display:block;text-indent:-99999px;overflow:hidden;background-repeat:no-repeat}
|
56 |
+
.ui-widget-overlay{position:absolute;top:0;left:0;width:100%;height:100%}
|
57 |
+
/*!
|
58 |
+
* jQuery UI CSS Framework 1.8.22
|
59 |
+
*
|
60 |
+
* Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
|
61 |
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
62 |
+
* http://jquery.org/license
|
63 |
+
*
|
64 |
+
* http://docs.jquery.com/UI/Theming/API
|
65 |
+
*
|
66 |
+
* To view and modify this theme, visit http://jqueryui.com/themeroller/?ffDefault=Lucida%20Grande,%20Lucida%20Sans,%20Arial,%20sans-serif&fwDefault=bold&fsDefault=1.1em&cornerRadius=5px&bgColorHeader=5c9ccc&bgTextureHeader=12_gloss_wave.png&bgImgOpacityHeader=55&borderColorHeader=4297d7&fcHeader=ffffff&iconColorHeader=d8e7f3&bgColorContent=fcfdfd&bgTextureContent=06_inset_hard.png&bgImgOpacityContent=100&borderColorContent=a6c9e2&fcContent=222222&iconColorContent=469bdd&bgColorDefault=dfeffc&bgTextureDefault=02_glass.png&bgImgOpacityDefault=85&borderColorDefault=c5dbec&fcDefault=2e6e9e&iconColorDefault=6da8d5&bgColorHover=d0e5f5&bgTextureHover=02_glass.png&bgImgOpacityHover=75&borderColorHover=79b7e7&fcHover=1d5987&iconColorHover=217bc0&bgColorActive=f5f8f9&bgTextureActive=06_inset_hard.png&bgImgOpacityActive=100&borderColorActive=79b7e7&fcActive=e17009&iconColorActive=f9bd01&bgColorHighlight=fbec88&bgTextureHighlight=01_flat.png&bgImgOpacityHighlight=55&borderColorHighlight=fad42e&fcHighlight=363636&iconColorHighlight=2e83ff&bgColorError=fef1ec&bgTextureError=02_glass.png&bgImgOpacityError=95&borderColorError=cd0a0a&fcError=cd0a0a&iconColorError=cd0a0a&bgColorOverlay=aaaaaa&bgTextureOverlay=01_flat.png&bgImgOpacityOverlay=0&opacityOverlay=30&bgColorShadow=aaaaaa&bgTextureShadow=01_flat.png&bgImgOpacityShadow=0&opacityShadow=30&thicknessShadow=8px&offsetTopShadow=-8px&offsetLeftShadow=-8px&cornerRadiusShadow=8px
|
67 |
+
*/.ui-widget{font-family:Lucida Grande,Lucida Sans,Arial,sans-serif;font-size:1.1em}
|
68 |
+
.ui-widget .ui-widget{font-size:1em}
|
69 |
+
.ui-widget input,.ui-widget select,.ui-widget textarea,.ui-widget button{font-family:Lucida Grande,Lucida Sans,Arial,sans-serif;font-size:1em}
|
70 |
+
.ui-widget-content{border:1px solid #a6c9e2;background:#fcfdfd url(../images/admin/ui-bg_inset-hard_100_fcfdfd_1x100.png) 50% bottom repeat-x;color:#222}
|
71 |
+
.ui-widget-content a{color:#222}
|
72 |
+
.ui-widget-header{border:1px solid #4297d7;background:#5c9ccc url(../images/admin/ui-bg_gloss-wave_55_5c9ccc_500x100.png) 50% 50% repeat-x;color:#fff;font-weight:bold}
|
73 |
+
.ui-widget-header a{color:#fff}
|
74 |
+
.ui-state-default,.ui-widget-content .ui-state-default,.ui-widget-header .ui-state-default{border:1px solid #c5dbec;background:#dfeffc url(../images/admin/ui-bg_glass_85_dfeffc_1x400.png) 50% 50% repeat-x;font-weight:bold;color:#2e6e9e}
|
75 |
+
.ui-state-default a,.ui-state-default a:link,.ui-state-default a:visited{color:#2e6e9e;text-decoration:none}
|
76 |
+
.ui-state-hover,.ui-widget-content .ui-state-hover,.ui-widget-header .ui-state-hover,.ui-state-focus,.ui-widget-content .ui-state-focus,.ui-widget-header .ui-state-focus{border:1px solid #79b7e7;background:#d0e5f5 url(../images/admin/ui-bg_glass_75_d0e5f5_1x400.png) 50% 50% repeat-x;font-weight:bold;color:#1d5987}
|
77 |
+
.ui-state-hover a,.ui-state-hover a:hover{color:#1d5987;text-decoration:none}
|
78 |
+
.ui-state-active,.ui-widget-content .ui-state-active,.ui-widget-header .ui-state-active{border:1px solid #79b7e7;background:#f5f8f9 url(../images/admin/ui-bg_inset-hard_100_f5f8f9_1x100.png) 50% 50% repeat-x;font-weight:bold;color:#e17009}
|
79 |
+
.ui-state-active a,.ui-state-active a:link,.ui-state-active a:visited{color:#e17009;text-decoration:none}
|
80 |
+
.ui-widget :active{outline:0}
|
81 |
+
.ui-state-highlight,.ui-widget-content .ui-state-highlight,.ui-widget-header .ui-state-highlight{border:1px solid #fad42e;background:#fbec88 url(../images/admin/ui-bg_flat_55_fbec88_40x100.png) 50% 50% repeat-x;color:#363636}
|
82 |
+
.ui-state-highlight a,.ui-widget-content .ui-state-highlight a,.ui-widget-header .ui-state-highlight a{color:#363636}
|
83 |
+
.ui-state-error,.ui-widget-content .ui-state-error,.ui-widget-header .ui-state-error{border:1px solid #cd0a0a;background:#fef1ec url(../images/admin/ui-bg_glass_95_fef1ec_1x400.png) 50% 50% repeat-x;color:#cd0a0a}
|
84 |
+
.ui-state-error a,.ui-widget-content .ui-state-error a,.ui-widget-header .ui-state-error a{color:#cd0a0a}
|
85 |
+
.ui-state-error-text,.ui-widget-content .ui-state-error-text,.ui-widget-header .ui-state-error-text{color:#cd0a0a}
|
86 |
+
.ui-priority-primary,.ui-widget-content .ui-priority-primary,.ui-widget-header .ui-priority-primary{font-weight:bold}
|
87 |
+
.ui-priority-secondary,.ui-widget-content .ui-priority-secondary,.ui-widget-header .ui-priority-secondary{opacity:.7;filter:Alpha(Opacity=70);font-weight:normal}
|
88 |
+
.ui-state-disabled,.ui-widget-content .ui-state-disabled,.ui-widget-header .ui-state-disabled{opacity:.35;filter:Alpha(Opacity=35);background-image:none}
|
89 |
+
.ui-icon{width:16px;height:16px;background-image:url(../images/admin/ui-icons_469bdd_256x240.png)}
|
90 |
+
.ui-widget-content .ui-icon{background-image:url(../images/admin/ui-icons_469bdd_256x240.png)}
|
91 |
+
.ui-widget-header .ui-icon{background-image:url(../images/admin/ui-icons_d8e7f3_256x240.png)}
|
92 |
+
.ui-state-default .ui-icon{background-image:url(../images/admin/ui-icons_6da8d5_256x240.png)}
|
93 |
+
.ui-state-hover .ui-icon,.ui-state-focus .ui-icon{background-image:url(../images/admin/ui-icons_217bc0_256x240.png)}
|
94 |
+
.ui-state-active .ui-icon{background-image:url(../images/admin/ui-icons_f9bd01_256x240.png)}
|
95 |
+
.ui-state-highlight .ui-icon{background-image:url(../images/admin/ui-icons_2e83ff_256x240.png)}
|
96 |
+
.ui-state-error .ui-icon,.ui-state-error-text .ui-icon{background-image:url(../images/admin/ui-icons_cd0a0a_256x240.png)}
|
97 |
+
.ui-icon-carat-1-n{background-position:0 0}
|
98 |
+
.ui-icon-carat-1-ne{background-position:-16px 0}
|
99 |
+
.ui-icon-carat-1-e{background-position:-32px 0}
|
100 |
+
.ui-icon-carat-1-se{background-position:-48px 0}
|
101 |
+
.ui-icon-carat-1-s{background-position:-64px 0}
|
102 |
+
.ui-icon-carat-1-sw{background-position:-80px 0}
|
103 |
+
.ui-icon-carat-1-w{background-position:-96px 0}
|
104 |
+
.ui-icon-carat-1-nw{background-position:-112px 0}
|
105 |
+
.ui-icon-carat-2-n-s{background-position:-128px 0}
|
106 |
+
.ui-icon-carat-2-e-w{background-position:-144px 0}
|
107 |
+
.ui-icon-triangle-1-n{background-position:0 -16px}
|
108 |
+
.ui-icon-triangle-1-ne{background-position:-16px -16px}
|
109 |
+
.ui-icon-triangle-1-e{background-position:-32px -16px}
|
110 |
+
.ui-icon-triangle-1-se{background-position:-48px -16px}
|
111 |
+
.ui-icon-triangle-1-s{background-position:-64px -16px}
|
112 |
+
.ui-icon-triangle-1-sw{background-position:-80px -16px}
|
113 |
+
.ui-icon-triangle-1-w{background-position:-96px -16px}
|
114 |
+
.ui-icon-triangle-1-nw{background-position:-112px -16px}
|
115 |
+
.ui-icon-triangle-2-n-s{background-position:-128px -16px}
|
116 |
+
.ui-icon-triangle-2-e-w{background-position:-144px -16px}
|
117 |
+
.ui-icon-arrow-1-n{background-position:0 -32px}
|
118 |
+
.ui-icon-arrow-1-ne{background-position:-16px -32px}
|
119 |
+
.ui-icon-arrow-1-e{background-position:-32px -32px}
|
120 |
+
.ui-icon-arrow-1-se{background-position:-48px -32px}
|
121 |
+
.ui-icon-arrow-1-s{background-position:-64px -32px}
|
122 |
+
.ui-icon-arrow-1-sw{background-position:-80px -32px}
|
123 |
+
.ui-icon-arrow-1-w{background-position:-96px -32px}
|
124 |
+
.ui-icon-arrow-1-nw{background-position:-112px -32px}
|
125 |
+
.ui-icon-arrow-2-n-s{background-position:-128px -32px}
|
126 |
+
.ui-icon-arrow-2-ne-sw{background-position:-144px -32px}
|
127 |
+
.ui-icon-arrow-2-e-w{background-position:-160px -32px}
|
128 |
+
.ui-icon-arrow-2-se-nw{background-position:-176px -32px}
|
129 |
+
.ui-icon-arrowstop-1-n{background-position:-192px -32px}
|
130 |
+
.ui-icon-arrowstop-1-e{background-position:-208px -32px}
|
131 |
+
.ui-icon-arrowstop-1-s{background-position:-224px -32px}
|
132 |
+
.ui-icon-arrowstop-1-w{background-position:-240px -32px}
|
133 |
+
.ui-icon-arrowthick-1-n{background-position:0 -48px}
|
134 |
+
.ui-icon-arrowthick-1-ne{background-position:-16px -48px}
|
135 |
+
.ui-icon-arrowthick-1-e{background-position:-32px -48px}
|
136 |
+
.ui-icon-arrowthick-1-se{background-position:-48px -48px}
|
137 |
+
.ui-icon-arrowthick-1-s{background-position:-64px -48px}
|
138 |
+
.ui-icon-arrowthick-1-sw{background-position:-80px -48px}
|
139 |
+
.ui-icon-arrowthick-1-w{background-position:-96px -48px}
|
140 |
+
.ui-icon-arrowthick-1-nw{background-position:-112px -48px}
|
141 |
+
.ui-icon-arrowthick-2-n-s{background-position:-128px -48px}
|
142 |
+
.ui-icon-arrowthick-2-ne-sw{background-position:-144px -48px}
|
143 |
+
.ui-icon-arrowthick-2-e-w{background-position:-160px -48px}
|
144 |
+
.ui-icon-arrowthick-2-se-nw{background-position:-176px -48px}
|
145 |
+
.ui-icon-arrowthickstop-1-n{background-position:-192px -48px}
|
146 |
+
.ui-icon-arrowthickstop-1-e{background-position:-208px -48px}
|
147 |
+
.ui-icon-arrowthickstop-1-s{background-position:-224px -48px}
|
148 |
+
.ui-icon-arrowthickstop-1-w{background-position:-240px -48px}
|
149 |
+
.ui-icon-arrowreturnthick-1-w{background-position:0 -64px}
|
150 |
+
.ui-icon-arrowreturnthick-1-n{background-position:-16px -64px}
|
151 |
+
.ui-icon-arrowreturnthick-1-e{background-position:-32px -64px}
|
152 |
+
.ui-icon-arrowreturnthick-1-s{background-position:-48px -64px}
|
153 |
+
.ui-icon-arrowreturn-1-w{background-position:-64px -64px}
|
154 |
+
.ui-icon-arrowreturn-1-n{background-position:-80px -64px}
|
155 |
+
.ui-icon-arrowreturn-1-e{background-position:-96px -64px}
|
156 |
+
.ui-icon-arrowreturn-1-s{background-position:-112px -64px}
|
157 |
+
.ui-icon-arrowrefresh-1-w{background-position:-128px -64px}
|
158 |
+
.ui-icon-arrowrefresh-1-n{background-position:-144px -64px}
|
159 |
+
.ui-icon-arrowrefresh-1-e{background-position:-160px -64px}
|
160 |
+
.ui-icon-arrowrefresh-1-s{background-position:-176px -64px}
|
161 |
+
.ui-icon-arrow-4{background-position:0 -80px}
|
162 |
+
.ui-icon-arrow-4-diag{background-position:-16px -80px}
|
163 |
+
.ui-icon-extlink{background-position:-32px -80px}
|
164 |
+
.ui-icon-newwin{background-position:-48px -80px}
|
165 |
+
.ui-icon-refresh{background-position:-64px -80px}
|
166 |
+
.ui-icon-shuffle{background-position:-80px -80px}
|
167 |
+
.ui-icon-transfer-e-w{background-position:-96px -80px}
|
168 |
+
.ui-icon-transferthick-e-w{background-position:-112px -80px}
|
169 |
+
.ui-icon-folder-collapsed{background-position:0 -96px}
|
170 |
+
.ui-icon-folder-open{background-position:-16px -96px}
|
171 |
+
.ui-icon-document{background-position:-32px -96px}
|
172 |
+
.ui-icon-document-b{background-position:-48px -96px}
|
173 |
+
.ui-icon-note{background-position:-64px -96px}
|
174 |
+
.ui-icon-mail-closed{background-position:-80px -96px}
|
175 |
+
.ui-icon-mail-open{background-position:-96px -96px}
|
176 |
+
.ui-icon-suitcase{background-position:-112px -96px}
|
177 |
+
.ui-icon-comment{background-position:-128px -96px}
|
178 |
+
.ui-icon-person{background-position:-144px -96px}
|
179 |
+
.ui-icon-print{background-position:-160px -96px}
|
180 |
+
.ui-icon-trash{background-position:-176px -96px}
|
181 |
+
.ui-icon-locked{background-position:-192px -96px}
|
182 |
+
.ui-icon-unlocked{background-position:-208px -96px}
|
183 |
+
.ui-icon-bookmark{background-position:-224px -96px}
|
184 |
+
.ui-icon-tag{background-position:-240px -96px}
|
185 |
+
.ui-icon-home{background-position:0 -112px}
|
186 |
+
.ui-icon-flag{background-position:-16px -112px}
|
187 |
+
.ui-icon-calendar{background-position:-32px -112px}
|
188 |
+
.ui-icon-cart{background-position:-48px -112px}
|
189 |
+
.ui-icon-pencil{background-position:-64px -112px}
|
190 |
+
.ui-icon-clock{background-position:-80px -112px}
|
191 |
+
.ui-icon-disk{background-position:-96px -112px}
|
192 |
+
.ui-icon-calculator{background-position:-112px -112px}
|
193 |
+
.ui-icon-zoomin{background-position:-128px -112px}
|
194 |
+
.ui-icon-zoomout{background-position:-144px -112px}
|
195 |
+
.ui-icon-search{background-position:-160px -112px}
|
196 |
+
.ui-icon-wrench{background-position:-176px -112px}
|
197 |
+
.ui-icon-gear{background-position:-192px -112px}
|
198 |
+
.ui-icon-heart{background-position:-208px -112px}
|
199 |
+
.ui-icon-star{background-position:-224px -112px}
|
200 |
+
.ui-icon-link{background-position:-240px -112px}
|
201 |
+
.ui-icon-cancel{background-position:0 -128px}
|
202 |
+
.ui-icon-plus{background-position:-16px -128px}
|
203 |
+
.ui-icon-plusthick{background-position:-32px -128px}
|
204 |
+
.ui-icon-minus{background-position:-48px -128px}
|
205 |
+
.ui-icon-minusthick{background-position:-64px -128px}
|
206 |
+
.ui-icon-close{background-position:-80px -128px}
|
207 |
+
.ui-icon-closethick{background-position:-96px -128px}
|
208 |
+
.ui-icon-key{background-position:-112px -128px}
|
209 |
+
.ui-icon-lightbulb{background-position:-128px -128px}
|
210 |
+
.ui-icon-scissors{background-position:-144px -128px}
|
211 |
+
.ui-icon-clipboard{background-position:-160px -128px}
|
212 |
+
.ui-icon-copy{background-position:-176px -128px}
|
213 |
+
.ui-icon-contact{background-position:-192px -128px}
|
214 |
+
.ui-icon-image{background-position:-208px -128px}
|
215 |
+
.ui-icon-video{background-position:-224px -128px}
|
216 |
+
.ui-icon-script{background-position:-240px -128px}
|
217 |
+
.ui-icon-alert{background-position:0 -144px}
|
218 |
+
.ui-icon-info{background-position:-16px -144px}
|
219 |
+
.ui-icon-notice{background-position:-32px -144px}
|
220 |
+
.ui-icon-help{background-position:-48px -144px}
|
221 |
+
.ui-icon-check{background-position:-64px -144px}
|
222 |
+
.ui-icon-bullet{background-position:-80px -144px}
|
223 |
+
.ui-icon-radio-off{background-position:-96px -144px}
|
224 |
+
.ui-icon-radio-on{background-position:-112px -144px}
|
225 |
+
.ui-icon-pin-w{background-position:-128px -144px}
|
226 |
+
.ui-icon-pin-s{background-position:-144px -144px}
|
227 |
+
.ui-icon-play{background-position:0 -160px}
|
228 |
+
.ui-icon-pause{background-position:-16px -160px}
|
229 |
+
.ui-icon-seek-next{background-position:-32px -160px}
|
230 |
+
.ui-icon-seek-prev{background-position:-48px -160px}
|
231 |
+
.ui-icon-seek-end{background-position:-64px -160px}
|
232 |
+
.ui-icon-seek-start{background-position:-80px -160px}
|
233 |
+
.ui-icon-seek-first{background-position:-80px -160px}
|
234 |
+
.ui-icon-stop{background-position:-96px -160px}
|
235 |
+
.ui-icon-eject{background-position:-112px -160px}
|
236 |
+
.ui-icon-volume-off{background-position:-128px -160px}
|
237 |
+
.ui-icon-volume-on{background-position:-144px -160px}
|
238 |
+
.ui-icon-power{background-position:0 -176px}
|
239 |
+
.ui-icon-signal-diag{background-position:-16px -176px}
|
240 |
+
.ui-icon-signal{background-position:-32px -176px}
|
241 |
+
.ui-icon-battery-0{background-position:-48px -176px}
|
242 |
+
.ui-icon-battery-1{background-position:-64px -176px}
|
243 |
+
.ui-icon-battery-2{background-position:-80px -176px}
|
244 |
+
.ui-icon-battery-3{background-position:-96px -176px}
|
245 |
+
.ui-icon-circle-plus{background-position:0 -192px}
|
246 |
+
.ui-icon-circle-minus{background-position:-16px -192px}
|
247 |
+
.ui-icon-circle-close{background-position:-32px -192px}
|
248 |
+
.ui-icon-circle-triangle-e{background-position:-48px -192px}
|
249 |
+
.ui-icon-circle-triangle-s{background-position:-64px -192px}
|
250 |
+
.ui-icon-circle-triangle-w{background-position:-80px -192px}
|
251 |
+
.ui-icon-circle-triangle-n{background-position:-96px -192px}
|
252 |
+
.ui-icon-circle-arrow-e{background-position:-112px -192px}
|
253 |
+
.ui-icon-circle-arrow-s{background-position:-128px -192px}
|
254 |
+
.ui-icon-circle-arrow-w{background-position:-144px -192px}
|
255 |
+
.ui-icon-circle-arrow-n{background-position:-160px -192px}
|
256 |
+
.ui-icon-circle-zoomin{background-position:-176px -192px}
|
257 |
+
.ui-icon-circle-zoomout{background-position:-192px -192px}
|
258 |
+
.ui-icon-circle-check{background-position:-208px -192px}
|
259 |
+
.ui-icon-circlesmall-plus{background-position:0 -208px}
|
260 |
+
.ui-icon-circlesmall-minus{background-position:-16px -208px}
|
261 |
+
.ui-icon-circlesmall-close{background-position:-32px -208px}
|
262 |
+
.ui-icon-squaresmall-plus{background-position:-48px -208px}
|
263 |
+
.ui-icon-squaresmall-minus{background-position:-64px -208px}
|
264 |
+
.ui-icon-squaresmall-close{background-position:-80px -208px}
|
265 |
+
.ui-icon-grip-dotted-vertical{background-position:0 -224px}
|
266 |
+
.ui-icon-grip-dotted-horizontal{background-position:-16px -224px}
|
267 |
+
.ui-icon-grip-solid-vertical{background-position:-32px -224px}
|
268 |
+
.ui-icon-grip-solid-horizontal{background-position:-48px -224px}
|
269 |
+
.ui-icon-gripsmall-diagonal-se{background-position:-64px -224px}
|
270 |
+
.ui-icon-grip-diagonal-se{background-position:-80px -224px}
|
271 |
+
.ui-corner-all,.ui-corner-top,.ui-corner-left,.ui-corner-tl{-moz-border-radius-topleft:5px;-webkit-border-top-left-radius:5px;-khtml-border-top-left-radius:5px;border-top-left-radius:5px}
|
272 |
+
.ui-corner-all,.ui-corner-top,.ui-corner-right,.ui-corner-tr{-moz-border-radius-topright:5px;-webkit-border-top-right-radius:5px;-khtml-border-top-right-radius:5px;border-top-right-radius:5px}
|
273 |
+
.ui-corner-all,.ui-corner-bottom,.ui-corner-left,.ui-corner-bl{-moz-border-radius-bottomleft:5px;-webkit-border-bottom-left-radius:5px;-khtml-border-bottom-left-radius:5px;border-bottom-left-radius:5px}
|
274 |
+
.ui-corner-all,.ui-corner-bottom,.ui-corner-right,.ui-corner-br{-moz-border-radius-bottomright:5px;-webkit-border-bottom-right-radius:5px;-khtml-border-bottom-right-radius:5px;border-bottom-right-radius:5px}
|
275 |
+
.ui-widget-overlay{background:#aaa url(../images/admin/ui-bg_flat_0_aaaaaa_40x100.png) 50% 50% repeat-x;opacity:.30;filter:Alpha(Opacity=30)}
|
276 |
+
.ui-widget-shadow{margin:-8px 0 0 -8px;padding:8px;background:#aaa url(../images/admin/ui-bg_flat_0_aaaaaa_40x100.png) 50% 50% repeat-x;opacity:.30;filter:Alpha(Opacity=30);-moz-border-radius:8px;-khtml-border-radius:8px;-webkit-border-radius:8px;border-radius:8px}
|
277 |
+
/*!
|
278 |
+
* jQuery UI Resizable 1.8.22
|
279 |
+
*
|
280 |
+
* Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
|
281 |
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
282 |
+
* http://jquery.org/license
|
283 |
+
*
|
284 |
+
* http://docs.jquery.com/UI/Resizable#theming
|
285 |
+
*/.ui-resizable{position:relative}
|
286 |
+
.ui-resizable-handle{position:absolute;font-size:.1px;display:block}
|
287 |
+
.ui-resizable-disabled .ui-resizable-handle,.ui-resizable-autohide .ui-resizable-handle{display:none}
|
288 |
+
.ui-resizable-n{cursor:n-resize;height:7px;width:100%;top:-5px;left:0}
|
289 |
+
.ui-resizable-s{cursor:s-resize;height:7px;width:100%;bottom:-5px;left:0}
|
290 |
+
.ui-resizable-e{cursor:e-resize;width:7px;right:-5px;top:0;height:100%}
|
291 |
+
.ui-resizable-w{cursor:w-resize;width:7px;left:-5px;top:0;height:100%}
|
292 |
+
.ui-resizable-se{cursor:se-resize;width:12px;height:12px;right:1px;bottom:1px}
|
293 |
+
.ui-resizable-sw{cursor:sw-resize;width:9px;height:9px;left:-5px;bottom:-5px}
|
294 |
+
.ui-resizable-nw{cursor:nw-resize;width:9px;height:9px;left:-5px;top:-5px}
|
295 |
+
.ui-resizable-ne{cursor:ne-resize;width:9px;height:9px;right:-5px;top:-5px}
|
296 |
+
/*!
|
297 |
+
* jQuery UI Selectable 1.8.22
|
298 |
+
*
|
299 |
+
* Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
|
300 |
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
301 |
+
* http://jquery.org/license
|
302 |
+
*
|
303 |
+
* http://docs.jquery.com/UI/Selectable#theming
|
304 |
+
*/.ui-selectable-helper{position:absolute;z-index:100;border:1px dotted black}
|
305 |
+
/*!
|
306 |
+
* jQuery UI Accordion 1.8.22
|
307 |
+
*
|
308 |
+
* Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
|
309 |
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
310 |
+
* http://jquery.org/license
|
311 |
+
*
|
312 |
+
* http://docs.jquery.com/UI/Accordion#theming
|
313 |
+
*/.ui-accordion{width:100%}
|
314 |
+
.ui-accordion .ui-accordion-header{cursor:pointer;position:relative;margin-top:1px;zoom:1}
|
315 |
+
.ui-accordion .ui-accordion-li-fix{display:inline}
|
316 |
+
.ui-accordion .ui-accordion-header-active{border-bottom:0!important}
|
317 |
+
.ui-accordion .ui-accordion-header a{display:block;font-size:1em;padding:.5em .5em .5em .7em}
|
318 |
+
.ui-accordion-icons .ui-accordion-header a{padding-left:2.2em}
|
319 |
+
.ui-accordion .ui-accordion-header .ui-icon{position:absolute;left:.5em;top:50%;margin-top:-8px}
|
320 |
+
.ui-accordion .ui-accordion-content{padding:1em 2.2em;border-top:0;margin-top:-2px;position:relative;top:1px;margin-bottom:2px;overflow:auto;display:none;zoom:1}
|
321 |
+
.ui-accordion .ui-accordion-content-active{display:block}
|
322 |
+
/*!
|
323 |
+
* jQuery UI Autocomplete 1.8.22
|
324 |
+
*
|
325 |
+
* Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
|
326 |
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
327 |
+
* http://jquery.org/license
|
328 |
+
*
|
329 |
+
* http://docs.jquery.com/UI/Autocomplete#theming
|
330 |
+
*/.ui-autocomplete{position:absolute;cursor:default}
|
331 |
+
* html .ui-autocomplete{width:1px}
|
332 |
+
.ui-menu{list-style:none;padding:2px;margin:0;display:block;float:left}
|
333 |
+
.ui-menu .ui-menu{margin-top:-3px}
|
334 |
+
.ui-menu .ui-menu-item{margin:0;padding:0;zoom:1;float:left;clear:left;width:100%}
|
335 |
+
.ui-menu .ui-menu-item a{text-decoration:none;display:block;padding:.2em .4em;line-height:1.5;zoom:1}
|
336 |
+
.ui-menu .ui-menu-item a.ui-state-hover,.ui-menu .ui-menu-item a.ui-state-active{font-weight:normal;margin:-1px}
|
337 |
+
/*!
|
338 |
+
* jQuery UI Button 1.8.22
|
339 |
+
*
|
340 |
+
* Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
|
341 |
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
342 |
+
* http://jquery.org/license
|
343 |
+
*
|
344 |
+
* http://docs.jquery.com/UI/Button#theming
|
345 |
+
*/.ui-button{display:inline-block;position:relative;padding:0;margin-right:.1em;text-decoration:none!important;cursor:pointer;text-align:center;zoom:1;overflow:visible}
|
346 |
+
.ui-button-icon-only{width:2.2em}
|
347 |
+
button.ui-button-icon-only{width:2.4em}
|
348 |
+
.ui-button-icons-only{width:3.4em}
|
349 |
+
button.ui-button-icons-only{width:3.7em}
|
350 |
+
.ui-button .ui-button-text{display:block;line-height:1.4}
|
351 |
+
.ui-button-text-only .ui-button-text{padding:.4em 1em}
|
352 |
+
.ui-button-icon-only .ui-button-text,.ui-button-icons-only .ui-button-text{padding:.4em;text-indent:-9999999px}
|
353 |
+
.ui-button-text-icon-primary .ui-button-text,.ui-button-text-icons .ui-button-text{padding:.4em 1em .4em 2.1em}
|
354 |
+
.ui-button-text-icon-secondary .ui-button-text,.ui-button-text-icons .ui-button-text{padding:.4em 2.1em .4em 1em}
|
355 |
+
.ui-button-text-icons .ui-button-text{padding-left:2.1em;padding-right:2.1em}
|
356 |
+
input.ui-button{padding:.4em 1em}
|
357 |
+
.ui-button-icon-only .ui-icon,.ui-button-text-icon-primary .ui-icon,.ui-button-text-icon-secondary .ui-icon,.ui-button-text-icons .ui-icon,.ui-button-icons-only .ui-icon{position:absolute;top:50%;margin-top:-8px}
|
358 |
+
.ui-button-icon-only .ui-icon{left:50%;margin-left:-8px}
|
359 |
+
.ui-button-text-icon-primary .ui-button-icon-primary,.ui-button-text-icons .ui-button-icon-primary,.ui-button-icons-only .ui-button-icon-primary{left:.5em}
|
360 |
+
.ui-button-text-icon-secondary .ui-button-icon-secondary,.ui-button-text-icons .ui-button-icon-secondary,.ui-button-icons-only .ui-button-icon-secondary{right:.5em}
|
361 |
+
.ui-button-text-icons .ui-button-icon-secondary,.ui-button-icons-only .ui-button-icon-secondary{right:.5em}
|
362 |
+
.ui-buttonset{margin-right:7px}
|
363 |
+
.ui-buttonset .ui-button{margin-left:0;margin-right:-.3em}
|
364 |
+
button.ui-button::-moz-focus-inner{border:0;padding:0}
|
365 |
+
/*!
|
366 |
+
* jQuery UI Dialog 1.8.22
|
367 |
+
*
|
368 |
+
* Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
|
369 |
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
370 |
+
* http://jquery.org/license
|
371 |
+
*
|
372 |
+
* http://docs.jquery.com/UI/Dialog#theming
|
373 |
+
*/.ui-dialog{position:absolute;padding:.2em;width:300px;overflow:hidden}
|
374 |
+
.ui-dialog .ui-dialog-titlebar{padding:.4em 1em;position:relative}
|
375 |
+
.ui-dialog .ui-dialog-title{float:left;margin:.1em 16px .1em 0}
|
376 |
+
.ui-dialog .ui-dialog-titlebar-close{position:absolute;right:.3em;top:50%;width:19px;margin:-10px 0 0 0;padding:1px;height:18px}
|
377 |
+
.ui-dialog .ui-dialog-titlebar-close span{display:block;margin:1px}
|
378 |
+
.ui-dialog .ui-dialog-titlebar-close:hover,.ui-dialog .ui-dialog-titlebar-close:focus{padding:0}
|
379 |
+
.ui-dialog .ui-dialog-content{position:relative;border:0;padding:.5em 1em;background:0;overflow:auto;zoom:1}
|
380 |
+
.ui-dialog .ui-dialog-buttonpane{text-align:left;border-width:1px 0 0 0;background-image:none;margin:.5em 0 0 0;padding:.3em 1em .5em .4em}
|
381 |
+
.ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset{float:right}
|
382 |
+
.ui-dialog .ui-dialog-buttonpane button{margin:.5em .4em .5em 0;cursor:pointer}
|
383 |
+
.ui-dialog .ui-resizable-se{width:14px;height:14px;right:3px;bottom:3px}
|
384 |
+
.ui-draggable .ui-dialog-titlebar{cursor:move}
|
385 |
+
/*!
|
386 |
+
* jQuery UI Slider 1.8.22
|
387 |
+
*
|
388 |
+
* Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
|
389 |
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
390 |
+
* http://jquery.org/license
|
391 |
+
*
|
392 |
+
* http://docs.jquery.com/UI/Slider#theming
|
393 |
+
*/.ui-slider{position:relative;text-align:left}
|
394 |
+
.ui-slider .ui-slider-handle{position:absolute;z-index:2;width:1.2em;height:1.2em;cursor:default}
|
395 |
+
.ui-slider .ui-slider-range{position:absolute;z-index:1;font-size:.7em;display:block;border:0;background-position:0 0}
|
396 |
+
.ui-slider-horizontal{height:.8em}
|
397 |
+
.ui-slider-horizontal .ui-slider-handle{top:-.3em;margin-left:-.6em}
|
398 |
+
.ui-slider-horizontal .ui-slider-range{top:0;height:100%}
|
399 |
+
.ui-slider-horizontal .ui-slider-range-min{left:0}
|
400 |
+
.ui-slider-horizontal .ui-slider-range-max{right:0}
|
401 |
+
.ui-slider-vertical{width:.8em;height:100px}
|
402 |
+
.ui-slider-vertical .ui-slider-handle{left:-.3em;margin-left:0;margin-bottom:-.6em}
|
403 |
+
.ui-slider-vertical .ui-slider-range{left:0;width:100%}
|
404 |
+
.ui-slider-vertical .ui-slider-range-min{bottom:0}
|
405 |
+
.ui-slider-vertical .ui-slider-range-max{top:0}
|
406 |
+
/*!
|
407 |
+
* jQuery UI Tabs 1.8.22
|
408 |
+
*
|
409 |
+
* Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
|
410 |
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
411 |
+
* http://jquery.org/license
|
412 |
+
*
|
413 |
+
* http://docs.jquery.com/UI/Tabs#theming
|
414 |
+
*/.ui-tabs{position:relative;padding:.2em;zoom:1}
|
415 |
+
.ui-tabs .ui-tabs-nav{margin:0;padding:.2em .2em 0}
|
416 |
+
.ui-tabs .ui-tabs-nav li{list-style:none;float:left;position:relative;top:1px;margin:0 .2em 1px 0;border-bottom:0!important;padding:0;white-space:nowrap}
|
417 |
+
.ui-tabs .ui-tabs-nav li a{float:left;padding:.5em 1em;text-decoration:none}
|
418 |
+
.ui-tabs .ui-tabs-nav li.ui-tabs-selected{margin-bottom:0;padding-bottom:1px}
|
419 |
+
.ui-tabs .ui-tabs-nav li.ui-tabs-selected a,.ui-tabs .ui-tabs-nav li.ui-state-disabled a,.ui-tabs .ui-tabs-nav li.ui-state-processing a{cursor:text}
|
420 |
+
.ui-tabs .ui-tabs-nav li a,.ui-tabs.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-selected a{cursor:pointer}
|
421 |
+
.ui-tabs .ui-tabs-panel{display:block;border-width:0;padding:1em 1.4em;background:0}
|
422 |
+
.ui-tabs .ui-tabs-hide{display:none!important}
|
423 |
+
/*!
|
424 |
+
* jQuery UI Datepicker 1.8.22
|
425 |
+
*
|
426 |
+
* Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
|
427 |
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
428 |
+
* http://jquery.org/license
|
429 |
+
*
|
430 |
+
* http://docs.jquery.com/UI/Datepicker#theming
|
431 |
+
*/.ui-datepicker{width:17em;padding:.2em .2em 0;display:none}
|
432 |
+
.ui-datepicker .ui-datepicker-header{position:relative;padding:.2em 0}
|
433 |
+
.ui-datepicker .ui-datepicker-prev,.ui-datepicker .ui-datepicker-next{position:absolute;top:2px;width:1.8em;height:1.8em}
|
434 |
+
.ui-datepicker .ui-datepicker-prev-hover,.ui-datepicker .ui-datepicker-next-hover{top:1px}
|
435 |
+
.ui-datepicker .ui-datepicker-prev{left:2px}
|
436 |
+
.ui-datepicker .ui-datepicker-next{right:2px}
|
437 |
+
.ui-datepicker .ui-datepicker-prev-hover{left:1px}
|
438 |
+
.ui-datepicker .ui-datepicker-next-hover{right:1px}
|
439 |
+
.ui-datepicker .ui-datepicker-prev span,.ui-datepicker .ui-datepicker-next span{display:block;position:absolute;left:50%;margin-left:-8px;top:50%;margin-top:-8px}
|
440 |
+
.ui-datepicker .ui-datepicker-title{margin:0 2.3em;line-height:1.8em;text-align:center}
|
441 |
+
.ui-datepicker .ui-datepicker-title select{font-size:1em;margin:1px 0}
|
442 |
+
.ui-datepicker select.ui-datepicker-month-year{width:100%}
|
443 |
+
.ui-datepicker select.ui-datepicker-month,.ui-datepicker select.ui-datepicker-year{width:49%}
|
444 |
+
.ui-datepicker table{width:100%;font-size:.9em;border-collapse:collapse;margin:0 0 .4em}
|
445 |
+
.ui-datepicker th{padding:.7em .3em;text-align:center;font-weight:bold;border:0}
|
446 |
+
.ui-datepicker td{border:0;padding:1px}
|
447 |
+
.ui-datepicker td span,.ui-datepicker td a{display:block;padding:.2em;text-align:right;text-decoration:none}
|
448 |
+
.ui-datepicker .ui-datepicker-buttonpane{background-image:none;margin:.7em 0 0 0;padding:0 .2em;border-left:0;border-right:0;border-bottom:0}
|
449 |
+
.ui-datepicker .ui-datepicker-buttonpane button{float:right;margin:.5em .2em .4em;cursor:pointer;padding:.2em .6em .3em .6em;width:auto;overflow:visible}
|
450 |
+
.ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current{float:left}
|
451 |
+
.ui-datepicker.ui-datepicker-multi{width:auto}
|
452 |
+
.ui-datepicker-multi .ui-datepicker-group{float:left}
|
453 |
+
.ui-datepicker-multi .ui-datepicker-group table{width:95%;margin:0 auto .4em}
|
454 |
+
.ui-datepicker-multi-2 .ui-datepicker-group{width:50%}
|
455 |
+
.ui-datepicker-multi-3 .ui-datepicker-group{width:33.3%}
|
456 |
+
.ui-datepicker-multi-4 .ui-datepicker-group{width:25%}
|
457 |
+
.ui-datepicker-multi .ui-datepicker-group-last .ui-datepicker-header{border-left-width:0}
|
458 |
+
.ui-datepicker-multi .ui-datepicker-group-middle .ui-datepicker-header{border-left-width:0}
|
459 |
+
.ui-datepicker-multi .ui-datepicker-buttonpane{clear:left}
|
460 |
+
.ui-datepicker-row-break{clear:both;width:100%;font-size:0}
|
461 |
+
.ui-datepicker-rtl{direction:rtl}
|
462 |
+
.ui-datepicker-rtl .ui-datepicker-prev{right:2px;left:auto}
|
463 |
+
.ui-datepicker-rtl .ui-datepicker-next{left:2px;right:auto}
|
464 |
+
.ui-datepicker-rtl .ui-datepicker-prev:hover{right:1px;left:auto}
|
465 |
+
.ui-datepicker-rtl .ui-datepicker-next:hover{left:1px;right:auto}
|
466 |
+
.ui-datepicker-rtl .ui-datepicker-buttonpane{clear:right}
|
467 |
+
.ui-datepicker-rtl .ui-datepicker-buttonpane button{float:left}
|
468 |
+
.ui-datepicker-rtl .ui-datepicker-buttonpane button.ui-datepicker-current{float:right}
|
469 |
+
.ui-datepicker-rtl .ui-datepicker-group{float:right}
|
470 |
+
.ui-datepicker-rtl .ui-datepicker-group-last .ui-datepicker-header{border-right-width:0;border-left-width:1px}
|
471 |
+
.ui-datepicker-rtl .ui-datepicker-group-middle .ui-datepicker-header{border-right-width:0;border-left-width:1px}
|
472 |
+
.ui-datepicker-cover{position:absolute;z-index:-1;filter:mask();top:-4px;left:-4px;width:200px;height:200px}
|
473 |
+
/*!
|
474 |
+
* jQuery UI Progressbar 1.8.22
|
475 |
+
*
|
476 |
+
* Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
|
477 |
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
478 |
+
* http://jquery.org/license
|
479 |
+
*
|
480 |
+
* http://docs.jquery.com/UI/Progressbar#theming
|
481 |
+
*/.ui-progressbar{height:2em;text-align:left;overflow:hidden}
|
482 |
+
.ui-progressbar .ui-progressbar-value{margin:-1px;height:100%}
|
483 |
+
.cb-enable,.cb-disable,.cb-enable span,.cb-disable span{background:url(../images/admin/switch.gif) repeat-x;display:block;float:left}
|
484 |
+
.cb-enable span,.cb-disable span{line-height:30px;display:block;background-repeat:no-repeat;font-weight:bold}
|
485 |
+
.cb-enable span{background-position:left -90px;padding:0 10px}
|
486 |
+
.cb-disable span{background-position:right -180px;padding:0 10px}
|
487 |
+
.cb-disable.selected{background-position:0 -30px}
|
488 |
+
.cb-disable.selected span{background-position:right -210px;color:#fff}
|
489 |
+
.cb-enable.selected{background-position:0 -60px}
|
490 |
+
.cb-enable.selected span{background-position:left -150px;color:#fff}
|
491 |
+
.switch label{cursor:pointer}
|
492 |
+
.switch input{display:none}
|
inc/css/styles.min.css
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#eModal-Overlay{background:#000 url(../images/loader.gif) no-repeat scroll center center;height:100%;left:0;position:fixed;top:0;width:100%;z-index:100000}
|
2 |
+
#eModal-Container{max-height:90%;max-width:90%;position:absolute;z-index:100001}
|
3 |
+
#eModal-Container #eModal-Title{font-size:20px;line-height:20px;margin:0 5px 5px;text-align:left}
|
4 |
+
#eModal-Container #eModal-Content{overflow-x:hidden;overflow-y:auto}
|
5 |
+
#eModal-Container img{max-height:100%;width:auto}
|
6 |
+
#eModal-Close{font-family:sans-serif;cursor:pointer;display:block;font-size:20px;font-weight:700;line-height:16px;position:absolute;text-align:center;text-decoration:none;vertical-align:middle}
|
7 |
+
#eModal-Buttons{bottom:20px;height:30px;left:-30px;position:absolute;right:-30px}
|
8 |
+
#eModal-Previous{background:#fff;height:30px;left:0;position:absolute;width:30px}
|
9 |
+
#eModal-Next{background:#fff;height:30px;position:absolute;right:0;width:30px}
|
10 |
+
#eModal-Content p{margin:0}
|
11 |
+
* html #eModal-Overlay{position:absolute;height:expression(document.body.scrollHeight>document.body.offsetHeight ? document.body.scrollHeight:document.body.offsetHeight 'px')}
|
12 |
+
#eModal-Container .poweredby{margin:5px 20px 0;font-size:.75em;display:block}
|
inc/dashboard.php
ADDED
File without changes
|
inc/images/admin/color_selector.png
ADDED
Binary file
|
inc/images/admin/colorpicker_background.png
ADDED
Binary file
|
inc/images/admin/colorpicker_hex.png
ADDED
Binary file
|
inc/images/admin/colorpicker_hsb_b.png
ADDED
Binary file
|
inc/images/admin/colorpicker_hsb_h.png
ADDED
Binary file
|
inc/images/admin/colorpicker_hsb_s.png
ADDED
Binary file
|
inc/images/admin/colorpicker_indic.gif
ADDED
Binary file
|
inc/images/admin/colorpicker_overlay.png
ADDED
Binary file
|
inc/images/admin/colorpicker_rgb_b.png
ADDED
Binary file
|
inc/images/admin/colorpicker_rgb_g.png
ADDED
Binary file
|
inc/images/admin/colorpicker_rgb_r.png
ADDED
Binary file
|
inc/images/admin/colorpicker_select.gif
ADDED
Binary file
|
inc/images/admin/colorpicker_submit.png
ADDED
Binary file
|
inc/images/admin/switch.gif
ADDED
Binary file
|
inc/images/admin/ui-bg_flat_0_aaaaaa_40x100.png
ADDED
Binary file
|
inc/images/admin/ui-bg_flat_55_fbec88_40x100.png
ADDED
Binary file
|
inc/images/admin/ui-bg_glass_75_d0e5f5_1x400.png
ADDED
Binary file
|
inc/images/admin/ui-bg_glass_85_dfeffc_1x400.png
ADDED
Binary file
|
inc/images/admin/ui-bg_glass_95_fef1ec_1x400.png
ADDED
Binary file
|
inc/images/admin/ui-bg_gloss-wave_55_5c9ccc_500x100.png
ADDED
Binary file
|
inc/images/admin/ui-bg_inset-hard_100_f5f8f9_1x100.png
ADDED
Binary file
|
inc/images/admin/ui-bg_inset-hard_100_fcfdfd_1x100.png
ADDED
Binary file
|
inc/images/admin/ui-icons_217bc0_256x240.png
ADDED
Binary file
|
inc/images/admin/ui-icons_2e83ff_256x240.png
ADDED
Binary file
|
inc/images/admin/ui-icons_469bdd_256x240.png
ADDED
Binary file
|
inc/images/admin/ui-icons_6da8d5_256x240.png
ADDED
Binary file
|
inc/images/admin/ui-icons_cd0a0a_256x240.png
ADDED
Binary file
|
inc/images/admin/ui-icons_d8e7f3_256x240.png
ADDED
Binary file
|
inc/images/admin/ui-icons_f9bd01_256x240.png
ADDED
Binary file
|
{themes/default → inc/images}/loader.gif
RENAMED
File without changes
|
inc/js/colorpicker.js
ADDED
@@ -0,0 +1,484 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
*
|
3 |
+
* Color picker
|
4 |
+
* Author: Stefan Petre www.eyecon.ro
|
5 |
+
*
|
6 |
+
* Dual licensed under the MIT and GPL licenses
|
7 |
+
*
|
8 |
+
*/
|
9 |
+
(function ($) {
|
10 |
+
var ColorPicker = function () {
|
11 |
+
var
|
12 |
+
ids = {},
|
13 |
+
inAction,
|
14 |
+
charMin = 65,
|
15 |
+
visible,
|
16 |
+
tpl = '<div class="colorpicker"><div class="colorpicker_color"><div><div></div></div></div><div class="colorpicker_hue"><div></div></div><div class="colorpicker_new_color"></div><div class="colorpicker_current_color"></div><div class="colorpicker_hex"><input type="text" maxlength="6" size="6" /></div><div class="colorpicker_rgb_r colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_rgb_g colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_rgb_b colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_hsb_h colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_hsb_s colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_hsb_b colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_submit"></div></div>',
|
17 |
+
defaults = {
|
18 |
+
eventName: 'click',
|
19 |
+
onShow: function () {},
|
20 |
+
onBeforeShow: function(){},
|
21 |
+
onHide: function () {},
|
22 |
+
onChange: function () {},
|
23 |
+
onSubmit: function () {},
|
24 |
+
color: 'ff0000',
|
25 |
+
livePreview: true,
|
26 |
+
flat: false
|
27 |
+
},
|
28 |
+
fillRGBFields = function (hsb, cal) {
|
29 |
+
var rgb = HSBToRGB(hsb);
|
30 |
+
$(cal).data('colorpicker').fields
|
31 |
+
.eq(1).val(rgb.r).end()
|
32 |
+
.eq(2).val(rgb.g).end()
|
33 |
+
.eq(3).val(rgb.b).end();
|
34 |
+
},
|
35 |
+
fillHSBFields = function (hsb, cal) {
|
36 |
+
$(cal).data('colorpicker').fields
|
37 |
+
.eq(4).val(hsb.h).end()
|
38 |
+
.eq(5).val(hsb.s).end()
|
39 |
+
.eq(6).val(hsb.b).end();
|
40 |
+
},
|
41 |
+
fillHexFields = function (hsb, cal) {
|
42 |
+
$(cal).data('colorpicker').fields
|
43 |
+
.eq(0).val(HSBToHex(hsb)).end();
|
44 |
+
},
|
45 |
+
setSelector = function (hsb, cal) {
|
46 |
+
$(cal).data('colorpicker').selector.css('backgroundColor', '#' + HSBToHex({h: hsb.h, s: 100, b: 100}));
|
47 |
+
$(cal).data('colorpicker').selectorIndic.css({
|
48 |
+
left: parseInt(150 * hsb.s/100, 10),
|
49 |
+
top: parseInt(150 * (100-hsb.b)/100, 10)
|
50 |
+
});
|
51 |
+
},
|
52 |
+
setHue = function (hsb, cal) {
|
53 |
+
$(cal).data('colorpicker').hue.css('top', parseInt(150 - 150 * hsb.h/360, 10));
|
54 |
+
},
|
55 |
+
setCurrentColor = function (hsb, cal) {
|
56 |
+
$(cal).data('colorpicker').currentColor.css('backgroundColor', '#' + HSBToHex(hsb));
|
57 |
+
},
|
58 |
+
setNewColor = function (hsb, cal) {
|
59 |
+
$(cal).data('colorpicker').newColor.css('backgroundColor', '#' + HSBToHex(hsb));
|
60 |
+
},
|
61 |
+
keyDown = function (ev) {
|
62 |
+
var pressedKey = ev.charCode || ev.keyCode || -1;
|
63 |
+
if ((pressedKey > charMin && pressedKey <= 90) || pressedKey == 32) {
|
64 |
+
return false;
|
65 |
+
}
|
66 |
+
var cal = $(this).parent().parent();
|
67 |
+
if (cal.data('colorpicker').livePreview === true) {
|
68 |
+
change.apply(this);
|
69 |
+
}
|
70 |
+
},
|
71 |
+
change = function (ev) {
|
72 |
+
var cal = $(this).parent().parent(), col;
|
73 |
+
if (this.parentNode.className.indexOf('_hex') > 0) {
|
74 |
+
cal.data('colorpicker').color = col = HexToHSB(fixHex(this.value));
|
75 |
+
} else if (this.parentNode.className.indexOf('_hsb') > 0) {
|
76 |
+
cal.data('colorpicker').color = col = fixHSB({
|
77 |
+
h: parseInt(cal.data('colorpicker').fields.eq(4).val(), 10),
|
78 |
+
s: parseInt(cal.data('colorpicker').fields.eq(5).val(), 10),
|
79 |
+
b: parseInt(cal.data('colorpicker').fields.eq(6).val(), 10)
|
80 |
+
});
|
81 |
+
} else {
|
82 |
+
cal.data('colorpicker').color = col = RGBToHSB(fixRGB({
|
83 |
+
r: parseInt(cal.data('colorpicker').fields.eq(1).val(), 10),
|
84 |
+
g: parseInt(cal.data('colorpicker').fields.eq(2).val(), 10),
|
85 |
+
b: parseInt(cal.data('colorpicker').fields.eq(3).val(), 10)
|
86 |
+
}));
|
87 |
+
}
|
88 |
+
if (ev) {
|
89 |
+
fillRGBFields(col, cal.get(0));
|
90 |
+
fillHexFields(col, cal.get(0));
|
91 |
+
fillHSBFields(col, cal.get(0));
|
92 |
+
}
|
93 |
+
setSelector(col, cal.get(0));
|
94 |
+
setHue(col, cal.get(0));
|
95 |
+
setNewColor(col, cal.get(0));
|
96 |
+
cal.data('colorpicker').onChange.apply(cal, [col, HSBToHex(col), HSBToRGB(col)]);
|
97 |
+
},
|
98 |
+
blur = function (ev) {
|
99 |
+
var cal = $(this).parent().parent();
|
100 |
+
cal.data('colorpicker').fields.parent().removeClass('colorpicker_focus');
|
101 |
+
},
|
102 |
+
focus = function () {
|
103 |
+
charMin = this.parentNode.className.indexOf('_hex') > 0 ? 70 : 65;
|
104 |
+
$(this).parent().parent().data('colorpicker').fields.parent().removeClass('colorpicker_focus');
|
105 |
+
$(this).parent().addClass('colorpicker_focus');
|
106 |
+
},
|
107 |
+
downIncrement = function (ev) {
|
108 |
+
var field = $(this).parent().find('input').focus();
|
109 |
+
var current = {
|
110 |
+
el: $(this).parent().addClass('colorpicker_slider'),
|
111 |
+
max: this.parentNode.className.indexOf('_hsb_h') > 0 ? 360 : (this.parentNode.className.indexOf('_hsb') > 0 ? 100 : 255),
|
112 |
+
y: ev.pageY,
|
113 |
+
field: field,
|
114 |
+
val: parseInt(field.val(), 10),
|
115 |
+
preview: $(this).parent().parent().data('colorpicker').livePreview
|
116 |
+
};
|
117 |
+
$(document).bind('mouseup', current, upIncrement);
|
118 |
+
$(document).bind('mousemove', current, moveIncrement);
|
119 |
+
},
|
120 |
+
moveIncrement = function (ev) {
|
121 |
+
ev.data.field.val(Math.max(0, Math.min(ev.data.max, parseInt(ev.data.val + ev.pageY - ev.data.y, 10))));
|
122 |
+
if (ev.data.preview) {
|
123 |
+
change.apply(ev.data.field.get(0), [true]);
|
124 |
+
}
|
125 |
+
return false;
|
126 |
+
},
|
127 |
+
upIncrement = function (ev) {
|
128 |
+
change.apply(ev.data.field.get(0), [true]);
|
129 |
+
ev.data.el.removeClass('colorpicker_slider').find('input').focus();
|
130 |
+
$(document).unbind('mouseup', upIncrement);
|
131 |
+
$(document).unbind('mousemove', moveIncrement);
|
132 |
+
return false;
|
133 |
+
},
|
134 |
+
downHue = function (ev) {
|
135 |
+
var current = {
|
136 |
+
cal: $(this).parent(),
|
137 |
+
y: $(this).offset().top
|
138 |
+
};
|
139 |
+
current.preview = current.cal.data('colorpicker').livePreview;
|
140 |
+
$(document).bind('mouseup', current, upHue);
|
141 |
+
$(document).bind('mousemove', current, moveHue);
|
142 |
+
},
|
143 |
+
moveHue = function (ev) {
|
144 |
+
change.apply(
|
145 |
+
ev.data.cal.data('colorpicker')
|
146 |
+
.fields
|
147 |
+
.eq(4)
|
148 |
+
.val(parseInt(360*(150 - Math.max(0,Math.min(150,(ev.pageY - ev.data.y))))/150, 10))
|
149 |
+
.get(0),
|
150 |
+
[ev.data.preview]
|
151 |
+
);
|
152 |
+
return false;
|
153 |
+
},
|
154 |
+
upHue = function (ev) {
|
155 |
+
fillRGBFields(ev.data.cal.data('colorpicker').color, ev.data.cal.get(0));
|
156 |
+
fillHexFields(ev.data.cal.data('colorpicker').color, ev.data.cal.get(0));
|
157 |
+
$(document).unbind('mouseup', upHue);
|
158 |
+
$(document).unbind('mousemove', moveHue);
|
159 |
+
return false;
|
160 |
+
},
|
161 |
+
downSelector = function (ev) {
|
162 |
+
var current = {
|
163 |
+
cal: $(this).parent(),
|
164 |
+
pos: $(this).offset()
|
165 |
+
};
|
166 |
+
current.preview = current.cal.data('colorpicker').livePreview;
|
167 |
+
$(document).bind('mouseup', current, upSelector);
|
168 |
+
$(document).bind('mousemove', current, moveSelector);
|
169 |
+
},
|
170 |
+
moveSelector = function (ev) {
|
171 |
+
change.apply(
|
172 |
+
ev.data.cal.data('colorpicker')
|
173 |
+
.fields
|
174 |
+
.eq(6)
|
175 |
+
.val(parseInt(100*(150 - Math.max(0,Math.min(150,(ev.pageY - ev.data.pos.top))))/150, 10))
|
176 |
+
.end()
|
177 |
+
.eq(5)
|
178 |
+
.val(parseInt(100*(Math.max(0,Math.min(150,(ev.pageX - ev.data.pos.left))))/150, 10))
|
179 |
+
.get(0),
|
180 |
+
[ev.data.preview]
|
181 |
+
);
|
182 |
+
return false;
|
183 |
+
},
|
184 |
+
upSelector = function (ev) {
|
185 |
+
fillRGBFields(ev.data.cal.data('colorpicker').color, ev.data.cal.get(0));
|
186 |
+
fillHexFields(ev.data.cal.data('colorpicker').color, ev.data.cal.get(0));
|
187 |
+
$(document).unbind('mouseup', upSelector);
|
188 |
+
$(document).unbind('mousemove', moveSelector);
|
189 |
+
return false;
|
190 |
+
},
|
191 |
+
enterSubmit = function (ev) {
|
192 |
+
$(this).addClass('colorpicker_focus');
|
193 |
+
},
|
194 |
+
leaveSubmit = function (ev) {
|
195 |
+
$(this).removeClass('colorpicker_focus');
|
196 |
+
},
|
197 |
+
clickSubmit = function (ev) {
|
198 |
+
var cal = $(this).parent();
|
199 |
+
var col = cal.data('colorpicker').color;
|
200 |
+
cal.data('colorpicker').origColor = col;
|
201 |
+
setCurrentColor(col, cal.get(0));
|
202 |
+
cal.data('colorpicker').onSubmit(col, HSBToHex(col), HSBToRGB(col), cal.data('colorpicker').el);
|
203 |
+
},
|
204 |
+
show = function (ev) {
|
205 |
+
var cal = $('#' + $(this).data('colorpickerId'));
|
206 |
+
cal.data('colorpicker').onBeforeShow.apply(this, [cal.get(0)]);
|
207 |
+
var pos = $(this).offset();
|
208 |
+
var viewPort = getViewport();
|
209 |
+
var top = pos.top + this.offsetHeight;
|
210 |
+
var left = pos.left;
|
211 |
+
if (top + 176 > viewPort.t + viewPort.h) {
|
212 |
+
top -= this.offsetHeight + 176;
|
213 |
+
}
|
214 |
+
if (left + 356 > viewPort.l + viewPort.w) {
|
215 |
+
left -= 356;
|
216 |
+
}
|
217 |
+
cal.css({left: left + 'px', top: top + 'px'});
|
218 |
+
if (cal.data('colorpicker').onShow.apply(this, [cal.get(0)]) != false) {
|
219 |
+
cal.show();
|
220 |
+
}
|
221 |
+
$(document).bind('mousedown', {cal: cal}, hide);
|
222 |
+
return false;
|
223 |
+
},
|
224 |
+
hide = function (ev) {
|
225 |
+
if (!isChildOf(ev.data.cal.get(0), ev.target, ev.data.cal.get(0))) {
|
226 |
+
if (ev.data.cal.data('colorpicker').onHide.apply(this, [ev.data.cal.get(0)]) != false) {
|
227 |
+
ev.data.cal.hide();
|
228 |
+
}
|
229 |
+
$(document).unbind('mousedown', hide);
|
230 |
+
}
|
231 |
+
},
|
232 |
+
isChildOf = function(parentEl, el, container) {
|
233 |
+
if (parentEl == el) {
|
234 |
+
return true;
|
235 |
+
}
|
236 |
+
if (parentEl.contains) {
|
237 |
+
return parentEl.contains(el);
|
238 |
+
}
|
239 |
+
if ( parentEl.compareDocumentPosition ) {
|
240 |
+
return !!(parentEl.compareDocumentPosition(el) & 16);
|
241 |
+
}
|
242 |
+
var prEl = el.parentNode;
|
243 |
+
while(prEl && prEl != container) {
|
244 |
+
if (prEl == parentEl)
|
245 |
+
return true;
|
246 |
+
prEl = prEl.parentNode;
|
247 |
+
}
|
248 |
+
return false;
|
249 |
+
},
|
250 |
+
getViewport = function () {
|
251 |
+
var m = document.compatMode == 'CSS1Compat';
|
252 |
+
return {
|
253 |
+
l : window.pageXOffset || (m ? document.documentElement.scrollLeft : document.body.scrollLeft),
|
254 |
+
t : window.pageYOffset || (m ? document.documentElement.scrollTop : document.body.scrollTop),
|
255 |
+
w : window.innerWidth || (m ? document.documentElement.clientWidth : document.body.clientWidth),
|
256 |
+
h : window.innerHeight || (m ? document.documentElement.clientHeight : document.body.clientHeight)
|
257 |
+
};
|
258 |
+
},
|
259 |
+
fixHSB = function (hsb) {
|
260 |
+
return {
|
261 |
+
h: Math.min(360, Math.max(0, hsb.h)),
|
262 |
+
s: Math.min(100, Math.max(0, hsb.s)),
|
263 |
+
b: Math.min(100, Math.max(0, hsb.b))
|
264 |
+
};
|
265 |
+
},
|
266 |
+
fixRGB = function (rgb) {
|
267 |
+
return {
|
268 |
+
r: Math.min(255, Math.max(0, rgb.r)),
|
269 |
+
g: Math.min(255, Math.max(0, rgb.g)),
|
270 |
+
b: Math.min(255, Math.max(0, rgb.b))
|
271 |
+
};
|
272 |
+
},
|
273 |
+
fixHex = function (hex) {
|
274 |
+
var len = 6 - hex.length;
|
275 |
+
if (len > 0) {
|
276 |
+
var o = [];
|
277 |
+
for (var i=0; i<len; i++) {
|
278 |
+
o.push('0');
|
279 |
+
}
|
280 |
+
o.push(hex);
|
281 |
+
hex = o.join('');
|
282 |
+
}
|
283 |
+
return hex;
|
284 |
+
},
|
285 |
+
HexToRGB = function (hex) {
|
286 |
+
var hex = parseInt(((hex.indexOf('#') > -1) ? hex.substring(1) : hex), 16);
|
287 |
+
return {r: hex >> 16, g: (hex & 0x00FF00) >> 8, b: (hex & 0x0000FF)};
|
288 |
+
},
|
289 |
+
HexToHSB = function (hex) {
|
290 |
+
return RGBToHSB(HexToRGB(hex));
|
291 |
+
},
|
292 |
+
RGBToHSB = function (rgb) {
|
293 |
+
var hsb = {
|
294 |
+
h: 0,
|
295 |
+
s: 0,
|
296 |
+
b: 0
|
297 |
+
};
|
298 |
+
var min = Math.min(rgb.r, rgb.g, rgb.b);
|
299 |
+
var max = Math.max(rgb.r, rgb.g, rgb.b);
|
300 |
+
var delta = max - min;
|
301 |
+
hsb.b = max;
|
302 |
+
if (max != 0) {
|
303 |
+
|
304 |
+
}
|
305 |
+
hsb.s = max != 0 ? 255 * delta / max : 0;
|
306 |
+
if (hsb.s != 0) {
|
307 |
+
if (rgb.r == max) {
|
308 |
+
hsb.h = (rgb.g - rgb.b) / delta;
|
309 |
+
} else if (rgb.g == max) {
|
310 |
+
hsb.h = 2 + (rgb.b - rgb.r) / delta;
|
311 |
+
} else {
|
312 |
+
hsb.h = 4 + (rgb.r - rgb.g) / delta;
|
313 |
+
}
|
314 |
+
} else {
|
315 |
+
hsb.h = -1;
|
316 |
+
}
|
317 |
+
hsb.h *= 60;
|
318 |
+
if (hsb.h < 0) {
|
319 |
+
hsb.h += 360;
|
320 |
+
}
|
321 |
+
hsb.s *= 100/255;
|
322 |
+
hsb.b *= 100/255;
|
323 |
+
return hsb;
|
324 |
+
},
|
325 |
+
HSBToRGB = function (hsb) {
|
326 |
+
var rgb = {};
|
327 |
+
var h = Math.round(hsb.h);
|
328 |
+
var s = Math.round(hsb.s*255/100);
|
329 |
+
var v = Math.round(hsb.b*255/100);
|
330 |
+
if(s == 0) {
|
331 |
+
rgb.r = rgb.g = rgb.b = v;
|
332 |
+
} else {
|
333 |
+
var t1 = v;
|
334 |
+
var t2 = (255-s)*v/255;
|
335 |
+
var t3 = (t1-t2)*(h%60)/60;
|
336 |
+
if(h==360) h = 0;
|
337 |
+
if(h<60) {rgb.r=t1; rgb.b=t2; rgb.g=t2+t3}
|
338 |
+
else if(h<120) {rgb.g=t1; rgb.b=t2; rgb.r=t1-t3}
|
339 |
+
else if(h<180) {rgb.g=t1; rgb.r=t2; rgb.b=t2+t3}
|
340 |
+
else if(h<240) {rgb.b=t1; rgb.r=t2; rgb.g=t1-t3}
|
341 |
+
else if(h<300) {rgb.b=t1; rgb.g=t2; rgb.r=t2+t3}
|
342 |
+
else if(h<360) {rgb.r=t1; rgb.g=t2; rgb.b=t1-t3}
|
343 |
+
else {rgb.r=0; rgb.g=0; rgb.b=0}
|
344 |
+
}
|
345 |
+
return {r:Math.round(rgb.r), g:Math.round(rgb.g), b:Math.round(rgb.b)};
|
346 |
+
},
|
347 |
+
RGBToHex = function (rgb) {
|
348 |
+
var hex = [
|
349 |
+
rgb.r.toString(16),
|
350 |
+
rgb.g.toString(16),
|
351 |
+
rgb.b.toString(16)
|
352 |
+
];
|
353 |
+
$.each(hex, function (nr, val) {
|
354 |
+
if (val.length == 1) {
|
355 |
+
hex[nr] = '0' + val;
|
356 |
+
}
|
357 |
+
});
|
358 |
+
return hex.join('');
|
359 |
+
},
|
360 |
+
HSBToHex = function (hsb) {
|
361 |
+
return RGBToHex(HSBToRGB(hsb));
|
362 |
+
},
|
363 |
+
restoreOriginal = function () {
|
364 |
+
var cal = $(this).parent();
|
365 |
+
var col = cal.data('colorpicker').origColor;
|
366 |
+
cal.data('colorpicker').color = col;
|
367 |
+
fillRGBFields(col, cal.get(0));
|
368 |
+
fillHexFields(col, cal.get(0));
|
369 |
+
fillHSBFields(col, cal.get(0));
|
370 |
+
setSelector(col, cal.get(0));
|
371 |
+
setHue(col, cal.get(0));
|
372 |
+
setNewColor(col, cal.get(0));
|
373 |
+
};
|
374 |
+
return {
|
375 |
+
init: function (opt) {
|
376 |
+
opt = $.extend({}, defaults, opt||{});
|
377 |
+
if (typeof opt.color == 'string') {
|
378 |
+
opt.color = HexToHSB(opt.color);
|
379 |
+
} else if (opt.color.r != undefined && opt.color.g != undefined && opt.color.b != undefined) {
|
380 |
+
opt.color = RGBToHSB(opt.color);
|
381 |
+
} else if (opt.color.h != undefined && opt.color.s != undefined && opt.color.b != undefined) {
|
382 |
+
opt.color = fixHSB(opt.color);
|
383 |
+
} else {
|
384 |
+
return this;
|
385 |
+
}
|
386 |
+
return this.each(function () {
|
387 |
+
if (!$(this).data('colorpickerId')) {
|
388 |
+
var options = $.extend({}, opt);
|
389 |
+
options.origColor = opt.color;
|
390 |
+
var id = 'collorpicker_' + parseInt(Math.random() * 1000);
|
391 |
+
$(this).data('colorpickerId', id);
|
392 |
+
var cal = $(tpl).attr('id', id);
|
393 |
+
if (options.flat) {
|
394 |
+
cal.appendTo(this).show();
|
395 |
+
} else {
|
396 |
+
cal.appendTo(document.body);
|
397 |
+
}
|
398 |
+
options.fields = cal
|
399 |
+
.find('input')
|
400 |
+
.bind('keyup', keyDown)
|
401 |
+
.bind('change', change)
|
402 |
+
.bind('blur', blur)
|
403 |
+
.bind('focus', focus);
|
404 |
+
cal
|
405 |
+
.find('span').bind('mousedown', downIncrement).end()
|
406 |
+
.find('>div.colorpicker_current_color').bind('click', restoreOriginal);
|
407 |
+
options.selector = cal.find('div.colorpicker_color').bind('mousedown', downSelector);
|
408 |
+
options.selectorIndic = options.selector.find('div div');
|
409 |
+
options.el = this;
|
410 |
+
options.hue = cal.find('div.colorpicker_hue div');
|
411 |
+
cal.find('div.colorpicker_hue').bind('mousedown', downHue);
|
412 |
+
options.newColor = cal.find('div.colorpicker_new_color');
|
413 |
+
options.currentColor = cal.find('div.colorpicker_current_color');
|
414 |
+
cal.data('colorpicker', options);
|
415 |
+
cal.find('div.colorpicker_submit')
|
416 |
+
.bind('mouseenter', enterSubmit)
|
417 |
+
.bind('mouseleave', leaveSubmit)
|
418 |
+
.bind('click', clickSubmit);
|
419 |
+
fillRGBFields(options.color, cal.get(0));
|
420 |
+
fillHSBFields(options.color, cal.get(0));
|
421 |
+
fillHexFields(options.color, cal.get(0));
|
422 |
+
setHue(options.color, cal.get(0));
|
423 |
+
setSelector(options.color, cal.get(0));
|
424 |
+
setCurrentColor(options.color, cal.get(0));
|
425 |
+
setNewColor(options.color, cal.get(0));
|
426 |
+
if (options.flat) {
|
427 |
+
cal.css({
|
428 |
+
position: 'relative',
|
429 |
+
display: 'block'
|
430 |
+
});
|
431 |
+
} else {
|
432 |
+
$(this).bind(options.eventName, show);
|
433 |
+
}
|
434 |
+
}
|
435 |
+
});
|
436 |
+
},
|
437 |
+
showPicker: function() {
|
438 |
+
return this.each( function () {
|
439 |
+
if ($(this).data('colorpickerId')) {
|
440 |
+
show.apply(this);
|
441 |
+
}
|
442 |
+
});
|
443 |
+
},
|
444 |
+
hidePicker: function() {
|
445 |
+
return this.each( function () {
|
446 |
+
if ($(this).data('colorpickerId')) {
|
447 |
+
$('#' + $(this).data('colorpickerId')).hide();
|
448 |
+
}
|
449 |
+
});
|
450 |
+
},
|
451 |
+
setColor: function(col) {
|
452 |
+
if (typeof col == 'string') {
|
453 |
+
col = HexToHSB(col);
|
454 |
+
} else if (col.r != undefined && col.g != undefined && col.b != undefined) {
|
455 |
+
col = RGBToHSB(col);
|
456 |
+
} else if (col.h != undefined && col.s != undefined && col.b != undefined) {
|
457 |
+
col = fixHSB(col);
|
458 |
+
} else {
|
459 |
+
return this;
|
460 |
+
}
|
461 |
+
return this.each(function(){
|
462 |
+
if ($(this).data('colorpickerId')) {
|
463 |
+
var cal = $('#' + $(this).data('colorpickerId'));
|
464 |
+
cal.data('colorpicker').color = col;
|
465 |
+
cal.data('colorpicker').origColor = col;
|
466 |
+
fillRGBFields(col, cal.get(0));
|
467 |
+
fillHSBFields(col, cal.get(0));
|
468 |
+
fillHexFields(col, cal.get(0));
|
469 |
+
setHue(col, cal.get(0));
|
470 |
+
setSelector(col, cal.get(0));
|
471 |
+
setCurrentColor(col, cal.get(0));
|
472 |
+
setNewColor(col, cal.get(0));
|
473 |
+
}
|
474 |
+
});
|
475 |
+
}
|
476 |
+
};
|
477 |
+
}();
|
478 |
+
$.fn.extend({
|
479 |
+
ColorPicker: ColorPicker.init,
|
480 |
+
ColorPickerHide: ColorPicker.hidePicker,
|
481 |
+
ColorPickerShow: ColorPicker.showPicker,
|
482 |
+
ColorPickerSetColor: ColorPicker.setColor
|
483 |
+
});
|
484 |
+
})(jQuery)
|
inc/js/colorpicker.min.js
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
(function(e){var t=function(){var t={},n,r=65,i,s='<div class="colorpicker"><div class="colorpicker_color"><div><div></div></div></div><div class="colorpicker_hue"><div></div></div><div class="colorpicker_new_color"></div><div class="colorpicker_current_color"></div><div class="colorpicker_hex"><input type="text" maxlength="6" size="6" /></div><div class="colorpicker_rgb_r colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_rgb_g colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_rgb_b colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_hsb_h colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_hsb_s colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_hsb_b colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_submit"></div></div>',o={eventName:"click",onShow:function(){},onBeforeShow:function(){},onHide:function(){},onChange:function(){},onSubmit:function(){},color:"ff0000",livePreview:!0,flat:!1},u=function(t,n){var r=q(t);e(n).data("colorpicker").fields.eq(1).val(r.r).end().eq(2).val(r.g).end().eq(3).val(r.b).end()},a=function(t,n){e(n).data("colorpicker").fields.eq(4).val(t.h).end().eq(5).val(t.s).end().eq(6).val(t.b).end()},f=function(t,n){e(n).data("colorpicker").fields.eq(0).val(U(t)).end()},l=function(t,n){e(n).data("colorpicker").selector.css("backgroundColor","#"+U({h:t.h,s:100,b:100})),e(n).data("colorpicker").selectorIndic.css({left:parseInt(150*t.s/100,10),top:parseInt(150*(100-t.b)/100,10)})},c=function(t,n){e(n).data("colorpicker").hue.css("top",parseInt(150-150*t.h/360,10))},h=function(t,n){e(n).data("colorpicker").currentColor.css("backgroundColor","#"+U(t))},p=function(t,n){e(n).data("colorpicker").newColor.css("backgroundColor","#"+U(t))},d=function(t){var n=t.charCode||t.keyCode||-1;if(n>r&&n<=90||n==32)return!1;var i=e(this).parent().parent();i.data("colorpicker").livePreview===!0&&v.apply(this)},v=function(t){var n=e(this).parent().parent(),r;this.parentNode.className.indexOf("_hex")>0?n.data("colorpicker").color=r=F(B(this.value)):this.parentNode.className.indexOf("_hsb")>0?n.data("colorpicker").color=r=P({h:parseInt(n.data("colorpicker").fields.eq(4).val(),10),s:parseInt(n.data("colorpicker").fields.eq(5).val(),10),b:parseInt(n.data("colorpicker").fields.eq(6).val(),10)}):n.data("colorpicker").color=r=I(H({r:parseInt(n.data("colorpicker").fields.eq(1).val(),10),g:parseInt(n.data("colorpicker").fields.eq(2).val(),10),b:parseInt(n.data("colorpicker").fields.eq(3).val(),10)})),t&&(u(r,n.get(0)),f(r,n.get(0)),a(r,n.get(0))),l(r,n.get(0)),c(r,n.get(0)),p(r,n.get(0)),n.data("colorpicker").onChange.apply(n,[r,U(r),q(r)])},m=function(t){var n=e(this).parent().parent();n.data("colorpicker").fields.parent().removeClass("colorpicker_focus")},g=function(){r=this.parentNode.className.indexOf("_hex")>0?70:65,e(this).parent().parent().data("colorpicker").fields.parent().removeClass("colorpicker_focus"),e(this).parent().addClass("colorpicker_focus")},y=function(t){var n=e(this).parent().find("input").focus(),r={el:e(this).parent().addClass("colorpicker_slider"),max:this.parentNode.className.indexOf("_hsb_h")>0?360:this.parentNode.className.indexOf("_hsb")>0?100:255,y:t.pageY,field:n,val:parseInt(n.val(),10),preview:e(this).parent().parent().data("colorpicker").livePreview};e(document).bind("mouseup",r,w),e(document).bind("mousemove",r,b)},b=function(e){return e.data.field.val(Math.max(0,Math.min(e.data.max,parseInt(e.data.val+e.pageY-e.data.y,10)))),e.data.preview&&v.apply(e.data.field.get(0),[!0]),!1},w=function(t){return v.apply(t.data.field.get(0),[!0]),t.data.el.removeClass("colorpicker_slider").find("input").focus(),e(document).unbind("mouseup",w),e(document).unbind("mousemove",b),!1},E=function(t){var n={cal:e(this).parent(),y:e(this).offset().top};n.preview=n.cal.data("colorpicker").livePreview,e(document).bind("mouseup",n,x),e(document).bind("mousemove",n,S)},S=function(e){return v.apply(e.data.cal.data("colorpicker").fields.eq(4).val(parseInt(360*(150-Math.max(0,Math.min(150,e.pageY-e.data.y)))/150,10)).get(0),[e.data.preview]),!1},x=function(t){return u(t.data.cal.data("colorpicker").color,t.data.cal.get(0)),f(t.data.cal.data("colorpicker").color,t.data.cal.get(0)),e(document).unbind("mouseup",x),e(document).unbind("mousemove",S),!1},T=function(t){var n={cal:e(this).parent(),pos:e(this).offset()};n.preview=n.cal.data("colorpicker").livePreview,e(document).bind("mouseup",n,C),e(document).bind("mousemove",n,N)},N=function(e){return v.apply(e.data.cal.data("colorpicker").fields.eq(6).val(parseInt(100*(150-Math.max(0,Math.min(150,e.pageY-e.data.pos.top)))/150,10)).end().eq(5).val(parseInt(100*Math.max(0,Math.min(150,e.pageX-e.data.pos.left))/150,10)).get(0),[e.data.preview]),!1},C=function(t){return u(t.data.cal.data("colorpicker").color,t.data.cal.get(0)),f(t.data.cal.data("colorpicker").color,t.data.cal.get(0)),e(document).unbind("mouseup",C),e(document).unbind("mousemove",N),!1},k=function(t){e(this).addClass("colorpicker_focus")},L=function(t){e(this).removeClass("colorpicker_focus")},A=function(t){var n=e(this).parent(),r=n.data("colorpicker").color;n.data("colorpicker").origColor=r,h(r,n.get(0)),n.data("colorpicker").onSubmit(r,U(r),q(r),n.data("colorpicker").el)},O=function(t){var n=e("#"+e(this).data("colorpickerId"));n.data("colorpicker").onBeforeShow.apply(this,[n.get(0)]);var r=e(this).offset(),i=D(),s=r.top+this.offsetHeight,o=r.left;return s+176>i.t+i.h&&(s-=this.offsetHeight+176),o+356>i.l+i.w&&(o-=356),n.css({left:o+"px",top:s+"px"}),n.data("colorpicker").onShow.apply(this,[n.get(0)])!=0&&n.show(),e(document).bind("mousedown",{cal:n},M),!1},M=function(t){_(t.data.cal.get(0),t.target,t.data.cal.get(0))||(t.data.cal.data("colorpicker").onHide.apply(this,[t.data.cal.get(0)])!=0&&t.data.cal.hide(),e(document).unbind("mousedown",M))},_=function(e,t,n){if(e==t)return!0;if(e.contains)return e.contains(t);if(e.compareDocumentPosition)return!!(e.compareDocumentPosition(t)&16);var r=t.parentNode;while(r&&r!=n){if(r==e)return!0;r=r.parentNode}return!1},D=function(){var e=document.compatMode=="CSS1Compat";return{l:window.pageXOffset||(e?document.documentElement.scrollLeft:document.body.scrollLeft),t:window.pageYOffset||(e?document.documentElement.scrollTop:document.body.scrollTop),w:window.innerWidth||(e?document.documentElement.clientWidth:document.body.clientWidth),h:window.innerHeight||(e?document.documentElement.clientHeight:document.body.clientHeight)}},P=function(e){return{h:Math.min(360,Math.max(0,e.h)),s:Math.min(100,Math.max(0,e.s)),b:Math.min(100,Math.max(0,e.b))}},H=function(e){return{r:Math.min(255,Math.max(0,e.r)),g:Math.min(255,Math.max(0,e.g)),b:Math.min(255,Math.max(0,e.b))}},B=function(e){var t=6-e.length;if(t>0){var n=[];for(var r=0;r<t;r++)n.push("0");n.push(e),e=n.join("")}return e},j=function(e){var e=parseInt(e.indexOf("#")>-1?e.substring(1):e,16);return{r:e>>16,g:(e&65280)>>8,b:e&255}},F=function(e){return I(j(e))},I=function(e){var t={h:0,s:0,b:0},n=Math.min(e.r,e.g,e.b),r=Math.max(e.r,e.g,e.b),i=r-n;return t.b=r,r!=0,t.s=r!=0?255*i/r:0,t.s!=0?e.r==r?t.h=(e.g-e.b)/i:e.g==r?t.h=2+(e.b-e.r)/i:t.h=4+(e.r-e.g)/i:t.h=-1,t.h*=60,t.h<0&&(t.h+=360),t.s*=100/255,t.b*=100/255,t},q=function(e){var t={},n=Math.round(e.h),r=Math.round(e.s*255/100),i=Math.round(e.b*255/100);if(r==0)t.r=t.g=t.b=i;else{var s=i,o=(255-r)*i/255,u=(s-o)*(n%60)/60;n==360&&(n=0),n<60?(t.r=s,t.b=o,t.g=o+u):n<120?(t.g=s,t.b=o,t.r=s-u):n<180?(t.g=s,t.r=o,t.b=o+u):n<240?(t.b=s,t.r=o,t.g=s-u):n<300?(t.b=s,t.g=o,t.r=o+u):n<360?(t.r=s,t.g=o,t.b=s-u):(t.r=0,t.g=0,t.b=0)}return{r:Math.round(t.r),g:Math.round(t.g),b:Math.round(t.b)}},R=function(t){var n=[t.r.toString(16),t.g.toString(16),t.b.toString(16)];return e.each(n,function(e,t){t.length==1&&(n[e]="0"+t)}),n.join("")},U=function(e){return R(q(e))},z=function(){var t=e(this).parent(),n=t.data("colorpicker").origColor;t.data("colorpicker").color=n,u(n,t.get(0)),f(n,t.get(0)),a(n,t.get(0)),l(n,t.get(0)),c(n,t.get(0)),p(n,t.get(0))};return{init:function(t){t=e.extend({},o,t||{});if(typeof t.color=="string")t.color=F(t.color);else if(t.color.r!=undefined&&t.color.g!=undefined&&t.color.b!=undefined)t.color=I(t.color);else{if(t.color.h==undefined||t.color.s==undefined||t.color.b==undefined)return this;t.color=P(t.color)}return this.each(function(){if(!e(this).data("colorpickerId")){var n=e.extend({},t);n.origColor=t.color;var r="collorpicker_"+parseInt(Math.random()*1e3);e(this).data("colorpickerId",r);var i=e(s).attr("id",r);n.flat?i.appendTo(this).show():i.appendTo(document.body),n.fields=i.find("input").bind("keyup",d).bind("change",v).bind("blur",m).bind("focus",g),i.find("span").bind("mousedown",y).end().find(">div.colorpicker_current_color").bind("click",z),n.selector=i.find("div.colorpicker_color").bind("mousedown",T),n.selectorIndic=n.selector.find("div div"),n.el=this,n.hue=i.find("div.colorpicker_hue div"),i.find("div.colorpicker_hue").bind("mousedown",E),n.newColor=i.find("div.colorpicker_new_color"),n.currentColor=i.find("div.colorpicker_current_color"),i.data("colorpicker",n),i.find("div.colorpicker_submit").bind("mouseenter",k).bind("mouseleave",L).bind("click",A),u(n.color,i.get(0)),a(n.color,i.get(0)),f(n.color,i.get(0)),c(n.color,i.get(0)),l(n.color,i.get(0)),h(n.color,i.get(0)),p(n.color,i.get(0)),n.flat?i.css({position:"relative",display:"block"}):e(this).bind(n.eventName,O)}})},showPicker:function(){return this.each(function(){e(this).data("colorpickerId")&&O.apply(this)})},hidePicker:function(){return this.each(function(){e(this).data("colorpickerId")&&e("#"+e(this).data("colorpickerId")).hide()})},setColor:function(t){if(typeof t=="string")t=F(t);else if(t.r!=undefined&&t.g!=undefined&&t.b!=undefined)t=I(t);else{if(t.h==undefined||t.s==undefined||t.b==undefined)return this;t=P(t)}return this.each(function(){if(e(this).data("colorpickerId")){var n=e("#"+e(this).data("colorpickerId"));n.data("colorpicker").color=t,n.data("colorpicker").origColor=t,u(t,n.get(0)),a(t,n.get(0)),f(t,n.get(0)),c(t,n.get(0)),l(t,n.get(0)),h(t,n.get(0)),p(t,n.get(0))}})}}}();e.fn.extend({ColorPicker:t.init,ColorPickerHide:t.hidePicker,ColorPickerShow:t.showPicker,ColorPickerSetColor:t.setColor})})(jQuery)
|
inc/js/easy-modal-admin.min.js
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
(function(e){e(document).ready(function(){e("#accordion").accordion(),setTimeout(function(){var t=parseInt(e("[name=containerBorderRadius]").val())+"px";e("#eModal-Container").css({"-moz-border-radius":t,"-webkit-border-radius":t,"border-radius":t})},1e3),e("#overlayOpacitySlider").slider({value:0,range:"min",min:0,max:100,step:1,slide:function(t,n){e("#overlayOpacity").val(n.value),e("#overlayOpacityValue").text(n.value),e("#eModal-Overlay").css({opacity:n.value/100})}}),e("#overlayOpacitySlider").slider("option","value",e("#overlayOpacity").val()),e("#containerPaddingSlider").slider({value:0,range:"min",min:0,max:40,step:1,slide:function(t,n){e("#containerPadding").val(n.value),e("#containerPaddingValue").text(n.value),e("#eModal-Container").css({padding:n.value+"px"})}}),e("#containerPaddingSlider").slider("option","value",e("#containerPadding").val()),e("#containerBorderWidthSlider").slider({value:0,range:"min",min:0,max:10,step:1,slide:function(t,n){e("#containerBorderWidth").val(n.value),e("#containerBorderWidthValue").text(n.value),e("#eModal-Container").css({borderWidth:n.value+"px"})}}),e("#containerBorderWidthSlider").slider("option","value",e("#containerBorderWidth").val()),e("[name=containerBorderStyle]").change(function(){var t=e(this).val();e("#eModal-Container").css({borderStyle:t})}),e("#containerBorderRadiusSlider").slider({value:0,range:"min",min:0,max:50,step:1,slide:function(t,n){e("#containerBorderRadius").val(n.value),e("#containerBorderRadiusValue").text(n.value);var r=n.value+"px";e("#eModal-Container").css({"-moz-border-radius":r,"-webkit-border-radius":r,"border-radius":r})}}),e("#containerBorderRadiusSlider").slider("option","value",e("#containerBorderRadius").val()),e("#contentTitleFontSizeSlider").slider({value:0,range:"min",min:12,max:48,step:1,slide:function(t,n){e("#contentTitleFontSize").val(n.value),e("#contentTitleFontSizeValue").text(n.value);var r=n.value+"px";e("#eModal-Title").css({fontSize:r})}}),e("#contentTitleFontSizeSlider").slider("option","value",e("#contentTitleFontSize").val()),e("[name=contentTitleFontFamily]").change(function(){var t=e(this).val();e("#eModal-Title").css({fontFamily:t})}),e("#closeBorderRadiusSlider").slider({value:0,range:"min",min:0,max:Math.round(e("#closeSize").val()/2),step:1,slide:function(t,n){e("#closeBorderRadius").val(n.value),e("#closeBorderRadiusValue").text(n.value);var r=n.value+"px";e("#eModal-Close").css({"-moz-border-radius":r,"-webkit-border-radius":r,"border-radius":r})}}),e("#closeBorderRadiusSlider").slider("option","value",e("#closeBorderRadius").val()),e("#closeFontSizeSlider").slider({value:0,range:"min",min:0,max:Math.round(e("#closeSize").val()-2),step:1,slide:function(t,n){e("#closeFontSize").val(n.value),e("#closeFontSizeValue").text(n.value);var r=n.value+"px";e("#eModal-Close").css({fontSize:r})}}),e("#closeFontSizeSlider").slider("option","value",e("#closeFontSize").val()),e("#closeSizeSlider").slider({value:0,range:"min",min:0,max:40,step:1,slide:function(t,n){e("#closeSize").val(n.value),e("#closeSizeValue").text(n.value);var r=n.value,i,s,o,u="auto";switch(e("[name=closePosition]").val()){case"topright":i=-(r/2)+"px",u=-(r/2)+"px";break;case"topleft":i=-(r/2)+"px",o=-(r/2)+"px";break;case"bottomright":s=-(r/2)+"px",u=-(r/2)+"px";break;case"bottomleft":s=-(r/2)+"px",o=-(r/2)+"px"}var a=e("#closeFontSizeSlider").slider("value");a>r-2&&(a=r-2),e("#closeFontSizeValue").text(a),e("#eModal-Close").css({fontSize:a+"px"}),e("#closeFontSizeSlider").slider("option","max",r-2).slider("option","value",a);var f=Math.round(r/2),l=e("#closeBorderRadiusSlider").slider("value");l>f&&(l=f),e("#closeBorderRadiusValue").text(l),e("#eModal-Close").css({"-moz-border-radius":l+"px","-webkit-border-radius":l+"px","border-radius":l+"px"}),e("#closeBorderRadiusSlider").slider("option","max",f).slider("option","value",l),e("#eModal-Close").css({width:r+"px",height:r+"px",lineHeight:r+"px",left:o,right:u,top:i,bottom:s})}}),e("#closeSizeSlider").slider("option","value",e("#closeSize").val()),e("#closePosition").change(function(){var t=parseInt(e("#closeSize").val()),n=bottom=left=right="auto";switch(e(this).val()){case"topright":n=-(t/2)+"px",right=-(t/2)+"px";break;case"topleft":n=-(t/2)+"px",left=-(t/2)+"px";break;case"bottomright":bottom=-(t/2)+"px",right=-(t/2)+"px";break;case"bottomleft":bottom=-(t/2)+"px",left=-(t/2)+"px"}e("#eModal-Close").css({left:left,right:right,top:n,bottom:bottom})}),e(".colorSelect").each(function(){var t=e(this);e(this).ColorPicker({color:e(t).val(),onShow:function(t){return e(t).fadeIn(500),!1},onHide:function(t){return e(t).fadeOut(500),!1},onChange:function(n,r,i){e(t).css("backgroundColor","#"+r).val("#"+r);switch(e(t).attr("name")){case"overlayColor":e("#eModal-Overlay").css({backgroundColor:"#"+r});break;case"containerBgColor":e("#eModal-Container").css({backgroundColor:"#"+r});break;case"containerBorderColor":e("#eModal-Container").css({borderColor:"#"+r});break;case"contentTitleFontColor":e("#eModal-Title").css({color:"#"+r});break;case"contentFontColor":e("#eModal-Container").css({color:"#"+r});break;case"closeBgColor":e("#eModal-Close").css({backgroundColor:"#"+r});break;case"closeBorderColor":e("#eModal-Close").css({borderColor:"#"+r});break;case"closeFontColor":e("#eModal-Close").css({color:"#"+r})}}})})}),e(document).ready(function(){e("#userMaxHeightSlider").slider({value:0,range:"min",min:0,max:100,step:1,slide:function(t,n){e("#userMaxHeight").val(n.value)}}),e("#userMaxHeight").live("change",function(){e("#userMaxHeightSlider").slider("option","value",e(this).val())}),e("#userMaxWidthSlider").slider({value:0,range:"min",min:0,max:100,step:1,slide:function(t,n){e("#userMaxWidth").val(n.value)}}),e("#userMaxWidth").live("change",function(){e("#userMaxWidthSlider").slider("option","value",e(this).val())}),e("#userMaxHeightSlider").slider("option","value",e("#userMaxHeight").val()),e("#userMaxWidthSlider").slider("option","value",e("#userMaxWidth").val())}),e(document).ready(function(){e("#autoOpenDelaySlider").slider({value:0,range:"min",min:0,max:1e4,step:500,slide:function(t,n){e("#autoOpenDelay").val(n.value),e("#autoOpenDelayValue").text(n.value)}}),e("#autoOpenDelay").live("change",function(){e("#autoOpenDelaySlider").slider("option","value",e(this).val())}),e("#autoOpenDelaySlider").slider("option","value",e("#autoOpenDelay").val()),e(".cb-enable").click(function(){var t=e(this).parents(".switch");e(".cb-disable",t).removeClass("selected"),e(this).addClass("selected"),e(".checkbox",t).attr("checked",!0)}),e(".cb-disable").click(function(){var t=e(this).parents(".switch");e(".cb-enable",t).removeClass("selected"),e(this).addClass("selected"),e(".checkbox",t).attr("checked",!1)}),e(".switch").each(function(){var t=e(this),n=e(".checkbox",t);n.is(":checked")&&(e(".cb-disable",t).removeClass("selected"),e(".cb-enable",t).addClass("selected"))})})})(jQuery)
|
inc/js/easy-modal.min.js
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
(function(a){var k={init:function(c){$this=a(this);var b=a.extend({},a.fn.emodal.defaults,c);return this.each(function(){a(this).addClass("emodal").data("emodal",b).click(function(){a(this).emodal("show");return!1})})},close:function(){$this=a("#eModal-Container");var c=$this.data("emodal");a("#"+c.containerId).fadeOut(function(){a(this).remove();a("#"+c.overlayId).fadeOut(function(){a(this).remove()})});a("html").removeAttr("style").attr("style",a("html").data("htmlStyles"));a("body").removeAttr("style").attr("style", a("body").data("bodyStyles"));$this.removeClass("eModal-Opened");return this},show:function(){function c(){if(!0===m)return $this.each(function(){f.show().css({opacity:".01"}).emodal("center").animate({opacity:".01"}).animate({opacity:"1"});var b,c;a(window).resize(function(){clearTimeout(b);0<a(".eModal-Opened").length&&(b=setTimeout(function(){e.css({maxHeight:0.9*a(window).width()-60+"px"});f.emodal("center",!0)},200))}).scroll(function(){clearTimeout(c);0<a(".eModal-Opened").length&&(c=setTimeout(function(){f.emodal("center", !0)},200))})});setTimeout(c,200)}$this=a(this).addClass("eModal-Opened");var b=$this.data("emodal");b.maxHeight=0.85*a(window).height();b.maxWidth=0.9*a(window).width();var d=t[b.theme];a("html").data("htmlStyles",a("html").attr("style")||"");a("body").data("bodyStyles",a("body").attr("style")||"");a("html,body").css({width:"100%",height:"100%"});a("<div>").attr("id",b.overlayId).css({backgroundColor:d.overlayColor,opacity:d.overlayOpacity/100}).appendTo("body").fadeIn().click(function(){"true"== b.overlayClose&&(modal_is_open=!1,f.emodal("close"))});var f=a("<div>").data("emodal",b).attr("id",b.containerId).css({backgroundColor:d.containerBgColor,padding:d.containerPadding+"px",border:d.containerBorderColor+" "+d.containerBorderStyle+" "+d.containerBorderWidth+"px","-moz-border-radius":d.containerBorderRadius+"px","-webkit-border-radius":d.containerBorderRadius+"px","border-radius":d.containerBorderRadius+"px"}).hide().appendTo("body"),e=a("<div>").attr("id",b.contentId).css({color:d.contentFontColor}).appendTo(f), k=a("<div>").attr("id",b.controlsId).prependTo(f),g=d.closeSize,l,j,n,p="auto";switch(d.closePosition){case "topright":l=-(g/2)+"px";p=-(g/2)+"px";break;case "topleft":l=-(g/2)+"px";n=-(g/2)+"px";break;case "bottomright":j=-(g/2)+"px";p=-(g/2)+"px";break;case "bottomleft":j=-(g/2)+"px",n=-(g/2)+"px"}a("<a>").attr("id",b.closeId).text("x").click(function(){modal_is_open=!1;$this.emodal("close")}).css({left:n,right:p,top:l,bottom:j,height:d.closeSize+"px",width:d.closeSize+"px",backgroundColor:d.closeBgColor, border:"2px solid #FFFFFF","-moz-border-radius":d.closeBorderRadius+"px","-webkit-border-radius":d.closeBorderRadius+"px","border-radius":d.closeBorderRadius+"px",color:d.closeFontColor,fontSize:d.closeFontSize+"px",lineHeight:d.closeSize+"px"}).appendTo(k);if("Image"===b.type){f.css({maxWidth:b.maxWidth,maxHeight:b.maxHeight});var h=a("a.eModal-Image"),g=a("<a>").attr("id",b.prevId).click(function(){var c=a(".eModal-Opened"),d=h.eq(h.index(c)-1);c.removeClass("eModal-Opened");0>=d.length&&(d=h.eq(h.length)); d.addClass("eModal-Opened");f.animate({opacity:".01"},function(){var c=a("<img/>").attr("src",d.attr("href")).css({maxWidth:"100%",maxHeight:"100%"}).load(function(){!this.complete||"undefined"==typeof this.naturalWidth||0==this.naturalWidth?alert("broken image!"):(this.naturalWidth>b.maxWidth&&c.attr("width",b.maxWidth),this.naturalHeight>b.maxHeight&&c.attr("height",b.maxHeight),e.html(c).css({opacity:".01"}),f.emodal("center").animate({opacity:".01"}).animate({opacity:"1"}),e.animate({opacity:"1"}))})}); return!1});l=a("<a>").attr("id",b.nextId).click(function(){var c=a(".eModal-Opened"),d=h.eq(h.index(c)+1);c.removeClass("eModal-Opened");0==d.length&&(d=h.eq(0));d.addClass("eModal-Opened");f.animate({opacity:".01"},function(){var c=a("<img/>").attr("src",d.attr("href")).css({maxWidth:"100%",maxHeight:"100%"}).load(function(){!this.complete||"undefined"==typeof this.naturalWidth||0==this.naturalWidth?alert("broken image!"):(this.naturalWidth>b.maxWidth&&c.attr("width",b.maxWidth),this.naturalHeight> b.maxHeight&&c.attr("height",b.maxHeight),e.html(c).css({opacity:".01"}),f.emodal("center").animate({opacity:".01"}).animate({opacity:"1"}),e.animate({opacity:"1"}))})});return!1});a("<div>").attr("id",b.buttonsId).append(g,l).appendTo(f)}"Link"===b.type&&(b.requestData.url=a(this).attr("href"),b.requestData.iframeWidth=b.maxWidth,b.requestData.iframeHeight=b.maxHeight);var m=!1;if(null!=b.url)if("Image"===b.type)var q=a("<img/>").attr("src",b.url).css({maxWidth:"100%",maxHeight:"100%"}).load(function(){!this.complete|| "undefined"==typeof this.naturalWidth||0==this.naturalWidth?alert("broken image!"):(this.naturalWidth>b.maxWidth&&q.attr("width",b.maxWidth),this.naturalHeight>b.maxHeight&&q.attr("height",b.maxHeight),e.append(q),m=!0)});else a.post(b.url,b.requestData,function(c){e.prepend(c);a("form",e).length&&($orig_action=a("form",e).attr("action").split("#"),a("form",e).attr("action","#"+$orig_action[1]).attr("action"));f.show().css({opacity:".01"});0<b.userMaxHeight?e.css({maxHeight:a(window).height()*(b.userMaxHeight/ 100)+"px"}):e.innerHeight()>b.maxHeight&&"Link"!=b.type&&e.css({maxHeight:b.maxHeight-60+"px"});0<b.userHeight&&e.css({height:b.userHeight+"px"});0<b.userMaxWidth&&e.css({maxWidth:a(window).width()*(b.userMaxWidth/100)+"px"});0<b.userWidth&&e.css({width:b.userWidth+"px"});(c=e.find("#eModal-Title").css({color:d.contentTitleFontColor,fontFamily:d.contentTitleFontFamily,fontSize:d.contentTitleFontSize+"px"}))&&c.attr("title",c.text()).appendTo(k);b.onLoad();!0==b.cf7form&&u();!0==b.gravityform&&r(); m=!0});"true"==b.overlayEscClose&&a(document).keyup(function(c){if(a("#eModal-Container").length)27==c.keyCode&&(modal_is_open=!1,a("#eModal-Container").emodal("close"));else return!1});c()},center:function(c){$this=a(".eModal-Opened");var b=$this.data("emodal"),d=a("#"+b.containerId);setTimeout(function(){var b=(a(window).height()-a(d).outerHeight())/2,e=(a(window).width()-a(d).outerWidth())/2;!0==c?a(d).stop().animate({top:b+a(document).scrollTop(),left:e}):a(d).css({top:b+a(document).scrollTop(), left:e})},200);return this}},r=function(){var c=a("#eModal-Content");a("form[id^=gform]:not(.ajax_form)",c).addClass("ajax_form").ajaxForm({dataType:"html",success:function(b){c.html(b);a("form[id^=gform]",c).length?($orig_action=a("form[id^=gform]",c).attr("action").split("#"),a("form[id^=gform]",c).attr("action","#"+$orig_action[1]).attr("action"),r()):a("#eModal-Container").emodal("center",!0)}})},u=function(){a("div.wpcf7 > form").ajaxForm({beforeSubmit:function(a,b){b.wpcf7ClearResponseOutput(); b.find("img.ajax-loader").css({visibility:"visible"});return!0},beforeSerialize:function(c){c.find(".wpcf7-use-title-as-watermark.watermark").each(function(b,c){a(c).val("")});return!0},data:{_wpcf7_is_ajax_call:1},dataType:"json",success:function(c){var b=a(c.into).find("div.wpcf7-response-output");a(c.into).wpcf7ClearResponseOutput();c.invalids&&(a.each(c.invalids,function(b,f){a(c.into).find(f.into).wpcf7NotValidTip(f.message)}),b.addClass("wpcf7-validation-errors"));c.captcha&&a(c.into).wpcf7RefillCaptcha(c.captcha); c.quiz&&a(c.into).wpcf7RefillQuiz(c.quiz);1==c.spam&&b.addClass("wpcf7-spam-blocked");1==c.mailSent?(a(c.into).find("form").resetForm().clearForm(),b.addClass("wpcf7-mail-sent-ok"),c.onSentOk&&a.each(c.onSentOk,function(a,b){eval(b)}),modal_is_open=!1,a(this).emodal("close")):b.addClass("wpcf7-mail-sent-ng");c.onSubmit&&a.each(c.onSubmit,function(a,b){eval(b)});a(c.into).find(".wpcf7-use-title-as-watermark.watermark").each(function(b,c){a(c).val(a(c).attr("title"))});b.append(c.message).slideDown("fast")}})}; a.fn.emodal=function(c){if(k[c])return k[c].apply(this,Array.prototype.slice.call(arguments,1));if("object"===typeof c||!c)return k.init.apply(this,arguments);a.error("Method "+c+" does not exist on jQuery.emodal")};a.fn.emodal.defaults={overlayId:"eModal-Overlay",containerId:"eModal-Container",contentId:"eModal-Content",controlsId:"eModal-Controls",closeId:"eModal-Close",prevId:"eModal-Previous",nextId:"eModal-Next",buttonsId:"eModal-Buttons",imgId:"eModal-Img",url:easymodal.ajaxurl,piePath:easymodal.piePath, requestData:{},theme:"1",onLoad:function(){},type:null,maxHeight:0.85*a(window).height(),maxWidth:0.9*a(window).width(),overlayClose:!1};var s=easymodal.modals,t=easymodal.themes,j=easymodal.settings;a(document).ready(function(){jQuery.fn.isChildOf=function(a){return 0<this.parents(a).length};a.fn.hasAttr=function(a){return void 0!==this.attr(a)};a.expr[":"].external=function(a){return!a.href.match(/^mailto\:/)&&a.hostname!=location.hostname};a("[class^='eModal-'],[class*=' eModal-']").each(function(){for(var c= a(this).attr("class").split(" "),b=0;b<c.length;b++)if("eModal-"==c[b].substr(0,7)){var d=c[b].split("-")[1];break}a(this).emodal(s[d])});"true"==j.autoOpen&&0==a("#eModal_autoOpen").length&&($span=a('<span id="eModal_autoOpen">').hide().appendTo("body").emodal(s[j.autoOpenId]),setTimeout(function(){$span.click()},j.autoOpenDelay))})})(jQuery);
|
inc/js/jquery.form.js
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*!
|
2 |
+
* jQuery Form Plugin
|
3 |
+
* version: 3.14 (30-JUL-2012)
|
4 |
+
* @requires jQuery v1.3.2 or later
|
5 |
+
*
|
6 |
+
* Examples and documentation at: http://malsup.com/jquery/form/
|
7 |
+
* Project repository: https://github.com/malsup/form
|
8 |
+
* Dual licensed under the MIT and GPL licenses:
|
9 |
+
* http://malsup.github.com/mit-license.txt
|
10 |
+
* http://malsup.github.com/gpl-license-v2.txt
|
11 |
+
*/
|
12 |
+
(function(e){var c={};c.fileapi=e("<input type='file'/>").get(0).files!==undefined;c.formdata=window.FormData!==undefined;e.fn.ajaxSubmit=function(g){if(!this.length){d("ajaxSubmit: skipping submit process - no element selected");return this}var f,w,i,l=this;if(typeof g=="function"){g={success:g}}f=this.attr("method");w=this.attr("action");i=(typeof w==="string")?e.trim(w):"";i=i||window.location.href||"";if(i){i=(i.match(/^([^#]+)/)||[])[1]}g=e.extend(true,{url:i,success:e.ajaxSettings.success,type:f||"GET",iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank"},g);var r={};this.trigger("form-pre-serialize",[this,g,r]);if(r.veto){d("ajaxSubmit: submit vetoed via form-pre-serialize trigger");return this}if(g.beforeSerialize&&g.beforeSerialize(this,g)===false){d("ajaxSubmit: submit aborted via beforeSerialize callback");return this}var j=g.traditional;if(j===undefined){j=e.ajaxSettings.traditional}var o=[];var z,A=this.formToArray(g.semantic,o);if(g.data){g.extraData=g.data;z=e.param(g.data,j)}if(g.beforeSubmit&&g.beforeSubmit(A,this,g)===false){d("ajaxSubmit: submit aborted via beforeSubmit callback");return this}this.trigger("form-submit-validate",[A,this,g,r]);if(r.veto){d("ajaxSubmit: submit vetoed via form-submit-validate trigger");return this}var u=e.param(A,j);if(z){u=(u?(u+"&"+z):z)}if(g.type.toUpperCase()=="GET"){g.url+=(g.url.indexOf("?")>=0?"&":"?")+u;g.data=null}else{g.data=u}var C=[];if(g.resetForm){C.push(function(){l.resetForm()})}if(g.clearForm){C.push(function(){l.clearForm(g.includeHidden)})}if(!g.dataType&&g.target){var h=g.success||function(){};C.push(function(q){var k=g.replaceTarget?"replaceWith":"html";e(g.target)[k](q).each(h,arguments)})}else{if(g.success){C.push(g.success)}}g.success=function(F,q,G){var E=g.context||this;for(var D=0,k=C.length;D<k;D++){C[D].apply(E,[F,q,G||l,l])}};var y=e("input:file:enabled[value]",this);var m=y.length>0;var x="multipart/form-data";var t=(l.attr("enctype")==x||l.attr("encoding")==x);var s=c.fileapi&&c.formdata;d("fileAPI :"+s);var n=(m||t)&&!s;if(g.iframe!==false&&(g.iframe||n)){if(g.closeKeepAlive){e.get(g.closeKeepAlive,function(){B(A)})}else{B(A)}}else{if((m||t)&&s){p(A)}else{e.ajax(g)}}for(var v=0;v<o.length;v++){o[v]=null}this.trigger("form-submit-notify",[this,g]);return this;function p(q){var k=new FormData();for(var D=0;D<q.length;D++){k.append(q[D].name,q[D].value)}if(g.extraData){for(var G in g.extraData){if(g.extraData.hasOwnProperty(G)){k.append(G,g.extraData[G])}}}g.data=null;var F=e.extend(true,{},e.ajaxSettings,g,{contentType:false,processData:false,cache:false,type:"POST"});if(g.uploadProgress){F.xhr=function(){var H=jQuery.ajaxSettings.xhr();if(H.upload){H.upload.onprogress=function(L){var K=0;var I=L.loaded||L.position;var J=L.total;if(L.lengthComputable){K=Math.ceil(I/J*100)}g.uploadProgress(L,I,J,K)}}return H}}F.data=null;var E=F.beforeSend;F.beforeSend=function(I,H){H.data=k;if(E){E.call(this,I,H)}};e.ajax(F)}function B(ab){var G=l[0],F,X,R,Z,U,I,M,K,L,V,Y,P;var J=!!e.fn.prop;if(e(":input[name=submit],:input[id=submit]",G).length){alert('Error: Form elements must not have name or id of "submit".');return}if(ab){for(X=0;X<o.length;X++){F=e(o[X]);if(J){F.prop("disabled",false)}else{F.removeAttr("disabled")}}}R=e.extend(true,{},e.ajaxSettings,g);R.context=R.context||R;U="jqFormIO"+(new Date().getTime());if(R.iframeTarget){I=e(R.iframeTarget);V=I.attr("name");if(!V){I.attr("name",U)}else{U=V}}else{I=e('<iframe name="'+U+'" src="'+R.iframeSrc+'" />');I.css({position:"absolute",top:"-1000px",left:"-1000px"})}M=I[0];K={aborted:0,responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(ae){var af=(ae==="timeout"?"timeout":"aborted");d("aborting upload... "+af);this.aborted=1;if(M.contentWindow.document.execCommand){try{M.contentWindow.document.execCommand("Stop")}catch(ag){}}I.attr("src",R.iframeSrc);K.error=af;if(R.error){R.error.call(R.context,K,af,ae)}if(Z){e.event.trigger("ajaxError",[K,R,af])}if(R.complete){R.complete.call(R.context,K,af)}}};Z=R.global;if(Z&&0===e.active++){e.event.trigger("ajaxStart")}if(Z){e.event.trigger("ajaxSend",[K,R])}if(R.beforeSend&&R.beforeSend.call(R.context,K,R)===false){if(R.global){e.active--}return}if(K.aborted){return}L=G.clk;if(L){V=L.name;if(V&&!L.disabled){R.extraData=R.extraData||{};R.extraData[V]=L.value;if(L.type=="image"){R.extraData[V+".x"]=G.clk_x;R.extraData[V+".y"]=G.clk_y}}}var Q=1;var N=2;function O(af){var ae=af.contentWindow?af.contentWindow.document:af.contentDocument?af.contentDocument:af.document;return ae}var E=e("meta[name=csrf-token]").attr("content");var D=e("meta[name=csrf-param]").attr("content");if(D&&E){R.extraData=R.extraData||{};R.extraData[D]=E}function W(){var ag=l.attr("target"),ae=l.attr("action");G.setAttribute("target",U);if(!f){G.setAttribute("method","POST")}if(ae!=R.url){G.setAttribute("action",R.url)}if(!R.skipEncodingOverride&&(!f||/post/i.test(f))){l.attr({encoding:"multipart/form-data",enctype:"multipart/form-data"})}if(R.timeout){P=setTimeout(function(){Y=true;T(Q)},R.timeout)}function ah(){try{var aj=O(M).readyState;d("state = "+aj);if(aj&&aj.toLowerCase()=="uninitialized"){setTimeout(ah,50)}}catch(ak){d("Server abort: ",ak," (",ak.name,")");T(N);if(P){clearTimeout(P)}P=undefined}}var af=[];try{if(R.extraData){for(var ai in R.extraData){if(R.extraData.hasOwnProperty(ai)){if(e.isPlainObject(R.extraData[ai])&&R.extraData[ai].hasOwnProperty("name")&&R.extraData[ai].hasOwnProperty("value")){af.push(e('<input type="hidden" name="'+R.extraData[ai].name+'">').attr("value",R.extraData[ai].value).appendTo(G)[0])}else{af.push(e('<input type="hidden" name="'+ai+'">').attr("value",R.extraData[ai]).appendTo(G)[0])}}}}if(!R.iframeTarget){I.appendTo("body");if(M.attachEvent){M.attachEvent("onload",T)}else{M.addEventListener("load",T,false)}}setTimeout(ah,15);G.submit()}finally{G.setAttribute("action",ae);if(ag){G.setAttribute("target",ag)}else{l.removeAttr("target")}e(af).remove()}}if(R.forceSync){W()}else{setTimeout(W,10)}var ac,ad,aa=50,H;function T(aj){if(K.aborted||H){return}try{ad=O(M)}catch(am){d("cannot access response document: ",am);aj=N}if(aj===Q&&K){K.abort("timeout");return}else{if(aj==N&&K){K.abort("server abort");return}}if(!ad||ad.location.href==R.iframeSrc){if(!Y){return}}if(M.detachEvent){M.detachEvent("onload",T)}else{M.removeEventListener("load",T,false)}var ah="success",al;try{if(Y){throw"timeout"}var ag=R.dataType=="xml"||ad.XMLDocument||e.isXMLDoc(ad);d("isXml="+ag);if(!ag&&window.opera&&(ad.body===null||!ad.body.innerHTML)){if(--aa){d("requeing onLoad callback, DOM not available");setTimeout(T,250);return}}var an=ad.body?ad.body:ad.documentElement;K.responseText=an?an.innerHTML:null;K.responseXML=ad.XMLDocument?ad.XMLDocument:ad;if(ag){R.dataType="xml"}K.getResponseHeader=function(aq){var ap={"content-type":R.dataType};return ap[aq]};if(an){K.status=Number(an.getAttribute("status"))||K.status;K.statusText=an.getAttribute("statusText")||K.statusText}var ae=(R.dataType||"").toLowerCase();var ak=/(json|script|text)/.test(ae);if(ak||R.textarea){var ai=ad.getElementsByTagName("textarea")[0];if(ai){K.responseText=ai.value;K.status=Number(ai.getAttribute("status"))||K.status;K.statusText=ai.getAttribute("statusText")||K.statusText}else{if(ak){var af=ad.getElementsByTagName("pre")[0];var ao=ad.getElementsByTagName("body")[0];if(af){K.responseText=af.textContent?af.textContent:af.innerText}else{if(ao){K.responseText=ao.textContent?ao.textContent:ao.innerText}}}}}else{if(ae=="xml"&&!K.responseXML&&K.responseText){K.responseXML=S(K.responseText)}}try{ac=k(K,ae,R)}catch(aj){ah="parsererror";K.error=al=(aj||ah)}}catch(aj){d("error caught: ",aj);ah="error";K.error=al=(aj||ah)}if(K.aborted){d("upload aborted");ah=null}if(K.status){ah=(K.status>=200&&K.status<300||K.status===304)?"success":"error"}if(ah==="success"){if(R.success){R.success.call(R.context,ac,"success",K)}if(Z){e.event.trigger("ajaxSuccess",[K,R])}}else{if(ah){if(al===undefined){al=K.statusText}if(R.error){R.error.call(R.context,K,ah,al)}if(Z){e.event.trigger("ajaxError",[K,R,al])}}}if(Z){e.event.trigger("ajaxComplete",[K,R])}if(Z&&!--e.active){e.event.trigger("ajaxStop")}if(R.complete){R.complete.call(R.context,K,ah)}H=true;if(R.timeout){clearTimeout(P)}setTimeout(function(){if(!R.iframeTarget){I.remove()}K.responseXML=null},100)}var S=e.parseXML||function(ae,af){if(window.ActiveXObject){af=new ActiveXObject("Microsoft.XMLDOM");af.async="false";af.loadXML(ae)}else{af=(new DOMParser()).parseFromString(ae,"text/xml")}return(af&&af.documentElement&&af.documentElement.nodeName!="parsererror")?af:null};var q=e.parseJSON||function(ae){return window["eval"]("("+ae+")")};var k=function(aj,ah,ag){var af=aj.getResponseHeader("content-type")||"",ae=ah==="xml"||!ah&&af.indexOf("xml")>=0,ai=ae?aj.responseXML:aj.responseText;if(ae&&ai.documentElement.nodeName==="parsererror"){if(e.error){e.error("parsererror")}}if(ag&&ag.dataFilter){ai=ag.dataFilter(ai,ah)}if(typeof ai==="string"){if(ah==="json"||!ah&&af.indexOf("json")>=0){ai=q(ai)}else{if(ah==="script"||!ah&&af.indexOf("javascript")>=0){e.globalEval(ai)}}}return ai}}};e.fn.ajaxForm=function(f){f=f||{};f.delegation=f.delegation&&e.isFunction(e.fn.on);if(!f.delegation&&this.length===0){var g={s:this.selector,c:this.context};if(!e.isReady&&g.s){d("DOM not ready, queuing ajaxForm");e(function(){e(g.s,g.c).ajaxForm(f)});return this}d("terminating; zero elements found by selector"+(e.isReady?"":" (DOM not ready)"));return this}if(f.delegation){e(document).off("submit.form-plugin",this.selector,b).off("click.form-plugin",this.selector,a).on("submit.form-plugin",this.selector,f,b).on("click.form-plugin",this.selector,f,a);return this}return this.ajaxFormUnbind().bind("submit.form-plugin",f,b).bind("click.form-plugin",f,a)};function b(g){var f=g.data;if(!g.isDefaultPrevented()){g.preventDefault();e(this).ajaxSubmit(f)}}function a(j){var i=j.target;var g=e(i);if(!(g.is(":submit,input:image"))){var f=g.closest(":submit");if(f.length===0){return}i=f[0]}var h=this;h.clk=i;if(i.type=="image"){if(j.offsetX!==undefined){h.clk_x=j.offsetX;h.clk_y=j.offsetY}else{if(typeof e.fn.offset=="function"){var k=g.offset();h.clk_x=j.pageX-k.left;h.clk_y=j.pageY-k.top}else{h.clk_x=j.pageX-i.offsetLeft;h.clk_y=j.pageY-i.offsetTop}}}setTimeout(function(){h.clk=h.clk_x=h.clk_y=null},100)}e.fn.ajaxFormUnbind=function(){return this.unbind("submit.form-plugin click.form-plugin")};e.fn.formToArray=function(w,f){var u=[];if(this.length===0){return u}var k=this[0];var o=w?k.getElementsByTagName("*"):k.elements;if(!o){return u}var q,p,m,x,l,s,h;for(q=0,s=o.length;q<s;q++){l=o[q];m=l.name;if(!m){continue}if(w&&k.clk&&l.type=="image"){if(!l.disabled&&k.clk==l){u.push({name:m,value:e(l).val(),type:l.type});u.push({name:m+".x",value:k.clk_x},{name:m+".y",value:k.clk_y})}continue}x=e.fieldValue(l,true);if(x&&x.constructor==Array){if(f){f.push(l)}for(p=0,h=x.length;p<h;p++){u.push({name:m,value:x[p]})}}else{if(c.fileapi&&l.type=="file"&&!l.disabled){if(f){f.push(l)}var g=l.files;if(g.length){for(p=0;p<g.length;p++){u.push({name:m,value:g[p],type:l.type})}}else{u.push({name:m,value:"",type:l.type})}}else{if(x!==null&&typeof x!="undefined"){if(f){f.push(l)}u.push({name:m,value:x,type:l.type,required:l.required})}}}}if(!w&&k.clk){var r=e(k.clk),t=r[0];m=t.name;if(m&&!t.disabled&&t.type=="image"){u.push({name:m,value:r.val()});u.push({name:m+".x",value:k.clk_x},{name:m+".y",value:k.clk_y})}}return u};e.fn.formSerialize=function(f){return e.param(this.formToArray(f))};e.fn.fieldSerialize=function(g){var f=[];this.each(function(){var l=this.name;if(!l){return}var j=e.fieldValue(this,g);if(j&&j.constructor==Array){for(var k=0,h=j.length;k<h;k++){f.push({name:l,value:j[k]})}}else{if(j!==null&&typeof j!="undefined"){f.push({name:this.name,value:j})}}});return e.param(f)};e.fn.fieldValue=function(l){for(var k=[],h=0,f=this.length;h<f;h++){var j=this[h];var g=e.fieldValue(j,l);if(g===null||typeof g=="undefined"||(g.constructor==Array&&!g.length)){continue}if(g.constructor==Array){e.merge(k,g)}else{k.push(g)}}return k};e.fieldValue=function(f,m){var h=f.name,s=f.type,u=f.tagName.toLowerCase();if(m===undefined){m=true}if(m&&(!h||f.disabled||s=="reset"||s=="button"||(s=="checkbox"||s=="radio")&&!f.checked||(s=="submit"||s=="image")&&f.form&&f.form.clk!=f||u=="select"&&f.selectedIndex==-1)){return null}if(u=="select"){var o=f.selectedIndex;if(o<0){return null}var q=[],g=f.options;var k=(s=="select-one");var p=(k?o+1:g.length);for(var j=(k?o:0);j<p;j++){var l=g[j];if(l.selected){var r=l.value;if(!r){r=(l.attributes&&l.attributes.value&&!(l.attributes.value.specified))?l.text:l.value}if(k){return r}q.push(r)}}return q}return e(f).val()};e.fn.clearForm=function(f){return this.each(function(){e("input,select,textarea",this).clearFields(f)})};e.fn.clearFields=e.fn.clearInputs=function(f){var g=/^(?:color|date|datetime|email|month|number|password|range|search|tel|text|time|url|week)$/i;return this.each(function(){var i=this.type,h=this.tagName.toLowerCase();if(g.test(i)||h=="textarea"){this.value=""}else{if(i=="checkbox"||i=="radio"){this.checked=false}else{if(h=="select"){this.selectedIndex=-1}else{if(f){if((f===true&&/hidden/.test(i))||(typeof f=="string"&&e(this).is(f))){this.value=""}}}}}})};e.fn.resetForm=function(){return this.each(function(){if(typeof this.reset=="function"||(typeof this.reset=="object"&&!this.reset.nodeType)){this.reset()}})};e.fn.enable=function(f){if(f===undefined){f=true}return this.each(function(){this.disabled=!f})};e.fn.selected=function(f){if(f===undefined){f=true}return this.each(function(){var g=this.type;if(g=="checkbox"||g=="radio"){this.checked=f}else{if(this.tagName.toLowerCase()=="option"){var h=e(this).parent("select");if(f&&h[0]&&h[0].type=="select-one"){h.find("option").selected(false)}this.selected=f}}})};e.fn.ajaxSubmit.debug=false;function d(){if(!e.fn.ajaxSubmit.debug){return}var f="[jquery.form] "+Array.prototype.join.call(arguments,"");if(window.console&&window.console.log){window.console.log(f)}else{if(window.opera&&window.opera.postError){window.opera.postError(f)}}}})(jQuery);
|
inc/modals.php
ADDED
@@ -0,0 +1,134 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div class="wrap"><?php
|
2 |
+
$modal_id = isset($_GET['modal_id']) ? $_GET['modal_id'] : NULL;
|
3 |
+
if($modal_id > 0 && isset($_GET['action']) && $_GET['action']=='delete')
|
4 |
+
{
|
5 |
+
?><<< - <a href="admin.php?page=<?php echo $this->Plugin['slug']?>-modals">Back to Modals</a><?php
|
6 |
+
if(!isset($_GET['confirm']))
|
7 |
+
{
|
8 |
+
?><h2><?php _e('Delete Modal','easy-modal')?></h2>
|
9 |
+
<p>Are you sure you want to delete this modal?</p>
|
10 |
+
<a style="color:#fff;border:1px solid #333; background-color:#900; text-shadow: none;"class="add-new-h2" href="admin.php?page=<?php echo $this->Plugin['slug']?>-modals&modal_id=<?php echo $modal_id?>&action=delete&confirm=yes">Confirm</a><?php
|
11 |
+
}
|
12 |
+
else
|
13 |
+
{
|
14 |
+
$this->deleteModal($modal_id);
|
15 |
+
?><p>Modal Deleted</p><?php
|
16 |
+
}
|
17 |
+
}
|
18 |
+
elseif($modal_id!=NULL)
|
19 |
+
{
|
20 |
+
if($_POST)
|
21 |
+
{
|
22 |
+
$settings = $this->updateModalSettings( $modal_id, $_POST );
|
23 |
+
?><div class="updated"><strong><?php _e('Settings Updated','easy-modal')?>.</strong></div><?php
|
24 |
+
}
|
25 |
+
elseif($modal_id=='new')
|
26 |
+
{
|
27 |
+
$settings = $this->defaultModalSettings();
|
28 |
+
}
|
29 |
+
else
|
30 |
+
{
|
31 |
+
$settings = $this->getModalSettings( $modal_id );
|
32 |
+
}
|
33 |
+
?><<< - <a href="admin.php?page=<?php echo $this->Plugin['slug']?>-modals">Back to Modal Lists</a>
|
34 |
+
<h2>
|
35 |
+
<?php echo ucfirst($settings['name']).' '; _e('Modal','easy-modal')?>
|
36 |
+
<a style="color:#fff;border:1px solid #333; background-color:#900; text-shadow: none;"class="add-new-h2" href="admin.php?page=<?php echo $this->Plugin['slug']?>-modals&modal_id=<?php echo $modal_id?>&action=delete">Delete</a>
|
37 |
+
</h2>
|
38 |
+
<form method="post" action="admin.php?page=<?php echo $this->Plugin['slug']?>-modals&modal_id=<?php echo (isset($settings['modal_id'])&&$settings['modal_id']!=''?$settings['modal_id']:'new')?>">
|
39 |
+
<div id="accordion">
|
40 |
+
<h3><a href="#"><?php _e('Modal','easy-modal')?></a></h3>
|
41 |
+
<div>
|
42 |
+
<label for="name"><h4><?php _e('Name','easy-modal')?><span class="desc"><?php _e('','easy-modal')?></span></h4></label>
|
43 |
+
<input type="text" id="name" name="name" value="<?php echo $settings['name'];?>" />
|
44 |
+
|
45 |
+
<label for="title"><h4><?php _e('Title','easy-modal')?><span class="desc"><?php _e('The title that appears in the modal window.','easy-modal')?></span></h4></label>
|
46 |
+
<input type="text" id="title" name="title" value="<?php echo $settings['title'];?>" />
|
47 |
+
|
48 |
+
<label for="content"><h4><?php _e('Content','easy-modal');?><span class="desc"><?php _e('Modal content. Can contain shortcodes.','easy-modal')?></span></h4></label>
|
49 |
+
<textarea id="content" name="content" style="width: 100%; height: auto;"><?php echo $settings['content']?></textarea>
|
50 |
+
<div class="submit">
|
51 |
+
<input type="submit" name="update_settings" class="button-primary" value="<?php _e('Save Settings','easy-modal')?>" />
|
52 |
+
</div>
|
53 |
+
</div>
|
54 |
+
<h3><a href="#"><?php _e('Size Options','easy-modal')?></a></h3>
|
55 |
+
<div>
|
56 |
+
<input type="hidden" name="type" value="1"/>
|
57 |
+
<div style="display:block; position:relative; clear:both; overflow:auto;">
|
58 |
+
<div style="float:left; margin-right:10px;">
|
59 |
+
<label for="userHeight"><h4><?php _e('Height','easy-modal')?></h4></label>
|
60 |
+
<input type="text" id="userHeight" name="userHeight "size="5" value="<?php echo $settings['userHeight'];?>" />px
|
61 |
+
</div>
|
62 |
+
<div style="float:left">
|
63 |
+
<label for="userWidth"><h4><?php _e('Width','easy-modal')?></h4></label>
|
64 |
+
<input type="text" id="userWidth" name="userWidth" size="5"value="<?php echo $settings['userWidth'];?>" />px
|
65 |
+
</div>
|
66 |
+
</div>
|
67 |
+
<label for="userMaxHeight"><h4><?php _e('Max Height','easy-modal')?></h4></label>
|
68 |
+
<div id="userMaxHeightSlider" style="width:100px;margin:8px;float:left;"></div>
|
69 |
+
<input type="text" id="userMaxHeight" name="userMaxHeight" size="3" value="<?php echo $settings['userMaxHeight'];?>" />%
|
70 |
+
<label for="userMaxWidth"><h4><?php _e('Max Width','easy-modal')?></h4></label>
|
71 |
+
<div id="userMaxWidthSlider" style="width:100px;margin:8px;float:left;"></div>
|
72 |
+
<input type="text" id="userMaxWidth" name="userMaxWidth" size="3" value="<?php echo $settings['userMaxWidth'];?>" />%
|
73 |
+
<div class="submit">
|
74 |
+
<input type="submit" name="update_settings" class="button-primary" value="<?php _e('Save Settings','easy-modal')?>" />
|
75 |
+
</div>
|
76 |
+
</div>
|
77 |
+
<h3><a href="#"><?php _e('Additional Settings','easy-modal')?></a></h3>
|
78 |
+
<div>
|
79 |
+
<label for="overlayClose"><h4><?php _e('Click Overlay to Close','easy-modal')?></h4></label>
|
80 |
+
<p class="field switch" style="clear:both; overflow:auto; display:block;">
|
81 |
+
<label class="cb-enable"><span>On</span></label>
|
82 |
+
<label class="cb-disable selected"><span>Off</span></label>
|
83 |
+
<input type="checkbox" class="checkbox" id="overlayClose" name="overlayClose" value="true" <?php echo $settings['overlayClose'] == 'true' ? 'checked="checked"' : '' ?> />
|
84 |
+
</p>
|
85 |
+
<label for="overlayEscClose"><h4><?php _e('ESC Key to Close Overlay','easy-modal')?></h4></label>
|
86 |
+
<p class="field switch" style="clear:both; overflow:auto; display:block;">
|
87 |
+
<label class="cb-enable"><span>On</span></label>
|
88 |
+
<label class="cb-disable selected"><span>Off</span></label>
|
89 |
+
<input type="checkbox" class="checkbox" id="overlayEscClose" name="overlayEscClose" value="true" <?php echo $settings['overlayEscClose'] == 'true' ? 'checked="checked"' : '' ?> />
|
90 |
+
</p>
|
91 |
+
<div class="submit">
|
92 |
+
<input type="submit" name="update_settings" class="button-primary" value="<?php _e('Save Settings','easy-modal')?>" />
|
93 |
+
</div>
|
94 |
+
</div>
|
95 |
+
<h3><a href="#"><?php _e('Usage Example','easy-modal')?></a></h3>
|
96 |
+
<div>
|
97 |
+
<h4><?php _e('Copy this class to the link/button you want to open this modal.','easy-modal')?><span class="desc">eModal-<?php echo $settings['modal_id']?></span></h4>
|
98 |
+
<h4>Link Example</h4>
|
99 |
+
<a href="#" onclick="return false;" class="eModal-<?php echo $settings['modal_id']?>">Open Modal</a>
|
100 |
+
<pre><a href="#" class="eModal-<?php echo $settings['modal_id']?>">Open Modal</a></pre>
|
101 |
+
<h4>Button Example</h4>
|
102 |
+
<button onclick="return false;" class="eModal-<?php echo $settings['modal_id']?>">Open Modal</button>
|
103 |
+
<pre><button class="eModal-<?php echo $settings['modal_id']?>">Open Modal</button></pre>
|
104 |
+
<h4>Image Example</h4>
|
105 |
+
<img style="cursor:pointer;" src="http://www.truthunity.net/sites/all/content/graphics/ministry-click-me-button.jpg" width="75" onclick="return false;" class="eModal-<?php echo $settings['modal_id']?>" />
|
106 |
+
<pre><img src="ministry-click-me-button.jpg" class="eModal-<?php echo $settings['modal_id']?>" /></pre>
|
107 |
+
</div>
|
108 |
+
</div>
|
109 |
+
</form><?php
|
110 |
+
}
|
111 |
+
else
|
112 |
+
{
|
113 |
+
$modals = $this->getModalList();
|
114 |
+
?><h2>Easy Modal Modals<a class="add-new-h2" href="admin.php?page=<?php echo $this->Plugin['slug']?>-modals&modal_id=new">Add New</a></h2><?php
|
115 |
+
if( $modals && count($modals) > 0 )
|
116 |
+
{
|
117 |
+
?><table>
|
118 |
+
<thead>
|
119 |
+
<th>Name</th>
|
120 |
+
</thead>
|
121 |
+
<tbody><?php
|
122 |
+
foreach($modals as $id => $name)
|
123 |
+
{
|
124 |
+
echo '<tr><td><a href="admin.php?page='. $this->Plugin['slug']. '-modals&modal_id='.$id.'">'.ucfirst($name).'</a></td></tr>';
|
125 |
+
}
|
126 |
+
?></tbody>
|
127 |
+
</table><?php
|
128 |
+
}
|
129 |
+
else
|
130 |
+
{
|
131 |
+
?><p>To get started click the "add new" button above</p><?php
|
132 |
+
}
|
133 |
+
}
|
134 |
+
?></div>
|
inc/settings.php
ADDED
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div class="wrap"><?php
|
2 |
+
if($_POST)
|
3 |
+
{
|
4 |
+
$settings = $this->updateSettings( $_POST );
|
5 |
+
?><div class="updated"><strong><?php _e('Settings Updated','easy-modal')?>.</strong></div><?php
|
6 |
+
}
|
7 |
+
else
|
8 |
+
{
|
9 |
+
$settings = $this->getSettings();
|
10 |
+
}
|
11 |
+
?><form method="post" action="admin.php?page=<?php echo $this->Plugin['slug']?>-settings">
|
12 |
+
<div class="error">
|
13 |
+
<p>If you purchased the Pro version and havent already recieved a key please email us at <a href="mailto:danieliser@wizardinternetsolutions.com">danieliser@wizardinternetsolutions.com</a></p>
|
14 |
+
</div>
|
15 |
+
<div>
|
16 |
+
<h3><?php _e('Settings','easy-modal')?></h3>
|
17 |
+
<div id="accordion">
|
18 |
+
<h4><a href="#"><?php _e('License','easy-modal')?></a></h4>
|
19 |
+
<div>
|
20 |
+
<div>
|
21 |
+
<label for="license"><h4><?php _e('License Key','easy-modal')?></h4></label><?php
|
22 |
+
$license_status = get_option('EasyModal_License_Status');
|
23 |
+
$valid = $license_status['status']===200 ? true : false;?>
|
24 |
+
<input <?php echo $valid ? 'style="background-color:#0f0;border-color:#090;"' : '' ?> type="text" id="license" name="license" value="<?php echo get_option('EasyModal_License')?>"/>
|
25 |
+
<?php echo isset($license_status['message']) ? $license_status['message'] : ''?>
|
26 |
+
</div>
|
27 |
+
<div class="submit">
|
28 |
+
<input type="submit" name="update_settings" class="button-primary" value="<?php _e('Save Settings','easy-modal')?>" />
|
29 |
+
</div>
|
30 |
+
</div>
|
31 |
+
<h3><a href="#"><?php _e('Usage Example','easy-modal')?></a></h3>
|
32 |
+
<div>
|
33 |
+
<h4><?php _e('Copy the class to the link/button you want to open this modal.','easy-modal')?><span class="desc">Will start with eModal- and end with a # of the modal you want to open.</span></h4>
|
34 |
+
<h4>Link Example</h4>
|
35 |
+
<a href="#" onclick="return false;" class="eModal-1">Open Modal</a>
|
36 |
+
<pre><a href="#" class="eModal-1">Open Modal</a></pre>
|
37 |
+
<h4>Button Example</h4>
|
38 |
+
<button onclick="return false;" class="eModal-1">Open Modal</button>
|
39 |
+
<pre><button class="eModal-1">Open Modal</button></pre>
|
40 |
+
<h4>Image Example</h4>
|
41 |
+
<img style="cursor:pointer;" src="http://www.truthunity.net/sites/all/content/graphics/ministry-click-me-button.jpg" width="75" onclick="return false;" class="eModal-1" />
|
42 |
+
<pre><img src="ministry-click-me-button.jpg" class="eModal-1" /></pre>
|
43 |
+
</div>
|
44 |
+
</div>
|
45 |
+
</div>
|
46 |
+
</form>
|
47 |
+
</div>
|
inc/themes.php
ADDED
@@ -0,0 +1,323 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div class="wrap"><?php
|
2 |
+
if($_POST)
|
3 |
+
{
|
4 |
+
$settings = $this->updateThemeSettings( 1, $_POST );
|
5 |
+
?><div class="updated"><strong><?php _e('Settings Updated','easy-modal')?>.</strong></div><?php
|
6 |
+
}
|
7 |
+
else
|
8 |
+
{
|
9 |
+
$settings = $this->getThemeSettings(1);
|
10 |
+
}
|
11 |
+
global $wp;
|
12 |
+
$borderTypes = array(
|
13 |
+
'solid' => 'Solid',
|
14 |
+
'dotted' => 'Dotted',
|
15 |
+
'double' => 'Double'
|
16 |
+
);
|
17 |
+
$fontFamilys = array(
|
18 |
+
'Sans-Serif'=>'Sans-Serif',
|
19 |
+
'Tahoma' => 'Tahoma',
|
20 |
+
'Georgia' => 'Georgia',
|
21 |
+
'Comic Sans MS' => 'Comic Sans MS',
|
22 |
+
'Arial' => 'Arial',
|
23 |
+
'Lucida Grande' => 'Lucida Grande',
|
24 |
+
'Times New Roman' => 'Times New Roman'
|
25 |
+
);
|
26 |
+
$closePositions = array(
|
27 |
+
'topleft' => 'Top Left',
|
28 |
+
'topright' => 'Top Right',
|
29 |
+
'bottomleft' => 'Bottom Left',
|
30 |
+
'bottomright' => 'Bottom Right'
|
31 |
+
);
|
32 |
+
?><form method="post" action="admin.php?page=<?php echo $this->Plugin['slug']?>-themes&theme_id=<?php echo 1?>">
|
33 |
+
<h2>
|
34 |
+
<?php echo ucfirst($settings['name']).' '; _e('Theme','easy-modal')?>
|
35 |
+
</h2>
|
36 |
+
<div class="emthemes">
|
37 |
+
<div id="accordion">
|
38 |
+
<h3><a href="#"><?php _e('Theme Options','easy-modal')?></a></h3>
|
39 |
+
<div id="themeOptions">
|
40 |
+
<table>
|
41 |
+
<tr class="odd">
|
42 |
+
<th>
|
43 |
+
<label for="theme"><h4><?php _e('Theme Name', 'easy-modal');?></h4></label>
|
44 |
+
</th>
|
45 |
+
<td>
|
46 |
+
<input type="text" name="name" id="name" value="<?php echo $settings['name']?>"/>
|
47 |
+
<span class="description"><?php //_e('Choose the overlay color.','easy-modal')?></span>
|
48 |
+
</td>
|
49 |
+
</tr>
|
50 |
+
</table>
|
51 |
+
</div>
|
52 |
+
<h3><a href="#"><?php _e('Overlay','easy-modal')?></a></h3>
|
53 |
+
<div id="overlayOptions">
|
54 |
+
<table>
|
55 |
+
<tr class="odd">
|
56 |
+
<th>
|
57 |
+
<label for="overlayColor"><h4><?php _e('Overlay Color', 'easy-modal');?></h4></label>
|
58 |
+
</th>
|
59 |
+
<td>
|
60 |
+
<input type="text" name="overlayColor" id="overlayColor" value="<?php echo $settings['overlayColor']?>" class="colorSelect" style="background-color:<?php echo $settings['overlayColor']?>" />
|
61 |
+
<span class="description"><?php //_e('Choose the overlay color.','easy-modal')?></span>
|
62 |
+
</td>
|
63 |
+
</tr>
|
64 |
+
<tr>
|
65 |
+
<th>
|
66 |
+
<label for="overlayOpacity"><h4><?php _e('Opacity', 'easy-modal');?></h4></label>
|
67 |
+
</th>
|
68 |
+
<td>
|
69 |
+
<div id="overlayOpacitySlider" style="width:65%; float:left; display:inline-block;"></div><div style="display:inline-block; float:right; font-weight:bold;"><span id="overlayOpacityValue"><?php echo $settings['overlayOpacity']?></span>%</div>
|
70 |
+
<input type="hidden" id="overlayOpacity" name="overlayOpacity" size="20" value="<?php echo $settings['overlayOpacity']?>"/>
|
71 |
+
<span class="description"><?php //_e('The opacity value for the overlay, from 0 - 100.','easy-modal')?></span>
|
72 |
+
</td>
|
73 |
+
</tr>
|
74 |
+
</table>
|
75 |
+
</div>
|
76 |
+
<h3><a href="#"><?php _e('Close Button','easy-modal')?></a></h3>
|
77 |
+
<div id="closeOptions">
|
78 |
+
<table>
|
79 |
+
<tr class="odd">
|
80 |
+
<th>
|
81 |
+
<label for="closeBgColor"><h4><?php _e('Background Color', 'easy-modal');?></h4></label>
|
82 |
+
</th>
|
83 |
+
<td>
|
84 |
+
<input type="text" name="closeBgColor" id="closeBgColor" value="<?php echo $settings['closeBgColor']?>" class="colorSelect" style="background-color:<?php echo $settings['closeBgColor']?>" />
|
85 |
+
<span class="description"><?php //_e('The Presenter\'s WordPress User ID'); ?></span>
|
86 |
+
</td>
|
87 |
+
</tr>
|
88 |
+
<tr>
|
89 |
+
<th>
|
90 |
+
<label for="closeFontColor"><h4><?php _e('Font Color', 'easy-modal');?></h4></label>
|
91 |
+
</th>
|
92 |
+
<td>
|
93 |
+
<input type="text" name="closeFontColor" id="closeFontColor" value="<?php echo $settings['closeFontColor']?>" class="colorSelect" style="background-color:<?php echo $settings['closeFontColor']?>" />
|
94 |
+
<span class="description"><?php //_e('The Presenter\'s WordPress User ID'); ?></span>
|
95 |
+
</td>
|
96 |
+
</tr>
|
97 |
+
<tr class="odd">
|
98 |
+
<th>
|
99 |
+
<label for="closeFontSize"><h4><?php _e('Font Size', 'easy-modal');?></h4></label>
|
100 |
+
</th>
|
101 |
+
<td>
|
102 |
+
<div id="closeFontSizeSlider" style="width:65%; float:left; display:inline-block;"></div><div style="display:inline-block; float:right; font-weight:bold;"><span id="closeFontSizeValue"><?php echo $settings['closeFontSize']?></span>px</div>
|
103 |
+
<input type="hidden" name="closeFontSize" id="closeFontSize" value="<?php echo $settings['closeFontSize']?>" />
|
104 |
+
<span class="description"><?php //_e('The opacity value for the overlay, from 0 - 100.','easy-modal')?></span>
|
105 |
+
</td>
|
106 |
+
</tr>
|
107 |
+
<tr>
|
108 |
+
<th>
|
109 |
+
<label for="closeBorderRadius"><h4><?php _e('Border Radius', 'easy-modal');?></h4></label>
|
110 |
+
</th>
|
111 |
+
<td>
|
112 |
+
<div id="closeBorderRadiusSlider" style="width:65%; float:left; display:inline-block;"></div><div style="display:inline-block; float:right; font-weight:bold;"><span id="closeBorderRadiusValue"><?php echo $settings['closeBorderRadius']?></span>px</div>
|
113 |
+
<input type="hidden" id="closeBorderRadius" name="closeBorderRadius" value="<?php echo $settings['closeBorderRadius']?>"/>
|
114 |
+
<span class="description"><?php //_e('The opacity value for the overlay, from 0 - 100.','easy-modal')?></span>
|
115 |
+
</td>
|
116 |
+
</tr>
|
117 |
+
<tr class="odd">
|
118 |
+
<th>
|
119 |
+
<label for="closeSize"><h4><?php _e('Size', 'easy-modal');?></h4></label>
|
120 |
+
</th>
|
121 |
+
<td>
|
122 |
+
<div id="closeSizeSlider" style="width:65%; float:left; display:inline-block;"></div><div style="display:inline-block; float:right; font-weight:bold;"><span id="closeSizeValue"><?php echo $settings['closeSize']?></span>px</div>
|
123 |
+
<input type="hidden" id="closeSize" name="closeSize" value="<?php echo $settings['closeSize']?>"/>
|
124 |
+
<span class="description"><?php //_e('The opacity value for the overlay, from 0 - 100.','easy-modal')?></span>
|
125 |
+
</td>
|
126 |
+
</tr>
|
127 |
+
<tr>
|
128 |
+
<th>
|
129 |
+
<label for="closePosition"><h4><?php _e('Position', 'easy-modal');?></h4></label>
|
130 |
+
</th>
|
131 |
+
<td>
|
132 |
+
<select name="closePosition" id="closePosition"><?php
|
133 |
+
foreach($closePositions as $type => $name){
|
134 |
+
echo '<option value="'.$type.'"'.($type == $settings['closePosition'] ? 'selected="selected"' : '').'>'.$name.'</option>';
|
135 |
+
}?>
|
136 |
+
</select>
|
137 |
+
<span class="description"><?php //_e('The opacity value for the overlay, from 0 - 100.','easy-modal')?></span>
|
138 |
+
</td>
|
139 |
+
</tr>
|
140 |
+
</table>
|
141 |
+
</div>
|
142 |
+
<h3><a href="#"><?php _e('Container','easy-modal')?></a></h3>
|
143 |
+
<div id="containerOptions">
|
144 |
+
<table>
|
145 |
+
<tr class="odd">
|
146 |
+
<th>
|
147 |
+
<label for="containerBgColor"><h4><?php _e('Background Color', 'easy-modal');?></h4></label>
|
148 |
+
</th>
|
149 |
+
<td>
|
150 |
+
<input type="text" name="containerBgColor" id="containerBgColor" value="<?php echo $settings['containerBgColor']?>" class="colorSelect" style="background-color:<?php echo $settings['containerBgColor']?>" />
|
151 |
+
<span class="description"><?php //_e('The Presenter\'s WordPress User ID'); ?></span>
|
152 |
+
</td>
|
153 |
+
</tr>
|
154 |
+
<tr>
|
155 |
+
<th>
|
156 |
+
<label for="containerPadding"><h4><?php _e('Padding', 'easy-modal');?></h4></label>
|
157 |
+
</th>
|
158 |
+
<td>
|
159 |
+
<div id="containerPaddingSlider" style="width:65%; float:left; display:inline-block;"></div><div style="display:inline-block; float:right; font-weight:bold;"><span id="containerPaddingValue"><?php echo $settings['containerPadding']?></span>px</div>
|
160 |
+
<input type="hidden" id="containerPadding" name="containerPadding" width="20" value="<?php echo $settings['containerPadding']?>"/>
|
161 |
+
<span class="description"><?php //_e('The Presenter\'s WordPress User ID'); ?></span>
|
162 |
+
</td>
|
163 |
+
</tr>
|
164 |
+
<tr class="odd">
|
165 |
+
<th>
|
166 |
+
<label for="containerBorderColor"><h4><?php _e('Border Color', 'easy-modal');?></h4></label>
|
167 |
+
</th>
|
168 |
+
<td>
|
169 |
+
<input type="text" name="containerBorderColor" id="containerBorderColor" value="<?php echo $settings['containerBorderColor']?>" class="colorSelect" style="background-color:<?php echo $settings['containerBorderColor']?>" />
|
170 |
+
<span class="description"><?php //_e('The opacity value for the overlay, from 0 - 100.','easy-modal')?></span>
|
171 |
+
</td>
|
172 |
+
</tr>
|
173 |
+
<tr>
|
174 |
+
<th>
|
175 |
+
<label for="containerBorderStyle"><h4><?php _e('Border Style', 'easy-modal');?></h4></label>
|
176 |
+
</th>
|
177 |
+
<td>
|
178 |
+
<select name="containerBorderStyle" id="containerBorderStyle"><?php
|
179 |
+
foreach($borderTypes as $type => $name){
|
180 |
+
echo '<option value="'.$type.'"'.($type == $settings['containerBorderStyle'] ? 'selected="selected"' : '').'>'.$name.'</option>';
|
181 |
+
}?>
|
182 |
+
</select>
|
183 |
+
<span class="description"><?php //_e('The opacity value for the overlay, from 0 - 100.','easy-modal')?></span>
|
184 |
+
</td>
|
185 |
+
</tr>
|
186 |
+
<tr class="odd">
|
187 |
+
<th>
|
188 |
+
<label for="containerBorderWidth"><h4><?php _e('Border Width', 'easy-modal');?></h4></label>
|
189 |
+
</th>
|
190 |
+
<td>
|
191 |
+
<div id="containerBorderWidthSlider" style="width:65%; float:left; display:inline-block;"></div><div style="display:inline-block; float:right; font-weight:bold;"><span id="containerBorderWidthValue"><?php echo $settings['containerBorderWidth']?></span>px</div>
|
192 |
+
<input type="hidden" id="containerBorderWidth" name="containerBorderWidth" value="<?php echo $settings['containerBorderWidth']?>"/>
|
193 |
+
<span class="description"><?php //_e('The opacity value for the overlay, from 0 - 100.','easy-modal')?></span>
|
194 |
+
</td>
|
195 |
+
</tr>
|
196 |
+
<tr>
|
197 |
+
<th>
|
198 |
+
<label for="containerBorderRadius"><h4><?php _e('Border Radius', 'easy-modal');?></h4></label>
|
199 |
+
</th>
|
200 |
+
<td>
|
201 |
+
<div id="containerBorderRadiusSlider" style="width:65%; float:left; display:inline-block;"></div><div style="display:inline-block; float:right; font-weight:bold;"><span id="containerBorderRadiusValue"><?php echo $settings['containerBorderRadius']?></span>px</div>
|
202 |
+
<input type="hidden" id="containerBorderRadius" name="containerBorderRadius" value="<?php echo $settings['containerBorderRadius']?>"/>
|
203 |
+
<span class="description"><?php //_e('The opacity value for the overlay, from 0 - 100.','easy-modal')?></span>
|
204 |
+
</td>
|
205 |
+
</tr>
|
206 |
+
</table>
|
207 |
+
</div>
|
208 |
+
<h3><a href="#"><?php _e('Content','easy-modal')?></a></h3>
|
209 |
+
<div id="contentOptions">
|
210 |
+
<table>
|
211 |
+
<tr class="odd">
|
212 |
+
<th>
|
213 |
+
<label for="contentTitleFontColor"><h4><?php _e('Title Color', 'easy-modal');?></h4></label>
|
214 |
+
</th>
|
215 |
+
<td>
|
216 |
+
<input type="text" name="contentTitleFontColor" id="contentTitleFontColor" value="<?php echo $settings['contentTitleFontColor']?>" class="colorSelect" style="background-color:<?php echo $settings['contentTitleFontColor']?>" />
|
217 |
+
<span class="description"><?php //_e('The opacity value for the overlay, from 0 - 100.','easy-modal')?></span>
|
218 |
+
</td>
|
219 |
+
</tr>
|
220 |
+
<tr>
|
221 |
+
<th>
|
222 |
+
<label for="contentTitleFontSize"><h4><?php _e('Title Font Size', 'easy-modal');?></h4></label>
|
223 |
+
</th>
|
224 |
+
<td>
|
225 |
+
<div id="contentTitleFontSizeSlider" style="width:65%; float:left; display:inline-block;"></div><div style="display:inline-block; float:right; font-weight:bold;"><span id="contentTitleFontSizeValue"><?php echo $settings['contentTitleFontSize']?></span>px</div>
|
226 |
+
<input type="hidden" name="contentTitleFontSize" id="contentTitleFontSize" value="<?php echo $settings['contentTitleFontSize']?>" />
|
227 |
+
<span class="description"><?php //_e('The opacity value for the overlay, from 0 - 100.','easy-modal')?></span>
|
228 |
+
</td>
|
229 |
+
</tr>
|
230 |
+
<tr class="odd">
|
231 |
+
<th>
|
232 |
+
<label for="contentTitleFontFamily"><h4><?php _e('Title Font Family', 'easy-modal');?></h4></label>
|
233 |
+
</th>
|
234 |
+
<td>
|
235 |
+
<select name="contentTitleFontFamily" id="contentTitleFontFamily"><?php
|
236 |
+
foreach($fontFamilys as $type => $name){
|
237 |
+
echo '<option value="'.$type.'"'.($type == $settings['contentTitleFontFamily'] ? 'selected="selected"' : '').'>'.$name.'</option>';
|
238 |
+
}?>
|
239 |
+
</select>
|
240 |
+
<span class="description"><?php //_e('The opacity value for the overlay, from 0 - 100.','easy-modal')?></span>
|
241 |
+
</td>
|
242 |
+
</tr>
|
243 |
+
<tr>
|
244 |
+
<th>
|
245 |
+
<label for="contentFontColor"><h4><?php _e('Font Color', 'easy-modal');?></h4></label>
|
246 |
+
</th>
|
247 |
+
<td>
|
248 |
+
<input type="text" name="contentFontColor" id="contentFontColor" value="<?php echo $settings['contentFontColor']?>" class="colorSelect" style="background-color:<?php echo $settings['contentFontColor']?>" />
|
249 |
+
<span class="description"><?php //_e('The opacity value for the overlay, from 0 - 100.','easy-modal')?></span>
|
250 |
+
</td>
|
251 |
+
</tr>
|
252 |
+
</table>
|
253 |
+
</div>
|
254 |
+
</div>
|
255 |
+
<div class="submit" style="clear:both; overflow:auto;">
|
256 |
+
<input type="submit" name="update_settings" class="button-primary" value="<?php _e('Save Settings','easy-modal')?>" />
|
257 |
+
</div>
|
258 |
+
</div>
|
259 |
+
|
260 |
+
<div class="empreview">
|
261 |
+
|
262 |
+
<div id="eModal-Preview">
|
263 |
+
<div id="eModal-Overlay" style="background-color:<?php echo $settings['overlayColor']?>;opacity:<?php echo intval($settings['overlayOpacity'])/100 ?>;"></div>
|
264 |
+
<h2><?php _e('eModal Theme Preview','easy-modal')?></h2>
|
265 |
+
<div id="eModal-Container" style="
|
266 |
+
background-color:<?php echo $settings['containerBgColor']?>;
|
267 |
+
padding:<?php echo $settings['containerPadding']?>px;
|
268 |
+
border:<?php echo $settings['containerBorderColor']?> <?php echo $settings['containerBorderWidth'].'px'?> <?php echo $settings['containerBorderStyle']?>;
|
269 |
+
-moz-border-radius:<?php echo $settings['containerBorderRadius']?>px;
|
270 |
+
-webkit-border-radius:<?php echo $settings['containerBorderRadius']?>px;
|
271 |
+
border-radius:<?php echo $settings['containerBorderRadius']?>px;
|
272 |
+
behavior: 'url(<?php echo get_bloginfo('wpurl').'/'.$this->Plugin['dir']?>/themes/PIE.htc)';
|
273 |
+
color:<?php echo $settings['contentFontColor']?>;
|
274 |
+
">
|
275 |
+
<a id="eModal-Close" href="#close" style="
|
276 |
+
background-color:<?php echo $settings['closeBgColor']?>;
|
277 |
+
color:<?php echo $settings['closeFontColor']?>;
|
278 |
+
font-size:<?php echo $settings['closeFontSize']?>px;
|
279 |
+
-moz-border-radius:<?php echo $settings['closeBorderRadius']?>px;
|
280 |
+
-webkit-border-radius:<?php echo $settings['closeBorderRadius']?>px;
|
281 |
+
border-radius:<?php echo $settings['closeBorderRadius']?>px;
|
282 |
+
width:<?php echo $settings['closeSize']?>px;
|
283 |
+
height:<?php echo $settings['closeSize']?>px;
|
284 |
+
line-height:<?php echo $settings['closeSize']?>px;
|
285 |
+
<?php
|
286 |
+
$size = 0-($settings['closeSize']/2).'px';
|
287 |
+
$top = $left = $bottom = $right = 'auto';
|
288 |
+
switch($settings['closePosition'])
|
289 |
+
{
|
290 |
+
case 'topleft':
|
291 |
+
$top = $size;
|
292 |
+
$left = $size;
|
293 |
+
break;
|
294 |
+
case 'topright':
|
295 |
+
$top = $size;
|
296 |
+
$right = $size;
|
297 |
+
break;
|
298 |
+
case 'bottomleft':
|
299 |
+
$left = $size;
|
300 |
+
$bottom = $size;
|
301 |
+
break;
|
302 |
+
case 'bottomright':
|
303 |
+
$right = $size;
|
304 |
+
$bottom = $size;
|
305 |
+
break;
|
306 |
+
}
|
307 |
+
?>
|
308 |
+
top: <?php echo $top?>;
|
309 |
+
bottom: <?php echo $bottom?>;
|
310 |
+
left: <?php echo $left?>;
|
311 |
+
right: <?php echo $right?>;
|
312 |
+
">X</a>
|
313 |
+
<h1 id="eModal-Title" style="
|
314 |
+
color:<?php echo $settings['contentTitleFontColor']?>;
|
315 |
+
font-family:<?php echo $settings['contentTitleFontFamily']?>;
|
316 |
+
font-size:<?php echo $settings['contentTitleFontSize']?>px;
|
317 |
+
">Title Text</h1>
|
318 |
+
<p>Suspendisse ipsum eros, tincidunt sed commodo ut, viverra vitae ipsum. Etiam non porta neque. Pellentesque nulla elit, aliquam in ullamcorper at, bibendum sed eros. Morbi non sapien tellus, ac vestibulum eros. In hac habitasse platea dictumst. Nulla vestibulum, diam vel porttitor placerat, eros tortor ultrices lectus, eget faucibus arcu justo eget massa. Maecenas id tellus vitae justo posuere hendrerit aliquet ut dolor.</p>
|
319 |
+
</div>
|
320 |
+
</div>
|
321 |
+
</div>
|
322 |
+
</form>
|
323 |
+
</div>
|
includes/easy-modal.class.php
DELETED
@@ -1,271 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Easy Modal
|
4 |
-
* http://wizardinternetsolutions.com/project/easy-modal/
|
5 |
-
*/
|
6 |
-
global $wp, $cur_ver;
|
7 |
-
|
8 |
-
if ( ! function_exists( 'get_plugin_data' ) )
|
9 |
-
|
10 |
-
require_once( ABSPATH . 'wp-admin/includes/plugin.php' );
|
11 |
-
|
12 |
-
$plugininfo=get_plugin_data($pluginFILE);
|
13 |
-
|
14 |
-
$cur_ver = $plugininfo['Version'];
|
15 |
-
|
16 |
-
class easy_modal {
|
17 |
-
var $adminOptionsName = "EasyModal";
|
18 |
-
|
19 |
-
function easy_modal(){
|
20 |
-
// Install & Uninstall Routines
|
21 |
-
register_activation_hook(__FILE__, array(&$this, 'install'));
|
22 |
-
register_deactivation_hook(__FILE__, array(&$this, 'uninstall'));
|
23 |
-
}
|
24 |
-
function install(){
|
25 |
-
$this->resetAdminOptions();
|
26 |
-
}
|
27 |
-
function uninstall(){
|
28 |
-
|
29 |
-
}
|
30 |
-
//Returns an array of admin options
|
31 |
-
function defaultModalOptions(){
|
32 |
-
$settings = array(
|
33 |
-
'title' => '',
|
34 |
-
'content' => '',
|
35 |
-
'cf7form' => false
|
36 |
-
);
|
37 |
-
return $settings;
|
38 |
-
}
|
39 |
-
|
40 |
-
function getModalList(){
|
41 |
-
$return = get_option($this->adminOptionsName);
|
42 |
-
if(is_array($return)){
|
43 |
-
return $return;
|
44 |
-
} else {
|
45 |
-
return unserialize($return);
|
46 |
-
}
|
47 |
-
}
|
48 |
-
|
49 |
-
|
50 |
-
function getAdminOptions($modalId){
|
51 |
-
$settings = $this->defaultModalOptions();
|
52 |
-
$eMOptions = get_option($this->adminOptionsName.'_'.$modalId);
|
53 |
-
if (!is_array($eMOptions)) {
|
54 |
-
$eMOptions = unserialize($eMOptions);
|
55 |
-
}
|
56 |
-
foreach ($eMOptions as $key => $option)
|
57 |
-
$settings[$key] = $option;
|
58 |
-
|
59 |
-
update_option($this->adminOptionsName.'_'.$modalId, serialize($settings));
|
60 |
-
|
61 |
-
return $settings;
|
62 |
-
|
63 |
-
}
|
64 |
-
function deleteModal($modalId){
|
65 |
-
$modals = $this->getModalList();
|
66 |
-
foreach($modals as $key => $value){
|
67 |
-
if ($modalId == $value) unset($modals[$key]);
|
68 |
-
}
|
69 |
-
update_option($this->adminOptionsName, serialize($modals));
|
70 |
-
delete_option($this->adminOptionsName.'_'.$modalId);
|
71 |
-
return true;
|
72 |
-
}
|
73 |
-
function addNewModal($modalId){
|
74 |
-
$modals = $this->getModalList();
|
75 |
-
$modals = array_merge($modals,array($modalId));
|
76 |
-
update_option($this->adminOptionsName, serialize($modals));
|
77 |
-
$settings = $this->defaultModalOptions();
|
78 |
-
update_option($this->adminOptionsName.'_'.$modalId, serialize($settings));
|
79 |
-
}
|
80 |
-
|
81 |
-
function enqueue_settings(){
|
82 |
-
$modals = $this->getModalList();
|
83 |
-
$settings = array();
|
84 |
-
foreach($modals as $key => $value){
|
85 |
-
$setting = $this->getAdminOptions($value);
|
86 |
-
$settings[$value] = array(
|
87 |
-
"requestData" => array(
|
88 |
-
"modalId" => $value,
|
89 |
-
"action" => "easy_modal"
|
90 |
-
),
|
91 |
-
"cf7form" => $setting['cf7form']
|
92 |
-
);
|
93 |
-
}
|
94 |
-
return $settings;
|
95 |
-
}
|
96 |
-
|
97 |
-
function resetAdminOptions() {
|
98 |
-
update_option($this->adminOptionsName, serialize(array('1')));
|
99 |
-
update_option($this->adminOptionsName.'_1', serialize($this->defaultModalOptions()));
|
100 |
-
}
|
101 |
-
// Plugin Initialization
|
102 |
-
function init() {
|
103 |
-
global $cur_ver;
|
104 |
-
// Erase Settings For versions older than 0.9.0.4
|
105 |
-
if(!get_option('eM_version')) $overwrite = true;
|
106 |
-
if(version_compare(get_option('eM_version'),$cur_ver, '<')) $overwrite = true;
|
107 |
-
if($cur_ver == '1.0.2' || $cur_ver == '1.0.1' || $cur_ver == '1.0.0') $overwrite = true;
|
108 |
-
if($overwrite == true) $this->resetAdminOptions();
|
109 |
-
update_option('eM_version', $cur_ver);
|
110 |
-
}
|
111 |
-
//Prints out the admin page
|
112 |
-
function display_emodal_option($modalId, $new = true){
|
113 |
-
if($new == true){
|
114 |
-
$settings = $this->defaultModalOptions();
|
115 |
-
$this->addNewModal($modalId);
|
116 |
-
} else {
|
117 |
-
$settings = $this->getAdminOptions($modalId);
|
118 |
-
}
|
119 |
-
|
120 |
-
ob_start(); ?>
|
121 |
-
|
122 |
-
<form id="eModal-<?php echo $modalId ?>" method="post" action="options-general.php?page=easy-modal.php">
|
123 |
-
|
124 |
-
|
125 |
-
<div class="postbox full">
|
126 |
-
|
127 |
-
<h3><?php _e('Modal','easy-modal')?></h3>
|
128 |
-
<div class="inside">
|
129 |
-
<input type="hidden" name="modalId" value="<?php echo $modalId ?>" />
|
130 |
-
<div class="shortcode">
|
131 |
-
<label for="code_to_copy"><h4><?php _e('Code To Copy','easy-modal')?></h4><span class="description"><?php _e('Add these css classes to just about any html element.','easy-modal')?></span></label>
|
132 |
-
<input type="text" id="code_to_copy" value="eModal eModal-<?php echo $modalId?>" />
|
133 |
-
</div>
|
134 |
-
<label for="eM_title"><h4><?php _e('Title','easy-modal')?></h4><span class="description"><?php _e('The title that appears in the modal window.','easy-modal')?></span></label>
|
135 |
-
<input type="text" id="eM_title" name="eM_title" value="<?php echo $settings['title'];?>" />
|
136 |
-
<label for="eM_content"><h4><?php _e('Content','easy-modal');?></h4><span class="description"><?php _e('Modal content. Can contain shortcodes.','easy-modal')?></span></label>
|
137 |
-
<textarea id="eM_content" name="eM_content" style="width: 100%; height: auto;"><?php echo $settings['content']?></textarea>
|
138 |
-
|
139 |
-
<div class="submit">
|
140 |
-
<input type="submit" name="update_eM_settings" class="button-primary" value="<?php _e('Save Settings','easy-modal')?>" />
|
141 |
-
</div>
|
142 |
-
|
143 |
-
</div>
|
144 |
-
|
145 |
-
</div>
|
146 |
-
|
147 |
-
<a class="delete_modal"><?php _e('Delete This Modal','easy-modal')?></a>
|
148 |
-
</form>
|
149 |
-
<?php
|
150 |
-
$output = ob_get_contents();
|
151 |
-
ob_end_clean();
|
152 |
-
return $output;
|
153 |
-
}
|
154 |
-
|
155 |
-
function printAdminPage() {
|
156 |
-
|
157 |
-
if (isset($_POST['update_eM_settings'])) {
|
158 |
-
|
159 |
-
$_POST = stripslashes_deep($_POST);
|
160 |
-
extract($_POST);
|
161 |
-
$settings = $this->getAdminOptions($_POST['modalId']);
|
162 |
-
if (isset($eM_title)) {
|
163 |
-
$settings['title'] = apply_filters('content_save_pre', $eM_title);
|
164 |
-
}
|
165 |
-
if (isset($eM_content)) {
|
166 |
-
if(strstr($eM_content,'[contact-form')!= NULL){ $settings['cf7form'] = true; }
|
167 |
-
else { $settings['cf7form'] = false; }
|
168 |
-
$settings['content'] = $eM_content;
|
169 |
-
}
|
170 |
-
|
171 |
-
|
172 |
-
if (isset($eM_overlayColor)) {
|
173 |
-
//hex color is valid
|
174 |
-
if(preg_match('/^#[a-f0-9]{6}$/i', $eM_overlayColor)){
|
175 |
-
$settings['overlayColor'] = $eM_overlayColor;
|
176 |
-
}
|
177 |
-
}
|
178 |
-
if (isset($eM_opacity)) {
|
179 |
-
if ($eM_opacity>= 0 && $eM_opacity<=100){
|
180 |
-
$settings['opacity'] = $eM_opacity;
|
181 |
-
}
|
182 |
-
}
|
183 |
-
if (isset($eM_overlayClose)) {
|
184 |
-
$settings['overlayClose'] = $eM_overlayClose;
|
185 |
-
}
|
186 |
-
update_option($this->adminOptionsName.'_'.$modalId, serialize($settings));?>
|
187 |
-
|
188 |
-
<div class="updated"><strong><?php _e('Settings Updated','easy-modal')?>.</strong></div><?php
|
189 |
-
} ?>
|
190 |
-
<div id="poststuff" class="metabox-holder has-right-sidebar wrap">
|
191 |
-
<div id="side-info-column" class="inner-sidebar">
|
192 |
-
<a href="">Click to donate</a>
|
193 |
-
</div>
|
194 |
-
<div id="post-body">
|
195 |
-
<div id="post-body-content">
|
196 |
-
<h2><?php _e('Easy Modal','easy-modal')?></h2>
|
197 |
-
<?php
|
198 |
-
$modals = $this->getModalList();
|
199 |
-
$count = 0;
|
200 |
-
foreach($modals as $key => $modal){
|
201 |
-
$tabs .= '<li><a href="#eModal-'.$modal.'">eModal-'.$modal.'</a></li>';
|
202 |
-
$panels .= $this->display_emodal_option($modal,false);
|
203 |
-
if(intval($modal) > $count) $count = intval($modal);
|
204 |
-
}
|
205 |
-
?>
|
206 |
-
<button id="addModal">Add New Modal</button>
|
207 |
-
<input type="hidden" name="count" value="<?php echo $count; ?>" />
|
208 |
-
<div id="tabs" style="padding:10px;">
|
209 |
-
<ul>
|
210 |
-
<?php echo $tabs ?>
|
211 |
-
</ul>
|
212 |
-
<?php echo $panels ?>
|
213 |
-
</div>
|
214 |
-
</div>
|
215 |
-
</div>
|
216 |
-
</div>
|
217 |
-
<script>
|
218 |
-
(function($){
|
219 |
-
$(document).ready(function(){
|
220 |
-
|
221 |
-
var tabs = $("#tabs").tabs({
|
222 |
-
add: function(event, ui) {
|
223 |
-
tabs.tabs('select', '#' + ui.panel.id);
|
224 |
-
}
|
225 |
-
})
|
226 |
-
$('#addModal').click(function(){
|
227 |
-
var modalId = parseInt($('[name=count]').val())+1;
|
228 |
-
$('[name=count]').val(modalId);
|
229 |
-
tabs.tabs("add","#eModal-"+modalId,"eModal-"+modalId);
|
230 |
-
$("#eModal-"+modalId).load("<?php echo admin_url( 'admin-ajax.php')?>",{action:"eModal_Form",modalId:modalId},function(data){
|
231 |
-
|
232 |
-
$(this).find('.delete_modal').click(function(){
|
233 |
-
$(this).delModal();
|
234 |
-
});
|
235 |
-
$(this).find('.shortcode > input').click(function(){
|
236 |
-
$(this).focus().select();
|
237 |
-
});
|
238 |
-
|
239 |
-
});
|
240 |
-
});
|
241 |
-
$.fn.delModal = function(){
|
242 |
-
var modal = $(this).parent().attr('id').split('-');
|
243 |
-
var modalId = modal[1];
|
244 |
-
var del = confirm('Are you sure you want to delete eModal-'+ modalId);
|
245 |
-
if(del){
|
246 |
-
$("#eModal-"+modalId).load("<?php echo admin_url( 'admin-ajax.php')?>",{action:"eModal_Delete_Modal",modalId:modalId},function(data){
|
247 |
-
if(data == 'Deleted'){
|
248 |
-
tabs.tabs("remove","#eModal-"+modalId);
|
249 |
-
}
|
250 |
-
});
|
251 |
-
};
|
252 |
-
};
|
253 |
-
|
254 |
-
$('.delete_modal').each(function(){
|
255 |
-
$(this).click(function(){
|
256 |
-
$(this).delModal();
|
257 |
-
});
|
258 |
-
});
|
259 |
-
$('.shortcode > input').each(function(){
|
260 |
-
$(this).click(function(){
|
261 |
-
$(this).focus().select();
|
262 |
-
});
|
263 |
-
});
|
264 |
-
|
265 |
-
});
|
266 |
-
})(jQuery)
|
267 |
-
</script><?php
|
268 |
-
|
269 |
-
}//End function printAdminPage()
|
270 |
-
}
|
271 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
js/easy-modal.js
DELETED
@@ -1,156 +0,0 @@
|
|
1 |
-
(function ($){
|
2 |
-
|
3 |
-
$.fn.emodal = function(options) {
|
4 |
-
|
5 |
-
var defaults = {
|
6 |
-
url: easymodal.ajaxurl,
|
7 |
-
requestType: 'load',
|
8 |
-
requestData: {},
|
9 |
-
overlayClose: false,
|
10 |
-
buttonClose: true,
|
11 |
-
onLoad: function(){}
|
12 |
-
|
13 |
-
};
|
14 |
-
|
15 |
-
var options = $.extend({},defaults,options);
|
16 |
-
function centerModal(animate){
|
17 |
-
var top = ($(window).height() - $('#eModal-Container').outerHeight() ) / 2;
|
18 |
-
var left = ($(window).width() - $('#eModal-Container').outerWidth() ) / 2;
|
19 |
-
if(animate == true){
|
20 |
-
$('#eModal-Container').animate({
|
21 |
-
'top': top + $(document).scrollTop(),
|
22 |
-
'left': left
|
23 |
-
});
|
24 |
-
} else {
|
25 |
-
$('#eModal-Container').css({
|
26 |
-
'top': top + $(document).scrollTop(),
|
27 |
-
'left': left
|
28 |
-
});
|
29 |
-
}
|
30 |
-
}
|
31 |
-
|
32 |
-
|
33 |
-
var onLoad = function(){
|
34 |
-
$(this).prepend(function(){
|
35 |
-
if(options.buttonClose == true) return $('<a href="#close" id="close">x</a>').click(function(){
|
36 |
-
$('#eModal-Container').fadeOut().remove();
|
37 |
-
$('#eModal-Overlay').fadeOut().remove();
|
38 |
-
return false;
|
39 |
-
});
|
40 |
-
});
|
41 |
-
if(options.onLoad){
|
42 |
-
options.onLoad();
|
43 |
-
}
|
44 |
-
var resizeTimer;
|
45 |
-
$(window, this).resize(function(){
|
46 |
-
clearTimeout(resizeTimer);
|
47 |
-
resizeTimer = setTimeout(function(){
|
48 |
-
centerModal(true);
|
49 |
-
}, 100)
|
50 |
-
});
|
51 |
-
$(this).fadeIn();
|
52 |
-
centerModal();
|
53 |
-
|
54 |
-
if(options.cf7form == true)
|
55 |
-
{
|
56 |
-
$('div.wpcf7 > form').ajaxForm({
|
57 |
-
beforeSubmit: function(formData, jqForm, options) {
|
58 |
-
jqForm.wpcf7ClearResponseOutput();
|
59 |
-
jqForm.find('img.ajax-loader').css({ visibility: 'visible' });
|
60 |
-
return true;
|
61 |
-
},
|
62 |
-
beforeSerialize: function(jqForm, options) {
|
63 |
-
jqForm.find('.wpcf7-use-title-as-watermark.watermark').each(function(i, n) {
|
64 |
-
$(n).val('');
|
65 |
-
});
|
66 |
-
return true;
|
67 |
-
},
|
68 |
-
data: { '_wpcf7_is_ajax_call': 1 },
|
69 |
-
dataType: 'json',
|
70 |
-
success: function(data) {
|
71 |
-
var ro = $(data.into).find('div.wpcf7-response-output');
|
72 |
-
$(data.into).wpcf7ClearResponseOutput();
|
73 |
-
if (data.invalids) {
|
74 |
-
$.each(data.invalids, function(i, n) {
|
75 |
-
$(data.into).find(n.into).wpcf7NotValidTip(n.message);
|
76 |
-
});
|
77 |
-
ro.addClass('wpcf7-validation-errors');
|
78 |
-
}
|
79 |
-
if (data.captcha)
|
80 |
-
$(data.into).wpcf7RefillCaptcha(data.captcha);
|
81 |
-
if (data.quiz)
|
82 |
-
$(data.into).wpcf7RefillQuiz(data.quiz);
|
83 |
-
if (1 == data.spam)
|
84 |
-
ro.addClass('wpcf7-spam-blocked');
|
85 |
-
if (1 == data.mailSent) {
|
86 |
-
$(data.into).find('form').resetForm().clearForm();
|
87 |
-
ro.addClass('wpcf7-mail-sent-ok');
|
88 |
-
if (data.onSentOk)
|
89 |
-
$.each(data.onSentOk, function(i, n) { eval(n) });
|
90 |
-
} else {
|
91 |
-
ro.addClass('wpcf7-mail-sent-ng');
|
92 |
-
}
|
93 |
-
if (data.onSubmit)
|
94 |
-
$.each(data.onSubmit, function(i, n) { eval(n) });
|
95 |
-
$(data.into).find('.wpcf7-use-title-as-watermark.watermark').each(function(i, n) {
|
96 |
-
$(n).val($(n).attr('title'));
|
97 |
-
});
|
98 |
-
ro.append(data.message).slideDown('fast');
|
99 |
-
if(1 == data.mailSent){
|
100 |
-
$('#eModal-Container').fadeOut(4000,function(){$(this).remove();});
|
101 |
-
$('#eModal-Overlay').fadeOut(2000, function(){$(this).remove();});
|
102 |
-
}
|
103 |
-
}
|
104 |
-
});
|
105 |
-
}
|
106 |
-
}
|
107 |
-
|
108 |
-
var openModal = function(e){
|
109 |
-
$('<div id="eModal-Overlay"></div>').css({opacity:.3}).hide().appendTo('body').click(function(){
|
110 |
-
if(options.overlayClose == true){
|
111 |
-
$(this).next().fadeOut().remove();
|
112 |
-
$(this).fadeOut().remove();
|
113 |
-
}
|
114 |
-
}).fadeIn();
|
115 |
-
switch(options.requestType)
|
116 |
-
{
|
117 |
-
case 'load':
|
118 |
-
$('<div id="eModal-Container"></div>').hide().load(options.url, options.requestData, onLoad).appendTo('body');
|
119 |
-
break;
|
120 |
-
}
|
121 |
-
};
|
122 |
-
$(this).click(function(e){
|
123 |
-
e.stopPropagation();
|
124 |
-
openModal();
|
125 |
-
return false;
|
126 |
-
})
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
};
|
131 |
-
|
132 |
-
$(document).ready(function(){
|
133 |
-
|
134 |
-
$('.eModal').each(function(){
|
135 |
-
|
136 |
-
var classes = $(this).attr("class").split(" ");
|
137 |
-
|
138 |
-
for (var i = 0; i < classes.length; i++){
|
139 |
-
|
140 |
-
if ( classes[i].substr(0,7) == "eModal-" ){
|
141 |
-
|
142 |
-
var modalId = classes[i].split("-")[1];
|
143 |
-
break;
|
144 |
-
|
145 |
-
}
|
146 |
-
|
147 |
-
}
|
148 |
-
$(this).emodal(easymodal.settings[modalId]);
|
149 |
-
})
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
})
|
156 |
-
})(jQuery)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
readme.txt
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
=== Easy Modal ===
|
2 |
Contributors: danieliser
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=PQTG2JYUKSLFW
|
4 |
-
Tags: modal, contact form 7, ajax
|
5 |
Requires at least: 3.0.1
|
6 |
-
Tested up to: 3.
|
7 |
-
Stable tag: 1.
|
8 |
|
9 |
This plugin allows you to easily add a Modal window with just about any content including Contact Form 7 using ajax submission.
|
10 |
|
1 |
=== Easy Modal ===
|
2 |
Contributors: danieliser
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=PQTG2JYUKSLFW
|
4 |
+
Tags: modal, contact form 7, ajax, gravity forms, ajax form
|
5 |
Requires at least: 3.0.1
|
6 |
+
Tested up to: 3.5.2
|
7 |
+
Stable tag: 1.1.9
|
8 |
|
9 |
This plugin allows you to easily add a Modal window with just about any content including Contact Form 7 using ajax submission.
|
10 |
|
themes/default/PIE.htc
DELETED
@@ -1,80 +0,0 @@
|
|
1 |
-
<!--
|
2 |
-
PIE: CSS3 rendering for IE
|
3 |
-
Version 1.0beta4
|
4 |
-
http://css3pie.com
|
5 |
-
Dual-licensed for use under the Apache License Version 2.0 or the General Public License (GPL) Version 2.
|
6 |
-
-->
|
7 |
-
<PUBLIC:COMPONENT lightWeight="true">
|
8 |
-
<PUBLIC:ATTACH EVENT="oncontentready" FOR="element" ONEVENT="init()" />
|
9 |
-
<PUBLIC:ATTACH EVENT="ondocumentready" FOR="element" ONEVENT="init()" />
|
10 |
-
<PUBLIC:ATTACH EVENT="ondetach" FOR="element" ONEVENT="cleanup()" />
|
11 |
-
<script type="text/javascript">
|
12 |
-
var doc = element.document;var g=window.PIE;
|
13 |
-
if(!g){g=window.PIE={F:"-pie-",Sa:"Pie",Pa:"pie_",Jb:{TD:1,TH:1}};try{doc.execCommand("BackgroundImageCache",false,true)}catch(L){}g.J=function(){for(var a=4,b=doc.createElement("div"),c=b.getElementsByTagName("i");b.innerHTML="<!--[if gt IE "+ ++a+"]><i></i><![endif]--\>",c[0];);return a}();if(g.J===6)g.F=g.F.replace(/^-/,"");g.Ab=doc.documentMode||g.J;(function(){var a,b=0,c={};g.p={Ga:function(e){if(!a){a=doc.createDocumentFragment();a.namespaces.add("css3vml","urn:schemas-microsoft-com:vml")}return a.createElement("css3vml:"+e)},
|
14 |
-
ta:function(e){return e&&e._pieId||(e._pieId=++b)},fb:function(e){var f,h,j,d,i=arguments;f=1;for(h=i.length;f<h;f++){d=i[f];for(j in d)if(d.hasOwnProperty(j))e[j]=d[j]}return e},Pb:function(e,f,h){var j=c[e],d,i;if(j)Object.prototype.toString.call(j)==="[object Array]"?j.push([f,h]):f.call(h,j);else{i=c[e]=[[f,h]];d=new Image;d.onload=function(){j=c[e]={i:d.width,f:d.height};for(var k=0,m=i.length;k<m;k++)i[k][0].call(i[k][1],j);d.onload=null};d.src=e}}}})();g.ia=function(){this.hb=[];this.Db={}};
|
15 |
-
g.ia.prototype={aa:function(a){var b=g.p.ta(a),c=this.Db,e=this.hb;if(!(b in c)){c[b]=e.length;e.push(a)}},Ma:function(a){a=g.p.ta(a);var b=this.Db;if(a&&a in b){delete this.hb[b[a]];delete b[a]}},Ia:function(){for(var a=this.hb,b=a.length;b--;)a[b]&&a[b]()}};g.ya=new g.ia;g.ya.Tc=function(){var a=this;if(!a.Uc){setInterval(function(){a.Ia()},250);a.Uc=1}};g.G=new g.ia;window.attachEvent("onbeforeunload",function(){g.G.Ia()});g.G.Ea=function(a,b,c){a.attachEvent(b,c);this.aa(function(){a.detachEvent(b,
|
16 |
-
c)})};(function(){function a(){g.za.Ia()}g.za=new g.ia;g.G.Ea(window,"onresize",a)})();(function(){function a(){g.Ra.Ia()}g.Ra=new g.ia;g.G.Ea(window,"onscroll",a);g.za.aa(a)})();(function(){function a(){c=g.Qa.wc()}function b(){if(c){for(var e=0,f=c.length;e<f;e++)g.attach(c[e]);c=0}}var c;g.G.Ea(window,"onbeforeprint",a);g.G.Ea(window,"onafterprint",b)})();g.hd=function(){function a(i){this.V=i}var b=doc.createElement("length-calc"),c=doc.documentElement,e=b.style,f={},h=["mm","cm","in","pt","pc"],
|
17 |
-
j=h.length,d={};e.position="absolute";e.top=e.left="-9999px";for(c.appendChild(b);j--;){b.style.width="100"+h[j];f[h[j]]=b.offsetWidth/100}c.removeChild(b);a.prototype={ib:/(px|em|ex|mm|cm|in|pt|pc|%)$/,vb:function(){var i=this.Lc;if(i===void 0)i=this.Lc=parseFloat(this.V);return i},ab:function(){var i=this.ad;if(!i)i=this.ad=(i=this.V.match(this.ib))&&i[0]||"px";return i},a:function(i,k){var m=this.vb(),l=this.ab();switch(l){case "px":return m;case "%":return m*(typeof k==="function"?k():k)/100;
|
18 |
-
case "em":return m*this.tb(i);case "ex":return m*this.tb(i)/2;default:return m*f[l]}},tb:function(i){var k=i.currentStyle.fontSize;if(k.indexOf("px")>0)return parseFloat(k);else{b.style.width="1em";i.appendChild(b);k=b.offsetWidth;b.parentNode===i&&i.removeChild(b);return k}}};g.k=function(i){return d[i]||(d[i]=new a(i))};return a}();g.Na=function(){function a(f){this.U=f}var b=g.k("50%"),c={top:1,center:1,bottom:1},e={left:1,center:1,right:1};a.prototype={Dc:function(){if(!this.sb){var f=this.U,
|
19 |
-
h=f.length,j=g.u,d=j.ja,i=g.k("0");d=d.fa;i=["left",i,"top",i];if(h===1){f.push(new j.Ta(d,"center"));h++}if(h===2){d&(f[0].h|f[1].h)&&f[0].d in c&&f[1].d in e&&f.push(f.shift());if(f[0].h&d)if(f[0].d==="center")i[1]=b;else i[0]=f[0].d;else if(f[0].Y())i[1]=g.k(f[0].d);if(f[1].h&d)if(f[1].d==="center")i[3]=b;else i[2]=f[1].d;else if(f[1].Y())i[3]=g.k(f[1].d)}this.sb=i}return this.sb},coords:function(f,h,j){var d=this.Dc(),i=d[1].a(f,h);f=d[3].a(f,j);return{x:d[0]==="right"?h-i:i,y:d[2]==="bottom"?
|
20 |
-
j-f:f}}};return a}();g.Rb=function(){function a(b){this.V=b}a.prototype={ib:/[a-z]+$/i,ab:function(){return this.lc||(this.lc=this.V.match(this.ib)[0].toLowerCase())},vc:function(){var b=this.fc,c;if(b===undefined){b=this.ab();c=parseFloat(this.V,10);b=this.fc=b==="deg"?c:b==="rad"?c/Math.PI*180:b==="grad"?c/400*360:b==="turn"?c*360:0}return b}};return a}();g.$b=function(){function a(c){this.V=c}var b={};a.Sc=/\s*rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d+|\d*\.\d+)\s*\)\s*/;a.gb=
|
21 |
-
{aliceblue:"F0F8FF",antiquewhite:"FAEBD7",aqua:"0FF",aquamarine:"7FFFD4",azure:"F0FFFF",beige:"F5F5DC",bisque:"FFE4C4",black:"000",blanchedalmond:"FFEBCD",blue:"00F",blueviolet:"8A2BE2",brown:"A52A2A",burlywood:"DEB887",cadetblue:"5F9EA0",chartreuse:"7FFF00",chocolate:"D2691E",coral:"FF7F50",cornflowerblue:"6495ED",cornsilk:"FFF8DC",crimson:"DC143C",cyan:"0FF",darkblue:"00008B",darkcyan:"008B8B",darkgoldenrod:"B8860B",darkgray:"A9A9A9",darkgreen:"006400",darkkhaki:"BDB76B",darkmagenta:"8B008B",darkolivegreen:"556B2F",
|
22 |
-
darkorange:"FF8C00",darkorchid:"9932CC",darkred:"8B0000",darksalmon:"E9967A",darkseagreen:"8FBC8F",darkslateblue:"483D8B",darkslategray:"2F4F4F",darkturquoise:"00CED1",darkviolet:"9400D3",deeppink:"FF1493",deepskyblue:"00BFFF",dimgray:"696969",dodgerblue:"1E90FF",firebrick:"B22222",floralwhite:"FFFAF0",forestgreen:"228B22",fuchsia:"F0F",gainsboro:"DCDCDC",ghostwhite:"F8F8FF",gold:"FFD700",goldenrod:"DAA520",gray:"808080",green:"008000",greenyellow:"ADFF2F",honeydew:"F0FFF0",hotpink:"FF69B4",indianred:"CD5C5C",
|
23 |
-
indigo:"4B0082",ivory:"FFFFF0",khaki:"F0E68C",lavender:"E6E6FA",lavenderblush:"FFF0F5",lawngreen:"7CFC00",lemonchiffon:"FFFACD",lightblue:"ADD8E6",lightcoral:"F08080",lightcyan:"E0FFFF",lightgoldenrodyellow:"FAFAD2",lightgreen:"90EE90",lightgrey:"D3D3D3",lightpink:"FFB6C1",lightsalmon:"FFA07A",lightseagreen:"20B2AA",lightskyblue:"87CEFA",lightslategray:"789",lightsteelblue:"B0C4DE",lightyellow:"FFFFE0",lime:"0F0",limegreen:"32CD32",linen:"FAF0E6",magenta:"F0F",maroon:"800000",mediumauqamarine:"66CDAA",
|
24 |
-
mediumblue:"0000CD",mediumorchid:"BA55D3",mediumpurple:"9370D8",mediumseagreen:"3CB371",mediumslateblue:"7B68EE",mediumspringgreen:"00FA9A",mediumturquoise:"48D1CC",mediumvioletred:"C71585",midnightblue:"191970",mintcream:"F5FFFA",mistyrose:"FFE4E1",moccasin:"FFE4B5",navajowhite:"FFDEAD",navy:"000080",oldlace:"FDF5E6",olive:"808000",olivedrab:"688E23",orange:"FFA500",orangered:"FF4500",orchid:"DA70D6",palegoldenrod:"EEE8AA",palegreen:"98FB98",paleturquoise:"AFEEEE",palevioletred:"D87093",papayawhip:"FFEFD5",
|
25 |
-
peachpuff:"FFDAB9",peru:"CD853F",pink:"FFC0CB",plum:"DDA0DD",powderblue:"B0E0E6",purple:"800080",red:"F00",rosybrown:"BC8F8F",royalblue:"4169E1",saddlebrown:"8B4513",salmon:"FA8072",sandybrown:"F4A460",seagreen:"2E8B57",seashell:"FFF5EE",sienna:"A0522D",silver:"C0C0C0",skyblue:"87CEEB",slateblue:"6A5ACD",slategray:"708090",snow:"FFFAFA",springgreen:"00FF7F",steelblue:"4682B4",tan:"D2B48C",teal:"008080",thistle:"D8BFD8",tomato:"FF6347",turquoise:"40E0D0",violet:"EE82EE",wheat:"F5DEB3",white:"FFF",
|
26 |
-
whitesmoke:"F5F5F5",yellow:"FF0",yellowgreen:"9ACD32"};a.prototype={parse:function(){if(!this.Ca){var c=this.V,e;if(e=c.match(a.Sc)){this.Ca="rgb("+e[1]+","+e[2]+","+e[3]+")";this.qb=parseFloat(e[4])}else{if((e=c.toLowerCase())in a.gb)c="#"+a.gb[e];this.Ca=c;this.qb=c==="transparent"?0:1}}},O:function(c){this.parse();return this.Ca==="currentColor"?c.currentStyle.color:this.Ca},la:function(){this.parse();return this.qb}};g.pa=function(c){return b[c]||(b[c]=new a(c))};return a}();g.u=function(){function a(c){this.Ha=
|
27 |
-
c;this.ch=0;this.U=[];this.wa=0}var b=a.ja={xa:1,ob:2,ea:4,ac:8,pb:16,fa:32,A:64,ga:128,ha:256,Aa:512,dc:1024,URL:2048};a.Ta=function(c,e){this.h=c;this.d=e};a.Ta.prototype={db:function(){return this.h&b.A||this.h&b.ga&&this.d==="0"},Y:function(){return this.db()||this.h&b.Aa}};a.prototype={dd:/\s/,Mc:/^[\+\-]?(\d*\.)?\d+/,url:/^url\(\s*("([^"]*)"|'([^']*)'|([!#$%&*-~]*))\s*\)/i,zb:/^\-?[_a-z][\w-]*/i,Yc:/^("([^"]*)"|'([^']*)')/,Fc:/^#([\da-f]{6}|[\da-f]{3})/i,bd:{px:b.A,em:b.A,ex:b.A,mm:b.A,cm:b.A,
|
28 |
-
"in":b.A,pt:b.A,pc:b.A,deg:b.xa,rad:b.xa,grad:b.xa},sc:{rgb:1,rgba:1,hsl:1,hsla:1},next:function(c){function e(t,n){t=new a.Ta(t,n);if(!c){k.U.push(t);k.wa++}return t}function f(){k.wa++;return null}var h,j,d,i,k=this;if(this.wa<this.U.length)return this.U[this.wa++];for(;this.dd.test(this.Ha.charAt(this.ch));)this.ch++;if(this.ch>=this.Ha.length)return f();j=this.ch;h=this.Ha.substring(this.ch);d=h.charAt(0);switch(d){case "#":if(i=h.match(this.Fc)){this.ch+=i[0].length;return e(b.ea,i[0])}break;
|
29 |
-
case '"':case "'":if(i=h.match(this.Yc)){this.ch+=i[0].length;return e(b.dc,i[2]||i[3]||"")}break;case "/":case ",":this.ch++;return e(b.ha,d);case "u":if(i=h.match(this.url)){this.ch+=i[0].length;return e(b.URL,i[2]||i[3]||i[4]||"")}}if(i=h.match(this.Mc)){d=i[0];this.ch+=d.length;if(h.charAt(d.length)==="%"){this.ch++;return e(b.Aa,d+"%")}if(i=h.substring(d.length).match(this.zb)){d+=i[0];this.ch+=i[0].length;return e(this.bd[i[0].toLowerCase()]||b.ac,d)}return e(b.ga,d)}if(i=h.match(this.zb)){d=
|
30 |
-
i[0];this.ch+=d.length;if(d.toLowerCase()in g.$b.gb||d==="currentColor")return e(b.ea,d);if(h.charAt(d.length)==="("){this.ch++;if(d.toLowerCase()in this.sc){h=function(t){return t&&t.h&b.ga};i=function(t){return t&&t.h&(b.ga|b.Aa)};var m=function(t,n){return t&&t.d===n},l=function(){return k.next(1)};if((d.charAt(0)==="r"?i(l()):h(l()))&&m(l(),",")&&i(l())&&m(l(),",")&&i(l())&&(d==="rgb"||d==="hsa"||m(l(),",")&&h(l()))&&m(l(),")"))return e(b.ea,this.Ha.substring(j,this.ch));return f()}return e(b.pb,
|
31 |
-
d)}return e(b.fa,d)}this.ch++;return e(b.ob,d)},z:function(){return this.U[this.wa-- -2]},all:function(){for(;this.next(););return this.U},da:function(c,e){for(var f=[],h,j;h=this.next();){if(c(h)){j=true;this.z();break}f.push(h)}return e&&!j?null:f}};return a}();var M=function(a){this.e=a};M.prototype={K:0,Qc:function(){var a=this.Ua,b;return!a||(b=this.o())&&(a.x!==b.x||a.y!==b.y)},Vc:function(){var a=this.Ua,b;return!a||(b=this.o())&&(a.i!==b.i||a.f!==b.f)},ub:function(){var a=this.e.getBoundingClientRect();
|
32 |
-
return{x:a.left,y:a.top,i:a.right-a.left,f:a.bottom-a.top}},o:function(){return this.K?this.Da||(this.Da=this.ub()):this.ub()},Ec:function(){return!!this.Ua},Ja:function(){++this.K},La:function(){if(!--this.K){if(this.Da)this.Ua=this.Da;this.Da=null}}};(function(){function a(b){var c=g.p.ta(b);return function(){if(this.K){var e=this.rb||(this.rb={});return c in e?e[c]:(e[c]=b.call(this))}else return b.call(this)}}g.s={K:0,$:function(b){function c(e){this.e=e}g.p.fb(c.prototype,g.s,b);c.kc={};return c},
|
33 |
-
m:function(){var b=this.qa(),c=this.constructor.kc;return b?b in c?c[b]:(c[b]=this.ba(b)):null},qa:a(function(){var b=this.e,c=this.constructor,e=b.style;b=b.currentStyle;var f=this.na,h=this.va,j=c.ic||(c.ic=g.F+f);c=c.jc||(c.jc=g.Sa+h.charAt(0).toUpperCase()+h.substring(1));return e[c]||b.getAttribute(j)||e[h]||b.getAttribute(f)}),g:a(function(){return!!this.m()}),D:a(function(){var b=this.qa(),c=b!==this.gc;this.gc=b;return c}),ma:a,Ja:function(){++this.K},La:function(){--this.K||delete this.rb}}})();
|
34 |
-
g.Tb=g.s.$({na:g.F+"background",va:g.Sa+"Background",nc:{scroll:1,fixed:1,local:1},Ka:{"repeat-x":1,"repeat-y":1,repeat:1,"no-repeat":1},Nc:{"padding-box":1,"border-box":1,"content-box":1},rc:{"padding-box":1,"border-box":1},Rc:{top:1,right:1,bottom:1,left:1,center:1},Wc:{contain:1,cover:1},ba:function(a){function b(u){return u.Y()||u.h&i&&u.d in t}function c(u){return u.Y()&&g.k(u.d)||u.d==="auto"&&"auto"}var e=this.e.currentStyle,f,h,j=g.u.ja,d=j.ha,i=j.fa,k=j.ea,m,l,t=this.Rc,n,p,s=null;if(this.$a()){a=
|
35 |
-
new g.u(a);s={M:[]};for(h={};f=a.next();){m=f.h;l=f.d;if(!h.P&&m&j.pb&&l==="linear-gradient"){n={ca:[],P:l};for(p={};f=a.next();){m=f.h;l=f.d;if(m&j.ob&&l===")"){p.color&&n.ca.push(p);n.ca.length>1&&g.p.fb(h,n);break}if(m&k){if(n.Xa||n.bb){f=a.z();if(f.h!==d)break;a.next()}p={color:g.pa(l)};f=a.next();if(f.Y())p.Fb=g.k(f.d);else a.z()}else if(m&j.xa&&!n.Xa&&!p.color&&!n.ca.length)n.Xa=new g.Rb(f.d);else if(b(f)&&!n.bb&&!p.color&&!n.ca.length){a.z();n.bb=new g.Na(a.da(function(u){return!b(u)},false))}else if(m&
|
36 |
-
d&&l===","){if(p.color){n.ca.push(p);p={}}}else break}}else if(!h.P&&m&j.URL){h.Cb=l;h.P="image"}else if(b(f)&&!h.size){a.z();h.Ya=new g.Na(a.da(function(u){return!b(u)},false))}else if(m&i)if(l in this.Ka)h.Bb=l;else if(l in this.Nc){h.kd=l;if(l in this.rc)h.clip=l}else{if(l in this.nc)h.jd=l}else if(m&k&&!s.color)s.color=g.pa(l);else if(m&d)if(l==="/"){f=a.next();m=f.h;l=f.d;if(m&i&&l in this.Wc)h.size=l;else if(l=c(f))h.size={i:l,f:c(a.next())||a.z()&&l}}else{if(l===","&&h.P){s.M.push(h);h={}}}else return null}h.P&&
|
37 |
-
s.M.push(h)}else this.Nb(function(){var u=e.backgroundPositionX,w=e.backgroundPositionY,r=e.backgroundImage,o=e.backgroundColor;s={};if(o!=="transparent")s.color=g.pa(o);if(r!=="none")s.M=[{P:"image",Cb:(new g.u(r)).next().d,Bb:e.backgroundRepeat,Ya:new g.Na((new g.u(u+" "+w)).all())}]});return s&&(s.color||s.M&&s.M[0])?s:null},Nb:function(a){var b=this.e.runtimeStyle,c=b.backgroundImage,e=b.backgroundColor;if(c)b.backgroundImage="";if(e)b.backgroundColor="";a=a.call(this);if(c)b.backgroundImage=
|
38 |
-
c;if(e)b.backgroundColor=e;return a},qa:g.s.ma(function(){return this.$a()||this.Nb(function(){var a=this.e.currentStyle;return a.backgroundColor+" "+a.backgroundImage+" "+a.backgroundRepeat+" "+a.backgroundPositionX+" "+a.backgroundPositionY})}),$a:g.s.ma(function(){var a=this.e;return a.style[this.va]||a.currentStyle.getAttribute(this.na)}),Eb:function(){var a=0;if(g.J<7){a=this.e;a=""+(a.style[g.Sa+"PngFix"]||a.currentStyle.getAttribute(g.F+"png-fix"))==="true"}return a},g:g.s.ma(function(){return(this.$a()||
|
39 |
-
this.Eb())&&!!this.m()})});g.Xb=g.s.$({Ib:["Top","Right","Bottom","Left"],Kc:{thin:"1px",medium:"3px",thick:"5px"},ba:function(){var a={},b={},c={},e=false,f=true,h=true,j=true;this.Ob(function(){for(var d=this.e.currentStyle,i=0,k,m,l,t,n,p,s;i<4;i++){l=this.Ib[i];s=l.charAt(0).toLowerCase();k=b[s]=d["border"+l+"Style"];m=d["border"+l+"Color"];l=d["border"+l+"Width"];if(i>0){if(k!==t)h=false;if(m!==n)f=false;if(l!==p)j=false}t=k;n=m;p=l;c[s]=g.pa(m);l=a[s]=g.k(b[s]==="none"?"0":this.Kc[l]||l);if(l.a(this.e)>
|
40 |
-
0)e=true}});return e?{nb:a,Zc:b,tc:c,ed:j,uc:f,$c:h}:null},qa:g.s.ma(function(){var a=this.e,b=a.currentStyle,c;a.tagName in g.Jb&&a.offsetParent.currentStyle.borderCollapse==="collapse"||this.Ob(function(){c=b.borderWidth+"|"+b.borderStyle+"|"+b.borderColor});return c}),Ob:function(a){var b=this.e.runtimeStyle,c=b.borderWidth,e=b.borderColor;if(c)b.borderWidth="";if(e)b.borderColor="";a=a.call(this);if(c)b.borderWidth=c;if(e)b.borderColor=e;return a}});(function(){g.Oa=g.s.$({na:"border-radius",
|
41 |
-
va:"borderRadius",ba:function(b){var c=null,e,f,h,j,d=false;if(b){f=new g.u(b);var i=function(){for(var k=[],m;(h=f.next())&&h.Y();){j=g.k(h.d);m=j.vb();if(m<0)return null;if(m>0)d=true;k.push(j)}return k.length>0&&k.length<5?{tl:k[0],tr:k[1]||k[0],br:k[2]||k[0],bl:k[3]||k[1]||k[0]}:null};if(b=i()){if(h){if(h.h&g.u.ja.ha&&h.d==="/")e=i()}else e=b;if(d&&b&&e)c={x:b,y:e}}}return c}});var a=g.k("0");a={tl:a,tr:a,br:a,bl:a};g.Oa.Qb={x:a,y:a}})();g.Vb=g.s.$({na:"border-image",va:"borderImage",Ka:{stretch:1,
|
42 |
-
round:1,repeat:1,space:1},ba:function(a){var b=null,c,e,f,h,j,d,i=0,k,m=g.u.ja,l=m.fa,t=m.ga,n=m.A,p=m.Aa;if(a){c=new g.u(a);b={};for(var s=function(r){return r&&r.h&m.ha&&r.d==="/"},u=function(r){return r&&r.h&l&&r.d==="fill"},w=function(){h=c.da(function(r){return!(r.h&(t|p))});if(u(c.next())&&!b.fill)b.fill=true;else c.z();if(s(c.next())){i++;j=c.da(function(){return!(e.h&(t|p|n))&&!(e.h&l&&e.d==="auto")});if(s(c.next())){i++;d=c.da(function(){return!(e.h&(t|n))})}}else c.z()};e=c.next();){a=e.h;
|
43 |
-
f=e.d;if(a&(t|p)&&!h){c.z();w()}else if(u(e)&&!b.fill){b.fill=true;w()}else if(a&l&&this.Ka[f]&&!b.repeat){b.repeat={f:f};if(e=c.next())if(e.h&l&&this.Ka[e.d])b.repeat.kb=e.d;else c.z()}else if(a&m.URL&&!b.src)b.src=f;else return null}if(!b.src||!h||h.length<1||h.length>4||j&&j.length>4||i===1&&j.length<1||d&&d.length>4||i===2&&d.length<1)return null;if(!b.repeat)b.repeat={f:"stretch"};if(!b.repeat.kb)b.repeat.kb=b.repeat.f;a=function(r,o){return{T:o(r[0]),S:o(r[1]||r[0]),L:o(r[2]||r[0]),Q:o(r[3]||
|
44 |
-
r[1]||r[0])}};b.slice=a(h,function(r){return g.k(r.h&t?r.d+"px":r.d)});b.width=j&&j.length>0?a(j,function(r){return r.h&(n|p)?g.k(r.d):r.d}):(k=this.e.currentStyle)&&{T:g.k(k.borderTopWidth),S:g.k(k.borderRightWidth),L:g.k(k.borderBottomWidth),Q:g.k(k.borderLeftWidth)};b.ua=a(d||[0],function(r){return r.h&n?g.k(r.d):r.d})}return b}});g.Zb=g.s.$({na:"box-shadow",va:"boxShadow",ba:function(a){var b,c=g.k,e=g.u.ja,f;if(a){f=new g.u(a);b={ua:[],cb:[]};for(a=function(){for(var h,j,d,i,k,m;h=f.next();){d=
|
45 |
-
h.d;j=h.h;if(j&e.ha&&d===",")break;else if(h.db()&&!k){f.z();k=f.da(function(l){return!l.db()})}else if(j&e.ea&&!i)i=d;else if(j&e.fa&&d==="inset"&&!m)m=true;else return false}h=k&&k.length;if(h>1&&h<5){(m?b.cb:b.ua).push({fd:c(k[0].d),gd:c(k[1].d),blur:c(k[2]?k[2].d:"0"),Xc:c(k[3]?k[3].d:"0"),color:g.pa(i||"currentColor")});return true}return false};a(););}return b&&(b.cb.length||b.ua.length)?b:null}});g.ec=g.s.$({qa:g.s.ma(function(){var a=this.e.currentStyle;return a.visibility+"|"+a.display}),
|
46 |
-
ba:function(){var a=this.e,b=a.runtimeStyle;a=a.currentStyle;var c=b.visibility,e;b.visibility="";e=a.visibility;b.visibility=c;return{cd:e!=="hidden",xc:a.display!=="none"}},g:function(){return false}});g.B={Z:function(a){function b(c,e,f,h){this.e=c;this.q=e;this.j=f;this.parent=h}g.p.fb(b.prototype,g.B,a);return b},eb:false,R:function(){return false},Kb:function(){this.n();this.g()&&this.X()},jb:function(){this.eb=true},Lb:function(){this.g()?this.X():this.n()},Wa:function(a,b){this.Hb(a);for(var c=
|
47 |
-
this.ka||(this.ka=[]),e=a+1,f=c.length,h;e<f;e++)if(h=c[e])break;c[a]=b;this.w().insertBefore(b,h||null)},ra:function(a){var b=this.ka;return b&&b[a]||null},Hb:function(a){var b=this.ra(a),c=this.Ba;if(b&&c){c.removeChild(b);this.ka[a]=null}},sa:function(a,b,c,e){var f=this.Va||(this.Va={}),h=f[a];if(!h){h=f[a]=g.p.Ga("shape");if(b)h.appendChild(h[b]=g.p.Ga(b));if(e){c=this.ra(e);if(!c){this.Wa(e,doc.createElement("group"+e));c=this.ra(e)}}c.appendChild(h);a=h.style;a.position="absolute";a.left=a.top=
|
48 |
-
0;a.behavior="url(#default#VML)"}return h},Za:function(a){var b=this.Va,c=b&&b[a];if(c){c.parentNode.removeChild(c);delete b[a]}return!!c},xb:function(a){var b=this.e,c=this.q.o(),e=c.i,f=c.f,h,j,d,i,k,m;c=a.x.tl.a(b,e);h=a.y.tl.a(b,f);j=a.x.tr.a(b,e);d=a.y.tr.a(b,f);i=a.x.br.a(b,e);k=a.y.br.a(b,f);m=a.x.bl.a(b,e);a=a.y.bl.a(b,f);e=Math.min(e/(c+j),f/(d+k),e/(m+i),f/(h+a));if(e<1){c*=e;h*=e;j*=e;d*=e;i*=e;k*=e;m*=e;a*=e}return{x:{tl:c,tr:j,br:i,bl:m},y:{tl:h,tr:d,br:k,bl:a}}},oa:function(a,b,c){b=
|
49 |
-
b||1;var e,f,h=this.q.o();f=h.i*b;h=h.f*b;var j=this.j.v,d=Math.floor,i=Math.ceil,k=a?a.T*b:0,m=a?a.S*b:0,l=a?a.L*b:0;a=a?a.Q*b:0;var t,n,p,s,u;if(c||j.g()){e=this.xb(c||j.m());c=e.x.tl*b;j=e.y.tl*b;t=e.x.tr*b;n=e.y.tr*b;p=e.x.br*b;s=e.y.br*b;u=e.x.bl*b;b=e.y.bl*b;f="m"+d(a)+","+d(j)+"qy"+d(c)+","+d(k)+"l"+i(f-t)+","+d(k)+"qx"+i(f-m)+","+d(n)+"l"+i(f-m)+","+i(h-s)+"qy"+i(f-p)+","+i(h-l)+"l"+d(u)+","+i(h-l)+"qx"+d(a)+","+i(h-b)+" x e"}else f="m"+d(a)+","+d(k)+"l"+i(f-m)+","+d(k)+"l"+i(f-m)+","+i(h-
|
50 |
-
l)+"l"+d(a)+","+i(h-l)+"xe";return f},w:function(){var a=this.parent.ra(this.C),b;if(!a){a=doc.createElement(this.Fa);b=a.style;b.position="absolute";b.top=b.left=0;this.parent.Wa(this.C,a)}return a},n:function(){this.parent.Hb(this.C);delete this.Va;delete this.ka}};g.cc=g.B.Z({g:function(){var a=this.oc;for(var b in a)if(a.hasOwnProperty(b)&&a[b].g())return true;return false},R:function(){return this.j.lb.D()},jb:function(){if(this.g()){var a=this.wb(),b=a,c;a=a.currentStyle;var e=a.position,f=
|
51 |
-
this.w().style,h=0,j=0;j=this.q.o();if(e==="fixed"&&g.J>6){h=j.x;j=j.y;b=e}else{do b=b.offsetParent;while(b&&b.currentStyle.position==="static");if(b){c=b.getBoundingClientRect();b=b.currentStyle;h=j.x-c.left-(parseFloat(b.borderLeftWidth)||0);j=j.y-c.top-(parseFloat(b.borderTopWidth)||0)}else{b=doc.documentElement;h=j.x+b.scrollLeft-b.clientLeft;j=j.y+b.scrollTop-b.clientTop}b="absolute"}f.position=b;f.left=h;f.top=j;f.zIndex=e==="static"?-1:a.zIndex;this.eb=true}},Lb:function(){},Mb:function(){var a=
|
52 |
-
this.j.lb.m();this.w().style.display=a.cd&&a.xc?"":"none"},Kb:function(){this.g()?this.Mb():this.n()},wb:function(){var a=this.e;return a.tagName in g.Jb?a.offsetParent:a},w:function(){var a=this.Ba,b;if(!a){b=this.wb();a=this.Ba=doc.createElement("css3-container");a.style.direction="ltr";this.Mb();b.parentNode.insertBefore(a,b)}return a},n:function(){var a=this.Ba,b;if(a&&(b=a.parentNode))b.removeChild(a);delete this.Ba;delete this.ka}});g.Sb=g.B.Z({C:2,Fa:"background",R:function(){var a=this.j;
|
53 |
-
return a.H.D()||a.v.D()},g:function(){var a=this.j;return a.N.g()||a.v.g()||a.H.g()||a.W.g()&&a.W.m().cb},X:function(){var a=this.q.o();if(a.i&&a.f){this.yc();this.zc()}},yc:function(){var a=this.j.H.m(),b=this.q.o(),c=this.e,e=a&&a.color,f,h;if(e&&e.la()>0){this.yb();a=this.sa("bgColor","fill",this.w(),1);f=b.i;b=b.f;a.stroked=false;a.coordsize=f*2+","+b*2;a.coordorigin="1,1";a.path=this.oa(null,2);h=a.style;h.width=f;h.height=b;a.fill.color=e.O(c);c=e.la();if(c<1)a.fill.opacity=c}else this.Za("bgColor")},
|
54 |
-
zc:function(){var a=this.j.H.m(),b=this.q.o();a=a&&a.M;var c,e,f,h,j;if(a){this.yb();e=b.i;f=b.f;for(j=a.length;j--;){b=a[j];c=this.sa("bgImage"+j,"fill",this.w(),2);c.stroked=false;c.fill.type="tile";c.fillcolor="none";c.coordsize=e*2+","+f*2;c.coordorigin="1,1";c.path=this.oa(0,2);h=c.style;h.width=e;h.height=f;if(b.P==="linear-gradient")this.mc(c,b);else{c.fill.src=b.Cb;this.Pc(c,j)}}}for(j=a?a.length:0;this.Za("bgImage"+j++););},Pc:function(a,b){g.p.Pb(a.fill.src,function(c){var e=a.fill,f=this.e,
|
55 |
-
h=this.q.o(),j=h.i;h=h.f;var d=this.j,i=d.I.m(),k=i&&i.nb;i=k?k.t.a(f):0;var m=k?k.r.a(f):0,l=k?k.b.a(f):0;k=k?k.l.a(f):0;d=d.H.m().M[b];f=d.Ya?d.Ya.coords(f,j-c.i-k-m,h-c.f-i-l):{x:0,y:0};d=d.Bb;l=m=0;var t=j+1,n=h+1,p=g.J===8?0:1;k=Math.round(f.x)+k+0.5;i=Math.round(f.y)+i+0.5;e.position=k/j+","+i/h;if(d&&d!=="repeat"){if(d==="repeat-x"||d==="no-repeat"){m=i+1;n=i+c.f+p}if(d==="repeat-y"||d==="no-repeat"){l=k+1;t=k+c.i+p}a.style.clip="rect("+m+"px,"+t+"px,"+n+"px,"+l+"px)"}},this)},mc:function(a,
|
56 |
-
b){function c(B,C,z,F,H){if(z===0||z===180)return[F,C];else if(z===90||z===270)return[B,H];else{z=Math.tan(-z*t/180);B=z*B-C;C=-1/z;F=C*F-H;H=C-z;return[(F-B)/H,(z*F-C*B)/H]}}function e(){w=m>=90&&m<270?i:0;r=m<180?k:0;o=i-w;x=k-r}function f(){for(;m<0;)m+=360;m%=360}function h(B,C){var z=C[0]-B[0];B=C[1]-B[1];return Math.abs(z===0?B:B===0?z:Math.sqrt(z*z+B*B))}var j=this.e,d=this.q.o(),i=d.i,k=d.f;a=a.fill;var m=b.Xa,l=b.bb;b=b.ca;d=b.length;var t=Math.PI,n,p,s,u,w,r,o,x,q,y,A,D;if(l){l=l.coords(j,
|
57 |
-
i,k);n=l.x;p=l.y}if(m){m=m.vc();f();e();if(!l){n=w;p=r}l=c(n,p,m,o,x);s=l[0];u=l[1]}else if(l){s=i-n;u=k-p}else{n=p=s=0;u=k}l=s-n;q=u-p;if(m===void 0){m=!l?q<0?90:270:!q?l<0?180:0:-Math.atan2(q,l)/t*180;f();e()}l=m%90?Math.atan2(l*i/k,q)/t*180:m+90;l+=180;l%=360;y=h([n,p],[s,u]);s=h([w,r],c(w,r,m,o,x));u=[];p=h([n,p],c(n,p,m,w,r))/s*100;n=[];for(q=0;q<d;q++)n.push(b[q].Fb?b[q].Fb.a(j,y):q===0?0:q===d-1?y:null);for(q=1;q<d;q++){if(n[q]===null){A=n[q-1];y=q;do D=n[++y];while(D===null);n[q]=A+(D-A)/
|
58 |
-
(y-q+1)}n[q]=Math.max(n[q],n[q-1])}for(q=0;q<d;q++)u.push(p+n[q]/s*100+"% "+b[q].color.O(j));a.angle=l;a.type="gradient";a.method="sigma";a.color=b[0].color.O(j);a.color2=b[d-1].color.O(j);a.colors.value=u.join(",")},yb:function(){var a=this.e.runtimeStyle;a.backgroundImage="url(about:blank)";a.backgroundColor="transparent"},n:function(){g.B.n.call(this);var a=this.e.runtimeStyle;a.backgroundImage=a.backgroundColor=""}});g.Wb=g.B.Z({C:4,Fa:"border",qc:{TABLE:1,INPUT:1,TEXTAREA:1,SELECT:1,OPTION:1,
|
59 |
-
IMG:1,HR:1,FIELDSET:1},Jc:{submit:1,button:1,reset:1},R:function(){var a=this.j;return a.I.D()||a.v.D()},g:function(){var a=this.j;return(a.N.g()||a.v.g()||a.H.g())&&a.I.g()},X:function(){var a=this.e,b=this.j.I.m(),c=this.q.o(),e=c.i;c=c.f;var f,h,j,d,i;if(b){this.Hc();b=this.Bc(2);d=0;for(i=b.length;d<i;d++){j=b[d];f=this.sa("borderPiece"+d,j.stroke?"stroke":"fill",this.w());f.coordsize=e*2+","+c*2;f.coordorigin="1,1";f.path=j.path;h=f.style;h.width=e;h.height=c;f.filled=!!j.fill;f.stroked=!!j.stroke;
|
60 |
-
if(j.stroke){f=f.stroke;f.weight=j.mb+"px";f.color=j.color.O(a);f.dashstyle=j.stroke==="dashed"?"2 2":j.stroke==="dotted"?"1 1":"solid";f.linestyle=j.stroke==="double"&&j.mb>2?"ThinThin":"Single"}else f.fill.color=j.fill.O(a)}for(;this.Za("borderPiece"+d++););}},Hc:function(){var a=this.e,b=a.currentStyle,c=a.runtimeStyle,e=a.tagName,f=g.J===6,h;if(f&&e in this.qc||e==="BUTTON"||e==="INPUT"&&a.type in this.Jc){c.borderWidth="";e=this.j.I.Ib;for(h=e.length;h--;){f=e[h];c["padding"+f]="";c["padding"+
|
61 |
-
f]=g.k(b["padding"+f]).a(a)+g.k(b["border"+f+"Width"]).a(a)+(!g.J===8&&h%2?1:0)}c.borderWidth=0}else if(f){if(a.childNodes.length!==1||a.firstChild.tagName!=="ie6-mask"){b=doc.createElement("ie6-mask");e=b.style;e.visibility="visible";for(e.zoom=1;e=a.firstChild;)b.appendChild(e);a.appendChild(b);c.visibility="hidden"}}else c.borderColor="transparent"},Bc:function(a){var b=this.e,c,e,f,h=this.j.I,j=[],d,i,k,m,l=Math.round,t,n,p;if(h.g()){c=h.m();h=c.nb;n=c.Zc;p=c.tc;if(c.ed&&c.$c&&c.uc){if(p.t.la()>
|
62 |
-
0){c=h.t.a(b);k=c/2;j.push({path:this.oa({T:k,S:k,L:k,Q:k},a),stroke:n.t,color:p.t,mb:c})}}else{a=a||1;c=this.q.o();e=c.i;f=c.f;c=l(h.t.a(b));k=l(h.r.a(b));m=l(h.b.a(b));b=l(h.l.a(b));var s={t:c,r:k,b:m,l:b};b=this.j.v;if(b.g())t=this.xb(b.m());d=Math.floor;i=Math.ceil;var u=function(o,x){return t?t[o][x]:0},w=function(o,x,q,y,A,D){var B=u("x",o),C=u("y",o),z=o.charAt(1)==="r";o=o.charAt(0)==="b";return B>0&&C>0?(D?"al":"ae")+(z?i(e-B):d(B))*a+","+(o?i(f-C):d(C))*a+","+(d(B)-x)*a+","+(d(C)-q)*a+","+
|
63 |
-
y*65535+","+2949075*(A?1:-1):(D?"m":"l")+(z?e-x:x)*a+","+(o?f-q:q)*a},r=function(o,x,q,y){var A=o==="t"?d(u("x","tl"))*a+","+i(x)*a:o==="r"?i(e-x)*a+","+d(u("y","tr"))*a:o==="b"?i(e-u("x","br"))*a+","+d(f-x)*a:d(x)*a+","+i(f-u("y","bl"))*a;o=o==="t"?i(e-u("x","tr"))*a+","+i(x)*a:o==="r"?i(e-x)*a+","+i(f-u("y","br"))*a:o==="b"?d(u("x","bl"))*a+","+d(f-x)*a:d(x)*a+","+d(u("y","tl"))*a;return q?(y?"m"+o:"")+"l"+A:(y?"m"+A:"")+"l"+o};b=function(o,x,q,y,A,D){var B=o==="l"||o==="r",C=s[o],z,F;if(C>0&&n[o]!==
|
64 |
-
"none"&&p[o].la()>0){z=s[B?o:x];x=s[B?x:o];F=s[B?o:q];q=s[B?q:o];if(n[o]==="dashed"||n[o]==="dotted"){j.push({path:w(y,z,x,D+45,0,1)+w(y,0,0,D,1,0),fill:p[o]});j.push({path:r(o,C/2,0,1),stroke:n[o],mb:C,color:p[o]});j.push({path:w(A,F,q,D,0,1)+w(A,0,0,D-45,1,0),fill:p[o]})}else j.push({path:w(y,z,x,D+45,0,1)+r(o,C,0,0)+w(A,F,q,D,0,0)+(n[o]==="double"&&C>2?w(A,F-d(F/3),q-d(q/3),D-45,1,0)+r(o,i(C/3*2),1,0)+w(y,z-d(z/3),x-d(x/3),D,1,0)+"x "+w(y,d(z/3),d(x/3),D+45,0,1)+r(o,d(C/3),1,0)+w(A,d(F/3),d(q/
|
65 |
-
3),D,0,0):"")+w(A,0,0,D-45,1,0)+r(o,0,1,0)+w(y,0,0,D,1,0),fill:p[o]})}};b("t","l","r","tl","tr",90);b("r","t","b","tr","br",0);b("b","r","l","br","bl",-90);b("l","b","t","bl","tl",-180)}}return j},n:function(){g.B.n.call(this);this.e.runtimeStyle.borderColor=""}});g.Ub=g.B.Z({C:5,Oc:["t","tr","r","br","b","bl","l","tl","c"],R:function(){return this.j.N.D()},g:function(){return this.j.N.g()},X:function(){this.w();var a=this.j.N.m(),b=this.q.o(),c=this.e,e=this.Gb;g.p.Pb(a.src,function(f){function h(w,
|
66 |
-
r,o,x,q){w=e[w].style;var y=Math.max;w.width=y(r,0);w.height=y(o,0);w.left=x;w.top=q}function j(w,r,o){for(var x=0,q=w.length;x<q;x++)e[w[x]].imagedata[r]=o}var d=b.i,i=b.f,k=a.width,m=k.T.a(c),l=k.S.a(c),t=k.L.a(c);k=k.Q.a(c);var n=a.slice,p=n.T.a(c),s=n.S.a(c),u=n.L.a(c);n=n.Q.a(c);h("tl",k,m,0,0);h("t",d-k-l,m,k,0);h("tr",l,m,d-l,0);h("r",l,i-m-t,d-l,m);h("br",l,t,d-l,i-t);h("b",d-k-l,t,k,i-t);h("bl",k,t,0,i-t);h("l",k,i-m-t,0,m);h("c",d-k-l,i-m-t,k,m);j(["tl","t","tr"],"cropBottom",(f.f-p)/f.f);
|
67 |
-
j(["tl","l","bl"],"cropRight",(f.i-n)/f.i);j(["bl","b","br"],"cropTop",(f.f-u)/f.f);j(["tr","r","br"],"cropLeft",(f.i-s)/f.i);if(a.repeat.kb==="stretch"){j(["l","r","c"],"cropTop",p/f.f);j(["l","r","c"],"cropBottom",u/f.f)}if(a.repeat.f==="stretch"){j(["t","b","c"],"cropLeft",n/f.i);j(["t","b","c"],"cropRight",s/f.i)}e.c.style.display=a.fill?"":"none"},this)},w:function(){var a=this.parent.ra(this.C),b,c,e,f=this.Oc,h=f.length;if(!a){a=doc.createElement("border-image");b=a.style;b.position="absolute";
|
68 |
-
this.Gb={};for(e=0;e<h;e++){c=this.Gb[f[e]]=g.p.Ga("rect");c.appendChild(g.p.Ga("imagedata"));b=c.style;b.behavior="url(#default#VML)";b.position="absolute";b.top=b.left=0;c.imagedata.src=this.j.N.m().src;c.stroked=false;c.filled=false;a.appendChild(c)}this.parent.Wa(this.C,a)}return a}});g.Yb=g.B.Z({C:1,Fa:"outset-box-shadow",R:function(){var a=this.j;return a.W.D()||a.v.D()},g:function(){var a=this.j.W;return a.g()&&a.m().ua[0]},X:function(){function a(z,F,H,K,J,v,E){z=b.sa("shadow"+z+F,"fill",
|
69 |
-
e,j-z);F=z.fill;z.coordsize=m*2+","+l*2;z.coordorigin="1,1";z.stroked=false;z.filled=true;F.color=J.O(c);if(v){F.type="gradienttitle";F.color2=F.color;F.opacity=0}z.path=E;u=z.style;u.left=H;u.top=K;u.width=m;u.height=l;return z}var b=this,c=this.e,e=this.w(),f=this.j,h=f.W.m().ua;f=f.v.m();var j=h.length,d=j,i,k=this.q.o(),m=k.i,l=k.f;k=g.J===8?1:0;for(var t=["tl","tr","br","bl"],n,p,s,u,w,r,o,x,q,y,A,D,B,C;d--;){p=h[d];w=p.fd.a(c);r=p.gd.a(c);i=p.Xc.a(c);o=p.blur.a(c);p=p.color;x=-i-o;if(!f&&o)f=
|
70 |
-
g.Oa.Qb;x=this.oa({T:x,S:x,L:x,Q:x},2,f);if(o){q=(i+o)*2+m;y=(i+o)*2+l;A=o*2/q;D=o*2/y;if(o-i>m/2||o-i>l/2)for(i=4;i--;){n=t[i];B=n.charAt(0)==="b";C=n.charAt(1)==="r";n=a(d,n,w,r,p,o,x);s=n.fill;s.focusposition=(C?1-A:A)+","+(B?1-D:D);s.focussize="0,0";n.style.clip="rect("+((B?y/2:0)+k)+"px,"+(C?q:q/2)+"px,"+(B?y:y/2)+"px,"+((C?q/2:0)+k)+"px)"}else{n=a(d,"",w,r,p,o,x);s=n.fill;s.focusposition=A+","+D;s.focussize=1-A*2+","+(1-D*2)}}else{n=a(d,"",w,r,p,o,x);w=p.la();if(w<1)n.fill.opacity=w}}}});g.bc=
|
71 |
-
g.B.Z({C:6,Fa:"imgEl",R:function(){var a=this.j;return this.e.src!==this.hc||a.v.D()},g:function(){var a=this.j;return a.v.g()||a.H.Eb()},X:function(){this.hc=j;this.Gc();var a=this.sa("img","fill",this.w()),b=a.fill,c=this.q.o(),e=c.i;c=c.f;var f=this.j.I.m();f=f&&f.nb;var h=this.e,j=h.src,d=Math.round;a.stroked=false;b.type="frame";b.src=j;b.position=(e?0.5/e:0)+","+(c?0.5/c:0);a.coordsize=e*2+","+c*2;a.coordorigin="1,1";a.path=this.oa(f?{T:d(f.t.a(h)),S:d(f.r.a(h)),L:d(f.b.a(h)),Q:d(f.l.a(h))}:
|
72 |
-
0,2);a=a.style;a.width=e;a.height=c},Gc:function(){this.e.runtimeStyle.filter="alpha(opacity=0)"},n:function(){g.B.n.call(this);this.e.runtimeStyle.filter=""}});g.Qa=function(){function a(d){function i(){if(!z){var v,E,G=d.currentStyle,I=G.getAttribute(c)==="true";J=G.getAttribute(e);J=g.Ab===8?J!=="false":J==="true";if(!C){C=1;d.runtimeStyle.zoom=1;G=d;for(var O=1;G=G.previousSibling;)if(G.nodeType===1){O=0;break}if(O)d.className+=" "+g.Pa+"first-child"}y.Ja();if(I&&(E=y.o())&&(v=doc.documentElement||
|
73 |
-
doc.body)&&(E.y>v.clientHeight||E.x>v.clientWidth||E.y+E.f<0||E.x+E.i<0)){if(!H){H=1;g.Ra.aa(i)}}else{z=1;H=C=0;g.Ra.Ma(i);A={H:new g.Tb(d),I:new g.Xb(d),N:new g.Vb(d),v:new g.Oa(d),W:new g.Zb(d),lb:new g.ec(d)};D=[A.H,A.I,A.N,A.v,A.W,A.lb];v=new g.cc(d,y,A);E=[new g.Yb(d,y,A,v),new g.Sb(d,y,A,v),new g.Wb(d,y,A,v),new g.Ub(d,y,A,v)];d.tagName==="IMG"&&E.push(new g.bc(d,y,A,v));v.oc=E;q=[v].concat(E);if(v=d.currentStyle.getAttribute(g.F+"watch-ancestors")){B=[];v=parseInt(v,10);E=0;for(I=d.parentNode;I&&
|
74 |
-
(v==="NaN"||E++<v);){B.push(I);I.attachEvent("onpropertychange",u);I.attachEvent("onmouseenter",p);I.attachEvent("onmouseleave",s);I=I.parentNode}}if(J){g.ya.aa(m);g.ya.Tc()}m(1)}if(!F){F=1;d.attachEvent("onmove",k);d.attachEvent("onresize",k);d.attachEvent("onpropertychange",l);d.attachEvent("onmouseenter",p);d.attachEvent("onmouseleave",s);g.za.aa(k);g.G.aa(o)}y.La()}}function k(){y&&y.Ec()&&m()}function m(v){if(!K)if(z){var E,G;w();if(v||y.Qc()){E=0;for(G=q.length;E<G;E++)q[E].jb()}if(v||y.Vc()){E=
|
75 |
-
0;for(G=q.length;E<G;E++)q[E].Lb()}r()}else C||i()}function l(){var v,E,G;v=event;if(!K&&!(v&&v.propertyName in j))if(z){w();v=0;for(E=q.length;v<E;v++){G=q[v];G.eb||G.jb();G.R()&&G.Kb()}r()}else C||i()}function t(){if(d)d.className+=f}function n(){if(d)d.className=d.className.replace(h,"")}function p(){setTimeout(t,0)}function s(){setTimeout(n,0)}function u(){var v=event.propertyName;if(v==="className"||v==="id")l()}function w(){y.Ja();for(var v=D.length;v--;)D[v].Ja()}function r(){for(var v=D.length;v--;)D[v].La();
|
76 |
-
y.La()}function o(){if(F){if(B)for(var v=0,E=B.length,G;v<E;v++){G=B[v];G.detachEvent("onpropertychange",u);G.detachEvent("onmouseenter",p);G.detachEvent("onmouseleave",s)}d.detachEvent("onmove",m);d.detachEvent("onresize",m);d.detachEvent("onpropertychange",l);d.detachEvent("onmouseenter",p);d.detachEvent("onmouseleave",s);g.G.Ma(o);F=0}}function x(){if(!K){var v,E;o();K=1;if(q){v=0;for(E=q.length;v<E;v++)q[v].n()}J&&g.ya.Ma(m);g.za.Ma(m);q=y=A=D=B=d=null}}var q,y=new M(d),A,D,B,C,z,F,H,K,J;this.Ic=
|
77 |
-
i;this.update=m;this.n=x;this.Ac=d}var b={},c=g.F+"lazy-init",e=g.F+"poll",f=" "+g.Pa+"hover",h=new RegExp("\\b"+g.Pa+"hover\\b","g"),j={background:1,bgColor:1,display:1};a.Cc=function(d){var i=g.p.ta(d);return b[i]||(b[i]=new a(d))};a.n=function(d){d=g.p.ta(d);var i=b[d];if(i){i.n();delete b[d]}};a.wc=function(){var d=[],i;if(b){for(var k in b)if(b.hasOwnProperty(k)){i=b[k];d.push(i.Ac);i.n()}b={}}return d};return a}();g.attach=function(a){g.Ab<9&&g.Qa.Cc(a).Ic()};g.detach=function(a){g.Qa.n(a)}};
|
78 |
-
var N=window.PIE,P=element;function init(){N&&doc.media!=="print"&&N.attach(P)}function cleanup(){if(N){N.detach(P);N=P=0}}P.readyState==="complete"&&init();
|
79 |
-
</script>
|
80 |
-
</PUBLIC:COMPONENT>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
themes/default/_notes/dwsync.xml
DELETED
@@ -1,4 +0,0 @@
|
|
1 |
-
<?xml version="1.0" encoding="utf-8" ?>
|
2 |
-
<dwsync>
|
3 |
-
<file name="loader.gif" server="wizardinternetsolutions.com//public_html/sandbox/" local="129567000735248832" remote="129566965200000000" />
|
4 |
-
</dwsync>
|
|
|
|
|
|
|
|
themes/default/close.png
DELETED
Binary file
|
themes/default/close_hover.png
DELETED
Binary file
|
themes/default/styles.css
DELETED
@@ -1,53 +0,0 @@
|
|
1 |
-
/*
|
2 |
-
* Easy Modal
|
3 |
-
* http://wizardinternetsolutions.com/project/easy-modal/
|
4 |
-
* v 0.9.0.6
|
5 |
-
* Default Theme
|
6 |
-
*/
|
7 |
-
#eModal-Overlay {
|
8 |
-
position:fixed;
|
9 |
-
top:0;
|
10 |
-
left:0;
|
11 |
-
height:100%;
|
12 |
-
width:100%;
|
13 |
-
background:black url(loader.gif) no-repeat scroll center center;
|
14 |
-
z-index:1000;
|
15 |
-
}
|
16 |
-
#eModal-Container {
|
17 |
-
position:absolute;
|
18 |
-
border:5px solid #fff;
|
19 |
-
-moz-border-radius:10px;
|
20 |
-
border-radius::10px;
|
21 |
-
padding:20px;
|
22 |
-
color:#fff;
|
23 |
-
background:#000;
|
24 |
-
z-index:1001;
|
25 |
-
}
|
26 |
-
#eModal-Container #close {
|
27 |
-
position:absolute;
|
28 |
-
top:-15px;
|
29 |
-
right:-15px;
|
30 |
-
background:#fff;
|
31 |
-
border:2px solid #333;
|
32 |
-
-webkit-border-radius: 20px;
|
33 |
-
-moz-border-radius: 20px;
|
34 |
-
border-radius: 20px;
|
35 |
-
color:#000;
|
36 |
-
width:20px;
|
37 |
-
height:20px;
|
38 |
-
line-height:16px;
|
39 |
-
text-align:center;
|
40 |
-
text-decoration:none;
|
41 |
-
font-size:20px;
|
42 |
-
}
|
43 |
-
#eModal-Container .eModal-title{color:#fff;font-size:20px;line-height:20px;margin:0;padding:5px 0 3px 10px;text-align:left;}
|
44 |
-
#eModal-Container p{margin:0;}
|
45 |
-
#eModal-Container .wpcf7-form-control-wrap{width:95%;margin:0 auto;}
|
46 |
-
#eModal-Container .wpcf7-form-control-wrap input, #eModal-Container .wpcf7-form-control-wrap textarea{width:100%;margin:0 auto;padding:2px 0;display:inline;border:none;}
|
47 |
-
#eModal-Container .wpcf7-form-control-wrap textarea{height:175px;}
|
48 |
-
#eModal-Container .modal-close{background:url(close.png) no-repeat transparent;cursor:pointer;display:inline;height:20px;position:absolute;right:-12px;top:-12px;width:20px;z-index: 3200;}
|
49 |
-
#eModal-Container .modal-close:hover{background-image:url(close_hover.png);}
|
50 |
-
#eModal-Container .wpcf7-response-output{bottom:-65px;left:-1.5%;position:absolute;width:90%;background:#000;color:#fff;}
|
51 |
-
#eModal-Container .wpcf7-not-valid-tip{background:#666;color:#fff;border:1px solid #FF0000;bottom:-3px;font-size:10pt;left:0;padding:0;position:absolute;top:-3px;width:100%;z-index:100;}
|
52 |
-
#eModal-Container .wpcf7-submit{float:right;background:#000;border:1px solid #fff;color:#fff;font-weight:bold;padding:2px 15px;margin-top:4px;-webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px; behavior: url(PIE.htc);}
|
53 |
-
#eModal-Container .wpcf7{margin:0 auto;width:90%;}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|