EZP Maintenance Mode - Version 0.6.0

Version Description

  • Added ability to create custom mini themes
  • Added ability to add custom styling to existing mini themes
  • Added notification to prevent you from accidentally leaving your site in maintenance mode.
  • Added captions to mini-themes
  • Fixed compatibility with PHP 5.2
  • Misc code cleanup
Download this release

Release Info

Developer bobriley
Plugin Icon 128x128 EZP Maintenance Mode
Version 0.6.0
Comparing to
See all releases

Code changes from version 0.5.1 to 0.6.0

classes/class-easy-pie-maintenance-mode.php DELETED
@@ -1,497 +0,0 @@
1
- <?php
2
- require_once("class-easy-pie-utility.php");
3
- require_once("class-easy-pie-plugin-base.php");
4
-
5
- if (!class_exists('Easy_Pie_Maintenance_Mode')) {
6
-
7
- /**
8
- * Main class of Easy Pie Maintenance Mode plugin
9
- *
10
- * @author Bob Riley
11
- */
12
- class Easy_Pie_Maintenance_Mode extends Easy_Pie_Plugin_Base {
13
- // Constants
14
-
15
- const OPTIONS_GROUP_NAME = 'easy-pie-mm-options-group';
16
- const OPTION_NAME = 'easy-pie-mm-options';
17
- const PAGE_KEY = 'easy-pie-mm';
18
- const PLUGIN_SLUG = 'easy-pie-maintenance-mode';
19
- const PLUGIN_VERSION = 0.5;
20
-
21
- // Variables
22
- private $options;
23
-
24
- /**
25
- * Constructor
26
- */
27
- function __construct() {
28
-
29
- parent::__construct(Easy_Pie_Maintenance_Mode::PLUGIN_SLUG);
30
-
31
- $this->add_class_action('plugins_loaded', 'plugins_loaded_handler');
32
-
33
- // RSR TODO Bug - is_admin just says if admin panel is attempting to be displayed - NOT to see if someone is an admin
34
- if (is_admin() == true) {
35
-
36
- //- Hook Handlers
37
- register_activation_hook(__FILE__, array('Easy_Pie_Maintenance_Mode', 'activate'));
38
- register_deactivation_hook(__FILE__, array('Easy_Pie_Maintenance_Mode', 'deactivate'));
39
- register_uninstall_hook(__FILE__, array('Easy_Pie_Maintenance_Mode', 'uninstall'));
40
-
41
- //- Actions
42
- $this->add_class_action('admin_init', 'admin_init_handler');
43
- $this->add_class_action('admin_menu', 'add_to_admin_menu');
44
- } else if ($this->get_option_value("enabled") == true) {
45
-
46
- $this->add_class_action('template_redirect', 'display_maintenance_page');
47
- }
48
- }
49
-
50
- function add_class_action($tag, $method_name) {
51
-
52
- return add_action($tag, array($this, $method_name));
53
- }
54
-
55
- /**
56
- * Display the maintenance page
57
- */
58
- public function display_maintenance_page() {
59
-
60
- // For now
61
- if (!is_user_logged_in()) {
62
-
63
- header('HTTP/1.1 503 Service Temporarily Unavailable');
64
- header('Status: 503 Service Temporarily Unavailable');
65
- header('Retry-After: 86400'); // RSR TODO: Put in the retry time later
66
-
67
- $key = $this->get_option_value("page_template_key");
68
- $dir = $this->get_template_path($key);
69
- $filename = $dir . "/page.html";
70
-
71
- $template_url = plugins_url() . "/easy-pie-maintenance-mode/mini-themes/" . $key;
72
-
73
- $contents = file_get_contents($filename);
74
- $contents = $this->replace_page_template_fields($contents, $template_url);
75
-
76
- if ($contents != false) {
77
-
78
- echo $contents;
79
- } else {
80
-
81
- $this->debug(__("Problem reading template ", Easy_Pie_Maintenance_Mode::PLUGIN_SLUG) . $key);
82
- }
83
-
84
- exit();
85
- }
86
- }
87
-
88
- private function replace_page_template_fields($contents, $template_url) {
89
-
90
- // rsr todo replace value per http://stackoverflow.com/questions/7980741/efficient-way-to-replace-placeholders-with-variables
91
- $option_array = get_option(Easy_Pie_Maintenance_Mode::OPTION_NAME);
92
-
93
- $headline = $option_array['headline'];
94
- $header = $option_array['header'];
95
- $message = $option_array['message'];
96
- $title = $option_array['title'];
97
- $logo_url = $option_array['logo_url'];
98
-
99
- $values = array(
100
- '{{headline}}' => $headline,
101
- '{{header}}' => $header,
102
- '{{message}}' => $message,
103
- '{{title}}' => $title,
104
- '{{logo_url}}' => $logo_url,
105
- './' => $template_url . "/"
106
- );
107
-
108
- return strtr($contents, $values);
109
- }
110
-
111
- // <editor-fold defaultstate="collapsed" desc="Hook Handlers">
112
- public static function activate() {
113
-
114
- // RSR TODO: Do initial setup of database/configuration
115
- }
116
-
117
- public static function deactivate() {
118
- //No actions needed yet
119
- }
120
-
121
- public static function uninstall() {
122
-
123
- }
124
-
125
- // </editor-fold>
126
-
127
- public function enqueue_scripts() {
128
-
129
- $jsRoot = plugins_url("/../js", __FILE__);
130
-
131
- wp_enqueue_script('jquery');
132
- wp_enqueue_script('jquery.bxslider', $jsRoot . "/jquery.bxslider.min.js", array("jquery"));
133
- wp_enqueue_script("easy_pie_mm_functions", $jsRoot . "/functions.js", array("jquery", "jquery.bxslider"));
134
-
135
- wp_enqueue_media();
136
- }
137
-
138
- /**
139
- * enqueue_styles
140
- * Loads the required css links only for this plugin */
141
- public function enqueue_styles() {
142
- $styleRoot = plugins_url("/../styles", __FILE__);
143
-
144
- wp_register_style('jquery.bxslider.css', $styleRoot . '/jquery.bxslider.css');
145
- wp_enqueue_style('jquery.bxslider.css');
146
-
147
- wp_register_style('easy-pie-styles.css', $styleRoot . '/easy-pie-styles.css');
148
- wp_enqueue_style('easy-pie-styles.css');
149
- }
150
-
151
- // <editor-fold defaultstate="collapsed" desc=" Action Handlers ">
152
- public function plugins_loaded_handler() {
153
-
154
- $this->init_localization();
155
- $this->upgrade_processing();
156
- $this->init_options();
157
- }
158
-
159
- public function init_localization() {
160
-
161
- load_plugin_textdomain(Easy_Pie_Maintenance_Mode::PLUGIN_SLUG, FALSE, Easy_Pie_Maintenance_Mode::PLUGIN_SLUG . '/languages/');
162
- }
163
-
164
- public function admin_init_handler() {
165
-
166
- register_setting(Easy_Pie_Maintenance_Mode::OPTIONS_GROUP_NAME, Easy_Pie_Maintenance_Mode::OPTION_NAME, array($this, 'validate_options'));
167
-
168
- $this->add_settings_sections();
169
- $this->add_filters();
170
- }
171
-
172
- private function add_filters() {
173
-
174
- add_filter('plugin_action_links', array($this, 'get_action_links'), 10, 2);
175
- }
176
-
177
- function get_action_links($links, $file) {
178
-
179
- if ($file == "easy-pie-maintenance-mode/easy-pie-maintenance-mode.php") {
180
-
181
- // the anchor tag and href to the URL we want. For a "Settings" link, this needs to be the url of your settings page
182
- $settings_link = '<a href="' . get_bloginfo('wpurl') . '/wp-admin/admin.php?page=easy-pie-mm">Settings</a>';
183
- // add the link to the list
184
- array_unshift($links, $settings_link);
185
- }
186
-
187
- return $links;
188
- }
189
-
190
- private function get_option_value($subkey) {
191
-
192
- $optionArray = get_option(Easy_Pie_Maintenance_Mode::OPTION_NAME);
193
-
194
- return $optionArray[strtolower($subkey)];
195
- }
196
-
197
- // <editor-fold defaultstate="collapsed" desc=" Settings Logic ">
198
-
199
- function upgrade_processing() {
200
- // RSR: In future versions compare where we are at with what's in the system and take action
201
- }
202
-
203
- function init_options() {
204
-
205
- $this->options = get_option(Easy_Pie_Maintenance_Mode::OPTION_NAME);
206
-
207
- if ($this->options == false) {
208
-
209
- $this->options = array();
210
- }
211
-
212
- Easy_Pie_Utility::set_option($this->options, 'plugin_version', Easy_Pie_Maintenance_Mode::PLUGIN_VERSION);
213
-
214
- Easy_Pie_Utility::set_default_option($this->options, 'enabled', false);
215
- Easy_Pie_Utility::set_default_option($this->options, 'page_template_key', "plain");
216
- Easy_Pie_Utility::set_default_option($this->options, 'title', null);
217
- Easy_Pie_Utility::set_default_option($this->options, 'header', null);
218
- Easy_Pie_Utility::set_default_option($this->options, 'headline', null);
219
- Easy_Pie_Utility::set_default_option($this->options, 'message', null);
220
- Easy_Pie_Utility::set_default_option($this->options, 'logo_url', null);
221
-
222
- update_option(Easy_Pie_Maintenance_Mode::OPTION_NAME, $this->options);
223
- }
224
-
225
- public function add_settings_sections() {
226
-
227
- $section_id = 'easy-pie-mm-control-section';
228
- add_settings_section($section_id, 'Control', array($this, 'render_control_section'), Easy_Pie_Maintenance_Mode::PAGE_KEY);
229
- add_settings_field('easy-pie-mm-mode-on', __('Enabled', Easy_Pie_Maintenance_Mode::PLUGIN_SLUG), array($this, 'render_checkbox_field'), Easy_Pie_Maintenance_Mode::PAGE_KEY, $section_id, array('id' => 'easy-pie-mm-mode-on', 'subkey' => 'enabled'));
230
-
231
- $section_id = 'easy-pie-mm-theme-section';
232
- add_settings_section($section_id, __('Visuals', Easy_Pie_Maintenance_Mode::PLUGIN_SLUG), array($this, 'render_theme_section'), Easy_Pie_Maintenance_Mode::PAGE_KEY);
233
- add_settings_field('easy-pie-mm-theme', __('Page', Easy_Pie_Maintenance_Mode::PLUGIN_SLUG), array($this, 'render_active_theme_selector'), Easy_Pie_Maintenance_Mode::PAGE_KEY, $section_id, array('id' => 'easy-pie-mm-theme', 'subkey' => 'page_template_key'));
234
-
235
- $section_id = 'easy-pie-mm-template_fields-section';
236
- add_settings_section($section_id, __('Fields', Easy_Pie_Maintenance_Mode::PLUGIN_SLUG), array($this, 'render_template_fields_section'), Easy_Pie_Maintenance_Mode::PAGE_KEY);
237
- add_settings_field('easy-pie-mm-field-title', __('Title', Easy_Pie_Maintenance_Mode::PLUGIN_SLUG), array($this, 'render_text_field'), Easy_Pie_Maintenance_Mode::PAGE_KEY, $section_id, array('id' => 'easy-pie-mm-field-title', 'subkey' => 'title'));
238
- add_settings_field('easy-pie-mm-field-header', __('Header', Easy_Pie_Maintenance_Mode::PLUGIN_SLUG), array($this, 'render_text_field'), Easy_Pie_Maintenance_Mode::PAGE_KEY, $section_id, array('id' => 'easy-pie-mm-field-header', 'subkey' => 'header'));
239
- add_settings_field('easy-pie-mm-field-headline', __('Headline', Easy_Pie_Maintenance_Mode::PLUGIN_SLUG), array($this, 'render_text_field'), Easy_Pie_Maintenance_Mode::PAGE_KEY, $section_id, array('id' => 'easy-pie-mm-field-headline', 'subkey' => 'headline'));
240
- add_settings_field('easy-pie-mm-field-message', __('Message', Easy_Pie_Maintenance_Mode::PLUGIN_SLUG), array($this, 'render_text_area'), Easy_Pie_Maintenance_Mode::PAGE_KEY, $section_id, array('id' => 'easy-pie-mm-field-message', 'subkey' => 'message', 'size' => 80));
241
- add_settings_field('easy-pie-mm-field-logo', __('Logo', Easy_Pie_Maintenance_Mode::PLUGIN_SLUG), array($this, 'render_logo_field'), Easy_Pie_Maintenance_Mode::PAGE_KEY, $section_id, array('id' => 'easy-pie-mm-field-logo', 'subkey' => 'logo_url'));
242
- }
243
-
244
- public function render_text_field($args) {
245
- $options = get_option(Easy_Pie_Maintenance_Mode::OPTION_NAME);
246
- $subkey = $args['subkey'];
247
- $id = $args['id'];
248
- $optionExpression = Easy_Pie_Maintenance_Mode::OPTION_NAME . "[" . $subkey . "]";
249
- $currentValue = $options[$subkey];
250
- $size = 50;
251
-
252
- if(array_key_exists('size', $args)) {
253
- $size = $args['size'];
254
- }
255
-
256
- ?>
257
- <div>
258
- <input id="<?php echo $id; ?>" name='<?php echo $optionExpression; ?>' size="<?php echo $size; ?>" value="<?php echo $currentValue; ?>"/>
259
- </div>
260
- <?php
261
- }
262
-
263
- public function render_text_area($args) {
264
- $options = get_option(Easy_Pie_Maintenance_Mode::OPTION_NAME);
265
- $subkey = $args['subkey'];
266
- $id = $args['id'];
267
- $optionExpression = Easy_Pie_Maintenance_Mode::OPTION_NAME . "[" . $subkey . "]";
268
- $currentValue = $options[$subkey];
269
- ?>
270
- <div>
271
- <textarea cols="53" rows="5" id="<?php echo $id; ?>" name='<?php echo $optionExpression; ?>'><?php echo $currentValue; ?></textarea>
272
- <p><small><?php _e("HTML tags are allowed. e.g. Add &lt;br/&gt; for break.", Easy_Pie_Maintenance_Mode::PLUGIN_SLUG); ?></small></p>
273
- </div>
274
- <?php
275
- }
276
-
277
-
278
- // RSR: Why the hell do we need to set value to 1?
279
- public function render_checkbox_field($args) {
280
- $options = get_option(Easy_Pie_Maintenance_Mode::OPTION_NAME);
281
- $subkey = $args['subkey'];
282
- $id = $args['id'];
283
-
284
- if (array_key_exists('small_text', $args)) {
285
-
286
- $small_text = $args['small_text'];
287
- }
288
-
289
-
290
- $optionExpression = Easy_Pie_Maintenance_Mode::OPTION_NAME . "[" . $subkey . "]";
291
- $currentValue = $options[$subkey];
292
-
293
- $checkedText = checked(1, $options[$subkey], false);
294
- ?>
295
- <div>
296
- <input style="margin-right:5px;" value="1" id="<?php echo $id; ?>" type="checkbox" name="<?php echo $optionExpression; ?>" <?php echo $checkedText; ?> >Yes</input>
297
- <?php
298
- if (isset($small_text)) {
299
- echo "<p><small>" . $small_text . "</small></p>";
300
- }
301
- ?>
302
- </div>
303
- <?php
304
- }
305
-
306
- public function render_logo_field() {
307
- $options = get_option(Easy_Pie_Maintenance_Mode::OPTION_NAME);
308
- $optionExpression = Easy_Pie_Maintenance_Mode::OPTION_NAME . "[logo_url]";
309
- $currentValue = $options["logo_url"];
310
- ?>
311
-
312
- <div>
313
- <input id="easy-pie-mm-field-logo" type="text" name="<?php echo $optionExpression; ?>" size="40" value="<?php echo $currentValue; ?>" />
314
- <input id="easy-pie-mm-upload-logo-button" type="button" value="Upload" />
315
-
316
- <?php
317
- if (empty($currentValue)) {
318
- $displayModifier = "display:none;";
319
- } else {
320
- $displayModifier = "";
321
- }
322
- ?>
323
-
324
- <div >
325
- <img id="easy-pie-mm-field-logo-preview" src="<?php echo $currentValue; ?>" style="<?php echo $displayModifier; ?>max-height:170px;max-width:170px;box-shadow: 1px 7px 20px -4px rgba(34,34,34,1);padding: 5px;border: black solid 1px;margin-top: 14px;"/>
326
- </div>
327
- </div>
328
-
329
- <?php
330
- }
331
-
332
- public function render_control_section() {
333
- // echo 'TODO: Theme is used to change what is displayed. Blah blah blah..';
334
- }
335
-
336
- public function render_theme_section() {
337
- // echo 'TODO: Theme is used to change what is displayed. Blah blah blah..';
338
- }
339
-
340
- public function render_template_fields_section() {
341
- // echo 'TODO: Theme is used to change what is displayed. Blah blah blah..';
342
- echo '<small >' . __("All fields are optional", Easy_Pie_Maintenance_Mode::PLUGIN_SLUG) . '</small>';
343
- }
344
-
345
- private function get_template_path($page_template_key) {
346
-
347
- $__dir__ = dirname(__FILE__);
348
-
349
- return $__dir__ . "/../mini-themes/" . $page_template_key;
350
- }
351
-
352
- public function render_active_theme_selector($args) {
353
-
354
- $__dir__ = dirname(__FILE__);
355
-
356
- $path = $__dir__ . "/../mini-themes/";
357
-
358
- $dirs = glob($path . "*", GLOB_ONLYDIR);
359
-
360
- $options = get_option(Easy_Pie_Maintenance_Mode::OPTION_NAME);
361
- $subkey = $args['subkey'];
362
- $id = $args['id'];
363
- $optionExpression = Easy_Pie_Maintenance_Mode::OPTION_NAME . "[" . $subkey . "]";
364
- $currentValue = $options[$subkey];
365
- ?>
366
-
367
- <ul id="easy-pie-mm-bxslider">
368
-
369
- <?php
370
- $displayIndex = 0;
371
- $startingIndex = 0;
372
-
373
- $manifests = $this->get_manifests();
374
-
375
- foreach ($manifests as $manifest) {
376
- $slidePath = plugins_url("../mini-themes/" . $manifest->key . "/" . $manifest->screenshot, __FILE__);
377
-
378
- if ($manifest->key == $currentValue) {
379
- $startingIndex = $displayIndex;
380
- }
381
- ?>
382
- <li>
383
- <img idx="<?php echo $displayIndex; ?>" src="<?php echo $slidePath ?>" onclick="jQuery('#<?php echo $id; ?>').attr('value', '<?php echo $manifest->key; ?>');" />
384
- </li>
385
- <?php
386
- $displayIndex++;
387
- }
388
- ?>
389
- <!-- ... (repeat for every image in the gallery)-->
390
- </ul>
391
-
392
- <div id="easy-pie-mm-bxpager">
393
- <!-- <a data-slide-index="0" href=""><img src="/images/thumbs/tree_root.jpg" /></a>
394
- <a data-slide-index="1" href=""><img src="/images/thumbs/houses.jpg" /></a>
395
- <a data-slide-index="2" href=""><img src="/images/thumbs/hill_fence.jpg" /></a>-->
396
- <?php
397
- $displayIndex = 0;
398
- foreach ($manifests as $manifest) {
399
- $slidePath = plugins_url("../mini-themes/" . $manifest->key . "/" . $manifest->screenshot, __FILE__);
400
- ?>
401
-
402
- <a data-slide-index="<?php echo $displayIndex; ?>" href="">
403
- <img src="<?php echo $slidePath ?>" onclick="jQuery('#<?php echo $id; ?>').attr('value', '<?php echo $manifest->key; ?>');" />
404
- </a>
405
- <?php
406
- $displayIndex++;
407
- }
408
- ?>
409
- </div>
410
-
411
- <input displayIndex="<?php echo $startingIndex; ?>" style="visibility:hidden" id="<?php echo $id; ?>" name="<?php echo $optionExpression; ?>" value="<?php echo $currentValue; ?>"/>
412
- <?php
413
- }
414
-
415
- public function validate_options($raw_input_array) {
416
-
417
- // Create our array for storing the validated options
418
- $output = array();
419
-
420
- $this->scrub_checkbox_value($raw_input_array, 'enabled');
421
- $this->scrub_checkbox_value($raw_input_array, '503_redirect');
422
-
423
- // Loop through each of the incoming options
424
- foreach ($raw_input_array as $key => $value) {
425
-
426
- // Check to see if the current option has a value. If so, process it.
427
- if (isset($raw_input_array[$key])) {
428
-
429
- // Strip all HTML and PHP tags and properly handle quoted strings
430
- //$output[$key] = strip_tags(stripslashes($raw_input_array[$key]));
431
- $output[$key] = $raw_input_array[$key];
432
- }
433
- }
434
-
435
- return apply_filters(Easy_Pie_Maintenance_Mode::PAGE_KEY, $output, $raw_input_array);
436
- }
437
-
438
- private function scrub_checkbox_value(&$array, $key) {
439
-
440
- if (!array_key_exists($key, $array)) {
441
-
442
- $array[$key] = false;
443
- }
444
- }
445
-
446
- // </editor-fold>
447
-
448
- public function add_to_admin_menu() {
449
-
450
- // RSR TODO: Localize main page title and menu entry
451
- $page_hook_suffix = add_options_page("Easy Pie Maintenance Mode", "Maintenance Mode", "manage_options", Easy_Pie_Maintenance_Mode::PAGE_KEY, array($this, 'display_options_page'));
452
-
453
- add_action('admin_print_scripts-' . $page_hook_suffix, array($this, 'enqueue_scripts'));
454
-
455
- //Apply Styles
456
- add_action('admin_print_styles-' . $page_hook_suffix, array($this, 'enqueue_styles'));
457
- }
458
-
459
- // </editor-fold>
460
-
461
- function display_options_page() {
462
-
463
- $__dir__ = dirname(__FILE__);
464
-
465
- include($__dir__ . '/../pages/page-options.php');
466
- }
467
-
468
- private function get_manifests() {
469
-
470
- $__dir__ = dirname(__FILE__);
471
-
472
- $manifest_array = array();
473
- $path = $__dir__ . "/../mini-themes/";
474
- $dirs = glob($path . "*", GLOB_ONLYDIR);
475
-
476
- sort($dirs);
477
- foreach ($dirs as $dir) {
478
-
479
- // rsr put this as a helper function in the manifest class $slidePath = plugins_url("../mini-themes/" . $themeKey . "/screenshot.jpg", __FILE__);
480
-
481
- $manifest_text = file_get_contents($dir . "/manifest.json");
482
-
483
- if ($manifest_text != false) {
484
-
485
- $manifest = json_decode($manifest_text);
486
-
487
- array_push($manifest_array, $manifest);
488
- } else {
489
-
490
- $this->debug(__("problem reading manifest in ", Easy_Pie_Maintenance_Mode::PLUGIN_SLUG) . $dir . "(" . $dirs . ")");
491
- }
492
- }
493
-
494
- return $manifest_array;
495
- }
496
- }
497
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
classes/class-easy-pie-mm-constants.php ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /*
4
+ Easy Pie Maintenance Mode Plugin
5
+ Copyright (C) 2013, Synthetic Thought LLC
6
+ website: easypiewp.com contact: bob@easypiewp.com
7
+
8
+ Easy Pie Maintenance Mode Plugin is distributed under the GNU General Public License, Version 3,
9
+ June 2007. Copyright (C) 2007 Free Software Foundation, Inc., 51 Franklin
10
+ St, Fifth Floor, Boston, MA 02110, USA
11
+
12
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
13
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
14
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
15
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
16
+ ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
17
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
18
+ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
19
+ ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
20
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
21
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
22
+ */
23
+
24
+ if (!class_exists('Easy_Pie_MM_Constants')) {
25
+
26
+ /**
27
+ * Constants for Easy Pie Maintenance Mode Plugin
28
+ *
29
+ * @author Bob Riley <bob@easypiewp.com>
30
+ * @copyright 2013 Synthetic Thought LLC
31
+ */
32
+ class Easy_Pie_MM_Constants {
33
+ //const OPTIONS_GROUP_NAME = 'easy-pie-mm-options-group';
34
+
35
+ const OPTION_NAME = 'easy-pie-mm-options';
36
+ const MAIN_PAGE_KEY = 'easy-pie-mm-main-page';
37
+ const PLUGIN_SLUG = 'easy-pie-maintenance-mode';
38
+ const PLUGIN_VERSION = "0.6.0"; // RSR Version
39
+
40
+ /* Pseudo constants */
41
+
42
+ public static $PLUGIN_DIR;
43
+
44
+ public static function init() {
45
+
46
+ $__dir__ = dirname(__FILE__);
47
+
48
+ self::$PLUGIN_DIR = $__dir__ . "../" . self::PLUGIN_SLUG;
49
+ }
50
+
51
+ }
52
+
53
+ Easy_Pie_MM_Constants::init();
54
+ }
55
+ ?>
classes/class-easy-pie-mm-utility.php ADDED
@@ -0,0 +1,187 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ Easy Pie Maintenance Mode Plugin
4
+ Copyright (C) 2013, Synthetic Thought LLC
5
+ website: easypiewp.com contact: bob@easypiewp.com
6
+
7
+ Easy Pie Maintenance Mode Plugin is distributed under the GNU General Public License, Version 3,
8
+ June 2007. Copyright (C) 2007 Free Software Foundation, Inc., 51 Franklin
9
+ St, Fifth Floor, Boston, MA 02110, USA
10
+
11
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
12
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
13
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
14
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
15
+ ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
16
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
17
+ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
18
+ ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
19
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
20
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
21
+ */
22
+
23
+ require_once("class-easy-pie-mm-constants.php");
24
+
25
+ if (!class_exists('Easy_Pie_MM_Utility')) {
26
+
27
+ /**
28
+ * Utility methods for Easy Pie Maintenance Mode Plugin
29
+ *
30
+ * @author Bob Riley <bob@easypiewp.com>
31
+ * @copyright 2013 Synthetic Thought LLC
32
+ */
33
+ class Easy_Pie_MM_Utility {
34
+
35
+ // Pseudo-constants
36
+ public static $MINI_THEMES_USER_DIRECTORY;
37
+ public static $MINI_THEMES_STANDARD_DIRECTORY;
38
+ public static $MINI_THEMES_USER_URL;
39
+ public static $MINI_THEMES_STANDARD_URL;
40
+ public static $MINI_THEMES_IMAGES_URL;
41
+
42
+ public static function init() {
43
+
44
+ $__dir__ = dirname(__FILE__);
45
+
46
+ self::$MINI_THEMES_STANDARD_DIRECTORY = $__dir__ . "/../mini-themes/";
47
+ self::$MINI_THEMES_USER_DIRECTORY = (WP_CONTENT_DIR . "/" . Easy_Pie_MM_Constants::PLUGIN_SLUG . "/mini-themes/");
48
+
49
+ self::$MINI_THEMES_STANDARD_URL = plugins_url() . "/" . Easy_Pie_MM_Constants::PLUGIN_SLUG . "/mini-themes/";
50
+ self::$MINI_THEMES_USER_URL = content_url() . "/" . Easy_Pie_MM_Constants::PLUGIN_SLUG . "/mini-themes/";
51
+
52
+ self::$MINI_THEMES_IMAGES_URL = plugins_url() . "/" . Easy_Pie_MM_Constants::PLUGIN_SLUG . "/images/";
53
+ }
54
+
55
+ public static function _e($text) {
56
+
57
+ _e($text, Easy_Pie_MM_Constants::PLUGIN_SLUG);
58
+ }
59
+
60
+ public static function __($text) {
61
+
62
+ return __($text, Easy_Pie_MM_Constants::PLUGIN_SLUG);
63
+ }
64
+
65
+ public static function get_manifest_by_key($key) {
66
+
67
+ $manifests = self::get_manifests();
68
+
69
+ foreach ($manifests as $manifest) {
70
+
71
+ if ($manifest->key == $key) {
72
+
73
+ return $manifest;
74
+ }
75
+ }
76
+
77
+ return null;
78
+ }
79
+
80
+ public static function get_manifests() {
81
+
82
+ $user_manifest_array = self::get_manifests_in_directory(self::$MINI_THEMES_USER_DIRECTORY, self::$MINI_THEMES_USER_URL);
83
+ $standard_manifest_array = self::get_manifests_in_directory(self::$MINI_THEMES_STANDARD_DIRECTORY, self::$MINI_THEMES_STANDARD_URL);
84
+
85
+ $combined_manifest_array = &$user_manifest_array;
86
+
87
+ // stuff in user manifest array can override standard manifests
88
+ foreach ($standard_manifest_array as $sman) {
89
+
90
+ $contains = false;
91
+
92
+ foreach ($combined_manifest_array as $man) {
93
+
94
+ if ($sman->key == $man->key) {
95
+ $contains = true;
96
+ break;
97
+ }
98
+ }
99
+
100
+ if (!$contains) {
101
+ array_push($combined_manifest_array, $sman);
102
+ }
103
+ }
104
+ return $combined_manifest_array;
105
+ }
106
+
107
+ public static function get_manifests_in_directory($directory, $mini_theme_base_url) {
108
+
109
+ $manifest_array = array();
110
+ $dirs = glob($directory . "*", GLOB_ONLYDIR);
111
+
112
+ sort($dirs);
113
+
114
+ foreach ($dirs as $dir) {
115
+
116
+ $manifest = null;
117
+ $manifest_path = $dir . "/manifest.json";
118
+
119
+ if (file_exists($manifest_path)) {
120
+
121
+ $manifest_text = file_get_contents($manifest_path);
122
+
123
+ if ($manifest_text != false) {
124
+
125
+ $manifest = json_decode($manifest_text);
126
+ } else {
127
+
128
+ self::debug(self::__("problem reading manifest in ") . $dir . "(" . $dirs . ")");
129
+ }
130
+ } else {
131
+
132
+ // Manifest not present so assumption is they just want a generic mini-theme
133
+ $manifest = new stdClass();
134
+
135
+ self::add_property($manifest, 'title', basename($dir));
136
+ self::add_property($manifest, 'page', 'index.html');
137
+ self::add_property($manifest, 'description', 'User Mini Theme');
138
+ self::add_property($manifest, 'author_name', '');
139
+ self::add_property($manifest, 'website_url', '');
140
+ self::add_property($manifest, 'google_plus_author_url', '');
141
+ self::add_property($manifest, 'original_release_date', '2013/01/01');
142
+ self::add_property($manifest, 'latest_version_date', '2013/01/01');
143
+ self::add_property($manifest, 'version', '1.0.0');
144
+ self::add_property($manifest, 'release_notes', '');
145
+ self::add_property($manifest, 'screenshot', self::$MINI_THEMES_IMAGES_URL . "user-defined.png");
146
+ self::add_property($manifest, 'autodownload', false);
147
+ self::add_property($manifest, 'responsive', true);
148
+ }
149
+
150
+ if ($manifest != null) {
151
+
152
+ // RSR TODO: Have a way to give each item a unique key if it conflicts..?
153
+ self::add_property($manifest, 'key', basename($dir));
154
+ self::add_property($manifest, 'dir', $dir);
155
+ self::add_property($manifest, 'manifest_path', $manifest_path);
156
+ self::add_property($manifest, 'mini_theme_url', $mini_theme_base_url . $manifest->key);
157
+
158
+ array_push($manifest_array, $manifest);
159
+ }
160
+ }
161
+
162
+ return $manifest_array;
163
+ }
164
+
165
+ private static function add_property(&$obj, $property, $value) {
166
+
167
+ $obj = (array) $obj;
168
+ $obj[$property] = $value;
169
+ $obj = (object) $obj;
170
+ }
171
+
172
+ public static function debug($message) {
173
+
174
+ if (WP_DEBUG === true) {
175
+ if (is_array($message) || is_object($message)) {
176
+ error_log(Easy_Pie_MM_Constants::PLUGIN_SLUG . ":" . print_r($message, true));
177
+ } else {
178
+ error_log(Easy_Pie_MM_Constants::PLUGIN_SLUG . ":" . $message);
179
+ }
180
+ }
181
+ }
182
+
183
+ }
184
+
185
+ Easy_Pie_MM_Utility::init();
186
+ }
187
+ ?>
classes/class-easy-pie-mm.php ADDED
@@ -0,0 +1,571 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /*
4
+ Easy Pie Maintenance Mode Plugin
5
+ Copyright (C) 2013, Synthetic Thought LLC
6
+ website: easypiewp.com contact: bob@easypiewp.com
7
+
8
+ Easy Pie Maintenance Mode Plugin is distributed under the GNU General Public License, Version 3,
9
+ June 2007. Copyright (C) 2007 Free Software Foundation, Inc., 51 Franklin
10
+ St, Fifth Floor, Boston, MA 02110, USA
11
+
12
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
13
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
14
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
15
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
16
+ ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
17
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
18
+ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
19
+ ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
20
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
21
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
22
+ */
23
+
24
+ require_once("class-easy-pie-utility.php");
25
+ require_once("class-easy-pie-plugin-base.php");
26
+ require_once("class-easy-pie-mm-constants.php");
27
+ require_once("class-easy-pie-mm-utility.php");
28
+
29
+ if (!class_exists('Easy_Pie_MM')) {
30
+
31
+ /**
32
+ * Main class of Easy Pie Maintenance Mode plugin
33
+ *
34
+ * @author Bob Riley <bob@easypiewp.com>
35
+ * @copyright 2013 Synthetic Thought LLC
36
+ */
37
+ class Easy_Pie_MM extends Easy_Pie_Plugin_Base {
38
+
39
+ // Variables
40
+ private $options;
41
+
42
+ /**
43
+ * Constructor
44
+ */
45
+ function __construct($plugin_file_path) {
46
+
47
+ parent::__construct(Easy_Pie_MM_Constants::PLUGIN_SLUG);
48
+
49
+ // Pseudo-constant intialization
50
+
51
+ $this->add_class_action('plugins_loaded', 'plugins_loaded_handler');
52
+
53
+ // RSR TODO - is_admin() just says if admin panel is attempting to be displayed - NOT to see if someone is an admin
54
+ if (is_admin() == true) {
55
+
56
+ if ($this->get_option_value("enabled") == true) {
57
+
58
+ $this->add_class_action("admin_notices", "display_admin_notice");
59
+ }
60
+
61
+ //- Hook Handlers
62
+ register_activation_hook($plugin_file_path, array('Easy_Pie_MM', 'activate'));
63
+ register_deactivation_hook($plugin_file_path, array('Easy_Pie_MM', 'deactivate'));
64
+ register_uninstall_hook($plugin_file_path, array('Easy_Pie_MM', 'uninstall'));
65
+
66
+ //- Actions
67
+ $this->add_class_action('admin_init', 'admin_init_handler');
68
+ $this->add_class_action('admin_menu', 'add_to_admin_menu');
69
+ } else if ($this->get_option_value("enabled") == true) {
70
+
71
+ $this->add_class_action('template_redirect', 'display_maintenance_page');
72
+ }
73
+ }
74
+
75
+ function add_class_action($tag, $method_name) {
76
+
77
+ return add_action($tag, array($this, $method_name));
78
+ }
79
+
80
+ public function display_admin_notice() {
81
+
82
+ echo "<div class='updated'><a href='" . admin_url() . "options-general.php?page=" . Easy_Pie_MM_Constants::PLUGIN_SLUG . "'>" . $this->__("Maintenance Mode is On") . "</a></div>";
83
+ }
84
+
85
+ /**
86
+ * Display the maintenance page
87
+ */
88
+ public function display_maintenance_page() {
89
+
90
+ if ((!defined('EASY_PIE_MM_DISABLE') || (EASY_PIE_MM_DISABLE == false))) {
91
+
92
+ // For now
93
+ if (!is_user_logged_in()) {
94
+
95
+ header('HTTP/1.1 503 Service Temporarily Unavailable');
96
+ header('Status: 503 Service Temporarily Unavailable');
97
+ header('Retry-After: 86400'); // RSR TODO: Put in the retry time later
98
+
99
+ $key = $this->get_option_value("page_template_key");
100
+ $active_manifest_path = $this->get_option_value("active_manifest_path");
101
+
102
+ if (($active_manifest_path == null) || (strpos($active_manifest_path, $key) == false)) {
103
+
104
+ // Manifest path doesn't match the key so update it
105
+ $manifest = Easy_Pie_MM_Utility::get_manifest_by_key($key);
106
+
107
+ if ($manifest != null) {
108
+
109
+ $active_manifest_path = $manifest->manifest_path;
110
+ Easy_Pie_Utility::set_option($this->options, 'active_manifest_path', $active_manifest_path);
111
+ } else {
112
+
113
+ $this->debug("Couldn't find manifest for key " . $key);
114
+ }
115
+ } else {
116
+
117
+ $manifest = Easy_Pie_MM_Utility::load_manifest($active_manifest_path);
118
+ }
119
+
120
+ // $filename = $manifest->dir . "/" . $manifest->page;
121
+
122
+ $contents = file_get_contents($manifest->dir . "/" . $manifest->page);
123
+ $contents = $this->replace_page_template_fields($contents, $manifest->mini_theme_url);
124
+
125
+ if ($contents != false) {
126
+
127
+ echo $contents;
128
+ } else {
129
+
130
+ $this->debug($this->__("Problem reading template ") . $key);
131
+ }
132
+
133
+ exit();
134
+ }
135
+ }
136
+ }
137
+
138
+ private function replace_page_template_fields($contents, $mini_theme_url) {
139
+
140
+ // rsr todo replace value per http://stackoverflow.com/questions/7980741/efficient-way-to-replace-placeholders-with-variables
141
+ $option_array = get_option(Easy_Pie_MM_Constants::OPTION_NAME);
142
+
143
+ $headline = $option_array['headline'];
144
+ $header = $option_array['header'];
145
+ $message = $option_array['message'];
146
+ $title = $option_array['title'];
147
+ $logo_url = $option_array['logo_url'];
148
+ $css = $option_array['css'];
149
+
150
+ $values = array(
151
+ '{{headline}}' => $headline,
152
+ '{{header}}' => $header,
153
+ '{{message}}' => $message,
154
+ '{{title}}' => $title,
155
+ '{{logo_url}}' => $logo_url,
156
+ '{{css}}' => $css,
157
+ './' => $mini_theme_url . "/"
158
+ );
159
+
160
+ return strtr($contents, $values);
161
+ }
162
+
163
+ // <editor-fold defaultstate="collapsed" desc="Hook Handlers">
164
+ public static function activate() {
165
+
166
+ Easy_Pie_MM_Utility::debug("activate");
167
+
168
+ $dirCreate = mkdir(Easy_Pie_MM_Utility::$MINI_THEMES_USER_DIRECTORY, 0755, true);
169
+
170
+ Easy_Pie_MM_Utility::debug(Easy_Pie_MM_Utility::__("Tried to create ") . Easy_Pie_MM_Utility::$MINI_THEMES_USER_DIRECTORY . "=" . $dirCreate);
171
+ }
172
+
173
+ public static function deactivate() {
174
+
175
+ Easy_Pie_MM_Utility::debug("deactivate");
176
+ }
177
+
178
+ public static function uninstall() {
179
+
180
+ Easy_Pie_MM_Utility::debug("uninstall");
181
+ }
182
+
183
+ // </editor-fold>
184
+
185
+ public function enqueue_scripts() {
186
+
187
+ $jsRoot = plugins_url("/../js", __FILE__);
188
+
189
+ wp_enqueue_script('jquery');
190
+ wp_enqueue_script('jquery-ui-core');
191
+ wp_enqueue_script('jquery.bxslider', $jsRoot . "/jquery.bxslider.min.js", array("jquery"));
192
+ wp_enqueue_script("easy_pie_mm_functions", $jsRoot . "/functions.js", array("jquery", "jquery.bxslider"));
193
+
194
+ wp_enqueue_media();
195
+ }
196
+
197
+ /**
198
+ * enqueue_styles
199
+ * Loads the required css links only for this plugin */
200
+ public function enqueue_styles() {
201
+ $styleRoot = plugins_url("/../styles", __FILE__);
202
+
203
+ wp_register_style('jquery.bxslider.css', $styleRoot . '/jquery.bxslider.css');
204
+ wp_enqueue_style('jquery.bxslider.css');
205
+
206
+ wp_register_style('easy-pie-styles.css', $styleRoot . '/easy-pie-styles.css');
207
+ wp_enqueue_style('easy-pie-styles.css');
208
+ }
209
+
210
+ // <editor-fold defaultstate="collapsed" desc=" Action Handlers ">
211
+ public function plugins_loaded_handler() {
212
+
213
+ $this->init_localization();
214
+ $this->upgrade_processing();
215
+ $this->init_options();
216
+ }
217
+
218
+ public function init_localization() {
219
+
220
+ load_plugin_textdomain(Easy_Pie_MM_Constants::PLUGIN_SLUG, false, Easy_Pie_MM_Constants::PLUGIN_SLUG . '/languages/');
221
+ }
222
+
223
+ public function admin_init_handler() {
224
+
225
+ register_setting(Easy_Pie_MM_Constants::MAIN_PAGE_KEY, Easy_Pie_MM_Constants::OPTION_NAME, array($this, 'validate_options'));
226
+
227
+ $this->add_settings_sections();
228
+ $this->add_filters();
229
+ }
230
+
231
+ private function add_filters() {
232
+
233
+ add_filter('plugin_action_links', array($this, 'get_action_links'), 10, 2);
234
+ }
235
+
236
+ function get_action_links($links, $file) {
237
+
238
+ if ($file == "easy-pie-maintenance-mode/easy-pie-maintenance-mode.php") {
239
+
240
+ $settings_link = '<a href="' . get_bloginfo('wpurl') . '/wp-admin/admin.php?page=' . Easy_Pie_MM_Constants::PLUGIN_SLUG . '">Settings</a>';
241
+
242
+ array_unshift($links, $settings_link);
243
+ }
244
+
245
+ return $links;
246
+ }
247
+
248
+ private function get_option_value($subkey) {
249
+
250
+ $optionArray = get_option(Easy_Pie_MM_Constants::OPTION_NAME);
251
+
252
+ return $optionArray[strtolower($subkey)];
253
+ }
254
+
255
+ // <editor-fold defaultstate="collapsed" desc=" Settings Logic ">
256
+
257
+ function upgrade_processing() {
258
+ // RSR TODO: In future versions compare where we are at with what's in the system and take action
259
+ }
260
+
261
+ function init_options() {
262
+
263
+ $this->options = get_option(Easy_Pie_MM_Constants::OPTION_NAME);
264
+
265
+ if ($this->options == false) {
266
+
267
+ $this->options = array();
268
+ }
269
+
270
+ Easy_Pie_Utility::set_option($this->options, 'plugin_version', Easy_Pie_MM_Constants::PLUGIN_VERSION);
271
+
272
+ Easy_Pie_Utility::set_default_option($this->options, 'enabled', false);
273
+ Easy_Pie_Utility::set_default_option($this->options, 'page_template_key', "plain");
274
+ Easy_Pie_Utility::set_default_option($this->options, 'title', null);
275
+ Easy_Pie_Utility::set_default_option($this->options, 'header', null);
276
+ Easy_Pie_Utility::set_default_option($this->options, 'headline', null);
277
+ Easy_Pie_Utility::set_default_option($this->options, 'message', null);
278
+ Easy_Pie_Utility::set_default_option($this->options, 'logo_url', null);
279
+ Easy_Pie_Utility::set_default_option($this->options, 'active_manifest_path', null);
280
+ Easy_Pie_Utility::set_default_option($this->options, 'css', null);
281
+
282
+ update_option(Easy_Pie_MM_Constants::OPTION_NAME, $this->options);
283
+ }
284
+
285
+ public function add_settings_sections() {
286
+
287
+ $section_id = 'easy-pie-mm-control-section';
288
+ add_settings_section($section_id, 'Control', array($this, 'render_control_section'), Easy_Pie_MM_Constants::MAIN_PAGE_KEY);
289
+ add_settings_field('easy-pie-mm-mode-on', $this->__('Enabled'), array($this, 'render_checkbox_field'), Easy_Pie_MM_Constants::MAIN_PAGE_KEY, $section_id, array('id' => 'easy-pie-mm-mode-on', 'subkey' => 'enabled'));
290
+
291
+ $section_id = 'easy-pie-mm-theme-section';
292
+ add_settings_section($section_id, $this->__('Visuals'), array($this, 'render_theme_section'), Easy_Pie_MM_Constants::MAIN_PAGE_KEY);
293
+ add_settings_field('easy-pie-mm-theme', $this->__('Mini-theme'), array($this, 'render_active_theme_selector'), Easy_Pie_MM_Constants::MAIN_PAGE_KEY, $section_id, array('id' => 'easy-pie-mm-theme', 'subkey' => 'page_template_key'));
294
+
295
+ $section_id = 'easy-pie-mm-template_fields-section';
296
+ add_settings_section($section_id, $this->__('Fields'), array($this, 'render_template_fields_section'), Easy_Pie_MM_Constants::MAIN_PAGE_KEY);
297
+ add_settings_field('easy-pie-mm-field-title', $this->__('Title'), array($this, 'render_text_field'), Easy_Pie_MM_Constants::MAIN_PAGE_KEY, $section_id, array('id' => 'easy-pie-mm-field-title', 'subkey' => 'title'));
298
+ add_settings_field('easy-pie-mm-field-header', $this->__('Header'), array($this, 'render_text_field'), Easy_Pie_MM_Constants::MAIN_PAGE_KEY, $section_id, array('id' => 'easy-pie-mm-field-header', 'subkey' => 'header'));
299
+ add_settings_field('easy-pie-mm-field-headline', $this->__('Headline'), array($this, 'render_text_field'), Easy_Pie_MM_Constants::MAIN_PAGE_KEY, $section_id, array('id' => 'easy-pie-mm-field-headline', 'subkey' => 'headline'));
300
+ add_settings_field('easy-pie-mm-field-message', $this->__('Message'), array($this, 'render_text_area'), Easy_Pie_MM_Constants::MAIN_PAGE_KEY, $section_id, array('id' => 'easy-pie-mm-field-message', 'subkey' => 'message', 'size' => 80));
301
+ add_settings_field('easy-pie-mm-field-logo', $this->__('Logo'), array($this, 'render_logo_field'), Easy_Pie_MM_Constants::MAIN_PAGE_KEY, $section_id, array('id' => 'easy-pie-mm-field-logo', 'subkey' => 'logo_url'));
302
+ }
303
+
304
+ public function render_text_field($args) {
305
+ $options = get_option(Easy_Pie_MM_Constants::OPTION_NAME);
306
+ $subkey = $args['subkey'];
307
+ $id = $args['id'];
308
+ $optionExpression = Easy_Pie_MM_Constants::OPTION_NAME . "[" . $subkey . "]";
309
+ $currentValue = $options[$subkey];
310
+ $size = 68;
311
+
312
+ if (array_key_exists('size', $args)) {
313
+ $size = $args['size'];
314
+ }
315
+ ?>
316
+ <div>
317
+ <input id="<?php echo $id; ?>" name='<?php echo $optionExpression; ?>' size="<?php echo $size; ?>" value="<?php echo $currentValue; ?>"/>
318
+ </div>
319
+ <?php
320
+ }
321
+
322
+ public function render_text_area($args) {
323
+ $options = get_option(Easy_Pie_MM_Constants::OPTION_NAME);
324
+ $subkey = $args['subkey'];
325
+ $id = $args['id'];
326
+ $optionExpression = Easy_Pie_MM_Constants::OPTION_NAME . "[" . $subkey . "]";
327
+ $currentValue = $options[$subkey];
328
+ ?>
329
+ <div>
330
+ <textarea cols="71" rows="5" id="<?php echo $id; ?>" name='<?php echo $optionExpression; ?>'><?php echo $currentValue; ?></textarea>
331
+ <p><small><?php $this->_e("HTML tags are allowed. e.g. Add &lt;br/&gt; for break."); ?></small></p>
332
+ </div>
333
+ <?php
334
+ }
335
+
336
+ // RSR: Why the hell do we need to set value to 1?
337
+ public function render_checkbox_field($args) {
338
+ $options = get_option(Easy_Pie_MM_Constants::OPTION_NAME);
339
+ $subkey = $args['subkey'];
340
+ $id = $args['id'];
341
+
342
+ if (array_key_exists('small_text', $args)) {
343
+
344
+ $small_text = $args['small_text'];
345
+ }
346
+
347
+
348
+ $optionExpression = Easy_Pie_MM_Constants::OPTION_NAME . "[" . $subkey . "]";
349
+ $currentValue = $options[$subkey];
350
+
351
+ $checkedText = checked(1, $options[$subkey], false);
352
+ ?>
353
+ <div>
354
+ <input style="margin-right:5px;" value="1" id="<?php echo $id; ?>" type="checkbox" name="<?php echo $optionExpression; ?>" <?php echo $checkedText; ?> >Yes</input>
355
+ <?php
356
+ if (isset($small_text)) {
357
+ echo "<p><small>" . $small_text . "</small></p>";
358
+ }
359
+ ?>
360
+ </div>
361
+ <?php
362
+ }
363
+
364
+
365
+ public function render_logo_field() {
366
+ $options = get_option(Easy_Pie_MM_Constants::OPTION_NAME);
367
+ $optionExpression = Easy_Pie_MM_Constants::OPTION_NAME . "[logo_url]";
368
+ $currentValue = $options["logo_url"];
369
+ ?>
370
+
371
+ <div>
372
+ <input id="easy-pie-mm-field-logo" type="text" name="<?php echo $optionExpression; ?>" size="58" value="<?php echo $currentValue; ?>" />
373
+ <input id="easy-pie-mm-upload-logo-button" type="button" value="Upload" />
374
+
375
+ <?php
376
+ if (empty($currentValue)) {
377
+ $displayModifier = "display:none;";
378
+ } else {
379
+ $displayModifier = "";
380
+ }
381
+
382
+ ?>
383
+
384
+ <div >
385
+ <img id="easy-pie-mm-field-logo-preview" src="<?php echo $currentValue; ?>" style="<?php echo $displayModifier; ?>max-height:170px;max-width:170px;box-shadow: 1px 7px 20px -4px rgba(34,34,34,1);padding: 5px;border: black solid 1px;margin-top: 14px;"/>
386
+ </div>
387
+ </div>
388
+
389
+ <?php
390
+ }
391
+
392
+ public function render_control_section() {
393
+ // echo 'TODO: Theme is used to change what is displayed. Blah blah blah..';
394
+ }
395
+
396
+ public function render_theme_section() {
397
+ // echo 'TODO: Theme is used to change what is displayed. Blah blah blah..';
398
+ echo '<div id="bob">';
399
+ }
400
+
401
+ public function render_template_fields_section() {
402
+ // echo 'TODO: Theme is used to change what is displayed. Blah blah blah..';
403
+ echo "</div>";
404
+ echo '<small >' . $this->__("All fields are optional") . '</small>';
405
+ }
406
+
407
+ private function get_template_path($page_template_key) {
408
+
409
+
410
+ $__dir__ = dirname(__FILE__);
411
+
412
+
413
+ return $__dir__ . "../mini-themes/" . $page_template_key;
414
+ }
415
+
416
+ public function render_active_theme_selector($args) {
417
+
418
+
419
+ $__dir__ = dirname(__FILE__);
420
+
421
+ $path = $__dir__ . "../mini-themes/";
422
+
423
+ $dirs = glob($path . "*", GLOB_ONLYDIR);
424
+
425
+ $options = get_option(Easy_Pie_MM_Constants::OPTION_NAME);
426
+ $subkey = $args['subkey'];
427
+ $id = $args['id'];
428
+ $optionExpression = Easy_Pie_MM_Constants::OPTION_NAME . "[" . $subkey . "]";
429
+ $currentValue = $options[$subkey];
430
+ ?>
431
+
432
+ <ul id="easy-pie-mm-bxslider">
433
+
434
+ <?php
435
+ $displayIndex = 0;
436
+ $startingIndex = 0;
437
+
438
+ $manifests = Easy_Pie_MM_Utility::get_manifests();
439
+
440
+ foreach ($manifests as $manifest) {
441
+ // $slidePath = plugins_url("../mini-themes/" . $manifest->key . "/" . $manifest->screenshot, __FILE__);
442
+ $upper_screenshot = strtoupper($manifest->screenshot);
443
+
444
+ if ($manifest->author_name == '') {
445
+
446
+ $caption_text = $this->__('User Defined:') . $manifest->title;
447
+ } else {
448
+
449
+ $caption_text = $manifest->title . ' ' .$this->__('by') . " <a style='color:#DDD' target='_blank' href='" . $manifest->website_url . "'>" . $manifest->author_name . "</a>";
450
+ }
451
+
452
+
453
+ if (strpos($upper_screenshot, 'HTTP') === 0) {
454
+ // It's an absolute path
455
+ $slidePath = $manifest->screenshot;
456
+ } else {
457
+ // Relative path
458
+ $slidePath = $manifest->mini_theme_url . "/" . $manifest->screenshot;
459
+ }
460
+
461
+ if ($manifest->key == $currentValue) {
462
+ $startingIndex = $displayIndex;
463
+ }
464
+ ?>
465
+ <li>
466
+ <img idx="<?php echo $displayIndex; ?>" src="<?php echo $slidePath ?>" title="<?php echo $caption_text; ?>" onclick="jQuery('#<?php echo $id; ?>').attr('value', '<?php echo $manifest->key; ?>');" />
467
+ </li>
468
+ <?php
469
+ $displayIndex++;
470
+ }
471
+ ?>
472
+ <!-- ... (repeat for every image in the gallery)-->
473
+ </ul>
474
+
475
+ <!-- THUMBNAIL SLIDER -->
476
+ <ul id="easy-pie-mm-bxslider-pager">
477
+
478
+ <?php
479
+ $displayIndex = 0;
480
+ $startingIndex = 0;
481
+
482
+ foreach ($manifests as $manifest) {
483
+
484
+ // $slidePath = $manifest->mini_theme_url . "/" . $manifest->screenshot;
485
+
486
+ $upper_screenshot = strtoupper($manifest->screenshot);
487
+
488
+ if (strpos($upper_screenshot, 'HTTP') === 0) {
489
+ // It's an absolute path
490
+ $slidePath = $manifest->screenshot;
491
+ } else {
492
+ // Relative path
493
+ $slidePath = $manifest->mini_theme_url . "/" . $manifest->screenshot;
494
+ }
495
+
496
+ if ($manifest->key == $currentValue) {
497
+ $startingIndex = $displayIndex;
498
+ }
499
+ ?>
500
+ <li>
501
+ <img idx="<?php echo $displayIndex; ?>" src="<?php echo $slidePath ?>" onclick="jQuery('#<?php echo $id; ?>').attr('value', '<?php echo $manifest->key; ?>');" />
502
+ </li>
503
+ <?php
504
+ $displayIndex++;
505
+ }
506
+ ?>
507
+ </ul>
508
+
509
+ <input displayIndex="<?php echo $startingIndex; ?>" style="visibility:hidden" id="<?php echo $id; ?>" name="<?php echo $optionExpression; ?>" value="<?php echo $currentValue; ?>"/>
510
+ <?php
511
+ }
512
+
513
+ public function validate_options($raw_input_array) {
514
+
515
+ // Create our array for storing the validated options
516
+ //$output = array();
517
+ $output = get_option(Easy_Pie_MM_Constants::OPTION_NAME);
518
+
519
+ $this->scrub_checkbox_value($raw_input_array, 'enabled');
520
+ $this->scrub_checkbox_value($raw_input_array, '503_redirect');
521
+
522
+ // Loop through each of the incoming options
523
+ foreach ($raw_input_array as $key => $value) {
524
+
525
+ // Check to see if the current option has a value. If so, process it.
526
+ if (isset($raw_input_array[$key])) {
527
+
528
+ // Strip all HTML and PHP tags and properly handle quoted strings
529
+ //$output[$key] = strip_tags(stripslashes($raw_input_array[$key]));
530
+ $output[$key] = $raw_input_array[$key];
531
+ }
532
+ }
533
+
534
+ // return apply_filters(Easy_Pie_MM_Constants::MAIN_PAGE_KEY, $output, $raw_input_array);
535
+ return $output;
536
+ }
537
+
538
+ private function scrub_checkbox_value(&$array, $key) {
539
+
540
+ if (!array_key_exists($key, $array)) {
541
+
542
+ $array[$key] = false;
543
+ }
544
+ }
545
+
546
+ // </editor-fold>
547
+
548
+ public function add_to_admin_menu() {
549
+
550
+ // RSR TODO: Localize main page title and menu entry
551
+ //$page_hook_suffix = add_options_page("Easy Pie Maintenance Mode", "Maintenance Mode", "manage_options", Easy_Pie_MM_Constants::MAIN_PAGE_KEY, array($this, 'display_options_page'));
552
+ $page_hook_suffix = add_options_page("Easy Pie Maintenance Mode", "Maintenance Mode", "manage_options", Easy_Pie_MM_Constants::PLUGIN_SLUG, array($this, 'display_options_page'));
553
+
554
+ add_action('admin_print_scripts-' . $page_hook_suffix, array($this, 'enqueue_scripts'));
555
+
556
+ //Apply Styles
557
+ add_action('admin_print_styles-' . $page_hook_suffix, array($this, 'enqueue_styles'));
558
+ }
559
+
560
+ // </editor-fold>
561
+
562
+ function display_options_page() {
563
+
564
+ $__dir__ = dirname(__FILE__);
565
+
566
+ include($__dir__ . '/../pages/page-options.php');
567
+ }
568
+
569
+ }
570
+
571
+ }
classes/class-easy-pie-plugin-base.php CHANGED
@@ -1,19 +1,41 @@
1
  <?php
2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  if (!class_exists('Easy_Pie_Plugin_Base')) {
4
 
5
  /**
6
- * Base class of Easy Pie Plugins
7
  *
8
- * @author Bob Riley
 
9
  */
10
  class Easy_Pie_Plugin_Base {
11
 
12
- protected $prefix;
13
 
14
- function __construct($prefix) {
15
 
16
- $this->prefix = $prefix;
17
  }
18
  //Use WordPress Debugging log file. file is written to wp-content/debug.log
19
  //trace with tail command to see real-time issues.
@@ -21,12 +43,22 @@ if (!class_exists('Easy_Pie_Plugin_Base')) {
21
 
22
  if (WP_DEBUG === true) {
23
  if (is_array($message) || is_object($message)) {
24
- error_log($this->prefix . ":" . print_r($message, true));
25
  } else {
26
- error_log($this->prefix . ":" . $message);
27
  }
28
  }
29
  }
 
 
 
 
 
 
 
 
 
 
30
  }
31
  }
32
- ?>
1
  <?php
2
 
3
+ /*
4
+ Easy Pie Maintenance Mode Plugin
5
+ Copyright (C) 2013, Synthetic Thought LLC
6
+ website: easypiewp.com contact: bob@easypiewp.com
7
+
8
+ Easy Pie Maintenance Mode Plugin is distributed under the GNU General Public License, Version 3,
9
+ June 2007. Copyright (C) 2007 Free Software Foundation, Inc., 51 Franklin
10
+ St, Fifth Floor, Boston, MA 02110, USA
11
+
12
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
13
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
14
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
15
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
16
+ ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
17
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
18
+ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
19
+ ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
20
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
21
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
22
+ */
23
+
24
  if (!class_exists('Easy_Pie_Plugin_Base')) {
25
 
26
  /**
27
+ * Base class of Easy Pie plugins
28
  *
29
+ * @author Bob Riley <bob@easypiewp.com>
30
+ * @copyright 2013 Synthetic Thought LLC
31
  */
32
  class Easy_Pie_Plugin_Base {
33
 
34
+ protected $plugin_slug;
35
 
36
+ function __construct($plugin_slug) {
37
 
38
+ $this->plugin_slug = $plugin_slug;
39
  }
40
  //Use WordPress Debugging log file. file is written to wp-content/debug.log
41
  //trace with tail command to see real-time issues.
43
 
44
  if (WP_DEBUG === true) {
45
  if (is_array($message) || is_object($message)) {
46
+ error_log($this->plugin_slug . ":" . print_r($message, true));
47
  } else {
48
+ error_log($this->plugin_slug . ":" . $message);
49
  }
50
  }
51
  }
52
+
53
+ function _e($text) {
54
+
55
+ _e($text, $this->plugin_slug);
56
+ }
57
+
58
+ function __($text) {
59
+
60
+ return __($text, $this->plugin_slug);
61
+ }
62
  }
63
  }
64
+ ?>
classes/class-easy-pie-utility.php CHANGED
@@ -1,19 +1,36 @@
1
  <?php
2
 
3
  /*
4
- * To change this template, choose Tools | Templates
5
- * and open the template in the editor.
6
- */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7
  if (!class_exists('Easy_Pie_Utility')) {
8
 
9
  /**
10
- * Simple utility class
11
  *
12
- * @author Bob Riley
 
13
  */
14
  class Easy_Pie_Utility {
15
-
16
- /**
17
  * Set option value if it isn't already set
18
  */
19
  public static function set_default_option(&$option_array, $key, $value) {
1
  <?php
2
 
3
  /*
4
+ Easy Pie Maintenance Mode Plugin
5
+ Copyright (C) 2013, Synthetic Thought LLC
6
+ website: easypiewp.com contact: bob@easypiewp.com
7
+
8
+ Easy Pie Maintenance Mode Plugin is distributed under the GNU General Public License, Version 3,
9
+ June 2007. Copyright (C) 2007 Free Software Foundation, Inc., 51 Franklin
10
+ St, Fifth Floor, Boston, MA 02110, USA
11
+
12
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
13
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
14
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
15
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
16
+ ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
17
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
18
+ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
19
+ ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
20
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
21
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
22
+ */
23
+
24
  if (!class_exists('Easy_Pie_Utility')) {
25
 
26
  /**
27
+ * Utility class for Easy Pie plugins
28
  *
29
+ * @author Bob Riley <bob@easypiewp.com>
30
+ * @copyright 2013 Synthetic Thought LLC
31
  */
32
  class Easy_Pie_Utility {
33
+ /**
 
34
  * Set option value if it isn't already set
35
  */
36
  public static function set_default_option(&$option_array, $key, $value) {
easy-pie-maintenance-mode.php CHANGED
@@ -1,31 +1,24 @@
1
  <?php
2
  /*
3
  Plugin Name: Easy Pie Maintenance Mode
4
- Plugin URI: http://easypiewp.com/easy-pie-maintenance-mode-plugin/
5
  Description: Lets people know that your site is temporarily down.
6
- Version: 0.5.1
7
  Author: Bob Riley
8
  Author URI: http://www.easypiewp.com
9
  Text Domain: easy-pie-maintenance-mode
10
- License: GPLv2 or later
11
- */
12
 
13
- /* ================================================================================
14
- Copyright 2013 Synthetic Thought LLC
15
-
16
- This program is free software; you can redistribute it and/or modify
17
- it under the terms of the GNU General Public License, version 2, as
18
- published by the Free Software Foundation.
19
-
20
- This program is distributed in the hope that it will be useful,
21
- but WITHOUT ANY WARRANTY; without even the implied warranty of
22
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23
- GNU General Public License for more details.
24
-
25
- You should have received a copy of the GNU General Public License
26
- along with this program; if not, write to the Free Software
27
- Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
28
 
 
 
 
 
29
  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
30
  ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
31
  WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
@@ -36,9 +29,10 @@
36
  ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
37
  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
38
  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
39
- ================================================================================ */
 
 
40
 
41
- require_once("classes/class-easy-pie-maintenance-mode.php");
42
 
43
- $easy_pie_mm = new Easy_Pie_Maintenance_Mode();
44
  ?>
1
  <?php
2
  /*
3
  Plugin Name: Easy Pie Maintenance Mode
4
+ Plugin URI: http://easypiewp.com/easy-pie-maintenance-mode-faq/
5
  Description: Lets people know that your site is temporarily down.
6
+ Version: 0.6.0
7
  Author: Bob Riley
8
  Author URI: http://www.easypiewp.com
9
  Text Domain: easy-pie-maintenance-mode
10
+ License: GPL v3
11
+ */
12
 
13
+ /*
14
+ Easy Pie Maintenance Mode Plugin
15
+ Copyright (C) 2013, Synthetic Thought LLC
16
+ website: easypiewp.com contact: bob@easypiewp.com
 
 
 
 
 
 
 
 
 
 
 
17
 
18
+ Easy Pie Maintenance Mode Plugin is distributed under the GNU General Public License, Version 3,
19
+ June 2007. Copyright (C) 2007 Free Software Foundation, Inc., 51 Franklin
20
+ St, Fifth Floor, Boston, MA 02110, USA
21
+
22
  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
23
  ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
24
  WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
29
  ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30
  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
31
  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32
+ */
33
+
34
+ require_once("classes/class-easy-pie-mm.php");
35
 
36
+ $easy_pie_mm = new Easy_Pie_MM(__FILE__);
37
 
 
38
  ?>
images/user-defined.png ADDED
Binary file
js/functions.js CHANGED
@@ -1,14 +1,146 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  jQuery(document).ready(function($) {
2
  var displayIndex = $("#easy-pie-mm-theme").attr("displayIndex");
3
-
4
- $('#easy-pie-mm-bxslider').bxSlider(
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
  {
 
6
  controls: false,
7
  pagerCustom: "#easy-pie-mm-bxpager",
8
  slideWidth: 550,
9
- startSlide: displayIndex
10
  });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12
  // New Media uploader logic
13
  var custom_uploader;
14
 
@@ -40,8 +172,18 @@ jQuery(document).ready(function($) {
40
  });
41
 
42
  //Open the uploader dialog
43
- custom_uploader.open();
44
-
45
  });
 
 
 
 
 
 
 
 
 
 
 
46
  });
47
 
1
+ /*
2
+ Easy Pie Maintenance Mode Plugin
3
+ Copyright (C) 2013, Synthetic Thought LLC
4
+ website: easypiewp.com contact: bob@easypiewp.com
5
+
6
+ Easy Pie Maintenance Mode Plugin is distributed under the GNU General Public License, Version 3,
7
+ June 2007. Copyright (C) 2007 Free Software Foundation, Inc., 51 Franklin
8
+ St, Fifth Floor, Boston, MA 02110, USA
9
+
10
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
11
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
12
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
13
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
14
+ ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
15
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
16
+ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
17
+ ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
18
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
19
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
20
+ */
21
+
22
+ easyPieMMResizeSlides = function() {
23
+ jQuery("#easy-pie-mm-bxslider-pager").parent().css("height", "77px");
24
+ };
25
+
26
+ easyPie = { };
27
+ easyPie.MM = { };
28
+
29
+ easyPie.MM.toggleAdvancedBox = function() {
30
+
31
+ jQuery('#easy-pie-mm-advanced').toggle();
32
+ easyPie.MM.setCookie("advancedDisplay", jQuery("#easy-pie-mm-advanced").css("display"));
33
+ }
34
+
35
+ easyPie.MM.setCookie = function setCookie(c_name, value, exdays)
36
+ {
37
+ var exdate=new Date();
38
+ exdate.setDate(exdate.getDate() + exdays);
39
+ var c_value=escape(value) + ((exdays==null) ? "" : "; expires="+exdate.toUTCString());
40
+ document.cookie=c_name + "=" + c_value;
41
+ }
42
+
43
+ easyPie.MM.getCookie = function(c_name)
44
+ {
45
+ var c_value = document.cookie;
46
+ var c_start = c_value.indexOf(" " + c_name + "=");
47
+ if (c_start == -1)
48
+ {
49
+ c_start = c_value.indexOf(c_name + "=");
50
+ }
51
+ if (c_start == -1)
52
+ {
53
+ c_value = null;
54
+ }
55
+ else
56
+ {
57
+ c_start = c_value.indexOf("=", c_start) + 1;
58
+ var c_end = c_value.indexOf(";", c_start);
59
+ if (c_end == -1)
60
+ {
61
+ c_end = c_value.length;
62
+ }
63
+ c_value = unescape(c_value.substring(c_start,c_end));
64
+ }
65
+ return c_value;
66
+ }
67
+
68
+
69
  jQuery(document).ready(function($) {
70
  var displayIndex = $("#easy-pie-mm-theme").attr("displayIndex");
71
+
72
+
73
+ var easyPieMMScrubSlides = function() {
74
+
75
+ var displayIndex = $("#easy-pie-mm-theme").attr("displayIndex");
76
+
77
+ // $("#easy-pie-mm-bxslider-pager img").css("border-right", "1px solid #CCC").css("border-left", "1px solid #CCC").css("margin-top", "-10px").css("margin-left", "-2px");
78
+
79
+
80
+ $("#easy-pie-mm-bxslider-pager img").each(function(key,value){
81
+
82
+ var idx = $(this).attr("idx");
83
+
84
+ if(displayIndex != idx) {
85
+
86
+ $(this).parent().css({
87
+ opacity: 0.4
88
+ });
89
+ }
90
+ else {
91
+ $(this).parent().css({
92
+ opacity: 1.0
93
+ });
94
+ }
95
+ });
96
+ };
97
+
98
+ var slider = $('#easy-pie-mm-bxslider').bxSlider(
99
  {
100
+ captions: true,
101
  controls: false,
102
  pagerCustom: "#easy-pie-mm-bxpager",
103
  slideWidth: 550,
104
+ startSlide: displayIndex
105
  });
106
+
107
+ $('#easy-pie-mm-bxslider-pager').bxSlider(
108
+ {
109
+ controls: true,
110
+
111
+ infiniteLoop: true,
112
+ maxSlides: 4,
113
+ moveSlides: 1,
114
+ pager: false,
115
+ slideMargin: 17,
116
+ slideWidth: 125,
117
+ startSlide: displayIndex,
118
+
119
+ onSlideNext: easyPieMMScrubSlides,
120
+ onSlidePrev: easyPieMMScrubSlides
121
+ });
122
+
123
+ easyPieMMScrubSlides();
124
+
125
+ $("#easy-pie-mm-bxslider-pager").on("click", "img", function(e) {
126
 
127
+ e.preventDefault();
128
+ var idx = $(this).attr("idx");
129
+
130
+ $("#easy-pie-mm-theme").attr("displayIndex", idx);
131
+
132
+ $(this).parent().siblings().css({
133
+ opacity: 0.4
134
+ });
135
+ $(this).parent().fadeTo("slow", 1.0);
136
+
137
+ slider.goToSlide(idx);
138
+ });
139
+
140
+ easyPieMMResizeSlides();
141
+
142
+
143
+
144
  // New Media uploader logic
145
  var custom_uploader;
146
 
172
  });
173
 
174
  //Open the uploader dialog
175
+ custom_uploader.open();
 
176
  });
177
+
178
+ var advancedDisplay = easyPie.MM.getCookie("advancedDisplay");
179
+
180
+ if(advancedDisplay != null) {
181
+
182
+ $("#easy-pie-mm-advanced").css("display", advancedDisplay);
183
+ }
184
+ });
185
+
186
+ jQuery( window ).resize(function() {
187
+ easyPieMMResizeSlides();
188
  });
189
 
languages/easy-pie-maintenance-mode.mo CHANGED
Binary file
languages/easy-pie-maintenance-mode.po CHANGED
@@ -1,73 +1,127 @@
1
- msgid ""
2
- msgstr ""
3
- "Project-Id-Version: Easy Pie Maintenance Mode\n"
4
- "POT-Creation-Date: 2013-10-20 07:33-0700\n"
5
- "PO-Revision-Date: 2013-10-20 14:59-0700\n"
6
- "Last-Translator: \n"
7
- "Language-Team: Easy Pie WP <bob@easypiewp.com>\n"
8
- "Language: English\n"
9
- "MIME-Version: 1.0\n"
10
- "Content-Type: text/plain; charset=UTF-8\n"
11
- "Content-Transfer-Encoding: 8bit\n"
12
- "X-Generator: Poedit 1.5.7\n"
13
- "X-Poedit-KeywordsList: __;_e\n"
14
- "X-Poedit-Basepath: .\n"
15
- "X-Poedit-SourceCharset: UTF-8\n"
16
- "X-Poedit-SearchPath-0: J:\\xampp\\htdocs\\ezp\\bobstuff\\plugins\\easy-pie-"
17
- "maintenance-mode\n"
18
-
19
- #: J:\xampp\htdocs\ezp\bobstuff\plugins\easy-pie-maintenance-mode/classes/class-easy-pie-maintenance-mode.php:81
20
- msgid "Problem reading template "
21
- msgstr "Problem reading template "
22
-
23
- #: J:\xampp\htdocs\ezp\bobstuff\plugins\easy-pie-maintenance-mode/classes/class-easy-pie-maintenance-mode.php:229
24
- msgid "Enabled"
25
- msgstr "Enabled"
26
-
27
- #: J:\xampp\htdocs\ezp\bobstuff\plugins\easy-pie-maintenance-mode/classes/class-easy-pie-maintenance-mode.php:232
28
- msgid "Visuals"
29
- msgstr "Visuals"
30
-
31
- #: J:\xampp\htdocs\ezp\bobstuff\plugins\easy-pie-maintenance-mode/classes/class-easy-pie-maintenance-mode.php:233
32
- msgid "Page"
33
- msgstr "Page"
34
-
35
- #: J:\xampp\htdocs\ezp\bobstuff\plugins\easy-pie-maintenance-mode/classes/class-easy-pie-maintenance-mode.php:236
36
- msgid "Fields"
37
- msgstr "Fields"
38
-
39
- #: J:\xampp\htdocs\ezp\bobstuff\plugins\easy-pie-maintenance-mode/classes/class-easy-pie-maintenance-mode.php:237
40
- msgid "Title"
41
- msgstr "Title"
42
-
43
- #: J:\xampp\htdocs\ezp\bobstuff\plugins\easy-pie-maintenance-mode/classes/class-easy-pie-maintenance-mode.php:238
44
- msgid "Header"
45
- msgstr "Header"
46
-
47
- #: J:\xampp\htdocs\ezp\bobstuff\plugins\easy-pie-maintenance-mode/classes/class-easy-pie-maintenance-mode.php:239
48
- msgid "Headline"
49
- msgstr "Headline"
50
-
51
- #: J:\xampp\htdocs\ezp\bobstuff\plugins\easy-pie-maintenance-mode/classes/class-easy-pie-maintenance-mode.php:240
52
- msgid "Message"
53
- msgstr "Message"
54
-
55
- #: J:\xampp\htdocs\ezp\bobstuff\plugins\easy-pie-maintenance-mode/classes/class-easy-pie-maintenance-mode.php:241
56
- msgid "Logo"
57
- msgstr "Logo"
58
-
59
- #: J:\xampp\htdocs\ezp\bobstuff\plugins\easy-pie-maintenance-mode/classes/class-easy-pie-maintenance-mode.php:272
60
- msgid "HTML tags are allowed. e.g. Add <br/> for break."
61
- msgstr "HTML tags are allowed. e.g. Add <br/> for break."
62
-
63
- #: J:\xampp\htdocs\ezp\bobstuff\plugins\easy-pie-maintenance-mode/classes/class-easy-pie-maintenance-mode.php:342
64
- msgid "All fields are optional"
65
- msgstr "All fields are optional"
66
-
67
- #: J:\xampp\htdocs\ezp\bobstuff\plugins\easy-pie-maintenance-mode/classes/class-easy-pie-maintenance-mode.php:482
68
- msgid "problem reading manifest in "
69
- msgstr "Logo"
70
-
71
- #: J:\xampp\htdocs\ezp\bobstuff\plugins\easy-pie-maintenance-mode/pages/page-options.php:14
72
- msgid "If you have a caching plugin, be sure to clear the cache!"
73
- msgstr "If you have a caching plugin, be sure to clear the cache!"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Easy Pie Maintenance Mode\n"
4
+ "POT-Creation-Date: 2013-11-29 17:36-0700\n"
5
+ "PO-Revision-Date: 2013-11-29 17:38-0700\n"
6
+ "Last-Translator: \n"
7
+ "Language-Team: Easy Pie WP <bob@easypiewp.com>\n"
8
+ "Language: English\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Generator: Poedit 1.5.7\n"
13
+ "X-Poedit-KeywordsList: __;_e\n"
14
+ "X-Poedit-Basepath: .\n"
15
+ "X-Poedit-SourceCharset: UTF-8\n"
16
+ "X-Poedit-SearchPath-0: J:\\xampp171\\htdocs\\ezp\\bobstuff\\plugins\\easy-"
17
+ "pie-maintenance-mode\n"
18
+
19
+ #: J:\xampp171\htdocs\ezp\bobstuff\plugins\easy-pie-maintenance-mode/classes/class-easy-pie-mm-utility.php:128
20
+ msgid "problem reading manifest in "
21
+ msgstr "Logo"
22
+
23
+ #: J:\xampp171\htdocs\ezp\bobstuff\plugins\easy-pie-maintenance-mode/classes/class-easy-pie-mm.php:82
24
+ msgid "Maintenance Mode is On"
25
+ msgstr "Maintenance Mode is On"
26
+
27
+ #: J:\xampp171\htdocs\ezp\bobstuff\plugins\easy-pie-maintenance-mode/classes/class-easy-pie-mm.php:130
28
+ msgid "Problem reading template "
29
+ msgstr "Problem reading template "
30
+
31
+ #: J:\xampp171\htdocs\ezp\bobstuff\plugins\easy-pie-maintenance-mode/classes/class-easy-pie-mm.php:170
32
+ msgid "Tried to create "
33
+ msgstr "Tried to create "
34
+
35
+ #: J:\xampp171\htdocs\ezp\bobstuff\plugins\easy-pie-maintenance-mode/classes/class-easy-pie-mm.php:289
36
+ msgid "Enabled"
37
+ msgstr "Enabled"
38
+
39
+ #: J:\xampp171\htdocs\ezp\bobstuff\plugins\easy-pie-maintenance-mode/classes/class-easy-pie-mm.php:292
40
+ msgid "Visuals"
41
+ msgstr "Visuals"
42
+
43
+ #: J:\xampp171\htdocs\ezp\bobstuff\plugins\easy-pie-maintenance-mode/classes/class-easy-pie-mm.php:293
44
+ msgid "Mini-theme"
45
+ msgstr "Mini-theme"
46
+
47
+ #: J:\xampp171\htdocs\ezp\bobstuff\plugins\easy-pie-maintenance-mode/classes/class-easy-pie-mm.php:296
48
+ msgid "Fields"
49
+ msgstr "Fields"
50
+
51
+ #: J:\xampp171\htdocs\ezp\bobstuff\plugins\easy-pie-maintenance-mode/classes/class-easy-pie-mm.php:297
52
+ msgid "Title"
53
+ msgstr "Title"
54
+
55
+ #: J:\xampp171\htdocs\ezp\bobstuff\plugins\easy-pie-maintenance-mode/classes/class-easy-pie-mm.php:298
56
+ msgid "Header"
57
+ msgstr "Header"
58
+
59
+ #: J:\xampp171\htdocs\ezp\bobstuff\plugins\easy-pie-maintenance-mode/classes/class-easy-pie-mm.php:299
60
+ msgid "Headline"
61
+ msgstr "Headline"
62
+
63
+ #: J:\xampp171\htdocs\ezp\bobstuff\plugins\easy-pie-maintenance-mode/classes/class-easy-pie-mm.php:300
64
+ msgid "Message"
65
+ msgstr "Message"
66
+
67
+ #: J:\xampp171\htdocs\ezp\bobstuff\plugins\easy-pie-maintenance-mode/classes/class-easy-pie-mm.php:301
68
+ msgid "Logo"
69
+ msgstr "Logo"
70
+
71
+ #: J:\xampp171\htdocs\ezp\bobstuff\plugins\easy-pie-maintenance-mode/classes/class-easy-pie-mm.php:331
72
+ msgid "HTML tags are allowed. e.g. Add &lt;br/&gt; for break."
73
+ msgstr "HTML tags are allowed. e.g. Add &lt;br/&gt; for break."
74
+
75
+ #: J:\xampp171\htdocs\ezp\bobstuff\plugins\easy-pie-maintenance-mode/classes/class-easy-pie-mm.php:404
76
+ msgid "All fields are optional"
77
+ msgstr "All fields are optional"
78
+
79
+ #: J:\xampp171\htdocs\ezp\bobstuff\plugins\easy-pie-maintenance-mode/classes/class-easy-pie-mm.php:446
80
+ msgid "User Defined:"
81
+ msgstr "User Defined:"
82
+
83
+ #: J:\xampp171\htdocs\ezp\bobstuff\plugins\easy-pie-maintenance-mode/classes/class-easy-pie-mm.php:449
84
+ msgid "by"
85
+ msgstr "by"
86
+
87
+ #: J:\xampp171\htdocs\ezp\bobstuff\plugins\easy-pie-maintenance-mode/pages/page-options.php:13
88
+ msgid "If you have a caching plugin, be sure to clear the cache!"
89
+ msgstr "If you have a caching plugin, be sure to clear the cache!"
90
+
91
+ #: J:\xampp171\htdocs\ezp\bobstuff\plugins\easy-pie-maintenance-mode/pages/page-options.php:26
92
+ msgid "Advanced Settings"
93
+ msgstr "Advanced Settings"
94
+
95
+ #: J:\xampp171\htdocs\ezp\bobstuff\plugins\easy-pie-maintenance-mode/pages/page-options.php:29
96
+ msgid "Custom CSS"
97
+ msgstr "Custom CSS"
98
+
99
+ #: J:\xampp171\htdocs\ezp\bobstuff\plugins\easy-pie-maintenance-mode/pages/page-options.php:32
100
+ msgid "Page styling varies greatly. "
101
+ msgstr "Page styling varies greatly. "
102
+
103
+ #: J:\xampp171\htdocs\ezp\bobstuff\plugins\easy-pie-maintenance-mode/pages/page-options.php:32
104
+ msgid "Update custom CSS when switching mini-themes."
105
+ msgstr "Update custom CSS when switching mini-themes."
106
+
107
+ #: J:\xampp171\htdocs\ezp\bobstuff\plugins\easy-pie-maintenance-mode/pages/page-options.php:42
108
+ msgid "How to create a mini-theme for yourself or the community"
109
+ msgstr "How to create a mini-theme for yourself or the community"
110
+
111
+ #: J:\xampp171\htdocs\ezp\bobstuff\plugins\easy-pie-maintenance-mode/pages/page-options.php:55
112
+ msgid "Comment or question?"
113
+ msgstr "Comment or question?"
114
+
115
+ #: J:\xampp171\htdocs\ezp\bobstuff\plugins\easy-pie-maintenance-mode/pages/page-options.php:55
116
+ msgid "Email"
117
+ msgstr "Email"
118
+
119
+ #: J:\xampp171\htdocs\ezp\bobstuff\plugins\easy-pie-maintenance-mode/pages/page-options.php:55
120
+ msgid "or stop by"
121
+ msgstr "or stop by"
122
+
123
+ #~ msgid "Create your own mini-theme. Even distribute it!"
124
+ #~ msgstr "Create your own mini-theme. Even distribute it!"
125
+
126
+ #~ msgid "Page"
127
+ #~ msgstr "Page"
license.txt CHANGED
@@ -1,281 +1,621 @@
1
- GNU GENERAL PUBLIC LICENSE
2
- Version 2, June 1991
3
-
4
- Copyright (C) 1989, 1991 Free Software Foundation, Inc.
5
- 51 Franklin St, Fifth Floor, Boston, MA 02110, USA
6
 
 
7
  Everyone is permitted to copy and distribute verbatim copies
8
  of this license document, but changing it is not allowed.
9
 
10
- Preamble
 
 
 
11
 
12
- The licenses for most software are designed to take away your
13
- freedom to share and change it. By contrast, the GNU General Public
14
- License is intended to guarantee your freedom to share and change free
15
- software--to make sure the software is free for all its users. This
16
- General Public License applies to most of the Free Software
17
- Foundation's software and to any other program whose authors commit to
18
- using it. (Some other Free Software Foundation software is covered by
19
- the GNU Library General Public License instead.) You can apply it to
20
  your programs, too.
21
 
22
  When we speak of free software, we are referring to freedom, not
23
  price. Our General Public Licenses are designed to make sure that you
24
  have the freedom to distribute copies of free software (and charge for
25
- this service if you wish), that you receive source code or can get it
26
- if you want it, that you can change the software or use pieces of it
27
- in new free programs; and that you know you can do these things.
28
 
29
- To protect your rights, we need to make restrictions that forbid
30
- anyone to deny you these rights or to ask you to surrender the rights.
31
- These restrictions translate to certain responsibilities for you if you
32
- distribute copies of the software, or if you modify it.
33
 
34
  For example, if you distribute copies of such a program, whether
35
- gratis or for a fee, you must give the recipients all the rights that
36
- you have. You must make sure that they, too, receive or can get the
37
- source code. And you must show them these terms so they know their
38
- rights.
39
-
40
- We protect your rights with two steps: (1) copyright the software, and
41
- (2) offer you this license which gives you legal permission to copy,
42
- distribute and/or modify the software.
43
-
44
- Also, for each author's protection and ours, we want to make certain
45
- that everyone understands that there is no warranty for this free
46
- software. If the software is modified by someone else and passed on, we
47
- want its recipients to know that what they have is not the original, so
48
- that any problems introduced by others will not reflect on the original
49
- authors' reputations.
50
-
51
- Finally, any free program is threatened constantly by software
52
- patents. We wish to avoid the danger that redistributors of a free
53
- program will individually obtain patent licenses, in effect making the
54
- program proprietary. To prevent this, we have made it clear that any
55
- patent must be licensed for everyone's free use or not licensed at all.
 
 
 
 
 
 
 
 
 
 
 
56
 
57
  The precise terms and conditions for copying, distribution and
58
  modification follow.
59
 
60
- GNU GENERAL PUBLIC LICENSE
61
- TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
62
-
63
- 0. This License applies to any program or other work which contains
64
- a notice placed by the copyright holder saying it may be distributed
65
- under the terms of this General Public License. The "Program", below,
66
- refers to any such program or work, and a "work based on the Program"
67
- means either the Program or any derivative work under copyright law:
68
- that is to say, a work containing the Program or a portion of it,
69
- either verbatim or with modifications and/or translated into another
70
- language. (Hereinafter, translation is included without limitation in
71
- the term "modification".) Each licensee is addressed as "you".
72
-
73
- Activities other than copying, distribution and modification are not
74
- covered by this License; they are outside its scope. The act of
75
- running the Program is not restricted, and the output from the Program
76
- is covered only if its contents constitute a work based on the
77
- Program (independent of having been made by running the Program).
78
- Whether that is true depends on what the Program does.
79
-
80
- 1. You may copy and distribute verbatim copies of the Program's
81
- source code as you receive it, in any medium, provided that you
82
- conspicuously and appropriately publish on each copy an appropriate
83
- copyright notice and disclaimer of warranty; keep intact all the
84
- notices that refer to this License and to the absence of any warranty;
85
- and give any other recipients of the Program a copy of this License
86
- along with the Program.
87
-
88
- You may charge a fee for the physical act of transferring a copy, and
89
- you may at your option offer warranty protection in exchange for a fee.
90
-
91
- 2. You may modify your copy or copies of the Program or any portion
92
- of it, thus forming a work based on the Program, and copy and
93
- distribute such modifications or work under the terms of Section 1
94
- above, provided that you also meet all of these conditions:
95
-
96
- a) You must cause the modified files to carry prominent notices
97
- stating that you changed the files and the date of any change.
98
-
99
- b) You must cause any work that you distribute or publish, that in
100
- whole or in part contains or is derived from the Program or any
101
- part thereof, to be licensed as a whole at no charge to all third
102
- parties under the terms of this License.
103
-
104
- c) If the modified program normally reads commands interactively
105
- when run, you must cause it, when started running for such
106
- interactive use in the most ordinary way, to print or display an
107
- announcement including an appropriate copyright notice and a
108
- notice that there is no warranty (or else, saying that you provide
109
- a warranty) and that users may redistribute the program under
110
- these conditions, and telling the user how to view a copy of this
111
- License. (Exception: if the Program itself is interactive but
112
- does not normally print such an announcement, your work based on
113
- the Program is not required to print an announcement.)
114
-
115
- These requirements apply to the modified work as a whole. If
116
- identifiable sections of that work are not derived from the Program,
117
- and can be reasonably considered independent and separate works in
118
- themselves, then this License, and its terms, do not apply to those
119
- sections when you distribute them as separate works. But when you
120
- distribute the same sections as part of a whole which is a work based
121
- on the Program, the distribution of the whole must be on the terms of
122
- this License, whose permissions for other licensees extend to the
123
- entire whole, and thus to each and every part regardless of who wrote it.
124
- Thus, it is not the intent of this section to claim rights or contest
125
- your rights to work written entirely by you; rather, the intent is to
126
- exercise the right to control the distribution of derivative or
127
- collective works based on the Program.
128
-
129
- In addition, mere aggregation of another work not based on the Program
130
- with the Program (or with a work based on the Program) on a volume of
131
- a storage or distribution medium does not bring the other work under
132
- the scope of this License.
133
-
134
- 3. You may copy and distribute the Program (or a work based on it,
135
- under Section 2) in object code or executable form under the terms of
136
- Sections 1 and 2 above provided that you also do one of the following:
137
-
138
- a) Accompany it with the complete corresponding machine-readable
139
- source code, which must be distributed under the terms of Sections
140
- 1 and 2 above on a medium customarily used for software interchange; or,
141
-
142
- b) Accompany it with a written offer, valid for at least three
143
- years, to give any third party, for a charge no more than your
144
- cost of physically performing source distribution, a complete
145
- machine-readable copy of the corresponding source code, to be
146
- distributed under the terms of Sections 1 and 2 above on a medium
147
- customarily used for software interchange; or,
148
-
149
- c) Accompany it with the information you received as to the offer
150
- to distribute corresponding source code. (This alternative is
151
- allowed only for noncommercial distribution and only if you
152
- received the program in object code or executable form with such
153
- an offer, in accord with Subsection b above.)
154
-
155
- The source code for a work means the preferred form of the work for
156
- making modifications to it. For an executable work, complete source
157
- code means all the source code for all modules it contains, plus any
158
- associated interface definition files, plus the scripts used to
159
- control compilation and installation of the executable. However, as a
160
- special exception, the source code distributed need not include
161
- anything that is normally distributed (in either source or binary
162
- form) with the major components (compiler, kernel, and so on) of the
163
- operating system on which the executable runs, unless that component
164
- itself accompanies the executable.
165
-
166
- If distribution of executable or object code is made by offering
167
- access to copy from a designated place, then offering equivalent
168
- access to copy the source code from the same place counts as
169
- distribution of the source code, even though third parties are not
170
- compelled to copy the source along with the object code.
171
-
172
- 4. You may not copy, modify, sublicense, or distribute the Program
173
- except as expressly provided under this License. Any attempt
174
- otherwise to copy, modify, sublicense or distribute the Program is
175
- void, and will automatically terminate your rights under this License.
176
- However, parties who have received copies, or rights, from you under
177
- this License will not have their licenses terminated so long as such
178
- parties remain in full compliance.
179
-
180
- 5. You are not required to accept this License, since you have not
181
- signed it. However, nothing else grants you permission to modify or
182
- distribute the Program or its derivative works. These actions are
183
- prohibited by law if you do not accept this License. Therefore, by
184
- modifying or distributing the Program (or any work based on the
185
- Program), you indicate your acceptance of this License to do so, and
186
- all its terms and conditions for copying, distributing or modifying
187
- the Program or works based on it.
188
-
189
- 6. Each time you redistribute the Program (or any work based on the
190
- Program), the recipient automatically receives a license from the
191
- original licensor to copy, distribute or modify the Program subject to
192
- these terms and conditions. You may not impose any further
193
- restrictions on the recipients' exercise of the rights granted herein.
194
- You are not responsible for enforcing compliance by third parties to
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
195
  this License.
196
 
197
- 7. If, as a consequence of a court judgment or allegation of patent
198
- infringement or for any other reason (not limited to patent issues),
199
- conditions are imposed on you (whether by court order, agreement or
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
200
  otherwise) that contradict the conditions of this License, they do not
201
- excuse you from the conditions of this License. If you cannot
202
- distribute so as to satisfy simultaneously your obligations under this
203
- License and any other pertinent obligations, then as a consequence you
204
- may not distribute the Program at all. For example, if a patent
205
- license would not permit royalty-free redistribution of the Program by
206
- all those who receive copies directly or indirectly through you, then
207
- the only way you could satisfy both it and this License would be to
208
- refrain entirely from distribution of the Program.
209
-
210
- If any portion of this section is held invalid or unenforceable under
211
- any particular circumstance, the balance of the section is intended to
212
- apply and the section as a whole is intended to apply in other
213
- circumstances.
214
-
215
- It is not the purpose of this section to induce you to infringe any
216
- patents or other property right claims or to contest validity of any
217
- such claims; this section has the sole purpose of protecting the
218
- integrity of the free software distribution system, which is
219
- implemented by public license practices. Many people have made
220
- generous contributions to the wide range of software distributed
221
- through that system in reliance on consistent application of that
222
- system; it is up to the author/donor to decide if he or she is willing
223
- to distribute software through any other system and a licensee cannot
224
- impose that choice.
225
-
226
- This section is intended to make thoroughly clear what is believed to
227
- be a consequence of the rest of this License.
228
-
229
- 8. If the distribution and/or use of the Program is restricted in
230
- certain countries either by patents or by copyrighted interfaces, the
231
- original copyright holder who places the Program under this License
232
- may add an explicit geographical distribution limitation excluding
233
- those countries, so that distribution is permitted only in or among
234
- countries not thus excluded. In such case, this License incorporates
235
- the limitation as if written in the body of this License.
236
-
237
- 9. The Free Software Foundation may publish revised and/or new versions
238
- of the General Public License from time to time. Such new versions will
239
  be similar in spirit to the present version, but may differ in detail to
240
  address new problems or concerns.
241
 
242
- Each version is given a distinguishing version number. If the Program
243
- specifies a version number of this License which applies to it and "any
244
- later version", you have the option of following the terms and conditions
245
- either of that version or of any later version published by the Free
246
- Software Foundation. If the Program does not specify a version number of
247
- this License, you may choose any version ever published by the Free Software
248
- Foundation.
249
-
250
- 10. If you wish to incorporate parts of the Program into other free
251
- programs whose distribution conditions are different, write to the author
252
- to ask for permission. For software which is copyrighted by the Free
253
- Software Foundation, write to the Free Software Foundation; we sometimes
254
- make exceptions for this. Our decision will be guided by the two goals
255
- of preserving the free status of all derivatives of our free software and
256
- of promoting the sharing and reuse of software generally.
257
-
258
- NO WARRANTY
259
-
260
- 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
261
- FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
262
- OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
263
- PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
264
- OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
265
- MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
266
- TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
267
- PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
268
- REPAIR OR CORRECTION.
269
-
270
- 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
271
- WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
272
- REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
273
- INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
274
- OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
275
- TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
276
- YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
277
- PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
278
- POSSIBILITY OF SUCH DAMAGES.
279
-
280
- END OF TERMS AND CONDITIONS
281
-
 
 
 
 
 
 
 
 
 
 
 
 
1
+ GNU GENERAL PUBLIC LICENSE
2
+ Version 3, 29 June 2007
 
 
 
3
 
4
+ Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
5
  Everyone is permitted to copy and distribute verbatim copies
6
  of this license document, but changing it is not allowed.
7
 
8
+ Preamble
9
+
10
+ The GNU General Public License is a free, copyleft license for
11
+ software and other kinds of works.
12
 
13
+ The licenses for most software and other practical works are designed
14
+ to take away your freedom to share and change the works. By contrast,
15
+ the GNU General Public License is intended to guarantee your freedom to
16
+ share and change all versions of a program--to make sure it remains free
17
+ software for all its users. We, the Free Software Foundation, use the
18
+ GNU General Public License for most of our software; it applies also to
19
+ any other work released this way by its authors. You can apply it to
 
20
  your programs, too.
21
 
22
  When we speak of free software, we are referring to freedom, not
23
  price. Our General Public Licenses are designed to make sure that you
24
  have the freedom to distribute copies of free software (and charge for
25
+ them if you wish), that you receive source code or can get it if you
26
+ want it, that you can change the software or use pieces of it in new
27
+ free programs, and that you know you can do these things.
28
 
29
+ To protect your rights, we need to prevent others from denying you
30
+ these rights or asking you to surrender the rights. Therefore, you have
31
+ certain responsibilities if you distribute copies of the software, or if
32
+ you modify it: responsibilities to respect the freedom of others.
33
 
34
  For example, if you distribute copies of such a program, whether
35
+ gratis or for a fee, you must pass on to the recipients the same
36
+ freedoms that you received. You must make sure that they, too, receive
37
+ or can get the source code. And you must show them these terms so they
38
+ know their rights.
39
+
40
+ Developers that use the GNU GPL protect your rights with two steps:
41
+ (1) assert copyright on the software, and (2) offer you this License
42
+ giving you legal permission to copy, distribute and/or modify it.
43
+
44
+ For the developers' and authors' protection, the GPL clearly explains
45
+ that there is no warranty for this free software. For both users' and
46
+ authors' sake, the GPL requires that modified versions be marked as
47
+ changed, so that their problems will not be attributed erroneously to
48
+ authors of previous versions.
49
+
50
+ Some devices are designed to deny users access to install or run
51
+ modified versions of the software inside them, although the manufacturer
52
+ can do so. This is fundamentally incompatible with the aim of
53
+ protecting users' freedom to change the software. The systematic
54
+ pattern of such abuse occurs in the area of products for individuals to
55
+ use, which is precisely where it is most unacceptable. Therefore, we
56
+ have designed this version of the GPL to prohibit the practice for those
57
+ products. If such problems arise substantially in other domains, we
58
+ stand ready to extend this provision to those domains in future versions
59
+ of the GPL, as needed to protect the freedom of users.
60
+
61
+ Finally, every program is threatened constantly by software patents.
62
+ States should not allow patents to restrict development and use of
63
+ software on general-purpose computers, but in those that do, we wish to
64
+ avoid the special danger that patents applied to a free program could
65
+ make it effectively proprietary. To prevent this, the GPL assures that
66
+ patents cannot be used to render the program non-free.
67
 
68
  The precise terms and conditions for copying, distribution and
69
  modification follow.
70
 
71
+ TERMS AND CONDITIONS
72
+
73
+ 0. Definitions.
74
+
75
+ "This License" refers to version 3 of the GNU General Public License.
76
+
77
+ "Copyright" also means copyright-like laws that apply to other kinds of
78
+ works, such as semiconductor masks.
79
+
80
+ "The Program" refers to any copyrightable work licensed under this
81
+ License. Each licensee is addressed as "you". "Licensees" and
82
+ "recipients" may be individuals or organizations.
83
+
84
+ To "modify" a work means to copy from or adapt all or part of the work
85
+ in a fashion requiring copyright permission, other than the making of an
86
+ exact copy. The resulting work is called a "modified version" of the
87
+ earlier work or a work "based on" the earlier work.
88
+
89
+ A "covered work" means either the unmodified Program or a work based
90
+ on the Program.
91
+
92
+ To "propagate" a work means to do anything with it that, without
93
+ permission, would make you directly or secondarily liable for
94
+ infringement under applicable copyright law, except executing it on a
95
+ computer or modifying a private copy. Propagation includes copying,
96
+ distribution (with or without modification), making available to the
97
+ public, and in some countries other activities as well.
98
+
99
+ To "convey" a work means any kind of propagation that enables other
100
+ parties to make or receive copies. Mere interaction with a user through
101
+ a computer network, with no transfer of a copy, is not conveying.
102
+
103
+ An interactive user interface displays "Appropriate Legal Notices"
104
+ to the extent that it includes a convenient and prominently visible
105
+ feature that (1) displays an appropriate copyright notice, and (2)
106
+ tells the user that there is no warranty for the work (except to the
107
+ extent that warranties are provided), that licensees may convey the
108
+ work under this License, and how to view a copy of this License. If
109
+ the interface presents a list of user commands or options, such as a
110
+ menu, a prominent item in the list meets this criterion.
111
+
112
+ 1. Source Code.
113
+
114
+ The "source code" for a work means the preferred form of the work
115
+ for making modifications to it. "Object code" means any non-source
116
+ form of a work.
117
+
118
+ A "Standard Interface" means an interface that either is an official
119
+ standard defined by a recognized standards body, or, in the case of
120
+ interfaces specified for a particular programming language, one that
121
+ is widely used among developers working in that language.
122
+
123
+ The "System Libraries" of an executable work include anything, other
124
+ than the work as a whole, that (a) is included in the normal form of
125
+ packaging a Major Component, but which is not part of that Major
126
+ Component, and (b) serves only to enable use of the work with that
127
+ Major Component, or to implement a Standard Interface for which an
128
+ implementation is available to the public in source code form. A
129
+ "Major Component", in this context, means a major essential component
130
+ (kernel, window system, and so on) of the specific operating system
131
+ (if any) on which the executable work runs, or a compiler used to
132
+ produce the work, or an object code interpreter used to run it.
133
+
134
+ The "Corresponding Source" for a work in object code form means all
135
+ the source code needed to generate, install, and (for an executable
136
+ work) run the object code and to modify the work, including scripts to
137
+ control those activities. However, it does not include the work's
138
+ System Libraries, or general-purpose tools or generally available free
139
+ programs which are used unmodified in performing those activities but
140
+ which are not part of the work. For example, Corresponding Source
141
+ includes interface definition files associated with source files for
142
+ the work, and the source code for shared libraries and dynamically
143
+ linked subprograms that the work is specifically designed to require,
144
+ such as by intimate data communication or control flow between those
145
+ subprograms and other parts of the work.
146
+
147
+ The Corresponding Source need not include anything that users
148
+ can regenerate automatically from other parts of the Corresponding
149
+ Source.
150
+
151
+ The Corresponding Source for a work in source code form is that
152
+ same work.
153
+
154
+ 2. Basic Permissions.
155
+
156
+ All rights granted under this License are granted for the term of
157
+ copyright on the Program, and are irrevocable provided the stated
158
+ conditions are met. This License explicitly affirms your unlimited
159
+ permission to run the unmodified Program. The output from running a
160
+ covered work is covered by this License only if the output, given its
161
+ content, constitutes a covered work. This License acknowledges your
162
+ rights of fair use or other equivalent, as provided by copyright law.
163
+
164
+ You may make, run and propagate covered works that you do not
165
+ convey, without conditions so long as your license otherwise remains
166
+ in force. You may convey covered works to others for the sole purpose
167
+ of having them make modifications exclusively for you, or provide you
168
+ with facilities for running those works, provided that you comply with
169
+ the terms of this License in conveying all material for which you do
170
+ not control copyright. Those thus making or running the covered works
171
+ for you must do so exclusively on your behalf, under your direction
172
+ and control, on terms that prohibit them from making any copies of
173
+ your copyrighted material outside their relationship with you.
174
+
175
+ Conveying under any other circumstances is permitted solely under
176
+ the conditions stated below. Sublicensing is not allowed; section 10
177
+ makes it unnecessary.
178
+
179
+ 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
180
+
181
+ No covered work shall be deemed part of an effective technological
182
+ measure under any applicable law fulfilling obligations under article
183
+ 11 of the WIPO copyright treaty adopted on 20 December 1996, or
184
+ similar laws prohibiting or restricting circumvention of such
185
+ measures.
186
+
187
+ When you convey a covered work, you waive any legal power to forbid
188
+ circumvention of technological measures to the extent such circumvention
189
+ is effected by exercising rights under this License with respect to
190
+ the covered work, and you disclaim any intention to limit operation or
191
+ modification of the work as a means of enforcing, against the work's
192
+ users, your or third parties' legal rights to forbid circumvention of
193
+ technological measures.
194
+
195
+ 4. Conveying Verbatim Copies.
196
+
197
+ You may convey verbatim copies of the Program's source code as you
198
+ receive it, in any medium, provided that you conspicuously and
199
+ appropriately publish on each copy an appropriate copyright notice;
200
+ keep intact all notices stating that this License and any
201
+ non-permissive terms added in accord with section 7 apply to the code;
202
+ keep intact all notices of the absence of any warranty; and give all
203
+ recipients a copy of this License along with the Program.
204
+
205
+ You may charge any price or no price for each copy that you convey,
206
+ and you may offer support or warranty protection for a fee.
207
+
208
+ 5. Conveying Modified Source Versions.
209
+
210
+ You may convey a work based on the Program, or the modifications to
211
+ produce it from the Program, in the form of source code under the
212
+ terms of section 4, provided that you also meet all of these conditions:
213
+
214
+ a) The work must carry prominent notices stating that you modified
215
+ it, and giving a relevant date.
216
+
217
+ b) The work must carry prominent notices stating that it is
218
+ released under this License and any conditions added under section
219
+ 7. This requirement modifies the requirement in section 4 to
220
+ "keep intact all notices".
221
+
222
+ c) You must license the entire work, as a whole, under this
223
+ License to anyone who comes into possession of a copy. This
224
+ License will therefore apply, along with any applicable section 7
225
+ additional terms, to the whole of the work, and all its parts,
226
+ regardless of how they are packaged. This License gives no
227
+ permission to license the work in any other way, but it does not
228
+ invalidate such permission if you have separately received it.
229
+
230
+ d) If the work has interactive user interfaces, each must display
231
+ Appropriate Legal Notices; however, if the Program has interactive
232
+ interfaces that do not display Appropriate Legal Notices, your
233
+ work need not make them do so.
234
+
235
+ A compilation of a covered work with other separate and independent
236
+ works, which are not by their nature extensions of the covered work,
237
+ and which are not combined with it such as to form a larger program,
238
+ in or on a volume of a storage or distribution medium, is called an
239
+ "aggregate" if the compilation and its resulting copyright are not
240
+ used to limit the access or legal rights of the compilation's users
241
+ beyond what the individual works permit. Inclusion of a covered work
242
+ in an aggregate does not cause this License to apply to the other
243
+ parts of the aggregate.
244
+
245
+ 6. Conveying Non-Source Forms.
246
+
247
+ You may convey a covered work in object code form under the terms
248
+ of sections 4 and 5, provided that you also convey the
249
+ machine-readable Corresponding Source under the terms of this License,
250
+ in one of these ways:
251
+
252
+ a) Convey the object code in, or embodied in, a physical product
253
+ (including a physical distribution medium), accompanied by the
254
+ Corresponding Source fixed on a durable physical medium
255
+ customarily used for software interchange.
256
+
257
+ b) Convey the object code in, or embodied in, a physical product
258
+ (including a physical distribution medium), accompanied by a
259
+ written offer, valid for at least three years and valid for as
260
+ long as you offer spare parts or customer support for that product
261
+ model, to give anyone who possesses the object code either (1) a
262
+ copy of the Corresponding Source for all the software in the
263
+ product that is covered by this License, on a durable physical
264
+ medium customarily used for software interchange, for a price no
265
+ more than your reasonable cost of physically performing this
266
+ conveying of source, or (2) access to copy the
267
+ Corresponding Source from a network server at no charge.
268
+
269
+ c) Convey individual copies of the object code with a copy of the
270
+ written offer to provide the Corresponding Source. This
271
+ alternative is allowed only occasionally and noncommercially, and
272
+ only if you received the object code with such an offer, in accord
273
+ with subsection 6b.
274
+
275
+ d) Convey the object code by offering access from a designated
276
+ place (gratis or for a charge), and offer equivalent access to the
277
+ Corresponding Source in the same way through the same place at no
278
+ further charge. You need not require recipients to copy the
279
+ Corresponding Source along with the object code. If the place to
280
+ copy the object code is a network server, the Corresponding Source
281
+ may be on a different server (operated by you or a third party)
282
+ that supports equivalent copying facilities, provided you maintain
283
+ clear directions next to the object code saying where to find the
284
+ Corresponding Source. Regardless of what server hosts the
285
+ Corresponding Source, you remain obligated to ensure that it is
286
+ available for as long as needed to satisfy these requirements.
287
+
288
+ e) Convey the object code using peer-to-peer transmission, provided
289
+ you inform other peers where the object code and Corresponding
290
+ Source of the work are being offered to the general public at no
291
+ charge under subsection 6d.
292
+
293
+ A separable portion of the object code, whose source code is excluded
294
+ from the Corresponding Source as a System Library, need not be
295
+ included in conveying the object code work.
296
+
297
+ A "User Product" is either (1) a "consumer product", which means any
298
+ tangible personal property which is normally used for personal, family,
299
+ or household purposes, or (2) anything designed or sold for incorporation
300
+ into a dwelling. In determining whether a product is a consumer product,
301
+ doubtful cases shall be resolved in favor of coverage. For a particular
302
+ product received by a particular user, "normally used" refers to a
303
+ typical or common use of that class of product, regardless of the status
304
+ of the particular user or of the way in which the particular user
305
+ actually uses, or expects or is expected to use, the product. A product
306
+ is a consumer product regardless of whether the product has substantial
307
+ commercial, industrial or non-consumer uses, unless such uses represent
308
+ the only significant mode of use of the product.
309
+
310
+ "Installation Information" for a User Product means any methods,
311
+ procedures, authorization keys, or other information required to install
312
+ and execute modified versions of a covered work in that User Product from
313
+ a modified version of its Corresponding Source. The information must
314
+ suffice to ensure that the continued functioning of the modified object
315
+ code is in no case prevented or interfered with solely because
316
+ modification has been made.
317
+
318
+ If you convey an object code work under this section in, or with, or
319
+ specifically for use in, a User Product, and the conveying occurs as
320
+ part of a transaction in which the right of possession and use of the
321
+ User Product is transferred to the recipient in perpetuity or for a
322
+ fixed term (regardless of how the transaction is characterized), the
323
+ Corresponding Source conveyed under this section must be accompanied
324
+ by the Installation Information. But this requirement does not apply
325
+ if neither you nor any third party retains the ability to install
326
+ modified object code on the User Product (for example, the work has
327
+ been installed in ROM).
328
+
329
+ The requirement to provide Installation Information does not include a
330
+ requirement to continue to provide support service, warranty, or updates
331
+ for a work that has been modified or installed by the recipient, or for
332
+ the User Product in which it has been modified or installed. Access to a
333
+ network may be denied when the modification itself materially and
334
+ adversely affects the operation of the network or violates the rules and
335
+ protocols for communication across the network.
336
+
337
+ Corresponding Source conveyed, and Installation Information provided,
338
+ in accord with this section must be in a format that is publicly
339
+ documented (and with an implementation available to the public in
340
+ source code form), and must require no special password or key for
341
+ unpacking, reading or copying.
342
+
343
+ 7. Additional Terms.
344
+
345
+ "Additional permissions" are terms that supplement the terms of this
346
+ License by making exceptions from one or more of its conditions.
347
+ Additional permissions that are applicable to the entire Program shall
348
+ be treated as though they were included in this License, to the extent
349
+ that they are valid under applicable law. If additional permissions
350
+ apply only to part of the Program, that part may be used separately
351
+ under those permissions, but the entire Program remains governed by
352
+ this License without regard to the additional permissions.
353
+
354
+ When you convey a copy of a covered work, you may at your option
355
+ remove any additional permissions from that copy, or from any part of
356
+ it. (Additional permissions may be written to require their own
357
+ removal in certain cases when you modify the work.) You may place
358
+ additional permissions on material, added by you to a covered work,
359
+ for which you have or can give appropriate copyright permission.
360
+
361
+ Notwithstanding any other provision of this License, for material you
362
+ add to a covered work, you may (if authorized by the copyright holders of
363
+ that material) supplement the terms of this License with terms:
364
+
365
+ a) Disclaiming warranty or limiting liability differently from the
366
+ terms of sections 15 and 16 of this License; or
367
+
368
+ b) Requiring preservation of specified reasonable legal notices or
369
+ author attributions in that material or in the Appropriate Legal
370
+ Notices displayed by works containing it; or
371
+
372
+ c) Prohibiting misrepresentation of the origin of that material, or
373
+ requiring that modified versions of such material be marked in
374
+ reasonable ways as different from the original version; or
375
+
376
+ d) Limiting the use for publicity purposes of names of licensors or
377
+ authors of the material; or
378
+
379
+ e) Declining to grant rights under trademark law for use of some
380
+ trade names, trademarks, or service marks; or
381
+
382
+ f) Requiring indemnification of licensors and authors of that
383
+ material by anyone who conveys the material (or modified versions of
384
+ it) with contractual assumptions of liability to the recipient, for
385
+ any liability that these contractual assumptions directly impose on
386
+ those licensors and authors.
387
+
388
+ All other non-permissive additional terms are considered "further
389
+ restrictions" within the meaning of section 10. If the Program as you
390
+ received it, or any part of it, contains a notice stating that it is
391
+ governed by this License along with a term that is a further
392
+ restriction, you may remove that term. If a license document contains
393
+ a further restriction but permits relicensing or conveying under this
394
+ License, you may add to a covered work material governed by the terms
395
+ of that license document, provided that the further restriction does
396
+ not survive such relicensing or conveying.
397
+
398
+ If you add terms to a covered work in accord with this section, you
399
+ must place, in the relevant source files, a statement of the
400
+ additional terms that apply to those files, or a notice indicating
401
+ where to find the applicable terms.
402
+
403
+ Additional terms, permissive or non-permissive, may be stated in the
404
+ form of a separately written license, or stated as exceptions;
405
+ the above requirements apply either way.
406
+
407
+ 8. Termination.
408
+
409
+ You may not propagate or modify a covered work except as expressly
410
+ provided under this License. Any attempt otherwise to propagate or
411
+ modify it is void, and will automatically terminate your rights under
412
+ this License (including any patent licenses granted under the third
413
+ paragraph of section 11).
414
+
415
+ However, if you cease all violation of this License, then your
416
+ license from a particular copyright holder is reinstated (a)
417
+ provisionally, unless and until the copyright holder explicitly and
418
+ finally terminates your license, and (b) permanently, if the copyright
419
+ holder fails to notify you of the violation by some reasonable means
420
+ prior to 60 days after the cessation.
421
+
422
+ Moreover, your license from a particular copyright holder is
423
+ reinstated permanently if the copyright holder notifies you of the
424
+ violation by some reasonable means, this is the first time you have
425
+ received notice of violation of this License (for any work) from that
426
+ copyright holder, and you cure the violation prior to 30 days after
427
+ your receipt of the notice.
428
+
429
+ Termination of your rights under this section does not terminate the
430
+ licenses of parties who have received copies or rights from you under
431
+ this License. If your rights have been terminated and not permanently
432
+ reinstated, you do not qualify to receive new licenses for the same
433
+ material under section 10.
434
+
435
+ 9. Acceptance Not Required for Having Copies.
436
+
437
+ You are not required to accept this License in order to receive or
438
+ run a copy of the Program. Ancillary propagation of a covered work
439
+ occurring solely as a consequence of using peer-to-peer transmission
440
+ to receive a copy likewise does not require acceptance. However,
441
+ nothing other than this License grants you permission to propagate or
442
+ modify any covered work. These actions infringe copyright if you do
443
+ not accept this License. Therefore, by modifying or propagating a
444
+ covered work, you indicate your acceptance of this License to do so.
445
+
446
+ 10. Automatic Licensing of Downstream Recipients.
447
+
448
+ Each time you convey a covered work, the recipient automatically
449
+ receives a license from the original licensors, to run, modify and
450
+ propagate that work, subject to this License. You are not responsible
451
+ for enforcing compliance by third parties with this License.
452
+
453
+ An "entity transaction" is a transaction transferring control of an
454
+ organization, or substantially all assets of one, or subdividing an
455
+ organization, or merging organizations. If propagation of a covered
456
+ work results from an entity transaction, each party to that
457
+ transaction who receives a copy of the work also receives whatever
458
+ licenses to the work the party's predecessor in interest had or could
459
+ give under the previous paragraph, plus a right to possession of the
460
+ Corresponding Source of the work from the predecessor in interest, if
461
+ the predecessor has it or can get it with reasonable efforts.
462
+
463
+ You may not impose any further restrictions on the exercise of the
464
+ rights granted or affirmed under this License. For example, you may
465
+ not impose a license fee, royalty, or other charge for exercise of
466
+ rights granted under this License, and you may not initiate litigation
467
+ (including a cross-claim or counterclaim in a lawsuit) alleging that
468
+ any patent claim is infringed by making, using, selling, offering for
469
+ sale, or importing the Program or any portion of it.
470
+
471
+ 11. Patents.
472
+
473
+ A "contributor" is a copyright holder who authorizes use under this
474
+ License of the Program or a work on which the Program is based. The
475
+ work thus licensed is called the contributor's "contributor version".
476
+
477
+ A contributor's "essential patent claims" are all patent claims
478
+ owned or controlled by the contributor, whether already acquired or
479
+ hereafter acquired, that would be infringed by some manner, permitted
480
+ by this License, of making, using, or selling its contributor version,
481
+ but do not include claims that would be infringed only as a
482
+ consequence of further modification of the contributor version. For
483
+ purposes of this definition, "control" includes the right to grant
484
+ patent sublicenses in a manner consistent with the requirements of
485
  this License.
486
 
487
+ Each contributor grants you a non-exclusive, worldwide, royalty-free
488
+ patent license under the contributor's essential patent claims, to
489
+ make, use, sell, offer for sale, import and otherwise run, modify and
490
+ propagate the contents of its contributor version.
491
+
492
+ In the following three paragraphs, a "patent license" is any express
493
+ agreement or commitment, however denominated, not to enforce a patent
494
+ (such as an express permission to practice a patent or covenant not to
495
+ sue for patent infringement). To "grant" such a patent license to a
496
+ party means to make such an agreement or commitment not to enforce a
497
+ patent against the party.
498
+
499
+ If you convey a covered work, knowingly relying on a patent license,
500
+ and the Corresponding Source of the work is not available for anyone
501
+ to copy, free of charge and under the terms of this License, through a
502
+ publicly available network server or other readily accessible means,
503
+ then you must either (1) cause the Corresponding Source to be so
504
+ available, or (2) arrange to deprive yourself of the benefit of the
505
+ patent license for this particular work, or (3) arrange, in a manner
506
+ consistent with the requirements of this License, to extend the patent
507
+ license to downstream recipients. "Knowingly relying" means you have
508
+ actual knowledge that, but for the patent license, your conveying the
509
+ covered work in a country, or your recipient's use of the covered work
510
+ in a country, would infringe one or more identifiable patents in that
511
+ country that you have reason to believe are valid.
512
+
513
+ If, pursuant to or in connection with a single transaction or
514
+ arrangement, you convey, or propagate by procuring conveyance of, a
515
+ covered work, and grant a patent license to some of the parties
516
+ receiving the covered work authorizing them to use, propagate, modify
517
+ or convey a specific copy of the covered work, then the patent license
518
+ you grant is automatically extended to all recipients of the covered
519
+ work and works based on it.
520
+
521
+ A patent license is "discriminatory" if it does not include within
522
+ the scope of its coverage, prohibits the exercise of, or is
523
+ conditioned on the non-exercise of one or more of the rights that are
524
+ specifically granted under this License. You may not convey a covered
525
+ work if you are a party to an arrangement with a third party that is
526
+ in the business of distributing software, under which you make payment
527
+ to the third party based on the extent of your activity of conveying
528
+ the work, and under which the third party grants, to any of the
529
+ parties who would receive the covered work from you, a discriminatory
530
+ patent license (a) in connection with copies of the covered work
531
+ conveyed by you (or copies made from those copies), or (b) primarily
532
+ for and in connection with specific products or compilations that
533
+ contain the covered work, unless you entered into that arrangement,
534
+ or that patent license was granted, prior to 28 March 2007.
535
+
536
+ Nothing in this License shall be construed as excluding or limiting
537
+ any implied license or other defenses to infringement that may
538
+ otherwise be available to you under applicable patent law.
539
+
540
+ 12. No Surrender of Others' Freedom.
541
+
542
+ If conditions are imposed on you (whether by court order, agreement or
543
  otherwise) that contradict the conditions of this License, they do not
544
+ excuse you from the conditions of this License. If you cannot convey a
545
+ covered work so as to satisfy simultaneously your obligations under this
546
+ License and any other pertinent obligations, then as a consequence you may
547
+ not convey it at all. For example, if you agree to terms that obligate you
548
+ to collect a royalty for further conveying from those to whom you convey
549
+ the Program, the only way you could satisfy both those terms and this
550
+ License would be to refrain entirely from conveying the Program.
551
+
552
+ 13. Use with the GNU Affero General Public License.
553
+
554
+ Notwithstanding any other provision of this License, you have
555
+ permission to link or combine any covered work with a work licensed
556
+ under version 3 of the GNU Affero General Public License into a single
557
+ combined work, and to convey the resulting work. The terms of this
558
+ License will continue to apply to the part which is the covered work,
559
+ but the special requirements of the GNU Affero General Public License,
560
+ section 13, concerning interaction through a network will apply to the
561
+ combination as such.
562
+
563
+ 14. Revised Versions of this License.
564
+
565
+ The Free Software Foundation may publish revised and/or new versions of
566
+ the GNU General Public License from time to time. Such new versions will
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
567
  be similar in spirit to the present version, but may differ in detail to
568
  address new problems or concerns.
569
 
570
+ Each version is given a distinguishing version number. If the
571
+ Program specifies that a certain numbered version of the GNU General
572
+ Public License "or any later version" applies to it, you have the
573
+ option of following the terms and conditions either of that numbered
574
+ version or of any later version published by the Free Software
575
+ Foundation. If the Program does not specify a version number of the
576
+ GNU General Public License, you may choose any version ever published
577
+ by the Free Software Foundation.
578
+
579
+ If the Program specifies that a proxy can decide which future
580
+ versions of the GNU General Public License can be used, that proxy's
581
+ public statement of acceptance of a version permanently authorizes you
582
+ to choose that version for the Program.
583
+
584
+ Later license versions may give you additional or different
585
+ permissions. However, no additional obligations are imposed on any
586
+ author or copyright holder as a result of your choosing to follow a
587
+ later version.
588
+
589
+ 15. Disclaimer of Warranty.
590
+
591
+ THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
592
+ APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
593
+ HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
594
+ OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
595
+ THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
596
+ PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
597
+ IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
598
+ ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
599
+
600
+ 16. Limitation of Liability.
601
+
602
+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
603
+ WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
604
+ THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
605
+ GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
606
+ USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
607
+ DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
608
+ PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
609
+ EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
610
+ SUCH DAMAGES.
611
+
612
+ 17. Interpretation of Sections 15 and 16.
613
+
614
+ If the disclaimer of warranty and limitation of liability provided
615
+ above cannot be given local legal effect according to their terms,
616
+ reviewing courts shall apply local law that most closely approximates
617
+ an absolute waiver of all civil liability in connection with the
618
+ Program, unless a warranty or assumption of liability accompanies a
619
+ copy of the Program in return for a fee.
620
+
621
+ END OF TERMS AND CONDITIONS
mini-themes/plain/images/screenshot.png CHANGED
Binary file
mini-themes/plain/{page.html → index.html} RENAMED
@@ -1,11 +1,18 @@
1
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
 
 
 
 
2
  <head>
3
  <title>{{title}}</title>
4
  <link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Oswald|Droid+Serif"></link>
5
  <link rel="stylesheet" type="text/css" href="./css/style.css" />
 
 
 
 
6
  </head>
7
  <body>
8
-
9
  <div id="header">
10
  <p>{{header}}</p>
11
  </div>
@@ -13,10 +20,10 @@
13
  <div id="content">
14
  <img id="logo-img" src="{{logo_url}}" />
15
  <h1 id="headline">{{headline}}</h1>
16
-
17
  <p id="message">{{message}}</p>
18
  </div>
19
 
 
20
  <script type="text/javascript">
21
 
22
  var image = document.getElementById("logo-img");
1
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
2
+ <!--
3
+ 'Plain Jane' Mini-Theme running on Easy Pie Maintenance Mode Plugin
4
+ easypiewp.com
5
+ -->
6
  <head>
7
  <title>{{title}}</title>
8
  <link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Oswald|Droid+Serif"></link>
9
  <link rel="stylesheet" type="text/css" href="./css/style.css" />
10
+
11
+ <style type="text/css">
12
+ {{css}}
13
+ </style>
14
  </head>
15
  <body>
 
16
  <div id="header">
17
  <p>{{header}}</p>
18
  </div>
20
  <div id="content">
21
  <img id="logo-img" src="{{logo_url}}" />
22
  <h1 id="headline">{{headline}}</h1>
 
23
  <p id="message">{{message}}</p>
24
  </div>
25
 
26
+ <!-- Removes the image when not defined -->
27
  <script type="text/javascript">
28
 
29
  var image = document.getElementById("logo-img");
mini-themes/plain/manifest.json CHANGED
@@ -1,16 +1,15 @@
1
  {
2
- "key": "plain",
3
- "title": "Plain",
4
- "description": "Very plain theme.",
5
- "author_name": "Easy Pie",
6
- "website_url": "http://easypiewp.com",
7
  "screenshot": "images/screenshot.png",
8
- "category_id": 1,
9
- "google_plus_author_url": "https://plus.google.com/u/0/105719454610818515859/posts",
10
  "original_release_date": "2013/10/20",
11
- "latest_version_date": "2013/10/20",
12
- "version": "1.0.0",
13
- "release_notes": "Initial release",
14
  "autodownload" : true,
15
  "responsive" : true,
16
  "downloaded": false
1
  {
2
+ "page": "index.html",
3
+ "title": "Plain Jane",
4
+ "description": "A very plain theme.",
5
+ "author_name": "Easy Pie WP",
6
+ "website_url": "http://easypiewp.com/about/",
7
  "screenshot": "images/screenshot.png",
8
+ "google_plus_author_url": "https://plus.google.com/+RobertRiley/posts",
 
9
  "original_release_date": "2013/10/20",
10
+ "latest_version_date": "2013/11/11",
11
+ "version": "1.1.0",
12
+ "release_notes": "Updated the metadata",
13
  "autodownload" : true,
14
  "responsive" : true,
15
  "downloaded": false
mini-themes/sawhorse-black/css/style.css CHANGED
@@ -88,7 +88,7 @@ body
88
  }
89
 
90
 
91
- .wrapper .wrapper-content .content-wrapper .title
92
  {
93
  font-size:50px;
94
  font-weight:700;
88
  }
89
 
90
 
91
+ .wrapper .wrapper-content .content-wrapper .headline
92
  {
93
  font-size:50px;
94
  font-weight:700;
mini-themes/sawhorse-black/{page.html → index.html} RENAMED
@@ -1,12 +1,18 @@
1
  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
  <html xmlns="http://www.w3.org/1999/xhtml">
 
 
 
 
3
  <head>
4
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5
  <title>{{title}}</title>
6
 
7
  <link href="./css/style.css" media="all" rel="stylesheet" type="text/css" />
8
 
9
-
 
 
10
  </head>
11
 
12
  <body>
@@ -34,7 +40,7 @@
34
  </div>
35
 
36
  <div class="content-wrapper">
37
- <div class="title">
38
  {{headline}}
39
  </div>
40
  <div class="content">
@@ -50,26 +56,27 @@
50
  </div>
51
 
52
  <script type="text/javascript">
53
- if(navigator.appName == 'Microsoft Internet Explorer') {
54
-
55
-
 
56
  var body = document.getElementsByTagName('body');
57
 
58
  body[0].style.background = "#202020";
 
59
 
60
-
61
- var image = document.getElementById("logo-img");
62
 
63
- function ezp_hideImage() {
64
- image.style.display = "none";
65
- }
66
 
67
- if(image.getAttribute('src') == '') {
68
 
69
- ezp_hideImage();
70
- }
71
 
72
- image.addEventListener('error', ezp_hideImage, true); }
73
  </script>
74
 
75
  </body>
1
  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
  <html xmlns="http://www.w3.org/1999/xhtml">
3
+ <!--
4
+ 'Sawhorse Black' Mini-Theme running on Easy Pie Maintenance Mode Plugin
5
+ easypiewp.com
6
+ -->
7
  <head>
8
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
9
  <title>{{title}}</title>
10
 
11
  <link href="./css/style.css" media="all" rel="stylesheet" type="text/css" />
12
 
13
+ <style type="text/css">
14
+ {{css}}
15
+ </style>
16
  </head>
17
 
18
  <body>
40
  </div>
41
 
42
  <div class="content-wrapper">
43
+ <div class="headline">
44
  {{headline}}
45
  </div>
46
  <div class="content">
56
  </div>
57
 
58
  <script type="text/javascript">
59
+ // Internet Explorer has problems with the graphical background on larger resolutions so just getting rid of it for that browser
60
+ var isIE = ((navigator.appName == 'Microsoft Internet Explorer') || ((navigator.appName == 'Netscape') && (new RegExp("Trident/.*rv:([0-9]{1,}[\.0-9]{0,})").exec(navigator.userAgent) != null)));
61
+
62
+ if(isIE) {
63
  var body = document.getElementsByTagName('body');
64
 
65
  body[0].style.background = "#202020";
66
+ }
67
 
68
+ var image = document.getElementById("logo-img");
 
69
 
70
+ function ezp_hideImage() {
71
+ image.style.display = "none";
72
+ }
73
 
74
+ if(image.getAttribute('src') == '') {
75
 
76
+ ezp_hideImage();
77
+ }
78
 
79
+ image.addEventListener('error', ezp_hideImage, true);
80
  </script>
81
 
82
  </body>
mini-themes/sawhorse-black/manifest.json CHANGED
@@ -1,16 +1,15 @@
1
  {
2
- "key": "sawhorse-black",
3
  "title": "Black Sawhorse",
4
- "description": "Simple sign showing your site is temporarily down.",
5
  "screenshot": "images/screenshot.png",
6
- "author_name": "Easy Pie",
7
- "website_url": "http://easypiewp.com",
8
- "category_id": 1,
9
- "google_plus_author_url": "https://plus.google.com/u/0/105719454610818515859/posts",
10
  "original_release_date": "2013/10/20",
11
- "latest_version_date": "2013/10/20",
12
- "version": "1.0.0",
13
- "release_notes": "Initial release",
14
  "autodownload" : true,
15
  "responsive" : true,
16
  "downloaded": false
1
  {
2
+ "page": "index.html",
3
  "title": "Black Sawhorse",
4
+ "description": "Simple sign on black background that shows your site as temporarily down.",
5
  "screenshot": "images/screenshot.png",
6
+ "author_name": "Easy Pie WP",
7
+ "website_url": "http://easypiewp.com/about/",
8
+ "google_plus_author_url": "https://plus.google.com/+RobertRiley/posts",
 
9
  "original_release_date": "2013/10/20",
10
+ "latest_version_date": "2013/11/11",
11
+ "version": "1.1.0",
12
+ "release_notes": "Updated the metadata.",
13
  "autodownload" : true,
14
  "responsive" : true,
15
  "downloaded": false
mini-themes/sawhorse-yellow/css/style.css CHANGED
@@ -25,8 +25,7 @@ body
25
  border-radius:45px;
26
  -moz-border-radius:45px;
27
  -webkit-border-radius:45px;
28
- padding:15px 6.993006993006993%;
29
- display:table:cell;
30
  }
31
 
32
  .wrapper .wrapper-content .header h1
@@ -112,7 +111,7 @@ body
112
  }
113
 
114
 
115
- .wrapper .wrapper-content .content-wrapper .title
116
  {
117
  font-size:50px;
118
  font-weight:700;
25
  border-radius:45px;
26
  -moz-border-radius:45px;
27
  -webkit-border-radius:45px;
28
+ padding:15px 6.993006993006993%;
 
29
  }
30
 
31
  .wrapper .wrapper-content .header h1
111
  }
112
 
113
 
114
+ .wrapper .wrapper-content .content-wrapper .headline
115
  {
116
  font-size:50px;
117
  font-weight:700;
mini-themes/sawhorse-yellow/{page.html → index.html} RENAMED
@@ -1,16 +1,22 @@
1
  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
  <html xmlns="http://www.w3.org/1999/xhtml">
 
 
 
 
3
  <head>
4
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5
  <title>{{title}}</title>
6
 
7
  <link href="./css/style.css" media="all" rel="stylesheet" type="text/css" />
8
 
 
 
 
9
  </head>
10
 
11
  <body>
12
 
13
-
14
  <div class="wrapper">
15
 
16
  <div class="wrapper-content">
@@ -36,7 +42,7 @@
36
  </div>
37
 
38
  <div class="content-wrapper">
39
- <div class="title">
40
  {{headline}}
41
  </div>
42
  <div class="content">
@@ -52,9 +58,10 @@
52
  </div>
53
 
54
  <script type="text/javascript">
55
- if(navigator.appName == 'Microsoft Internet Explorer') {
56
-
57
-
 
58
  var body = document.getElementsByTagName('body');
59
 
60
  body[0].style.background = "#aac822";
1
  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
  <html xmlns="http://www.w3.org/1999/xhtml">
3
+ <!--
4
+ 'Sawhorse Yellow' Mini-Theme running on Easy Pie Maintenance Mode Plugin
5
+ easypiewp.com
6
+ -->
7
  <head>
8
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
9
  <title>{{title}}</title>
10
 
11
  <link href="./css/style.css" media="all" rel="stylesheet" type="text/css" />
12
 
13
+ <style type="text/css">
14
+ {{css}}
15
+ </style>
16
  </head>
17
 
18
  <body>
19
 
 
20
  <div class="wrapper">
21
 
22
  <div class="wrapper-content">
42
  </div>
43
 
44
  <div class="content-wrapper">
45
+ <div class="headline">
46
  {{headline}}
47
  </div>
48
  <div class="content">
58
  </div>
59
 
60
  <script type="text/javascript">
61
+ // Internet Explorer has problems with the graphical background on larger resolutions so just getting rid of it for that browser
62
+ var isIE = ((navigator.appName == 'Microsoft Internet Explorer') || ((navigator.appName == 'Netscape') && (new RegExp("Trident/.*rv:([0-9]{1,}[\.0-9]{0,})").exec(navigator.userAgent) != null)));
63
+
64
+ if(isIE) {
65
  var body = document.getElementsByTagName('body');
66
 
67
  body[0].style.background = "#aac822";
mini-themes/sawhorse-yellow/manifest.json CHANGED
@@ -1,16 +1,15 @@
1
  {
2
- "key": "sawhorse-yellow",
3
  "title": "Yellow Sawhorse",
4
- "description": "Simple sign showing your site is temporarily down.",
5
  "screenshot": "images/screenshot.png",
6
- "author_name": "Easy Pie",
7
- "website_url": "http://easypiewp.com",
8
- "category_id": 1,
9
- "google_plus_author_url": "https://plus.google.com/u/0/105719454610818515859/posts",
10
  "original_release_date": "2013/10/20",
11
- "latest_version_date": "2013/10/20",
12
- "version": "1.0.0",
13
- "release_notes": "Initial release",
14
  "autodownload" : true,
15
  "responsive" : true,
16
  "downloaded": false
1
  {
2
+ "page": "index.html",
3
  "title": "Yellow Sawhorse",
4
+ "description": "Simple sign on yellow/green showing your site is temporarily down.",
5
  "screenshot": "images/screenshot.png",
6
+ "author_name": "Easy Pie WP",
7
+ "website_url": "http://easypiewp.com/about/",
8
+ "google_plus_author_url": "https://plus.google.com/+RobertRiley/posts",
 
9
  "original_release_date": "2013/10/20",
10
+ "latest_version_date": "2013/11/11",
11
+ "version": "1.1.0",
12
+ "release_notes": "Updated metadata",
13
  "autodownload" : true,
14
  "responsive" : true,
15
  "downloaded": false
mini-themes/temporarily-closed/css/style.css CHANGED
@@ -1,10 +1,6 @@
1
  @import url(reset.css);
2
  @import url(http://fonts.googleapis.com/css?family=Roboto:400,300,100);
3
 
4
-
5
-
6
-
7
-
8
  body
9
  {
10
  /* background:url(../images/background.jpg) no-repeat center center #fff;
1
  @import url(reset.css);
2
  @import url(http://fonts.googleapis.com/css?family=Roboto:400,300,100);
3
 
 
 
 
 
4
  body
5
  {
6
  /* background:url(../images/background.jpg) no-repeat center center #fff;
mini-themes/temporarily-closed/images/screenshot.png CHANGED
Binary file
mini-themes/temporarily-closed/{page.html → index.html} RENAMED
@@ -1,11 +1,18 @@
1
  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
  <html xmlns="http://www.w3.org/1999/xhtml">
 
 
 
 
3
  <head>
4
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5
  <title>{{title}}</title>
6
 
7
  <link href="./css/style.css" media="all" rel="stylesheet" type="text/css" />
8
-
 
 
 
9
  </head>
10
 
11
  <body>
@@ -20,7 +27,6 @@
20
 
21
 
22
  <div class="logo">
23
- <!-- <a href="#"><img src="./images/logo.png" /></a>-->
24
  <a href="#"><img id="logo-img" src="{{logo_url}}" /></a>
25
  </div>
26
 
@@ -36,19 +42,6 @@
36
 
37
  </div>
38
 
39
- <!-- <div class="footer">
40
- <div class="footer-content">
41
- <div class="toLeft">
42
- &copy; 2013 Easy Pie. All Rights Reserved.
43
- </div>
44
- <div class="toRight">
45
- <a href="http://easypiewp.com" target="_blank">Designd by: Easy Pie</a>
46
- </div>
47
- <div class="clear"></div>
48
- </div>
49
- </div>-->
50
-
51
-
52
  <script type="text/javascript">
53
 
54
  var image = document.getElementById("logo-img");
1
  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
  <html xmlns="http://www.w3.org/1999/xhtml">
3
+ <!--
4
+ 'Temporarily Closed' Mini-Theme running on Easy Pie Maintenance Mode Plugin
5
+ easypiewp.com
6
+ -->
7
  <head>
8
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
9
  <title>{{title}}</title>
10
 
11
  <link href="./css/style.css" media="all" rel="stylesheet" type="text/css" />
12
+
13
+ <style type="text/css">
14
+ {{css}}
15
+ </style>
16
  </head>
17
 
18
  <body>
27
 
28
 
29
  <div class="logo">
 
30
  <a href="#"><img id="logo-img" src="{{logo_url}}" /></a>
31
  </div>
32
 
42
 
43
  </div>
44
 
 
 
 
 
 
 
 
 
 
 
 
 
 
45
  <script type="text/javascript">
46
 
47
  var image = document.getElementById("logo-img");
mini-themes/temporarily-closed/manifest.json CHANGED
@@ -1,16 +1,15 @@
1
  {
2
- "key": "temporarily-closed",
3
  "title": "Temporarily Closed",
4
- "description": "Simple sign showing your site is temporarily down.",
5
- "author_name": "Easy Pie",
6
- "website_url": "http://easypiewp.com",
7
  "screenshot": "images/screenshot.png",
8
- "category_id": 1,
9
- "google_plus_author_url": "https://plus.google.com/u/0/105719454610818515859/posts",
10
  "original_release_date": "2013/10/20",
11
- "latest_version_date": "2013/10/20",
12
- "version": "1.0.0",
13
- "release_notes": "Initial release",
14
  "autodownload" : true,
15
  "responsive" : true,
16
  "downloaded": false
1
  {
2
+ "page": "index.html",
3
  "title": "Temporarily Closed",
4
+ "description": "Shop window sign showing your site is temporarily down.",
5
+ "author_name": "Easy Pie WP",
6
+ "website_url": "http://easypiewp.com/about/",
7
  "screenshot": "images/screenshot.png",
8
+ "google_plus_author_url": "https://plus.google.com/+RobertRiley/posts",
 
9
  "original_release_date": "2013/10/20",
10
+ "latest_version_date": "2013/11/11",
11
+ "version": "1.1.0",
12
+ "release_notes": "Updated the metadata.",
13
  "autodownload" : true,
14
  "responsive" : true,
15
  "downloaded": false
pages/page-options.php CHANGED
@@ -4,23 +4,57 @@
4
  * and open the template in the editor.
5
  */
6
  ?>
7
-
8
  <div class="wrap">
9
 
10
- <?php screen_icon(Easy_Pie_Maintenance_Mode::PAGE_KEY); ?>
11
  <h2>Easy Pie Maintenance Mode</h2>
12
  <?php
13
  if (isset($_GET['settings-updated'])) {
14
- echo "<div class='updated'><p>" . __('If you have a caching plugin, be sure to clear the cache!', Easy_Pie_Maintenance_Mode::PLUGIN_SLUG) . "</p></div>";
15
  }
 
 
16
  ?>
17
  <div class="inside">
18
  <form method="post" action="options.php">
19
  <?php
20
- settings_fields(Easy_Pie_Maintenance_Mode::OPTIONS_GROUP_NAME);
21
- do_settings_sections(Easy_Pie_Maintenance_Mode::PAGE_KEY);
22
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23
  submit_button();
 
 
 
 
 
 
24
  ?>
25
  </form>
26
  </div>
4
  * and open the template in the editor.
5
  */
6
  ?>
 
7
  <div class="wrap">
8
 
9
+ <?php screen_icon(Easy_Pie_MM_Constants::PLUGIN_SLUG); ?>
10
  <h2>Easy Pie Maintenance Mode</h2>
11
  <?php
12
  if (isset($_GET['settings-updated'])) {
13
+ echo "<div class='updated'><p>" . Easy_Pie_MM_Utility::__('If you have a caching plugin, be sure to clear the cache!') . "</p></div>";
14
  }
15
+
16
+ $option_array = get_option(Easy_Pie_MM_Constants::OPTION_NAME);
17
  ?>
18
  <div class="inside">
19
  <form method="post" action="options.php">
20
  <?php
21
+ settings_fields(Easy_Pie_MM_Constants::MAIN_PAGE_KEY);
22
+ do_settings_sections(Easy_Pie_MM_Constants::MAIN_PAGE_KEY);
23
+ ?>
24
+ <div style="margin-top: 25px; width:614px" class="postbox easy-pie-mm-toggle">
25
+ <div class="handlediv" title="Click to toggle" onclick="easyPie.MM.toggleAdvancedBox();"><br></div>
26
+ <h3 style="height:25px; margin-bottom:0px; padding-left: 10px; padding-top:9px;" class="hndl" onclick="easyPie.MM.toggleAdvancedBox();"><span style="font-weight:bold"><?php Easy_Pie_MM_Utility::_e('Advanced Settings'); ?><span></h3>
27
+ <table id="easy-pie-mm-advanced" style="display:none" class="form-table">
28
+ <tr valign="top">
29
+ <th scope="row"><?php Easy_Pie_MM_Utility::_e("Custom CSS") ?></th><td>
30
+ <div>
31
+ <textarea cols="70" rows="9" id="easy-pie-mm-field-junk" name="easy-pie-mm-options[css]"><?php echo $option_array["css"]; ?></textarea>
32
+ <p><small><strong><?php Easy_Pie_MM_Utility::_e("Page styling varies greatly. ")?></strong><?php Easy_Pie_MM_Utility::_e("Update custom CSS when switching mini-themes."); ?></small></p>
33
+ </div>
34
+ </td>
35
+ </tr>
36
+ <tr>
37
+
38
+ <td colspan="2">
39
+ <?php
40
+ $format = "<p><a style='font-size:11px' target='_blank' href='%s'>%s</a></p>";
41
+
42
+ $resolved = sprintf($format, "http://easypiewp.com/how-to-create-maintenance-mode-theme/", Easy_Pie_MM_Utility::__('How to create a mini-theme for yourself or the community') );
43
+
44
+ Easy_Pie_MM_Utility::_e($resolved);
45
+ ?>
46
+ </td>
47
+ </tr>
48
+ </table>
49
+ </div>
50
+ <?php
51
  submit_button();
52
+
53
+ $format = "<p style='margin-top:10px'>%s <a target='_blank' href='%s'>%s %s </a> %s <a target='_blank' href='%s'>%s</a>.</p>";
54
+
55
+ $resolved = sprintf($format, Easy_Pie_MM_Utility::__('Comment or question?'), "mailto:bob@easypiewp.com", Easy_Pie_MM_Utility::__('Email'), "Bob", Easy_Pie_MM_Utility::__('or stop by') , "http://easypiewp.com", "easypiewp.com");
56
+
57
+ Easy_Pie_MM_Utility::_e($resolved);
58
  ?>
59
  </form>
60
  </div>
readme.txt CHANGED
@@ -1,24 +1,27 @@
1
  === Easy Pie Maintenance Mode ===
2
  Contributors: bobriley
3
- Donate link: http://easypiewp.com
4
  Tags: maintenance, admin, administration, construction, under construction, maintenance mode, offline, unavailable, launch
5
  Requires at least: 3.5
6
- Tested up to: 3.7
7
- Stable tag: 0.5
8
- License: GPLv2
9
- License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
11
- Let website visitors know your site is temporarily down while you're working on it.
12
 
13
  == Description ==
14
  Need to let your visitors know your site is temporarily down or is under construction? The Easy Pie maintenance mode plugin makes it easy.
15
 
16
- ### Features
17
  * **Simple.** No confusing options or complex setup
18
  * **Mini themes.** Includes four professionally-designed, responsive mini-themes
19
  * **Pre-styled text.** Title, header, headline and message text gets styled without requiring HTML or CSS
20
  * **Add your own logo.** Easily add your own logo using the WordPress Media Library.
21
- * **Expandable.** Modular architecture allows for easy addition of future mini-themes.
 
 
 
22
 
23
  Thanks to the developers of [bxSlider](http://bxslider.com) for their cool image viewer.
24
  == Installation ==
@@ -29,17 +32,41 @@ Thanks to the developers of [bxSlider](http://bxslider.com) for their cool image
29
  -or-
30
 
31
  1. Download the .zip package
32
- 1. Unzip into the subdirectory "easy-pie-maintenance-mode" within your local WordPress plugins directory
33
  1. Refresh plugin page and activate plugin
34
  1. Configure plugin using *settings* link under plugin name or by going to Settings/Maintenance mode
35
 
36
  == Frequently Asked Questions ==
37
 
 
 
 
 
 
38
  = What happens if a search engine hits my site while it's in maintenance mode? =
 
39
  The plugin returns a '503' status with 'retry later' HTTP header when in maintenance mode. This lets search engines know that your site is temporarily down and to come back 24 hours later.
40
 
41
- = Can I create my own mini-theme? =
42
- In version 0.5, there are ways of doing it, but it's not easy for a beginner. I recommend waiting till the next release. If by chance, you have managed to hack a theme, please be aware that since the themes for v0.5 reside in the plugins directory that all themes will be wiped and reinstalled during the next upgrade so make sure you create a backup of your hacked theme before performing the next upgrade. The next version will not have this problem - user themes will be retained between updates.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
43
 
44
  == Screenshots ==
45
 
@@ -48,6 +75,14 @@ In version 0.5, there are ways of doing it, but it's not easy for a beginner. I
48
 
49
  == Changelog ==
50
 
 
 
 
 
 
 
 
 
51
  = 0.5.1 =
52
  * Fix for PHP 5.2.x
53
 
@@ -56,8 +91,12 @@ In version 0.5, there are ways of doing it, but it's not easy for a beginner. I
56
 
57
  == Upgrade Notice ==
58
 
 
 
 
59
  = 0.5.1 =
60
  * Small fix for PHP 5.2.x. If you aren't running PHP 5.2.x you don't need this although it won't hurt anything if you update anyway.
61
 
62
  = 0.5 =
63
  * Initial release
 
1
  === Easy Pie Maintenance Mode ===
2
  Contributors: bobriley
3
+ Donate link: http://easypiewp.com/donate/
4
  Tags: maintenance, admin, administration, construction, under construction, maintenance mode, offline, unavailable, launch
5
  Requires at least: 3.5
6
+ Tested up to: 3.7.1
7
+ Stable tag: 0.6.0
8
+ License: GPLv3
9
+ License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
11
+ Easily let website visitors know your site is temporarily down while you're working on it.
12
 
13
  == Description ==
14
  Need to let your visitors know your site is temporarily down or is under construction? The Easy Pie maintenance mode plugin makes it easy.
15
 
16
+ ### Basic Features
17
  * **Simple.** No confusing options or complex setup
18
  * **Mini themes.** Includes four professionally-designed, responsive mini-themes
19
  * **Pre-styled text.** Title, header, headline and message text gets styled without requiring HTML or CSS
20
  * **Add your own logo.** Easily add your own logo using the WordPress Media Library.
21
+
22
+ ### Advanced Features
23
+ * **Custom CSS.** Easily add CSS from the Admin page to customize a mini-theme.
24
+ * **User Mini Themes.** Change the built-in themes or create your own mini-themes from scratch.
25
 
26
  Thanks to the developers of [bxSlider](http://bxslider.com) for their cool image viewer.
27
  == Installation ==
32
  -or-
33
 
34
  1. Download the .zip package
35
+ 1. Unzip into the subdirectory 'easy-pie-maintenance-mode' within your local WordPress plugins directory
36
  1. Refresh plugin page and activate plugin
37
  1. Configure plugin using *settings* link under plugin name or by going to Settings/Maintenance mode
38
 
39
  == Frequently Asked Questions ==
40
 
41
+ = Why is my site is still viewable even though I've turned on maintenance mode? =
42
+ Maintenance mode is only shown to visitors who are not logged in. The easiest way to check things yourself is view your site with a different browser type than the one you're logged in with (i.e. if you're logged in with Chrome, view the site in Firefox or Internet Explorer or vice versa).
43
+
44
+ Alternatively, you can log our or view the site in incognito/private mode with an instance of the same browser type.
45
+
46
  = What happens if a search engine hits my site while it's in maintenance mode? =
47
+
48
  The plugin returns a '503' status with 'retry later' HTTP header when in maintenance mode. This lets search engines know that your site is temporarily down and to come back 24 hours later.
49
 
50
+ = How can I create a new mini-theme? =
51
+
52
+ The page ['How to create a Maintenance Mode Theme'](http://easypiewp.com/how-to-create-maintenance-mode-theme) describes the process.
53
+
54
+ = I can't get out of maintenance mode. Help! =
55
+
56
+ Every once in a great while other plugins installed on a system can interact with Maintenance Mode to prevent access to wp-admin. If you find yourself in this unfortunate situation, use the maintenance mode manual override.
57
+
58
+ Simply add the following line to your wp-config.php file:
59
+
60
+ **define('EASY_PIE_MM_DISABLE', true);**
61
+
62
+ Afterward either uninstall or reconfigure the conflicting plugins.
63
+
64
+ If you aren't comfortable doing this or are unsure how to do this, [please contact me](mailto:bob@easypiewp.com) and I'll be happy to walk you through the process.
65
+
66
+ = I found a bug or have seen other plugins interfere with Maintenance Mode. What should I do? =
67
+
68
+ Please capture as much information you can about your system, specifically use the error log to gather new information if you are comfortable. The [Easy Pie Error Log Guide](http://easypiewp.com/quickly-diagnose-wordpress-problems-using-error-log/) outlines how to do this.
69
+ Then, please [let me know](mailto:bob@easypiewp.com) what's going on, with as much detail as you have.
70
 
71
  == Screenshots ==
72
 
75
 
76
  == Changelog ==
77
 
78
+ = 0.6.0 =
79
+ * Added ability to create custom mini themes
80
+ * Added ability to add custom styling to existing mini themes
81
+ * Added notification to prevent you from accidentally leaving your site in maintenance mode.
82
+ * Added captions to mini-themes
83
+ * Fixed compatibility with PHP 5.2
84
+ * Misc code cleanup
85
+
86
  = 0.5.1 =
87
  * Fix for PHP 5.2.x
88
 
91
 
92
  == Upgrade Notice ==
93
 
94
+ = 0.6.0 =
95
+ * This version adds custom themes, custom CSS, a notification that your site is in maintenance mode, PHP 5.2 compatibility and small bug fixes. Note: If you have hacked an existing theme please back it up before update because the v0.5 plugin directory is completely wiped on update.
96
+
97
  = 0.5.1 =
98
  * Small fix for PHP 5.2.x. If you aren't running PHP 5.2.x you don't need this although it won't hurt anything if you update anyway.
99
 
100
  = 0.5 =
101
  * Initial release
102
+
styles/easy-pie-styles.css CHANGED
@@ -6,14 +6,22 @@
6
  Purpose of the stylesheet follows.
7
  */
8
 
9
- #icon-easy-pie-mm {
10
  background: transparent url( '../images/easy-pie-mm-logo32.png' ) no-repeat;
11
  }
12
 
13
- .bx-wrapper { margin: 0 0 60px 0 }
14
 
 
 
 
 
 
 
 
 
15
  #easy-pie-mm-bxpager {
16
- /*text-align: center;*/
17
  max-width: 100%;
18
  margin-top: -44px;
19
  }
@@ -32,5 +40,7 @@
32
  #easy-pie-mm-bxpager a:hover img,
33
  #easy-pie-mm-bxpager a.active img {
34
  border: solid #5280DD 2px;
35
- }
 
 
36
 
6
  Purpose of the stylesheet follows.
7
  */
8
 
9
+ #icon-easy-pie-maintenance-mode {
10
  background: transparent url( '../images/easy-pie-mm-logo32.png' ) no-repeat;
11
  }
12
 
13
+ /*.bx-viewport { border-bottom: solid #AAA 1px; border-top: solid #AAA 1px;}*/
14
 
15
+ .bx-wrapper { margin: 0 0 20px 0!important }
16
+ #easy-pie-mm-bxslider-pager img { margin-top:-10px; margin-right:1px; border: 1px solid #AAA; height:71px; width:98%;}
17
+
18
+ .bx-prev { left: -45px!important;}
19
+ .bx-next { right: -45px!important;}
20
+
21
+ /*
22
+ old pager
23
  #easy-pie-mm-bxpager {
24
+ text-align: center;
25
  max-width: 100%;
26
  margin-top: -44px;
27
  }
40
  #easy-pie-mm-bxpager a:hover img,
41
  #easy-pie-mm-bxpager a.active img {
42
  border: solid #5280DD 2px;
43
+ }*/
44
+
45
+
46
 
styles/images/controls.png ADDED
Binary file