diff options
Diffstat (limited to 'views/default/page_elements')
| -rw-r--r-- | views/default/page_elements/breadcrumbs.php | 26 | ||||
| -rw-r--r-- | views/default/page_elements/content_header.php | 71 | ||||
| -rw-r--r-- | views/default/page_elements/content_header_member.php | 15 | ||||
| -rw-r--r-- | views/default/page_elements/elgg_content.php | 9 | ||||
| -rw-r--r-- | views/default/page_elements/elgg_footer.php | 30 | ||||
| -rw-r--r-- | views/default/page_elements/elgg_header.php | 19 | ||||
| -rw-r--r-- | views/default/page_elements/elgg_topbar.php | 59 | ||||
| -rw-r--r-- | views/default/page_elements/html_begin.php | 95 | ||||
| -rw-r--r-- | views/default/page_elements/html_end.php | 11 | ||||
| -rw-r--r-- | views/default/page_elements/owner_block.php | 67 | ||||
| -rw-r--r-- | views/default/page_elements/title.php | 41 |
11 files changed, 0 insertions, 443 deletions
diff --git a/views/default/page_elements/breadcrumbs.php b/views/default/page_elements/breadcrumbs.php deleted file mode 100644 index 165a6c7dd..000000000 --- a/views/default/page_elements/breadcrumbs.php +++ /dev/null @@ -1,26 +0,0 @@ -<?php
-
-/**
- * Breadcrumbs
-**/
-// @todo spk to Brett re. making this simpler / scalable
-// grab variables from array
-$breadcrumb_root_url = $vars['breadcrumb_root_url'];
-$breadcrumb_root_text = $vars['breadcrumb_root_text'];
-$breadcrumb_level1_url = $vars['breadcrumb_level1_url'];
-$breadcrumb_level1_text = $vars['breadcrumb_level1_text'];
-$breadcrumb_level2_url = $vars['breadcrumb_level2_url'];
-$breadcrumb_level2_text = $vars['breadcrumb_level2_text'];
-$breadcrumb_currentpage = $vars['breadcrumb_currentpage'];
-?>
-<div id="breadcrumbs">
- <a href="<?php echo $breadcrumb_root_url; ?>"><?php echo $breadcrumb_root_text; ?></a> >
- <?php
- if (isset($vars['breadcrumb_level1_url']) && $vars['breadcrumb_level1_url']) { ?>
- <a href="<?php echo $breadcrumb_level1_url; ?>"><?php echo $breadcrumb_level1_text; ?></a> >
- <?php }
- if (isset($vars['breadcrumb_level2_url']) && $vars['breadcrumb_level2_url']) { ?>
- <a href="<?php echo $breadcrumb_level2_url; ?>"><?php echo $breadcrumb_level2_text; ?></a> >
- <?php }
- echo $breadcrumb_currentpage; ?>
-</div>
\ No newline at end of file diff --git a/views/default/page_elements/content_header.php b/views/default/page_elements/content_header.php deleted file mode 100644 index 9d7bea08a..000000000 --- a/views/default/page_elements/content_header.php +++ /dev/null @@ -1,71 +0,0 @@ -<?php -/** - * Page Content header - holds the filter menu and any content action buttons - used on bookmarks, blog, file, pages, - **/ - -global $CONFIG; - -// set variables -$page_owner = page_owner_entity(); -$filter_context = $vars['context']; // so we know if the user is looking at their own, everyone's or all friends -$type = $vars['type']; // get the object type -$mine_selected = ''; -$all_selected = ''; -$friend_selected = ''; -$action_buttons = ''; -$title = ''; -/* $dash_selected = ''; */ - -if(!($page_owner instanceof ElggGroup)){ - if($filter_context == 'mine') { - $mine_selected = "SELECTED"; - } - if($filter_context == 'everyone') { - $all_selected = "SELECTED"; - } - if($filter_context == 'friends') { - $friend_selected = "SELECTED"; - } - if($filter_context == 'action') { - // if this is an action page, we'll not be displaying the filter - } -/* - if($filter_context == 'dashboard') - $dash_selected = "SELECTED"; -*/ -} - -// must be logged in to see the filter menu and any action buttons -if(isloggedin()) { - // if we're not on an action page (add bookmark, create page, upload a file etc) - if ($filter_context != 'action') { - $location_filter = "<select onchange=\"window.open(this.options[this.selectedIndex].value,'_top')\" name=\"file_filter\" class='styled' >"; - $location_filter .= "<option {$mine_selected} class='select_option' value=\"{$vars['url']}pg/{$type}/{$_SESSION['user']->username}\" >" . elgg_echo($type . ':yours') . "</option>"; - $location_filter .= "<option {$all_selected} class='select_option' value=\"{$vars['url']}mod/{$type}/all.php\">" . elgg_echo($type . ':all') . "</option>"; - $location_filter .= "<option {$friend_selected} class='select_option' value=\"{$vars['url']}pg/{$type}/{$_SESSION['user']->username}/friends/\">". elgg_echo($type . ':friends') . "</option>"; - $location_filter .= "</select>"; - $location_filter = "<div class='content_header_filter'>".$location_filter."</div>"; - - // action buttons - if(get_context() != 'bookmarks'){ - $url = $CONFIG->wwwroot . "pg/{$type}/". $page_owner->username . "/new/"; - } else { - $url = $CONFIG->wwwroot . "pg/{$type}/". $page_owner->username . "/add"; - } - $action_buttons = "<a href=\"{$url}\" class='action_button'>" . elgg_echo($type . ':new') . "</a>"; - $action_buttons = "<div class='content_header_options'>".$action_buttons."</div>"; - - } else { - // if we're on an action page - we'll just have a simple page title, and no filter menu - $title = "<div class='content_header_title'>".elgg_view_title($title = elgg_echo($type . ':add'))."</div>"; - } -} -?> -<!-- construct the content area header --> -<div id="content_header" class="clearfloat"> - <?php echo $title; ?> - <?php echo $location_filter; ?> - <?php echo $action_buttons; ?> -</div> 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 f90c87384..000000000 --- a/views/default/page_elements/content_header_member.php +++ /dev/null @@ -1,15 +0,0 @@ -<?php -/** - * Page Content header when viewing another members entities - holds the filter menu and any content action buttons - used on bookmarks, blog, file, pages, - **/ -$type = $vars['type'];//get the object type -$user = page_owner_entity(); -$user_name = elgg_view_title($user->name . "'s " . elgg_echo($type)); -?> -<div id="content_header" class="clearfloat"> - <div class="content_header_title"> - <?php echo $user_name; ?> - </div> -</div>
\ No newline at end of file diff --git a/views/default/page_elements/elgg_content.php b/views/default/page_elements/elgg_content.php deleted file mode 100644 index 35e67232c..000000000 --- a/views/default/page_elements/elgg_content.php +++ /dev/null @@ -1,9 +0,0 @@ -<?php -/** - * Elgg content wrapper - * This file holds the main content - **/ - -$content = isset($vars['body']) ? $vars['body'] : ''; - -echo $content; diff --git a/views/default/page_elements/elgg_footer.php b/views/default/page_elements/elgg_footer.php deleted file mode 100644 index 4113b84c7..000000000 --- a/views/default/page_elements/elgg_footer.php +++ /dev/null @@ -1,30 +0,0 @@ -<?php -/** - * Elgg footer - * The standard HTML footer that displays across the site - * - * @package Elgg - * @subpackage Core - * @author Curverider Ltd - * @link http://elgg.org/ - * - */ - -?> -<div id="elgg_footer"> - <div id="elgg_footer_contents"> - <?php - if(is_plugin_enabled('reportedcontent') && isloggedin()){ - ?> - <div id="report_this"> - <a href="javascript:location.href='<?php echo $vars['url']; ?>mod/reportedcontent/add.php?address='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)">Report this</a> - </div> - <?php - } - ?> - <?php echo elgg_view('footer/links'); ?> - <a href="http://www.elgg.org" target="_blank" class="powered_by_elgg_badge"> - <img src="<?php echo $vars['url']; ?>_graphics/powered_by_elgg_badge_drk_bckgnd.gif" border="0" alt="Powered by Elgg" /> - </a> - </div> -</div> diff --git a/views/default/page_elements/elgg_header.php b/views/default/page_elements/elgg_header.php deleted file mode 100644 index 0733268f4..000000000 --- a/views/default/page_elements/elgg_header.php +++ /dev/null @@ -1,19 +0,0 @@ -<?php -/** - * Elgg header contents - * This file holds the header output that a user will see - **/ - -?> -<div id="elgg_header"> - <div id="elgg_header_contents"> - <!-- display site name --> - <h1><a href="<?php echo $vars['url']; ?>"><?php echo $vars['config']->sitename; ?></a></h1> - <?php - // insert site-wide navigation - echo elgg_view('navigation/site_nav'); - // insert a view which can be extended - echo elgg_view('header/extend'); - ?> - </div> -</div>
\ No newline at end of file diff --git a/views/default/page_elements/elgg_topbar.php b/views/default/page_elements/elgg_topbar.php deleted file mode 100644 index c57020e79..000000000 --- a/views/default/page_elements/elgg_topbar.php +++ /dev/null @@ -1,59 +0,0 @@ -<?php -/** - * Elgg top toolbar - * The standard elgg top toolbar - */ -?> - -<?php - if (isloggedin()) { -?> - -<div id="elgg_topbar" class="clearfloat"> -<div id="elgg_topbar_contents"> - <a href="http://www.elgg.org" target="_blank"><img class="site_logo" src="<?php echo $vars['url']; ?>_graphics/elgg_toolbar_logo.gif" alt="Elgg logo" /></a> - <a href="<?php echo $_SESSION['user']->getURL(); ?>"><img class="user_mini_avatar" src="<?php echo $_SESSION['user']->getIcon('topbar'); ?>" alt="User avatar" /></a> - - <?php - // elgg tools menu - echo elgg_view("navigation/topbar_tools"); - - // enable elgg topbar extending - echo elgg_view('elgg_topbar/extend', $vars); - ?> - - <div class="log_out"> - <?php echo elgg_view('output/url', array('href' => "{$vars['url']}action/logout", 'text' => elgg_echo('logout'), 'is_action' => TRUE)); ?> - </div> - - <?php - if(is_plugin_enabled('shared_access')){ - ?> - <a href="<?php echo $vars['url']; ?>pg/shared_access/home" class="shared_access"><?php echo elgg_echo('shared_access:shared_access'); ?></a> - <?php - } - ?> - <a href="<?php echo $vars['url']; ?>pg/settings/" class="settings"><?php echo elgg_echo('settings'); ?></a> - <?php - if(is_plugin_enabled('help')){ - ?> - <a href="<?php echo $vars['url']; ?>mod/help/index.php" class="help">Help</a> - <?php - } - ?> - <?php - // The administration link is for admin or site admin users only - if ($vars['user']->admin || $vars['user']->siteadmin) { - ?> - <a href="<?php echo $vars['url']; ?>pg/admin/" class="admin"><?php echo elgg_echo("admin"); ?></a> - - <?php - } - ?> - -</div> - -</div> -<?php - } -?>
\ No newline at end of file diff --git a/views/default/page_elements/html_begin.php b/views/default/page_elements/html_begin.php deleted file mode 100644 index 2784f2629..000000000 --- a/views/default/page_elements/html_begin.php +++ /dev/null @@ -1,95 +0,0 @@ -<?php -/** - * Start html output. - * The standard HTML header that displays across the site - * - * @uses $vars['config'] The site configuration settings, imported - * @uses $vars['title'] The page title - * @uses $vars['body'] The main content of the page - */ - -// Set title -if (empty($vars['title'])) { - $title = $vars['config']->sitename; -} else if (empty($vars['config']->sitename)) { - $title = $vars['title']; -} else { - $title = $vars['config']->sitename . ": " . $vars['title']; -} - -global $autofeed; -if (isset($autofeed) && $autofeed == true) { - $url = $url2 = full_url(); - if (substr_count($url,'?')) { - $url .= "&view=rss"; - } else { - $url .= "?view=rss"; - } - $feedref = <<<END - - <link rel="alternate" type="application/rss+xml" title="RSS" href="{$url}" /> - -END; -} else { - $feedref = ""; -} - -// we won't trust server configuration but specify utf-8 -header('Content-type: text/html; charset=utf-8'); - -$version = get_version(); -$release = get_version(true); -?> - -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head> - <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> - <meta name="ElggRelease" content="<?php echo $release; ?>" /> - <meta name="ElggVersion" content="<?php echo $version; ?>" /> - <title><?php echo $title; ?></title> - <link REL="SHORTCUT ICON" HREF="<?php echo $vars['url']; ?>_graphics/favicon.ico"> - - <script type="text/javascript" src="<?php echo $vars['url']; ?>vendors/jquery/jquery-1.4.min.js"></script> - <script type="text/javascript" src="<?php echo $vars['url']; ?>vendors/jquery/jquery-ui-1.7.2.min.js"></script> - <script type="text/javascript" src="<?php echo $vars['url']; ?>vendors/jquery/jquery.form.js"></script> - <script type="text/javascript" src="<?php echo $vars['url']; ?>vendors/jquery/custom-form-elements.js"></script> - <script type="text/javascript" src="<?php echo $vars['url']; ?>_css/js.php?lastcache=<?php echo $vars['config']->lastcache; ?>&js=initialise_elgg&viewtype=<?php echo $vars['view']; ?>"></script> - - <?php - echo $feedref; - if (elgg_view_exists('metatags')) { - echo elgg_view('metatags', $vars); - } - - // this was previously required because of an odd browser canvas drawing bug - // in firefox. It seems to not be require with the new layout...? -// <script type="text/javascript"> -// jQuery(document).ready(function($) { -// }); -// </script> - ?> - -<?php - global $pickerinuse; - if (isset($pickerinuse) && $pickerinuse == true) { -?> - <!-- only needed on pages where we have friends collections and/or the friends picker --> - <script type="text/javascript" src="<?php echo $vars['url']; ?>vendors/jquery/jquery.easing.1.3.packed.js"></script> - <script type="text/javascript" src="<?php echo $vars['url']; ?>_css/js.php?lastcache=<?php echo $vars['config']->lastcache; ?>&js=friendsPickerv1&viewtype=<?php echo $vars['view']; ?>"></script> -<?php - } -?> - <!-- include the default css file --> - <link rel="stylesheet" href="<?php echo $vars['url']; ?>_css/css.css?lastcache=<?php echo $vars['config']->lastcache; ?>&viewtype=<?php echo $vars['view']; ?>" type="text/css" /> - - <!--[if IE 6]> - <link rel="stylesheet" type="text/css" href="<?php echo $vars['url']; ?>mod/elgg_layout/css_ie6.php" /> - <![endif]--> - - <!--[if gt IE 6]> - <link rel="stylesheet" type="text/css" href="<?php echo $vars['url']; ?>mod/elgg_layout/css_ie.php" /> - <![endif]--> -</head> - -<body> diff --git a/views/default/page_elements/html_end.php b/views/default/page_elements/html_end.php deleted file mode 100644 index 0862934cf..000000000 --- a/views/default/page_elements/html_end.php +++ /dev/null @@ -1,11 +0,0 @@ -<?php -/** - * Start html output. - * The standard HTML header that displays across the site - * @uses $vars['config'] The site configuration settings, imported - * @uses $vars['title'] The page title - * @uses $vars['body'] The main content of the page - */ -?> -</body> -</html> diff --git a/views/default/page_elements/owner_block.php b/views/default/page_elements/owner_block.php deleted file mode 100644 index 4689b5a54..000000000 --- a/views/default/page_elements/owner_block.php +++ /dev/null @@ -1,67 +0,0 @@ -<?php -/** - * Elgg owner block - * Displays page ownership information - * - * @package Elgg - * @subpackage Core - * @author Curverider Ltd - * @link http://elgg.org/ - * - */ - -$contents = ""; - -// 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 class="rss_link clearfloat"><a href="{$url}" rel="nofollow" title="{$label}">{$label}</a></div> -END; -} - -if(is_plugin_enabled('profile')) { - // Is there a page owner? - $owner = page_owner_entity(); - $location = elgg_view("output/tags",array('value' => $owner->location)); - if ($owner instanceof ElggEntity) { - $icon = elgg_view("profile/icon",array('entity' => $owner, 'size' => 'tiny')); - if ($owner instanceof ElggUser || $owner instanceof ElggGroup) { - $info = '<h3><a href="' . $owner->getURL() . '">' . $owner->name . '</a></h3>'; - } - $display = "<div class='owner_block_icon'>" . $icon . "</div>"; - $display .= "<div class='owner_block_contents clearfloat'>" . $info; - - if ($owner->briefdescription) { - $desc = $owner->briefdescription; - $display .= "<p class='profile_info briefdescription'>" . $desc . "</p>"; - } - $display .= "<p class='profile_info location'>{$location}</p>"; - $display .= "</div>"; // close owner_block_contents - - $contents .= "<div id='owner_block' class='radius8'>".$display."</div>"; - } -} - -$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 diff --git a/views/default/page_elements/title.php b/views/default/page_elements/title.php deleted file mode 100644 index 5f8f7a762..000000000 --- a/views/default/page_elements/title.php +++ /dev/null @@ -1,41 +0,0 @@ -<?php -/** - * Elgg title element - * @uses $vars['title'] The page title - */ - -$page_owner = page_owner(); -$page_owner_user = get_entity($page_owner); - -$submenu = get_submenu(); // elgg_view('canvas_header/submenu'); -if (!empty($submenu)) { - $submenu = "<ul>" . $submenu . "</ul>"; -} - -if (($_SESSION['guid']) && ($page_owner && $page_owner_user->guid != $_SESSION['user']->getGUID())) { - $info = "<h2>" . $vars['title'] . "</h2>"; - if($page_owner_user instanceOf ElggGroup) { - $display = $info; - } else { - $display = $info; - } - if (!empty($submenu) && $vars['submenu'] == true) { - // plugins can extend this to add menu options - $display .= "<div class='submenu extended'>" . $submenu . "</div>"; - } -} else { - $info = "<h2>" . $vars['title'] . "</h2>"; - if($page_owner_user instanceOf ElggGroup) { - $display = $info; - } else { - $display = $info; - } - if (!empty($submenu) && $vars['submenu'] == true) { - // plugins can extend this to add menu options - $display .= "<div class='submenu extended'>" . $submenu . "</div>"; - } -} - - -//print to screen -echo $display;
\ No newline at end of file |
