2022-09-17 20:50:50 +09:00
|
|
|
<?php
|
2024-09-23 11:10:50 +09:00
|
|
|
include_once "./_common.php";
|
2022-09-17 20:50:50 +09:00
|
|
|
define('_MAIN_', true);
|
|
|
|
|
|
2024-09-19 21:03:48 +09:00
|
|
|
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';
|
2024-09-19 20:36:07 +09:00
|
|
|
add_stylesheet('<link rel="stylesheet" href="' . G5_CSS_URL . '/main.css">', 0);
|
2022-09-17 20:50:50 +09:00
|
|
|
$main_content = get_site_content('site_main');
|
|
|
|
|
|
2024-09-19 20:36:07 +09:00
|
|
|
if (!$main_content) {
|
|
|
|
|
$logo = get_logo();
|
|
|
|
|
$main_content = "";
|
|
|
|
|
if ($logo)
|
|
|
|
|
$main_content .= "<img src='{$logo}' alt='' />";
|
2022-09-17 20:50:50 +09:00
|
|
|
}
|
|
|
|
|
?>
|
|
|
|
|
<div id="main_body">
|
2024-09-19 20:36:07 +09:00
|
|
|
<?php echo $main_content; ?>
|
2022-09-17 20:50:50 +09:00
|
|
|
</div>
|
|
|
|
|
<script>
|
2024-09-19 20:36:07 +09:00
|
|
|
$(function () {
|
|
|
|
|
window.onload = function () {
|
|
|
|
|
$('#body').css('opacity', 1);
|
|
|
|
|
};
|
|
|
|
|
});
|
2022-09-17 20:50:50 +09:00
|
|
|
</script>
|
2024-09-19 20:36:07 +09:00
|
|
|
<?php
|
2024-09-19 21:03:48 +09:00
|
|
|
include_once G5_PATH . '/tail.php';
|