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

PHP TGMPA_List_Table类代码示例

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

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



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

示例1: install_plugins_page

        /**
         * Echoes plugin installation form.
         *
         * This method is the callback for the admin_menu method function.
         * This displays the admin page and form area where the user can select to install and activate the plugin.
         * Aborts early if we're processing a plugin installation action.
         *
         * @since 1.0.0
         *
         * @return null Aborts early if we're processing a plugin installation action.
         */
        public function install_plugins_page()
        {
            // Store new instance of plugin table in object.
            $plugin_table = new TGMPA_List_Table();
            // Return early if processing a plugin installation action.
            if (('tgmpa-bulk-install' === $plugin_table->current_action() || 'tgmpa-bulk-update' === $plugin_table->current_action()) && $plugin_table->process_bulk_actions() || $this->do_plugin_install()) {
                return;
            }
            // Force refresh of available plugin information so we'll know about manual updates/deletes.
            wp_clean_plugins_cache(false);
            ?>
            <div class="tgmpa wrap">
                <h2><?php 
            echo esc_html(get_admin_page_title());
            ?>
</h2>
                <?php 
            $plugin_table->prepare_items();
            ?>

                <?php 
            if (!empty($this->message) && is_string($this->message)) {
                echo wp_kses_post($this->message);
            }
            ?>
                <?php 
            $plugin_table->views();
            ?>

                <form id="tgmpa-plugins" action="" method="post">
                    <input type="hidden" name="tgmpa-page" value="<?php 
            echo esc_attr($this->menu);
            ?>
" />
                    <input type="hidden" name="plugin_status" value="<?php 
            echo esc_attr($plugin_table->view_context);
            ?>
" />
                    <?php 
            $plugin_table->display();
            ?>
                </form>
            </div>
            <?php 
        }
开发者ID:GvarimAZA,项目名称:website,代码行数:56,代码来源:class-tgm-plugin-activation.php


示例2: install_plugins_page

        /**
         * Echoes plugin installation form.
         *
         * This method is the callback for the admin_menu method function.
         * This displays the admin page and form area where the user can select to install and activate the plugin.
         *
         * @since 1.0.0
         *
         * @return null Aborts early if we're processing a plugin installation action
         */
        public function install_plugins_page()
        {
            /** Store new instance of plugin table in object */
            $plugin_table = new TGMPA_List_Table();
            /** Return early if processing a plugin installation action */
            if (isset($_POST[sanitize_key('action')]) && 'tgmpa-bulk-install' == $_POST[sanitize_key('action')] && $plugin_table->process_bulk_actions() || $this->do_plugin_install()) {
                return;
            }
            ?>
			<div class="tgmpa wrap">

				<?php 
            screen_icon(apply_filters('tgmpa_default_screen_icon', 'themes'));
            ?>
				<h2><?php 
            echo esc_html(get_admin_page_title());
            ?>
</h2>
				<?php 
            $plugin_table->prepare_items();
            ?>

				<?php 
            if (isset($this->message)) {
                _e(wp_kses_post($this->message), $this->domain);
            }
            ?>

				<form id="tgmpa-plugins" action="" method="post">
            		<input type="hidden" name="tgmpa-page" value="<?php 
            echo $this->menu;
            ?>
" />
            		<?php 
            $plugin_table->display();
            ?>
        		</form>

			</div>
			<?php 
        }
开发者ID:terngkub,项目名称:wordpress-theme-okfn,代码行数:51,代码来源:class-tgm-plugin-activation.php


示例3: install_plugins_page

        /**
         * Echoes plugin installation form.
         *
         * This method is the callback for the admin_menu method function.
         * This displays the admin page and form area where the user can select to install and activate the plugin.
         *
         * @since 1.0.0
         *
         * @return null Aborts early if we're processing a plugin installation action
         */
        public function install_plugins_page()
        {
            // Store new instance of plugin table in object.
            $plugin_table = new TGMPA_List_Table();
            // Return early if processing a plugin installation action.
            if (isset($_POST['action']) && 'tgmpa-bulk-install' === $_POST['action'] && $plugin_table->process_bulk_actions() || $this->do_plugin_install()) {
                return;
            }
            ?>
            <div class="tgmpa wrap">
                <h2><?php 
            echo esc_html(get_admin_page_title());
            ?>
</h2>
                <?php 
            $plugin_table->prepare_items();
            ?>

                <?php 
            if (isset($this->message)) {
                echo wp_kses_post($this->message);
            }
            ?>

                <form id="tgmpa-plugins" action="" method="post">
                    <input type="hidden" name="tgmpa-page" value="<?php 
            echo esc_attr($this->menu);
            ?>
" />
                    <?php 
            $plugin_table->display();
            ?>
                </form>

            </div>
        <?php 
        }
开发者ID:luxifel,项目名称:Bionerd,代码行数:47,代码来源:td-old-class-tgm-plugin-activation.php


示例4: install_plugins_page

        /**
         * Echoes plugin installation form.
         *
         * This method is the callback for the admin_menu method function.
         * This displays the admin page and form area where the user can select to install and activate the plugin.
         *
         * @since 1.0.0
         *
         * @return null Aborts early if we're processing a plugin installation action
         */
        public function install_plugins_page()
        {
            /** Store new instance of plugin table in object */
            $plugin_table = new TGMPA_List_Table();
            /** Return early if processing a plugin installation action */
            if (isset($_POST[sanitize_key('action')]) && 'tgmpa-bulk-install' == $_POST[sanitize_key('action')] && $plugin_table->process_bulk_actions() || $this->do_plugin_install()) {
                return;
            }
            ?>
			<div class="tgmpa wrap">

				<?php 
            // screen_icon( apply_filters( 'tgmpa_default_screen_icon', 'themes' ) );
            ?>
				<h2><?php 
            echo esc_html(get_admin_page_title());
            ?>
</h2>
				<?php 
            $plugin_table->prepare_items();
            ?>

				<?php 
            if (isset($this->message)) {
                _e(wp_kses_post($this->message), $this->domain);
            }
            ?>

				<div class="update-nag">
                    <?php 
            $msg = 'Some Pre-Packaged plugins <strong>must be moved</strong> from ' . $this->_marketplace . ' package to theme/plugins directory, inside the theme folder, <strong>before install</strong> plugins from this page.';
            ?>
					<?php 
            _e($msg, 'yit');
            ?>
				</div>

				<form id="tgmpa-plugins" action="" method="post">
            		<input type="hidden" name="tgmpa-page" value="<?php 
            echo $this->menu;
            ?>
" />
            		<?php 
            $plugin_table->display();
            ?>
        		</form>

			</div>
			<?php 
        }
开发者ID:NgocSon2412,项目名称:website_banhang,代码行数:60,代码来源:class-tgm-plugin-activation.php


示例5: install_plugins_page

        /**
         * Echoes plugin installation form.
         *
         * This method is the callback for the admin_menu method function.
         * This displays the admin page and form area where the user can select to install and activate the plugin.
         *
         * @since 1.0.0
         *
         * @return null Aborts early if we're processing a plugin installation action
         */
        public function install_plugins_page()
        {
            // Store new instance of plugin table in object.
            $plugin_table = new TGMPA_List_Table();
            // Return early if processing a plugin installation action.
            if (isset($_POST['action']) && ('tgmpa-bulk-install' == $_POST['action'] || 'tgmpa-bulk-update' == $_POST['action']) && $plugin_table->process_bulk_actions() || $this->do_plugin_install()) {
                return;
            }
            ?>
            <div class="tgmpa wrap">

                <?php 
            if (version_compare($this->wp_version, '3.8', '<')) {
                screen_icon(apply_filters('tgmpa_default_screen_icon', 'themes'));
            }
            ?>
                <h2><?php 
            echo esc_html(get_admin_page_title());
            ?>
</h2>
                <?php 
            $plugin_table->prepare_items();
            ?>

                <?php 
            if (isset($this->message)) {
                echo wp_kses_post($this->message);
            }
            ?>

                <form id="tgmpa-plugins" action="" method="post">
                    <input type="hidden" name="tgmpa-page" value="<?php 
            echo $this->menu;
            ?>
" />
                    <?php 
            $plugin_table->display();
            ?>
                </form>

            </div>
        <?php 
        }
开发者ID:rovak73,项目名称:sinfronterasdoc,代码行数:53,代码来源:class-tgm-plugin-activation.php


示例6: install_plugins_page

		/**
		 * Echoes plugin installation form.
		 *
		 * This method is the callback for the admin_menu method function.
		 * This displays the admin page and form area where the user can select to install and activate the plugin.
		 *
		 * @since 1.0.0
		 *
		 * @return null Aborts early if we're processing a plugin installation action
		 */
		public function install_plugins_page() {

			// Store new instance of plugin table in object.
			$plugin_table = new TGMPA_List_Table;

			// Return early if processing a plugin installation action.
			if ( isset( $_POST['action'] ) && 'tgmpa-bulk-install' == $_POST['action'] && $plugin_table->process_bulk_actions() || $this->do_plugin_install() ) {
				return;
			}

			?>
			<div class="tgmpa wrap">
				<h2><?php echo esc_html( get_admin_page_title() ); ?></h2>
				<?php $plugin_table->prepare_items(); ?>

				<?php
				if ( isset( $this->message ) ) {
					echo wp_kses_post( $this->message );
				}
				?>

                <div class="update-nag">
                    <?php $msg = 'Some Pre-Packaged plugins <strong>must be moved</strong> from ' . $this->_marketplace .  ' package to theme/plugins directory, inside the theme folder, <strong>before install</strong> plugins from this page.'; ?>
                    <?php _e( $msg, 'yit' ) ?>
                </div>

                <form id="tgmpa-plugins" action="" method="post">
					<input type="hidden" name="tgmpa-page" value="<?php echo esc_attr( $this->menu ); ?>" />
					<?php $plugin_table->display(); ?>
				</form>

			</div>
			<?php

		}
开发者ID:simonsays88,项目名称:costa,代码行数:45,代码来源:class-tgm-plugin-activation.php


示例7: install_plugins_page

        /**
         * Echoes plugin installation form.
         *
         * This method is the callback for the admin_menu method function.
         * This displays the admin page and form area where the user can select to install and activate the plugin.
         *
         * @since 1.0.0
         *
         * @return null Aborts early if we're processing a plugin installation action
         */
        public function install_plugins_page()
        {
            global $plugin_installer_admin;
            $action_save = false;
            if (isset($_POST)) {
                $plugin_options_saved = $plugin_installer_admin->plugin_installer_options;
                if (isset($_POST[sanitize_key('plugin_options')]) && isset($_POST[sanitize_key('action_save')])) {
                    foreach ($_POST[sanitize_key('action_save')] as $key => $value) {
                        if ($value == 'save') {
                            $action_save = true;
                        }
                    }
                    if ($action_save) {
                        $plugin_installer_admin->plugin_installer_options['plugin_options'] = array_replace_recursive($plugin_options_saved['plugin_options'], $_POST[sanitize_key('plugin_options')]);
                        $plugin_installer_admin->update_options();
                        echo "<script>location.href = '" . admin_url('admin.php?page=plugin-installer') . "';</script>";
                    }
                }
            }
            /** Store new instance of plugin table in object */
            $plugin_table = new TGMPA_List_Table();
            /** Return early if processing a plugin installation action */
            //			if ( isset( $_POST[sanitize_key( 'action' )] ) && 'tgmpa-bulk-install' == $_POST[sanitize_key( 'action' )] && $plugin_table->process_bulk_actions() || $this->do_plugin_install() )
            if (isset($_POST[sanitize_key('action')]) && 'tgmpa-bulk-install' == $_POST[sanitize_key('action')] && $plugin_table->process_bulk_actions()) {
                return;
            }
            ?>
			<div class="tgmpa wrap">

				<?php 
            //screen_icon( apply_filters( 'tgmpa_default_screen_icon', 'themes' ) );
            ?>
				<h2><?php 
            //echo esc_html( get_admin_page_title() );
            ?>
</h2>
				<?php 
            $plugin_table->prepare_items();
            ?>
				<?php 
            if (isset($this->message)) {
                _e(wp_kses_post($this->message), $this->domain);
            }
            ?>

				<form id="tgmpa-plugins" action="" method="post">
            		<input type="hidden" name="tgmpa-page" value="<?php 
            echo $this->menu;
            ?>
" />
            		<?php 
            $plugin_table->display();
            ?>
        		</form>

			</div>
			<?php 
        }
开发者ID:ArnaudGuillou,项目名称:SiteESBVolley,代码行数:68,代码来源:class-tgm-plugin-activation.php


示例8: __construct

 /**
  * References parent constructor and sets defaults for class.
  *
  * @since 2.2.0
  */
 public function __construct()
 {
     $this->tgmpa = call_user_func(array(get_class($GLOBALS['tgmpa']), 'get_instance'));
     self::$mode = isset($_GET['mode']) ? sanitize_title($_GET['mode']) : false;
     add_filter('plugin_table_items', array($this, 'sort_table_items'));
     parent::__construct(array('singular' => 'plugin', 'ajax' => FALSE));
 }
开发者ID:Inteleck,项目名称:hwc,代码行数:12,代码来源:class-tgm-plugin-activation-enhanced.php



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
PHP TGMPA_Utils类代码示例发布时间:2022-05-23
下一篇:
PHP TEntry类代码示例发布时间: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