diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-11-17 22:08:39 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-11-17 22:08:39 +0000 |
commit | b128ec82c4bd149beb6f4436b030e288ae75fb1d (patch) | |
tree | 7d63a7b8e473073c95bff122f006f28983e1ee21 /views/default/widgets | |
parent | fc7f4e880ddfed812438fabc791c5f5056f541e6 (diff) | |
download | elgg-b128ec82c4bd149beb6f4436b030e288ae75fb1d.tar.gz elgg-b128ec82c4bd149beb6f4436b030e288ae75fb1d.tar.bz2 |
Refs #1793 - added a basic add new widgets view - it is not wired up yet
git-svn-id: http://code.elgg.org/elgg/trunk@7333 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/widgets')
-rw-r--r-- | views/default/widgets/add.php | 20 | ||||
-rw-r--r-- | views/default/widgets/add_button.php | 13 |
2 files changed, 33 insertions, 0 deletions
diff --git a/views/default/widgets/add.php b/views/default/widgets/add.php new file mode 100644 index 000000000..2cc06dab7 --- /dev/null +++ b/views/default/widgets/add.php @@ -0,0 +1,20 @@ +<?php + +$widgets = $vars['widgets']; +$widget_types = get_widget_types(); + +?> +<div class="widgets_add hidden"> + <p> + <?php echo elgg_echo('widgets:add:description'); ?> + </p> + <ul> + <?php + foreach ($widget_types as $widget_type) { + $link = elgg_view('output/url', array('text' => $widget_type->name, 'href' => '#')); + echo "<li>$link</li>"; + } + ?> + </ul> + <div class="clearfloat"></div> +</div> diff --git a/views/default/widgets/add_button.php b/views/default/widgets/add_button.php new file mode 100644 index 000000000..8ec36b086 --- /dev/null +++ b/views/default/widgets/add_button.php @@ -0,0 +1,13 @@ +<?php + +?> +<div class="widget" id="widget_add_button"> +<?php +$options = array( + 'href' => '#', + 'text' => elgg_echo('widgets:add'), + 'class' => 'action_button', +); +echo elgg_view('output/url', $options); +?> +</div> |