Update of /cvsroot/php-blog/serendipity
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7891
Modified Files:
serendipity_functions_installer.inc.php NEWS
Log Message:
There is no need to show the expand and toggle all buttons when there is only one section to display
Index: NEWS
===================================================================
RCS file: /cvsroot/php-blog/serendipity/NEWS,v
retrieving revision 1.123
retrieving revision 1.124
diff -u -d -r1.123 -r1.124
--- NEWS 14 May 2004 08:19:54 -0000 1.123
+++ NEWS 14 May 2004 19:05:48 -0000 1.124
@@ -3,6 +3,9 @@
Version 0.7 ()
------------------------------------------------------------------------
+ * Don't show "expand"/"toggle all" buttons if there are only one section
+ availiable (tomsommer)
+
* Fixed trackbacks not associated to the right entry id (garvinhicking)
* Redesigned admin interface for editing entries: Adjust items per
Index: serendipity_functions_installer.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/serendipity_functions_installer.inc.php,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- serendipity_functions_installer.inc.php 5 May 2004 11:50:24 -0000 1.9
+++ serendipity_functions_installer.inc.php 14 May 2004 19:05:47 -0000 1.10
@@ -324,21 +324,26 @@
<input type="hidden" name="serendipity[adminModule]" value="installer" />
<input type="hidden" name="installAction" value="check" />
<br />
-<?php } ?>
+<?php }
+ if ( sizeof($t['categories']) > 1 ) { ?>
<div align="right">
<a style="border:0; text-decoration: none" href="#" onclick="showConfigAll(<?php echo count($t['categories']); ?>)" title="<?php echo TOGGLE_ALL; ?>"><img src="pixel/plus.png" id="optionall" alt="+/-" border="0" /> <?php echo TOGGLE_ALL; ?></a></a><br />
</div>
<?php
+ }
$el_count = 0;
foreach ($t['categories'] as $key => $value) {
$el_count++;
?>
<table width="100%" cellspacing="2">
+<?php
+ if ( sizeof($t['categories']) > 1 ) {
+?>
<tr>
<th align="left" colspan="2" style="padding-left: 15px;">
<a style="border:0; text-decoration: none" href="#" onclick="showConfig('el<?php echo $el_count; ?>'); return false" title="<?php echo TOGGLE_OPTION; ?>"><img src="pixel/plus.png" id="optionel<?php echo $el_count; ?>" alt="+/-" border="0" /> <?php echo $key; ?></a></th>
</tr>
-
+<?php } ?>
<tr>
<td>
<table width="100%" cellspacing="0" cellpadding="3" style="<?php echo ($folding === true ? 'display: none;' : ''); ?>" id="el<?php echo $el_count; ?>">
|