diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-04-04 17:36:44 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-04-04 17:36:44 +0000 |
commit | d06f87fadb1b88f8ae251ada0461dd2cebf84a00 (patch) | |
tree | 5e90ffdb4dcc46978bcde6bd839243aad02d7799 /mod/blog/views/default/object/blog.php | |
parent | 4ec8a466b8ae9bfcb495b57cc1c90ac8de3533e2 (diff) | |
download | elgg-d06f87fadb1b88f8ae251ada0461dd2cebf84a00.tar.gz elgg-d06f87fadb1b88f8ae251ada0461dd2cebf84a00.tar.bz2 |
Blog edit updates
git-svn-id: https://code.elgg.org/elgg/trunk@408 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 | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/mod/blog/views/default/object/blog.php b/mod/blog/views/default/object/blog.php index b136267d7..6fcf041ba 100644 --- a/mod/blog/views/default/object/blog.php +++ b/mod/blog/views/default/object/blog.php @@ -44,6 +44,22 @@ ?>
</p>
+ <?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>
+ <a href="<?php echo $vars['url']; ?>mod/blog/delete.php?blogpost=<?php echo $vars['entity']->getGUID(); ?>"><?php echo elgg_echo("delete"); ?></a>
+ <?php
+
+ // Allow the menu to be extended
+ echo elgg_view("editmenu",array('entity' => $vars['entity']));
+
+ ?>
+ <?php
+ }
+
+ ?>
</div>
<?php
|