2011-08-25, 21:34:37
Quote:You have included the gallery twice: once before the title (in the template?) and once after the header (in the content of the page). This is not supported.This is not a page. Just gallery preview.
So that is not a problem, just example.
Quote:You don't include the styles and javascript in the header, maybe the <?php get_header(); ?> is missing in the template.I have included <?php get_header(); ?> in the header.php.
Here is header.php code:
Code:
<?php if(!defined('IN_GS')){ die('you cannot load this page directly.'); }
/****************************************************
*
* @File: header.php
* @Package: GetSimple
* @Action: Magazine theme for the GetSimple 3.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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php get_page_clean_title(); ?> | <?php get_site_name(); ?></title>
<?php get_header(); ?>
<meta name="keywords" content="<?php get_page_meta_keywords(); ?>" />
<meta name="description" content="Magazine Theme is a free website template provided by templatemo.com" />
<meta name="robots" content="index, follow" />
<link rel="stylesheet" type="text/css" href="<?php get_theme_url(); ?>/style.css" />
<script language="javascript" type="text/javascript">
function clearText(field)
{
if (field.defaultValue == field.value) field.value = '';
else if (field.value == '') field.value = field.defaultValue;
}
</script>
</head>
<body>
<div id="templatemo_wrapper">
<div id="templatemo_header">
<div id="site_title">
<h1><a href="<?php get_site_url(); ?>"><?php get_site_name(); ?></a></h1>
</div> <!-- end of Logo/Title -->
<div id="header_right">
<a id="rssbut" href="https://twitter.com/#!/<?php get_component('twitter-id'); ?>" target="_blank" title="Subscribe to RSS"></a>
<a id="twbut" href="https://twitter.com/#!/<?php get_component('twitter-id'); ?>" target="_blank" title="Follow us on Twitter"></a>
<a id="facebut" href="http://www.facebook.com/<?php get_component('facebook-id'); ?>" target="_blank" title="Follow us on Facebook"></a>
</div> <!-- end of Social.php -->
<div class="cleaner"></div>
</div>
<div id="templatemo_menu">
<ul>
<?php get_navigation(return_page_slug()); ?>
</ul> <!-- end of Menu -->
<div id="search_box">
<?php get_i18n_search_form(array('slug'=>'search', 'GO'=>'', 'showTags'=>0)); ?>
</div> <!-- end of Search Box -->
<div class="cleaner"></div>
</div> <!-- end of header.php -->
Do I have to include <?php get_header(); ?> in the template.php also?
Here is template.php code:
Code:
<?php if(!defined('IN_GS')){ die('you cannot load this page directly.'); }
/****************************************************
*
* @File: tempate.php
* @Package: GetSimple
* @Action: Magazine theme for the GetSimple 3.0
*
*****************************************************/
# Include the header template
include('header.php');
?>
<div id="slider">
<?php get_i18n_gallery('slider'); ?>
</div> <!-- end of slider -->
<div id="templatemo_main">
<div class="col_w960">
<h2><?php get_page_title(); ?></h2>
<?php get_page_content(); ?>
<div class="cleaner"></div>
</div> <!-- end of page -->
<div class="col_w960">
<div class="col_w450 float_l">
<h2><?php get_component('newsposts-title'); ?></h2>
<?php include('newsposts.php'); ?>
</div> <!-- end of news posts -->
<div class="col_w450 float_r">
<h2><?php get_component('blogposts-title'); ?></h2>
<?php include('blogposts.php'); ?>
</div> <!-- end of blog posts -->
<div class="cleaner"></div>
</div>
<div class="col_w960">
<h2>Latest Projects</h2>
<div class="lp_box">
<h6>Nullam ut neque neque</h6>
<a href="#"><img src="images/templatemo_image_01.jpg" alt="Nullam ut neque neque" /></a>
<p>Etiam ut nibh et urna cursus ultricies nec vel nunc. In hac habitasse platea dictumst. </p>
<a class="more" href="#">More</a>
</div>
<div class="lp_box">
<h6>Sed aliquam mauris</h6>
<a href="#"><img src="images/templatemo_image_02.jpg" alt="Sed aliquam mauris" /></a>
<p>Donec ullamcorper feugiat nunc ut tempus. Sed sodales, nibh ut ultricies pulvinar.</p>
<a class="more" href="#">More</a>
</div>
<div class="lp_box lp_box_last">
<h6>Aliquam aliquet sem</h6>
<a href="#"><img src="images/templatemo_image_03.jpg" alt="Aliquam aliquet sem" /></a>
<p>Praesent auctor quam quis libero venenatis dapibus. Donec ullamcorper feugiat nunc.</p>
<a class="more" href="#">More</a>
</div>
<div class="cleaner"></div>
</div>
<div class="cleaner"></div>
</div> <!-- end of main -->
<?php include('footer.php'); ?>
Thanks in advance.