Download & Extend

Change from smartphone to smalltouch

Project:AdaptiveTheme
Version:7.x-3.x-dev
Component:Theme Settings
Category:task
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

Originally AT used the old term "smartphone" to refer to what are effectively small touch screen devices.

I never really liked the term "smartphone", especially since I myself own small touch devices that are not phones. The term smartphone was used because it's easy to understand, however I think its becomeing too old school and kind of reflects and out-of-touch idea, excuse the pun :)

Upshot - change to the more modern term "smalltouch". While this sounds trivial it is anything but. The theme uses the word "smartphone" in hundreds of places, in functions, theme settings, forms etc etc. Globally changing this means older sub-themes will break.

To ensure they do not I have engineered in backwards compatibility:

- in all form items that take a theme setting as the default_value
- all other functions that need to test for a theme setting that might have default value in the info file

And anywhere else we need to.I am pretty sure I have nailed everything up to this point.

Error messages to look out when saving the theme settings:

"An illegal choice has been detected",
"No layout selection detected for the Smalltouch Landscape Layout..."

That will be a clear indication something is not right, you might need to pull the latest code for AT dev from GIT, or we have a bug.

Comments

#1

How to upgrade your pre AT 7.x-3.2 sub-theme

In the info file search and replace "smartphone" for "smalltouch", then clear the cache.