forked from HPR/hpr_hub
Added the warning and link to feedback to the shownotes
This commit is contained in:
parent
17e46fea75
commit
297d2040db
@ -237,12 +237,13 @@ if ($result = mysqli_query($connection, $query)) {
|
|||||||
|
|
||||||
$itunes_summary = htmlspecialchars(stripslashes(strip_tags(substr($row["notes"],0,4000))));
|
$itunes_summary = htmlspecialchars(stripslashes(strip_tags(substr($row["notes"],0,4000))));
|
||||||
if ( $html == 1 ) {
|
if ( $html == 1 ) {
|
||||||
$show_notes = $row["notes"];
|
$show_notes = "<p>This show has been flagged as $episode_explicit by the host.</p>\n";
|
||||||
$warning = "<p>This show has been flagged as $episode_explicit by the host.</p>\n";
|
$show_notes = $show_notes . $row["notes"];
|
||||||
|
$show_notes = $show_notes . "<p><a href=\"https://hackerpublicradio.org/eps/hpr${id}/index.html#comments\">Provide <strong>feedback</strong> on this episode</a>.</p>";
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$show_notes = htmlspecialchars(stripslashes(strip_tags($row["notes"]))) ;
|
$show_notes = "This show has been flagged as $episode_explicit by the host.\n";
|
||||||
$warning = "This show has been flagged as $episode_explicit by the host.\n";
|
$show_notes = $show_notes . htmlspecialchars(stripslashes(strip_tags($row["notes"]))) ;
|
||||||
}
|
}
|
||||||
$warning = utf8_encode ( $warning );
|
$warning = utf8_encode ( $warning );
|
||||||
echo " <item>\n";
|
echo " <item>\n";
|
||||||
|
Loading…
Reference in New Issue
Block a user