Theme Test Drive - Version 2.7.1

Version Description

Download this release

Release Info

Developer freediver
Plugin Icon 128x128 Theme Test Drive
Version 2.7.1
Comparing to
See all releases

Code changes from version 2.7 to 2.7.1

Files changed (1) hide show
  1. themedrive.php +9 -17
themedrive.php CHANGED
@@ -4,7 +4,7 @@
4
  Plugin URI: http://www.prelovac.com/vladimir/wordpress-plugins/theme-test-drive
5
  Description: Safely test drive any theme while visitors are using the default one. Includes instant theme preview via thumbnail.
6
  Author: Vladimir Prelovac
7
- Version: 2.7
8
  Author URI: http://www.prelovac.com/vladimir/
9
 
10
  To-Do:
@@ -333,7 +333,7 @@
333
  _e('<div id="message" class="updated fade"><p>' . $msg . '</p></div>');
334
  }
335
 
336
- if ($_POST['button'] == 'Enable') {
337
  check_admin_referer('theme-drive');
338
  $themedrive = $_POST['td_themes'];
339
  update_option('td_themes', $themedrive);
@@ -346,7 +346,7 @@
346
 
347
  // Show message
348
  _e('<div id="message" class="updated fade"><p>' . $msg_status . '</p></div>');
349
- } elseif ($_POST['button'] == 'Disable') {
350
  check_admin_referer('theme-drive');
351
  // Delete the option from the DB if it's empty
352
  delete_option('td_themes');
@@ -367,7 +367,7 @@
367
  $imgpath = $wp_themedrive_plugin_url . '/i';
368
  ?>
369
  <div class="wrap" style="max-width:950px !important;">
370
- <h2>Plugin Central</h2>
371
 
372
  <div id="poststuff" style="margin-top:10px;">
373
 
@@ -428,8 +428,8 @@
428
  <input style="border:1px solid #D1D1D1;width:400px;" name="install_theme" id="install_theme" value="" />
429
  <br>
430
  <input class="button" type="submit" name="theme_install" value="Install theme &raquo;" class="button-primary" />
431
-
432
- <h3 class="dbx-handle">Usage</h3>
433
  <p>Select a theme to preview live on the site. Only administrator will be able to see the selected theme. </p>
434
  <p>Additionally you may add "?theme=xxx" to your blog url, where xxx is the theme name you want to test.</p>
435
  <?php
@@ -446,19 +446,11 @@ Alternatively, disabling this plug-in should also do the trick.
446
 
447
 
448
  <p class="submit">
449
- <?php
450
- if (themedrive_get_theme())
451
- :
452
- ?>
453
  <input type="submit" name="button" value="Disable Theme Drive" class="button-primary" />
454
- <?php
455
- else
456
- :
457
- ?>
458
  <input type="submit" name="button" value="Enable Theme Drive" class="button-primary" />
459
- <?php
460
- endif;
461
- ?>
462
 
463
  </p>
464
 
4
  Plugin URI: http://www.prelovac.com/vladimir/wordpress-plugins/theme-test-drive
5
  Description: Safely test drive any theme while visitors are using the default one. Includes instant theme preview via thumbnail.
6
  Author: Vladimir Prelovac
7
+ Version: 2.7.1
8
  Author URI: http://www.prelovac.com/vladimir/
9
 
10
  To-Do:
333
  _e('<div id="message" class="updated fade"><p>' . $msg . '</p></div>');
334
  }
335
 
336
+ if ($_POST['button'] == 'Enable Theme Drive') {
337
  check_admin_referer('theme-drive');
338
  $themedrive = $_POST['td_themes'];
339
  update_option('td_themes', $themedrive);
346
 
347
  // Show message
348
  _e('<div id="message" class="updated fade"><p>' . $msg_status . '</p></div>');
349
+ } elseif ($_POST['button'] == 'Disable Theme Drive') {
350
  check_admin_referer('theme-drive');
351
  // Delete the option from the DB if it's empty
352
  delete_option('td_themes');
367
  $imgpath = $wp_themedrive_plugin_url . '/i';
368
  ?>
369
  <div class="wrap" style="max-width:950px !important;">
370
+ <h2>Theme Test Drive</h2>
371
 
372
  <div id="poststuff" style="margin-top:10px;">
373
 
428
  <input style="border:1px solid #D1D1D1;width:400px;" name="install_theme" id="install_theme" value="" />
429
  <br>
430
  <input class="button" type="submit" name="theme_install" value="Install theme &raquo;" class="button-primary" />
431
+ <br /><br />
432
+ <h3>Usage</h3>
433
  <p>Select a theme to preview live on the site. Only administrator will be able to see the selected theme. </p>
434
  <p>Additionally you may add "?theme=xxx" to your blog url, where xxx is the theme name you want to test.</p>
435
  <?php
446
 
447
 
448
  <p class="submit">
449
+
 
 
 
450
  <input type="submit" name="button" value="Disable Theme Drive" class="button-primary" />
451
+
 
 
 
452
  <input type="submit" name="button" value="Enable Theme Drive" class="button-primary" />
453
+
 
 
454
 
455
  </p>
456