diff --git a/pages/home.php b/pages/home.php index c34b742..2a81875 100644 --- a/pages/home.php +++ b/pages/home.php @@ -79,7 +79,25 @@ foreach (Colors::$colors as $c) {
= 2 && !$adshown && $SETTINGS['ads_enabled'] && !(new User($_SESSION['uid']))->hasPermission($SETTINGS['noads_permission'])) { + $adshown = true; + ?> + +
+
+ +
+ +
+
+
+
diff --git a/required.php b/required.php index b89147b..66b032d 100644 --- a/required.php +++ b/required.php @@ -38,7 +38,7 @@ if ($_SESSION['mobile'] === TRUE) { . "object-src 'none'; " . "img-src * data:; " . "media-src 'self'; " - . "frame-src 'none'; " + . "frame-src *; " . "font-src 'self'; " . "connect-src *; " . "style-src 'self' 'unsafe-inline'; " @@ -49,7 +49,7 @@ if ($_SESSION['mobile'] === TRUE) { . "object-src 'none'; " . "img-src * data:; " . "media-src 'self'; " - . "frame-src 'none'; " + . "frame-src *; " . "font-src 'self'; " . "connect-src *; " . "style-src 'self' 'nonce-$SECURE_NONCE'; " diff --git a/settings.template.php b/settings.template.php index 096e1fc..a9e71e4 100644 --- a/settings.template.php +++ b/settings.template.php @@ -49,6 +49,16 @@ $SETTINGS = [ // HTML to show when the quota is reached. "{{notecount}}" and "{{notelimit}}" // will be replaced with the number of notes the user has and the note_limit. "quota_msg_content" => "", + // Enable ads to show in the notes view + "ads_enabled" => false, + // Permission needed to hide ads + "noads_permission" => "", + // Ad card HTML content + "ad_html" => "

Ad goes here...

", + // Extra CSS rules for the ad + "ad_css" => "", + // HTML to display below the ad. + "ad_footer" => "", // List of background colors available for users to pick from. "note_colors" => [ // Pastel colors