Xilitheme select provides an automatic selection of themes : one for current browsers and another for iphone/ipod touch browser.
The plugin xilitheme-select don’t content itself themes. The themes remain in Themes folder and are selected by the current browser and the rulers defined by webmaster. Webmaster is totally free to define (the look of) the theme on each side (deskop or iPhone). There is no automatic look transformation.
Latest release downloadable in WordPress repository :
** first public release – doc updated progressively – see also php code **
– this first release is easy to use by admin/webmasters with knowledge of WP themes.
In addition of your current selected theme add in the themes folder a theme folder named as the current with extension ‘_4touch’ dedicaced for iphone browser.
Note about theme with template_page
Both themes (the current and the one for iphone / ipodtouch) must contain the same template (name) – the contents can differ obviously -
admin dashboard UI:
The interface provide ways to change default extension or choose a specific fullname (for the « iphone » theme) – useful for webmaster or theme’s developer -
See the (documented) source of the plugin to discover other type of instantiation of the class
xilithemeselector. One provide a way to have or not a admin dashboard interface to set the specs with only php coding.
$wp_ismobile = new xilithemeselector(true); at end of code
== Installation ==
- Upload the folder containing
xilithemeselect.phpand (your) languages files to the
- Upload a specific theme for iPhone with a folder named as current theme + extension « _4touch » but don’t activate it as usual. (example and snapshot below)
- Activate the plugin through the ‘Plugins’ menu in WordPress,
- Go to the dashboard settings tab – Xilitheme select theme.
Frequently Asked Questions
When I visit the site with iPhone or iPhone simulator, I don’t see the specific theme !
Verify that the folder of this theme has a right name with right extension.
Why the option full name or extension ?
It is an easiness to choose a theme with a folder without the proposed extension.
Do you provide a theme for these mobile device as iPhone or iTouch ?
Now below a link to a lite release of one our iPhone theme. (You can use also the famous iwphone theme (2007).)
Why an option to disable admin UI ?
For webmaster, the UI is useful during the theme installation. And after not ! so better admin UI performances…
The future ?
Written as a class, the xilitheme select plugin deliver object and vars useful for theme’s developer that are interested to provide good design for iPhone users of a website.
The download links
The link of the WordPress repository : http://wordpress.org/extend/plugins/xilitheme-select/
The link of a lite demo theme for iTouch (this theme now contains accordion features for categories list and is ready for multilingual website with plugin xili-language… and more… require WP 2.9.x): default_4touch.zip
By default, xilitheme select detect for iphone the theme with folder and extension « _4touch ».
Now an easy way to see « iphone » in Safari on desktop computer : the safari develop menu (activation in Preferences/advanced)
Xilitheme select : Admin Settings UI :
In this example : in the first part, a diagnosis of the current theme and phone theme is done (1). and in (2), the webmaster has choosen the method of « full name folder ». It is useful during developing phase when evaluating different release of themes.
Updated July 27th