Skip to content

api.jqueryui.com: Prepare for jQuery UI 1.14 #460

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions sites.php
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,22 @@ function jquery_sites() {
'jquery_twitter_link' => 'https://twitter.com/jqueryui',
),
),
'api.jqueryui.com/1.14' => array(
'cookie_domain' => '.jqueryui.com',
'options' => array(
'blogname' => 'jQuery UI 1.14 Documentation',
'stylesheet' => 'api.jqueryui.com',
'active_plugins' => array(
'jquery-api-category-listing.php',
'jquery-api-versioned-links.php',
),
'jquery_body_class' => 'jquery-ui',
'jquery_logo_link'=> 'https://jqueryui.com/',
'jquery_typesense_key' => 'Zh8mMgohXECel9wjPwqT7lekLSG3OCgz',
'jquery_typesense_collection' => 'jqueryui_com',
'jquery_twitter_link' => 'https://twitter.com/jqueryui',
),
),
);

return $sites;
Expand Down
13 changes: 7 additions & 6 deletions themes/api.jqueryui.com/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@
function jq_ui_api_versions() {
// Must be listed with current stable first
return array(
"1.13" => "1.8 and newer",
"1.12" => "1.7 and newer",
"1.11" => "1.6 and newer",
"1.10" => "1.6 and newer",
"1.9" => "1.6 and newer",
"1.8" => "1.3.2 and newer",
"1.14" => "latest versions of jQuery 1.x, 2.x, 3.x & 4.x; see <a href=\"https://jqueryui.com/changelog/\">the changelogs of a specific release</a> for more detailed support information",
"1.13" => "jQuery 1.8 and newer",
"1.12" => "jQuery 1.7 and newer",
"1.11" => "jQuery 1.6 and newer",
"1.10" => "jQuery 1.6 and newer",
"1.9" => "jQuery 1.6 and newer",
"1.8" => "jQuery 1.3.2 and newer",
);
}

Expand Down
2 changes: 1 addition & 1 deletion themes/api.jqueryui.com/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
category from the sidebar.</p>

<p>jQuery UI <?php echo $thisVersion; ?>
supports jQuery <?php echo $versions[ $thisVersion ]; ?>.</p>
supports <?php echo $versions[ $thisVersion ]; ?>.</p>

<hr>

Expand Down
4 changes: 2 additions & 2 deletions themes/releases.jquery.com/page.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php
wp_enqueue_style('jquery-ui', 'https://code.jquery.com/ui/1.13.2/themes/ui-lightness/jquery-ui.css');
wp_enqueue_style('jquery-ui', 'https://code.jquery.com/ui/1.13.3/themes/ui-lightness/jquery-ui.css');
wp_enqueue_style('sri-modal', get_template_directory_uri() . '/css/sri-modal.css');

wp_enqueue_script('jquery-ui', 'https://code.jquery.com/ui/1.13.2/jquery-ui.min.js');
wp_enqueue_script('jquery-ui', 'https://code.jquery.com/ui/1.13.3/jquery-ui.min.js');
wp_enqueue_script('clipboard-polyfill', get_template_directory_uri() . '/js/clipboard-polyfill.js');
wp_enqueue_script('sri-modal', get_template_directory_uri() . '/js/sri-modal.js');
?>
Expand Down