This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8" ?> | |
<!-- | |
Name: RSS feed date format to Symphony date format | |
Version: 1.0 | |
Author: Brian Zerangue <brian.zerangue@gmail.com> | |
URL: http://symphony21.com/downloads/xslt/file/20457/ | |
Description: | |
Convert RSS feed date format to Symphony date format | |
Convert RFC 2822 timestamp format to ISO date format (Symphony CMS date format) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function linkify($text) | |
{ | |
$text = eregi_replace('(((f|ht){1}tp://)[-a-zA-Z0-9@:%_\+.~#?&//=]+)', | |
'<a href="\\1">\\1</a>', $text); | |
$text = eregi_replace('([[:space:]()[{}])(www.[-a-zA-Z0-9@:%_\+.~#?&//=]+)', | |
'\\1<a href="http://\\2">\\2</a>', $text); | |
$text = eregi_replace('([_\.0-9a-z-]+@([0-9a-z][0-9a-z-]+\.)+[a-z]{2,3})', | |
'<a href="mailto:\\1">\\1</a>', $text); |
NewerOlder