EditMode block styling


/ Published in: PHP
Save to your folder(s)

For Concrete5, specific EditMode styling for a block.


Copy this code and paste it in your HTML
  1. <?php if ($c->isEditMode()) { ?>
  2. <div style="height: 335px; width: 165px; float: left;">
  3. <?php } ?>
  4.  
  5. <?php
  6. $a = new Area('Block Item 1');
  7. $a->display($c);
  8. ?>
  9.  
  10. <?php if ($c->isEditMode()) { ?>
  11. </div>
  12. <?php } ?>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.