How to make a template for amarokCMS
The templates folder is: application/template/front
below is a basic tempate for amarokcms, template variables and functions can be used anywhere in any file
header_html.php
<html>
<head>
<title><?php echo $title; ?></title>
<meta name="keywords" content="<?php echo $keywords;?>" />
<meta name="description" content="<?php echo $description; ?>" />
<link rel="stylesheet" href="<?php echo base_url();?>application/template/front/plan/style.css" type="text/css"/>
</head>
<body>
<div id="wrapper">
<div id="header">
<h1 id="logo"><a href="<?php echo base_url(); ?>"><?php echo $sitename; ?> </a></h1>
</div><!-- #header-->
<div id="menu">
<ul id="nav">
<?php show_menu(); ?>
</ul>
</div>
page_html.php/home_html.php
page_html.php and home_html.php may have the same code
<?php include('header_html.php'); ?>
<div id="middle">
<div id="container">
<div id="content">
<div class="conbox">
<?php echo $content; ?>
</div>
</div><!-- #content-->
</div><!-- #container-->
<div class="sidebar" id="sideRight">
<?php echo $sidebar; ?>
</div><!-- sidebar -->
</div><!-- #middle-->
<?php include('footer_html.php'); ?>
footer_html.php
<div id="footer">
© <?php echo $sitename; ?>
</div><!-- #footer -->
</div><!-- #wrapper -->
</body>
</html>
Preview Image
the template preview image should be a png image with 150px width and 150px height
Style.css
the file that contains your template style