]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
better navigation for theming previews
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Sat, 5 Feb 2011 16:16:30 +0000 (16:16 +0000)
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Sat, 5 Feb 2011 16:16:30 +0000 (16:16 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@8028 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
documentation/css/preview/nav.php
documentation/css/preview/objects.php
documentation/css/preview/widgets.php

index b2be5b0bbc945b5c7d85c2bbf47fdbd5758b689b..89caf8e8b3e6d1edbd7271272c716234b9a694f7 100644 (file)
@@ -12,7 +12,12 @@ $url = current_page_url();
 ?>
 <body>
        <div class="elgg-page mal">
-               <h1 class="mbl"><a href="index.php">Index</a> > <?php echo $title; ?></h1>
+               <h1 class="mbs">
+                       <a href="index.php">Index</a> > <a href="<?php echo $url; ?>"><?php echo $title; ?></a>
+               </h1>
+               <div class="mbl">
+                       <a href="nav.php">< previous</a>&nbsp;&nbsp;<a href="objects.php">next ></a>
+               </div>
                <h2>Form</h2>
                <form action="#">
                        <fieldset>
index e0e8c8a463bcefeec24c120f4e233b12f7a1a024..3e8d2f6e9e11fa29db8b29a5c8715edcee0a6ce0 100644 (file)
@@ -7,10 +7,17 @@ $title = 'General CSS';
 
 require dirname(__FILE__) . '/head.php';
 
+$url = current_page_url();
+
 ?>
 <body>
        <div class="elgg-page mal">
-               <h1 class="mbl"><a href="index.php">Index</a> > <?php echo $title; ?></h1>
+               <h1 class="mbs">
+                       <a href="index.php">Index</a> > <a href="<?php echo $url; ?>"><?php echo $title; ?></a>
+               </h1>
+               <div class="mbl">
+                       < previous&nbsp;&nbsp;<a href="nav.php">next ></a>
+               </div>
                <h2>Headings</h2>
                <div class="mbl">
                        <h1>Level 1 heading</h1>
index 193972dd69c152b43fb521b1457b1f0421441734..bf20804f8abe709d2c506d225b72036a3669ab1d 100644 (file)
@@ -7,10 +7,17 @@ $title = 'Grid';
 
 require dirname(__FILE__) . '/head.php';
 
+$url = current_page_url();
+
 ?>
 <body>
        <div class="elgg-page mal">
-               <h1 class="mbl"><a href="index.php">Index</a> > <?php echo $title; ?></h1>
+               <h1 class="mbs">
+                       <a href="index.php">Index</a> > <a href="<?php echo $url; ?>"><?php echo $title; ?></a>
+               </h1>
+               <div class="mbl">
+                       <a href="objects.php">< previous</a>&nbsp;&nbsp;<a href="widgets.php">next ></a>
+               </div>
 <style>
 h3 {text-align: center;}
 .preview-outline {border: 1px solid #cccccc; padding: 5px;}
index a8d44fccbea2e89c35452f818f1ebe19ad4011d8..2a3a9bb7e0753bea1d440ddda0af2d76b282497c 100644 (file)
@@ -7,12 +7,20 @@ $title = 'Icons';
 
 require dirname(__FILE__) . '/head.php';
 
+$url = current_page_url();
+
 ?>
 <style>li {margin: 10px; float: left;} ul {background-color: #e0e0e0;}</style>
 <body>
        <div class="elgg-page mal">
-               <h1 class="mbl"><a href="index.php">Index</a> > <?php echo $title; ?></h1>
-               <ul class="clearfix">
+               <h1 class="mbs">
+                       <a href="index.php">Index</a> > <a href="<?php echo $url; ?>"><?php echo $title; ?></a>
+               </h1>
+               <div class="mbl">
+                       <a href="widgets.php">< previous</a>&nbsp;&nbsp;next >
+               </div>
+               <h2>Icon Sprites</h2>
+               <ul class="mbl clearfix">
                        <li><span class="elgg-icon elgg-icon-settings"></span>Settings</li>
                        <li><span class="elgg-icon elgg-icon-friends"></span>Friends</li>
                        <li><span class="elgg-icon elgg-icon-help"></span>Help</li>
@@ -24,6 +32,10 @@ require dirname(__FILE__) . '/head.php';
                        <li><span class="elgg-icon elgg-icon-arrow-s"></span>Arrow S</li>
                        <li><span class="elgg-icon elgg-icon-hover-menu"></span>Hover Menu</li>
                </ul>
+               <h2>Ajax loader</h2>
+               <div class="mbl">
+                       <?php echo elgg_view('graphics/ajax_loader', array('hidden' => false)); ?>
+               </div>
        </div>
 </body>
 </html>
\ No newline at end of file
index b3a12005f34ea12d266f64bf3d226433aa71e5f6..3a9daea98a4a2c316e3fa1725360d86ad4469295 100644 (file)
@@ -16,7 +16,12 @@ elgg_push_breadcrumb('Third');
 ?>
 <body>
        <div class="elgg-page mal">
-               <h1 class="mbl"><a href="index.php">Index</a> > <?php echo $title; ?></h1>
+               <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>&nbsp;&nbsp;<a href="forms.php">next ></a>
+               </div>
                <h2>Breadcrumbs</h2>
                <div class="mbl">
                        <?php echo elgg_view('navigation/breadcrumbs'); ?>
index d9bffaf9bde9d080ccccc7e5e3817c408ac666bc..f90009caba30b3c3b51a2a197decaae0f4c4a069 100644 (file)
@@ -7,10 +7,17 @@ $title = 'CSS Objects';
 
 require dirname(__FILE__) . '/head.php';
 
+$url = current_page_url();
+
 ?>
 <body>
        <div class="elgg-page mal">
-               <h1 class="mbl"><a href="index.php">Index</a> > <?php echo $title; ?></h1>
+               <h1 class="mbs">
+                       <a href="index.php">Index</a> > <a href="<?php echo $url; ?>"><?php echo $title; ?></a>
+               </h1>
+               <div class="mbl">
+                       <a href="forms.php">< previous</a>&nbsp;&nbsp;<a href="grid.php">next ></a>
+               </div>
                <h2>Modules</h2>
                <div class="mbl clearfix">
                        <div class="elgg-col elgg-col-1of2">
index e98e95054ed1b7aacb48e08e665945a2ce2667cf..ca45132df5ad06cbfbc0fa721f7f72c2d6ccbd68 100644 (file)
@@ -7,6 +7,8 @@ $title = 'Widgets';
 
 require dirname(__FILE__) . '/head.php';
 
+$url = current_page_url();
+
 elgg_register_plugin_hook_handler('view', 'widgets/friends/content', 'css_widget_content');
 elgg_register_plugin_hook_handler('view', 'widgets/friends/edit', 'css_widget_content');
 elgg_register_plugin_hook_handler('permissions_check', 'all', 'css_permissions_override');
@@ -24,7 +26,12 @@ function css_permissions_override() {
 ?>
 <body>
        <div class="elgg-page mal">
-               <h1 class="mbl"><a href="index.php">Index</a> > <?php echo $title; ?></h1>
+               <h1 class="mbs">
+                       <a href="index.php">Index</a> > <a href="<?php echo $url; ?>"><?php echo $title; ?></a>
+               </h1>
+               <div class="mbl">
+                       <a href="grid.php">< previous</a>&nbsp;&nbsp;<a href="icons.php">next ></a>
+               </div>
 <?php
 $w = array();
 for ($i=1; $i<=6; $i++) {