[geeklog-cvs] Geeklog-1.x/public_html/links index.php,1.30,1.31

Dirk Haun dhaun at qs1489.pair.com
Sat Jan 5 15:06:00 EST 2008


Update of /cvsroot/geeklog/Geeklog-1.x/public_html/links
In directory qs1489.pair.com:/tmp/cvs-serv16613/public_html/links

Modified Files:
	index.php 
Log Message:
Need to hide the category dropdown when $_LI_CONF['linkcols'] == 0


Index: index.php
===================================================================
RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/links/index.php,v
retrieving revision 1.30
retrieving revision 1.31
diff -C2 -d -r1.30 -r1.31
*** index.php	2 Jan 2008 09:42:07 -0000	1.30
--- index.php	5 Jan 2008 20:05:58 -0000	1.31
***************
*** 131,147 ****
                                  'catcol'   => 'categorycol.thtml',
                                  'actcol'   => 'categoryactivecol.thtml',
!                                 'pagenav'  => 'pagenavigation.thtml'));
      $linklist->set_var('xhtml', XHTML);
      $linklist->set_var('blockheader', COM_startBlock($LANG_LINKS[114]));
      $linklist->set_var('layout_url', $_CONF['layout_url']);
  
!     // Create breadcrumb trail
!     $linklist->set_var('breadcrumbs', links_breadcrumbs($_LI_CONF['root'], $cid));
  
!     // Set dropdown for category jump
!     $linklist->set_var('lang_go', $LANG_LINKS[124]);
!     $linklist->set_var('link_dropdown', links_select_box(2, $cid));
  
-     if ($_LI_CONF['linkcols'] > 0) {
          // Show categories
          $sql = "SELECT cid,pid,category,description FROM {$_TABLES['linkcategories']} WHERE pid='{$cat}'";
--- 131,149 ----
                                  'catcol'   => 'categorycol.thtml',
                                  'actcol'   => 'categoryactivecol.thtml',
!                                 'pagenav'  => 'pagenavigation.thtml',
!                                 'catdrop'  => 'categorydropdown.thtml'));
      $linklist->set_var('xhtml', XHTML);
      $linklist->set_var('blockheader', COM_startBlock($LANG_LINKS[114]));
      $linklist->set_var('layout_url', $_CONF['layout_url']);
  
!     if ($_LI_CONF['linkcols'] > 0) {
!         // Create breadcrumb trail
!         $linklist->set_var('breadcrumbs',
!                            links_breadcrumbs($_LI_CONF['root'], $cid));
  
!         // Set dropdown for category jump
!         $linklist->set_var('lang_go', $LANG_LINKS[124]);
!         $linklist->set_var('link_dropdown', links_select_box(2, $cid));
  
          // Show categories
          $sql = "SELECT cid,pid,category,description FROM {$_TABLES['linkcategories']} WHERE pid='{$cat}'";
***************
*** 212,215 ****
--- 214,222 ----
      } else {
          $linklist->set_var ('category_navigation', '');
+     }
+     if ($_LI_CONF['linkcols'] == 0) {
+         $linklist->set_var('category_dropdown', '');
+     } else {
+         $linklist->parse('category_dropdown', 'catdrop', true);
      }
  




More information about the geeklog-cvs mailing list