]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Cleaned up all the input views
authorEvan Winslow <evan@elgg.org>
Thu, 19 May 2011 22:59:07 +0000 (15:59 -0700)
committerEvan Winslow <evan@elgg.org>
Thu, 19 May 2011 22:59:07 +0000 (15:59 -0700)
13 files changed:
views/default/input/color.php
views/default/input/datetime-local.php
views/default/input/datetime.php
views/default/input/email.php
views/default/input/image.php
views/default/input/month.php
views/default/input/number.php
views/default/input/range.php
views/default/input/search.php
views/default/input/tel.php
views/default/input/time.php
views/default/input/url.php
views/default/input/week.php

index 8bc4ad2a3ebd9ea2c6595789612e7fb2fab8a018..be8154fc93fb0e3f23956d5c48547c0e0d4b1b3d 100644 (file)
@@ -1 +1,12 @@
-<input type="color" <?php echo elgg_format_attributes($vars); ?> />
\ No newline at end of file
+<?php \r
+$defaults = array(\r
+       'class' => 'elgg-input-color',\r
+);\r
+\r
+$vars = array_merge($defaults, $vars);\r
+\r
+$vars['type'] = 'color';\r
+\r
+?>\r
+\r
+<input <?php echo elgg_format_attributes($vars); ?> />
\ No newline at end of file
index 52902f54357bc4d6872a00c3f9cea45b20c53a99..4688439018e849c21b9bcad29aa1a4bc30e4ee42 100644 (file)
@@ -1,6 +1,14 @@
 <?php\r
+$defaults = array(\r
+       'class' => 'elgg-input-datetime-local',\r
+);\r
+\r
+$vars = array_merge($defaults, $vars);\r
+\r
 if (isset($vars['value']) && is_int($vars['value'])) {\r
        $vars['value'] = date("Y-m-d\TH:i:s", $vars['value']);\r
 }\r
+\r
+$vars['type'] = 'datetime-local';\r
 ?>\r
-<input type="datetime-local" <?php echo elgg_format_attributes($vars); ?> />
\ No newline at end of file
+<input <?php echo elgg_format_attributes($vars); ?> />
\ No newline at end of file
index 61262f234eb0ba3a780dc96e1c8ceaef571a3884..69e4bd7f76230ed821d04cb29ffe9e5cf3fc68c5 100644 (file)
@@ -1,6 +1,15 @@
 <?php\r
+$defaults = array(\r
+       'class' => 'elgg-input-datetime',\r
+);\r
+\r
+$vars = array_merge($defaults, $vars);\r
+\r
 if (isset($vars['value']) && is_int($vars['value'])) {\r
        $vars['value'] = date("c", $vars['value']);\r
 }\r
+\r
+$vars['type'] = 'datetime';\r
+\r
 ?>\r
-<input type="datetime" <?php echo elgg_format_attributes($vars); ?> />\r
+<input <?php echo elgg_format_attributes($vars); ?> />\r
index 15e36f1459e66a29a1c738b590be8ec894dc42cc..de98d9c4f71cb2b00037a21f8f5dd4825d79a39f 100644 (file)
@@ -1 +1,12 @@
-<input type="email" <?php echo elgg_format_attributes($vars); ?> />
\ No newline at end of file
+<?php \r
+$defaults = array(\r
+       'class' => 'elgg-input-email',\r
+);\r
+\r
+$vars = array_merge($defaults, $vars);\r
+\r
+$vars['type'] = 'email';\r
+\r
+?>\r
+\r
+<input <?php echo elgg_format_attributes($vars); ?> />
\ No newline at end of file
index bb6a44045fd2de30524730dc052c8cb8e9df3923..cf740f782e6d38e6c42b880e6226097ca4c42159 100644 (file)
@@ -1 +1,11 @@
-<input type="image" <?php echo elgg_format_attributes($vars); ?> />
\ No newline at end of file
+<?php \r
+$defaults = array(\r
+       'class' => 'elgg-input-image',\r
+);\r
+\r
+$vars = array_merge($defaults, $vars);\r
+\r
+$vars['type'] = 'image';\r
+\r
+?>\r
+<input <?php echo elgg_format_attributes($vars); ?> />
\ No newline at end of file
index 4eaf910486126067ad9f31a241d723f7a93185a4..c99b3f34ce954d9f246a1437f612ba285966a4c1 100644 (file)
@@ -1,7 +1,16 @@
 <?php\r
+$defaults = array(\r
+       'class' => 'elgg-input-month',\r
+);\r
+\r
+$vars = array_merge($defaults, $vars);\r
+\r
 if (isset($vars['value']) && is_int($vars['value'])) {\r
        $vars['value'] = date("Y-m", $vars['value']);\r
 }\r
+\r
+$vars['type'] = 'month';\r
+\r
 ?>\r
 \r
-<input type="month" <?php echo elgg_format_attributes($vars); ?> />
\ No newline at end of file
+<input <?php echo elgg_format_attributes($vars); ?> />
\ No newline at end of file
index 908e9382e09b667210e5b63f11723c4ffe604a51..ec49387345b1007c41934e5344072bb8266cd7f7 100644 (file)
@@ -1 +1,11 @@
-<input type="number" <?php echo elgg_format_attributes($vars); ?> />
\ No newline at end of file
+<?php \r
+$defaults = array(\r
+       'class' => 'elgg-input-number',\r
+);\r
+\r
+$vars = array_merge($defaults, $vars);\r
+\r
+$vars['type'] = 'number';\r
+\r
+?>\r
+<input <?php echo elgg_format_attributes($vars); ?> />
\ No newline at end of file
index 8d4d7f13dadf28ea0f67ed23438e960aa6a645f0..23568725719ef2e497ba8b312bd8452cc748155a 100644 (file)
@@ -1,10 +1,13 @@
 <?php\r
 \r
 $defaults = array(\r
-\r
+       'class' => 'elgg-input-range',\r
 );\r
 \r
 $vars = array_merge($defaults, $vars);\r
+\r
+$vars['type'] = 'range';\r
+\r
 ?>\r
 \r
-<input type="range" <?php echo elgg_format_attributes($vars); ?> />
\ No newline at end of file
+<input <?php echo elgg_format_attributes($vars); ?> />
\ No newline at end of file
index 29adba5fc43eeb35ee366617a3f530366d8471db..becf8a11bd2ed528d5a6c34a126c0ebdff056df3 100644 (file)
@@ -1,10 +1,13 @@
 <?php\r
 \r
 $defaults = array(\r
-       'placeholder' => elgg_echo('placeholder:search'),\r
+       'class' => 'elgg-input-search',\r
 );\r
 \r
 $vars = array_merge($defaults, $vars);\r
+\r
+$vars['type'] = 'search';\r
+\r
 ?>\r
 \r
-<input type="search" <?php echo elgg_format_attributes($vars); ?> />
\ No newline at end of file
+<input <?php echo elgg_format_attributes($vars); ?> />
\ No newline at end of file
index 3295545012ec79de544ba7a2c24020a65960d800..0704344a87ad424f9fcbaafacc93ee315b15e393 100644 (file)
@@ -1,9 +1,12 @@
 <?php\r
 $defaults = array(\r
-       'placeholder' => elgg_echo('placeholder:tel'),\r
+       'class' => 'elgg-input-tel',\r
 );\r
 \r
 $vars = array_merge($defaults, $vars);\r
+\r
+$vars['type'] = 'tel';\r
+\r
 ?>\r
 \r
-<input type="tel" <?php echo elgg_format_attributes($vars); ?> />
\ No newline at end of file
+<input <?php echo elgg_format_attributes($vars); ?> />
\ No newline at end of file
index 58c8b092843d44f6d4c771cdba452dabf87fec10..6bb5572669032d13ea380f1d699cb5f5e121b63c 100644 (file)
@@ -1,10 +1,13 @@
 <?php\r
 \r
 $defaults = array(\r
-       'placeholder' => elgg_echo('placeholder:time'),\r
+       'class' => 'elgg-input-time',\r
 );\r
 \r
 $vars = array_merge($defaults, $vars);\r
+\r
+$vars['type'] = 'time';\r
+\r
 ?>\r
 \r
-<input type="time" <?php echo elgg_format_attributes($vars); ?> />
\ No newline at end of file
+<input <?php echo elgg_format_attributes($vars); ?> />
\ No newline at end of file
index d42d7c05696151773202beb38d7f3b89942c1dcc..ed3cd08a248ac950fd58308ef5468a7a8f956e60 100644 (file)
@@ -1,10 +1,13 @@
 <?php\r
 \r
 $defaults = array(\r
-       'placeholder' => elgg_echo('placeholder:url'),\r
+       'class' => 'elgg-input-url',\r
 );\r
 \r
 $vars = array_merge($defaults, $vars);\r
+\r
+$vars['type'] = 'url';\r
+\r
 ?>\r
 \r
-<input type="url" <?php echo elgg_format_attributes($vars); ?> />
\ No newline at end of file
+<input <?php echo elgg_format_attributes($vars); ?> />
\ No newline at end of file
index 59cf5d7f1021e00981e26cdd804a30c0a2d71d93..3d09ba07f1aaf3206e79ca0ef05b27a2538bde63 100644 (file)
@@ -1,10 +1,13 @@
 <?php\r
 \r
-$defauts = array(\r
-       'placeholder' => elgg_echo('placeholder:week'),\r
+$defaults = array(\r
+       'class' => 'elgg-input-week',\r
 );\r
 \r
 $vars = array_merge($defaults, $vars);\r
+\r
+$vars['type'] = 'week';\r
+\r
 ?>\r
 \r
-<input type="week" <?php echo elgg_format_attributes($vars); ?> />
\ No newline at end of file
+<input <?php echo elgg_format_attributes($vars); ?> />
\ No newline at end of file