diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-08-13 11:36:27 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-08-13 11:36:27 +0000 |
commit | 1de4e318c1702293483e38285271398dc2cc4576 (patch) | |
tree | 00a849a93d16a9b61385adbd371892a1cf1f1cd0 /mod/blog/views/default/object/blog.php | |
parent | 10d2d5f1aec057ab5023890d407b59e2366c4398 (diff) | |
download | elgg-1de4e318c1702293483e38285271398dc2cc4576.tar.gz elgg-1de4e318c1702293483e38285271398dc2cc4576.tar.bz2 |
This shouldn't be here!
git-svn-id: https://code.elgg.org/elgg/trunk@1888 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/blog/views/default/object/blog.php')
-rw-r--r-- | mod/blog/views/default/object/blog.php | 115 |
1 files changed, 0 insertions, 115 deletions
diff --git a/mod/blog/views/default/object/blog.php b/mod/blog/views/default/object/blog.php deleted file mode 100644 index 202be6340..000000000 --- a/mod/blog/views/default/object/blog.php +++ /dev/null @@ -1,115 +0,0 @@ -<?php - - /** - * Elgg blog individual post view - * - * @package ElggBlog - * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2 - * @author Ben Werdmuller <ben@curverider.co.uk> - * @copyright Curverider Ltd 2008 - * @link http://elgg.com/ - * - * @uses $vars['entity'] Optionally, the blog post to view - */ - - if (isset($vars['entity'])) { - - if (get_context() == "search") { - - //display the correct layout depending on gallery or list view - if (get_input('search_viewtype') == "gallery") { - - //display the gallery view - echo elgg_view("blog/gallery",$vars); - - } else { - - echo elgg_view("blog/listing",$vars); - - } - - - } else { - -?> - - <div class="blog_post"> - <h3><a href="<?php echo $vars['entity']->getURL(); ?>"><?php echo $vars['entity']->title; ?></a></h3> - <!-- display the user icon --> - <div class="blog_post_icon"> - <?php - echo elgg_view("profile/icon",array('entity' => $vars['entity']->getOwnerEntity(), 'size' => 'tiny')); - ?> - </div> - <p class="strapline"> - <?php - - echo sprintf(elgg_echo("blog:strapline"), - date("F j, Y",$vars['entity']->time_created) - ); - - ?> - <?php echo elgg_echo('by'); ?> <a href="<?php echo $vars['url']; ?>pg/blog/<?php echo $vars['entity']->getOwnerEntity()->username; ?>"><?php echo $vars['entity']->getOwnerEntity()->name; ?></a> - <!-- display the comments link --> - <?php - //get the number of comments - $num_comments = elgg_count_comments($vars['entity']); - ?> - <a href="<?php echo $vars['entity']->getURL(); ?>"><?php echo sprintf(elgg_echo("comments")) . " (" . $num_comments . ")"; ?></a><br /> - </p> - <!-- display tags --> - <p class="tags"> - <?php - - echo elgg_view('output/tags', array('tags' => $vars['entity']->tags)); - - ?> - </p> - <div class="blog_post_body"> - - <!-- display the actual blog post --> - <?php - - echo autop($vars['entity']->description); - - ?> - </div> - <!-- display edit options if it is the blog post owner --> - <p class="options"> - <?php - - if ($vars['entity']->canEdit()) { - - ?> - <a href="<?php echo $vars['url']; ?>mod/blog/edit.php?blogpost=<?php echo $vars['entity']->getGUID(); ?>"><?php echo elgg_echo("edit"); ?></a> - <?php - - echo elgg_view("output/confirmlink", array( - 'href' => $vars['url'] . "action/blog/delete?blogpost=" . $vars['entity']->getGUID(), - 'text' => elgg_echo('delete'), - 'confirm' => elgg_echo('deleteconfirm'), - )); - - // Allow the menu to be extended - echo elgg_view("editmenu",array('entity' => $vars['entity'])); - - ?> - <?php - } - - ?> - </p> - </div> - -<?php - - // If we've been asked to display the full view - if (isset($vars['full']) && $vars['full'] == true) { - echo elgg_view_comments($vars['entity']); - } - - } - - } - -?>
\ No newline at end of file |