]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
bringing us a little closer to validating
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Tue, 8 Feb 2011 02:51:33 +0000 (02:51 +0000)
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Tue, 8 Feb 2011 02:51:33 +0000 (02:51 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@8066 36083f99-b078-4883-b0ff-0f9b5a30f544

mod/reportedcontent/views/default/reportedcontent/footer_link.php
views/default/annotation/generic_comment.php
views/default/css/elements/forms.php
views/default/css/elements/navigation.php
views/default/css/elements/typography.php
views/default/icon/default.php
views/default/input/form.php
views/default/navigation/menu/user_hover.php
views/default/output/tagcloud.php

index 4e893522c383d4d29e92da15146a1d95b1996f98..58a19b34323e5d443b4a7e0ea540e0175e29a64e 100644 (file)
@@ -7,10 +7,14 @@
 
 $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>
index f168546c3bb9e48875f9e4570c659ee92ba7a3e8..040d24552c00235a72e0b7ecc72ef252482aec75 100644 (file)
@@ -43,14 +43,14 @@ if ($full_view) {
        $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);
index e8916d76ddd37c5f24fd33c6d98fb8890f8f4a78..1cac80b587c151bcca1d41f721acc2dfc281ffe3 100644 (file)
@@ -10,6 +10,8 @@
 /* ***************************************
        Form Elements
 *************************************** */
+.elgg-fieldset {
+}
 label {
        font-weight: bold;
        color: #333333;
index 0d275f09c9e3d5c9f52e349bb2a72c83998ba940..0c92f069a25a28a56e00927968ff2265da2aae4b 100644 (file)
 .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;
index cc1ee3ed25bfe5b7afb3f64b0f26e175a1cb63d7..c768022315fabd893c3407e4726e84bfda327ed5 100644 (file)
@@ -39,5 +39,10 @@ h6 { font-size: 0.8em; }
        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;
+}
index a29886064ac499caa083316c43e7a0fd408b272c..c033a256bfc20347db82a07e39ed459782a018a7 100644 (file)
@@ -18,13 +18,19 @@ if (!in_array($vars['size'], $sizes)) {
        $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(
index 31c22168804d8e57123c7beefdc203cac7aa5775..50c51be7338d59db18be9cd006e56a02cad9b2bf 100644 (file)
@@ -35,4 +35,4 @@ unset($vars['disable_security']);
 
 $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
index 10db3a0064acd60c94b888a829e0e4b415aa659e..25bed11f549ea835dde3c6763b6372404eecaac8 100644 (file)
@@ -18,7 +18,7 @@ echo '<ul class="elgg-menu elgg-menu-hover">';
 // name and username
 $name_link = elgg_view('output/url', array(
        'href' => $user->getURL(),
-       'text' => "<h3>$user->name</h3>&#64;$user->username",
+       'text' => "<span class=\"elgg-heading-basic\">$user->name</span>&#64;$user->username",
 ));
 echo "<li>$name_link</li>";
 
index 2f76d9cbe24530840a342bf010e3c030f426014e..442244d8d82d42a98b0bf3f44a1da54e580f20e1 100644 (file)
@@ -50,7 +50,8 @@ if (!empty($vars['tagcloud']) && is_array($vars['tagcloud'])) {
                        $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') {