diff options
author | Evan Winslow <evan@elgg.org> | 2011-05-19 16:19:46 -0700 |
---|---|---|
committer | Evan Winslow <evan@elgg.org> | 2011-05-19 16:19:46 -0700 |
commit | eba13eb88fb8d16d94c93c113e7c136c7559881b (patch) | |
tree | 41b90d224763d1afe13190b6e7e48c433a822d55 | |
parent | 0faef2c4468f70be1819a6f62c60ab5cbd6c5cbd (diff) | |
download | elgg-eba13eb88fb8d16d94c93c113e7c136c7559881b.tar.gz elgg-eba13eb88fb8d16d94c93c113e7c136c7559881b.tar.bz2 |
Deleted some unnecessary inputs, added theme previews for all new inputs
-rw-r--r-- | start.php | 1 | ||||
-rw-r--r-- | views/default/html5/theme_preview/forms/inputs.php | 101 | ||||
-rw-r--r-- | views/default/input/email.php | 12 | ||||
-rw-r--r-- | views/default/input/url.php | 13 |
4 files changed, 102 insertions, 25 deletions
@@ -2,6 +2,7 @@ function html5_init() {
elgg_extend_view('css/elgg', 'html5/css', 1);
+ elgg_extend_view('theme_preview/forms/inputs', 'html5/theme_preview/forms/inputs');
elgg_register_js('Modernizr', '/mod/html5/vendors/Modernizr-1.5.js', 'head', 1);
elgg_register_js('jquery.placeholder', '/mod/html5/vendors/jquery/jquery.placeholder-1.0.1.js', 'footer');
diff --git a/views/default/html5/theme_preview/forms/inputs.php b/views/default/html5/theme_preview/forms/inputs.php new file mode 100644 index 000000000..de38dc71c --- /dev/null +++ b/views/default/html5/theme_preview/forms/inputs.php @@ -0,0 +1,101 @@ +<form action="#">
+ <fieldset>
+ <legend>HTML5 Inputs</legend>
+ <div>
+ <label for="color">Color input (.elgg-input-color):</label>
+ <?php echo elgg_view('input/color', array(
+ 'name' => 'color',
+ 'id' => 'color',
+ ));
+ ?>
+ </div>
+ <div>
+ <label for="datetime-local">Local datetime input (.elgg-input-datetime-local):</label>
+ <?php echo elgg_view('input/datetime-local', array(
+ 'name' => 'datetime-local',
+ 'id' => 'datetime-local',
+ ));
+ ?>
+ </div>
+ <div>
+ <label for="datetime">Datetime input (.elgg-input-datetime):</label><br />
+ <?php echo elgg_view('input/datetime', array(
+ 'name' => 'datetime',
+ 'id' => 'datetime',
+ ));
+ ?>
+ </div>
+ <div>
+ <label for="email">Email input (.elgg-input-email):</label><br />
+ <?php echo elgg_view('input/email', array(
+ 'name' => 'email',
+ 'id' => 'email',
+ ));
+ ?>
+ </div>
+ <div>
+ <label for="image">Image input (.elgg-input-image):</label><br />
+ <?php echo elgg_view('input/image', array(
+ 'name' => 'image',
+ 'id' => 'image',
+ ));
+ ?>
+ </div>
+ <div>
+ <label for="month">Month input (.elgg-input-month):</label><br />
+ <?php echo elgg_view('input/month', array(
+ 'name' => 'month',
+ 'id' => 'month',
+ ));
+ ?>
+ </div>
+ <div>
+ <label for="number">Number input (.elgg-input-number):</label>
+ <?php echo elgg_view('input/number', array(
+ 'name' => 'number',
+ 'id' => 'number',
+ ));
+ ?>
+ </div>
+ <div>
+ <label for="range">Range input (.elgg-input-range):</label>
+ <?php echo elgg_view('input/range', array(
+ 'name' => 'range',
+ 'id' => 'range',
+ ));
+ ?>
+ </div>
+ <div>
+ <label for="search">Tags input (.elgg-input-search):</label>
+ <?php echo elgg_view('input/search', array(
+ 'name' => 'search',
+ 'id' => 'search',
+ ));
+ ?>
+ </div>
+ <div>
+ <label for="tel">Telephone input (.elgg-input-tel):</label>
+ <?php echo elgg_view('input/tel', array(
+ 'name' => 'tel',
+ 'id' => 'tel',
+ ));
+ ?>
+ </div>
+ <div>
+ <label for="time">Time input (.elgg-input-time):</label>
+ <?php echo elgg_view('input/time', array(
+ 'name' => 'time',
+ 'id' => 'time',
+ ));
+ ?>
+ </div>
+ <div>
+ <label for="week">Week input (.elgg-input-week):</label>
+ <?php echo elgg_view('input/week', array(
+ 'name' => 'week',
+ 'id' => 'week',
+ ));
+ ?>
+ </div>
+ </fieldset>
+</form>
\ No newline at end of file diff --git a/views/default/input/email.php b/views/default/input/email.php deleted file mode 100644 index de98d9c4f..000000000 --- a/views/default/input/email.php +++ /dev/null @@ -1,12 +0,0 @@ -<?php
-$defaults = array(
- 'class' => 'elgg-input-email',
-);
-
-$vars = array_merge($defaults, $vars);
-
-$vars['type'] = 'email';
-
-?>
-
-<input <?php echo elgg_format_attributes($vars); ?> />
\ No newline at end of file diff --git a/views/default/input/url.php b/views/default/input/url.php deleted file mode 100644 index ed3cd08a2..000000000 --- a/views/default/input/url.php +++ /dev/null @@ -1,13 +0,0 @@ -<?php
-
-$defaults = array(
- 'class' => 'elgg-input-url',
-);
-
-$vars = array_merge($defaults, $vars);
-
-$vars['type'] = 'url';
-
-?>
-
-<input <?php echo elgg_format_attributes($vars); ?> />
\ No newline at end of file |