add_button.php 729 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. /**
  3. * Button area for showing the add widgets panel
  4. */
  5. ?>
  6. <div class="elgg-widget-add-control">
  7. <?php
  8. echo elgg_view('output/url', array(
  9. 'href' => '#',
  10. 'text' => elgg_echo('widgets:add'),
  11. 'class' => 'elgg-button elgg-button-action',
  12. 'rel' => 'toggle',
  13. 'is_trusted' => true,
  14. 'data-toggle-selector' => '#widgets-add-panel, .elgg-widget-add-control > a',
  15. 'data-toggle-slide' => 0,
  16. ));
  17. echo elgg_view('output/url', array(
  18. 'href' => '#',
  19. 'text' => elgg_echo('widgets:panel:close'),
  20. 'class' => 'elgg-button elgg-button-action hidden',
  21. 'rel' => 'toggle',
  22. 'is_trusted' => true,
  23. 'data-toggle-selector' => '#widgets-add-panel, .elgg-widget-add-control > a',
  24. 'data-toggle-slide' => 0,
  25. ));
  26. ?>
  27. </div>