From 7351b23e33825e335fea8f9a3dd33049a38759fb Mon Sep 17 00:00:00 2001 From: ewinslow Date: Tue, 22 Feb 2011 22:47:20 +0000 Subject: Removing holdovers from elgg.com git-svn-id: http://code.elgg.org/elgg/trunk@8429 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/page/elements/content_header.php | 94 ---------------------- .../page/elements/content_header_member.php | 24 ------ 2 files changed, 118 deletions(-) delete mode 100644 views/default/page/elements/content_header.php delete mode 100644 views/default/page/elements/content_header_member.php (limited to 'views/default') diff --git a/views/default/page/elements/content_header.php b/views/default/page/elements/content_header.php deleted file mode 100644 index 10ba4b052..000000000 --- a/views/default/page/elements/content_header.php +++ /dev/null @@ -1,94 +0,0 @@ -username; - -if (!$page_owner) { - $page_owner = $logged_in_user; -} - -// so we know if the user is looking at their own, everyone's or all friends -$filter_context = $vars['context']; - -// get the object type -$type = $vars['type']; - -// create an empty string to start with -$new_button = ''; - -// generate a list of default tabs -$default_tabs = array( - 'all' => array( - 'title' => elgg_echo('all'), - 'url' => (isset($vars['all_link'])) ? $vars['all_link'] : "mod/$type/all.php", - 'selected' => ($filter_context == 'everyone'), - ), - 'mine' => array( - 'title' => elgg_echo('mine'), - 'url' => (isset($vars['mine_link'])) ? $vars['mine_link'] : "pg/$type/$username", - 'selected' => ($filter_context == 'mine'), - ), - 'friend' => array( - 'title' => elgg_echo('friends'), - 'url' => (isset($vars['friend_link'])) ? $vars['friend_link'] : "pg/$type/$username/friends", - 'selected' => ($filter_context == 'friends'), - ), -); - -// determine if using default or overwritten tabs -$tabs = (isset($vars['tabs'])) ? $vars['tabs'] : $default_tabs; -$tab_list = elgg_view('navigation/tabs', array('tabs' => $tabs)); - -$title = elgg_echo($type); -$title = '
' . elgg_view_title($title) . '
'; - -// must be logged in to see any action buttons -if (elgg_is_logged_in()) { - // only show the new button when not on the add form. - // hide the tabs when on the add form. - if ($filter_context == 'action') { - $tab_list = ''; - } else { - // @todo remove the hard coded reference to the videolist plugin - if (elgg_get_context() == "videolist"){ - $video_link = elgg_get_site_url() . "pg/videolist/browse/$username/"; - $new_button = "" . elgg_echo('videolist:browsemenu') . ''; - } else { - $new_link = elgg_normalize_url((isset($vars['new_link'])) ? $vars['new_link'] : "pg/$type/$username/new"); - $new_button = "" . elgg_echo($type . ':new') . ''; - } - $new_button = "
$new_button
"; - } - - // also hide the tabs if in a group context (ie, listing groups) or - // when viewing tools belonging to a group - if (elgg_get_context() == 'groups' || $page_owner instanceof ElggGroup) { - $tab_list = ''; - } -} - -echo << - $title $new_button - -HTML; - -echo $tab_list; diff --git a/views/default/page/elements/content_header_member.php b/views/default/page/elements/content_header_member.php deleted file mode 100644 index 4f21cbcce..000000000 --- a/views/default/page/elements/content_header_member.php +++ /dev/null @@ -1,24 +0,0 @@ -name; - -// get the object type -$type = $vars['type']; - -$title = elgg_echo($type); -$title = $name . "'s " . $type; -?> - -
- ' . elgg_view_title($title) . '
'; ?> - - -- cgit v1.2.3