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


PHP wpcf_add_admin_header函数代码示例

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


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

示例1: error

 private function error($error_id, $message = false)
 {
     $content = wpcf_add_admin_header(__('Tutorial error', 'wpcf'));
     $content .= '<div class="error settings-error"><p><strong>';
     switch ($error_id) {
         case 'no id':
         case 'wrong id':
             $content .= __('Wrong tutorial id.', 'wpcf');
             break;
         case 'empty url':
         case 'wrong response status':
         case 'http request failed':
             $content .= __('There is a problem with tutorial url.', 'wpcf');
             break;
         case 'empty body':
             $content .= __('Selected tutorial is empty.', 'wpcf');
             if (current_user_can('manage_options')) {
             }
             break;
         default:
             if ($message) {
                 $content .= $message;
             } else {
                 $content .= __('Some error occured.', 'wpcf');
             }
     }
     $content .= '</strong></p></div>';
     return $content;
 }
开发者ID:Kilbourne,项目名称:restart,代码行数:29,代码来源:class.wpcf-marketing-tutorial.php

示例2: 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

示例3: 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

示例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>' . __('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

示例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 '<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

示例6: 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

示例7: 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

示例8: 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

示例9: wpcf_usermeta_summary

/**
 * Usermeta groups listing
 *
 * @author Gen gen.i@icanlocalize.com
 * @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

示例10: 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

示例11: 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

示例12: 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

示例13: wpcf_add_admin_header

<?php

/*
 * Introduction page.
 */
echo wpcf_add_admin_header(__('Help', 'wpcf'));
?>
<h3><?php 
_e('Start using Types', 'wpcf');
?>
</h3>
<p><a class="button-primary" href="<?php 
echo admin_url('admin.php?page=wpcf-edit-type');
?>
"><?php 
_e('New custom post types and taxonomy', 'wpcf');
?>
</a> &nbsp; <a class="button-primary" href="<?php 
echo admin_url('admin.php?page=wpcf-edit');
?>
"><?php 
_e('New custom fields', 'wpcf');
?>
</a></p>

<h3 style="margin-top:3em;"><?php 
_e('Documentation and Support', 'wpcf');
?>
</h3>
<ul>
    <li><?php 
开发者ID:par-orillonsoft,项目名称:Wishmagnet,代码行数:31,代码来源:introduction.php

示例14: wpcf_admin_menu_settings

/**
 * Menu page display.
 */
function wpcf_admin_menu_settings()
{
    $show_toolset_messages = !WPCF_Types_Marketing_Messages::check_register();
    ob_start();
    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>
        <?php 
    if ($show_toolset_messages) {
        ?>
<li><a href="#toolset-messages"><?php 
        _e('Toolset Messages', 'wpcf');
        ?>
</a></li><?php 
    }
    ?>
        <li><a href="#debug"><?php 
    _e('Debug Information', '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>
    <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>
//.........这里部分代码省略.........
开发者ID:chrismathers,项目名称:premierplacement,代码行数:101,代码来源:admin.php

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