forked from jquery/jquery-wp-content
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sites.php
195 lines (190 loc) · 4.62 KB
/
sites.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
<?php
function jquery_sites() {
static $sites;
if ( isset( $sites ) )
return $sites;
$sites = array( /* blog_id, cookie domain */
'jquery.com' => array(
'blog_id' => 1,
'cookie_domain' => '.jquery.com',
'options' => array(
'blogname' => 'jQuery',
'stylesheet' => 'jquery.com',
'active_plugins' => array(
'jquery-static-index.php',
),
),
),
'blog.jquery.com' => array(
'blog_id' => 2,
'cookie_domain' => '.jquery.com',
'options' => array(
'blogname' => 'jQuery Blog',
'stylesheet' => 'blog-jquery-com',
// 'permalink_structure' => '/%category%/%postname%/',
),
),
'api.jquery.com' => array(
'blog_id' => 3,
'cookie_domain' => '.jquery.com',
'options' => array(
'blogname' => 'jQuery API Documentation',
'stylesheet' => 'api.jquery.com',
),
),
'plugins.jquery.com' => array(
'blog_id' => 4,
'cookie_domain' => '.jquery.com',
'options' => array(
'blogname' => 'jQuery Plugins',
'stylesheet' => 'plugins.jquery.com',
),
),
'learn.jquery.com' => array(
'blog_id' => 5,
'cookie_domain' => '.jquery.com',
'options' => array(
'blogname' => 'Learn jQuery',
'stylesheet' => 'learn.jquery.com',
),
),
'jqueryui.com' => array(
'blog_id' => 6,
'cookie_domain' => '.jqueryui.com',
'options' => array(
'blogname' => 'jQuery UI',
'stylesheet' => 'jqueryui.com',
'active_plugins' => array(
'jquery-static-index.php',
),
),
),
'blog.jqueryui.com' => array(
'blog_id' => 7,
'cookie_domain' => '.jqueryui.com',
'options' => array(
'blogname' => 'jQuery UI Blog',
'stylesheet' => 'blog.jqueryui.com',
),
),
'api.jqueryui.com' => array(
'subsites' => 1, // Has one level of sub-sites (api.jqueryui.com/([^/]+))
'blog_id' => 8,
'cookie_domain' => '.jqueryui.com',
'options' => array(
'blogname' => 'jQuery UI API Documentation',
'stylesheet' => 'api.jqueryui.com',
'active_plugins' => array(
'jquery-static-index.php',
),
),
),
'api.jqueryui.com/1.8' => array(
'blog_id' => 17,
'cookie_domain' => '.jqueryui.com',
'options' => array(
'blogname' => 'jQuery UI 1.8 Documentation',
'stylesheet' => 'api.jqueryui.com',
'active_plugins' => array(
'jquery-static-index.php',
),
),
),
'jquery.org' => array(
'blog_id' => 9,
'cookie_domain' => '.jquery.org',
'options' => array(
'blogname' => 'jQuery Foundation',
'stylesheet' => 'jquery.org',
'active_plugins' => array(
'jquery-static-index.php',
),
),
),
'qunitjs.com' => array(
'blog_id' => 10,
'cookie_domain' => '.qunitjs.com',
'options' => array(
'blogname' => 'QUnit',
'stylesheet' => 'qunitjs.com',
'active_plugins' => array(
'jquery-static-index.php',
),
),
),
'sizzlejs.com' => array(
'blog_id' => 11,
'cookie_domain' => '.sizzlejs.com',
'options' => array(
'blogname' => 'Sizzle JS',
'stylesheet' => 'sizzlejs.com',
'active_plugins' => array(
'jquery-static-index.php',
),
),
),
'jquerymobile.com' => array(
'blog_id' => 12,
'cookie_domain' => '.jquerymobile.com',
'options' => array(
'blogname' => 'jQuery Mobile',
'stylesheet' => 'jquerymobile.com',
'active_plugins' => array(
'jquery-static-index.php',
),
),
),
'api.jquerymobile.com' => array(
'blog_id' => 13,
'cookie_domain' => '.jquerymobile.com',
'options' => array(
'blogname' => 'jQuery Mobile API Documentation',
'stylesheet' => 'api.jquerymobile.com',
),
),
'api.qunitjs.com' => array(
'blog_id' => 14,
'cookie_domain' => '.qunitjs.com',
'options' => array(
'blogname' => 'QUnit API Documentation',
'stylesheet' => 'api.qunitjs.com',
),
),
'books.jquery.com' => array(
'blog_id' => 15,
'cookie_domain' => '.jquery.com',
'options' => array(
'blogname' => 'jQuery Books',
'stylesheet' => 'books.jquery.com',
),
),
'events.jquery.org' => array(
'blog_id' => 16,
'cookie_domain' => '.jquery.org',
'options' => array(
'blogname' => 'jQuery Events',
'stylesheet' => 'events.jquery.org',
'active_plugins' => array(
'allow-numeric-stubs/allow-numeric-stubs.php',
),
),
),
);
uasort( $sites, function( $a, $b ) {
if ( $a['blog_id'] == $b['blog_id'] )
die( 'Two sites have the same blog_id. Blame nacin?' );
if ( $a['blog_id'] > $b['blog_id'] )
return 1;
return -1;
} );
return $sites;
}
function jquery_default_site_options() {
return array(
'enable_xmlrpc' => 1,
'template' => 'jquery',
'blogdescription' => '',
'permalink_structure' => '/%postname%/',
'use_smilies' => 0,
);
}