diff options
Diffstat (limited to 'views/default/page_elements')
-rw-r--r-- | views/default/page_elements/owner_block.php | 77 | ||||
-rw-r--r-- | views/default/page_elements/sidebar.php | 27 | ||||
-rw-r--r-- | views/default/page_elements/title.php | 22 |
3 files changed, 0 insertions, 126 deletions
diff --git a/views/default/page_elements/owner_block.php b/views/default/page_elements/owner_block.php deleted file mode 100644 index 66fc180dd..000000000 --- a/views/default/page_elements/owner_block.php +++ /dev/null @@ -1,77 +0,0 @@ -<?php -/** - * Elgg owner block - * Displays page ownership information - * - * @package Elgg - * @subpackage Core - * - */ - -$contents = ""; - -// Are there feeds to display? -global $autofeed; -if (isset($autofeed) && $autofeed == true) { - $url = full_url(); - if (substr_count($url,'?')) { - $url .= "&view=rss"; - } else { - $url .= "?view=rss"; - } - $url = elgg_format_url($url); - $label = elgg_echo('feed:rss'); - $contents .= <<<END - <div class="rss-link clearfix"><a href="{$url}" rel="nofollow" title="{$label}">{$label}</a></div> -END; -} - -if(is_plugin_enabled('profile')) { - // Is there a page owner? - $owner = elgg_get_page_owner(); - if ($owner instanceof ElggGroup || - ($owner instanceof ElggUser && $owner->getGUID() != get_loggedin_userid()) - ) { - $icon = elgg_view('profile/icon', array('entity' => $owner, 'size' => 'tiny')); - $owner_url = $owner->getURL(); - $display = "<div class='owner_block_icon'>$icon</div>"; - $display .= '<div class="owner_block_contents clearfix">'; - $display .= "<h3><a href=\"$owner_url\">{$owner->name}</a></h3>"; - - if ($owner->briefdescription) { - $display .= "<p class=\"profile_info briefdescription\">{$owner->briefdescription}</p>"; - } - - $location = elgg_view('output/tags', array('value' => $owner->location)); - $display .= "<p class=\"profile_info location\">$location</p>"; - - $display .= '</div>'; - - // Trigger owner block menu - $params = array('owner' => $owner); - $links = elgg_trigger_plugin_hook('profile_menu', 'profile', $params, array()); - if (is_array($links) && !empty($links)) { - // sort the links by name - usort($links, create_function( - '$a, $b', - 'return strnatcasecmp($a[\'text\'], $b[\'text\']);' - )); - - $display .= '<div class="owners_content_links"><ul>'; - foreach ($links as $link) { - $display .= "<li><a href=\"{$link['href']}\">{$link['text']}</a></li>"; - } - $display .= '</ul></div>'; - } - - // Allow plugins to extend the owner block contents - $display .= elgg_view('owner_block/profile_extend'); - - $contents .= "<div id='owner_block' class='clearfix'>$display</div>"; - } -} - -$contents .= elgg_view('owner_block/extend'); - - -echo $contents; diff --git a/views/default/page_elements/sidebar.php b/views/default/page_elements/sidebar.php deleted file mode 100644 index 8a5574da6..000000000 --- a/views/default/page_elements/sidebar.php +++ /dev/null @@ -1,27 +0,0 @@ -<?php -/** - * Elgg sidebar contents - * - * @uses $vars['sidebar'] Optional content that is displayed at the bottom of sidebar - **/ - -echo elgg_view('page_elements/owner_block'); - -echo elgg_view('navigation/sidebar_menu'); - -// optional 'sidebar' parameter -if (isset($vars['sidebar'])) { - echo $vars['sidebar']; -} - -// @todo deprecated so remove in Elgg 2.0 -// optional second parameter of elgg_view_layout -if (isset($vars['area2'])) { - echo $vars['area2']; -} - -// @todo deprecated so remove in Elgg 2.0 -// optional third parameter of elgg_view_layout -if (isset($vars['area3'])) { - echo $vars['area3']; -}
\ No newline at end of file diff --git a/views/default/page_elements/title.php b/views/default/page_elements/title.php deleted file mode 100644 index c5eeb9e0e..000000000 --- a/views/default/page_elements/title.php +++ /dev/null @@ -1,22 +0,0 @@ -<?php -/** - * Elgg title element - * @uses $vars['title'] The page title - */ - -$page_owner = elgg_get_page_owner_guid(); -$page_owner_entity = get_entity($page_owner); - -$display = "<h2>" . $vars['title'] . "</h2>"; - -$submenu = elgg_get_submenu(); -if (!empty($submenu)) { - $submenu = "<ul class='submenu extended'>" . $submenu . "</ul>"; -} - -if (!empty($submenu) && $vars['submenu'] == true) { - // plugins can extend this to add menu options - $display .= $submenu; -} - -echo $display;
\ No newline at end of file |