aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-23 02:14:49 +0000
committerewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-23 02:14:49 +0000
commit02a1bdd5ee3fe1ea4eb93fc8c6b9f3a4478e3215 (patch)
tree83bebc004342b8e72c894c2177b5d4a8d93e6e36
parent766b704f832b3c46b31781e73238f14771b5197e (diff)
downloadelgg-02a1bdd5ee3fe1ea4eb93fc8c6b9f3a4478e3215.tar.gz
elgg-02a1bdd5ee3fe1ea4eb93fc8c6b9f3a4478e3215.tar.bz2
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
-rwxr-xr-xmod/profile/views/default/profile/owner_block.php4
-rw-r--r--mod/reportedcontent/views/default/object/reported_content.php5
-rw-r--r--views/default/core/river/controls.php3
-rw-r--r--views/default/core/river/footer.php2
-rw-r--r--views/default/object/widget/elements/controls.php3
-rw-r--r--views/default/object/widget/elements/settings.php2
-rw-r--r--views/default/page/layouts/widgets/add_button.php2
-rw-r--r--views/default/page/layouts/widgets/add_panel.php2
8 files changed, 10 insertions, 13 deletions
diff --git a/mod/profile/views/default/profile/owner_block.php b/mod/profile/views/default/profile/owner_block.php
index 0172a2e1d..81ba8a7bf 100755
--- a/mod/profile/views/default/profile/owner_block.php
+++ b/mod/profile/views/default/profile/owner_block.php
@@ -37,8 +37,8 @@ if (elgg_is_logged_in() && $actions) {
$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));
}
diff --git a/mod/reportedcontent/views/default/object/reported_content.php b/mod/reportedcontent/views/default/object/reported_content.php
index e755fae5b..16f9c8773 100644
--- a/mod/reportedcontent/views/default/object/reported_content.php
+++ b/mod/reportedcontent/views/default/object/reported_content.php
@@ -57,12 +57,11 @@ if ($report->state == 'archived') {
<?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(
diff --git a/views/default/core/river/controls.php b/views/default/core/river/controls.php
index 21ce8414c..9c3305635 100644
--- a/views/default/core/river/controls.php
+++ b/views/default/core/river/controls.php
@@ -16,8 +16,7 @@ if (elgg_is_logged_in()) {
$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);
}
diff --git a/views/default/core/river/footer.php b/views/default/core/river/footer.php
index d4d01e57c..7cf9dd925 100644
--- a/views/default/core/river/footer.php
+++ b/views/default/core/river/footer.php
@@ -48,5 +48,5 @@ if ($comments) {
// 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));
diff --git a/views/default/object/widget/elements/controls.php b/views/default/object/widget/elements/controls.php
index 09f5fc947..39eba471a 100644
--- a/views/default/object/widget/elements/controls.php
+++ b/views/default/object/widget/elements/controls.php
@@ -33,8 +33,7 @@ if ($widget->canEdit()) {
'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);
}
diff --git a/views/default/object/widget/elements/settings.php b/views/default/object/widget/elements/settings.php
index 05cc7b5ce..5afe56ed8 100644
--- a/views/default/object/widget/elements/settings.php
+++ b/views/default/object/widget/elements/settings.php
@@ -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>
diff --git a/views/default/page/layouts/widgets/add_button.php b/views/default/page/layouts/widgets/add_button.php
index 0304c50a0..23c0b99ee 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-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>
diff --git a/views/default/page/layouts/widgets/add_panel.php b/views/default/page/layouts/widgets/add_panel.php
index 38c133c4a..2786e83b2 100644
--- a/views/default/page/layouts/widgets/add_panel.php
+++ b/views/default/page/layouts/widgets/add_panel.php
@@ -21,7 +21,7 @@ foreach ($widgets as $column_widgets) {
}
?>
-<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>