From 0c98726fe7a7d840e7cdcdcb2d709de45e52aa8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Carlos=20Ra=C3=B1a?= Date: Mon, 6 Oct 2008 22:37:53 +0200 Subject: [PATCH] [svn r16445] add styles to external links --- main/wiki/css/default.css | 8 +++++--- main/wiki/css/ext.png | Bin 0 -> 165 bytes main/wiki/index.php | 21 +++++++++++++++++---- 3 files changed, 22 insertions(+), 7 deletions(-) create mode 100644 main/wiki/css/ext.png diff --git a/main/wiki/css/default.css b/main/wiki/css/default.css index 058016bfc5..98f6f03830 100644 --- a/main/wiki/css/default.css +++ b/main/wiki/css/default.css @@ -103,10 +103,12 @@ } - a.wiki_link{ + a.wiki_link{ border-bottom: 1px dotted #cccccc; - - } + } + + a.wiki_link_ext{ + background: url(ext.png) center right no-repeat; padding-right: 14px; } #main_navigation{ height: 20px; diff --git a/main/wiki/css/ext.png b/main/wiki/css/ext.png new file mode 100644 index 0000000000000000000000000000000000000000..419c06fb960b0b665791c90044a78621616a4cb8 GIT binary patch literal 165 zcmeAS@N?(olHy`uVBq!ia0vp^AT}2VGmzZ%#=aj&i3a$DxTeiKV?6WB%rpNP(#|lX z{f7XTR~%D;3fN16{DL7O3{u|AZa^UmPZ!4!iE!1^jzSC$EX7 z>#2$@InOtpuqyg8<+R}9g-+|v&13&5`dCp`{|95_8^+nQkC>(b&0z3!^>bP0l+XkK DO07OF literal 0 HcmV?d00001 diff --git a/main/wiki/index.php b/main/wiki/index.php index 39df07535e..0620e1c0e5 100644 --- a/main/wiki/index.php +++ b/main/wiki/index.php @@ -1720,12 +1720,25 @@ function links_to($input) } +/* +detect and add style to external links +author Juan Carlos Raña Trabado +**/ +function detect_external_link($input) +{ + $exlink=''.get_lang('Export2ZIP').''; //TODO echo ''; - echo '
'.make_wiki_link_clickable(stripslashes($content)).'
'; - + echo '
'. make_wiki_link_clickable(detect_external_link(stripslashes($content))).'
'; + }//end filter visibility } // end function display_wiki_entry @@ -3175,4 +3188,4 @@ function auto_add_page_users($assignment_type) } //end foreach to teacher } -?> \ No newline at end of file +?>