$title = elgg_echo('reportedcontent:this:tooltip');
$text = elgg_echo('reportedcontent:this');
-?>
+$url = elgg_get_site_url() . 'pg/reportedcontent/add/?address=';
+$href = "javascript:location.href='$url'";
+$href .= "+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)";
+$href = elgg_format_url($href);
+?>
-<a class="report-this" href="javascript:location.href='<?php echo elgg_get_site_url(); ?>pg/reportedcontent/add/?address='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)" title="<?php echo $title; ?>">
+<a class="report-this" href="<?php echo $href; ?>" title="<?php echo $title; ?>">
<span class="elgg-icon report-this-icon"></span>
<?php echo $text; ?>
</a>
$comment_text = elgg_view("output/longtext", array("value" => $comment->value));
$body = <<<HTML
-<p class="mbn">
+<div class="mbn">
$delete_button
$commenter_link
<span class="elgg-subtext">
$friendlytime
</span>
$comment_text
-</p>
+</div>
HTML;
echo elgg_view_image_block($commenter_icon, $body);
/* ***************************************
Form Elements
*************************************** */
+.elgg-fieldset {
+}
label {
font-weight: bold;
color: #333333;
.elgg-menu-hover > li:last-child {
border-bottom: none;
}
+.elgg-menu-hover .elgg-heading-basic {
+ display: block;
+}
.elgg-menu-hover a {
display: block;
padding: 2px 8px;
font-family: Monaco,"Courier New",Courier,monospace;
}
+<?php //@todo many location-dependent styles are for styling headings. Move those here and make them into non-location-dependent classes ?>
-<?php //@todo many location-dependent styles are for styling headings. Move those here and make them into non-location-dependent classes ?>
\ No newline at end of file
+.elgg-heading-basic {
+ color: #0054A7;
+ font-size: 1.2em;
+ font-weight: bold;
+}
$vars['size'] = "medium";
}
+if (isset($entity->name)) {
+ $title = $entity->name;
+} else {
+ $title = $entity->title;
+}
+
$url = $entity->getURL();
if (isset($vars['href'])) {
$url = $vars['href'];
}
$img_src = $entity->getIcon($vars['size']);
-$img = "<img src=\"$img_src\" />";
+$img = "<img src=\"$img_src\" alt=\"$title\" />";
if ($url) {
echo elgg_view('output/url', array(
$attributes = elgg_format_attributes($vars);
-echo "<form $attributes>$body</form>";
\ No newline at end of file
+echo "<form $attributes><fieldset>$body</fieldset></form>";
\ No newline at end of file
// name and username
$name_link = elgg_view('output/url', array(
'href' => $user->getURL(),
- 'text' => "<h3>$user->name</h3>@$user->username",
+ 'text' => "<span class=\"elgg-heading-basic\">$user->name</span>@$user->username",
));
echo "<li>$name_link</li>";
$size = 100;
}
$url = elgg_get_site_url()."pg/search/?q=". urlencode($tag->tag) . "&search_type=tags$type$subtype";
- $cloud .= "<a href=\"$url\" style=\"font-size: $size%\" title=\"".addslashes($tag->tag)." ($tag->total)\" style=\"text-decoration:none;\">" . htmlspecialchars($tag->tag, ENT_QUOTES, 'UTF-8') . "</a>";
+ $url = elgg_format_url($url);
+ $cloud .= "<a href=\"$url\" style=\"font-size: $size%\" title=\"".addslashes($tag->tag)." ($tag->total)\">" . htmlspecialchars($tag->tag, ENT_QUOTES, 'UTF-8') . "</a>";
}
if ($context != 'tags') {