Logo
Explore Help
Register Sign In
saulteafarmer/castopod
1
0
Fork 0
You've already forked castopod
mirror of https://code.castopod.org/adaures/castopod synced 2025-06-06 18:31:05 +00:00
Code Issues Packages Projects Releases Wiki Activity
castopod/app/Helpers/url_helper.php

20 lines
453 B
PHP
Raw Normal View History

feat: write id3v2 tags to episode's audio file - add $mediaRoot parameter in app config - add and refactor helpers : id3, media and url - add basic vscode settings for code formatting in devcontainer.json - set post_max_size to Dockerfile
2020-06-12 19:31:10 +00:00
<?php
refactor: add php_codesniffer to define castopod's coding style based on psr-1 - add .editorconfig file - format all files to comply with castopod's coding style - switch parsedown dependency with commonmark library to better follow commonmark spec for markdown - add prettier command to format all project files at once closes #16
2020-08-04 11:25:22 +00:00
feat: write id3v2 tags to episode's audio file - add $mediaRoot parameter in app config - add and refactor helpers : id3, media and url - add basic vscode settings for code formatting in devcontainer.json - set post_max_size to Dockerfile
2020-06-12 19:31:10 +00:00
/**
* @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);
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 52ms Template: 4ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API