Skip to content

Commit d6ceddc

Browse files
committed
api.jqueryui.com: Move index page to theme.
1 parent bd53802 commit d6ceddc

File tree

2 files changed

+26
-4
lines changed

2 files changed

+26
-4
lines changed

sites.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,7 @@ function jquery_sites() {
8787
'options' => array(
8888
'blogname' => 'jQuery UI API Documentation',
8989
'stylesheet' => 'api.jqueryui.com',
90-
'active_plugins' => array(
91-
'jquery-static-index.php',
92-
),
90+
'active_plugins' => array(),
9391
),
9492
),
9593
'api.jqueryui.com/1.8' => array(

themes/api.jqueryui.com/index.php

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
$latestVersion = key( $versions );
1313
$thisVersion = explode( "/", JQUERY_LIVE_SITE );
14-
$thisVersion = $thisVersion[1];
14+
$thisVersion = count( $thisVersion ) === 2 ? $thisVersion[ 1 ] : $latestVersion;
1515
$rootUrl = $thisVersion === $latestVersion ? '' : "/$thisVersion";
1616
?>
1717

@@ -20,6 +20,28 @@
2020
<h1 class="entry-title">jQuery UI <?php echo $thisVersion; ?> API Documentation</h1>
2121
<hr>
2222

23+
<?php if ( !$rootUrl ) { ?>
24+
25+
<p>jQuery UI is a curated set of user interface interactions, effects,
26+
widgets, and themes built on top of the jQuery JavaScript Library.
27+
If you're new to jQuery UI, you might want to check out our
28+
<a href="http://jqueryui.com/" title="jQuery UI">main site</a> for
29+
more information and full demos. <!-- If you're new to jQuery, you might
30+
also be interested in the <a href="http://learn.jquery.com/">Learn jQuery</a>
31+
tutorials. --></p>
32+
33+
<p>This site provides API documentation for jQuery UI 1.10. If
34+
you're working with jQuery UI 1.9, you can find the API documentation
35+
on <a href="http://api.jqueryui.com/1.9/">api.jqueryui.com/1.9/</a>.
36+
However, we would encourage you to upgrade to jQuery UI 1.10 in order
37+
to receive the best support and take advantage of recent bug fixes
38+
and enhancements. Check out the
39+
<a href="http://blog.jqueryui.com/2013/01/jquery-ui-1-10-0/">release announcement</a>
40+
and <a href="http://jqueryui.com/upgrade-guide/1.10/">upgrade guide</a>
41+
to find out more about jQuery UI 1.10.</p>
42+
43+
<?php } else { ?>
44+
2345
<p>This site provides API documentation for jQuery UI <?php echo $thisVersion; ?>.
2446
We encourage you to upgrade to
2547
<a href="http://api.jqueryui.com/">the latest stable version of jQuery UI</a>
@@ -29,6 +51,8 @@
2951
and <a href="http://jqueryui.com/changelog/">changelogs</a>
3052
to find out more about upgrading.</p>
3153

54+
<?php } ?>
55+
3256
<p>To get started, use the search at the top of the page, view the
3357
<a href="<?php echo "$rootUrl/category/all"; ?>">full listing of entries</a>, or browse by
3458
category from the sidebar.</p>

0 commit comments

Comments
 (0)