For my new project I have decided to create 3 different files tpl_header_xxx.php ( desktop, mobile, tablet ) an load them into tpl_main_page.php based on device detection software.
What do think about this strategy ?
thx
For my new project I have decided to create 3 different files tpl_header_xxx.php ( desktop, mobile, tablet ) an load them into tpl_main_page.php based on device detection software.
What do think about this strategy ?
thx
What is your business reasoning for doing this?
What specific problem are you hoping to solve?
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
see the Responsive DIY Template Default for 1.5.x . It uses 3 different header files one for each scenario.
Zen cart installation / maintenance / customisation / hosting
Supported Modules: Dutch language pack, Multi site, Dynamic Price Updater and more.
Our Site: http://zucando.com
Marketing Plugins: Marketing Modules
Free Response Templates: Responsive Templates
Zen cart installation / maintenance / customisation / hosting
Supported Modules: Dutch language pack, Multi site, Dynamic Price Updater and more.
I was waiting for a reply to above questions.
It does only to show an "example" that you can.
Nods in agreement
Basically if you have a site that already exists and the header itself is customized and jammed packed with a ton of plugins, it might be easier to separate into device specific files.
If starting a project from scratch and it's a responsive project one should use the mobile-first approach (stack to horizontal) and device specific files won't be needed.
You can simply use "mobile detect" to call device specific jquery, javascript and even css.
Last edited by rbarbour; 21 Mar 2016 at 09:21 AM.