| | |
| | | exit; // Exit if accessed directly |
| | | } |
| | | /** |
| | | * TODO: this is old, I think. |
| | | * Form Manager Class |
| | | * Mainly used for front-end forms. |
| | | * Handles form rendering and processing using MetaManager |
| | |
| | | $this->turnstile_site_key = JVB_CLOUDFLARE_SITE_KEY; |
| | | $this->turnstile_secret_key = JVB_CLOUDFLARE_SECRET_KEY; |
| | | $this->meta = new MetaManager(null, 'form'); |
| | | $this->cache = new CacheManager('forms', WEEK_IN_SECONDS); |
| | | $this->cache = CacheManager::for('forms', WEEK_IN_SECONDS); |
| | | } |
| | | |
| | | /** |
| | |
| | | <form id="<?= $id ?>" class="jvb-form" action="<?=esc_url(admin_url('admin-post.php'))?>" method="post"> |
| | | <?php |
| | | wp_nonce_field('jvb_form_' . $id); |
| | | echo jvbFormStatus(); |
| | | } |
| | | |
| | | |