\n\n\n";
}
// / den body-Tag hinter head-Ende setzen
$newheader .= "\n\n\n" . $theme_template['body_tag'] . "\n\n";
// / den fuer die Overlib-Funktionen gebrauchten div-layer direkt nach den Bodytag setzen
if (class_exists('Overlib')) {
$newheader .= "
\n";
// / verhindern, dass die Funktion printOverlibDiv() nochmal verwendet wird
if (!defined("_Overlib_Div")) {
define("_Overlib_Div", 1);
}
}
// / ersetzen von eigenen Theme-Elementen, kann veraendert und ergaenzt werden
// / diese Teile werden vor der Ausgabe des headers im Headbereich ersetzt
if (function_exists('theme_replace_header')) {
$newheader = theme_replace_header($newheader);
}
return $newheader;
}
/**
* info
*/
function themesidebox($title, $content, $block = array(), $noecho = 0)
{
global $theme_template;
if (empty($block)) {
$block['position'] = "l";
}
$out = ($block['position'] == "r") ? $theme_template['block_right'] : $theme_template['block_left'];
$out = str_replace('{BLOCK_CONTENT}' , $content , $out);
$out = str_replace('{BLOCK_TITLE}' , $title , $out);
if ($noecho) {
return $out;
} else {
echo $out;
}
}
/**
* info
*/
function thememiddlebox($title, $content, $block = array(), $noecho = 0)
{
global $theme_template;
if (empty($block)) {
$block['position'] = "c";
}
$out = ($block['position'] == "d") ? $theme_template['block_center_down'] : $theme_template['block_center_top'];
$out = str_replace('{BLOCK_CONTENT}' , $content , $out);
$out = str_replace('{BLOCK_TITLE}' , $title , $out);
if ($noecho) {
return $out;
} else {
echo $out;
}
}
/**
* info
*/
function themeindex($x, $x, $x, $x, $x, $x, $x, $x, $x, $x, $x, $x, $story = array())
{
// / $x bedeutet: nicht verwendet, nur zur nuke-Modulkompatibilitaet
global $theme_template;
static $viewcounter;
// nur eine Spalte zulassen :-)
$GLOBALS['storyhome_cols'] = 1;
if (!isset($viewcounter) || ($viewcounter == 2)) $viewcounter = 0;
$viewcounter++;
// mxDebugFuncVars($story);
$buttons = getThemeIndexButtons($story);
$story['buttons'] = "" . implode(" | \n", $buttons) . " |
";
$bmore = ($story['allmorelink']['bodycount']) ? "(" . $story['allmorelink']['bodycount'] . " " . _BYTESMORE . ")" : "";
$story['readmore'] = (empty($bmore)) ? "" : "" . $story['allmorelink']['more'] . "";
$topicimage_pos = ($viewcounter == 1) ? 'left' : 'right';
$topicimage = ($GLOBALS['storyhome_cols'] == 1) ? mxCreateImage($GLOBALS['tipath'] . $story['topicimage'], _TOPIC . ": " . $story['topictext'], 0, "align=\"" . $topicimage_pos . "\" style='padding: 5px; padding-bottom: 3px;'") : "";
$cattitle = (empty($story['cattitle'])) ? "" : " (" . $story['allmorelink']['categorie'] . ")";
$authorinfo = (empty($story['informant']) || $story['informant'] == $GLOBALS['anonymous']) ? getThemeAdminname($story) : " " . $story['allmorelink']['informantlink'] . $story['informant'] . "";
$story['content'] = "" . $topicimage . "\n" . $story['hometext'] . "\n";
$story['infoline'] = ($GLOBALS['storyhome_cols'] == 1) ? _NEWSSUBMITED . " " . $authorinfo . " " . $story['allmorelink']['datetime'] : $story['datetime'];
$story['title'] = strip_tags($story['title']) . $cattitle;
// die oben definierten Variablen in dem passenden templateteil ersetzen
$artvars = theme_define_content();
echo theme_replace_vars($theme_template[$artvars['themeindex'][$viewcounter]], $story);
return;
}
/**
* info
*/
function themearticle($x, $x, $x, $x, $x, $x, $x, $x, $x, $story = array())
{
// / $x bedeutet: nicht verwendet, nur zur nuke-Modulkompatibilitaet
global $theme_template;
// mxDebugFuncVars($story);
// das Topic-Bild
$topicimage = mxCreateImage($GLOBALS['tipath'] . $story['topicimage'], $story['topictext'], 0, "align='left' style='padding-right: 10px; padding-bottom: 5px;'");
$notes = (empty($story['notes'])) ? "" : '' . $story['notes'] . '
';
$authorinfo = (empty($story['informant']) || $story['informant'] == $GLOBALS['anonymous']) ? getThemeAdminname($story) : " " . $story['allmorelink']['informantlink'] . $story['informant'] . "";
$story['infoline'] = ($GLOBALS['storyhome_cols'] == 1) ? _NEWSSUBMITED . " " . $authorinfo . " " . $story['allmorelink']['datetime'] : $story['datetime'];
$story['title'] = strip_tags($story['title']);
$story['content'] = "" . $topicimage . "\n" . $story['hometext'] . "
\n" . $story['bodytext'] . $notes;
// die oben definierten Variablen in dem passenden templateteil ersetzen
echo theme_replace_vars($theme_template['themearticle'], $story);
return;
}
/**
* hier geht es los :)
*/
/**
* spezielle Themefunktionen und Konfigurationseinstellungen
*/
include_once(MX_THEME_DIR . '/functions.php');
/**
* die themeEngine laden
*/
include_once('includes/mx_themes.php');
/**
* und das war's auch schon :))
*/