diff options
Diffstat (limited to 'views/default/page_elements/owner_block.php')
| -rw-r--r-- | views/default/page_elements/owner_block.php | 66 |
1 files changed, 0 insertions, 66 deletions
diff --git a/views/default/page_elements/owner_block.php b/views/default/page_elements/owner_block.php deleted file mode 100644 index eb18a733e..000000000 --- a/views/default/page_elements/owner_block.php +++ /dev/null @@ -1,66 +0,0 @@ -<?php -/** - * Elgg owner block - * Displays page ownership information - * - * @package Elgg - * @subpackage Core - * @author Curverider Ltd - * @link http://elgg.org/ - * - */ - -$contents = ""; - -if(is_plugin_enabled('profile')) { - // Is there a page owner? - $owner = page_owner_entity(); - if ($owner instanceof ElggEntity) { - $icon = elgg_view("profile/icon",array('entity' => $owner, 'size' => 'tiny')); - if ($owner instanceof ElggUser || $owner instanceof ElggGroup) { - $info = '<a href="' . $owner->getURL() . '">' . $owner->name . '</a>'; - } - $display = "<div id='owner_block_icon'>" . $icon . "</div>"; - $display .= "<div id='owner_block_content'>" . $info . "</div><div class='clearfloat ownerblockline'></div>"; - - if ($owner->briefdescription) { - $desc = $owner->briefdescription; - $display .= "<div id='owner_block_desc'>" . $desc . "</div>"; - } - - $contents .= "<div id='owner_block'>".$display."</div><div id='owner_block_bottom'></div>"; - } -} -// Are there feeds to display? -global $autofeed; - -if (isset($autofeed) && $autofeed == true) { - $url = $url2 = full_url(); - if (substr_count($url,'?')) { - $url .= "&view=rss"; - } else { - $url .= "?view=rss"; - } - $label = elgg_echo('feed:rss'); - $contents .= <<<END - -<div id="rss_link"><a href="{$url}" rel="nofollow">{$label}</a></div> - -END; -} - -$contents .= elgg_view('owner_block/extend'); - - -// Have we been asked to inject any content? If so, display it -if (isset($vars['content'])) - $contents .= $vars['content']; - -// Initialise the current tool/page submenu (plugins can add to the submenu) -$submenu = get_submenu(); -if (!empty($submenu)) - $contents .= "<div class='submenu page_navigation'>" . $submenu . "</div>"; - -if (!empty($contents)) { - echo $contents; -}
\ No newline at end of file |
