New Zenner
- Join Date:
- Jan 2007
- Posts:
- 30
- Plugin Contributions:
- 0
Link to contact Us page in header
Hi there,
I've made a completely custom template, and I've just realised I need a link to the contact page in the header.
My template does not use any of the side/information boxes so I've been copying the contact us part of the information.php code to my header template to no avail.
here's my most recent attempt :
tpl_header.php - navigation where I want the contact us link
<div id="navigation">
<ul class="back">
<li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CATALOG; ?></a></li>
<?php require($template->get_template_dir('tpl_modules_categories_tabs.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_categories_tabs.php'); ?>
<?php require($template->get_template_dir('tpl_ezpages_bar_header.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_ezpages_bar_header.php'); ?>
<?php require($template->get_template_dir('tpl_contact_us_link_header.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_contact_us_link_header.php'); ?>
</ul>
</div>
```and here's the template tpl_contact_us_link_header.php I created from the contact us excerpt from information.php
<?php
if (DEFINE_CONTACT_US_STATUS <= 1) {
$information[] = '<li><a href="' . zen_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a></li>';
} ?>
cheers.