Any Mobile Theme Switcher - Version 0.7

Version Description

  • New Interface
  • User Agents Update
  • Added Support Link
Download this release

Release Info

Developer dnesscarkey
Plugin Icon 128x128 Any Mobile Theme Switcher
Version 0.7
Comparing to
See all releases

Code changes from version 0.6 to 0.7

Files changed (3) hide show
  1. any-mobile-theme-switcher.php +2 -2
  2. plugin_interface.php +123 -28
  3. readme.txt +12 -6
any-mobile-theme-switcher.php CHANGED
@@ -1,10 +1,10 @@
1
  <?php
2
  /*
3
  Plugin Name: Any Mobile Theme Switcher
4
- Plugin URI: http://dineshkarki.com.np/plugins/any-mobile-theme-switcher
5
  Description: This plugin allow you to detect all mobile platform and switch the theme. Supports most of the mobile platform including iphone, ipad, ipod, windows mobile, parm os, blackberry, android.
6
  Author: Dinesh Karki
7
- Version: 0.6
8
  Author URI: http://www.dineshkarki.com.np
9
  */
10
 
1
  <?php
2
  /*
3
  Plugin Name: Any Mobile Theme Switcher
4
+ Plugin URI: http://dineshkarki.com.np/any-mobile-theme-switcher
5
  Description: This plugin allow you to detect all mobile platform and switch the theme. Supports most of the mobile platform including iphone, ipad, ipod, windows mobile, parm os, blackberry, android.
6
  Author: Dinesh Karki
7
+ Version: 0.7
8
  Author URI: http://www.dineshkarki.com.np
9
  */
10
 
plugin_interface.php CHANGED
@@ -57,31 +57,28 @@ function am_settings_page() {
57
  natcasesort($themeNames);
58
  ?>
59
 
60
- <div class="support_education wrap" style="width:250px; line-height:2.0; position:fixed; right:0;">
61
- <h3>Educate a Child</h3>
62
- We are sponsoring education for poor children. Donate and help us raise fund for them. For more details click <a href="http://dineshkarki.com.np/educate-child" target="_blank">here</a>
63
- <br /><br />
64
- <div align="center">
65
- <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
66
- <input type="hidden" name="cmd" value="_s-xclick">
67
- <input type="hidden" name="hosted_button_id" value="GNJJ22PDAAX48">
68
- <input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
69
- <img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
70
- </form>
71
- </div>
72
- </div>
73
-
74
- <div class="wrap">
75
  <h2>Any Mobile Theme Switcher</h2>
76
  <style>
77
- fieldset.license_key { border:1px solid #060; padding:5px;-webkit-border-radius: 5px;border-radius: 5px; padding-bottom:10px;}
78
- fieldset.license_key legend{ color:#060; font-size:15px; font-weight:bold; padding-left:5px; padding-right:5px;}
79
- fieldset.license_key input[type=text]{ margin-right:20px;}
80
  </style>
81
-
82
- <h3>Select Theme For Devices</h3>
 
83
  <form method="post" action="options.php">
84
  <?php settings_fields( 'am-settings-group' ); ?>
 
 
 
 
 
 
 
 
 
 
 
 
85
  <table class="form-table">
86
  <tr valign="top">
87
  <th scope="row">iPhone/iPod Touch Theme:</th>
@@ -220,11 +217,30 @@ fieldset.license_key input[type=text]{ margin-right:20px;}
220
  </select>
221
  </td>
222
  </tr>
223
-
 
 
 
 
 
224
  </table>
225
-
226
  <br/>
227
- <h3>Other Settings (Optional)</h3>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
228
  <table class="form-table">
229
  <tr valign="top">
230
  <th scope="row">Switch Mobile Theme Link Text</th>
@@ -248,10 +264,30 @@ fieldset.license_key input[type=text]{ margin-right:20px;}
248
  </td>
249
  </tr>
250
 
 
 
 
 
 
 
 
251
  </table>
252
 
253
  <br/>
254
- <h3>Read Me Please</h3>
 
 
 
 
 
 
 
 
 
 
 
 
 
255
  <p>
256
  Use the following shortcode <strong>[show_theme_switch_link]</strong> in templates to show the theme switch link.
257
  <br/>Example: <strong>&lt;?php echo do_shortcode('[show_theme_switch_link]'); ?&gt;</strong>
@@ -262,11 +298,70 @@ fieldset.license_key input[type=text]{ margin-right:20px;}
262
  Url : <strong>http://yoursitename.com/?am_force_theme_layout=mobile</strong> (For Desktop Theme)<br/>
263
  Label : As you wish :)
264
  </p>
 
265
 
266
-
267
- <p class="submit">
268
- <input type="submit" class="button-primary" value="<?php _e('Save Changes') ?>" />
269
- </p>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
270
 
271
  </form>
272
  </div>
57
  natcasesort($themeNames);
58
  ?>
59
 
60
+ <div class="wrap amts">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
61
  <h2>Any Mobile Theme Switcher</h2>
62
  <style>
63
+ .amts .form-table th, .amts .form-table td{border:none !important;}
 
 
64
  </style>
65
+ <table width="100%">
66
+ <tr>
67
+ <td valign="top">
68
  <form method="post" action="options.php">
69
  <?php settings_fields( 'am-settings-group' ); ?>
70
+
71
+
72
+ <table class="wp-list-table widefat fixed bookmarks">
73
+ <thead>
74
+ <tr>
75
+ <th>Select Theme For Devices</th>
76
+ </tr>
77
+ </thead>
78
+ <tbody>
79
+ <tr>
80
+ <td>
81
+
82
  <table class="form-table">
83
  <tr valign="top">
84
  <th scope="row">iPhone/iPod Touch Theme:</th>
217
  </select>
218
  </td>
219
  </tr>
220
+ <tr valign="top">
221
+ <th scope="row">&nbsp;</th>
222
+ <td>
223
+ <input type="submit" class="button-primary" value="<?php _e('Save Changes') ?>" />
224
+ </td>
225
+ </tr>
226
  </table>
 
227
  <br/>
228
+
229
+ </td></tr></tbody></table>
230
+
231
+ <br/>
232
+
233
+
234
+ <table class="wp-list-table widefat fixed bookmarks">
235
+ <thead>
236
+ <tr>
237
+ <th>Other Settings (Optional)</th>
238
+ </tr>
239
+ </thead>
240
+ <tbody>
241
+ <tr>
242
+ <td>
243
+
244
  <table class="form-table">
245
  <tr valign="top">
246
  <th scope="row">Switch Mobile Theme Link Text</th>
264
  </td>
265
  </tr>
266
 
267
+ <tr valign="top">
268
+ <th scope="row">&nbsp;</th>
269
+ <td>
270
+ <input type="submit" class="button-primary" value="<?php _e('Save Changes') ?>" />
271
+ </td>
272
+ </tr>
273
+
274
  </table>
275
 
276
  <br/>
277
+
278
+ </td></tr></tbody></table>
279
+
280
+ <br/>
281
+
282
+ <table class="wp-list-table widefat fixed bookmarks">
283
+ <thead>
284
+ <tr>
285
+ <th>Read Me Please</th>
286
+ </tr>
287
+ </thead>
288
+ <tbody>
289
+ <tr>
290
+ <td>
291
  <p>
292
  Use the following shortcode <strong>[show_theme_switch_link]</strong> in templates to show the theme switch link.
293
  <br/>Example: <strong>&lt;?php echo do_shortcode('[show_theme_switch_link]'); ?&gt;</strong>
298
  Url : <strong>http://yoursitename.com/?am_force_theme_layout=mobile</strong> (For Desktop Theme)<br/>
299
  Label : As you wish :)
300
  </p>
301
+ </td></tr></tbody></table>
302
 
303
+ </td>
304
+ <td width="15">&nbsp;</td>
305
+ <td width="250" valign="top">
306
+ <table class="wp-list-table widefat fixed bookmarks">
307
+ <thead>
308
+ <tr>
309
+ <th>Support</th>
310
+ </tr>
311
+ </thead>
312
+ <tbody>
313
+ <tr>
314
+ <td>If you have any issues, click <a href="http://dineshkarki.com.np/forums/forum/mobile-theme-switcher" target="_blank">here</a> to visit our support forum</td>
315
+ </tr>
316
+ </tbody>
317
+ </table>
318
+ <br/>
319
+ <table class="wp-list-table widefat fixed bookmarks">
320
+ <thead>
321
+ <tr>
322
+ <th>Plugins You May Like</th>
323
+ </tr>
324
+ </thead>
325
+ <tbody>
326
+ <tr>
327
+ <td>
328
+ <ol>
329
+ <li><a href="http://wordpress.org/extend/plugins/use-any-font/" target="_blank">Use Any Font</a></li>
330
+ <li><a href="http://wordpress.org/extend/plugins/sms/" target="_blank">SMS</a></li>
331
+ <li><a href="http://dineshkarki.com.np/jquery-validation-for-contact-form-7" target="_blank">Jquery Validation For Contact Form 7</a></li>
332
+ <li><a href="http://wordpress.org/extend/plugins/add-tags-and-category-to-page/" target="_blank">Add Tags And Category To Page</a></li>
333
+ <li><a href="http://wordpress.org/extend/plugins/block-specific-plugin-updates/" target="_blank">Block Specific Plugin Updates</a></li>
334
+ <li><a href="http://wordpress.org/extend/plugins/featured-image-in-rss-feed/" target="_blank">Featured Image In RSS Feed</a></li>
335
+ <li><a href="http://wordpress.org/extend/plugins/remove-admin-bar-for-client/" target="_blank">Remove Admin Bar</a></li>
336
+ <li><a href="http://wordpress.org/extend/plugins/html-in-category-and-pages/" target="_blank">.html in category and page url</a></li>
337
+ </ol>
338
+ </td>
339
+ </tr>
340
+ </tbody>
341
+ </table>
342
+ <br/>
343
+ <table class="wp-list-table widefat fixed bookmarks">
344
+ <thead>
345
+ <tr>
346
+ <th>Facebook</th>
347
+ </tr>
348
+ </thead>
349
+ <tbody>
350
+ <tr>
351
+ <td><iframe src="//www.facebook.com/plugins/likebox.php?href=https%3A%2F%2Fwww.facebook.com%2Fpages%2FDnessCarKey%2F77553779916&amp;width=185&amp;height=258&amp;show_faces=true&amp;colorscheme=light&amp;stream=false&amp;border_color=%23f9f9f9&amp;header=false&amp;appId=215419415167468" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:240px; height:258px;" allowTransparency="true"></iframe>
352
+ </td>
353
+ </tr>
354
+ </tbody>
355
+ </table>
356
+ <br/>
357
+
358
+
359
+
360
+
361
+ </td>
362
+ </tr>
363
+ </table>
364
+
365
 
366
  </form>
367
  </div>
readme.txt CHANGED
@@ -1,10 +1,9 @@
1
  === Any Mobile Theme Switcher ===
2
  Contributors: dnesscarkey
3
- Tags: mobile theme, switcher, mobile-browser
4
- Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=TYPYWFP6P2KQJ
5
  Requires at least: 3.0.
6
- Tested up to: 3.4.1
7
- Stable tag: 0.6
8
 
9
  This Plugin detects mobile browser and display the theme as the setting done from admin. Usefull for switch to Mobile Theme.
10
 
@@ -23,9 +22,10 @@ Detects all the Mobile Browsers and loads the mobile theme as per your settings
23
 
24
  You can select a different mobile theme for each mobile browser. You can select different mobile themes for each of the options above.
25
 
26
- Please report any bugs @ http://dineshkarki.com.np/plugins/any-mobile-theme-switcher/report-bugs.
 
 
27
 
28
- Thanks to <a href="http://wework4web.com" target="_blank">wework4web</a> for supporting plugin developement.
29
 
30
  == Installation ==
31
 
@@ -45,6 +45,12 @@ Yes it detect most of the mobile browsers and redirects it to its mobile theme s
45
 
46
  == Changelog ==
47
 
 
 
 
 
 
 
48
  = 0.6 =
49
  * Added More Mobile User Agents
50
 
1
  === Any Mobile Theme Switcher ===
2
  Contributors: dnesscarkey
3
+ Tags: mobile theme, mobile theme switcher, mobile browser detect, mobile detect, theme redirection based on mobile device
 
4
  Requires at least: 3.0.
5
+ Tested up to: 3.4.2
6
+ Stable tag: 0.7
7
 
8
  This Plugin detects mobile browser and display the theme as the setting done from admin. Usefull for switch to Mobile Theme.
9
 
22
 
23
  You can select a different mobile theme for each mobile browser. You can select different mobile themes for each of the options above.
24
 
25
+ Want Mobile Theme ? Get it from <a href="http://dineshkarki.com.np/wppack-theme">here</a>.
26
+
27
+ Please visit our <a href="http://dineshkarki.com.np/forums/forum/mobile-theme-switcher" target="_blank">support forum</a> for any issues.
28
 
 
29
 
30
  == Installation ==
31
 
45
 
46
  == Changelog ==
47
 
48
+ = 0.7 =
49
+ * New Interface
50
+ * User Agents Update
51
+ * Added Support Link
52
+
53
+
54
  = 0.6 =
55
  * Added More Mobile User Agents
56