diff options
author | Evan Winslow <evan@elgg.org> | 2011-05-20 15:00:44 -0700 |
---|---|---|
committer | Evan Winslow <evan@elgg.org> | 2011-05-20 15:00:44 -0700 |
commit | 38342cd98c03c9aacd985f97557148eeed628c42 (patch) | |
tree | ad0b04929cd161c03c099c02f312b2cb4d548a05 /views/default/output | |
parent | 0c70885f0a18474656a382f54f85706efaf17752 (diff) | |
download | elgg-38342cd98c03c9aacd985f97557148eeed628c42.tar.gz elgg-38342cd98c03c9aacd985f97557148eeed628c42.tar.bz2 |
removed output/url view: not providing any special html5 features
Diffstat (limited to 'views/default/output')
-rw-r--r-- | views/default/output/url.php | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/views/default/output/url.php b/views/default/output/url.php deleted file mode 100644 index 31db9e928..000000000 --- a/views/default/output/url.php +++ /dev/null @@ -1,47 +0,0 @@ -<?php -/** - * Elgg URL display - * Displays a URL as a link - * - * @package Elgg - * @subpackage Core - * @author Curverider Ltd - * @link http://elgg.org/ - * - * @uses string $vars['body'] The html to insert between the <a></a> tags - * @uses string $vars['text'] The string between the <a></a> tags. - * @uses bool $vars['is_action'] Is this a link to an action? - * - */ - -if (isset($vars['value'])) { - $vars['href'] = $vars['value']; - unset($vars['value']); -} - -$url = trim($vars['href']); - -if (isset($vars['is_action']) && $vars['is_action']) { - $url = elgg_add_action_tokens_to_url($url); - unset($vars['is_action']); -} - -if (isset($vars['body'])) { - $body = $vars['body']; - unset($vars['body']); -} - -if (!isset($body)) { - if (isset($vars['text'])) { - $text = $vars['text']; - unset($vars['text']); - } else { - $text = $url; - } - - $body = htmlentities($text, ENT_QUOTES, 'UTF-8'); -} - -$vars['href'] = $url; -$attributes = elgg_format_attributes($vars); -echo "<a $attributes>$body</a>"; |