cvs: pear /HTML_Menu/examples/data menu.php /HTML_Menu/examples/templates sigma.html sigmatree.html
| From: | Alexey Borzov | Date: | Sun, 18 Jan 2004 17:36:36 +0000 |
| Subject: | cvs: pear /HTML_Menu/examples/data menu.php /HTML_Menu/examples/templates sigma.html sigmatree.html | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-15764@lists.php.net to get a copy of this message | ||
avb Sun Jan 18 12:36:36 2004 EDT
Modified files:
/pear/HTML_Menu/examples/templates sigmatree.html sigma.html
/pear/HTML_Menu/examples/data menu.php
Log:
Show usage of custom keys in menu entries
Index: pear/HTML_Menu/examples/templates/sigmatree.html
diff -u pear/HTML_Menu/examples/templates/sigmatree.html:1.1
pear/HTML_Menu/examples/templates/sigmatree.html:1.2
--- pear/HTML_Menu/examples/templates/sigmatree.html:1.1 Sat Jan 17 07:34:15 2004
+++ pear/HTML_Menu/examples/templates/sigmatree.html Sun Jan 18 12:36:34 2004
@@ -1,6 +1,6 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<!-- $Id: sigmatree.html,v 1.1 2004/01/17 12:34:15 avb Exp $ -->
+<!-- $Id: sigmatree.html,v 1.2 2004/01/18 17:36:34 avb Exp $ -->
<html>
<head>
<title>HTML_Menu_SigmaTreeRenderer demo</title>
@@ -76,10 +76,10 @@
<strong class="red">{tree_title}</strong>
<!-- END tree_active -->
<!-- BEGIN tree_inactive -->
- <a href="{tree_url}">{tree_title}</a>
+ <a href="{tree_url}" title="{tree_desc}">{tree_title}</a>
<!-- END tree_inactive -->
<!-- BEGIN tree_activepath -->
- <a href="{tree_url}"><em>{tree_title}</em></a>
+ <a href="{tree_url}"
title="{tree_desc}"><em>{tree_title}</em></a>
<!-- END tree_activepath -->
<!-- BEGIN tree_entry_close -->
</li>
Index: pear/HTML_Menu/examples/templates/sigma.html
diff -u pear/HTML_Menu/examples/templates/sigma.html:1.1
pear/HTML_Menu/examples/templates/sigma.html:1.2
--- pear/HTML_Menu/examples/templates/sigma.html:1.1 Fri Sep 12 09:02:54 2003
+++ pear/HTML_Menu/examples/templates/sigma.html Sun Jan 18 12:36:34 2004
@@ -1,6 +1,6 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<!-- $Id: sigma.html,v 1.1 2003/09/12 13:02:54 avb Exp $ -->
+<!-- $Id: sigma.html,v 1.2 2004/01/18 17:36:34 avb Exp $ -->
<html>
<head>
<title>HTML_Menu_SigmaRenderer demo</title>
@@ -71,33 +71,33 @@
<!-- BEGIN tree_entry_loop -->
<tr>
<!-- BEGIN tree_1_inactive -->
- <td><a href="{tree_url}">{tree_title}</a></td>
+ <td><a href="{tree_url}"
title="{tree_desc}">{tree_title}</a></td>
<!-- END tree_1_inactive -->
<!-- BEGIN tree_1_active -->
<td><strong>{tree_title}</strong></td>
<!-- END tree_1_active -->
<!-- BEGIN tree_1_activepath -->
- <td><a
href="{tree_url}"><strong>{tree_title}</strong></a></td>
+ <td><a href="{tree_url}"
title="{tree_desc}"><strong>{tree_title}</strong></a></td>
<!-- END tree_1_activepath -->
<!-- BEGIN tree_2_inactive -->
- <td> <a href="{tree_url}"
class="small">{tree_title}</a></td>
+ <td> <a href="{tree_url}" class="small"
title="{tree_desc}">{tree_title}</a></td>
<!-- END tree_2_inactive -->
<!-- BEGIN tree_2_active -->
<td> <strong
class="small">{tree_title}</strong></td>
<!-- END tree_2_active -->
<!-- BEGIN tree_2_activepath -->
- <td> <a href="{tree_url}"
class="small"><strong>{tree_title}</strong></a></td>
+ <td> <a href="{tree_url}" class="small"
title="{tree_desc}"><strong>{tree_title}</strong></a></td>
<!-- END tree_2_activepath -->
<!-- BEGIN tree_inactive -->
- <td><!-- BEGIN tree_inactive_indent
--> <!-- END tree_inactive_indent --><a
href="{tree_url}" class="smaller">•
{tree_title}</a></td>
+ <td><!-- BEGIN tree_inactive_indent
--> <!-- END tree_inactive_indent --><a
href="{tree_url}" class="smaller" title="{tree_desc}">•
{tree_title}</a></td>
<!-- END tree_inactive -->
<!-- BEGIN tree_active -->
<td><!-- BEGIN tree_active_indent
--> <!-- END tree_active_indent --><strong
class="smaller">• {tree_title}</strong></td>
<!-- END tree_active -->
<!-- BEGIN tree_activepath -->
- <td><!-- BEGIN tree_activepath_indent
--> <!-- END tree_activepath_indent --><a
href="{tree_url}" class="smaller"><strong>•
{tree_title}</strong></a></td>
+ <td><!-- BEGIN tree_activepath_indent
--> <!-- END tree_activepath_indent --><a
href="{tree_url}" class="smaller"
title="{tree_desc}"><strong>•
{tree_title}</strong></a></td>
<!-- END tree_activepath -->
</tr>
<!-- END tree_entry_loop -->
Index: pear/HTML_Menu/examples/data/menu.php
diff -u pear/HTML_Menu/examples/data/menu.php:1.1 pear/HTML_Menu/examples/data/menu.php:1.2
--- pear/HTML_Menu/examples/data/menu.php:1.1 Sat Jan 17 07:33:15 2004
+++ pear/HTML_Menu/examples/data/menu.php Sun Jan 18 12:36:36 2004
@@ -2,7 +2,7 @@
/**
* Menu data for HTML_Menu usage examples
*
- * $Id: menu.php,v 1.1 2004/01/17 12:33:15 avb Exp $
+ * $Id: menu.php,v 1.2 2004/01/18 17:36:36 avb Exp $
*
* @package HTML_Menu
* @author Alexey Borzov <avb@php.net>
@@ -12,16 +12,19 @@
1 => array(
'title' => 'Menu item 1',
'url' => '/item1.php',
+ 'desc' => 'a special element',
'sub' => array(
- 11 => array('title' => 'Menu item 1.1', 'url' =>
'/item1.1.php'),
+ 11 => array('title' => 'Menu item 1.1', 'url' =>
'/item1.1.php', 'desc' => 'nothing special here'),
12 => array(
'title' => 'Menu item 1.2',
'url' => '/item1.2.php',
+ 'desc' => 'a very special element',
'sub' => array(
121 => array('title' => 'Menu item 1.2.1',
'url' => '/item1.2.1.php'),
122 => array(
'title' => 'Menu item 1.2.2',
'url' => '/item1.2.2.php',
+ 'desc' => 'a really very special element',
'sub' => array(
1221 => array('title' => 'Menu item 1.2.2.1',
'url' => '/item1.2.2.1.php'),
1222 => array('title' => 'Menu item 1.2.2.2',
'url' => '/item1.2.2.2.php')