* * * * * * * * if [[entrykeywords:whatever]] is used, the output consists not only of * * the entry's keywords but also the categories associated with the entry * *************************************************************************** *************************************************************************** * File: snippet_entrykeywords.php * * Version: 2005-06-11 * *************************************************************************** * This is the main file. * *************************************************************************** */ if(!defined('INPIVOT')){ exit('not in pivot'); } // do not access this page directly function snippet_entrykeywords($category = "0") { global $db; $to_return = ""; $max = count ($db->entry['category']); if ($category != "0") { for ($i=0;$i<$max;$i++) $categories .= $db->entry['category'][$i].", "; $to_return .= $categories; } $to_return .= $db->entry['keywords']; return $to_return; } ?>