[ Index ]

PHP Cross Reference of osCMax 2.0.4

title

Body

[close]

/includes/functions/ -> article_header_tags.php (source)

   1  <?php
   2  /*

   3  $Id: article_header_tags.php 3 2006-05-27 04:59:07Z user $

   4  

   5    osCMax Power E-Commerce

   6    http://oscdox.com

   7  

   8    Copyright 2006 osCMax

   9  

  10    Released under the GNU General Public License

  11  */
  12  
  13  // Modification of Header Tags Contribution

  14  // WebMakers.com Added: Header Tags Generator v2.0 

  15  
  16  ////

  17  // Get articles_head_title_tag

  18  // TABLES: articles_description

  19  function tep_get_header_tag_articles_title($article_id) {
  20    global $languages_id, $HTTP_GET_VARS; 
  21  
  22    $article_header_tags = tep_db_query("select articles_head_title_tag from " . TABLE_ARTICLES_DESCRIPTION . " where language_id = '" . (int)$languages_id . "' and articles_id = '" . (int)$HTTP_GET_VARS['articles_id'] . "'");
  23    $article_header_tags_values = tep_db_fetch_array($article_header_tags);
  24  
  25    return clean_html_comments($article_header_tags_values['articles_head_title_tag']);
  26    }
  27  
  28  
  29  ////

  30  // Get articles_head_keywords_tag

  31  // TABLES: articles_description

  32  function tep_get_header_tag_articles_keywords($article_id) {
  33    global $languages_id, $HTTP_GET_VARS; 
  34  
  35    $article_header_tags = tep_db_query("select articles_head_keywords_tag from " . TABLE_ARTICLES_DESCRIPTION . " where language_id = '" . (int)$languages_id . "' and articles_id = '" . (int)$HTTP_GET_VARS['articles_id'] . "'");
  36    $article_header_tags_values = tep_db_fetch_array($article_header_tags);
  37  
  38    return $article_header_tags_values['articles_head_keywords_tag'];
  39    }
  40  
  41  
  42  ////

  43  // Get articles_head_desc_tag

  44  // TABLES: articles_description

  45  function tep_get_header_tag_articles_desc($article_id) {
  46    global $languages_id, $HTTP_GET_VARS; 
  47  
  48    $article_header_tags = tep_db_query("select articles_head_desc_tag from " . TABLE_ARTICLES_DESCRIPTION . " where language_id = '" . (int)$languages_id . "' and articles_id = '" . (int)$HTTP_GET_VARS['articles_id'] . "'");
  49    $article_header_tags_values = tep_db_fetch_array($article_header_tags);
  50  
  51    return $article_header_tags_values['articles_head_desc_tag'];
  52    }
  53  
  54  ?>


Generated: Fri Jan 1 13:43:16 2010 Cross-referenced by PHPXref 0.7