]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
updating the sidebar boxes to use the new module classes
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Sat, 1 Jan 2011 22:58:44 +0000 (22:58 +0000)
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Sat, 1 Jan 2011 22:58:44 +0000 (22:58 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@7809 36083f99-b078-4883-b0ff-0f9b5a30f544

16 files changed:
engine/lib/views.php
mod/blog/views/default/blog/sidebar/archives.php
mod/blog/views/default/blog/sidebar/revisions.php
mod/blog/views/default/forms/blog/save.php
mod/embed/views/default/object/file/embedlist.php
mod/groups/views/default/forms/groups/search.php [new file with mode: 0644]
mod/groups/views/default/groups/featured.php
mod/groups/views/default/groups/find.php
mod/groups/views/default/groups/members.php
views/default/annotation/generic_comment.php
views/default/core/likes/display.php
views/default/core/members/sidebar.php
views/default/css/admin.php
views/default/css/elements/core.php
views/default/css/elements/misc.php
views/default/output/tagcloud.php

index 951210f5a027d214b820988c8d395e2b524ac88c..364f4618e75efaf5357f6ee536f4d72496982c29 100644 (file)
@@ -1060,7 +1060,12 @@ function elgg_view_latest_comments($owner_guid, $type = 'object', $subtype = '',
                'pagination' => false,
                'list_class' => 'elgg-latest-comments',
        ));
-       return elgg_view('layout/objects/module', array('title' => $title, 'body' => $body));
+       $params = array(
+               'title' => $title,
+               'body' => $body,
+               'class' => 'elgg-aside-module',
+       );
+       return elgg_view('layout/objects/module', $params);
 }
 /**
  * Wrapper function for the image block display pattern.
index 9904be288a5b4074090f79d894f3abe36ac43298..f08c7ea7eb27b231aeff87db754feb4044cf2280 100644 (file)
@@ -25,6 +25,10 @@ if ($page_owner && $vars['page'] != 'friends') {
                }
                $content .= '</ul>';
 
-               echo elgg_view('layout/objects/module', array('title' => $title, 'body' => $content));
+               echo elgg_view('layout/objects/module', array(
+                       'title' => $title,
+                       'body' => $content,
+                       'class' => 'elgg-aside-module',
+               ));
        }
 }
\ No newline at end of file
index e3919648bd8fa5ddbfccb1852e511b8d95743344..b6c33fb38bdd25372bb0e306eba7990a356d4552 100644 (file)
@@ -42,14 +42,14 @@ if (elgg_instanceof($blog, 'object', 'blog') && $blog->canEdit()) {
                                'text' => elgg_echo('blog:status:published')
                        ));
 
-                       $time = "<span class='entity-subtext'>"
+                       $time = "<span class='elgg-subtitle'>"
                                . elgg_view_friendly_time($blog->publish_date) . "</span>";
 
                        $body .= "<li>$load : $time</li>";
                }
 
                foreach ($revisions as $revision) {
-                       $time = "<span class='entity-subtext'>" 
+                       $time = "<span class='elgg-subtitle'>"
                                . elgg_view_friendly_time($revision->time_created) . "</span>";
 
                        if ($revision->name == 'blog_auto_save') {
@@ -72,6 +72,10 @@ if (elgg_instanceof($blog, 'object', 'blog') && $blog->canEdit()) {
 
                $body .= '</ul>';
 
-               echo elgg_view('layout/objects/module', array('title' => $title, 'body' => $body));
+               echo elgg_view('layout/objects/module', array(
+                       'title' => $title,
+                       'body' => $body,
+                       'class' => 'elgg-aside-module',
+               ));
        }
 }
\ No newline at end of file
index 8597c135c91b279bc24d43e8bae0bd9264ef1a18..76b47413829b57fa68aab76d36b53b5093d81864 100644 (file)
@@ -142,7 +142,7 @@ $body_input
 
 $categories_input
 
-<p class="ptm pbm mbn entity-subtext elgg_hrt">
+<p class="elgg-subtitle ptm pbm mbn elgg_hrt">
        $save_status <span class="blog-save-status-time">$saved</span>
 </p>
 
index c6595ab36721078cc4fa6f51bab5f4150baa6398..724032c389717e0d440b409748cd21ffd50ee9ef 100644 (file)
@@ -3,7 +3,7 @@
        $friendlytime = elgg_view_friendly_time($vars['entity']->time_created);
        
        $info = "<p class='entity-title'> <a href=\"{$file->getURL()}\">{$file->title}</a></p>";
-       $info .= "<p class='entity-subtext'>{$friendlytime}";   
+       $info .= "<p class='elgg-subtitle'>{$friendlytime}";
        $icon = "<a href=\"{$file->getURL()}\">" . elgg_view("file/icon", array("mimetype" => $file->mimetype, 'thumbnail' => $file->thumbnail, 'file_guid' => $file->guid, 'size' => 'small')) . "</a>";
 ?>
 <div id="embed_entity_<?php echo $file->guid; ?>">
diff --git a/mod/groups/views/default/forms/groups/search.php b/mod/groups/views/default/forms/groups/search.php
new file mode 100644 (file)
index 0000000..fbb0151
--- /dev/null
@@ -0,0 +1,13 @@
+<?php
+
+$tag_string = elgg_echo('groups:search:tags');
+
+$params = array(
+       'internalname' => 'tag',
+       'class' => 'search-input',
+       'value' => $tag_string,
+       'onclick' => "if (this.value=='$tag_string') { this.value='' }",
+);
+echo elgg_view('input/text', $params);
+
+echo elgg_view('input/submit', array('value' => elgg_echo('search:go')));
index 0f9a3bedf4a1779358fbb1f439f4b5a5868e1888..50e473d1c7b064fffd642c0f5528884f50fa8ebf 100644 (file)
@@ -1,25 +1,27 @@
 <?php
-
-       /**
-        * This view will display featured groups - these are set by admin
-        **/
+/**
+ * Featured groups
+ *
+ * @uses $vars['featured']
+ *
+ * @package ElggGroups
+ */
         
+if ($vars['featured']) {
        
-?>
-<h3><?php echo elgg_echo("groups:featured"); ?></h3>
-
-<?php
-       if($vars['featured']){
-               
-               foreach($vars['featured'] as $group){
-                       $icon = elgg_view(
-                               "groups/icon", array(
+       $body = '';
+       foreach ($vars['featured'] as $group) {
+               $icon = elgg_view("groups/icon", array(
                                'entity' => $group,
                                'size' => 'tiny',
                        ));
-                               
-                       echo "<div class='featured_group'>".$icon."<p class='entity-title clearfix'><a href=\"" . $group->getUrl() . "\">" . $group->name . "</a></p>";
-                       echo "<p class='entity-subtext'>" . $group->briefdescription . "</p></div>";
-               }
+               $body .= "<div class='featured_group'>".$icon."<p class='entity-title clearfix'><a href=\"" . $group->getUrl() . "\">" . $group->name . "</a></p>";
+               $body .= "<p class='entity-subtext'>" . $group->briefdescription . "</p></div>";
        }
-?>
+
+       echo elgg_view('layout/objects/module', array(
+               'title' => elgg_echo("groups:featured"),
+               'body' => $body,
+               'class' => 'elgg-aside-module',
+       ));
+}
index 0ad9f20188a2c9904f828985116d54f29ed69d16..c0c135be2492fe6b36c54a1fb4f2e8ea2e7d29cb 100644 (file)
@@ -1,14 +1,14 @@
 <?php
+/**
+ * Group search
+ *
+ * @package ElggGroups
+ */
+$url = elgg_get_site_url() . 'pg/groups/world';
+$body = elgg_view_form('groups/search', array('action' => $url, 'method' => 'get'));
 
-       /**
-        * A simple group search by tag view
-        **/
-
-$tag_string = elgg_echo('groups:search:tags');
-        
-?>
-<h3><?php echo elgg_echo('groups:searchtag'); ?></h3>
-<form id="groupsearchform" action="<?php echo elgg_get_site_url(); ?>pg/groups/world/" method="get">
-       <input type="text" name="tag" value="<?php echo $tag_string; ?>" onclick="if (this.value=='<?php echo $tag_string; ?>') { this.value='' }" class="search-input" />
-       <input type="submit" value="<?php echo elgg_echo('search:go'); ?>" />
-</form>
+echo elgg_view('layout/objects/module', array(
+       'title' => elgg_echo('groups:searchtag'),
+       'body' => $body,
+       'class' => 'elgg-aside-module',
+));
index 4738edf288117be3dbd080fb439c199c1ca448b4..b4e9199af6eedd2ea448976b601be1c3d3b3945f 100644 (file)
@@ -1,21 +1,18 @@
 <?php
-       /**
-        * Elgg groups items view.
-        * This is the messageboard, members, pages and latest forums posts. Each plugin will extend the views
-        * 
-        * @package ElggGroups
-        */
-        
-        //var_export($vars['entity']);
-?>
+/**
+ * Group members sidebar
+ *
+ * @package ElggGroups
+ */
 
-<div id="group_members" class="clearfix">
-<h3><?php echo elgg_echo("groups:members"); ?></h3>
+$body = '';
+$members = $vars['entity']->getMembers(10);
+foreach ($members as $mem) {
+       $body .= "<div class='member_icon'><a href=\"" . $mem->getURL() . "\">" . elgg_view("profile/icon", array('entity' => $mem, 'size' => 'tiny', 'override' => 'true')) . "</a></div>";
+}
 
-<?php
-    $members = $vars['entity']->getMembers(10);
-    foreach($members as $mem){
-        echo "<div class='member_icon'><a href=\"".$mem->getURL()."\">" . elgg_view("profile/icon",array('entity' => $mem, 'size' => 'tiny', 'override' => 'true')) . "</a></div>";   
-    }
-?>
-</div>
\ No newline at end of file
+echo elgg_view('layout/objects/module', array(
+       'title' => elgg_echo("groups:members"),
+       'body' => $body,
+       'class' => 'elgg-aside-module',
+));
index a7ab0a956f6a6f84779669d43cfa8b9ffbdf5931..eeceba344204daced8513d8242dc3f815480aaaa 100644 (file)
@@ -46,7 +46,7 @@ if ($full_view) {
 <p class="mbn">
        $delete_button
        $commenter_link
-       <span class="entity-subtext">
+       <span class="elgg-subtitle">
                $friendlytime
        </span>
        $comment_text
@@ -63,8 +63,8 @@ HTML;
        $on = elgg_echo('on');
 
        $body = <<<HTML
-<span class="entity-subtext">
-       $commenter_link $on <span class='entity-title'>$entity_link</span> ($friendlytime)
+<span class="elgg-subtitle">
+       $commenter_link $on $entity_link ($friendlytime)
 </span>
 HTML;
 
index bd0a8fa9505c761fec5584207c3fefcb83279a19..db194c04de489005e3b04e99aa4c6332f4d72d87 100644 (file)
@@ -52,7 +52,7 @@ if ($num_of_likes) {
                'class' => 'elgg-like-toggle',
        );
        $list = elgg_view('output/url', $params);
-       $list .= "<div class='elgg-likes-list hidden clearfix'>";
+       $list .= "<div class='elgg-popup-module elgg-likes-list hidden clearfix'>";
        $list .= list_annotations($guid, 'likes', 99);
        $list .= "</div>";
 }
index 821547f9931b25bf5c722b775ef62023a3dfaa9d..fba0270e52a887c1b127afa0bf1a8992458b4593 100644 (file)
@@ -14,6 +14,7 @@ $body = elgg_view_form('members/tag_search', $params);
 $params = array(
        'title' => elgg_echo('members:searchtag'),
        'body' => $body,
+       'class' => 'elgg-aside-module',
 );
 echo elgg_view('layout/objects/module', $params);
 
@@ -29,5 +30,6 @@ $body = elgg_view_form('members/name_search', $params);
 $params = array(
        'title' => elgg_echo('members:searchname'),
        'body' => $body,
+       'class' => 'elgg-aside-module',
 );
 echo elgg_view('layout/objects/module', $params);
index 54feccc31563831f2c6e4532be7d6cfac9e68893..bbd38ce12bf410d47d1f3eac346eb0d7be079b9c 100644 (file)
@@ -653,3 +653,6 @@ ul.admin_plugins {
        top: 2px;
        background: white;
 }
+.add-user form {
+       width:300px;
+}
\ No newline at end of file
index 374903c59d9fc29bb38b289e3093826faef89a7d..597313f0c14b733c53ead1ffdcd828b8c7b9b15e 100644 (file)
        margin-left: 15px;
        font-size: 90%;
 }
-.elgg-list-metadata li {
+.elgg-list-metadata li {
        float: left;
        margin-left: 15px;
 }
 .elgg-list-metadata, .elgg-list-metadata a {
        color: #aaaaaa;
 }
-.elgg-list-subtitle {
+.elgg-list-subtitle, .elgg-subtitle {
        color: #666666;
        font-size: 85%;
        line-height: 1.2em;
        -webkit-box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.5);
        -moz-box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.5);
 }
-.elgg-sidebar .elgg-module {
-       margin-top: 20px;
-}
-.elgg-sidebar .elgg-module .elgg-head {
-       border-bottom: 1px solid #CCCCCC;
-       margin-bottom: 5px;
-       padding-bottom: 5px;
+.elgg-owner-block {
+       margin-bottom: 20px;
 }
 /* ***************************************
        WIDGETS
index 73d237b47afdab4ca4e8ba0f46728d1c77afde1d..f5dd788217f99b98eca7601a7e3d19b4ced46bb8 100644 (file)
@@ -9,17 +9,8 @@
        LIKES
 *************************************** */
 .elgg-likes-list {
-       background-color: white;
-       border:1px solid #cccccc;
        width: 345px;
-       height: auto;
        position: absolute;
-       text-align: left;
-       z-index: 9999;
-       -webkit-border-radius: 6px;
-       -moz-border-radius: 6px;
-       -webkit-box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.5);
-       -moz-box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.5);
 }
 
 /* ***************************************
@@ -272,10 +263,6 @@ table.styled tr:hover {
        background: #E4E4E4;
 }
 
-.add-user form {
-       width:300px;
-}
-
 /* ***************************************
        FRIENDS PICKER
 *************************************** */
index b47b66005017fe68bdd26183fd14fc4eab19f67e..c8d7413422a386a511b07204772ea7943b0a6a7b 100644 (file)
@@ -66,7 +66,7 @@ if (!empty($vars['tagcloud']) && is_array($vars['tagcloud'])) {
                $params = array(
                        'title' => elgg_echo('tagcloud'),
                        'body' => $cloud,
-                       'class' => 'elgg-tagcloud',
+                       'class' => 'elgg-tagcloud elgg-aside-module',
                );
                echo elgg_view('layout/objects/module', $params);
        } else {