Example #1
0
 function presscore_favicon()
 {
     $regular_icon_src = of_get_option('general-favicon', '');
     $hd_icon_src = of_get_option('general-favicon_hd', '');
     $output_icon_src = presscore_choose_right_image_based_on_device_pixel_ratio($regular_icon_src, $hd_icon_src);
     if ($output_icon_src) {
         echo dt_get_favicon($output_icon_src);
     }
 }
Example #2
0
?>
	<title><?php 
echo presscore_blog_title();
?>
</title>
	<link rel="profile" href="http://gmpg.org/xfn/11" />
	<link rel="pingback" href="<?php 
bloginfo('pingback_url');
?>
" />
	<!--[if IE]>
	<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
	<![endif]-->
	<style type="text/css" id="static-stylesheet"></style>
	<?php 
echo dt_get_favicon(of_get_option('general-favicon', ''));
// tracking code
if (!is_preview()) {
    echo of_get_option('general-tracking_code', '');
}
?>
	<?php 
wp_head();
?>
</head>

<body <?php 
body_class();
?>
>
 /**
  * Returns favicon tags html.
  *
  * @since 2.2.1
  * 
  * @return string
  */
 function presscore_get_favicon()
 {
     return dt_get_favicon(presscore_choose_right_image_based_on_device_pixel_ratio(of_get_option('general-favicon', ''), of_get_option('general-favicon_hd', '')));
 }