<?php
/**
* Plugin installation and activation for WordPress themes.
*
* Please note that this is a drop-in library for a theme or plugin.
* The authors of this library (Thomas, Gary and Juliette) are NOT responsible
* for the support of your plugin or theme. Please contact the plugin
* or theme author for support.
*
* @package TGM-Plugin-Activation
* @version 2.6.1
* @link http://tgmpluginactivation.com/
* @author Thomas Griffin, Gary Jones, Juliette Reinders Folmer
* @copyright Copyright (c) 2011, Thomas Griffin
* @license GPL-2.0+
*/
defined( 'ABSPATH' ) || exit;
/*
Copyright 2011 Thomas Griffin (thomasgriffinmedia.com)
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License, version 2, as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
if ( ! class_exists( 'TGM_Plugin_Activation' ) ) {
/**
* Automatic plugin installation and activation library.
*
* Creates a way to automatically install and activate plugins from within themes.
* The plugins can be either bundled, downloaded from the WordPress
* Plugin Repository or downloaded from another external source.
*
* @since 1.0.0
*
* @package TGM-Plugin-Activation
* @author Thomas Griffin
* @author Gary Jones
*/
class TGM_Plugin_Activation {
/**
* TGMPA version number.
*
* @since 2.5.0
*
* @const string Version number.
*/
const TGMPA_VERSION = '2.6.1';
/**
* Regular expression to test if a URL is a WP plugin repo URL.
*
* @const string Regex.
*
* @since 2.5.0
*/
const WP_REPO_REGEX = '|^http[s]?://wordpress\.org/(?:extend/)?plugins/|';
/**
* Arbitrary regular expression to test if a string starts with a URL.
*
* @const string Regex.
*
* @since 2.5.0
*/
const IS_URL_REGEX = '|^http[s]?://|';
/**
* Holds a copy of itself, so it can be referenced by the class name.
*
* @since 1.0.0
*
* @var TGM_Plugin_Activation
*/
public static $instance;
/**
* Holds arrays of plugin details.
*
* @since 1.0.0
* @since 2.5.0 the array has the plugin slug as an associative key.
*
* @var array
*/
public $plugins = array();
/**
* Holds arrays of plugin names to use to sort the plugins array.
*
* @since 2.5.0
*
* @var array
*/
protected $sort_order = array();
/**
* Whether any plugins have the 'force_activation' setting set to true.
*
* @since 2.5.0
*
* @var bool
*/
protected $has_forced_activation = false;
/**
* Whether any plugins have the 'force_deactivation' setting set to true.
*
* @since 2.5.0
*
* @var bool
*/
protected $has_forced_deactivation = false;
/**
* Name of the unique ID to hash notices.
*
* @since 2.4.0
*
* @var string
*/
public $id = 'tgmpa';
/**
* Name of the query-string argument for the admin page.
*
* @since 1.0.0
*
* @var string
*/
protected $menu = 'tgmpa-install-plugins';
/**
* Parent menu file slug.
*
* @since 2.5.0
*
* @var string
*/
public $parent_slug = 'themes.php';
/**
* Capability needed to view the plugin installation menu item.
*
* @since 2.5.0
*
* @var string
*/
public $capability = 'edit_theme_options';
/**
* Default absolute path to folder containing bundled plugin zip files.
*
* @since 2.0.0
*
* @var string Absolute path prefix to zip file location for bundled plugins. Default is empty string.
*/
public $default_path = '';
/**
* Flag to show admin notices or not.
*
* @since 2.1.0
*
* @var boolean
*/
public $has_notices = true;
/**
* Flag to determine if the user can dismiss the notice nag.
*
* @since 2.4.0
*
* @var boolean
*/
public $dismissable = true;
/**
* Message to be output above nag notice if dismissable is false.
*
* @since 2.4.0
*
* @var string
*/
public $dismiss_msg = '';
/**
* Flag to set automatic activation of plugins. Off by default.
*
* @since 2.2.0
*
* @var boolean
*/
public $is_automatic = false;
/**
* Optional message to display before the plugins table.
*
* @since 2.2.0
*
* @var string Message filtered by wp_kses_post(). Default is empty string.
*/
public $message = '';
/**
* Holds configurable array of strings.
*
* Default values are added in the constructor.
*
* @since 2.0.0
*
* @var array
*/
public $strings = array();
/**
* Holds the version of WordPress.
*
* @since 2.4.0
*
* @var int
*/
public $wp_version;
/**
* Holds the hook name for the admin page.
*
* @since 2.5.0
*
* @var string
*/
public $page_hook;
/**
* Adds a reference of this object to $instance, populates default strings,
* does the tgmpa_init action hook, and hooks in the interactions to init.
*
* {@internal This method should be `protected`, but as too many TGMPA implementations
* haven't upgraded beyond v2.3.6 yet, this gives backward compatibility issues.
* Reverted back to public for the time being.}}
*
* @since 1.0.0
*
* @see TGM_Plugin_Activation::init()
*/
public function __construct() {
// Set the current WordPress version.
$this->wp_version = $GLOBALS['wp_version'];
// Announce that the class is ready, and pass the object (for advanced use).
do_action_ref_array( 'tgmpa_init', array( $this ) );
/*
* Load our text domain and allow for overloading the fall-back file.
*
* {@internal IMPORTANT! If this code changes, review the regex in the custom TGMPA
* generator on the website.}}
*/
add_action( 'init', array( $this, 'load_textdomain' ), 5 );
add_filter( 'load_textdomain_mofile', array( $this, 'overload_textdomain_mofile' ), 10, 2 );
// When the rest of WP has loaded, kick-start the rest of the class.
add_action( 'init', array( $this, 'init' ) );
}
/**
* Magic method to (not) set protected properties from outside of this class.
*
* {@internal hackedihack... There is a serious bug in v2.3.2 - 2.3.6 where the `menu` property
* is being assigned rather than tested in a conditional, effectively rendering it useless.
没有合适的资源?快使用搜索试试~ 我知道了~
Justnews主题源码6.0.1开心版+社交问答插件2.3.1+附教程.zip
共441个文件
php:249个
js:80个
css:25个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 193 浏览量
2024-04-11
08:42:38
上传
评论
收藏 2.12MB ZIP 举报
温馨提示
JustNews是一款专为博客、自媒体、资讯类的网站设计开发的WordPress主题 JustNews主题支持自主研发的前端用户中心,不仅支持注册、登录、账户设置、 个人中心等常用页面的添加,还可以上传头像、设置用户分组等,JustNews主题专为博客、 自媒体、资讯类的网站设计开发,自适应兼容手机、平板设备,支持前端用户中心 可以前端发布/投稿文章,同时主题支持专题功能,可以添加文章专题。
资源推荐
资源详情
资源评论
收起资源包目录
Justnews主题源码6.0.1开心版+社交问答插件2.3.1+附教程.zip (441个子文件)
style.css 363KB
panel.css 146KB
tinymce-style.css 117KB
shortcodes.css 116KB
editor-style.css 109KB
woocommerce.css 80KB
blocks.css 44KB
skin.min.css 37KB
skin.ie7.min.css 34KB
font-awesome.css 31KB
style.css 14KB
visual-editor.css 12KB
wp-content.css 8KB
dialog.css 8KB
customizer.css 8KB
woocommerce-smallscreen.css 7KB
main.css 6KB
wpcom.css 5KB
cropper.min.css 4KB
content.min.css 3KB
content.inline.min.css 3KB
panel.css 2KB
material-icons.css 928B
style.editor.css 728B
style.css 146B
tag_remove.cur 6KB
tinymce.eot 17KB
tinymce-small.eot 9KB
loader.gif 3KB
loading.gif 2KB
loading.gif 2KB
loading.gif 2KB
loading-dots.gif 1KB
object.gif 152B
anchor.gif 53B
trans.gif 43B
新地址www.qymao.cn.html 6KB
企业猫源码网.html 6KB
404.html 5KB
404.html 5KB
index.html 141B
index.html 141B
index.html 141B
index.html 123B
index.html 123B
index.html 123B
index.html 123B
index.html 123B
index.html 123B
index.html 123B
index.html 123B
index.html 123B
index.html 0B
banner.jpg 200KB
panel.js 827KB
tinymce.min.js 396KB
main.js 237KB
froala_editor.min.js 183KB
shortcodes.js 63KB
customizer.js 55KB
plugin.js 52KB
plugin.js 36KB
cropper.min.js 36KB
plugin.js 35KB
theme.js 33KB
plugin.js 30KB
plugin.js 28KB
blocks.js 25KB
login.js 24KB
scripts.js 22KB
plugin.js 18KB
plugin.min.js 17KB
vue-select.js 16KB
plugin.js 16KB
plugin.min.js 16KB
wp-langs-en.js 15KB
tiny_mce_popup.js 15KB
plugin.min.js 15KB
plugin.min.js 15KB
plugin.min.js 14KB
theme.min.js 13KB
scripts.min.js 13KB
visual-editor.js 12KB
plugin.js 11KB
main.js 10KB
jquery.taghandler.min.js 9KB
plugin.min.js 9KB
plugin.js 9KB
plugin.min.js 8KB
plugin.js 8KB
plugin.min.js 8KB
plugin.js 7KB
plugin.js 6KB
validate.js 6KB
form_utils.js 6KB
plugin.js 6KB
jquery.jqzoom.js 5KB
plugin.min.js 4KB
plugin.min.js 4KB
mctabs.js 4KB
共 441 条
- 1
- 2
- 3
- 4
- 5
资源评论
智慧浩海
- 粉丝: 1w+
- 资源: 5141
下载权益
C知道特权
VIP文章
课程特权
开通VIP
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功