Guest User

Untitled

a guest
Aug 2nd, 2019
181
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. $type = mb_get_block_field('type');
  3. if ($type == 'spoiler') {
  4.   $icon = 'plum-splat';
  5. } else {
  6.   $icon = 'plum-i';
  7. }
  8. ?>
  9.  
  10. <div class="notice p-4 mt-5 mb-4">
  11.   <h3 class="txt-h3 notice_headline mt-2"><?php mb_the_block_field('headline') ?></h3>
  12.   <div class="notice_content m-child-0">
  13.     <?php mb_the_block_field('content') ?>
  14.   </div>
  15.   <span class="svg-bg svg-bg--<?=$icon?> notice_icon"></span>
  16. </div>
RAW Paste Data