当前位置: 首页>>代码示例>>PHP>>正文


PHP WPCF7_TagGenerator类代码示例

本文整理汇总了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 
}
开发者ID:nullality,项目名称:FEWD-SEA-7,代码行数:19,代码来源:editor.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');
}
开发者ID:flasomm,项目名称:Montkailash,代码行数:8,代码来源:text.php

示例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'));
 }
开发者ID:relu,项目名称:contact-form-7-datepicker,代码行数:8,代码来源:datetime.php

示例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);
}
开发者ID:abcode619,项目名称:wpstuff,代码行数:5,代码来源:admin-functions.php

示例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');
}
开发者ID:idies,项目名称:escience-2016-wp,代码行数:5,代码来源:number.php

示例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');
}
开发者ID:Lumbe,项目名称:dev_servus,代码行数:5,代码来源:textarea.php

示例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');
}
开发者ID:rvelezc,项目名称:loggia.com.co,代码行数:9,代码来源:contact-form-7-dynamic-text-extension.php

示例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);
开发者ID:aim-web-projects,项目名称:kobe-chuoh,代码行数:31,代码来源:edit-contact-form.php

示例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');
}
开发者ID:NicoGill,项目名称:APF,代码行数:8,代码来源:mailpoet-signup.php

示例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');
    }
}
开发者ID:jrald1291,项目名称:atu,代码行数:7,代码来源:hidden.php

示例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');
}
开发者ID:abcode619,项目名称:wpstuff,代码行数:5,代码来源:select.php

示例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));
}
开发者ID:flasomm,项目名称:Montkailash,代码行数:5,代码来源:submit.php

示例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');
}
开发者ID:alenb,项目名称:Contact-Form-7-WooCommerce,代码行数:5,代码来源:cf7-woocommerce-orders.php

示例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');
}
开发者ID:studio-montana,项目名称:custom,代码行数:5,代码来源:captchanum.php

示例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');
        }
    }
}
开发者ID:BennyHudson,项目名称:eaton,代码行数:11,代码来源:honeypot.php


注:本文中的WPCF7_TagGenerator类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。