diff options
author | ewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-21 20:25:58 +0000 |
---|---|---|
committer | ewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-21 20:25:58 +0000 |
commit | eb1f78b48658b9ffaac228652a390102ab886dea (patch) | |
tree | 985f28bd36fd4a0c64086cf6950d0f61272f175c /views/default/layout/objects | |
parent | 2160d5f11f95f81299ae44ece4819c144467d07f (diff) | |
download | elgg-eb1f78b48658b9ffaac228652a390102ab886dea.tar.gz elgg-eb1f78b48658b9ffaac228652a390102ab886dea.tar.bz2 |
Refs #2950: Moved widget code to object/widget/*
git-svn-id: http://code.elgg.org/elgg/trunk@8386 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/layout/objects')
-rw-r--r-- | views/default/layout/objects/widget/controls.php | 47 | ||||
-rw-r--r-- | views/default/layout/objects/widget/settings.php | 13 |
2 files changed, 0 insertions, 60 deletions
diff --git a/views/default/layout/objects/widget/controls.php b/views/default/layout/objects/widget/controls.php deleted file mode 100644 index 09f5fc947..000000000 --- a/views/default/layout/objects/widget/controls.php +++ /dev/null @@ -1,47 +0,0 @@ -<?php -/** - * Elgg widget controls - * - * @uses $vars['widget'] - * @uses $vars['show_edit'] Whether to show the edit button (true) - */ - -$widget = $vars['widget']; -$show_edit = elgg_extract('show_edit', $vars, true); - -$params = array( - 'text' => ' ', - 'href' => "#", - 'class' => 'elgg-widget-collapse-button', -); -$collapse_link = elgg_view('output/url', $params); - -$delete_link = $edit_link = ''; -if ($widget->canEdit()) { - $params = array( - 'text' => ' ', - 'title' => elgg_echo('widget:delete', array($widget->getTitle())), - 'href' => elgg_get_site_url() . "action/widgets/delete?guid=$widget->guid", - 'is_action' => true, - 'class' => 'elgg-widget-delete-button', - 'id' => "elgg-widget-delete-button-$widget->guid" - ); - $delete_link = elgg_view('output/url', $params); - - if ($show_edit) { - $params = array( - 'text' => ' ', - 'title' => elgg_echo('widget:edit'), - 'href' => "#", - 'class' => 'elgg-widget-edit-button elgg-toggle', - 'id' => "elgg-toggler-widget-$widget->guid" - ); - $edit_link = elgg_view('output/url', $params); - } -} - -echo <<<___END - $collapse_link - $delete_link - $edit_link -___END; diff --git a/views/default/layout/objects/widget/settings.php b/views/default/layout/objects/widget/settings.php deleted file mode 100644 index 05cc7b5ce..000000000 --- a/views/default/layout/objects/widget/settings.php +++ /dev/null @@ -1,13 +0,0 @@ -<?php -/** - * Elgg widget edit settings - * - * @uses $vars['widget'] - */ - -$widget = elgg_extract('widget', $vars); -?> - -<div class="elgg-widget-edit" id="elgg-togglee-widget-<?php echo $widget->guid; ?>"> - <?php echo elgg_view_form('widgets/save', array(), $vars); ?> -</div> |