|
11 | 11 |
|
12 | 12 | $latestVersion = key( $versions );
|
13 | 13 | $thisVersion = explode( "/", JQUERY_LIVE_SITE );
|
14 |
| - $thisVersion = $thisVersion[1]; |
| 14 | + $thisVersion = count( $thisVersion ) === 2 ? $thisVersion[ 1 ] : $latestVersion; |
15 | 15 | $rootUrl = $thisVersion === $latestVersion ? '' : "/$thisVersion";
|
16 | 16 | ?>
|
17 | 17 |
|
|
20 | 20 | <h1 class="entry-title">jQuery UI <?php echo $thisVersion; ?> API Documentation</h1>
|
21 | 21 | <hr>
|
22 | 22 |
|
| 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 | + |
23 | 45 | <p>This site provides API documentation for jQuery UI <?php echo $thisVersion; ?>.
|
24 | 46 | We encourage you to upgrade to
|
25 | 47 | <a href="http://api.jqueryui.com/">the latest stable version of jQuery UI</a>
|
|
29 | 51 | and <a href="http://jqueryui.com/changelog/">changelogs</a>
|
30 | 52 | to find out more about upgrading.</p>
|
31 | 53 |
|
| 54 | + <?php } ?> |
| 55 | + |
32 | 56 | <p>To get started, use the search at the top of the page, view the
|
33 | 57 | <a href="<?php echo "$rootUrl/category/all"; ?>">full listing of entries</a>, or browse by
|
34 | 58 | category from the sidebar.</p>
|
|
0 commit comments