• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP wpcf_add_admin_footer函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中wpcf_add_admin_footer函数的典型用法代码示例。如果您正苦于以下问题:PHP wpcf_add_admin_footer函数的具体用法?PHP wpcf_add_admin_footer怎么用?PHP wpcf_add_admin_footer使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了wpcf_add_admin_footer函数的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: page_handler

    public function page_handler()
    {
        do_action('wpcf_admin_page_init');
        wpcf_admin_page_add_options('uf', __('User Fields', 'wpcf'));
        //$this->add_screen_options();
        // Without this, the Activate/Deactivate link doesn't work properly (why?)
        wpcf_admin_load_collapsible();
        wpcf_admin_page_add_options('tf', __('Term Fields', 'wpcf'));
        wpcf_add_admin_header(__('Term Field Groups', 'wpcf'), array('page' => WPCF_Page_Edit_Termmeta::PAGE_NAME));
        require_once WPCF_INC_ABSPATH . '/fields.php';
        // require_once WPCF_INC_ABSPATH . '/fields-list.php';
        $list_table = new WPCF_Page_Listing_Termmeta_Table();
        $list_table->prepare_items();
        if (!$list_table->has_items()) {
            add_action('wpcf_groups_list_table_after', 'wpcf_admin_promotional_text');
        }
        ?>
		<form id="cf-filter" method="post">
			<!-- For plugins, we also need to ensure that the form posts back to our current page -->
			<input type="hidden" name="page" value="<?php 
        echo self::PAGE_NAME;
        ?>
"/>

			<?php 
        $list_table->search_box(__('Search Term Field Groups', 'wpcf'), 'search_id');
        $list_table->display();
        wp_nonce_field(self::BULK_ACTION_NONCE);
        ?>
		</form>
		<?php 
        do_action('wpcf_groups_list_table_after');
        $this->show_term_field_control_box();
        wpcf_add_admin_footer();
    }
开发者ID:axeljohansson1988,项目名称:oddcv,代码行数:35,代码来源:termmeta.php


示例2: wpcf_access_admin_menu_page

/**
 * Menu page render hook. 
 */
function wpcf_access_admin_menu_page()
{
    echo wpcf_add_admin_header(__('Access', 'wpcf'), 'icon-wpcf-access');
    require_once WPCF_ACCESS_INC . '/admin-edit-access.php';
    wpcf_access_admin_edit_access();
    echo wpcf_add_admin_footer();
}
开发者ID:adisonc,项目名称:MaineLearning,代码行数:10,代码来源:menu.php


示例3: wpcf_access_teaser_admin_menu_page

/**
 * Teaser admin screen. 
 */
function wpcf_access_teaser_admin_menu_page()
{
    echo wpcf_add_admin_header(__('Access', 'wpcf'), 'icon-wpcf-access');
    echo '<p>' . __('To enjoy access management for your site, you need to have the Access plugin.', 'wpcf') . '<br /><br /><a href="http://wp-types.com/home/types-access/?utm_source=typesplugin&utm_medium=accessadmin&utm_term=Meet&utm_campaign=typesplugin" class="button-primary" target="_blank">' . __('Meet Access') . '</a>&nbsp;<a href="http://wp-types.com/buy/?utm_source=typesplugin&utm_medium=accessadmin&utm_term=Pricing&utm_campaign=typesplugin" class="button-primary" target="_blank">' . __('Pricing') . '</a>' . '<br /><br /></p>';
    require_once WPCF_ACCESS_INC . '/admin-edit-access.php';
    wpcf_access_admin_edit_access(false);
    echo wpcf_add_admin_footer();
}
开发者ID:adisonc,项目名称:MaineLearning,代码行数:11,代码来源:types-access.php


示例4: wpcf_access_teaser_admin_menu_page

/**
 * Teaser admin screen. 
 */
function wpcf_access_teaser_admin_menu_page()
{
    echo wpcf_add_admin_header(__('Access', 'wpcf'), 'icon-wpcf-access');
    echo '<p>' . __('Access management is part of the <strong>Types Plus</strong> package.', 'wpcf') . '<br />' . __('It lets you quickly set access rules for different user types and grant access to specific users.', 'wpcf') . '<br /><br /><a href="http://www.wp-types.com" class="button-primary" target="_blank">' . __('Buy Types Plus') . '</a>' . '<br /><br /></p>';
    require_once WPCF_ACCESS_INC . '/admin-edit-access.php';
    wpcf_access_admin_edit_access(false);
    echo wpcf_add_admin_footer();
}
开发者ID:par-orillonsoft,项目名称:Wishmagnet,代码行数:11,代码来源:types-access.php


示例5: wpcf_access_teaser_admin_menu_page

/**
 * Teaser admin screen. 
 */
function wpcf_access_teaser_admin_menu_page()
{
    echo wpcf_add_admin_header(__('Access', 'wpcf'), 'icon-wpcf-access');
    echo '<div class="types-help"><div class="types-help-content"';
    echo '<p>' . sprintf(__('This screen shows a preview of %sAccess%s - the access control and roles management addon for Types.', 'wpcf'), '<strong><a href="http://wp-types.com/home/types-access/?utm_source=typesplugin&utm_medium=accessadmin&utm_term=Access&utm_campaign=typesplugin" target="_blank">', '</a></strong>') . '</p>' . '<p>' . __('Access lets you control what content types different users can read, edit and publish on your site and create custom roles.', 'wpcf') . '</p>' . '<p>' . sprintf(__('%sBuy Access%s to unlock this screen and add access control management to your site.', 'wpcf'), '<strong><a href="http://wp-types.com/buy/?add-to-cart=38997&buy_now=1&utm_source=typesplugin&utm_medium=accessadmin&utm_term=Buy&utm_campaign=typesplugin" target="_blank">', '</a></strong>') . '</p>' . '<p><a href="http://wp-types.com/home/types-access/?utm_source=typesplugin&utm_medium=accessadmin&utm_term=AccessFeatures&utm_campaign=typesplugin" class="button-primary" target="_blank">' . __('Access Features') . '</a>&nbsp;<a href="http://wp-types.com/buy/?add-to-cart=38997&buy_now=1&utm_source=typesplugin&utm_medium=accessadmin&utm_term=Buy&utm_campaign=typesplugin" class="button-primary" target="_blank">' . __('Buy Access - $39 (USD)') . '</a>' . '</p>';
    echo '</div></div>';
    require_once WPCF_ACCESS_INC . '/admin-edit-access.php';
    wpcf_access_admin_edit_access(false);
    echo wpcf_add_admin_footer();
}
开发者ID:CrankMaster336,项目名称:FFW-TR,代码行数:13,代码来源:types-access.php


示例6: page_handler

    /**
     * Render the page.
     *
     * @return void
     */
    public function page_handler()
    {
        do_action('wpcf_admin_page_init');
        wpcf_admin_load_collapsible();
        //$this->add_screen_options();
        wpcf_add_admin_header($this->get_title(), array('page' => self::PAGE_NAME));
        $list_table = new WPCF_Page_Control_Termmeta_Table();
        $list_table->prepare_items();
        if (!$list_table->has_items()) {
            add_action('wpcf_groups_list_table_after', 'wpcf_admin_promotional_text');
        }
        ?>

		<!-- form id used in custom-fields-control-form.js -->
		<form id="wpcf-custom-fields-control-form" method="post">

			<!-- For plugins, we also need to ensure that the form posts back to our current page -->
			<input type="hidden" name="page" value="<?php 
        echo self::PAGE_NAME;
        ?>
"/>

			<!-- Pass the information about the kind of fields and groups to JS -->
			<input type="hidden" id="wpcf_admin_field_type" value="wpcf-termmeta" />

			<!-- This will be used by some of the bulk action dialogs to pass back some information -->
			<input type="hidden" name='wpcf-id' id='wpcf_admin_custom_fields_control_type' value='' />

			<?php 
        $list_table->search_box(__('Search term fields', 'wpcf'), 'search_id');
        $list_table->display();
        wp_nonce_field(self::BULK_ACTION_NONCE);
        ?>
		</form>
		<?php 
        wpcf_add_admin_footer();
    }
开发者ID:lytranuit,项目名称:wordpress,代码行数:42,代码来源:termmeta.php


示例7: wpcf_admin_menu_settings

/**
 * Menu page display.
 */
function wpcf_admin_menu_settings()
{
    echo wpcf_add_admin_header(__('Settings', 'wpcf'));
    echo '<br /><form method="post" action="" id="wpcf-settings-form" class="wpcf-settings-form ' . 'wpcf-form-validate">';
    $form = wpcf_form('wpcf_form_settings');
    echo $form->renderForm();
    echo '</form>';
    echo wpcf_add_admin_footer();
}
开发者ID:par-orillonsoft,项目名称:Wishmagnet,代码行数:12,代码来源:admin.php


示例8: wpcf_usermeta_summary

/**
 * Usermeta groups listing
 *
 * @author Gen [email protected]
 * @since Types 1.3
 */
function wpcf_usermeta_summary()
{
    wpcf_add_admin_header(__('User Field Groups', 'wpcf'), array('page' => 'wpcf-edit-usermeta'), __('Add New', 'wpcf'));
    require_once WPCF_INC_ABSPATH . '/fields.php';
    require_once WPCF_INC_ABSPATH . '/usermeta.php';
    require_once WPCF_INC_ABSPATH . '/usermeta-list.php';
    $to_display = wpcf_admin_fields_get_fields();
    if (!empty($to_display)) {
        add_action('wpcf_groups_list_table_after', 'wpcf_admin_promotional_text');
    }
    wpcf_admin_usermeta_list();
    wpcf_add_admin_footer();
}
开发者ID:uwmadisoncals,项目名称:Cluster-Plugins,代码行数:19,代码来源:usermeta-init.php


示例9: wpcf_admin_menu_migration

/**
 * Menu page display.
 */
function wpcf_admin_menu_migration()
{
    echo wpcf_add_admin_header(__('Migration', 'wpcf'));
    echo '<br /><form method="post" action="" id="wpcf-migration-form" class="wpcf-migration-form ' . 'wpcf-form-validate" enctype="multipart/form-data">';
    $form = wpcf_form('wpcf_form_migration');
    echo $form->renderForm();
    echo '</form>';
    echo wpcf_add_admin_footer();
}
开发者ID:nuevomediagroup,项目名称:nmg-code,代码行数:12,代码来源:admin.php


示例10: wpcf_admin_menu_user_fields_control

/**
 * Menu page display.
 */
function wpcf_admin_menu_user_fields_control()
{
    global $wpcf_control_table;
    wpcf_add_admin_header(__('User Field Control', 'wpcf'));
    echo '<form method="post" action="" id="wpcf-custom-fields-control-form" class="wpcf-custom-fields-control-form ' . 'wpcf-form-validate" enctype="multipart/form-data">';
    echo wpcf_admin_custom_fields_control_form($wpcf_control_table);
    wp_nonce_field('user_fields_control_bulk');
    echo '</form>';
    wpcf_add_admin_footer();
}
开发者ID:torch2424,项目名称:Team-No-Comply-Games-Wordpress,代码行数:13,代码来源:admin.php


示例11: wpcf_admin_menu_settings

/**
 * Menu page display.
 */
function wpcf_admin_menu_settings()
{
    ob_start();
    echo wpcf_add_admin_header(__('Settings', 'wpcf'));
    ?>
    <p style="font-weight: bold;"><?php 
    _e('This screen contains the Types settings for your site.', 'wpcf');
    ?>
</p>
    <ul class="horlist">
        <li><a href="#types-image-settings"><?php 
    _e('Image Settings', 'wpcf');
    ?>
</a></li>
        <li><a href="#types-general-settings"><?php 
    _e('General Setings', 'wpcf');
    ?>
</a></li>
    </ul>
    <br style='clear:both'/><br /><br />
    <a id="types-image-settings"></a>
    <table class="widefat" id="types_image_settings_table">
        <thead>
            <tr>
                <th><?php 
    _e('Image Settings', 'wpcf');
    ?>
</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td>
                    <?php 
    echo '<br /><form method="post" action="" id="wpcf-image-settings-form" class="wpcf-settings-form ' . 'wpcf-form-validate">';
    $form = wpcf_form('wpcf_form_image_settings');
    echo $form->renderForm();
    echo '</form>';
    ?>
                </td>
            </tr>
        </tbody>
    </table>
    <br /><br />
    <a id="types-general-settings"></a>
    <table class="widefat" id="types_general_settings_table">
        <thead>
            <tr>
                <th><?php 
    _e('General Settings', 'wpcf');
    ?>
</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td>
                    <?php 
    echo '<br /><form method="post" action="" id="wpcf-general-settings-form" class="wpcf-settings-form ' . 'wpcf-form-validate">';
    $form = wpcf_form('wpcf_form_general_settings');
    echo $form->renderForm();
    echo '</form>';
    ?>
                </td>
            </tr>
        </tbody>
    </table>
    <?php 
    echo wpcf_add_admin_footer();
    echo ob_get_clean();
}
开发者ID:MiquelAdell,项目名称:miqueladell,代码行数:74,代码来源:admin.php


示例12: printf

printf(__('%sTypes fields API%s (for developers) - Learn how to insert Types fields to PHP templates', 'wpcf'), '<a target="_blank" href="http://wp-types.com/documentation/functions/?utm_source=typesplugin&utm_medium=intro&utm_campaign=types"><strong>', ' &raquo;</strong></a>');
?>
</li>
    <li><?php 
printf(__('%sSupport forum%s - register in our forum to receive support', 'wpcf'), '<a target="_blank" href="http://wp-types.com/support/register/?utm_source=typesplugin&utm_medium=intro&utm_campaign=types"><strong>', ' &raquo;</strong></a>');
?>
</li>
</ul>

<h3 style="margin-top:3em;"><?php 
_e('Want to help Types?', 'wpcf');
?>
</h3>
<ul>
    <li><?php 
printf(__('%sRate Types on WordPress.org%s', 'wpcf'), '<a target="_blank" href="http://wordpress.org/extend/plugins/types/"><strong>', ' &raquo;</strong></a>');
?>
</li>
    <li><?php 
printf(__('%sTypes press resources%s  - write about Types', 'wpcf'), '<a target="_blank" href="http://wp-types.com/home/press-resources/?utm_source=typesplugin&utm_medium=intro&utm_campaign=types"><strong>', ' &raquo;</strong></a>');
?>
</li>
	<li><?php 
printf(__('%sViews%s - the commercial complement of Types, which makes content display a breeze.', 'wpcf'), '<a target="_blank" href="http://wp-types.com/home/views-create-elegant-displays-for-your-content/?utm_source=typesplugin&utm_medium=intro&utm_campaign=types"><strong>', ' &raquo;</strong></a>');
?>
</li>
</ul>

<?php 
echo wpcf_add_admin_footer();
开发者ID:par-orillonsoft,项目名称:Wishmagnet,代码行数:30,代码来源:introduction.php


示例13: wpcf_admin_menu_settings


//.........这里部分代码省略.........
            </tr>
        </thead>
        <tbody>
            <tr>
                <td>
                    <?php 
    echo '<br /><form method="post" action="" id="wpcf-image-settings-form" class="wpcf-settings-form ' . 'wpcf-form-validate">';
    $form = wpcf_form('wpcf_form_image_settings');
    echo $form->renderForm();
    echo '</form>';
    ?>
                </td>
            </tr>
        </tbody>
    </table>
    <br /><br />
    <a id="types-general-settings"></a>
    <table class="widefat" id="types_general_settings_table">
        <thead>
            <tr>
                <th><?php 
    _e('General Settings', 'wpcf');
    ?>
</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td>
                    <?php 
    echo '<br /><form method="post" action="" id="wpcf-general-settings-form" class="wpcf-settings-form ' . 'wpcf-form-validate">';
    $form = wpcf_form('wpcf_form_general_settings');
    echo $form->renderForm();
    echo '</form>';
    ?>
                </td>
            </tr>
        </tbody>
    </table>
    <br /><br />
<?php 
    /**
     * Toolset Messages
     */
    if ($show_toolset_messages) {
        ?>
    <a id="toolset-messages"></a>
    <table class="widefat" id="toolset_messages">
        <thead>
            <tr>
                <th><?php 
        _e('Toolset Messages', 'wpcf');
        ?>
</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td>
                    <?php 
        echo '<br /><form method="post" action="" id="wpcf-toolset-messages-form" class="wpcf-settings-form ' . 'wpcf-form-validate">';
        $form = wpcf_form('wpcf_form_toolset_messages');
        echo $form->renderForm();
        echo '</form>';
        ?>
                </td>
            </tr>
        </tbody>
    </table>
    <br /><br />
<?php 
    }
    /**
     * Debug Information
     */
    ?>
    <a id="debug"></a>
    <table class="widefat" id="debug_table">
        <thead>
            <tr>
                <th><?php 
    _e('Debug Information', 'wpcf');
    ?>
</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td>
<?php 
    printf(__('For retrieving debug information if asked by a support person, use the <a href="%s">debug information</a> page.', 'wpcf'), admin_url('admin.php?page=wpcf-debug-information'));
    ?>
                </td>
            </tr>
        </tbody>
    </table>
    <?php 
    wpcf_add_admin_footer();
    echo ob_get_clean();
}
开发者ID:chrismathers,项目名称:premierplacement,代码行数:101,代码来源:admin.php


示例14: wpcf_admin_menu_settings

/**
 * Menu page display.
 */
function wpcf_admin_menu_settings()
{
    ob_start();
    wpcf_add_admin_header(__('Settings', 'wpcf'));
    ?>
<form method="post" action="" id="wpcf-general-settings-form" class="wpcf-settings-form wpcf-form-validate">
                    <?php 
    $form = wpcf_form('wpcf_form_general_settings');
    echo $form->renderForm();
    ?>
    </form>
    <table class="widefat" id="types-tools">
        <thead>
            <tr>
                <th><?php 
    _e('Types tools', 'wpcf');
    ?>
</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td>
<?php 
    $pages = array('wpcf-custom-fields-control' => array('page' => 'wpcf-custom-fields-control', 'name' => __('Custom Fields Control', 'wpcf'), 'description' => __('Allow to control custom fields.', 'wpcf')), 'wpcf-user-fields-control' => array('page' => 'wpcf-user-fields-control', 'name' => __('User Fields Control', 'wpcf'), 'description' => __('Allow to control user meta fields.', 'wpcf')), 'wpcf-import-export' => array('page' => 'wpcf-import-export', 'name' => __('Import/Export', 'wpcf'), 'description' => __('For import or export data from Types.', 'wpcf')), 'wpcf-access' => array('page' => 'wpcf-access', 'name' => __('Access', 'wpcf'), 'description' => __('Access lets you control what content types different users can read, edit and publish on your site and create custom roles.', 'wpcf')), 'installer' => array('page' => 'installer', 'name' => __('Installer', 'wpcf'), 'description' => __('This page lets you install plugins and update existing plugins.', 'wpcf')), 'wpcf-debug-information' => array('page' => 'wpcf-debug-information', 'name' => __('Debug Information', 'wpcf'), 'description' => __('For retrieving debug information if asked by a support person.', 'wpcf')));
    /**
     * remove Access page if is a full version of Access
     * installer and running
     */
    if (defined('WPCF_ACCESS_VERSION')) {
        unset($pages['wpcf-access']);
    }
    echo '<ul>';
    foreach ($pages as $data) {
        echo '<li>';
        printf('<strong><a href="%s">%s</a></strong>', esc_url(admin_url(sprintf('admin.php?page=%s', $data['page']))), $data['name']);
        if (isset($data['description']) && !empty($data['description'])) {
            echo ' - ';
            echo $data['description'];
        }
        echo '<li>';
    }
    echo '</ul>';
    ?>
                </td>
            </tr>
        </tbody>
    </table>
    <?php 
    wpcf_add_admin_footer();
    echo ob_get_clean();
}
开发者ID:zoran180,项目名称:wp_szf,代码行数:55,代码来源:admin.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP wpcf_add_admin_header函数代码示例发布时间:2022-05-23
下一篇:
PHP wpcf7_upload_dir函数代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap