diff options
author | ewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-18 17:43:36 +0000 |
---|---|---|
committer | ewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-18 17:43:36 +0000 |
commit | 412d337ee7f1463dc4ea4cf1d23415b10749f996 (patch) | |
tree | 385fe8b798eec769f0714ed03d5ba41511354dd4 /views/default/page/elements/page_links.php | |
parent | 17cc9374679465a035f4721eff0c3ae87225e9eb (diff) | |
download | elgg-412d337ee7f1463dc4ea4cf1d23415b10749f996.tar.gz elgg-412d337ee7f1463dc4ea4cf1d23415b10749f996.tar.bz2 |
Refs #2950: layout/elements => page/elements
git-svn-id: http://code.elgg.org/elgg/trunk@8285 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/page/elements/page_links.php')
-rw-r--r-- | views/default/page/elements/page_links.php | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/views/default/page/elements/page_links.php b/views/default/page/elements/page_links.php new file mode 100644 index 000000000..fb9acbfb7 --- /dev/null +++ b/views/default/page/elements/page_links.php @@ -0,0 +1,37 @@ +<?php +/** + * Page links: RSS link, reported content link, etc. + */ + +// Are there feeds to display? +global $autofeed; +$rss_link = ''; +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'); + + $rss_link = elgg_view('output/url', array( + 'text' => '<span class="elgg-icon elgg-icon-rss"></span>', + 'href' => $url, + 'title' => $label, + 'rel' => 'nofollow', + 'encode_text' => false, + 'class' => 'right', + )); +} + +// view to extend by plugins +$links = elgg_view('page/links', $vars); + +if ($links || $rss_link) { + echo '<div class="elgg-page-links clearfix mbm">'; + echo $rss_link; + echo $links; + echo '</div>'; +} |