| 1 |
<?php |
| 2 |
$slug=''; |
| 3 |
if(!empty($post)){ |
| 4 |
$slug = $post->post_name; |
| 5 |
} |
| 6 |
?> |
| 7 |
<label for="post_name"><?=__('Form key','cf7-grid-layout')?></label> |
| 8 |
<input name="post_name" size="13" id="post_name" value="<?php echo $slug?>" type="text" /> |
| 9 |
<p> |
| 10 |
<a href="<?= __cf7sg( 'https://contactform7.com/docs/' )?>"><?= __cf7sg( 'Docs' )?></a> |
| 11 |
<a href="<?= __cf7sg( 'https://contactform7.com/faq/' )?>"><?= __cf7sg( 'FAQ' )?></a> |
| 12 |
<a href="<?= __cf7sg( 'https://contactform7.com/support/' )?>"><?= __cf7sg( 'Support' )?></a> |
| 13 |
</p> |
| 14 |
<?php /** @since 4.3.0 preview link */ |
| 15 |
$preview_id = get_post_meta($post->ID, '_cf7sg_form_page',true); |
| 16 |
$preview = '<em>'.__('Update your form to preview','cf7-grid-layout').'</em>'; |
| 17 |
if( !empty($preview_id) ){ |
| 18 |
/*translators: link to preview page with form*/ |
| 19 |
$preview = sprintf(__('Preview <a href="%s">form</a>','cf7-grid-layout'), get_preview_post_link($preview_id)); |
| 20 |
} |
| 21 |
?> |
| 22 |
<p id="preview-form-link"> |
| 23 |
<strong><?= $preview?></strong> |
| 24 |
</p> |
| 25 |
<?php |
| 26 |
$dropdowns = get_option('_cf7sg_dynamic_dropdown_taxonomy',array()); |
| 27 |
$show_dropdown = array(); |
| 28 |
if( isset($dropdowns[$post->ID]) ): |
| 29 |
$show_dropdown = $dropdowns[$post->ID]; |
| 30 |
?> |
| 31 |
<strong> <?=__('Manage dynamic lists','cf7-grid-layout')?></strong> |
| 32 |
<ul> |
| 33 |
<?php foreach($show_dropdown as $slug=>$taxonomy): ?> |
| 34 |
<li> |
| 35 |
<?php echo $taxonomy['plural']?> (<a target="_blank" href="<?php echo admin_url('edit-tags.php?taxonomy='.$slug.'&post_type=wpcf7_contact_form')?>"><?= __( 'Edit', 'cf7-smart-grid' );?></a>) |
| 36 |
</li> |
| 37 |
<?php endforeach;?> |
| 38 |
</ul> |
| 39 |
<?php endif;?> |
| 40 |
<div class="clear"></div> |
| 41 |
|