forked from jquery/jquery-wp-content
/
index.php
74 lines (55 loc) · 2.65 KB
/
index.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
<?php
get_header();
the_post();
$versions = jq_mobile_api_versions();
$latestVersion = jq_mobile_api_version_latest();
$thisVersion = jq_mobile_api_version_current();
$ui_versions = jq_mobile_ui_api_versions();
$rootUrl = $thisVersion === $latestVersion ? '' : "/$thisVersion";
?>
<div class="content-right twelve columns">
<div id="content">
<h1 class="entry-title">jQuery Mobile <?php echo $thisVersion; ?> API Documentation</h1>
<hr>
<?php if ( !$rootUrl ) { ?>
<p>jQuery Mobile is the easiest way to build sites and apps that are accessible on all
popular smartphone, tablet and desktop devices.</p>
<p>If you are new to jQuery Mobile, the introduction to the framework in the
<a href="https://demos.jquerymobile.com/">Demos</a>
would be a good place to start.</p>
<p>This site provides API documentation for jQuery Mobile <?php echo $thisVersion; ?></p>
<?php } else { ?>
<p>This site provides API documentation for jQuery Mobile <?php echo $thisVersion; ?>.
We encourage you to <a href="https://jquerymobile.com/download/">upgrade to the latest stable version</a> of jQuery Mobile
in order to receive the best support and take advantage of recent bug
fixes and enhancements. Check out the
<a href="https://jquerymobile.com/upgrade-guide/">upgrade guides</a>
and <a href="https://jquerymobile.com/changelog/">changelogs</a>
to find out more about upgrading.</p>
<?php } ?>
<p>To get started, use the search at the top of the page, view the
<a href="<?php echo "$rootUrl/category/all"; ?>">full listing of entries</a>, or browse by
category from the sidebar.</p>
<p>jQuery Mobile <?php echo $thisVersion; ?> uses jQuery UI <?php echo $ui_versions[ $thisVersion ] ?> and
supports jQuery <?php echo $versions[ $thisVersion ]; ?>.
<p>See the <a href="https://jquerymobile.com/gbs/<?php echo $thisVersion; ?>">supported platforms</a> page for a list of all
operating systems and browsers that are supported by this version of jQuery Mobile.</p>
<hr>
<h2>Can't find what you're looking for?</h2>
<p>Perhaps one of the following sites will help:</p>
<ul>
<?php foreach( $versions as $version => $_ ) {
if ( $version === $thisVersion ) {
continue;
}
$url = $version === $latestVersion ? '/' : "/$version/";
echo "<li><a href=\"$url\">jQuery Mobile $version API Documentation</a></li>";
} ?>
<li><a href="https://api.jquery.com/">jQuery Core API Documentation</a></li>
<li><a href="https://api.jqueryui.com/">jQuery UI API Documentation</a></li>
<li><a href="https://learn.jquery.com/">jQuery Learning Center</a></li>
</ul>
</div>
<?php get_sidebar(); ?>
</div>
<?php get_footer(); ?>