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); } }
/** * 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', ''))); }