本文整理汇总了PHP中WPCF7_TagGenerator类的典型用法代码示例。如果您正苦于以下问题:PHP WPCF7_TagGenerator类的具体用法?PHP WPCF7_TagGenerator怎么用?PHP WPCF7_TagGenerator使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了WPCF7_TagGenerator类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: wpcf7_editor_panel_form
function wpcf7_editor_panel_form($post)
{
?>
<h2><?php
echo esc_html(__('Form', 'contact-form-7'));
?>
</h2>
<?php
$tag_generator = WPCF7_TagGenerator::get_instance();
$tag_generator->print_buttons();
?>
<textarea id="wpcf7-form" name="wpcf7-form" cols="100" rows="24" class="large-text code"><?php
echo esc_textarea($post->prop('form'));
?>
</textarea>
<?php
}
示例2: wpcf7_add_tag_generator_text
function wpcf7_add_tag_generator_text()
{
$tag_generator = WPCF7_TagGenerator::get_instance();
$tag_generator->add('text', __('text', 'contact-form-7'), 'wpcf7_tag_generator_text');
$tag_generator->add('email', __('email', 'contact-form-7'), 'wpcf7_tag_generator_text');
$tag_generator->add('url', __('URL', 'contact-form-7'), 'wpcf7_tag_generator_text');
$tag_generator->add('tel', __('tel', 'contact-form-7'), 'wpcf7_tag_generator_text');
}
示例3: tag_generator
public static function tag_generator()
{
if (!class_exists('WPCF7_TagGenerator')) {
return;
}
$tag_generator = WPCF7_TagGenerator::get_instance();
$tag_generator->add('datetime', __('datetime', 'contact-form-7'), array(__CLASS__, 'tg_pane'));
}
示例4: wpcf7_add_tag_generator
function wpcf7_add_tag_generator($name, $title, $elm_id, $callback, $options = array())
{
$tag_generator = WPCF7_TagGenerator::get_instance();
return $tag_generator->add($name, $title, $callback, $options);
}
示例5: wpcf7_add_tag_generator_number
function wpcf7_add_tag_generator_number()
{
$tag_generator = WPCF7_TagGenerator::get_instance();
$tag_generator->add('number', __('number', 'contact-form-7'), 'wpcf7_tag_generator_number');
}
示例6: wpcf7_add_tag_generator_textarea
function wpcf7_add_tag_generator_textarea()
{
$tag_generator = WPCF7_TagGenerator::get_instance();
$tag_generator->add('textarea', __('text area', 'contact-form-7'), 'wpcf7_tag_generator_textarea');
}
示例7: wpcf7dtx_add_tag_generator_dynamictext
function wpcf7dtx_add_tag_generator_dynamictext()
{
if (!class_exists('WPCF7_TagGenerator')) {
return;
}
$tag_generator = WPCF7_TagGenerator::get_instance();
$tag_generator->add('dynamictext', __('dynamic text', 'contact-form-7'), 'wpcf7dtx_tag_generator_dynamictext');
$tag_generator->add('dynamichidden', __('dynamic hidden', 'contact-form-7'), 'wpcf7dtx_tag_generator_dynamictext');
}
示例8: wpcf7_admin_save_button
?>
</div><!-- #contact-form-editor -->
<?php
if (current_user_can('wpcf7_edit_contact_form', $post_id)) {
?>
<p class="submit"><?php
wpcf7_admin_save_button($post_id);
?>
</p>
<?php
}
?>
</div><!-- #postbox-container-2 -->
</div><!-- #post-body -->
<br class="clear" />
</div><!-- #poststuff -->
</form>
<?php
}
?>
</div><!-- .wrap -->
<?php
$tag_generator = WPCF7_TagGenerator::get_instance();
$tag_generator->print_panels($post);
do_action('wpcf7_admin_footer', $post);
示例9: wpcf7_add_tag_generator_mailpoetsignup
function wpcf7_add_tag_generator_mailpoetsignup()
{
if (!class_exists('WPCF7_TagGenerator')) {
return;
}
$tag_generator = WPCF7_TagGenerator::get_instance();
$tag_generator->add('mailpoetsignup', __('Mailpoet Signup', 'mpcf7'), 'wpcf7_tg_pane_mailpoetsignup');
}
示例10: wpcf7_add_tag_generator_hidden
function wpcf7_add_tag_generator_hidden()
{
if (class_exists('WPCF7_TagGenerator')) {
$tag_generator = WPCF7_TagGenerator::get_instance();
$tag_generator->add('hidden', __('hidden', 'cf7_modules'), 'wpcf7_tg_pane_hidden');
}
}
示例11: wpcf7_add_tag_generator_menu
function wpcf7_add_tag_generator_menu()
{
$tag_generator = WPCF7_TagGenerator::get_instance();
$tag_generator->add('menu', __('drop-down menu', 'contact-form-7'), 'wpcf7_tag_generator_menu');
}
示例12: wpcf7_add_tag_generator_submit
function wpcf7_add_tag_generator_submit()
{
$tag_generator = WPCF7_TagGenerator::get_instance();
$tag_generator->add('submit', __('submit', 'contact-form-7'), 'wpcf7_tag_generator_submit', array('nameless' => 1));
}
示例13: wpcf7_add_orders_tag_generator_menu
function wpcf7_add_orders_tag_generator_menu()
{
$tag_generator = WPCF7_TagGenerator::get_instance();
$tag_generator->add('orders', __('WooCommerce Orders drop-down menu', 'contact-form-7'), 'wpcf7_tag_orders_generator_menu');
}
示例14: wpcf7_add_tag_generator_captchanum
function wpcf7_add_tag_generator_captchanum()
{
$tag_generator = WPCF7_TagGenerator::get_instance();
$tag_generator->add('captchanum', __('numeric captcha', CUSTOM_PLUGIN_TEXT_DOMAIN), 'wpcf7_tag_generator_captchanum');
}
示例15: wpcf7_add_tag_generator_honeypot
function wpcf7_add_tag_generator_honeypot()
{
if (class_exists('WPCF7_TagGenerator')) {
$tag_generator = WPCF7_TagGenerator::get_instance();
$tag_generator->add('honeypot', __('Honeypot', 'contact-form-7-honeypot'), 'wpcf7_tg_pane_honeypot');
} else {
if (function_exists('wpcf7_add_tag_generator')) {
wpcf7_add_tag_generator('honeypot', __('Honeypot', 'contact-form-7-honeypot'), 'wpcf7-tg-pane-honeypot', 'wpcf7_tg_pane_honeypot');
}
}
}