| 1 |
<?php |
| 2 |
//pointer for editor tabs |
| 3 |
global $post; |
| 4 |
$is_form = get_post_meta($post->ID, '_cf7sg_managed_form', true); |
| 5 |
if(empty($is_form) || !$is_form){ //check if new form debug_msg($post); |
| 6 |
$is_form = false; |
| 7 |
if('auto-draft'==$post->post_status) $is_form=true; |
| 8 |
} |
| 9 |
if($is_form): |
| 10 |
?> |
| 11 |
<h3 class="cf7sg-pointer"><?=__('Switch Editors', 'cf7-grid-layout')?></h3> |
| 12 |
<p><?=__('CF7 Smart Grid extension replaces the Contact Form 7 textarea editor with a <b>UI Grid editor</b> and a colour markup text editor, use this tab to switch between the two.<br /> <b>NOTE</b> that previous forms designed using the CF7 plugin editor will be editable in the text editor only.<br /><b>Clear this form</b> by switching to the text mode, selecting everything and deleting the code. Switch back to the grid editor to start with a blank form.','cf7-grid-layout')?></p> |
| 13 |
<?php else:?> |
| 14 |
<h3 class="cf7sg-pointer"><?=__('Switch Editors', 'cf7-grid-layout')?></h3> |
| 15 |
<p><?=__("<b>Grid editor disabled!</b> This form's HTML markup is not compatible. The Smart Grid encodes forms with a HTML markup that allows rich responsive layouts. Create a new form to experience the grid editor.",'cf7-grid-layout')?></p> |
| 16 |
<?php endif; ?> |
| 17 |
|