Changes to presstrends function

Just some little changes .I apologize for all the "remove white spaces" change, i have my editor configured to do that.

Updated to use wp_get_theme() function since the old one (get_theme_data) is deprecated since WP 3.4

Initialized $plugin_name to avoid an undefined variable notice.