mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-09-03 03:38:52 +00:00
Move themes to resources/views/themes folder
This commit is contained in:
+18
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
/**
|
||||
* Smarty plugin.
|
||||
*/
|
||||
/**
|
||||
* Smarty magicurl modifier plugin.
|
||||
*
|
||||
* Type: modifier<br>
|
||||
* Name: magicurl<br>
|
||||
* Purpose: turn www addresses into hyperlinks
|
||||
* @author bb
|
||||
* @param string
|
||||
* @return string
|
||||
*/
|
||||
function smarty_modifier_magicurl($str, $dereferrer = '')
|
||||
{
|
||||
return preg_replace('/(https?):\/\/([A-Za-z0-9\._\-\/\?=&;%]+)/is', '<a href="'.$dereferrer.'$1://$2" target="_blank">$1://$2</a>', $str);
|
||||
}
|
||||
Reference in New Issue
Block a user