コード例 #1
0
ファイル: config.php プロジェクト: alfredpp/sarath-portfolio
 function thb_icons()
 {
     $favicon = thb_get_option('favicon');
     $touch_icon_57 = thb_get_option('touch_icon_57');
     $touch_icon_72 = thb_get_option('touch_icon_72');
     $touch_icon_114 = thb_get_option('touch_icon_114');
     $touch_icon_144 = thb_get_option('touch_icon_144');
     if (!empty($favicon)) {
         thb_link('Shortcut Icon', $favicon, 'image/x-icon');
     }
     if (!empty($touch_icon_57)) {
         thb_link('apple-touch-icon', $touch_icon_57, null, array('sizes' => '57x57'));
     }
     if (!empty($touch_icon_72)) {
         thb_link('apple-touch-icon', $touch_icon_72, null, array('sizes' => '72x72'));
     }
     if (!empty($touch_icon_114)) {
         thb_link('apple-touch-icon', $touch_icon_114, null, array('sizes' => '114x114'));
     }
     if (!empty($touch_icon_144)) {
         thb_link('apple-touch-icon', $touch_icon_144, null, array('sizes' => '144x144'));
     }
 }
コード例 #2
0
 function thb_stylesheet($url, $media = 'all')
 {
     thb_link('stylesheet', $url, 'text/css', array('media' => $media));
 }