| 1 |
<?php |
<?php |
| 2 |
// $Id: phptemplate.engine,v 1.24.2.2 2005/05/12 20:13:59 adrian Exp $ |
// $Id: phptemplate.engine,v 1.24.2.3 2005/05/12 20:24:19 adrian Exp $ |
| 3 |
|
|
| 4 |
function phptemplate_init($template) { |
function phptemplate_init($template) { |
| 5 |
require_once(realpath('themes/engines/phptemplate/template.php')); |
require_once(realpath('themes/engines/phptemplate/template.php')); |
| 182 |
$text = $value['text'][$i]; |
$text = $value['text'][$i]; |
| 183 |
$link = $value['link'][$i]; |
$link = $value['link'][$i]; |
| 184 |
if (substr($link, 0, 4) == 'http') { |
if (substr($link, 0, 4) == 'http') { |
| 185 |
$links[$type][] = '<a href="'. $link .'"'. drupal_attributes($attributes) .'>'. $text .'</a>'; |
$links[$type][$link] = '<a href="'. $link .'"'. drupal_attributes($attributes) .'>'. $text .'</a>'; |
| 186 |
} |
} |
| 187 |
else { |
else { |
| 188 |
$links[$type][] = l($text, $link, $attributes); |
$links[$type][$link] = l($text, $link, $attributes); |
| 189 |
} |
} |
| 190 |
} |
} |
| 191 |
} |
} |