From a9e67905b90320bf8566b6919b5edb3354d7fd6d Mon Sep 17 00:00:00 2001 From: ben Date: Tue, 15 Apr 2008 15:35:35 +0000 Subject: Blog plugin improvements, including delete on comments git-svn-id: https://code.elgg.org/elgg/trunk@466 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/blog/views/default/object/blog-comment.php | 27 +++++++++++++--- mod/blog/views/default/object/blog-comments.php | 27 +++++++++++++++- mod/blog/views/default/object/blog.php | 43 ++++++------------------- 3 files changed, 59 insertions(+), 38 deletions(-) (limited to 'mod/blog/views/default') diff --git a/mod/blog/views/default/object/blog-comment.php b/mod/blog/views/default/object/blog-comment.php index ecbf5fcff..a36490ec2 100644 --- a/mod/blog/views/default/object/blog-comment.php +++ b/mod/blog/views/default/object/blog-comment.php @@ -16,9 +16,9 @@ ?>
  • - - $vars['entity']->value)); ?> -

    +

    +

    $vars['entity']->value)); ?>

    + - + canEdit()) { +?> +

    + $vars['url'] . "action.php?action=blog/comments/delete&comment_id=" . $vars['entity']->id, + 'text' => elgg_echo('delete'), + 'confirm' => elgg_echo('deleteconfirm'), + )); + + ?> +

    + +
  • \ No newline at end of file diff --git a/mod/blog/views/default/object/blog-comments.php b/mod/blog/views/default/object/blog-comments.php index 991c42301..188214ff1 100644 --- a/mod/blog/views/default/object/blog-comments.php +++ b/mod/blog/views/default/object/blog-comments.php @@ -12,6 +12,11 @@ * @uses $vars['comments'] Array of comments */ +?> + +
    + + 0) { echo "

    ". elgg_echo("comments") ."

      "; @@ -24,4 +29,24 @@ } -?> \ No newline at end of file +?> +
      +

      + +

      +

      + +

      +

      + + " /> +

      +
      + +
    \ No newline at end of file diff --git a/mod/blog/views/default/object/blog.php b/mod/blog/views/default/object/blog.php index 01fbe4b4c..c4b718045 100644 --- a/mod/blog/views/default/object/blog.php +++ b/mod/blog/views/default/object/blog.php @@ -47,10 +47,16 @@ canEdit()) { + ?> - $vars['url'] . "action.php?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'])); @@ -66,41 +72,12 @@ // If we've been asked to display the full view if (isset($vars['full']) && $vars['full'] == true) { - -?> - -
    - - $vars['entity'], 'comments' => $vars['comments'])); + } // Display comments if any - echo elgg_view('object/blog-comments',array('comments' => $vars['comments'])); + // echo elgg_view('object/blog-comments',array('entity' => $vars['entity'], 'comments' => $vars['comments'])); -?> -
    -

    - -

    -

    - -

    -

    - - " /> -

    -
    - -
    - - \ No newline at end of file -- cgit v1.2.3