diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-12-30 21:37:01 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-12-30 21:37:01 +0000 |
commit | 22d64456008cd8d2aaab35f6d8005cc112d93567 (patch) | |
tree | ed13a00b35b97bdcf18be5df30d83ddc03766677 /documentation/css/preview/nav.php | |
parent | 7f0feba983bdbc3f9ca22077c5a6719e14b26e46 (diff) | |
download | elgg-22d64456008cd8d2aaab35f6d8005cc112d93567.tar.gz elgg-22d64456008cd8d2aaab35f6d8005cc112d93567.tar.bz2 |
major addition - adding preview of CSS for developers and themers
git-svn-id: http://code.elgg.org/elgg/trunk@7781 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'documentation/css/preview/nav.php')
-rw-r--r-- | documentation/css/preview/nav.php | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/documentation/css/preview/nav.php b/documentation/css/preview/nav.php new file mode 100644 index 000000000..3ce839472 --- /dev/null +++ b/documentation/css/preview/nav.php @@ -0,0 +1,71 @@ +<?php +/** + * Navigation CSS + */ + +$title = 'Navigation'; + +require dirname(__FILE__) . '/head.php'; + +elgg_push_breadcrumb('First', '#'); +elgg_push_breadcrumb('Second', '#'); +elgg_push_breadcrumb('Third'); + +?> +<body> + <div class="elgg-page" style="width: 800px; margin: 20px auto;"> + <h1 class="mbl"><?php echo $title; ?></h1> + <div class="mbl"><a href="index.php">return to index</a></div> + <h2>Breadcrumbs</h2> + <div class="mbl"> + <?php echo elgg_view('navigation/breadcrumbs'); ?> + </div> + <h2>Tabs</h2> + <div class="mbl"> + <?php + $tabs = array( + array('title' => 'First', 'url' => '#'), + array('title' => 'Second', 'url' => '#', 'selected' => true), + array('title' => 'Third', 'url' => '#'), + ); + echo elgg_view('navigation/tabs', array('tabs' => $tabs)); + ?> + </div> + <h2>Pagination</h2> + <div class="mbl"> + <?php + $params = array( + 'count' => 1000, + 'limit' => 10, + 'offset' => 230, + ); + echo elgg_view('navigation/pagination', $params); + ?> + </div> + <h2>Site Menu</h2> + <div class="mbl"> + <div class="elgg-page-header" style="height: 40px;"> + <?php + $params = array(); + $params['menu'] = array(); + $params['menu']['default'] = array(); + for ($i=1; $i<=5; $i++) { + $params['menu']['default'][] = new ElggMenuItem($i, "Page $i", '#'); + } + $params['menu']['default'][2]->setSelected(true); + echo elgg_view('navigation/menu/site', $params); + ?> + </div> + </div> + <h2>Page Menu</h2> + <div class="mbl pam" style="width: 200px; background-color: #cccccc;"> + <?php + $m = new ElggMenuItem(10, "Child", '#'); + $m->setParent($params['menu']['default'][1]); + $params['menu']['default'][1]->addChild($m); + echo elgg_view('navigation/menu/page', $params); + ?> + </div> + </div> +</body> +</html>
\ No newline at end of file |