Theme Test Drive - Version 2.6.3

Version Description

Download this release

Release Info

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

Code changes from version 2.6.1 to 2.6.3

Files changed (1) hide show
  1. themedrive.php +8 -5
themedrive.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Theme Test Drive
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.6.1
8
Author URI: http://www.prelovac.com/vladimir/
9
10
To-Do:
@@ -15,7 +15,7 @@ To-Do:
15
16
// // // PLUGIN CODE // // //
17
18
- $themedrive_localversion="2.6";
19
20
$wp_themedrive_plugin_url = trailingslashit( get_bloginfo('wpurl') ).PLUGINDIR.'/'. dirname( plugin_basename(__FILE__) );
21
@@ -210,8 +210,9 @@ function themedrive_determine_theme()
210
}
211
}
212
213
- if (isset($_GET['theme'])) {
214
- $theme = $_GET['theme'];
215
}
216
217
$theme_data = get_theme($theme);
@@ -575,8 +576,10 @@ function themdrive_js() {
575
echo '<script src="'.get_bloginfo('wpurl').'/wp-content/plugins/theme-test-drive/previewbubble.js" type="text/javascript"></script>';
576
echo "\n";
577
}
578
//add_action("admin_head","themdrive_js");
579
580
//$tp.= '<p><img src="http://thumbnailspro.com/thumb.php?url='.trailingslashit(get_option('siteurl')).'?theme='.htmlspecialchars($theme_name).'&s=400" /><br /></p>';
581
//<p><img src="http://images.websnapr.com/?size=s&key=42d1W6HhpB0B&url='.trailingslashit(get_option('siteurl')).'?theme='.themedrive_get_theme().'" /><br /></p>
582
- ?>
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.6.3
8
Author URI: http://www.prelovac.com/vladimir/
9
10
To-Do:
15
16
// // // PLUGIN CODE // // //
17
18
+ $themedrive_localversion="2.6.3";
19
20
$wp_themedrive_plugin_url = trailingslashit( get_bloginfo('wpurl') ).PLUGINDIR.'/'. dirname( plugin_basename(__FILE__) );
21
210
}
211
}
212
213
+ $all=$_GET+$_POST;
214
+ if (isset($all['theme'])) {
215
+ $theme = $all['theme'];
216
}
217
218
$theme_data = get_theme($theme);
576
echo '<script src="'.get_bloginfo('wpurl').'/wp-content/plugins/theme-test-drive/previewbubble.js" type="text/javascript"></script>';
577
echo "\n";
578
}
579
+
580
+
581
//add_action("admin_head","themdrive_js");
582
583
//$tp.= '<p><img src="http://thumbnailspro.com/thumb.php?url='.trailingslashit(get_option('siteurl')).'?theme='.htmlspecialchars($theme_name).'&s=400" /><br /></p>';
584
//<p><img src="http://images.websnapr.com/?size=s&key=42d1W6HhpB0B&url='.trailingslashit(get_option('siteurl')).'?theme='.themedrive_get_theme().'" /><br /></p>
585
+ ?>