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 0000000000..419c06fb96 Binary files /dev/null and b/main/wiki/css/ext.png differ 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 +?>