diff --git a/Languages/en_US/Help.php b/Languages/en_US/Help.php index e94566c2993..625b2ed9c09 100644 --- a/Languages/en_US/Help.php +++ b/Languages/en_US/Help.php @@ -264,7 +264,7 @@ $helptxt['disallow_sendBody'] = 'This setting removes the option to receive the text of replies, posts, and personal messages in notification emails.

Often, members will reply to the notification email, which in most cases means the webmaster receives the reply.'; $helptxt['enable_ajax_alerts'] = 'This option allows your members to receive AJAX notifications. This means that members do not need to refresh the page to get new notifications.
NOTE: This option might cause a severe load at your server with many users online.'; $helptxt['alerts_auto_purge'] = 'Once an alert has been read, it is rarely needed again. For performance reasons, it is a good idea to automatically delete them after a while.'; -$helptxt['jquery_source'] = 'This will determine the source used to load the jQuery Library. Google CDN, jQuery CDN and Microsoft CDN will load the jQuery library from those respective CDN networks. Local will only use the local source. Custom allows you to specify a custom URL for the library.'; +$helptxt['jquery_source'] = 'This will determine the source used to load the jQuery Library. Cloudflare CDN (cdnjs), Google CDN, jQuery CDN and Microsoft CDN will load the jQuery library from those respective CDN networks. Local will only use the local source. Custom allows you to specify a custom URL for the library.'; $helptxt['compactTopicPagesEnable'] = 'This will just show a selection of the number of pages.
Example: "3" to display: 1 ... 4 [5] 6 ... 9
"5" to display: 1 ... 3 4 [5] 6 7 ... 9'; diff --git a/Languages/en_US/ManageSettings.php b/Languages/en_US/ManageSettings.php index 145edf617be..09f82068695 100644 --- a/Languages/en_US/ManageSettings.php +++ b/Languages/en_US/ManageSettings.php @@ -76,6 +76,7 @@ $txt['jquery_custom_label'] = 'Custom'; $txt['jquery_custom'] = 'Custom URL to the jQuery Library'; $txt['jquery_local'] = 'Local'; +$txt['jquery_cloudflare_cdn'] = 'Cloudflare CDN (cdnjs)'; $txt['jquery_google_cdn'] = 'Google CDN'; $txt['jquery_jquery_cdn'] = 'jQuery CDN'; $txt['jquery_microsoft_cdn'] = 'Microsoft CDN'; diff --git a/Sources/Actions/Admin/Features.php b/Sources/Actions/Admin/Features.php index 1ceb520c435..e3ba292b314 100644 --- a/Sources/Actions/Admin/Features.php +++ b/Sources/Actions/Admin/Features.php @@ -1573,6 +1573,7 @@ public static function basicConfigVars(): array 'jquery_source', [ 'cdn' => Lang::getTxt('jquery_google_cdn', file: 'ManageSettings'), + 'cloudflare_cdn' => Lang::getTxt('jquery_cloudflare_cdn', file: 'ManageSettings'), 'jquery_cdn' => Lang::getTxt('jquery_jquery_cdn', file: 'ManageSettings'), 'microsoft_cdn' => Lang::getTxt('jquery_microsoft_cdn', file: 'ManageSettings'), 'local' => Lang::getTxt('jquery_local', file: 'ManageSettings'), diff --git a/Sources/Theme.php b/Sources/Theme.php index 65eca71933d..d6bd44a0874 100644 --- a/Sources/Theme.php +++ b/Sources/Theme.php @@ -2229,6 +2229,7 @@ protected function loadJavaScript(): void // Add the JQuery library to the list of files to load. $jQueryUrls = [ 'cdn' => 'https://ajax.googleapis.com/ajax/libs/jquery/' . JQUERY_VERSION . '/jquery.min.js', + 'cloudflare_cdn' => 'https://cdnjs.cloudflare.com/ajax/libs/' . JQUERY_VERSION . '/jquery.min.js', 'jquery_cdn' => 'https://code.jquery.com/jquery-' . JQUERY_VERSION . '.min.js', 'microsoft_cdn' => 'https://ajax.aspnetcdn.com/ajax/jQuery/jquery-' . JQUERY_VERSION . '.min.js', ];