You are here

context-block-editable-region.tpl.php in Context 6

Same filename and directory in other branches
  1. 6.3 theme/context-block-editable-region.tpl.php

File

theme/context-block-editable-region.tpl.php
View source
<?php

if ($editable && (!empty($blocks) || $show_always)) {
  ?>
  <a class='context-block-region' id='context-block-region-<?php

  print $region;
  ?>'><?php

  print $region_description;
  ?></a>
  <?php

  foreach ($blocks as $block) {
    ?>
    <?php

    print theme('context_block_editable_block', $block);
    ?>
  <?php

  }
}
else {

  /* When themes check to see if there is any content is the region any
     whitespace will make the them think it's got content. Consequently
     we don't nest this following code. */
  foreach ($blocks as $block) {
    ?>
  <?php

    print theme('block', $block);
  }
}