<?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 for parent theme for publication on ThemeForest
* @link http://tgmpluginactivation.com/
* @author Thomas Griffin, Gary Jones, Juliette Reinders Folmer
* @copyright Copyright (c) 2011, Thomas Griffin
* @license GPL-2.0+
*/
/*
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' ) );
}
/**
* M
没有合适的资源?快使用搜索试试~ 我知道了~
【WordPress主题】2022年最新版完整功能demo+插件v1.5 Untouched.zip
共780个文件
php:482个
css:66个
js:61个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 66 浏览量
2022-04-01
10:36:43
上传
评论
收藏 19.18MB ZIP 举报
温馨提示
"【WordPress主题】2022年最新版完整功能demo+插件v1.5 Untouched Onea - Elegant Fashion Shop 羊膜 - 优雅时装店" ---------- 泰森云每天更新发布最新WordPress主题、HTML主题、WordPress插件、shopify主题、opencart主题、PHP项目源码、安卓项目源码、ios项目源码,更有超10000个资源可供选择,如有需要请站内联系。
资源推荐
资源详情
资源评论
收起资源包目录
【WordPress主题】2022年最新版完整功能demo+插件v1.5 Untouched.zip (780个子文件)
modules.css 835KB
modules.min.css 619KB
woocommerce.css 328KB
woocommerce.min.css 278KB
eltdf-bootstrap.css 252KB
header-map.css 124KB
style.css 80KB
modules-responsive.css 73KB
blog-map.css 64KB
ionicons.css 57KB
ionicons.min.css 50KB
fontawesome-all.css 46KB
modules-responsive.min.css 43KB
font-awesome.css 40KB
woocommerce-responsive.css 38KB
search-map.css 36KB
fontawesome-all.min.css 35KB
jquery-ui.css 31KB
font-awesome.min.css 30KB
style.css 26KB
woocommerce-responsive.min.css 25KB
style.min.css 21KB
sidearea-map.css 17KB
select2.min.css 15KB
eltdf-options.css 14KB
eltdf-ui.css 14KB
simple-line-icons.css 13KB
dripicons.css 12KB
eltdf-forms.css 11KB
eltdf-dashboard.css 10KB
header-map-responsive.css 9KB
dripicons.min.css 9KB
style.css 9KB
popup-map.css 8KB
title-map.css 7KB
footer-map.css 4KB
search-map-responsive.css 3KB
title-map-responsive.css 3KB
welcome.css 3KB
popup-map-responsive.css 3KB
social-icon-widget-map.css 2KB
welcome.min.css 2KB
search-post-type-widget-map.css 2KB
skewed-section-map.css 2KB
social-icons-group-widget-map.css 2KB
blog-map-responsive.css 2KB
icon-widget-map.css 2KB
footer-map-responsive.css 2KB
editor-style.css 2KB
eltdf-meta-boxes.css 2KB
skewed-section-responsive-map.css 1KB
content-bottom-map.css 1KB
author-info-widget-map.css 1KB
eltdf-sidebar.css 1024B
eltdf-import.css 997B
image-gallery-widget-map.css 894B
sticky-sidebar-widget-map.css 667B
style.css 620B
custom-font-widget-map.css 566B
separator-widget-map.css 510B
style.css 245B
eltdf-nav-menu.css 243B
style_dynamic_responsive.css 240B
eltdf-taxonomy.css 102B
eltdf-page.css 73B
style_dynamic.css 60B
ionicons.eot 118KB
fa-solid-900.eot 104KB
fa-brands-400.eot 96KB
fontawesome-webfont.eot 71KB
Simple-Line-Icons.eot 61KB
ElegantIcons.eot 58KB
Linearicons-Free.eot 55KB
dripicons-v2.eot 45KB
fa-regular-400.eot 30KB
linea-basic-elaboration-10.eot 23KB
linea-weather-10.eot 21KB
linea-basic-10.eot 21KB
dripicons.eot 21KB
linea-software-10.eot 16KB
linea-arrows-10.eot 16KB
linea-ecommerce-10.eot 16KB
linea-music-10.eot 6KB
ajax-loader.gif 3KB
switch-type.gif 2KB
select2-spinner.gif 2KB
switch.gif 1KB
open_graph.jpg 158KB
modules.js 261KB
modules.min.js 105KB
theme-modules-js.js 102KB
select2.min.js 73KB
common.js 52KB
owl.carousel.min.js 43KB
eltdf-ui.js 36KB
isotope.pkgd.min.js 35KB
bootstrap-select.min.js 33KB
bootstrap.min.js 28KB
TweenLite.min.js 28KB
eltdf-shortcodes.js 26KB
共 780 条
- 1
- 2
- 3
- 4
- 5
- 6
- 8
资源评论
Lee达森
- 粉丝: 968
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- MFC IE控件使用方式
- 基于STM32的电子罗盘
- 21108229王子涵.ipynb
- 基于STM32的压力检测系统
- 基于STM32的温度计,将手机与蓝牙连接,在android应用程序上显示当前温度
- 前端开发基础入门教程 JavaScript语言编程基础教程 共5个章节.rar
- MFC IE控件使用方式
- 前端开发基础入门教程 JavaScript语言编程基础教程 第5章 JS实战 共16页.pptx
- 前端开发基础入门教程 JavaScript语言编程基础教程 第4章 DHTML 共30页.pptx
- 前端开发基础入门教程 JavaScript语言编程基础教程 第3章 客户端JavaScript 共38页.pptx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功