本文整理汇总了PHP中WPCF7_TagGenerator::get_instance方法的典型用法代码示例。如果您正苦于以下问题:PHP WPCF7_TagGenerator::get_instance方法的具体用法?PHP WPCF7_TagGenerator::get_instance怎么用?PHP WPCF7_TagGenerator::get_instance使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类WPCF7_TagGenerator
的用法示例。
在下文中一共展示了WPCF7_TagGenerator::get_instance方法的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: 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'));
}
示例3: 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');
}
示例4: 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');
}
示例5: 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');
}
示例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: wpcf7_add_tag_generator_confirm_email
function wpcf7_add_tag_generator_confirm_email()
{
$tag_generator = WPCF7_TagGenerator::get_instance();
$tag_generator->add('confirm_email', __('confirm_email', 'contact-form-7'), 'wpcf7_tag_generator_confirm_email');
}
开发者ID:jakerockland,项目名称:contact-form-7-confirm-email-feild,代码行数:5,代码来源:contact-form-7-confirm-email.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);
示例9: 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');
}
示例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_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));
}
示例12: 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');
}
示例13: 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');
}
示例14: 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');
}
示例15: wpcf7dtx_add_tag_generator_dynamictext
function wpcf7dtx_add_tag_generator_dynamictext()
{
$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');
}