aboutsummaryrefslogtreecommitdiff
path: root/documentation
diff options
context:
space:
mode:
authorewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-10 01:43:36 +0000
committerewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-10 01:43:36 +0000
commit2c2ad03dce82a3fffa575a9a1233345a85e0db34 (patch)
tree5fab9727cb629c7f12af3a529addd809c433c985 /documentation
parent6b3ee5365b10afc37677781fc5f07539f1d8636f (diff)
downloadelgg-2c2ad03dce82a3fffa575a9a1233345a85e0db34.tar.gz
elgg-2c2ad03dce82a3fffa575a9a1233345a85e0db34.tar.bz2
Converted buttons to elgg-object-type naming convention. Added table of buttons to forms theming preview meant for previewing all button types and states (still have to implement those...)
git-svn-id: http://code.elgg.org/elgg/trunk@8091 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'documentation')
-rw-r--r--documentation/theming/preview/forms.php106
1 files changed, 51 insertions, 55 deletions
diff --git a/documentation/theming/preview/forms.php b/documentation/theming/preview/forms.php
index 89caf8e8b..592f5f844 100644
--- a/documentation/theming/preview/forms.php
+++ b/documentation/theming/preview/forms.php
@@ -159,62 +159,58 @@ $url = current_page_url();
<div class="mtl">
<h2>Buttons</h2>
- <p>
- <?php echo elgg_view('input/submit', array(
- 'internalname' => 'b1',
- 'value' => 'input[type=submit]',
- ));
- ?>
- </p>
- <p>
- <?php echo elgg_view('output/url', array(
- 'href' => "$url#",
- 'text' => 'a.elgg-submit-button',
- 'class' => 'elgg-button elgg-submit-button',
- ));
- ?>
- </p>
- <p>
- <?php echo elgg_view('output/url', array(
- 'href' => "$url#",
- 'text' => 'submit button disabled',
- 'class' => 'elgg-button elgg-submit-button disabled',
- ));
- ?>
- </p>
- <p>
- <?php echo elgg_view('input/button', array(
- 'internalname' => 'b3',
- 'value' => 'input[type=button]',
- ));
- ?>
- </p>
- <p>
- <?php echo elgg_view('output/url', array(
- 'href' => "$url#",
- 'text' => 'a.elgg-cancel-button',
- 'class' => 'elgg-button elgg-cancel-button',
- ));
- ?>
- </p>
- <p>
- <?php echo elgg_view('output/url', array(
- 'href' => "$url#",
- 'text' => 'a.elgg-action-button',
- 'class' => 'elgg-action-button',
- ));
- ?>
- </p>
- <p>
- <?php echo elgg_view('output/url', array(
- 'href' => "$url#",
- 'text' => 'action button disabled',
- 'class' => 'elgg-action-button disabled',
- ));
- ?>
- </p>
+ <table>
+ <thead>
+ <tr>
+ <th>Anchors</th>
+ <th>Default</th>
+ <th>Hover</th>
+ <th>Focus</th>
+ <th>Active</th>
+ <th>Disabled</th>
+ <th>Selected</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <th>Default</th>
+ <td><a href="#" class="elgg-button">anchor</a></td>
+ <td><a href="#" class="elgg-button elgg-state-hover">anchor</a></td>
+ <td><a href="#" class="elgg-button elgg-state-focus">anchor</a></td>
+ <td><a href="#" class="elgg-button elgg-state-active">anchor</a></td>
+ <td><a href="#" class="elgg-button elgg-state-disabled">anchor</a></td>
+ <td><a href="#" class="elgg-button elgg-state-selected">anchor</a></td>
+ </tr>
+ <tr>
+ <th>Action</th>
+ <td><a href="#" class="elgg-button elgg-button-action">anchor</a></td>
+ <td><a href="#" class="elgg-button elgg-button-action elgg-state-hover">anchor</a></td>
+ <td><a href="#" class="elgg-button elgg-button-action elgg-state-focus">anchor</a></td>
+ <td><a href="#" class="elgg-button elgg-button-action elgg-state-active">anchor</a></td>
+ <td><a href="#" class="elgg-button elgg-button-action elgg-state-disabled">anchor</a></td>
+ <td><a href="#" class="elgg-button elgg-button-action elgg-state-selected">anchor</a></td>
+ </tr>
+ <tr>
+ <th>Default</th>
+ <td><a href="#" class="elgg-button elgg-button-submit">anchor</a></td>
+ <td><a href="#" class="elgg-button elgg-button-submit elgg-state-hover">anchor</a></td>
+ <td><a href="#" class="elgg-button elgg-button-submit elgg-state-focus">anchor</a></td>
+ <td><a href="#" class="elgg-button elgg-button-submit elgg-state-active">anchor</a></td>
+ <td><a href="#" class="elgg-button elgg-button-submit elgg-state-disabled">anchor</a></td>
+ <td><a href="#" class="elgg-button elgg-button-submit elgg-state-selected">anchor</a></td>
+ </tr>
+ <tr>
+ <th>Default</th>
+ <td><a href="#" class="elgg-button elgg-button-cancel">anchor</a></td>
+ <td><a href="#" class="elgg-button elgg-button-cancel elgg-state-hover">anchor</a></td>
+ <td><a href="#" class="elgg-button elgg-button-cancel elgg-state-focus">anchor</a></td>
+ <td><a href="#" class="elgg-button elgg-button-cancel elgg-state-active">anchor</a></td>
+ <td><a href="#" class="elgg-button elgg-button-cancel elgg-state-disabled">anchor</a></td>
+ <td><a href="#" class="elgg-button elgg-button-cancel elgg-state-selected">anchor</a></td>
+ </tr>
+ </tbody>
+ </table>
</div>
-
</div>
</body>
</html> \ No newline at end of file