function text_blocks_shortcode($atts)
{
    $id = isset($atts['id']) ? $atts['id'] : false;
    $plain = isset($atts['plain']) ? 1 : 0;
    if ($id) {
        return show_text_block($id, $plain, $atts);
    } else {
        return false;
    }
}
示例#2
0
?>
		<form class="subscribe-form" id="subscribe" action="<?php 
echo get_option($shortname . '_mailchimp_action', '');
?>
" method="GET">
			<div class="titile">
				<?php 
if (function_exists('show_text_block')) {
    echo show_text_block('subscribe-title', true);
}
?>
			</div>
			<p>
				<?php 
if (function_exists('show_text_block')) {
    echo show_text_block('subscribe-text', true);
}
?>
			</p>
			<input type="hidden" name="u" value="<?php 
echo get_option($shortname . '_mailchimp_u', '');
?>
">
            <input type="hidden" name="id" value="<?php 
echo get_option($shortname . '_mailchimp_id', '');
?>
">
			<input type="email" placeholder="Email address" class="full-width" name="MERGE0" id="MERGE0" required />
			<button type="submit" class="button-primary full-width">Subscribe</button>
		</form>
	</aside>