cvs: pres2 / display.php index.php

From: Date: Fri, 27 Aug 2004 08:05:50 +0000
Subject: cvs: pres2 / display.php index.php
Groups: php.pres 
Request: Send a blank email to pres+get-1029@lists.php.net to get a copy of this message
derick Fri Aug 27 04:05:50 2004 EDT Modified files: /pres2 display.php index.php Log: - Sort topics on the mainpage - Allow lists to receive a different CSS class http://cvs.php.net/diff.php/pres2/display.php?r1=1.18&r2=1.19&ty=u Index: pres2/display.php diff -u pres2/display.php:1.18 pres2/display.php:1.19 --- pres2/display.php:1.18 Thu Jul 1 07:42:03 2004 +++ pres2/display.php Fri Aug 27 04:05:48 2004 @@ -451,7 +451,11 @@ if(!empty($list->align)) $align = 'align="'.$list->align.'"'; echo "<div $align style=\"$style\">".markup_text($list->title)."</div>\n"; } - echo '<ul class="pres">'; + if (isset($list->class)) { + echo "<ul class='{$list->class}'>"; + } else { + echo '<ul class="pres">'; + } while(list($k,$bul)=each($list->bullets)) { $bul->display(); } echo '</ul>'; } http://cvs.php.net/diff.php/pres2/index.php?r1=1.33&r2=1.34&ty=u Index: pres2/index.php diff -u pres2/index.php:1.33 pres2/index.php:1.34 --- pres2/index.php:1.33 Thu Jul 1 07:42:03 2004 +++ pres2/index.php Fri Aug 27 04:05:48 2004 @@ -131,6 +131,7 @@ Simply click the topic you wish to find presentations on to view all available presentations. </p> <?php + ksort($topics); foreach($topics as $i => $topic) { print('<p><a href="' . $baseDir . 'index.php/' . urlencode($i) . '">' . $i . '</a> (' . $topic['count'] . ')</p>'); }

« previous php.pres (#1029) next »