Tricked Out News

Welcome to TON. This site is dedicated to development of addons for the RavenNuke™ CMS
Follow Us:
Tricked Out Mods: Forums

 Forum FAQForum FAQ   SearchSearch   UsergroupsUsergroups   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to add iPad to the mobile theme list
 
 
Post new topic   Reply to topic   print    Tricked Out News Forum Index -> mobile Theme
View previous topic :: View next topic  
Author Message
bobby
Site Admin
Site Admin


Joined: Jan 20, 2009
Posts: 600
Location: North Carolina
Reputation: 543Reputation: 543Reputation: 543
votes: 4

PostPosted: Thu Aug 04, 2011 9:21 am 
Post subject: How to add iPad to the mobile theme list
Reply with quote

The iPad does not like the nukeWYSIWYG editor so to add it to the list of mobile devices that are detected by the theme, you will need to add the following to the function get_theme modification:

Find inline:
Code:
ip(hone|od)


and change to:
Code:
ip(hone|od|ad)

_________________
Tricked Out News
  
Back to top
View user's profile Send private message
spasticdonkey
Super Dev Donkey
Super Dev Donkey


Joined: May 08, 2009
Posts: 58

Reputation: 324.2Reputation: 324.2
votes: 1

PostPosted: Mon Aug 08, 2011 2:02 am 
Post subject:
Reply with quote

Couple of thoughts on this for the future. After the release of the next version of RN I'll be working on a theme (amongst other things, lol) that supports braille, screen readers, etc.

For this I will need to create a lite/basic navigation, and thought maybe we could also use it for mobile devices as well. This would be set to display:none; so it could be activated via CSS.

Maybe we can pool our efforts on how that navigation is built. For my purposes it needs to be small, no more than 4-5 links.

That also got me thinking if you could target mobile devices by their resolution. Since I don't have a mobile device, if you get bored try this, substituting the resolution(s) and css file you are trying to target. I believe this has to be included after your main css and ravennuke.css to work; so I would do the same as we do with js files and include those core css files first.

Code:
$inlineCSS = '<link rel="stylesheet" media="only screen and (min-width: 701px) and (max-width: 900px)" href="mobile.css" />';

addCSSToHead($inlineCSS, 'inline');

(the media="only should keep older browsers from loading)

If that code actually works and we come up with the aforementioned mini-nav, you might be able to avoid UA sniffing and adding new regex patterns everytime a new device comes out... Also curious how reliable using media="handheld" would be.

Code:
$inlineCSS = '<link rel="stylesheet" media="handheld" href="mobile.css" />';

addCSSToHead($inlineCSS, 'inline');


Anyway, food for thought while it was on my mind. Also, I'll have a more efficient method for adding media specific and alternate css in the not-too-distant future.. instead of using the inline method as above.
  
Back to top
View user's profile Send private message
Guardian
Blingaholic
Blingaholic


Joined: Nov 03, 2009
Posts: 22

Reputation: 17.4Reputation: 17.4

PostPosted: Tue Sep 06, 2011 6:51 pm 
Post subject:
Reply with quote

Personally, I find the whole idea of developing mobile friendly websites very exciting. That said, I'm not convinced yet that there is any real benefit for your 'average' website.
Unless it's a corporate website or your selling services or products then I'm just not seeing any real advantage other than as a web development excercise.

I'm still looking forward to trying out this theme though and it's on my very long (after being offline for 2 months) To Do list
  
Back to top
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic   print    Tricked Out News Forum Index -> mobile Theme All times are GMT - 5 Hours
 
 Page 1 of 1

 

Jump to:   
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Powered by phpBB © 2001-2008 phpBB Group
Forums ©