geminilabs

templates/form/field.php

Nov 3rd, 2021 (edited)
362
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.39 KB | None | 0 0
  1. <?php defined('ABSPATH') || die; ?>
  2.  
  3. <?php if ('rating_hebergements' === $context['field_name']) : ?>
  4.  
  5. <div style="border-top: 1px solid #000; margin: 10px 0; padding-top: 10px;">
  6.     <h4 style="margin: 0; padding: 0;">This is a new section!</h4>
  7. </div>
  8.  
  9. <?php endif; ?>
  10.  
  11. <div class="{{ class }}" data-field="{{ field_name }}">
  12.     {{ label }}
  13.     {{ field }}
  14.     {{ errors }}
  15. </div>
Add Comment
Please, Sign In to add comment