forked from HPR/hpr_hub
		
	Added the warning and link to feedback to the shownotes
This commit is contained in:
		| @@ -237,12 +237,13 @@ if ($result = mysqli_query($connection, $query)) { | ||||
|    | ||||
|     $itunes_summary = htmlspecialchars(stripslashes(strip_tags(substr($row["notes"],0,4000)))); | ||||
|     if ( $html == 1 ) { | ||||
|       $show_notes = $row["notes"]; | ||||
|       $warning = "<p>This show has been flagged as $episode_explicit by the host.</p>\n"; | ||||
|       $show_notes = "<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 { | ||||
|       $show_notes = htmlspecialchars(stripslashes(strip_tags($row["notes"]))) ; | ||||
|       $warning = "This show has been flagged as $episode_explicit by the host.\n"; | ||||
|       $show_notes = "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 ); | ||||
|     echo "  <item>\n"; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user