PluginProbe
Timed Content / 2.1.5
Timed Content v2.1.5
2.99 trunk 1.0 1.1 1.2 2.0 2.1 2.1.1 2.1.2 2.1.3 2.1.4 2.1.5 2.10 2.11 2.12 2.15 2.2 2.3 2.3.1 2.4 2.5 2.5.1 2.50 2.51 2.52 All 67 releases
timed-content / tinymce_plugin / dialog.php

dialog.php in Timed Content 2.1.5, at tinymce_plugin/dialog.php

224 lines 14.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2 <html xmlns="http://www.w3.org/1999/xhtml">
3 <head>
4 <title><?php _ex('Add Timed Content shortcodes', 'TinyMCE Dialog - Dialog titlebar', 'timed-content'); ?></title>
5 <script type="text/javascript" src="<?php echo includes_url(); ?>/js/tinymce/tiny_mce_popup.js"></script>
6 <script type="text/javascript" src="<?php echo includes_url(); ?>/js/tinymce/utils/mctabs.js"></script>
7 <?php wp_print_styles(); ?>
8 <style>
9 .panel_wrapper {
10 height: 350px;
11 }
12 div.ui-datepicker-div {
13 font-size: 10px;
14 }
15 div.ui-timepicker-div {
16 font-size: 10px;
17 }
18 div.tabs ul li {
19 cursor: pointer;
20 }
21 </style>
22 <?php wp_print_scripts(); ?>
23 <script type="text/javascript">
24 <?php echo $this->__getRulesJS(); ?>
25 var tags = { 'client': '<?php echo TIMED_CONTENT_CLIENT_TAG; ?>',
26 'server': '<?php echo TIMED_CONTENT_SERVER_TAG; ?>',
27 'rule': '<?php echo TIMED_CONTENT_RULE_TAG; ?>' };
28 var datepickerFormat = "<?php _ex( "MM d, yy", "Date format for jQuery UI Datepicker", 'timed-content' ); ?>";
29 var errorMessages = { 'clientNoShow': '<?php _e( 'When using the Show action, the Show time must be at least 1 second.', 'timed-content' ); ?>',
30 'clientNoHide': '<?php _e( 'When using the Hide action, the Hide time must be at least 1 second.', 'timed-content' ); ?>',
31 'clientHideBeforeShow': '<?php _e( 'When using both Show and Hide actions, the Hide time must be later than the Show time.', 'timed-content' ); ?>',
32 'clientNoAction': '<?php _e( 'Please select an action to perform.', 'timed-content' ); ?>',
33 'serverNoShowDate': '<?php _e( 'Please set a date for the Show action.', 'timed-content' ); ?>',
34 'serverNoShowTime': '<?php _e( 'Please set a time for the Show action.', 'timed-content' ); ?>',
35 'serverNoHideDate': '<?php _e( 'Please set a date for the Hide action.', 'timed-content' ); ?>',
36 'serverNoHideTime': '<?php _e( 'Please set a time for the Hide action.', 'timed-content' ); ?>',
37 'serverHideBeforeShow': '<?php _e( 'When using both Show and Hide actions, the Hide time must be later than the Show time.', 'timed-content' ); ?>',
38 'serverNoAction': '<?php _e( 'Please select an action to perform.', 'timed-content' ); ?>' };
39 </script>
40 <script type="text/javascript" src="<?php echo TIMED_CONTENT_PLUGIN_URL; ?>/tinymce_plugin/dialog.js"></script>
41 </head>
42 <body style="display: none">
43 <div class="tabs">
44 <ul>
45 <li id="client_tab" class="current" onclick="javascript:mcTabs.displayTab('client_tab','client_panel');">
46 <span><?php _ex('Client', 'TinyMCE Dialog - Client tab label', 'timed-content'); ?></span></li>
47 <li id="server_tab" onclick="javascript:mcTabs.displayTab('server_tab','server_panel');">
48 <span><?php _ex('Server', 'TinyMCE Dialog - Server tab label', 'timed-content'); ?></span></li>
49 <li id="rules_tab" onclick="javascript:mcTabs.displayTab('rules_tab','rules_panel');">
50 <span><?php _ex('Timed Content Rules', 'TinyMCE Dialog - Timed Content Rules tab label', 'timed-content'); ?></span>
51 </li>
52 </ul>
53 </div>
54 <div class="panel_wrapper">
55 <div id="client_panel" class="panel current">
56 <form name="TimedContentDialogClient" id="TimedContentDialogClient"
57 onsubmit="TimedContentDialog.client_action();return false;" action="#">
58 <p><?php _ex('Select the actions you wish to perform and the times after the Page/Post is loaded when they should occur.', 'TinyMCE Dialog - Client tab instructions', 'timed-content'); ?></p>
59 <fieldset>
60 <legend>
61 <input name="do_client_show" type="checkbox" id="do_client_show" value="show"/>
62 <label
63 for="do_client_show"><?php _ex('Show', 'TinyMCE Dialog - Show action label', 'timed-content'); ?> </label>
64 </legend>
65 <p><label
66 for="client_show_minutes"><?php _ex('Time (mm:ss)', 'TinyMCE Dialog - Time count label', 'timed-content'); ?>
67 :</label>
68 <input id="client_show_minutes" name="client_show_minutes" type="text" class="text" size="2"
69 disabled="disabled"/>
70 :
71 <input id="client_show_seconds" name="client_show_seconds" type="text" class="text" size="2"
72 disabled="disabled"/>
73 </p>
74
75 <p><label
76 for="client_show_fade"><?php _ex('Fade in (ms)', 'TinyMCE Dialog - Fade-in label', 'timed-content'); ?>
77 :</label>
78 <input id="client_show_fade" name="client_show_fade" type="text" class="text" size="4"
79 disabled="disabled"/>
80 <em>(<?php _ex('Optional', 'TinyMCE Dialog - Optional checkbox HTML label', 'timed-content'); ?>
81 )</em>
82 </p>
83 </fieldset>
84 <fieldset>
85 <legend>
86 <input name="do_client_hide" type="checkbox" id="do_client_hide" value="hide"/>
87 <label
88 for="do_client_hide"><?php _ex('Hide', 'TinyMCE Dialog - Hide action label', 'timed-content'); ?></label>
89 </legend>
90 <p><label
91 for="client_hide_minutes"><?php _ex('Time (mm:ss)', 'TinyMCE Dialog - Time count label', 'timed-content'); ?>
92 :</label>
93 <input id="client_hide_minutes" name="client_hide_minutes" type="text" class="text" size="2"
94 disabled="disabled"/>
95 :
96 <input id="client_hide_seconds" name="client_hide_seconds" type="text" class="text" size="2"
97 disabled="disabled"/>
98 </p>
99
100 <p><label
101 for="client_hide_fade"><?php _ex('Fade out (ms)', 'TinyMCE Dialog - Fade-out label', 'timed-content'); ?>
102 :</label>
103 <input id="client_hide_fade" name="client_hide_fade" type="text" class="text" size="4"
104 disabled="disabled"/>
105 <em>(<?php _ex('Optional', 'TinyMCE Dialog - Optional checkbox HTML label', 'timed-content'); ?>
106 )</em>
107 </p>
108 </fieldset>
109 <fieldset>
110 <legend>
111 <?php _ex('Display Mode', 'TinyMCE Dialog - Display Mode label', 'timed-content'); ?></legend>
112 <p><input id="client_display_tag_div" name="client_display_tag" type="radio" class="text"
113 checked="checked"/>
114 <label
115 for="client_display_tag_div"><?php _ex('Enclose content using <code>&lt;div&gt;</code> tags (block-level)', 'TinyMCE Dialog - Display mode DIV HTML description', 'timed-content'); ?></label>
116 <input id="client_display_tag_span" name="client_display_tag" type="radio" class="text"/>
117 <label
118 for="client_display_tag_span"><?php _ex('Enclose content using <code>&lt;span&gt;</code> tags (inline)', 'TinyMCE Dialog - Display mode SPAN HTML description', 'timed-content'); ?></label>
119 </p>
120 </fieldset>
121 <div class="mceActionPanel">
122 <input type="button" id="insert" name="insert"
123 value="<?php _ex('Insert', 'TinyMCE Dialog - Insert button HTML label', 'timed-content'); ?>"
124 onclick="TimedContentDialog.client_action();"/>
125 <input type="button" id="cancel" name="cancel"
126 value="<?php _ex('Cancel', 'TinyMCE Dialog - Cancel button HTML label', 'timed-content'); ?>"
127 onclick="tinyMCEPopup.close();"/>
128 </div>
129 </form>
130 </div>
131 <div id="server_panel" class="panel">
132 <form name="TimedContentDialogServer" id="TimedContentDialogServer"
133 onsubmit="TimedContentDialog.server_action();return false;" action="#">
134 <p><?php _ex('Select the actions you wish to perform and the dates/times when they should occur.', 'TinyMCE Dialog - Server tab instructions', 'timed-content'); ?></p>
135
136 <p>
137 <input name="server_debug" type="checkbox" id="server_debug" value="true"/>
138 <label
139 for="server_debug"><?php _ex('Add debugging messages (Only logged-in users who can edit this Post/Page will see them)', 'TinyMCE Dialog - Server debugging label', 'timed-content'); ?></label>
140 </p>
141
142 <p><?php _e('Current Date/Time ', 'timed-content'); ?>
143 : <?php echo date(get_option('date_format') . ' ' . get_option('time_format'), current_time('timestamp', 0)); ?></p>
144 <fieldset>
145 <legend>
146 <input name="do_server_show" type="checkbox" id="do_server_show" value="show"/>
147 <label
148 for="do_server_show"><?php _ex('Show', 'TinyMCE Dialog - Show action label', 'timed-content'); ?></label>
149 </legend>
150 <p><label for="server_show_date"><?php _ex('Date', 'Date field label', 'timed-content'); ?>:</label>
151 <input name="server_show_date" type="text" disabled="disabled" class="text" id="server_show_date"
152 style="width: 175px;"/>
153 <label for="server_show_time"><?php _ex('Time', 'Time field label', 'timed-content'); ?>:</label>
154 <input name="server_show_time" type="text" disabled="disabled" class="text" id="server_show_time"
155 style="width: 125px;"/>
156 </p>
157 </fieldset>
158 <fieldset>
159 <legend>
160 <input name="do_server_hide" type="checkbox" id="do_server_hide" value="hide"/>
161 <label
162 for="do_server_hide"><?php _ex('Hide', 'TinyMCE Dialog - Hide action label', 'timed-content'); ?></label>
163 </legend>
164 <p><label for="server_hide_date"><?php _ex('Date', 'Date field label', 'timed-content'); ?>:</label>
165 <input name="server_hide_date" type="text" disabled="disabled" class="text" id="server_hide_date"
166 style="width: 175px;"/>
167 <label for="server_hide_time"><?php _ex('Time', 'Time field label', 'timed-content'); ?>:</label>
168 <input name="server_hide_time" type="text" disabled="disabled" class="text" id="server_hide_time"
169 style="width: 125px;"/>
170 </p>
171 </fieldset>
172 <fieldset>
173 <legend>
174 <?php _ex('Timezone', 'TinyMCE Dialog - Timezone fieldset label', 'timed-content'); ?>
175 </legend>
176 <p><?php _ex('Select a city whose timezone you wish to use', 'TinyMCE Dialog - Timezone SELECT HTML label', 'timed-content'); ?>
177 :
178 <select name="server_tz" id="server_tz" style="width: auto;">
179 <?php echo customFieldsInterface::__generateTimezoneSelectOptions(get_option('timezone_string')); ?>
180 </select>
181 </p>
182
183 <p><?php _e('Wordpress Timezone', 'timed-content'); ?>: <?php echo get_option('timezone_string'); ?></p>
184 </fieldset>
185 <div class="mceActionPanel">
186 <input type="button" id="insert" name="insert"
187 value="<?php _ex('Insert', 'TinyMCE Dialog - Insert button HTML label', 'timed-content'); ?>"
188 onclick="TimedContentDialog.server_action();"/>
189 <input type="button" id="cancel" name="cancel"
190 value="<?php _ex('Cancel', 'TinyMCE Dialog - Cancel button HTML label', 'timed-content'); ?>"
191 onclick="tinyMCEPopup.close();"/>
192 </div>
193 </form>
194 </div>
195 <div id="rules_panel" class="panel">
196 <form name="TimedContentDialogRules" id="TimedContentDialogRules"
197 onsubmit="TimedContentDialog.rules_action();return false;" action="#">
198 <p><?php _ex('Select the Timed Content Rule you wish to use. Only rules without any warnings will appear below.', 'TinyMCE Dialog - Timed Content Rules tab instructions', 'timed-content'); ?></p>
199
200 <p><?php _ex('Rule', 'TinyMCE Dialog - Timed Content Rules SELECT HTML label', 'timed-content'); ?>:
201 <select name="rules_list" id="rules_list" style="width: auto;">
202 <!-- options list generated using $this->__getRulesJS() above and TimedContentDialog.init JS function in /tinymce_plugin/js/dialog.js -->
203 </select>
204 </p>
205 <fieldset>
206 <legend>
207 <?php _ex('Description', 'TinyMCE Dialog - Timed Content Rules description label', 'timed-content'); ?> </legend>
208 <p>
209 <span id="rules_desc"></span>
210 </p>
211 </fieldset>
212 <div class="mceActionPanel">
213 <input type="button" id="insert" name="insert"
214 value="<?php _ex('Insert', 'TinyMCE Dialog - Insert button HTML label', 'timed-content'); ?>"
215 onclick="TimedContentDialog.rules_action();"/>
216 <input type="button" id="cancel" name="cancel"
217 value="<?php _ex('Cancel', 'TinyMCE Dialog - Cancel button HTML label', 'timed-content'); ?>"
218 onclick="tinyMCEPopup.close();"/>
219 </div>
220 </form>
221 </div>
222 </div>
223 </body>
224