Linux 软件免费装
Banner图

Plugin Name

开发者 dolby_uk
更新时间 2017年10月11日 17:22
捐献地址: 去捐款
PHP版本: 3.1 及以上
WordPress版本: 4.6

标签

mobile iphone android tablet ipad mobile theme theme switcher blackberry mobile device

下载

1.0 1.1.1 1.2.1 1.3 1.3.1 1.3.10 1.3.11 1.3.12 1.3.13 1.3.14 1.3.15 1.3.16 1.3.5 1.3.6 1.3.7 1.3.8 1.3.9

详情介绍:

Mobile Smart (http://www.mobile-smart.co.uk/), using trusty detection from the MobileESP project (http://www.mobileesp.com) allows the following: See the Frequently Asked Questions for guidance on how to use the plugin. Device support includes iPhone, iPad, Android, Android tablet, Samsung, Motorola, Blackberry, Windows Phone 6 & 7, Symbian, and many more. Mobile Smart Pro Check out the Mobile Smart Pro plugin http://www.mobile-smart.co.uk/mobile-smart-pro for support for: Contribute Want to contribute to the project? Checkout the GitHub project at http://www.github.com/dansmart/mobile-smart Mobile Theme Mobile Smart comes with a basic barebones ('boilerplate') theme that can be used by theme developers to develop for mobile devices. The Mobile Smart boilerplate theme is based on two projects: http://html5boilerplate.com/mobile/ and http://html5reset.org/#wordpress with some additional Mobile Smart modifications. Note: The theme is not designed to be used without developer modification.

安装:

This section describes how to install the plugin and get it working.
  1. Upload the mobile-smart directory to the /wp-content/plugins/ directory
  2. Activate the plugin through the 'Plugins' menu in WordPress
  3. Go to Settings->Mobile Smart and choose your theme to display when a mobile device encounters your page.
Go to http://www.mobile-smart.co.uk/installation/ for more details.

升级注意事项:

= 1.3.8
  • Fix for undeclared plugins_url in transcoding = 1.3.7
  • Fixed some code warnings and fixed access permissions for admin page = 1.3.6
  • Debugged tablet switching code = 1.3.5
  • Fix for cookie path
  • Updated Mobile ESP to latest version
  • Improved tablet tier checking for Android tablets = 1.3 Improved admin, enable/disable iPad/tablet switching, updated MobileESP device detection engine
1.2.1 Security patch to timthumb.php 1.2 If you're switching to a child theme, you will need to save your Mobile Smart settings before use. 1.1 1.0 0.2 0.1 Initial release.

常见问题:

Does this work with other mobile plugins

See http://www.mobile-smart.co.uk/frequently-asked-questions/ for more. It would be advisable not to use other mobile theme switching functionality with this unless theme switching is turned off (go to Settings->Mobile Smart to disable). This has been tested with the Wordpress Mobile Pack transcoder and is noted to be compatible, though the list of mobile devices are different between the two.

How to switch and style for Tablets

Go to the Mobile Theme tab in the Settings->Mobile Smart admin page, and enable / disable tablet support. If you wish to serve up different styles for tablets, you'll have to modify your template to use the template tags to detect: <?php /* add additional stylesheet for certain mobile types */ global $mobile_smart; // add stylesheets dependent on header if ($mobile_smart->isTierTablet()) { wp_enqueue_style('mobile-tablet', get_bloginfo('stylesheet_directory')."/css/tablet.css"); } ?> You can use the same template tag (isTierTablet()) to display additional content (such as sidebars, etc).

How do I use the Manual Switcher?

You have the option of the following:

  • Mobile Smart Manual Switcher Widget - go to Appearance->Widgets and drop the widget in an appropriate sidebar. If you're a theme developer, you can create a new 'sidebar' in the appropriate location, e.g. the footer bar, if you don't want this option in the standard sidebar.
  • Enable Manual Switcher in footer - if this option is enabled (via the Options->Mobile Smart page), this adds the Manual Switcher link into the wp_footer() call, which means it will be displayed at the bottom of your page.
  • Template tag, see below: `<?php // get global instance of Mobile Smart class global $mobile_smart;
// display manual switcher link - requires Manual Switching to be enabled $mobile_smart->addSwitcherLink(); ?>` The Manual Switcher displays the switcher link in a div with an id of mobilesmart_switcher

Do you do domain switching

Go to http://www.mobile-smart.co.uk/ for more information on the Mobile Smart Pro plugin.

How do I enable unique handset body classes

To enable the CSS body classes, ensure that in your mobile theme you have the body_class() function included: <?php body_class(); ?>

How do I change stylesheets dependent on device tier

How do I use the body classes? If you have a style that you only want a specific tier of device (e.g. touch handsets like the iPhone) to use, then use the body class CSS selector in your CSS file as follows: (Example: / for all links / a { color: black; } /* increase padding on anchors on touch handsets to allow for big fingers .mobile-tier-touch li a { padding: 20px; }

How do I change stylesheets dependent on device tier

You would do this if you prefer to split out each device tier CSS into separate files. Be aware that this creates an extra function call though. Use the following PHP code: <?php /* add additional stylesheet for certain mobile types */ global $mobile_smart; // add stylesheets dependent on header if ($mobile_smart->isTierTouch()) { wp_enqueue_style('mobile-touch', get_bloginfo('stylesheet_directory')."/css/touch.css"); } else if ($mobile_smart->isTierSmartphone()) { wp_enqueue_style('mobile-smartphone', get_bloginfo('stylesheet_directory')."/css/smartphone.css"); } ?> Note: these functions do not test for the Manual Switcher. To test for the manual switcher (in case you are using these template tag functions in a desktop theme), you should call: <?php /* add additional stylesheet for certain mobile types */ global $mobile_smart; // find out manual switching state $is_manual_switched_to_mobile = $mobile_smart->switcher_isMobile(); ?>

Can you add xxxx-device?

Please email me with details of the device that is not yet supported by Mobile Smart, and I will add it in, and endeavour to release an updated version within the week (if timescales allow).

Where can I get a mobile theme from?

Try the Mobile Smart boilerplate theme if you're a developer. Also check out the Wordpress Mobile Pack for a good example of a theme that is compatible with XHTML-MP.

更新日志:

= 1.3.16 1.3 Major upgrade: 1.2.1 Vital Security patch (timthumb.php). Please upgrade immediately. 1.2 Added support for child themes 1.1.1 Bug fix where plugin was calling non existent DetectTierTouch() function. 1.1 Includes sample mobile theme - based on Mobile Boilerplate and HTML 5 Reset projects 1.0 Based detector on Mobile ESP project, meaning device detection will stay up to date with latest mobile devices 0.2 Added Manual Mobile Switcher - widget, link, and template tag. 0.1 Initial release, containing mobile device detection, body classes, and mobile tier template tags.