In der Datei Info.php, die sich wie alle anderen Files im Template-Verzeichnis befindet, stehende beschreibende Daten. Der HTML-Code für das Template (Index.php) liegt vollkommen in Ihrer freien Gestaltung.

Die Info.php

In der Datei Info.php, die sich wie alle anderen Files im Template-Verzeichnis befindet, stehende beschreibende Daten.

"template_directory" steht für den Namen des Templateverzeichnis. Der Name des Templates wird in "template_name" festgelegt. Die Version des Templates in der Variablen "template_version" und die unterstützten Websitebaker-Versionen in "template_designed_for". Schließlich noch Autor und Beschreibung des Templates in den Variablen "template_author" und "template_description".

$template_directory = 'Einfach';
$template_name = 'Einfach';
$template_version = '1.0';
$template_designed_for = '2.7.x'

HTML Code für das Template

Der HTML-Code für das Template (Index.php) liegt vollkommen in Ihrer freien Gestaltung. Ob Sie jetzt ein tabellenbasierendes Layout oder ein Liquid-Layout benutzen, bleibt Ihnen vollkommen freigestellt. Wichtig ist nur das Sie die PHP-Codeschnipsel vom verherigen Abschnitt einbauen. Im Beispiel hier haben wir das Template AllCSS aufgeführt.

<?php

if(!defined('WB_URL')) {
  header('Location: ../index.php');
  exit(0);
}

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title><?php page_title(); ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=<?php if(defined('DEFAULT_CHARSET')) { echo DEFAULT_CHARSET; } else { echo 'utf-8'; }?>" />
<meta name="description" content="<?php page_description(); ?>" />
<meta name="keywords" content="<?php page_keywords(); ?>" />
<link href="<?php echo TEMPLATE_DIR; ?>/screen.css" rel="stylesheet" type="text/css" media="screen" />
<link href="<?php echo TEMPLATE_DIR; ?>/print.css" rel="stylesheet" type="text/css" media="print" />
<?php
// this allows to include the optional module files (frontend.css, frontend.js) into the head section
if(function_exists('register_frontend_modfiles')) {
  register_frontend_modfiles('css');
  register_frontend_modfiles('js');
} ?>
<?php
// this allows to add custom information to the head section of your template (WB-->Settings-->Website Header)
echo WEBSITE_HEADER;
?>
</head>
<body>

<div class="main">
 
  <div class="banner">
    <a href="<?php echo WB_URL; ?>/" target="_top"><?php echo WEBSITE_TITLE; ?></a>
    <font color="#D0D0D0">| <?php echo PAGE_TITLE; ?></font>
  </div>
 
  <div class="search_box">
    <?php if(SHOW_SEARCH) { ?>
    <form name="search" action="<?php echo WB_URL.'/search/index.php'; ?>" method="get">
    <input type="text" name="string" class="search_string" />
    <input type="submit" name="submit" value="<?php echo $TEXT['SEARCH']; ?>" class="search_submit" />
    </form>
    <?php } ?>
  </div>
 
  <?php
  // Only show menu items if we are supposed to
  if(SHOW_MENU) {
  ?> 
  <div class="menu">
    <?php
    show_menu();
   
    if(FRONTEND_LOGIN == 'enabled' AND VISIBILITY != 'private' AND $wb->get_session('USER_ID') == '') {
    ?>
    <form name="login" action="<?php echo LOGIN_URL; ?>" method="post" class="login_table">
      <h1><?php echo $TEXT['LOGIN']; ?></h1>
      <?php echo $TEXT['USERNAME']; ?>:
      <input type="text" name="username" style="text-transform: lowercase;" />
      <?php echo $TEXT['PASSWORD']; ?>:
      <input type="password" name="password" />
      <input type="submit" name="submit" value="<?php echo $TEXT['LOGIN']; ?>" style="margin-top: 3px; text-transform: uppercase;" />
      <a href="<?php echo FORGOT_URL; ?>"><?php echo $TEXT['FORGOT_DETAILS']; ?></a>
        <?php if(is_numeric(FRONTEND_SIGNUP)) { ?>
          <a href="<?php echo SIGNUP_URL; ?>"><?php echo $TEXT['SIGNUP']; ?></a>
        <?php } ?>
    </form>
    <?php
    } elseif(FRONTEND_LOGIN == 'enabled' AND is_numeric($wb->get_session('USER_ID'))) {
    ?>
    <form name="logout" action="<?php echo LOGOUT_URL; ?>" method="post" class="login_table">
      <h1><?php echo $TEXT['LOGGED_IN']; ?></h1>
      <?php echo $TEXT['WELCOME_BACK']; ?>, <?php echo $wb->get_display_name(); ?>
      <br />
      <input type="submit" name="submit" value="<?php echo $MENU['LOGOUT']; ?>" />
      <br />
      <a href="<?php echo PREFERENCES_URL; ?>"><?php echo $MENU['PREFERENCES']; ?></a>
      <a href="<?php echo ADMIN_URL; ?>/index.php"><?php echo $TEXT['ADMINISTRATION']; ?></a>
    </form>
    <?php
    }
    ?>
  </div>
  <?php } ?>
 
  <div class="content">
    <?php page_content(); ?>
  </div>
 
  <div class="footer">
    <?php page_footer(); ?>
  </div>
 
</div>



</body>
</html>
Managed Rootserver