skip to content
AdaWiki
User Tools
Log In
Site Tools
Search
Tools
Show page
Old revisions
Backlinks
Recent Changes
Media Manager
Sitemap
Log In
>
Recent Changes
Media Manager
Sitemap
You are here:
start
»
tutorials
»
zencartmods
»
emails_fields.html
Trace:
tutorials:zencartmods:emails_fields.html
This mod will change all of your email fields from type="text" to type="email" where necessary. This will make it easier for people with iPads and mobile devices to type their email addresses into the field, and will gracefully degrade to type="text" in browsers that do not support HTML 5. ==== includes/functions/html-OUTPUT.PHP ==== Line 369 \\ replace <code php> function zen_draw_input_field($name, $value = '', $parameters = '', $type = 'text', $reinsert_value = true) { </code> with <code php> function zen_draw_input_field($name, $value = '', $parameters = '', $type = 'text', $reinsert_value = true) { if(strpos($name, 'email') !== False && $type == 'text') $type = 'email'; </code>
/home/ladyada/public_html/wiki/data/attic/tutorials/zencartmods/emails_fields.html.1321377109.txt.gz
· Last modified: 2016/01/28 18:05 (external edit)
Page Tools
Show page
Old revisions
Backlinks
Back to top