PageRenderTime 91ms CodeModel.GetById 47ms RepoModel.GetById 1ms app.codeStats 0ms

/drupal/profile/neurohub_commons/modules/contrib/homebox/homebox-block.tpl.php

https://bitbucket.org/drn05r/neurohub-dev-davidn
PHP | 33 lines | 26 code | 1 blank | 6 comment | 8 complexity | c28ea5bbf6ec9c49c7d986b8fc93e427 MD5 | raw file
Possible License(s): GPL-2.0, AGPL-1.0, BSD-3-Clause, LGPL-2.1, MPL-2.0-no-copyleft-exception
  1. <?php
  2. // $Id: homebox-block.tpl.php,v 1.1.4.9 2010/07/02 19:38:19 mikestefff Exp $
  3. /**
  4. * @file
  5. * homebox-block.tpl.php
  6. * Default theme implementation each homebox block.
  7. */
  8. ?>
  9. <div id="homebox-block-<?php print $block->module .'-'. $block->delta; ?>" class="<?php print $block->homebox_classes ?> clear-block block block-<?php print $block->module ?>">
  10. <div class="homebox-portlet-inner">
  11. <h3 class="portlet-header"><span class="portlet-title"><?php print $block->subject ?></span></h3>
  12. <div class="portlet-config">
  13. <?php if ($page->settings['color']): ?>
  14. <div class="homebox-colors">
  15. <span class="homebox-color-message"><?php print t('Select a color') . ':'; ?></span>
  16. <?php for ($i=0; $i < HOMEBOX_NUMBER_OF_COLOURS; $i++): ?>
  17. <span class="homebox-color-selector" style="background-color: <?php print $page->settings['colors'][$i] ?>;">&nbsp;</span>
  18. <?php endfor ?>
  19. </div>
  20. <?php endif; ?>
  21. <?php if ($block->module == 'homebox'): ?>
  22. <button id="delete-<?php print $block->module . '_' . $block->delta; ?>" class="homebox-delete-custom-link"><?php print t('Delete'); ?></button>
  23. <button id="edit-<?php print $block->module . '_' . $block->delta; ?>" class="homebox-edit-custom-link"><?php print t('Edit'); ?></button>
  24. <?php endif; ?>
  25. <?php if ($page->settings['color'] || $block->module == 'views' && !is_null($filters)): ?>
  26. <div class="clear-block"></div>
  27. <?php endif ?>
  28. </div>
  29. <div class="portlet-content content"><?php print $block->content; ?></div>
  30. <?php print $block->hidden; ?>
  31. </div>
  32. </div>