I'm assuming I need to use the favicon function from the Ata header.php file in my CPT template. If that's so, what is the proper PHP code for that?
I THINK it's this:
PHP Code:
<?php
if ($bfa_ata['favicon_file'] != "") {
if($bfa_ata['images_root'] == "atahualpa") {
$imgdir = get_template_directory_uri() . '/images/favicon/';
} else {
// at this point the images_root is 'wp-content'
if(!isset($bfa_ata['ata_images_dir'])
OR ($bfa_ata['ata_images_dir'] == '') ) {
$imgdir = content_url() . '/ata-images/';
} else {
$imgdir = content_url() . '/' . $bfa_ata['ata_images_dir'] . '/';
}
}
?><link rel="shortcut icon" href="<?php echo $imgdir. $bfa_ata['favicon_file']; ?>" />