diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-14 00:10:03 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-14 00:10:03 +0000 |
commit | d3c49d7ee73a6f0bc680868147cc68cccba611a9 (patch) | |
tree | e598deec2b98faada3acc62477371e408499c6e1 /mod/developers/views/default/theme_preview/nav.php | |
parent | 5a955c633c1ac314ccff3fe5a719ae730105c13a (diff) | |
download | elgg-d3c49d7ee73a6f0bc680868147cc68cccba611a9.tar.gz elgg-d3c49d7ee73a6f0bc680868147cc68cccba611a9.tar.bz2 |
Refs #2903 moving theme preview into developers plugin - navigation and titles are broken
git-svn-id: http://code.elgg.org/elgg/trunk@8214 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/developers/views/default/theme_preview/nav.php')
-rw-r--r-- | mod/developers/views/default/theme_preview/nav.php | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/mod/developers/views/default/theme_preview/nav.php b/mod/developers/views/default/theme_preview/nav.php new file mode 100644 index 000000000..7fdf49a8e --- /dev/null +++ b/mod/developers/views/default/theme_preview/nav.php @@ -0,0 +1,70 @@ +<?php +/** + * Navigation CSS + */ + +$url = current_page_url(); + +elgg_push_breadcrumb('First', "$url#"); +elgg_push_breadcrumb('Second', "$url#"); +elgg_push_breadcrumb('Third'); + +?> +<div class="elgg-page mal"> + <h1 class="mbs"> + <a href="index.php">Index</a> > <a href="<?php echo $url; ?>"><?php echo $title; ?></a> + </h1> + <div class="mbl"> + <a href="general.php">< previous</a> <a href="forms.php">next ></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' => "$url#"), + array('title' => 'Second', 'url' => "$url#", 'selected' => true), + array('title' => 'Third', 'url' => "$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", "$url#"); + } + $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", "$url#"); + $m->setParent($params['menu']['default'][1]); + $params['menu']['default'][1]->addChild($m); + echo elgg_view('navigation/menu/page', $params); + ?> + </div> +</div> |