aboutsummaryrefslogtreecommitdiff
path: root/documentation/css/preview/nav.php
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-05 03:31:43 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-05 03:31:43 +0000
commit383f4572b9ce1d48db168b3bdc42163e02d97657 (patch)
treeb80fa4047629f2d5d3983c912c60a11a572a9d2a /documentation/css/preview/nav.php
parentdeb2f017851520137695afa6c9d594fd4560698d (diff)
downloadelgg-383f4572b9ce1d48db168b3bdc42163e02d97657.tar.gz
elgg-383f4572b9ce1d48db168b3bdc42163e02d97657.tar.bz2
cleaned up navigation of the css preview documentation
git-svn-id: http://code.elgg.org/elgg/trunk@8025 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'documentation/css/preview/nav.php')
-rw-r--r--documentation/css/preview/nav.php19
1 files changed, 10 insertions, 9 deletions
diff --git a/documentation/css/preview/nav.php b/documentation/css/preview/nav.php
index 3d218a66b..b3a12005f 100644
--- a/documentation/css/preview/nav.php
+++ b/documentation/css/preview/nav.php
@@ -7,15 +7,16 @@ $title = 'Navigation';
require dirname(__FILE__) . '/head.php';
-elgg_push_breadcrumb('First', '#');
-elgg_push_breadcrumb('Second', '#');
+$url = current_page_url();
+
+elgg_push_breadcrumb('First', "$url#");
+elgg_push_breadcrumb('Second', "$url#");
elgg_push_breadcrumb('Third');
?>
<body>
<div class="elgg-page mal">
- <h1 class="mbl"><?php echo $title; ?></h1>
- <div class="mbl"><a href="index.php">return to index</a></div>
+ <h1 class="mbl"><a href="index.php">Index</a> > <?php echo $title; ?></h1>
<h2>Breadcrumbs</h2>
<div class="mbl">
<?php echo elgg_view('navigation/breadcrumbs'); ?>
@@ -24,9 +25,9 @@ elgg_push_breadcrumb('Third');
<div class="mbl">
<?php
$tabs = array(
- array('title' => 'First', 'url' => '#'),
- array('title' => 'Second', 'url' => '#', 'selected' => true),
- array('title' => 'Third', 'url' => '#'),
+ 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));
?>
@@ -50,7 +51,7 @@ elgg_push_breadcrumb('Third');
$params['menu'] = array();
$params['menu']['default'] = array();
for ($i=1; $i<=5; $i++) {
- $params['menu']['default'][] = new ElggMenuItem($i, "Page $i", '#');
+ $params['menu']['default'][] = new ElggMenuItem($i, "Page $i", "$url#");
}
$params['menu']['default'][2]->setSelected(true);
echo elgg_view('navigation/menu/site', $params);
@@ -60,7 +61,7 @@ elgg_push_breadcrumb('Third');
<h2>Page Menu</h2>
<div class="mbl pam" style="width: 200px; background-color: #cccccc;">
<?php
- $m = new ElggMenuItem(10, "Child", '#');
+ $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);