The flypage template resembles the core browse template in many respects. There are also some features that are particular to the flypage template itself.
Let's take a look at the file flypage.tpl.php
as an example. The full text of this file is shown below (with the line numbers added):
1. <?php if( !defined( '_VALID_MOS' ) && !defined( '_JEXEC' ) ) die( 'Direct Access to '.basename(__FILE__).' is not allowed.' ); 2. mm_showMyFileName (__FILE__); 3. ?> 4. 5. <?php echo $buttons_header // The PDF, Email and Print buttons ?> 6. 7. <?php 8. if( $this->get_cfg( 'showPathway' )) { 9. echo "<div class=\"pathway\">$navigation_pathway</div>"; 10. } 11. if( $this->get_cfg( 'product_navigation', 1 )) { 12. if( !empty( $previous_product )) { 13. echo '<a class="previous_page" href="'.$previous_product_url.'">'.shopMakeHtmlSafe($previous_product['product_name']).'</a>'; 14. } 15. if( !empty( $next_product )) { 16...