[geeklog-cvs] geeklog-1.3/public_html/admin/plugins/staticpages index.php,1.23,1.24

geeklog-cvs-admin at lists.geeklog.net geeklog-cvs-admin at lists.geeklog.net
Fri Jun 27 09:44:51 EDT 2003


Update of /usr/cvs/geeklog/geeklog-1.3/public_html/admin/plugins/staticpages
In directory internal.geeklog.net:/tmp/cvs-serv10381/public_html/admin/plugins/staticpages

Modified Files:
	index.php 
Log Message:
The Static Pages "Topic" selection now works like the one for blocks, i.e. you can have pages for one topic only, the homepage only, or all pages (all topic pages and the homepage).


Index: index.php
===================================================================
RCS file: /usr/cvs/geeklog/geeklog-1.3/public_html/admin/plugins/staticpages/index.php,v
retrieving revision 1.23
retrieving revision 1.24
diff -C2 -d -r1.23 -r1.24
*** index.php	27 Jun 2003 08:51:26 -0000	1.23
--- index.php	27 Jun 2003 13:44:49 -0000	1.24
***************
*** 150,153 ****
--- 150,158 ----
          }
          $topics = COM_topicList ('tid,topic', $current_topic);
+         $alltopics = '<option value="all"';
+         if ($current_topic == 'all') {
+             $alltopics .= ' selected="selected"';
+         }
+         $alltopics .= '>' . $LANG_STATIC['all_topics'] . '</option>' . LB;
          $notopic = '<option value="none"';
          if ($current_topic == 'none') {
***************
*** 156,160 ****
          $notopic .= '>' . $LANG_STATIC['no_topic'] . '</option>' . LB;
          $sp_template->set_var ('topic_selection', '<select name="sp_tid">'
!                                . $topics . $notopic . '</select>');
          $position = '<select name="sp_where">';
          $position .= '<option value="1"';
--- 161,165 ----
          $notopic .= '>' . $LANG_STATIC['no_topic'] . '</option>' . LB;
          $sp_template->set_var ('topic_selection', '<select name="sp_tid">'
!                                . $alltopics . $notopic . $topics . '</select>');
          $position = '<select name="sp_where">';
          $position .= '<option value="1"';





More information about the geeklog-cvs mailing list