Beispiel #1
0
function cfct_choose_content_template_default($type = 'content')
{
    $context = cfct_context();
    return cfct_filename($type, $context);
}
Beispiel #2
0
/**
 * 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);
}
Beispiel #3
0
function cfct_choose_general_template_default($dir, $files)
{
    $context = cfct_context();
    return cfct_filename($dir, $context);
}