public function newsletter_signup_form($atts, $content)
 {
     if (!isset($_REQUEST['unsubscribe'])) {
         extract(shortcode_atts(array('id' => 0, 'tabindex' => 100), $atts));
         return mymail_form($id, $tabindex, false);
     }
 }
"><input type="checkbox" value="1" class="embed-form-input" checked> <?php 
    _e('include themes style.css', 'mymail');
    ?>
</label>
					<textarea class="widefat code embed-form-output" data-embedcode="<?php 
    echo esc_attr($embedcode);
    ?>
"></textarea></p>
					<p><?php 
    _e('HTML version', 'mymail');
    ?>
 <span class="description"><?php 
    _e('save before you use it!', 'mymail');
    ?>
</span><textarea class="widefat code form-output"><?php 
    echo mymail_form($form['id'], 100, true, 'extern');
    ?>
</textarea></p>
				</td></tr>
				</table>
			</div></td>
		</tr>
		
		<?php 
}
?>
		<tr valign="top">
			<th scope="row">&nbsp;</th>
			<td><input type="button" value="<?php 
_e('add form', 'mymail');
?>
Пример #3
0
function cspv4_show_form_mymail_shortcode($output)
{
    $seed_cspv4 = get_option('seed_cspv4');
    if (class_exists('mymail')) {
        if (!empty($seed_cspv4['mymail_form_id'])) {
            $output = mymail_form($seed_cspv4['mymail_form_id'], 100, false);
        } else {
            $output = mymail_form(0, 100, false);
        }
    }
    return $output;
}
Пример #4
0
?>
	<link rel='stylesheet' href='<?php 
echo admin_url('admin-ajax.php?action=mymail_form_css&' . mymail_option('form_css_hash'));
?>
' type='text/css' media='all' />
	

<?php 
do_action('wp_mymail_head');
?>

</head>
<body>
<div id="formwrap">
<?php 
mymail_form(isset($_GET['id']) ? intval($_GET['id']) : 0, 1, true, 'embeded');
do_action('wp_mymail_footer');
if (mymail_option('ajax_form')) {
    ?>
	<script type="text/javascript" src="<?php 
    echo get_site_url() . '/' . WPINC . '/js/jquery/jquery.js?ver=' . MYMAIL_VERSION;
    ?>
"></script>
	<script type="text/javascript" src="<?php 
    echo MYMAIL_URI . '/assets/js/form.js?ver=' . MYMAIL_VERSION;
    ?>
"></script>
	
<?php 
}
?>