Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Refs #2976: Converted most markup to use elgg-toggler elgg-toggles-* …

…pattern

git-svn-id: http://code.elgg.org/elgg/trunk@8443 36083f99-b078-4883-b0ff-0f9b5a30f544
  • Loading branch information...
commit 02a1bdd5ee3fe1ea4eb93fc8c6b9f3a4478e3215 1 parent 766b704
Evan Winslow ewinslow authored
4 mod/profile/views/default/profile/owner_block.php
View
@@ -37,8 +37,8 @@
$admin_links = '';
if (elgg_is_admin_logged_in() && elgg_get_logged_in_user_guid() != elgg_get_page_owner_guid()) {
$admin_links = '<ul class="profile-admin-menu-wrapper">';
- $admin_links .= '<li><a class="elgg-toggle" id="elgg-toggler-admin-menu">Admin options&hellip;</a>';
- $admin_links .= '<ul class="profile-admin-menu" id="elgg-togglee-admin-menu">';
+ $admin_links .= '<li><a class="elgg-toggler elgg-toggles-admin-menu">Admin options&hellip;</a>';
+ $admin_links .= '<ul class="profile-admin-menu" id="admin-menu">';
foreach ($admin as $menu_item) {
$admin_links .= elgg_view('navigation/menu/elements/item', array('item' => $menu_item));
}
5 mod/reportedcontent/views/default/object/reported_content.php
View
@@ -57,12 +57,11 @@
<?php echo elgg_view('output/url', array(
'href' => '#',
'text' => elgg_echo('reportedcontent:moreinfo'),
- 'class' => "elgg-toggle",
- 'id' => "elgg-toggler-report-$report->guid",
+ 'class' => "elgg-toggler elgg-toggles-report-$report->guid",
));
?>
</p>
- <div class="hidden" id="elgg-togglee-report-<?php echo $report->getGUID();?>">
+ <div class="hidden" id="report-<?php echo $report->getGUID();?>">
<p>
<b><?php echo elgg_echo('reportedcontent:objecturl'); ?>:</b>
<?php echo elgg_view('output/url', array(
3  views/default/core/river/controls.php
View
@@ -16,8 +16,7 @@
$params = array(
'href' => '#',
'text' => elgg_echo('generic_comments:text'),
- 'class' => 'elgg-toggle',
- 'id' => "elgg-toggler-{$object->getGUID()}",
+ 'class' => "elgg-toggler elgg-toggles-comments-add-{$object->getGUID()}",
);
echo elgg_view('output/url', $params);
}
2  views/default/core/river/footer.php
View
@@ -48,5 +48,5 @@
// inline comment form
echo elgg_view_form('comments/add', array(
- 'id' => "elgg-togglee-{$object->getGUID()}",
+ 'id' => "comments-add-{$object->getGUID()}",
), array('entity' => $object, 'inline' => true));
3  views/default/object/widget/elements/controls.php
View
@@ -33,8 +33,7 @@
'text' => ' ',
'title' => elgg_echo('widget:edit'),
'href' => "#",
- 'class' => 'elgg-widget-edit-button elgg-toggle',
- 'id' => "elgg-toggler-widget-$widget->guid"
+ 'class' => "elgg-widget-edit-button elgg-toggler elgg-toggles-widget-edit-$widget->guid",
);
$edit_link = elgg_view('output/url', $params);
}
2  views/default/object/widget/elements/settings.php
View
@@ -8,6 +8,6 @@
$widget = elgg_extract('widget', $vars);
?>
-<div class="elgg-widget-edit" id="elgg-togglee-widget-<?php echo $widget->guid; ?>">
+<div class="elgg-widget-edit" id="widget-edit-<?php echo $widget->guid; ?>">
<?php echo elgg_view_form('widgets/save', array(), $vars); ?>
</div>
2  views/default/page/layouts/widgets/add_button.php
View
@@ -4,7 +4,7 @@
*/
?>
<div class="elgg-widget-add-control">
- <a class="elgg-button-action elgg-toggle" id="elgg-toggler-add-widgets">
+ <a class="elgg-button-action elgg-toggler elgg-toggles-widgets-add-panel">
<?php echo elgg_echo('widgets:add'); ?>
</a>
</div>
2  views/default/page/layouts/widgets/add_panel.php
View
@@ -21,7 +21,7 @@
}
?>
-<div class="elgg-widgets-add-panel hidden clearfix" id="elgg-togglee-add-widgets">
+<div class="elgg-widgets-add-panel hidden clearfix" id="widgets-add-panel">
<p>
<?php echo elgg_echo('widgets:add:description'); ?>
</p>
Please sign in to comment.
Something went wrong with that request. Please try again.