diff options
Diffstat (limited to 'mod')
-rw-r--r-- | mod/blog/views/default/blog/sidebar/archives.php | 6 | ||||
-rw-r--r-- | mod/blog/views/default/blog/sidebar/revisions.php | 10 | ||||
-rw-r--r-- | mod/blog/views/default/forms/blog/save.php | 2 | ||||
-rw-r--r-- | mod/embed/views/default/object/file/embedlist.php | 2 | ||||
-rw-r--r-- | mod/groups/views/default/forms/groups/search.php | 13 | ||||
-rw-r--r-- | mod/groups/views/default/groups/featured.php | 38 | ||||
-rw-r--r-- | mod/groups/views/default/groups/find.php | 24 | ||||
-rw-r--r-- | mod/groups/views/default/groups/members.php | 33 |
8 files changed, 74 insertions, 54 deletions
diff --git a/mod/blog/views/default/blog/sidebar/archives.php b/mod/blog/views/default/blog/sidebar/archives.php index 9904be288..f08c7ea7e 100644 --- a/mod/blog/views/default/blog/sidebar/archives.php +++ b/mod/blog/views/default/blog/sidebar/archives.php @@ -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 diff --git a/mod/blog/views/default/blog/sidebar/revisions.php b/mod/blog/views/default/blog/sidebar/revisions.php index e3919648b..b6c33fb38 100644 --- a/mod/blog/views/default/blog/sidebar/revisions.php +++ b/mod/blog/views/default/blog/sidebar/revisions.php @@ -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 diff --git a/mod/blog/views/default/forms/blog/save.php b/mod/blog/views/default/forms/blog/save.php index 8597c135c..76b474138 100644 --- a/mod/blog/views/default/forms/blog/save.php +++ b/mod/blog/views/default/forms/blog/save.php @@ -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> diff --git a/mod/embed/views/default/object/file/embedlist.php b/mod/embed/views/default/object/file/embedlist.php index c6595ab36..724032c38 100644 --- a/mod/embed/views/default/object/file/embedlist.php +++ b/mod/embed/views/default/object/file/embedlist.php @@ -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 index 000000000..fbb01513d --- /dev/null +++ b/mod/groups/views/default/forms/groups/search.php @@ -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'))); diff --git a/mod/groups/views/default/groups/featured.php b/mod/groups/views/default/groups/featured.php index 0f9a3bedf..50e473d1c 100644 --- a/mod/groups/views/default/groups/featured.php +++ b/mod/groups/views/default/groups/featured.php @@ -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', + )); +} diff --git a/mod/groups/views/default/groups/find.php b/mod/groups/views/default/groups/find.php index 0ad9f2018..c0c135be2 100644 --- a/mod/groups/views/default/groups/find.php +++ b/mod/groups/views/default/groups/find.php @@ -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', +)); diff --git a/mod/groups/views/default/groups/members.php b/mod/groups/views/default/groups/members.php index 4738edf28..b4e9199af 100644 --- a/mod/groups/views/default/groups/members.php +++ b/mod/groups/views/default/groups/members.php @@ -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', +)); |