diff options
Diffstat (limited to 'views/default')
-rw-r--r-- | views/default/core/account/login_dropdown.php | 6 | ||||
-rw-r--r-- | views/default/object/plugin/advanced.php | 10 | ||||
-rw-r--r-- | views/default/object/widget/elements/controls.php | 4 | ||||
-rw-r--r-- | views/default/page/layouts/widgets/add_button.php | 2 | ||||
-rw-r--r-- | views/default/river/item/controls.php | 4 |
5 files changed, 18 insertions, 8 deletions
diff --git a/views/default/core/account/login_dropdown.php b/views/default/core/account/login_dropdown.php index 06a9a15fb..3c62a5448 100644 --- a/views/default/core/account/login_dropdown.php +++ b/views/default/core/account/login_dropdown.php @@ -21,8 +21,10 @@ $body = elgg_view_form('login', array('action' => "{$login_url}action/login"), a echo elgg_view('output/url', array( 'href' => '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')); ?> -</div>
\ No newline at end of file +</div> +<script> + $('#login-dropdown > a').attr('href', '#login-dropdown-box').addClass('elgg-toggler elgg-button elgg-button-dropdown'); +</script>
\ No newline at end of file diff --git a/views/default/object/plugin/advanced.php b/views/default/object/plugin/advanced.php index d89506319..4ff2dffa8 100644 --- a/views/default/object/plugin/advanced.php +++ b/views/default/object/plugin/advanced.php @@ -191,7 +191,15 @@ if (elgg_view_exists($settings_view)) { <div class="plugin_description"><?php echo $description; ?></div> <p class="plugin_author"><?php echo $author . ' - ' . $website; ?></p> - <div class="pts"><a class="elgg-toggler elgg-toggles-elgg-plugin-manifest-<?php echo $plugin->getID(); ?>"><?php echo elgg_echo("admin:plugins:label:moreinfo"); ?></a></div> + <div class="pts"> + <?php + echo elgg_view('output/url', array( + 'href' => "#elgg-plugin-manifest-{$plugin->getID()}", + 'text' => elgg_echo("admin:plugins:label:moreinfo"), + 'class' => 'elgg-toggler', + )); + ?> + </div> </div> </div> <div class="hidden manifest_file" id="elgg-plugin-manifest-<?php echo $plugin->getID(); ?>"> diff --git a/views/default/object/widget/elements/controls.php b/views/default/object/widget/elements/controls.php index 39eba471a..ba30d2d4d 100644 --- a/views/default/object/widget/elements/controls.php +++ b/views/default/object/widget/elements/controls.php @@ -32,8 +32,8 @@ if ($widget->canEdit()) { $params = array( 'text' => ' ', 'title' => elgg_echo('widget:edit'), - 'href' => "#", - 'class' => "elgg-widget-edit-button elgg-toggler elgg-toggles-widget-edit-$widget->guid", + 'href' => "#widget-edit-$widget->guid", + 'class' => "elgg-widget-edit-button elgg-toggler", ); $edit_link = 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 cfcbcc998..614b25332 100644 --- a/views/default/page/layouts/widgets/add_button.php +++ b/views/default/page/layouts/widgets/add_button.php @@ -4,7 +4,7 @@ */ ?> <div class="elgg-widget-add-control"> - <a class="elgg-button elgg-button-action elgg-toggler elgg-toggles-widgets-add-panel"> + <a class="elgg-button elgg-button-action elgg-toggler" href="#elgg-toggles-widgets-add-panel"> <?php echo elgg_echo('widgets:add'); ?> </a> </div> diff --git a/views/default/river/item/controls.php b/views/default/river/item/controls.php index 32653452b..96979f2c5 100644 --- a/views/default/river/item/controls.php +++ b/views/default/river/item/controls.php @@ -15,9 +15,9 @@ if (elgg_is_logged_in()) { if ($object->canComment()) { elgg_register_menu_item('river', array( 'name' => 'comment', - 'href' => '#', + 'href' => "#comments-add-$object->guid", 'text' => elgg_echo('generic_comments:text'), - 'class' => "elgg-toggler elgg-toggles-comments-add-{$object->getGUID()}", + 'class' => "elgg-toggler", )); } |