Skip to content

Commit 8d8f123

Browse files
apsdehalarschmitz
authored andcommitted
api.jquerymobile.com: Add 1.5 sub site
1 parent 1f25fb5 commit 8d8f123

File tree

3 files changed

+25
-3
lines changed

3 files changed

+25
-3
lines changed

sites.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,17 @@ function jquery_sites() {
317317
'active_plugins' => array(),
318318
),
319319
),
320+
'api.jquerymobile.com/1.4' => array(
321+
'blog_id' => 28,
322+
'cookie_domain' => '.jquerymobile.com',
323+
'body_class' => 'jquery-mobile',
324+
'logo_link' => 'http://jquerymobile.com/',
325+
'options' => array(
326+
'blogname' => 'jQuery Mobile 1.4 Documentation',
327+
'stylesheet' => 'api.jquerymobile.com',
328+
'active_plugins' => array(),
329+
),
330+
),
320331
);
321332

322333
uasort( $sites, function( $a, $b ) {

themes/api.jquerymobile.com/functions.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,18 @@
33
function jq_mobile_api_versions() {
44
// Must be listed with newest first
55
return array(
6+
'1.5' => '2.2 and newer',
67
'1.4' => '1.8 and newer',
78
'1.3' => '1.7 and newer',
89
);
910
}
1011

12+
function jq_mobile_ui_api_versions() {
13+
return array(
14+
'1.5' => '1.12'
15+
);
16+
}
17+
1118
function jq_mobile_api_version_latest() {
1219
$versions = jq_mobile_api_versions();
1320
return key( $versions );

themes/api.jquerymobile.com/index.php

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
$versions = jq_mobile_api_versions();
66
$latestVersion = jq_mobile_api_version_latest();
77
$thisVersion = jq_mobile_api_version_current();
8+
$ui_versions = jq_mobile_ui_api_versions();
89
$rootUrl = $thisVersion === $latestVersion ? '' : "/$thisVersion";
910
?>
1011

@@ -18,7 +19,7 @@
1819
<p>jQuery Mobile is the easiest way to build sites and apps that are accessible on all
1920
popular smartphone, tablet and desktop devices.</p>
2021

21-
<p>If you are new to jQuery Mobile, the introduction to the framework in the
22+
<p>If you are new to jQuery Mobile, the introduction to the framework in the
2223
<a href="http://demos.jquerymobile.com/">Demos</a>
2324
would be a good place to start.</p>
2425

@@ -41,10 +42,13 @@
4142
category from the sidebar.</p>
4243

4344
<p>jQuery Mobile <?php echo $thisVersion; ?>
44-
supports jQuery <?php echo $versions[ $thisVersion ]; ?>.</p>
45+
<?php if ( $thisVersion == "1.5" ) {
46+
echo "uses jQuery UI " . $ui_versions[ $thisVersion ] . " and";
47+
} ?>
48+
supports jQuery <?php echo $versions[ $thisVersion ]; ?>.
4549

4650
<p>See the <a href="http://jquerymobile.com/gbs/<?php echo $thisVersion; ?>">supported platforms</a> page for a list of all
47-
operating systems and browsers that are supported by this version of jQuery Mobile.</p>
51+
operating systems and browsers that are supported by this version of jQuery Mobile.</p>
4852

4953
<hr>
5054

0 commit comments

Comments
 (0)