[geeklog-cvs] Geeklog-1.x/public_html/links index.php,1.38,1.39

Michael Jervis mjervis at qs1489.pair.com
Tue Jul 1 15:53:03 EDT 2008


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

Modified Files:
	index.php 
Log Message:
Partial fix for Bug 671, hard-coded ltrness of ext-links class. CSS needs cross browser magic. Which I give up on.

Index: index.php
===================================================================
RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/links/index.php,v
retrieving revision 1.38
retrieving revision 1.39
diff -C2 -d -r1.38 -r1.39
*** index.php	12 Jun 2008 19:45:26 -0000	1.38
--- index.php	1 Jul 2008 19:52:59 -0000	1.39
***************
*** 343,347 ****
  function prepare_link_item ($A, &$template)
  {
!     global $_CONF, $_USER, $LANG_ADMIN, $LANG_LINKS, $_IMAGE_TYPE;
  
      $url = COM_buildUrl ($_CONF['site_url']
--- 343,347 ----
  function prepare_link_item ($A, &$template)
  {
!     global $_CONF, $_USER, $LANG_ADMIN, $LANG_LINKS, $_IMAGE_TYPE, $LANG_DIRECTION;
  
      $url = COM_buildUrl ($_CONF['site_url']
***************
*** 354,360 ****
                          nl2br (stripslashes ($A['description'])));
      $content = stripslashes ($A['title']);
      $attr = array(
          'title' => stripslashes ($A['url']),
!         'class' => 'ext-link');
      $html = COM_createLink($content, $url, $attr);
      $template->set_var ('link_html', $html);
--- 354,364 ----
                          nl2br (stripslashes ($A['description'])));
      $content = stripslashes ($A['title']);
+     $class = 'ext-link';
+     if ((!empty($LANG_DIRECTION)) && ($LANG_DIRECTION == 'rtl')) {
+         $class .= '-rtl';
+     }
      $attr = array(
          'title' => stripslashes ($A['url']),
!         'class' => $class);
      $html = COM_createLink($content, $url, $attr);
      $template->set_var ('link_html', $html);




More information about the geeklog-cvs mailing list