topical media & game development

talk show tell print

professional-search-07-seophp-catalog.php / php



  <?php
  // load the URL factory library
  require_once 'include/url_factory.inc.php';
  // load social bookmarking helper class
  require_once 'include/social_bookmarking.inc.php';
  ?>
  
  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
   "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
  <html>
    <head>
      <title>The SEO Egghead Shop</title>
    </head>
    <body>
      <h1>Products on Promotion at SEO Egghead Shop</h1>
      <ul>
        <li>
          <a href="<?php echo make_category_product_url("Carpenter's Tools", 12, "Belt Sander", 45); ?>">
            Carpenter's Tools: Belt Sander
          </a>
        </li>
        <li>     
          <a href="<?php echo make_category_product_url("SEO Toolbox", 6, "Link Juice", 31); ?>">
            SEO Toolbox: Link Juice
          </a>
        </li>
        <li>
          <a href="<?php echo make_category_product_url("Friends' Shed", 2, "AJAX PHP Book", 42); ?>">
            Friends' Shed: AJAX PHP Book
          </a>
        </li>
      </ul>
      <center>
        <?php 
          // instantiate class by providing link, title, and site name
          social = new SocialBookmarking('http://seophp.example.com/catalog.html', 
                                          'Exciting SEOEgghead Products!',
                                          'SEOEgghead'); 
          // display social bookmarking links
          echo social->getFeedHTML(); 
        ?>
      </center>
      <center>
        <a href=<popup.php> target="_blank">Find more about Professional Search Engine Optimization with PHP!</a>
      </center>
    </body>
  </html>
  


(C) Æliens 20/2/2008

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.