| 2 |
/** |
/** |
| 3 |
* Allow themable wrapping of all comments. |
* Allow themable wrapping of all comments. |
| 4 |
*/ |
*/ |
| 5 |
|
function dark_hostname() { |
| 6 |
|
$host = $_SERVER['SERVER_NAME']; |
| 7 |
|
$port = $_SERVER['SERVER_PORT']=='80' ? '' : ':'.$_SERVER['SERVER_PORT']; |
| 8 |
|
return 'http://' . $host . $port . '/'; |
| 9 |
|
} |
| 10 |
|
|
| 11 |
function dark_node_wrapper($content, $type = null) { |
function dark_node_wrapper($content, $type = null) { |
| 12 |
static $node_type; |
static $node_type; |
| 13 |
if (isset($type)) $node_type = $type; |
if (isset($type)) $node_type = $type; |