From b7411d4efa0c2f116c2d5da814b7d817a1e14660 Mon Sep 17 00:00:00 2001 From: pete Date: Fri, 12 Mar 2010 12:30:04 +0000 Subject: Updated interface on new blog (listings and edit/new blog pages). git-svn-id: http://code.elgg.org/elgg/trunk@5376 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/blog/views/default/blog/css.php | 11 +++++++++++ mod/blog/views/default/blog/forms/edit.php | 14 ++++++++------ mod/blog/views/default/object/blog.php | 24 +++++++++++++----------- 3 files changed, 32 insertions(+), 17 deletions(-) (limited to 'mod/blog') diff --git a/mod/blog/views/default/blog/css.php b/mod/blog/views/default/blog/css.php index e69de29bb..1a85330e2 100644 --- a/mod/blog/views/default/blog/css.php +++ b/mod/blog/views/default/blog/css.php @@ -0,0 +1,11 @@ + diff --git a/mod/blog/views/default/blog/forms/edit.php b/mod/blog/views/default/blog/forms/edit.php index 3c9912daa..b19898573 100644 --- a/mod/blog/views/default/blog/forms/edit.php +++ b/mod/blog/views/default/blog/forms/edit.php @@ -26,6 +26,7 @@ $forward = $_SERVER['HTTP_REFERER']; $action_buttons = ''; $guid_input = ''; +$delete_link = ''; // if entity is set, we're editing. if (isset ($vars['entity'])) { @@ -45,16 +46,14 @@ if (isset ($vars['entity'])) { $delete_link = elgg_view('output/confirmlink', array( 'href' => $delete_url, 'text' => elgg_echo('delete'), - 'class' => 'action_button' + 'class' => 'action_button disabled' )); - $action_buttons = $delete_link; - $guid_input = elgg_view('input/hidden', array('internalname' => 'guid', 'value' => $values['guid'])); } -$save_button = elgg_view('input/submit', array('value' => elgg_echo('save'), 'class' => 'action_button')); -$action_buttons .= $save_button; +$save_button = elgg_view('input/submit', array('value' => elgg_echo('save'), 'class' => 'submit_button')); +$action_buttons = $save_button . $delete_link; $title_label = elgg_echo('title'); $title_input = elgg_view('input/text', array( @@ -123,9 +122,12 @@ $publish_date_input = elgg_view('input/datepicker', array( // hidden inputs //$container_guid_input = elgg_view('input/hidden', array('internalname' => 'container_guid', 'value' => $values['container_guid'])); $forward_input = elgg_view('input/hidden', array('internalname' => 'forward', 'value' => $forward)); +$page_title = elgg_echo('blog:edit')." ".$values['title']; $form_body = <<<___END -

+

$page_title

+ +

$title_input

diff --git a/mod/blog/views/default/object/blog.php b/mod/blog/views/default/object/blog.php index 7a40de67d..4a56ec0e1 100644 --- a/mod/blog/views/default/object/blog.php +++ b/mod/blog/views/default/object/blog.php @@ -36,14 +36,14 @@ if ($blog->comments_on == 'Yes') { // links to delete or edit. if ($blog->canEdit()) { $edit_url = "{$vars['url']}pg/blog/{$owner->username}/edit/{$blog->getGUID()}/"; - $edit_link = "" . elgg_echo('edit') . ''; + $edit_link = "" . elgg_echo('edit') . ''; $delete_url = "{$vars['url']}action/blog/delete?guid={$blog->getGUID()}"; - $delete_link = elgg_view('output/confirmlink', array( + $delete_link = "".elgg_view('output/confirmlink', array( 'href' => $delete_url, 'text' => elgg_echo('delete'), - 'class' => 'action_button' - )); + 'confirm' => elgg_echo('deleteconfirm') + )).""; $edit = "$edit_link $delete_link"; } else { @@ -62,19 +62,21 @@ if ($full) { echo <<<___END
-

$owner_title

- $edit -

{$blog->title}

-
+
+

$owner_title

+
+
$owner_icon
+ +

{$blog->title}

$date - $tags $categories $comments_link

+

$tags

$body

@@ -90,14 +92,14 @@ ___END; $owner_icon
- $edit +

$linked_title

$date - $tags $categories $comments_link

+

$tags

$excerpt

-- cgit v1.2.3