コード例 #1
0
ファイル: utility.php プロジェクト: alicam/vanilla-theme
function cfct_choose_content_template_default($type = 'content')
{
    $context = cfct_context();
    return cfct_filename($type, $context);
}
コード例 #2
0
ファイル: utility.php プロジェクト: rascoop/carrington
/**
 * 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);
}
コード例 #3
0
ファイル: utility.php プロジェクト: rascoop/carrington
function cfct_choose_general_template_default($dir, $files)
{
    $context = cfct_context();
    return cfct_filename($dir, $context);
}