Update files to use global $referrerurl variable

If possible, capture the referring URL to use in links to static website pages. This way when coming from a distributed HPR website and not hackerpublicradio.com, clicking on a page link will return you to the original domain.
This commit is contained in:
2025-09-30 23:32:20 -04:00
parent 4d51954c3c
commit fbac9f923d
6 changed files with 48 additions and 36 deletions

View File

@@ -31,9 +31,9 @@
<link rel="alternate" type="application/rss+xml" title="Hacker Public Radio MP3 RSS" href="https://hackerpublicradio.org/hpr_mp3_rss.php" />
<link rel="alternate" type="application/rss+xml" title="Hacker Public Radio Comments RSS" href="https://hackerpublicradio.org/comments.rss" />
<link rel="license" title="CC BY-SA 4.0" href="https://creativecommons.org/licenses/by-sa/4.0/" />
<link href="https://hackerpublicradio.org/css/hpr.css" rel="stylesheet" />
<link href="<?php echo $referrerurl ?>css/hpr.css" rel="stylesheet" />
<!--[if IE]>
<link rel="stylesheet" href="https://hackerpublicradio.org/css/hpr.css" media="screen" type="text/css" />
<link rel="stylesheet" href="<?php echo $referrerurl ?>css/hpr.css" media="screen" type="text/css" />
<script src="/JavaScript/html5.js"></script>
<![endif]-->
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.5, user-scalable=yes"/>
@@ -42,16 +42,16 @@
<body id="give">
<div id="container" class="shadow">
<header>
<a href="https://hackerpublicradio.org/"><img id="hprlogo" src="https://hackerpublicradio.org/images/hpr_logo.png" alt="hprlogo"></a>
<a href="<?php echo $referrerurl ?>"><img id="hprlogo" src="<?php echo $referrerurl ?>images/hpr_logo.png" alt="hprlogo"></a>
<div id="hpr_banner">
<p id="accessible_menu">
<a href="https://hackerpublicradio.org/sitemap.html">Site Map</a>
<a href="<?php echo $referrerurl ?>sitemap.html">Site Map</a>
- <a href="#maincontent">skip to main content</a>
</p>
<h1 id="sitename">
<a href="https://hackerpublicradio.org/correspondents/index.html">H</a>acker
<a href="https://hackerpublicradio.org/comments_viewer.html">P</a>ublic
<a href="https://hackerpublicradio.org/syndication.html">R</a>adio
<a href="<?php echo $referrerurl ?>correspondents/index.html">H</a>acker
<a href="<?php echo $referrerurl ?>comments_viewer.html">P</a>ublic
<a href="<?php echo $referrerurl ?>syndication.html">R</a>adio
</h1>
<h2>Your ideas, projects, opinions - podcasted.</h2>
<h3>New episodes every weekday Monday through Friday.<br />
@@ -60,14 +60,14 @@
<hr />
<nav class="menu" role="navigation"> <ul>
<li><a href="https://hub.hackerpublicradio.org/calendar.php"><strong>⇧Upload⇧</strong></a></li>
<li><a href="https://hackerpublicradio.org/index.html"><strong>Home »</strong></a></li>
<li><a href="https://hackerpublicradio.org/syndication.html">Get Shows</a></li>
<li><a href="https://hackerpublicradio.org/about.html#so_you_want_to_record_a_podcast">Give Shows</a></li>
<li><a href="https://hackerpublicradio.org/about.html#how_to_help">Contribute</a></li>
<li><a href="https://hackerpublicradio.org/tags.html">Tags</a></li>
<li><a href="https://hackerpublicradio.org/about.html">About</a></li>
<li><a href="https://hackerpublicradio.org/search.html">Search</a></li>
<li><a href="<?php echo $referrerurl ?>calendar.php"><strong>⇧Upload⇧</strong></a></li>
<li><a href="<?php echo $referrerurl ?>index.html"><strong>Home »</strong></a></li>
<li><a href="<?php echo $referrerurl ?>syndication.html">Get Shows</a></li>
<li><a href="<?php echo $referrerurl ?>about.html#so_you_want_to_record_a_podcast">Give Shows</a></li>
<li><a href="<?php echo $referrerurl ?>about.html#how_to_help">Contribute</a></li>
<li><a href="<?php echo $referrerurl ?>tags.html">Tags</a></li>
<li><a href="<?php echo $referrerurl ?>about.html">About</a></li>
<li><a href="<?php echo $referrerurl ?>search.html">Search</a></li>
</ul>
</nav>
</header>