function cfct_choose_content_template_default($type = 'content') { $context = cfct_context(); return cfct_filename($type, $context); }
/** * Gets the proper filename (path) to use for displaying a default page based on context * * @param string $dir Directory to use for selecting the template file * @param array $files A list of files to loop through * @return mixed path to the file, false if no file exists * **/ function cfct_choose_general_template_default($dir, $files) { $context = cfct_context(); $keys = array(); if ($context == 'taxonomy') { $keys = array(get_query_var('taxonomy')); } return cfct_filename($dir, $context, $keys); }
function cfct_choose_general_template_default($dir, $files) { $context = cfct_context(); return cfct_filename($dir, $context); }