function pl_stations() { return json_encode(active_stations()); }
</h2> </header> --> <div class="box alt container"><?php if (!$callsign) { ?> <section class="feature left"> <a href="#" class="image icon fa-signal"><img src="/images/pic01.jpg" alt="" /><div id="description"></div></a> <div class="content"> <h3>Choose the station</h3> <div id='station-search-box'> <i class="fa fa-search"></i> <input type="text" placeholder="Search" id='station-query'> </div> <ul class="radio-group group" id="station"><?php foreach (active_stations() as $station) { echo '<li><a desc="' . $station['description'] . '" class="button">' . $station['callsign'] . '</a></li>'; } ?> </ul> <a href="#volunteer">Volunteer to add a station!</a> </div> </section> <?php } ?> <section class="feature right"> <a href="#" class="image icon fa-clock-o"><img src="/images/pic02.jpg" alt="" /></a> <div class="content" id='day-picker'> <label for="day">day of week to record on</label>
function emit_active_stations(){ foreach(active_stations() as $station) { echo '<li><a freq="' . $station['frequency'] . '" desc="' . $station['description'] . '" class="button">' . ($station['callsign']) . '</a></li>'; } }