Revision [776]
Most recent edit made on 2010-03-22 15:45:17 by RyanHaudenschiltAdditions:
(todo)
(todo)
(todo)
Revision [775]
Edited on 2010-03-22 15:44:21 by RyanHaudenschiltAdditions:
While it is recommended the navigation.php template file is optional. The navigation information could be put inside the header template.
Footer Template (footer.php)
Navigation Template (navigation.php)
Deletions:
Optionally, most themes will include a navigation.php template file, but this is not necessary. The navigation information could be put inside the header template.
Revision [774]
Edited on 2010-03-22 15:42:23 by RyanHaudenschiltAdditions:
Creating a new Theme for older versions.
Deletions:
Creating a new Theme for older versions.
Revision [773]
Edited on 2010-03-22 15:41:45 by RyanHaudenschiltAdditions:
footer.php
navigation.php
style.css
navigation.php
style.css
Deletions:
footer.php
navigation.php
style.css
navigation.php
style.css
Revision [772]
Edited on 2010-03-22 15:41:17 by RyanHaudenschiltAdditions:
images/
header.php
header.php
Deletions:
images/
header.php
header.php
Revision [771]
Edited on 2010-03-22 15:40:38 by RyanHaudenschiltAdditions:
<div id="header">
<div id="logo">
<a href="<?php echo $TMPL['path']; ?>index.php">
</div><img src="<?php echo $TMPL['path']; ?>logo.jpg"/>
</a>Deletions:
<div id="header">
<div id="logo">
</div>
<a href="<?php echo $TMPL['path']; ?>index.php">
<img src="<?php echo $TMPL['path']; ?>logo.jpg"/>
</a>Revision [770]
Edited on 2010-03-22 15:40:18 by RyanHaudenschiltAdditions:
<img src="<?php echo $TMPL['path']; ?>logo.jpg"/>
Deletions:
<img src="<?php echo $TMPL['path']; ?>themes/default/images/logo.jpg"/>
Revision [769]
Edited on 2010-03-22 15:39:59 by RyanHaudenschiltAdditions:
<div id="header">
<div id="logo">
</div>
<a href="<?php echo $TMPL['path']; ?>index.php">
<img src="<?php echo $TMPL['path']; ?>themes/default/images/logo.jpg"/>
</a>Deletions:
<div id="header">
<div id="logo">
<a href="<?php echo $TMPL['path']; ?>index.php">
</div><img src="<?php echo $TMPL['path']; ?>themes/default/images/logo.jpg"/>
</a>Revision [768]
Edited on 2010-03-22 15:39:31 by RyanHaudenschiltAdditions:
<?php
$TMPL['default-url'] = getDefaultNavUrl();
$TMPL['nav-link'] = getNavLinks();
include_once('navigation.php');
?>
$TMPL['default-url'] = getDefaultNavUrl();
$TMPL['nav-link'] = getNavLinks();
include_once('navigation.php');
?>
Deletions:
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="author" content="Ryan Haudenschilt" />
<link rel="shortcut icon" href="<?php echo $TMPL['path']; ?>themes/favicon.ico"/>
<link rel="stylesheet" type="text/css" href="<?php echo getTheme($_SESSION['login_id'], $TMPL['path']); ?>style.css"/>
<script type="text/javascript" src="<?php echo $TMPL['path']; ?>inc/prototype.js"></script>
<script type="text/javascript" src="<?php echo $TMPL['path']; ?>inc/fcms.js"></script>
<?php $TMPL['default-url'] = getDefaultNavUrl(); $TMPL['nav-link'] = getNavLinks(); include_once('navigation.php'); ?>
<meta name="author" content="Ryan Haudenschilt" />
<link rel="shortcut icon" href="<?php echo $TMPL['path']; ?>themes/favicon.ico"/>
<link rel="stylesheet" type="text/css" href="<?php echo getTheme($_SESSION['login_id'], $TMPL['path']); ?>style.css"/>
<script type="text/javascript" src="<?php echo $TMPL['path']; ?>inc/prototype.js"></script>
<script type="text/javascript" src="<?php echo $TMPL['path']; ?>inc/fcms.js"></script>
<?php $TMPL['default-url'] = getDefaultNavUrl(); $TMPL['nav-link'] = getNavLinks(); include_once('navigation.php'); ?>
Revision [767]
Edited on 2010-03-22 15:38:05 by RyanHaudenschiltDeletions:
Revision [766]
Edited on 2010-03-22 15:37:44 by RyanHaudenschiltAdditions:
This file includes the basic html tags you would expect to see: the start of the html, body, and the #content tag, as well as the full title, meta, head tags.
The header is also where the #heading, which includes the logo and the "Welcome username | My Settings | Login/Logout" section.
And finally the page title is included in the header.
Here is an extremely stripped down version of a header file (please don't use this in your theme as it won't work).
<html>
<title><?php echo getSiteName(); ?></title>
The header is also where the #heading, which includes the logo and the "Welcome username | My Settings | Login/Logout" section.
And finally the page title is included in the header.
Here is an extremely stripped down version of a header file (please don't use this in your theme as it won't work).
<html>
<title><?php echo getSiteName(); ?></title>
<img src="<?php echo $TMPL['path']; ?>themes/default/images/logo.jpg"/>
Deletions:
<!DOCTYPE html PUBLIC "-W3CDTD XHTML 1.0 StrictEN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"∞>
<html xmlns="http://www.w3.org/1999/xhtml∞"
xml:lang="<?php echo _('lang'); ?>" lang="<?php echo _('lang'); ?>">
<title><?php echo getSiteName() . " - " . _('powered by') . " " . getCurrentVersion(); ?></title>
<?php if (isset($TMPL['javascript'])) { echo $TMPL['javascript']; } ?>
<p>
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"∞>
<html xmlns="http://www.w3.org/1999/xhtml∞"
xml:lang="<?php echo _('lang'); ?>" lang="<?php echo _('lang'); ?>">
<title><?php echo getSiteName() . " - " . _('powered by') . " " . getCurrentVersion(); ?></title>
<?php if (isset($TMPL['javascript'])) { echo $TMPL['javascript']; } ?>
<img src="<?php echo $TMPL['path']; ?>themes/default/images/logo.jpg" alt="<?php echo getSiteName();?>"/>
<?php echo _('Welcome'); ?> <a href="<?php echo $TMPL['path'] . "profile.php?member=" . $_SESSION['login_id']; ?>"><?php echo getUserDisplayName($_SESSION['login
<a href="<?php echo $TMPL['path'] . "settings.php";?>"><?php echo _('My Settings'); ?></a> |
<a href="<?php echo $TMPL['path'] . "logout.php"; ?>"><?php echo _('Logout'); ?></a>
</p><a href="<?php echo $TMPL['path'] . "settings.php";?>"><?php echo _('My Settings'); ?></a> |
<a href="<?php echo $TMPL['path'] . "logout.php"; ?>"><?php echo _('Logout'); ?></a>
Revision [765]
Edited on 2010-03-22 15:27:36 by RyanHaudenschiltAdditions:
The header.php is a global file that will be included on every page in FCMS. Any information like css or javascript that you would like to see on each page should be inserted here.
%%(php)
<!DOCTYPE html PUBLIC "-W3CDTD XHTML 1.0 StrictEN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"∞>
<html xmlns="http://www.w3.org/1999/xhtml∞"
xml:lang="<?php echo _('lang'); ?>" lang="<?php echo _('lang'); ?>">
%%(php)
<!DOCTYPE html PUBLIC "-W3CDTD XHTML 1.0 StrictEN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"∞>
<html xmlns="http://www.w3.org/1999/xhtml∞"
xml:lang="<?php echo _('lang'); ?>" lang="<?php echo _('lang'); ?>">
Deletions:
%%(language-ref)
<!DOCTYPE html PUBLIC "-W3CDTD XHTML 1.0 StrictEN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"∞>
<html xmlns="http://www.w3.org/1999/xhtml∞" xml:lang="<?php echo _('lang'); ?>" lang="<?php echo _('lang'); ?>">
<!DOCTYPE html PUBLIC "-W3CDTD XHTML 1.0 StrictEN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"∞>
<html xmlns="http://www.w3.org/1999/xhtml∞" xml:lang="<?php echo _('lang'); ?>" lang="<?php echo _('lang'); ?>">
Revision [764]
Edited on 2010-03-22 15:24:37 by RyanHaudenschiltAdditions:
Header Template (header.php)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo _('lang'); ?>" lang="<?php echo _('lang'); ?>">
<head>
<title><?php echo getSiteName() . " - " . _('powered by') . " " . getCurrentVersion(); ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="author" content="Ryan Haudenschilt" />
<link rel="shortcut icon" href="<?php echo $TMPL['path']; ?>themes/favicon.ico"/>
<link rel="stylesheet" type="text/css" href="<?php echo getTheme($_SESSION['login_id'], $TMPL['path']); ?>style.css"/>
<script type="text/javascript" src="<?php echo $TMPL['path']; ?>inc/prototype.js"></script>
<script type="text/javascript" src="<?php echo $TMPL['path']; ?>inc/fcms.js"></script>
<?php if (isset($TMPL['javascript'])) { echo $TMPL['javascript']; } ?>
</head>
<body id="top">
<div id="header">
<div id="logo">
<a href="<?php echo $TMPL['path']; ?>index.php">
<img src="<?php echo $TMPL['path']; ?>themes/default/images/logo.jpg" alt="<?php echo getSiteName();?>"/>
</a>
</div>
<p>
<?php echo _('Welcome'); ?> <a href="<?php echo $TMPL['path'] . "profile.php?member=" . $_SESSION['login_id']; ?>"><?php echo getUserDisplayName($_SESSION['login
<a href="<?php echo $TMPL['path'] . "settings.php";?>"><?php echo _('My Settings'); ?></a> |
<a href="<?php echo $TMPL['path'] . "logout.php"; ?>"><?php echo _('Logout'); ?></a>
</p>
</div>
<?php $TMPL['default-url'] = getDefaultNavUrl(); $TMPL['nav-link'] = getNavLinks(); include_once('navigation.php'); ?>
<!-- ############ CONTENT START ############ -->
<div id="content">
<div id="pagetitle"><?php echo $TMPL['pagetitle']; ?></div>Revision [763]
Edited on 2010-03-22 15:18:17 by RyanHaudenschiltAdditions:
Since FCMS 2.2, all themes must have at least an header.php, and footer.php template files, plus a CSS file named style.css.
Optionally, most themes will include a navigation.php template file, but this is not necessary. The navigation information could be put inside the header template.
Optionally, most themes will include a navigation.php template file, but this is not necessary. The navigation information could be put inside the header template.
footer.php
navigation.php
navigation.php
Deletions:
Since FCMS 1.9, all themes must have at least an adminnav.php, header.php, and sidenav.php template files, plus a CSS file named style.css.
adminnav.php
sidenav.php
sidenav.php
Revision [762]
Edited on 2010-03-22 15:15:44 by RyanHaudenschiltAdditions:
Deletions:
Revision [760]
Edited on 2010-03-22 15:13:58 by RyanHaudenschiltAdditions:
Revision [541]
Edited on 2009-05-11 20:36:38 by RyanHaudenschiltNo differences.
Revision [540]
Edited on 2009-05-11 20:35:55 by RyanHaudenschiltAdditions:
Since FCMS 1.9, all themes must have at least an adminnav.php, header.php, and sidenav.php template files, plus a CSS file named style.css.
Themes can have more CSS files, templates or images, but the above files are the minimum requirements.
Below is an example of the directory structure for a typical theme.
themes/
Themes can have more CSS files, templates or images, but the above files are the minimum requirements.
Below is an example of the directory structure for a typical theme.
themes/
alpha/
smileys/
myNewTheme/
datechooser.css
favicon.ico
login.css
images/
adminnav.php
header.php
sidenav.php
style.css
beta/adminnav.php
header.php
sidenav.php
style.css
images/
adminnav.php
header.php
sidenav.php
style.css
default/adminnav.php
header.php
sidenav.php
style.css
smileys/
myNewTheme/
datechooser.css
favicon.ico
login.css
Deletions:
All themes for FCMS consist of at least one .css file and either make use of the existing images for the default theme or include their own images located in a directory, named the same as the theme itself. See example below.
/themes
default.css
login.css
your_new_theme.css
/themes
/images
datechooser.css/default
/smileys
/your_new_theme
/smileys
/your_new_theme
default.css
login.css
your_new_theme.css
Revision [537]
Edited on 2009-05-11 20:27:43 by RyanHaudenschiltAdditions:
Revision [195]
The oldest known version of this page was edited on 2008-10-01 10:31:54 by RyanHaudenschiltHow to Create a new Theme
All themes for FCMS consist of at least one .css file and either make use of the existing images for the default theme or include their own images located in a directory, named the same as the theme itself. See example below.
/themes
/images
datechooser.css/default
/smileys
/your_new_theme
/smileys
/your_new_theme
default.css
login.css
your_new_theme.css
