From 6ed2d4f162a2e71c0977ca6b08fb591d2d71a86d Mon Sep 17 00:00:00 2001 From: ewinslow Date: Wed, 23 Feb 2011 16:19:50 +0000 Subject: Every occurrence of elgg-button-$type needs an elgg-button base class declaration -- or should we remove that requirement? git-svn-id: http://code.elgg.org/elgg/trunk@8444 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/admin/plugins/advanced.php | 6 +++--- views/default/annotation/generic_comment.php | 2 +- views/default/annotation/likes.php | 2 +- views/default/core/account/login_dropdown.php | 12 ++++++++---- views/default/core/friends/picker.php | 4 ++-- views/default/forms/profile/fields/reset.php | 2 +- views/default/input/button.php | 4 +++- views/default/object/plugin/advanced.php | 2 +- views/default/page/layouts/content/header.php | 2 +- views/default/page/layouts/widgets/add_button.php | 2 +- 10 files changed, 22 insertions(+), 16 deletions(-) (limited to 'views') diff --git a/views/default/admin/plugins/advanced.php b/views/default/admin/plugins/advanced.php index 8b12cd899..229c21f96 100644 --- a/views/default/admin/plugins/advanced.php +++ b/views/default/admin/plugins/advanced.php @@ -49,7 +49,7 @@ $category_dropdown = elgg_view('input/dropdown', array( $category_button = elgg_view('input/submit', array( 'value' => elgg_echo('filter'), - 'class' => 'elgg-button-action' + 'class' => 'elgg-button elgg-button-action' )); $category_form = elgg_view('input/form', array( @@ -64,8 +64,8 @@ if (!isset($show_category) || empty($show_category)) { $deactivate_url = elgg_add_action_tokens_to_url($deactivate_url); $buttons = "
"; - $buttons .= "" . elgg_echo('admin:plugins:activate_all') . ' '; - $buttons .= "" . elgg_echo('admin:plugins:deactivate_all') . ' '; + $buttons .= "" . elgg_echo('admin:plugins:activate_all') . ' '; + $buttons .= "" . elgg_echo('admin:plugins:deactivate_all') . ' '; $buttons .= "
"; } else { $buttons = ''; diff --git a/views/default/annotation/generic_comment.php b/views/default/annotation/generic_comment.php index f5408abbd..c55c04c78 100644 --- a/views/default/annotation/generic_comment.php +++ b/views/default/annotation/generic_comment.php @@ -42,7 +42,7 @@ if ($full_view) { 'text' => elgg_echo('delete'), 'confirm' => elgg_echo('deleteconfirm') )); - $delete_button = "$delete_button"; + $delete_button = "$delete_button"; } $comment_text = elgg_view("output/longtext", array("value" => $comment->value)); diff --git a/views/default/annotation/likes.php b/views/default/annotation/likes.php index 459afce61..2ca129840 100644 --- a/views/default/annotation/likes.php +++ b/views/default/annotation/likes.php @@ -32,7 +32,7 @@ if ($like->canEdit()) { 'text' => elgg_echo('delete'), 'confirm' => elgg_echo('deleteconfirm') )); - $delete_button = "$delete_button"; + $delete_button = "$delete_button"; } $body = << "{$login_url}action/login"), array('returntoreferer' => TRUE)); ?>
- - 'login-dropdown-box')); ?> + 'pg/login', + 'text' => elgg_echo('login'), + 'class' => "elgg-button elgg-button-dropdown elgg-toggler elgg-toggles-login-dropdown-box", + )); + echo elgg_view_module('dropdown', '', $body, array('id' => 'login-dropdown-box')); + ?>
\ No newline at end of file diff --git a/views/default/core/friends/picker.php b/views/default/core/friends/picker.php index c17a484f3..2df452958 100644 --- a/views/default/core/friends/picker.php +++ b/views/default/core/friends/picker.php @@ -270,8 +270,8 @@ if ($formtarget) { ?>
- - + +
diff --git a/views/default/forms/profile/fields/reset.php b/views/default/forms/profile/fields/reset.php index deb2d48ef..57dc00e85 100644 --- a/views/default/forms/profile/fields/reset.php +++ b/views/default/forms/profile/fields/reset.php @@ -5,6 +5,6 @@ $params = array( 'value' => elgg_echo('profile:resetdefault'), - 'class' => 'elgg-button-action elgg-state-disabled', + 'class' => 'elgg-button elgg-button-action elgg-state-disabled', ); echo elgg_view('input/submit', $params); diff --git a/views/default/input/button.php b/views/default/input/button.php index 52a85ace6..b1a884c77 100644 --- a/views/default/input/button.php +++ b/views/default/input/button.php @@ -6,11 +6,13 @@ * @subpackage Core * * @uses $vars['src'] Src of an image + * + * @todo Handle classes better */ $defaults = array( 'type' => 'button', - 'class' => 'elgg-button-submit', + 'class' => 'elgg-button elgg-button-action', ); $vars = array_merge($defaults, $vars); diff --git a/views/default/object/plugin/advanced.php b/views/default/object/plugin/advanced.php index f6a760af4..f4b3b6fbc 100644 --- a/views/default/object/plugin/advanced.php +++ b/views/default/object/plugin/advanced.php @@ -104,7 +104,7 @@ if ($can_activate) { $action_button = elgg_view('output/url', array( 'text' => elgg_echo('admin:plugins:cannot_activate'), 'disabled' => 'disabled', - 'class' => "elgg-button-action elgg-state-disabled" + 'class' => "elgg-button elgg-button-action elgg-state-disabled" )); } diff --git a/views/default/page/layouts/content/header.php b/views/default/page/layouts/content/header.php index 7a3ab1ae9..2a694c28f 100644 --- a/views/default/page/layouts/content/header.php +++ b/views/default/page/layouts/content/header.php @@ -36,7 +36,7 @@ if ($context) { $params = array( 'href' => $new_link = elgg_normalize_url($new_link), 'text' => elgg_echo("$context:add"), - 'class' => 'elgg-button-action', + 'class' => 'elgg-button elgg-button-action', ); $buttons = elgg_view('output/url', $params); } diff --git a/views/default/page/layouts/widgets/add_button.php b/views/default/page/layouts/widgets/add_button.php index 23c0b99ee..cfcbcc998 100644 --- a/views/default/page/layouts/widgets/add_button.php +++ b/views/default/page/layouts/widgets/add_button.php @@ -4,7 +4,7 @@ */ ?>
- +
-- cgit v1.2.3