Skip to content
Snippets Groups Projects
Forked from Ad Aures / Castopod
1079 commits behind the upstream repository.
  • Yassine Doghri's avatar
    c815ecd6
    feat(rss): generate rss feed from podcast entity · c815ecd6
    Yassine Doghri authored
    - refactor episode, podcast and category entities to add dynamic properties
    - refactor Routes when adding feed route
    - update migration files to better fit itunes' and rss' specs
    - update podcast and episode forms
    - add SimpleRSSElement class to Libraries
    - add rss_helper
    - update home controller to redirect if system has only one podcast
    c815ecd6
    History
    feat(rss): generate rss feed from podcast entity
    Yassine Doghri authored
    - refactor episode, podcast and category entities to add dynamic properties
    - refactor Routes when adding feed route
    - update migration files to better fit itunes' and rss' specs
    - update podcast and episode forms
    - add SimpleRSSElement class to Libraries
    - add rss_helper
    - update home controller to redirect if system has only one podcast
url_helper.php 452 B
<?php
/**
 * @copyright  2020 Podlibre
 * @license    https://www.gnu.org/licenses/agpl-3.0.en.html AGPL3
 * @link       https://castopod.org/
 */

/**
 * Return the media base URL to use in views
 *
 * @param  mixed  $uri      URI string or array of URI segments
 * @param  string $protocol
 * @return string
 */
function media_url($uri = '', string $protocol = null): string
{
    return base_url(config('App')->mediaRoot . '/' . $uri, $protocol);
}