[geeklog-cvs] Geeklog-1.x/plugins/links functions.inc,1.109,1.110
Michael Jervis
mjervis at qs1489.pair.com
Tue Jul 1 15:53:01 EDT 2008
Update of /cvsroot/geeklog/Geeklog-1.x/plugins/links
In directory qs1489.pair.com:/tmp/cvs-serv5370/plugins/links
Modified Files:
functions.inc
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: functions.inc
===================================================================
RCS file: /cvsroot/geeklog/Geeklog-1.x/plugins/links/functions.inc,v
retrieving revision 1.109
retrieving revision 1.110
diff -C2 -d -r1.109 -r1.110
*** functions.inc 31 May 2008 07:55:08 -0000 1.109
--- functions.inc 1 Jul 2008 19:52:58 -0000 1.110
***************
*** 170,174 ****
function plugin_autotags_links($op, $content = '', $autotag = '')
{
! global $_CONF, $_TABLES;
if ($op == 'tagname' ) {
--- 170,174 ----
function plugin_autotags_links($op, $content = '', $autotag = '')
{
! global $_CONF, $_TABLES, $LANG_DIRECTION;
if ($op == 'tagname' ) {
***************
*** 185,191 ****
$siteurl = DB_getItem($_TABLES['links'], 'url', "lid = '$lid'");
}
$attr = array(
'title' => $siteurl,
! 'class' => 'ext-link'
);
$link = COM_createLink($linktext, $url, $attr);
--- 185,195 ----
$siteurl = DB_getItem($_TABLES['links'], 'url', "lid = '$lid'");
}
+ $class = 'ext-link';
+ if ((!empty($LANG_DIRECTION)) && ($LANG_DIRECTION == 'rtl')) {
+ $class .= '-rtl';
+ }
$attr = array(
'title' => $siteurl,
! 'class' => $class
);
$link = COM_createLink($linktext, $url, $attr);
More information about the geeklog-cvs
mailing list