<ul class="submenu">
<li><a href="">Drafts</a></li>
</ul>
-
+<?php
+ // include a view for plugins to extend
+ echo elgg_view("blogs/sidebar", array("object_type" => 'blog'));
+?>
<?php // temporarily force tag-cloud display
echo "<h3>Tagcloud</h3>";
echo "<div class='tagcloud sidebar'>".display_tagcloud(0, 100, 'tags')."</div>";
$edit = '';
}
+ // include a view for plugins to extend
+ $edit = elgg_view("blogs/options", array("object_type" => 'blog')) .$edit;
+
if ($full) {
// The "on" status changes for comments, so best to check for !Off
if ($blog->comments_on != 'Off') {
}
$area3 = elgg_view('bookmarks/ownerblock');
+// include a view for plugins to extend
+$area3 .= elgg_view("bookmarks/sidebar", array("object_type" => 'bookmarks'));
// if logged in, get the bookmarklet
$area3 .= elgg_view("bookmarks/bookmarklet");
-//include a view for plugins to extend
-$area3 .= elgg_view("bookmarks/sidebar_options", array("object_type" => 'bookmarks'));
// Format page
$body = elgg_view_layout('one_column_with_sidebar', $area1.$area2, $area3);
$area2 .= list_entities('object','bookmarks');
set_context('bookmarks');
+// include a view for plugins to extend
+$area3 = elgg_view("bookmarks/sidebar", array("object_type" => 'bookmarks'));
+
// if logged in, get the bookmarklet
-if(isloggedin()){
- $area3 = elgg_view("bookmarks/bookmarklet");
+if(isloggedin()){
+ $area3 .= elgg_view("bookmarks/bookmarklet");
}
-//include a view for plugins to extend
-$area3 .= elgg_view("bookmarks/sidebar_options", array("object_type" => 'bookmarks'));
-//include stats
+// include statistics
$area3 .= elgg_view("bookmarks/stats");
// Format page
$body = elgg_view_layout('one_column_with_sidebar', $area1.$area2, $area3);
$area2 .= list_user_friends_objects(page_owner(),'bookmarks',10,false,false);
set_context('bookmarks');
-// sidebar options
-$area3 = elgg_view("bookmarks/sidebar_options", array("object_type" => 'bookmarks'));
+// include a view for plugins to extend
+$area3 = elgg_view("bookmarks/sidebar", array("object_type" => 'bookmarks'));
// if logged in, get the bookmarklet
-$area3 .= elgg_view("bookmarks/bookmarklet");
-
+if(isloggedin()){
+ $area3 .= elgg_view("bookmarks/bookmarklet");
+}
// Format page
$body = elgg_view_layout('one_column_with_sidebar', $area1.$area2, $area3);
//if the logged in user is not looking at their stuff, display the ownerblock
if(page_owner() != get_loggedin_user()->guid){
$area3 = elgg_view('bookmarks/ownerblock');
-}else{
- if(isloggedin()){
- // if logged in, get the bookmarklet
- $area3 .= elgg_view("bookmarks/bookmarklet");
- }
}
-//include a view for plugins to extend
-$area3 .= elgg_view("bookmarks/sidebar_options", array("object_type" => 'bookmarks'));
+// include a view for plugins to extend
+$area3 .= elgg_view("bookmarks/sidebar", array("object_type" => 'bookmarks'));
+
+if(isloggedin()){
+ // if logged in, get the bookmarklet
+ $area3 .= elgg_view("bookmarks/bookmarklet");
+}
// Format page
$body = elgg_view_layout('one_column_with_sidebar', $area1.$area2, $area3);
//include edit and delete options
if($vars['entity']->canEdit()){
$info .= "<span class='entity_edit'><a href=\"{$vars['url']}pg/bookmarks/{$owner->username}/edit/{$vars['entity']->getGUID()}\">" . elgg_echo('edit') . "</a></span>";
+ // include a view for plugins to extend
+ $info .= elgg_view("bookmarks/options",array('entity' => $vars['entity']));
$info .= $delete;
}
$info .= "</div>";