Adding new page to mini-site is as simple as editing existing one. Let's say we want to add new page Our products, than will contain description of the products in your affiliates can promote.
Creating a new page
we'll create new file products.php in the /affiliate/affiliates directory. The contents of this file will be:
<?php
require_once '../scripts/bootstrap.php';
Gpf_ModuleBase::getStaticPageContent(new Pap_Signup(), 'products.stpl', 'main_static_html_doc.stpl');
?>
Next step is to add the content to this page. We'll create new file products.stpl in the
<div class="MainPanel"><div class="ContentLeft"><div class="ContentRight"><div class="MainInfoContent">
<h1>Our products</h1>
<p>This is the list of products you can promote:
<h2>Repair your car e-book</h2>
This e-book describes the best way to repair your car...
<h2>Repair your bike e-book</h2>
This e-book describes the best way to repair your bike...
</p>
<div class="clear"></div></div></div></div></div>
This will display content with header Our products, and list of two example products. The <div> tags used in the beginning and end of the file are used to enclose the text inside our design.
Adding the page to the menu
Now that we have new page, we want to add it also to the menu so in Configuration->Design->Signup page theme of your merchant panel edit your theme and search for the following files:
topmenu_logged.stpl - menu when user is logged to affiliate panel
or
topmenu_notlogged.stpl - menu when user is not logged to affiliate panel.
or for Dash theme
account_topmenu.stpl
In standard installation these files are the same, but if you want, they allow you to have different
In our case, we only have to add one more line with link to our new page, so the file will look like:
<div class="Navigation">
<div class="NavigationLeft">
<div class="NavigationRight">
<ul class="nav">
<li><a href="index.php">Overview</a></li>
<li><a href="faq.php">FAQ</a></li>
<li><a href="products.php">Our products</a></li>
<li><a href="tour.php">Tour</a></li>
<li><a href="signup.php">Join</a></li>
</ul>
</div>
</div>
</div>
This will add new menu item to the top menu.