Older Newer
Tue, 18 Jun 2013 22:31:17 . . . . Tim Fountain [Removed spam]


Changes by last author:

Added:
=== Fungsi Untuk Menghilangkan HREF (block function) ===

<code>

<?php

/*

* Smarty plugin

* -------------

* File: block.removehref.php

* Type: block

* Name: removehref

* Purpose: strip <a href="URL">LINK</a> leaving the "LINK"

* -------------

*/

function smarty_block_removehref($params, $content, &$smarty)

{

if ($params['on'] == 1) {

if ($content) {

$content = preg_replace("/<a href=.*?>(.*?)<\/a>/","$1",$content);

}

}

echo $content;

}

?>

</code>