Multi Device Switcher

Wordpress Plugin
Download latest - 1.8.5

Developers

thingsym

Download Stats

Today 63
Yesterday 73
Last Week 499
All Time 157,818


Multi Device Switcher plugin allows you to set a separate theme for device (Smart Phone, Tablet PC, Mobile Phone, Game and custom). This plugin detects if your site is being viewed by UserAgent, and switches to selected theme. The Custom Switcher can add every device.

Features

  • Set a separate theme for device (Smart Phone, Tablet PC, Mobile Phone, Game), switches to selected theme.
  • Add every device by the Custom Switcher.
  • Add links 'Mobile' or 'PC' in the theme by the PC Switcher, switch to the default theme.
  • Switch the content of the post or page for each device by the Display Switcher Shortcode.
  • Disable the switching of the theme for each url by the Disable Switcher.
  • Can be using is_multi_device() function that detect of the device.
  • Multi Device Switcher Command command-line tool (required WP-CLI)

Support

If you have any trouble, you can use the forums or report bugs.

  • Forum: https://wordpress.org/support/plugin/multi-device-switcher/
  • Issues: https://github.com/thingsym/multi-device-switcher/issues

Contribution

Small patches and bug reports can be submitted a issue tracker in Github. Forking on Github is another good way. You can send a pull request.

Translating a plugin takes a lot of time, effort, and patience. I really appreciate the hard work from these contributors.

If you have created or updated your own language pack, you can send gettext PO and MO files to author. I can bundle it into plugin.

  • VCS - GitHub
  • Homepage - WordPress Plugin
  • Translate Multi Device Switcher into your language.

You can also contribute by answering issues on the forums.

  • Forum: https://wordpress.org/support/plugin/multi-device-switcher/
  • Issues: https://github.com/thingsym/multi-device-switcher/issues

Patches and Bug Fixes

Forking on Github is another good way. You can send a pull request.

  1. Fork Multi Device Switcher from GitHub repository
  2. Create a feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Create new Pull Request

Contribute guidlines

If you would like to contribute, here are some notes and guidlines.

  • All development happens on the develop branch, so it is always the most up-to-date
  • The master branch only contains tagged releases
  • If you are going to be submitting a pull request, please submit your pull request to the develop branch
  • See about forking and pull requests

Test Matrix

For operation compatibility between PHP version and WordPress version, see below Github Actions.


Releases (31 )

Version Release Date Change Log
1.8.5 2022-12-13
  • add phpcs job to ci
  • add healthcheck to database container
  • add bats test to ci
  • fix bats test case
  • add test case
  • fix phpcs.ruleset.xml
  • add enqueue_styles method
  • imporve code with phpcs
  • fix composer scripts
  • update github actions
1.8.4 2022-11-25
  • tested up to 6.1.0
  • update japanese translation
  • update pot
  • fix composer.json
  • add test case
  • update useragent
  • fix load_textdomain method for testability
  • add msgmerge to composer scripts
  • add support section and enhance contribution section
  • fix license
1.8.3 2022-02-28
  • update japanese translation
  • update pot
  • add composer script
  • change makepot from php script to wp cli
  • change plugin initialization to plugins_loaded hook
  • replace assert from assertEquals to assertSame
1.8.2 2022-02-02
  • change requires at least to wordpress 4.9
  • change requires to PHP 5.6
  • add test case
  • set the initial value an empty array
  • add hook_suffix argument
1.8.1 2021-12-26
  • update japanese translation
  • update pot
  • imporve code with phpcs
  • update wordpress-test-matrix
  • fix test case
  • fix plugin_metadata_links method
  • add load_plugin_data method
  • rename variable from options to option_name
  • add test case for customizer
  • rename method name
  • update composer dependencies
  • change from protected variable to public variable for unit test
  • add timeout-minutes to workflows
  • add phpunit-polyfills
  • update install-wp-tests.sh
  • tested up to 5.8.0
  • fix .editorconfig
1.8.0 2021-02-15
  • add PHPDoc
  • update japanese translation
  • update pot
  • fix composer.json
  • add FUNDING.yml
  • change donate link
  • add sponsor link
  • add GitHub actions for CI/CD, remove .travis.yml
1.7.0 2019-07-10
  • add test case for cdn
  • add multi_device_switcher/detect_device action hook
  • split switch_theme method into detect_device and switch_theme
  • fix wp-cli
  • add bats test case for cli
  • refactoring with phpstan
  • fix default options via method
  • change tag name
  • change method name
  • improve get_options method
  • replace from get_default_options() to class value default_options
  • fix not valid snake_case format
  • add public as access modifier keywords
  • add PHPDoc
  • add reset-wp-tests.sh, uninstall-wp-tests.sh
  • fix header
  • fix textdomain
  • fix indent and reformat with phpcs and phpcbf
  • add composer.json for test
  • add static code analysis config
1.6.2 2018-08-19
  • add prefix into hook tag, change tag name from add_header_vary to multi_device_switcher_add_header_vary
  • for php5.3, change called function via hook from anonymous function to public function
1.6.1 2018-07-17
  • add test cases
  • add add_header_vary filter
  • improve cookie settings via wp_headers hook
  • change readme.md file name to upper case
  • add LICENSE file
1.6.0 2017-11-22
  • change Requires at least version 3.7
  • remove cache with PC Switcher widget
  • add init function
  • change hook destination from plugin_action_links to plugin_action_links_{$plugin_file}
  • add load_textdomain function
  • add define variable MULTI_DEVICE_SWITCHER_FILE
  • check class Multi_Device_Switcher
  • check ABSPATH
  • add isset to conditional statement
  • fix boolean
  • add tests
1.5.4 2017-05-15
  • fixed: fix property keyword for testability
  • fixed: fix add_action 'customize_register' with __construct()
  • fixed: fix capability
1.5.3 2017-01-18
  • fixed: add function multi_device_switcher_get_default_options for wp multi-device
1.5.2 2016-12-06
  • fixed: fix setcookie()
1.5.1 2016-04-18
  • fixed: fix preg_split()
1.5.0 2015-10-02
  • fixed: refactoring by the PHP_CodeSniffer
  • fixed: change admin functions to class/object methods
1.4.2 2015-05-25
  • edited: edit readme
  • new features: Display Switcher Shortcode
  • updated: update default UserAgent
  • fixed: fix pc-switcher ssl url
1.4.1 2015-03-03
  • edited: edit readme
  • new features: is_disable_switcher() function
  • new features: is_pc_switcher() function
  • fixed: fix redirect url and pc-switcher url
1.4.0 2015-01-21
  • edited: edit readme
  • added: add cookies 'multi-device-switcher', 'disable-switcher'
  • new features: Disable Switcher
  • fixed: fix get_options_userAgent(), multi_device_switcher_get_options()
  • fixed: add reserved words validate
  • new features: Multi Device Switcher Command
  • added: add option settings into Theme Customizer
  • fixed: refactoring by the PHP_CodeSniffer
1.3.0 2014-09-18
  • fixed: fix script, style, html and readme
  • new features: is_multi_device() function
  • fixed: fix translation
  • updated: update default UserAgent
  • fixed: replace WP_PLUGIN_URL with plugins_url()
  • fixed: using Page Hook Suffix
  • merged: pull request #3
1.2.3 2014-04-21
1.2.2 2014-01-14
  • improved: improve responsiveness UI
  • fixed: fix html
1.2.1 2013-06-25
  • fixed: delete add_contextual_help
  • fixed: fix readme and html
1.2.0 2013-03-26
1.1.2 2012-12-12
  • fixed: fix tabs and buttons
1.1.1 2012-10-16
  • fixed: change the order of the UserAgent detection
  • updated: update default UserAgent
  • added: add HTTP/1.1 Vary header
1.1.0 2012-08-01
  • new features: Custom Switcher
1.0.4 2012-07-09
  • fixed: fix the object model PHP5, _construct() to replace MultiDevice_Switcher
  • fixed: wp_get_themes(), and wp_get_theme() to replace get_themes(), get_theme()
1.0.3 2012-04-19
  • updated: update screenshots
  • fixed: fix reset button
1.0.2 2012-03-05
  • added: add file uninstall.php
  • fixed: split admin_enqueue_scripts() into two functions
  • fixed: detects is_admin()
1.0.1 2012-02-11
  • fixed: split multi_device_switcher_init() into two functions
1.0.0 2012-02-02
  • Initial release.