當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。