Link the live show's icon and a Broadcasting Live link to live.php
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
f659b09a0b
commit
f127f73a9b
2 files changed
+7
-3
No files matched your search
@@ -128,7 +128,7 @@ Server-only setup (one-time, or when the schema changes):
|
||||
|
||||
## Updating Show Information
|
||||
|
||||
The `index.php` sidebar is driven by the database. Before a show, queue it on the admin dashboard (or `php cli/set_show.php <slug> <date> <time>`) with its date and Eastern start time; the sidebar then shows its icon, name, start time (with the UTC conversion) and description, switches to "On the Air Now" while live, and falls back to a short "nothing scheduled" note once nothing is queued. Edit descriptions and icons on the show's admin page.
|
||||
The `index.php` sidebar is driven by the database. Before a show, queue it on the admin dashboard (or `php cli/set_show.php <slug> <date> <time>`) with its date and Eastern start time; the sidebar then shows its icon, name, start time (with the UTC conversion) and description, switches to "On the Air Now" while live (with the icon and a "Broadcasting Live" link pointing to `live.php`), and falls back to a short "nothing scheduled" note once nothing is queued. Edit descriptions and icons on the show's admin page.
|
||||
|
||||
The commented-out show blocks in the `#one` section of `index.php` are the hand-written history from before this; leave them as they are.
|
||||
|
||||
@@ -136,5 +136,5 @@ Point listeners to `live.php` while streaming.
|
||||
|
||||
## Planned Work
|
||||
|
||||
- `index.php` will be reworked into more evergreen content (About, schedules, etc.) and will link to `live.php`. Until then, nothing on the site links to `live.php`.
|
||||
- `index.php` will be reworked into more evergreen content (About, schedules, etc.) and will link to `live.php` more prominently. For now, the only links to `live.php` are in the `index.php` sidebar while a show is live (the show icon and a "Broadcasting Live" link).
|
||||
- The admin backend will grow to manage more of the site.
|
||||
@@ -112,11 +112,15 @@ if ($show) {
|
||||
<?php if ($show): ?>
|
||||
<div class="show-heading">
|
||||
<?php if ($icon !== ''): ?>
|
||||
<?php if ($show['started_at']): ?>
|
||||
<a href="live.php" class="image left"><img src="<?= htmlspecialchars($icon, ENT_QUOTES, 'UTF-8') ?>" alt="<?= htmlspecialchars($show['name'], ENT_QUOTES, 'UTF-8') ?> logo" /></a>
|
||||
<?php else: ?>
|
||||
<span class="image left"><img src="<?= htmlspecialchars($icon, ENT_QUOTES, 'UTF-8') ?>" alt="<?= htmlspecialchars($show['name'], ENT_QUOTES, 'UTF-8') ?> logo" /></span>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
<h3><?= htmlspecialchars($show['name'], ENT_QUOTES, 'UTF-8') ?></h3>
|
||||
<?php if ($show['started_at']): ?>
|
||||
<p><strong>Live now</strong></p>
|
||||
<p><strong><a href="live.php">Broadcasting Live</a></strong></p>
|
||||
<?php elseif ($when): ?>
|
||||
<p><strong><?= implode('<br>', array_map(fn($line) => htmlspecialchars($line, ENT_QUOTES, 'UTF-8'), $when)) ?></strong></p>
|
||||
<?php endif; ?>
|
||||
|
||||
Reference in new issue
Block a user