Skip to content
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
2 changes: 1 addition & 1 deletion themes/jquery/header.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
</head>
<body <?php body_class(); ?>>

<?php if ( is_front_page() && defined( "JQUERY_BANNER" ) ) : ?>
<?php if ( defined( "JQUERY_BANNER" ) && ( is_front_page() || defined( "JQUERY_BANNER_ALL_PAGES" ) ) ) : ?>
<div id="banner">
<?php echo JQUERY_BANNER ?>
</div>
Expand Down
9 changes: 9 additions & 0 deletions themes/jquerymobile.com/functions.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?php

// Allow scripts from cdnjs.cloudflare.com for the download builder
// Allow connections to the amd builder subdomain for the download builder
add_filter( 'jq_content_security_policy', function ( $policy ) {
$policy[ 'script-src' ] = "'self' code.jquery.com cdnjs.cloudflare.com";
$policy[ 'connect-src' ] = "'self' typesense.jquery.com *.jquerymobile.com";
return $policy;
} );