开发者 | RavanH |
---|---|
更新时间 | 2014年4月16日 00:33 |
捐献地址: | 去捐款 |
PHP版本: | 3.0 及以上 |
WordPress版本: | 3.1 |
check_mobile
allows you to affect if a mobile browser is detected.
function your_mobile_check_function($mobile_status) { // do your logic, set $mobile_status to true/false as needed return $mobile_status; } add_filter('check_mobile', 'your_mobile_check_function');
ACTIONS
wpmsme_settings_form_top
hook at the beginning of the settings page
wpmsme_settings_form_bottom
hook at the end of the settings page
Example: action wpmsme_settings_form
allows you to add to the settings page for this plugin. Handling form posts and other activities from anything you add to this form should be done in your plugin.
function your_settings_form() { // create your form here - don't forget to catch the form submission as well } add_action('wpmsme_settings_form', 'your_settings_form');
No, you need to install one yourself. After plugin activation, you will get instructions for easy automated installation of compatible Mobile themes hosted on WordPress Extend. At this point ( version 0.3 ) this is only Carrington Mobile.
Yes.
Yes.
Yes.
Yes, it is compatible with WP Super Cache 0.9+ (using WP Cache mode). Be sure to activate the Mobile option. It has also been tested on Quick Cache where you need to copy the list of mobile and touch browsers to the No-Cache User-Agent Patterns section.
No, it does not.
Yes, to Google and Yahoo mobile search crawlers. You can add any others by adding their user agents in the plugin's Settings page.
Yes, the mobile theme Carrington Mobile has a customized interface for advanced mobile browsers and special styling to make things "finger-sized" for touch browsers.
Visit the settings page and use the link there to identify your mobile browser's User Agent. Then add that to the list of mobile browsers in your settings.
Remove the iPhone from the list of detected browsers, then the other iPhone theme should work as normal.
Yes. The link can be added to your theme by using the wpms_mobile_link() template tag:
<?php if (function_exists('wpms_mobile_link')) { wpms_mobile_link(); } ?>
This will output HTML code like <a href="?wpmsme_action=show_mobile">Mobile Edition</a>
on you blog page.
When a user follows that link, the mobile version will be displayed with after each post/page content a link back to the Standard Edition.
Note: this does not work well if you have WP Cache enabled.
This is a feature of the plugin to allow easy access to recent content.
You will need to edit the templates is the /carrington-mobile/ theme folder. Any changes you make there will affect the display of the mobile interface.