aboutsummaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-17 22:19:14 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-17 22:19:14 +0000
commit580e6de308988861562de867714e1bb74dce2226 (patch)
treeb6d4aaa45582b0ecd84eab77c306c12994232532 /views
parentb128ec82c4bd149beb6f4436b030e288ae75fb1d (diff)
downloadelgg-580e6de308988861562de867714e1bb74dce2226.tar.gz
elgg-580e6de308988861562de867714e1bb74dce2226.tar.bz2
Refs #2143 I need ids for urls for the widget code right now
git-svn-id: http://code.elgg.org/elgg/trunk@7334 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views')
-rw-r--r--views/default/output/url.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/views/default/output/url.php b/views/default/output/url.php
index 2a01e32d0..c857d24d1 100644
--- a/views/default/output/url.php
+++ b/views/default/output/url.php
@@ -35,6 +35,12 @@ if (!empty($url)) {
$class = '';
}
+ if (isset($vars['internalid'])) {
+ $id = "id = \"{$vars['internalid']}\"";
+ } else {
+ $id = '';
+ }
+
if (isset($vars['js'])) {
$js = "{$vars['js']}";
} else {
@@ -63,5 +69,5 @@ if (!empty($url)) {
$title = '';
}
- echo "<a href=\"{$url}\" $target $class $js $title>$text</a>";
+ echo "<a href=\"{$url}\" $target $class $id $js $title>$text</a>";
} \ No newline at end of file