ZenCart_Documentation  1.5.0
http://www.collinsharper.com
C:/xampp/htdocs/zen-cart/admin/includes/functions/functions_metatags.php
Go to the documentation of this file.
00001 <?php
00015   function zen_get_metatags_title($product_id, $language_id) {
00016     global $db;
00017     $product = $db->Execute("select metatags_title
00018                              from " . TABLE_META_TAGS_PRODUCTS_DESCRIPTION . "
00019                              where products_id = '" . (int)$product_id . "'
00020                              and language_id = '" . (int)$language_id . "'");
00021 
00022     return $product->fields['metatags_title'];
00023   }
00024 
00025   function zen_get_metatags_keywords($product_id, $language_id) {
00026     global $db;
00027     $product = $db->Execute("select metatags_keywords
00028                              from " . TABLE_META_TAGS_PRODUCTS_DESCRIPTION . "
00029                              where products_id = '" . (int)$product_id . "'
00030                              and language_id = '" . (int)$language_id . "'");
00031 
00032     return $product->fields['metatags_keywords'];
00033   }
00034 
00035   function zen_get_metatags_description($product_id, $language_id) {
00036     global $db;
00037     $product = $db->Execute("select metatags_description
00038                              from " . TABLE_META_TAGS_PRODUCTS_DESCRIPTION . "
00039                              where products_id = '" . (int)$product_id . "'
00040                              and language_id = '" . (int)$language_id . "'");
00041 
00042     return $product->fields['metatags_description'];
00043   }
00044 
00048   function zen_get_category_metatags_title($category_id, $language_id) {
00049     global $db;
00050     $category = $db->Execute("select metatags_title
00051                               from " . TABLE_METATAGS_CATEGORIES_DESCRIPTION . "
00052                               where categories_id = '" . (int)$category_id . "'
00053                               and language_id = '" . (int)$language_id . "'");
00054 
00055     return $category->fields['metatags_title'];
00056   }
00057 
00058   function zen_get_category_metatags_description($category_id, $language_id) {
00059     global $db;
00060     $category = $db->Execute("select metatags_description
00061                               from " . TABLE_METATAGS_CATEGORIES_DESCRIPTION . "
00062                               where categories_id = '" . (int)$category_id . "'
00063                               and language_id = '" . (int)$language_id . "'");
00064 
00065     return $category->fields['metatags_description'];
00066   }
00067 
00068   function zen_get_category_metatags_keywords($category_id, $language_id) {
00069     global $db;
00070     $category = $db->Execute("select metatags_keywords
00071                               from " . TABLE_METATAGS_CATEGORIES_DESCRIPTION . "
00072                               where categories_id = '" . (int)$category_id . "'
00073                               and language_id = '" . (int)$language_id . "'");
00074 
00075     return $category->fields['metatags_keywords'];
00076   }
00077 
00082 ?>
 All Data Structures Namespaces Files Functions Variables Enumerations