Skip to content

Commit 2d52e94

Browse files
committed
RE initiated files to be uploaded to GitHub
1 parent d2ef776 commit 2d52e94

File tree

4,647 files changed

+1143226
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

4,647 files changed

+1143226
-0
lines changed

wp-content/plugins/all-in-one-seo-pack/admin/aioseop_module_class.php

Lines changed: 3028 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 217 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,217 @@
1+
<?php
2+
/**
3+
* The Module Manager.
4+
*
5+
* Mostly we're activating and deactivating modules/features.
6+
*
7+
* @package All-in-One-SEO-Pack
8+
* @since 2.0
9+
*/
10+
11+
if ( ! class_exists( 'All_in_One_SEO_Pack_Module_Manager' ) ) {
12+
13+
/**
14+
* Class All_in_One_SEO_Pack_Module_Manager
15+
*/
16+
class All_in_One_SEO_Pack_Module_Manager {
17+
protected $modules = array();
18+
protected $settings_update = false;
19+
protected $settings_reset = false;
20+
protected $settings_reset_all = false;
21+
protected $module_settings_update = false;
22+
23+
/**
24+
* All_in_One_SEO_Pack_Module_Manager constructor.
25+
*
26+
* Initialize module list.
27+
*
28+
* @param $mod Modules.
29+
*/
30+
function __construct( $mod ) {
31+
32+
$this->modules['feature_manager'] = null;
33+
foreach ( $mod as $m ) {
34+
$this->modules[ $m ] = null;
35+
}
36+
$reset = false;
37+
$reset_all = ( isset( $_POST['Submit_All_Default'] ) && '' !== $_POST['Submit_All_Default'] );
38+
$reset = ( ( isset( $_POST['Submit_Default'] ) && '' !== $_POST['Submit_Default'] ) || $reset_all );
39+
$update = ( isset( $_POST['action'] ) && $_POST['action']
40+
&& ( ( isset( $_POST['Submit'] ) && '' !== $_POST['Submit'] ) || $reset )
41+
);
42+
if ( $update ) {
43+
if ( $reset ) {
44+
$this->settings_reset = true;
45+
}
46+
if ( $reset_all ) {
47+
$this->settings_reset_all = true;
48+
}
49+
if ( 'aiosp_update' === $_POST['action'] ) {
50+
$this->settings_update = true;
51+
}
52+
if ( 'aiosp_update_module' === $_POST['action'] ) {
53+
$this->module_settings_update = true;
54+
}
55+
}
56+
$this->do_load_module( 'feature_manager', $mod );
57+
}
58+
59+
/**
60+
* Return module.
61+
*
62+
* @param $class
63+
*
64+
* @return $this|bool|mixed
65+
*/
66+
function return_module( $class ) {
67+
global $aiosp;
68+
/* This is such a strange comparison! Don't know what the intent is. */
69+
if ( get_class( $aiosp ) === $class ) {
70+
return $aiosp;
71+
}
72+
if ( get_class( $aiosp ) === $class ) {
73+
return $this;
74+
}
75+
foreach ( $this->modules as $m ) {
76+
if ( is_object( $m ) && ( get_class( $m ) === $class ) ) {
77+
return $m;
78+
}
79+
}
80+
81+
return false;
82+
}
83+
84+
/**
85+
* @return array
86+
*/
87+
function get_loaded_module_list() {
88+
$module_list = array();
89+
if ( ! empty( $this->modules ) ) {
90+
foreach ( $this->modules as $k => $v ) {
91+
if ( ! empty( $v ) ) {
92+
$module_list[ $k ] = get_class( $v );
93+
}
94+
}
95+
}
96+
97+
return $module_list;
98+
}
99+
100+
/**
101+
* @param $mod Module.
102+
* @param null $args
103+
*
104+
* @return bool
105+
*/
106+
function do_load_module( $mod, $args = null ) {
107+
// Module name is used for these automatic settings:
108+
// The aiosp_enable_$module settings - whether each plugin is active or not.
109+
// The name of the .php file containing the module - aioseop_$module.php.
110+
// The name of the class - All_in_One_SEO_Pack_$Module.
111+
// The global $aioseop_$module.
112+
// $this->modules[$module].
113+
$mod_path = apply_filters( "aioseop_include_$mod", AIOSEOP_PLUGIN_DIR . "modules/aioseop_$mod.php" );
114+
if ( ! empty( $mod_path ) ) {
115+
require_once( $mod_path );
116+
}
117+
$ref = "aioseop_$mod";
118+
$classname = 'All_in_One_SEO_Pack_' . strtr( ucwords( strtr( $mod, '_', ' ' ) ), ' ', '_' );
119+
$classname = apply_filters( "aioseop_class_$mod", $classname );
120+
$module_class = new $classname( $args );
121+
$GLOBALS[ $ref ] = $module_class;
122+
$this->modules[ $mod ] = $module_class;
123+
if ( is_user_logged_in() && is_admin_bar_showing() && current_user_can( 'aiosp_manage_seo' ) ) {
124+
add_action(
125+
'admin_bar_menu', array(
126+
$module_class,
127+
'add_admin_bar_submenu',
128+
), 1001 + $module_class->menu_order()
129+
);
130+
}
131+
if ( is_admin() ) {
132+
add_action(
133+
'aioseop_modules_add_menus', array(
134+
$module_class,
135+
'add_menu',
136+
), $module_class->menu_order()
137+
);
138+
add_action( 'aiosoep_options_reset', array( $module_class, 'reset_options' ) );
139+
add_filter( 'aioseop_export_settings', array( $module_class, 'settings_export' ) );
140+
}
141+
142+
return true;
143+
}
144+
145+
/**
146+
* @param $mod
147+
*
148+
* @return bool
149+
*/
150+
function load_module( $mod ) {
151+
static $feature_options = null;
152+
static $feature_prefix = null;
153+
if ( ! is_array( $this->modules ) ) {
154+
return false;
155+
}
156+
$v = $this->modules[ $mod ];
157+
if ( null !== $v ) {
158+
return false;
159+
} // Already loaded.
160+
if ( 'performance' === $mod && ! is_super_admin() ) {
161+
return false;
162+
}
163+
if ( ( 'file_editor' === $mod )
164+
&& ( ( defined( 'DISALLOW_FILE_EDIT' ) && DISALLOW_FILE_EDIT )
165+
|| ( defined( 'DISALLOW_FILE_MODS' ) && DISALLOW_FILE_MODS )
166+
|| ! is_super_admin() )
167+
) {
168+
return false;
169+
}
170+
$mod_enable = false;
171+
172+
$is_module_page = isset( $_REQUEST['page'] ) && trailingslashit( AIOSEOP_PLUGIN_DIRNAME ) . 'modules/aioseop_feature_manager.php' === $_REQUEST['page'];
173+
if ( defined( 'AIOSEOP_UNIT_TESTING' ) ) {
174+
// using $_REQUEST does not work because even if the parameter is set in $_POST or $_GET, it does not percolate to $_REQUEST.
175+
$is_module_page = ( isset( $_GET['page'] ) && trailingslashit( AIOSEOP_PLUGIN_DIRNAME ) . 'modules/aioseop_feature_manager.php' === $_GET['page'] ) || ( isset( $_POST['page'] ) && trailingslashit( AIOSEOP_PLUGIN_DIRNAME ) . 'modules/aioseop_feature_manager.php' === $_POST['page'] );
176+
}
177+
$fm_page = $this->module_settings_update && wp_verify_nonce( $_POST['nonce-aioseop'], 'aioseop-nonce' ) && $is_module_page;
178+
if ( $fm_page && ! $this->settings_reset ) {
179+
if ( isset( $_POST[ "aiosp_feature_manager_enable_$mod" ] ) ) {
180+
$mod_enable = $_POST[ "aiosp_feature_manager_enable_$mod" ];
181+
} else {
182+
$mod_enable = false;
183+
}
184+
} else {
185+
if ( null === $feature_prefix ) {
186+
$feature_prefix = $this->modules['feature_manager']->get_prefix();
187+
}
188+
if ( $fm_page && $this->settings_reset ) {
189+
$feature_options = $this->modules['feature_manager']->default_options();
190+
}
191+
if ( null === $feature_options ) {
192+
if ( $this->module_settings_update && $this->settings_reset_all && wp_verify_nonce( $_POST['nonce-aioseop'], 'aioseop-nonce' ) ) {
193+
$feature_options = $this->modules['feature_manager']->default_options();
194+
} else {
195+
$feature_options = $this->modules['feature_manager']->get_current_options();
196+
}
197+
}
198+
if ( isset( $feature_options[ "{$feature_prefix}enable_$mod" ] ) ) {
199+
$mod_enable = $feature_options[ "{$feature_prefix}enable_$mod" ];
200+
}
201+
}
202+
if ( $mod_enable ) {
203+
return $this->do_load_module( $mod );
204+
}
205+
206+
return false;
207+
}
208+
209+
function load_modules() {
210+
if ( is_array( $this->modules ) ) {
211+
foreach ( $this->modules as $k => $v ) {
212+
$this->load_module( $k );
213+
}
214+
}
215+
}
216+
}
217+
}
Lines changed: 150 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,150 @@
1+
<div class="wrap credits-wrap">
2+
3+
<p class="about-description"><?php _e( 'All in One SEO Pack is created by a worldwide network of friendly folks like these.', 'all-in-one-seo-pack' ); ?></p>
4+
5+
<h3 class="wp-people-group"><?php _e( 'Project Leaders', 'all-in-one-seo-pack' ); ?></h3>
6+
<ul class="wp-people-group " id="wp-people-group-project-leaders">
7+
<li class="wp-person" id="wp-person-michaeltorbert">
8+
<a class="web" href="https://twitter.com/michaeltorbert" target="_blank"><img alt="" class="gravatar" src="https://s.gravatar.com/avatar/f41419cf5cfdbb071a8d591ac9976bf3?s=60">
9+
Michael Torbert</a>
10+
<span class="title"><?php _e( 'Project Lead', 'all-in-one-seo-pack' ); ?></span>
11+
</li>
12+
<li class="wp-person" id="wp-person-stevemortiboy">
13+
<a class="web" target="_blank" href="https://twitter.com/wpsmort"><img alt="" class="gravatar" src="https://www.gravatar.com/avatar/40e33d813c16a63500675d851b0cbf3a?s=60">
14+
Steve Mortiboy</a>
15+
<span class="title"><?php _e( 'Project Manager', 'all-in-one-seo-pack' ); ?></span>
16+
</li>
17+
</ul>
18+
19+
<h3 class="wp-people-group"><?php printf( __( 'Core Team', 'all-in-one-seo-pack' ) ); ?></h3>
20+
<ul class="wp-people-group " id="wp-people-group-contributors">
21+
<li class="wp-person" id="wp-person-arnaudbroes">
22+
<a class="web" target="_blank" href="https://profiles.wordpress.org/arnaudbroes"><img alt="" class="gravatar" src="https://www.gravatar.com/avatar/0ce0d554c2b0bd61d326e15c8dcde756?s=60">
23+
Arnaud Broes</a>
24+
<span class="title"><?php _e( 'Development Team', 'all-in-one-seo-pack' ); ?></span>
25+
</li>
26+
<li class="wp-person" id="wp-person-yuqianliu">
27+
<a class="web" target="_blank" href="https://profiles.wordpress.org/yuqianl"><img alt="" class="gravatar" src="https://www.gravatar.com/avatar/8f971bea2b6c483fd1099e558013a7d0?s=60">
28+
Yuqian Liu</a>
29+
<span class="title"><?php _e( 'Development Team', 'all-in-one-seo-pack' ); ?></span>
30+
</li>
31+
<li class="wp-person" id="wp-person-aaronbrodney">
32+
<a class="web" target="_blank" href="https://github.com/theycalledmetaz"><img alt="" class="gravatar" src="https://avatars3.githubusercontent.com/u/8225725?v=3&s=60">
33+
Aaron Brodney</a>
34+
<span class="title"><?php _e( 'Development Team', 'all-in-one-seo-pack' ); ?></span>
35+
</li>
36+
</ul>
37+
38+
<h3 class="wp-people-group">&#x1f31f;<?php _e( 'Recent Rockstar Contributors', 'all-in-one-seo-pack' ); ?>&#x1f31f;</h3>
39+
<ul class="wp-people-group " id="wp-people-group-rockstars">
40+
<li>
41+
<?php
42+
/* translators: '%1$s' and '%2$s' are used as placeholders and turn the text in between into a clickable link */
43+
printf(
44+
__( 'Want to see your name and picture here as a community developer? %1$sClick here%2$s to open an issue on GitHub to report a bug, request a feature or find an issue and submit code!', 'all-in-one-seo-pack' ),
45+
'<a href="https://github.com/semperfiwebdesign/all-in-one-seo-pack" target="_blank">', '</a>'
46+
);
47+
?>
48+
</li>
49+
<li class="wp-person" id="wp-person-dougalcampbell">
50+
<a class="web" target="_blank" href="https://profiles.wordpress.org/dougal/"><img alt="" class="gravatar" src="https://www.gravatar.com/avatar/81717a172b6918071fbea1a52483294b?s=60">
51+
Dougal Campbell</a>
52+
</li>
53+
<li class="wp-person" id="wp-person-alejandromostajo">
54+
<a class="web" target="_blank" href="https://github.com/amostajo"><img alt="" class="gravatar" src="https://avatars1.githubusercontent.com/u/1645908?s=60">
55+
Alejandro Mostajo</a>
56+
</li>
57+
<li class="wp-person" id="rozroz">
58+
<a class="web" target="_blank" href="https://github.com/contactashish13"><img alt="" class="gravatar" src="https://avatars2.githubusercontent.com/u/12953439?s=60">
59+
Ashish Ravi</a>
60+
</li>
61+
<li class="wp-person" id="rozroz">
62+
<a class="web" target="_blank" href="https://profiles.wordpress.org/yummy-wp/"><img alt="" class="gravatar" src="https://avatars0.githubusercontent.com/u/22232968?v=3&s=460">
63+
Stanislav Samoilenko</a>
64+
</li>
65+
<li class="wp-person" id="shoheitanaka">
66+
<a class="web" target="_blank" href="https://profiles.wordpress.org/shoheitanaka"><img alt="" class="gravatar" src="https://secure.gravatar.com/avatar/677e512c803c40c0180d4514f876a21f?s=200&d=mm&r=g">
67+
Shohei Tanaka</a>
68+
</li>
69+
<li class="wp-person" id="EkoJR">
70+
<a class="web" target="_blank" href="https://profiles.wordpress.org/EkoJR/"><img alt="" class="gravatar" src="https://secure.gravatar.com/avatar/bb4c78fe944b58bd5f127d836500c30a?s=200&d=mm&r=g">
71+
Ben Reames</a>
72+
</li>
73+
<li class="wp-person" id="webaware">
74+
<a class="web" target="_blank" href="https://profiles.wordpress.org/webaware/"><img alt="" class="gravatar" src="https://secure.gravatar.com/avatar/aee800bc3644d9ebfa33c1ed9df5d958?s=200&d=mm&r=g">
75+
Ross McKay</a>
76+
</li>
77+
<li class="wp-person" id="adamsilverstein">
78+
<a class="web" target="_blank" href="https://profiles.wordpress.org/adamsilverstein/"><img alt=""
79+
class="gravatar"
80+
src="https://secure.gravatar.com/avatar/fddbd6c3e1c3d971aa732b9346aeb433?s=200&d=mm&r=g">
81+
Adam Silverstein</a>
82+
</li>
83+
<li class="wp-person" id="vschettino">
84+
<a class="web" target="_blank" href="https://github.com/vschettino/"><img alt=""
85+
class="gravatar"
86+
src="https://avatars2.githubusercontent.com/u/7289698?s=460&v=4">
87+
Vinicius Schettino</a>
88+
</li>
89+
<li class="wp-person" id="vschettino">
90+
<a class="web" target="_blank" href="https://github.com/srdjan-jcc"><img alt=""
91+
class="gravatar"
92+
src="https://avatars2.githubusercontent.com/u/3109112?s=460&v=4">
93+
Srdjan Jocic</a>
94+
</li>
95+
<li class="wp-person" id="vschettino">
96+
<a class="web" target="_blank" href="https://profiles.wordpress.org/soulseekah/"><img alt=""
97+
class="gravatar"
98+
src="https://avatars0.githubusercontent.com/u/685880?s=460&v=4">
99+
Gennady Kovshenin</a>
100+
</li>
101+
</ul>
102+
103+
<h3 class="wp-people-group dashicons-before dashicons-translation"><?php printf( _e( 'Translation contributors and translation editors', 'all-in-one-seo-pack' ), '1.2' ); ?></h3>
104+
<p class="wp-credits-list">
105+
<a href="https://profiles.wordpress.org/pierrelannoy/" target="_blank">Pierre Lannoy</a>,
106+
<a href="https://profiles.wordpress.org/sonjanyc/" target="_blank">Sonja Leix</a>,
107+
<a href="https://profiles.wordpress.org/dev-ide/" target="_blank">Adil El hallaoui</a>,
108+
<a href="https://profiles.wordpress.org/simonie/" target="_blank">simonie</a>,
109+
<a href="https://profiles.wordpress.org/lenasterg/" target="_blank">lenasterg</a>,
110+
<a href="https://profiles.wordpress.org/arnaudbroes/" target="_blank">Arnaud Broes</a>,
111+
<a href="https://profiles.wordpress.org/pixolin/" target="_blank">Bego Mario Garde</a>,
112+
<a href="https://profiles.wordpress.org/wp-yogi/" target="_blank">wp-yogi</a>,
113+
<a href="https://profiles.wordpress.org/wpsmort/" target="_blank">Steve Mortiboy</a>,
114+
<a href="https://profiles.wordpress.org/webaware/" target="_blank">webaware</a>,
115+
<a href="https://profiles.wordpress.org/escribirelmundo/" target="_blank">escribirelmundo</a>,
116+
<a href="https://profiles.wordpress.org/casiepa/" target="_blank">Pascal Casier</a>,
117+
<a href="https://profiles.wordpress.org/shoheitanaka/" target="_blank">Shohei Tanaka</a>,
118+
<a href="https://profiles.wordpress.org/nurron/" target="_blank">Nurron Shodiqin</a>,
119+
<a href="https://profiles.wordpress.org/aprmndr/" target="_blank">Alyssa Primandaru</a>,
120+
<a href="https://profiles.wordpress.org/facestoro/" target="_blank">facestoro</a>,
121+
<a href="https://profiles.wordpress.org/yuqianl/" target="_blank">Dawa Torbert</a>,
122+
<a href="https://profiles.wordpress.org/hallsofmontezuma/" target="_blank">Michael Torbert</a>,
123+
<a href="https://profiles.wordpress.org/istvanzseller/" target="_blank">Istvan Zseller</a>,
124+
<a href="https://profiles.wordpress.org/paaljoachim" target="_blank">Paal Joachim Romdahl</a>,
125+
<a href="https://profiles.wordpress.org/almaz/" target="_blank">Almaz Mannanov</a>,
126+
<a href="https://profiles.wordpress.org/vide13 /" target="_blank">vide13</a>,
127+
<a href="https://profiles.wordpress.org/yuraz/" target="_blank">Jurica Zuanovic</a>,
128+
<a href="https://profiles.wordpress.org/arhipaiva/" target="_blank">arhipaiva</a>,
129+
<a href="https://profiles.wordpress.org/maximanikin/" target="_blank">Maxim Anikin</a>,
130+
<a href="https://profiles.wordpress.org/petya/" target="_blank">Petya Raykovska</a>,
131+
<a href="https://profiles.wordpress.org/hathanh0809/" target="_blank">hathanh0809</a>,
132+
<a href="https://profiles.wordpress.org/cedric3131/" target="_blank">Cédric Valmary</a>,
133+
<a href="https://profiles.wordpress.org/smitka/" target="_blank">Vladimir Smitka</a>,
134+
<a href="https://profiles.wordpress.org/brewtal/" target="_blank">Paul P.</a>,
135+
<a href="https://profiles.wordpress.org/wpaleks/" target="_blank">Aleksander Savkovic</a>,
136+
<a href="https://profiles.wordpress.org/diogosanches/" target="_blank">Diogo Sanches</a>,
137+
<a href="https://profiles.wordpress.org/klemenfajs/" target="_blank">Klemen Fajs</a>,
138+
<a href="https://profiles.wordpress.org/adriancastellanos/" target="_blank">Adrian Castellanos</a>,
139+
<a href="https://profiles.wordpress.org/exilhamburger/" target="_blank">exilhamburger</a>,
140+
<a href="https://profiles.wordpress.org/garyj/" target="_blank">Gary Jones</a>,
141+
<a href="https://profiles.wordpress.org/fernandot/" target="_blank">Fernando Tellado</a>,
142+
<a href="https://profiles.wordpress.org/hiwhatsup/" target="_blank">Carlos Zuniga</a>,
143+
<a href="https://profiles.wordpress.org/fxbenard/" target="_blank">François Bernard</a>,
144+
<a href="https://profiles.wordpress.org/jack0falltrades/" target="_blank">jack0falltrades</a>,
145+
<a href="https://profiles.wordpress.org/dancaragea/" target="_blank">Dan Caragea</a>,
146+
<a href="https://profiles.wordpress.org/kyla81975/" target="_blank">kyla81975</a>,
147+
<a href="https://profiles.wordpress.org/arildknudsen1/" target="_blank">Arild Knudsen</a>.
148+
</p>
149+
150+
</div>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy