Moderators: jmacgreg, michael, John
{if $archive->getRecordCount() != 0}
<li>» <a href="{url path=$archive->getArchiveId()}">{$archive->getTitle()|escape}</a> {translate key="browse.recordCount" count=$archive->getRecordCount()}</li> {else}
<li>» {$archive->getTitle()|escape} {translate key="browse.recordCount" count=$archive->getRecordCount()}</li>
{/if}<li>» <a href="{url path=$archive->getArchiveId()}">{$archive->getTitle()|escape}</a> {translate key="browse.recordCount" count=$archive->getRecordCount()}</li>// In: A plain text string
// Out: Same text string but with <a href/> inserted
// Remarks: Untested function.
function insert_hrefs_in_text ( $text ) {
return preg_replace(
array(
"/[^\"'=]((http|ftp|https):\/\/[^\s\"']+)/i"
),
array(
"<a href=\"\\1\">\\1</a>"
),
$text
);
}Return to Open Harvester Systems Support and Development
Users browsing this forum: No registered users and 1 guest