]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
cleaned up navigation of the css preview documentation
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Sat, 5 Feb 2011 03:31:43 +0000 (03:31 +0000)
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Sat, 5 Feb 2011 03:31:43 +0000 (03:31 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@8025 36083f99-b078-4883-b0ff-0f9b5a30f544

documentation/css/preview/forms.php
documentation/css/preview/general.php
documentation/css/preview/grid.php
documentation/css/preview/icons.php [moved from documentation/css/preview/images.php with 84% similarity]
documentation/css/preview/index.php
documentation/css/preview/nav.php
documentation/css/preview/objects.php
documentation/css/preview/widgets.php

index 8dd028dc541359966e56c5567aaa4289691c7cdd..b2be5b0bbc945b5c7d85c2bbf47fdbd5758b689b 100644 (file)
@@ -7,11 +7,12 @@ $title = 'Forms and Buttons';
 
 require dirname(__FILE__) . '/head.php';
 
+$url = current_page_url();
+
 ?>
 <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>
+       <div class="elgg-page mal">
+               <h1 class="mbl"><a href="index.php">Index</a> > <?php echo $title; ?></h1>
                <h2>Form</h2>
                <form action="#">
                        <fieldset>
@@ -162,7 +163,7 @@ require dirname(__FILE__) . '/head.php';
                        </p>
                        <p>
                                <?php echo elgg_view('output/url', array(
-                                               'href' => '#',
+                                               'href' => "$url#",
                                                'text' => 'a.elgg-submit-button',
                                                'class' => 'elgg-button elgg-submit-button',
                                                ));
@@ -170,7 +171,7 @@ require dirname(__FILE__) . '/head.php';
                        </p>
                        <p>
                                <?php echo elgg_view('output/url', array(
-                                               'href' => '#',
+                                               'href' => "$url#",
                                                'text' => 'submit button disabled',
                                                'class' => 'elgg-button elgg-submit-button disabled',
                                                ));
@@ -185,7 +186,7 @@ require dirname(__FILE__) . '/head.php';
                        </p>
                        <p>
                                <?php echo elgg_view('output/url', array(
-                                               'href' => '#',
+                                               'href' => "$url#",
                                                'text' => 'a.elgg-cancel-button',
                                                'class' => 'elgg-button elgg-cancel-button',
                                                ));
@@ -193,7 +194,7 @@ require dirname(__FILE__) . '/head.php';
                        </p>
                        <p>
                                <?php echo elgg_view('output/url', array(
-                                               'href' => '#',
+                                               'href' => "$url#",
                                                'text' => 'a.elgg-action-button',
                                                'class' => 'elgg-action-button',
                                                ));
@@ -201,7 +202,7 @@ require dirname(__FILE__) . '/head.php';
                        </p>
                        <p>
                                <?php echo elgg_view('output/url', array(
-                                               'href' => '#',
+                                               'href' => "$url#",
                                                'text' => 'action button disabled',
                                                'class' => 'elgg-action-button disabled',
                                                ));
index 7bec26c41fb8064dd7fdc622a2951f9229890028..e0e8c8a463bcefeec24c120f4e233b12f7a1a024 100644 (file)
@@ -10,8 +10,7 @@ require dirname(__FILE__) . '/head.php';
 ?>
 <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>Headings</h2>
                <div class="mbl">
                        <h1>Level 1 heading</h1>
index 39985f3946902e121b4b776e517c9e835467841e..c59fb83803b63c33ba6424f3cb1b7e5cb1871c3d 100644 (file)
@@ -10,8 +10,7 @@ require dirname(__FILE__) . '/head.php';
 ?>
 <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>
 <style>
 h3 {text-align: center;}
 .preview-outline {border: 1px solid #cccccc; padding: 5px;}
similarity index 84%
rename from documentation/css/preview/images.php
rename to documentation/css/preview/icons.php
index f798c926d397bd2a9ea7aa53143c5c36cc2d0563..a7a50abd565a7dbd96c74ccf3b2ae2561bb46af6 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 /**
- * Images CSS
+ * Icons CSS
  */
 
-$title = 'Images';
+$title = 'Icons';
 
 require dirname(__FILE__) . '/head.php';
 
@@ -11,8 +11,7 @@ require dirname(__FILE__) . '/head.php';
 <style>li {margin: 10px; float: left;} ul {background-color: #e0e0e0;}</style>
 <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>
                <ul class="clearfix">
                        <li><span class="elgg-icon elgg-icon-settings"></span>Settings</li>
                        <li><span class="elgg-icon elgg-icon-friends"></span>Friends</li>
index 6471a2c32c818609196929faeb08d2d9375bd88f..ce71d28df923f08065288e76304e9382969a51b5 100644 (file)
@@ -8,6 +8,7 @@ include dirname(__FILE__) . '/head.php';
 ?>
 <body>
        <div class="elgg-page mal">
+               <h1 class="mbl"><a href="index.php">Index</a></h1>
                <ul class="mtl">
                        <li><a href="general.php">General CSS</a></li>
                        <li><a href="nav.php">Navigation CSS</a></li>
@@ -15,7 +16,7 @@ include dirname(__FILE__) . '/head.php';
                        <li><a href="objects.php">Lists, modules, image blocks CSS</a></li>
                        <li><a href="grid.php">Grid CSS</a></li>
                        <li><a href="widgets.php">Widgets CSS</a></li>
-                       <li><a href="images.php">Images CSS</a></li>
+                       <li><a href="icons.php">Icons CSS</a></li>
                </ul>
        </div>
 </body>
index 3d218a66b6f06fe566ceea42defda70ee04eb30c..b3a12005f34ea12d266f64bf3d226433aa71e5f6 100644 (file)
@@ -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);
index fd0db277fdcf395c86ea59834ccdce9e50e61697..d9bffaf9bde9d080ccccc7e5e3817c408ac666bc 100644 (file)
@@ -10,8 +10,7 @@ require dirname(__FILE__) . '/head.php';
 ?>
 <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>Modules</h2>
                <div class="mbl clearfix">
                        <div class="elgg-col elgg-col-1of2">
index 70e3d13b19cd7823f3439f14d659a3c6201dca59..e98e95054ed1b7aacb48e08e665945a2ce2667cf 100644 (file)
@@ -24,8 +24,7 @@ function css_permissions_override() {
 ?>
 <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>
 <?php
 $w = array();
 for ($i=1; $i<=6; $i++) {