Moved css and js rendering to post pages only

This commit is contained in:
Conner Harkness 2025-06-28 08:40:02 -06:00
parent 8218d270ad
commit 6ddb694a56
3 changed files with 19 additions and 18 deletions

View File

@ -31,12 +31,3 @@
}); });
}); });
</script> </script>
<script>
<?php
echo Settings::get(
"js",
"$(function() {\n // My script here.\n});",
true);
?>
</script>

View File

@ -24,12 +24,3 @@
z-index: 1040 !important; z-index: 1040 !important;
} }
</style> </style>
<style>
<?php
echo Settings::get(
"css",
"/* Put in your custom CSS here: */\nblockquote {\n padding: 1em;\n background:\n rgba(127, 127, 127, 0.2);\n border-left: 3px solid rgba(127, 127, 127, 0.2); \n}",
true);
?>
</style>

View File

@ -8,6 +8,15 @@
$intRenderedRows = 0; $intRenderedRows = 0;
?> ?>
<style>
<?php
echo Settings::get(
"css",
"/* Put in your custom CSS here: */\nblockquote {\n padding: 1em;\n background:\n rgba(127, 127, 127, 0.2);\n border-left: 3px solid rgba(127, 127, 127, 0.2); \n}",
true);
?>
</style>
<?php foreach ($varRows as $r): ?> <?php foreach ($varRows as $r): ?>
<?php if (!UserAuth::visible($r["visibility"])) continue; ?> <?php if (!UserAuth::visible($r["visibility"])) continue; ?>
@ -43,6 +52,16 @@
</div> </div>
</div> </div>
<?php endif; ?> <?php endif; ?>
<script>
<?php
echo Settings::get(
"js",
"$(function() {\n // My script here.\n});",
true);
?>
</script>
<?php <?php
} }
} }