| 1 |
<?php |
<?php |
| 2 |
// $Id: contaxe.module,v 1.10 2008/02/26 17:09:15 salgar Exp $ |
// $Id: contaxe.module,v 1.11 2008/02/27 09:16:01 salgar Exp $ |
| 3 |
|
|
| 4 |
/* |
/* |
| 5 |
http://drupal.org/project/jquery_update |
http://drupal.org/project/jquery_update |
| 1501 |
if (!variable_get('contaxe_injector_list_enable', FALSE)) return; |
if (!variable_get('contaxe_injector_list_enable', FALSE)) return; |
| 1502 |
$template = variable_get('contaxe_injector_list_template', CONTAXE_INJECTOR_DEFAULT_LIST_TEMPLATE); |
$template = variable_get('contaxe_injector_list_template', CONTAXE_INJECTOR_DEFAULT_LIST_TEMPLATE); |
| 1503 |
$template = contaxe_process_tags($template); |
$template = contaxe_process_tags($template); |
| 1504 |
$node->content['body']['#value'] = strtr($template, array('%teaser' => $node->teaser)); |
$node->teaser = $node->content['body']['#value'] = strtr($template, array('%teaser' => $node->teaser)); |
| 1505 |
return; |
return; |
| 1506 |
} |
} |
| 1507 |
} |
} |
| 1538 |
if ($ret === FALSE) return array(FALSE, '<!-- contaxe: rules say we should not display "' . check_plain($id) . '" -->'); |
if ($ret === FALSE) return array(FALSE, '<!-- contaxe: rules say we should not display "' . check_plain($id) . '" -->'); |
| 1539 |
if ($ret !== TRUE) return array(TRUE, $ret); |
if ($ret !== TRUE) return array(TRUE, $ret); |
| 1540 |
|
|
| 1541 |
|
if (($channel = contaxe_get_channel($banner['channel'])) == '') return ''; |
| 1542 |
$url = 'http://www.contaxe.com/go/go.js?t='; |
$url = 'http://www.contaxe.com/go/go.js?t='; |
| 1543 |
$url.= $banner['format']; |
$url.= $banner['format']; |
| 1544 |
$url.= '&c=' . urlencode($channel); |
$url.= '&c=' . urlencode($channel); |