Merge pull request 'Added the warning and link to feedback to the shownotes' (#59) from I52_Add_comment_link_to_the_end_of_the_shownotes_in_the_rss_feed into main
Reviewed-on: #59
This commit is contained in:
commit
06af0e06be
@ -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