Changeset 512431
- Timestamp:
- 02/29/2012 04:57:22 PM (14 years ago)
- Location:
- universo-widget-and-mobile-redirect/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (2 diffs)
-
universo-widget-and-mobile-redirect.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
universo-widget-and-mobile-redirect/trunk/readme.txt
r512328 r512431 4 4 Requires at least: 2.5 5 5 Tested up to: 3.3.1 6 Stable tag: 1.0 6 Stable tag: 1.0.1 7 7 8 8 Displays Universo's (http://universo.mobi) App link in the sidebar and add a Mobile Recognition tool to redirect your reader using mobile devices to your Universo App URL. … … 61 61 = 1.0 = 62 62 * First working version 63 64 = 1.0.1 = 65 * Mobile redirection correction -
universo-widget-and-mobile-redirect/trunk/universo-widget-and-mobile-redirect.php
r512341 r512431 3 3 Plugin Name: Universo Mobile App Plugin 4 4 Description: Displays Universo's (http://universo.mobi) App link in the sidebar and add a Mobile Recognition tool to redirect your reader using mobile devices to your Universo App URL. 5 Version: 1.0 5 Version: 1.0.1 6 6 Author: Eduardo Russo 7 7 Author URI: http://universo.mobi/ … … 37 37 38 38 function universo_redirect() { 39 //Debug40 39 include("Mobile_Detect.php"); 41 40 $detect = new Mobile_Detect(); 41 global $universo_options; 42 42 $options = get_option('widget_universo'); 43 43 44 if ($options['mobile_redirect'] && $detect->isMobile()) 45 wp_redirect($options['target_url']); 44 if ($options['mobile_redirect'] && $detect->isMobile()){ 45 wp_redirect($options['app_url']); 46 } 46 47 } 47 48
Note: See TracChangeset
for help on using the changeset viewer.