'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.
}
$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
'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') {
$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
$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>
$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; ?>">
--- /dev/null
+<?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')));
<?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',
+ ));
+}
<?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',
+));
<?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',
+));
<p class="mbn">
$delete_button
$commenter_link
- <span class="entity-subtext">
+ <span class="elgg-subtitle">
$friendlytime
</span>
$comment_text
$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;
'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>";
}
$params = array(
'title' => elgg_echo('members:searchtag'),
'body' => $body,
+ 'class' => 'elgg-aside-module',
);
echo elgg_view('layout/objects/module', $params);
$params = array(
'title' => elgg_echo('members:searchname'),
'body' => $body,
+ 'class' => 'elgg-aside-module',
);
echo elgg_view('layout/objects/module', $params);
top: 2px;
background: white;
}
+.add-user form {
+ width:300px;
+}
\ No newline at end of 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
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);
}
/* ***************************************
background: #E4E4E4;
}
-.add-user form {
- width:300px;
-}
-
/* ***************************************
FRIENDS PICKER
*************************************** */
$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 {