32 lines
717 B
PHP
32 lines
717 B
PHP
<?php
|
|
include_once './_common.php';
|
|
define('_MAIN_', true);
|
|
|
|
if (defined('G5_THEME_PATH') && file_exists(G5_THEME_PATH . "/main.php")) {
|
|
include_once G5_THEME_PATH . '/main.php';
|
|
return;
|
|
}
|
|
|
|
include_once G5_PATH . '/head.php';
|
|
add_stylesheet('<link rel="stylesheet" href="' . G5_CSS_URL . '/main.css">', 0);
|
|
$main_content = get_site_content('site_main');
|
|
|
|
if (!$main_content) {
|
|
$logo = get_logo();
|
|
$main_content = "";
|
|
if ($logo)
|
|
$main_content .= "<img src='{$logo}' alt='' />";
|
|
}
|
|
?>
|
|
<div id="main_body">
|
|
<?php echo $main_content; ?>
|
|
</div>
|
|
<script>
|
|
$(function () {
|
|
window.onload = function () {
|
|
$('#body').css('opacity', 1);
|
|
};
|
|
});
|
|
</script>
|
|
<?php
|
|
include_once G5_PATH . '/tail.php';
|