[geeklog-cvs] Geeklog-1.x/plugins/links functions.inc,1.101,1.102

Dirk Haun dhaun at qs1489.pair.com
Tue Jan 1 15:03:24 EST 2008


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

Modified Files:
	functions.inc 
Log Message:
Following some advice from Steve Krug to make the breadcrumb more usable (and obvious)


Index: functions.inc
===================================================================
RCS file: /cvsroot/geeklog/Geeklog-1.x/plugins/links/functions.inc,v
retrieving revision 1.101
retrieving revision 1.102
diff -C2 -d -r1.101 -r1.102
*** functions.inc	1 Jan 2008 16:18:12 -0000	1.101
--- functions.inc	1 Jan 2008 20:03:22 -0000	1.102
***************
*** 1411,1416 ****
  * Build breadcrumb trail
  *
! * Breadcrumb trail does not use the "root" category in the database: the top level category is
! * set from the language file using $LANG_LINKS['root']
  */
  function links_breadcrumbs($root, $cid)
--- 1411,1416 ----
  * Build breadcrumb trail
  *
! * Breadcrumb trail does not use the "root" category in the database: the top
! * level category is set from the language file using $LANG_LINKS['root']
  */
  function links_breadcrumbs($root, $cid)
***************
*** 1419,1423 ****
  
      $breadcrumb = '';
!     $separator  = ' : ';
  
      $cat = addslashes($cid);
--- 1419,1423 ----
  
      $breadcrumb = '';
!     $separator  = ' > ';
  
      $cat = addslashes($cid);
***************
*** 1435,1439 ****
                              . $breadcrumb;
              } else {
!                 $breadcrumb = $A['category'] . $breadcrumb;
              }
              $pid = $A['pid'];
--- 1435,1439 ----
                              . $breadcrumb;
              } else {
!                 $breadcrumb = '<b>' . $A['category'] . '</b>' . $breadcrumb;
              }
              $pid = $A['pid'];
***************
*** 1445,1452 ****
      $url = $_CONF['site_url'] . '/links/index.php';
      if (empty($breadcrumb)) {
!         $breadcrumb = $LANG_LINKS['root'];
      } else {
          $breadcrumb = COM_createLink($LANG_LINKS['root'], $url) . $separator . $breadcrumb;
      }
  
      return $breadcrumb;
--- 1445,1455 ----
      $url = $_CONF['site_url'] . '/links/index.php';
      if (empty($breadcrumb)) {
!         $breadcrumb = '<b>' . $LANG_LINKS['root'] . '</b>';
      } else {
          $breadcrumb = COM_createLink($LANG_LINKS['root'], $url) . $separator . $breadcrumb;
      }
+ 
+     $breadcrumb = '<span class="links-breadcrumb">' . $LANG_LINKS[126] . ' '
+                 . $breadcrumb . '</span>';
  
      return $breadcrumb;




More information about the geeklog-cvs mailing list