Exemplo n.º 1
0
function the_apple_touch_icon_tag()
{
    if (is_apple_touch_icon_enable() && is_mobile()) {
        if (get_apple_touch_icon_url()) {
            echo '<link rel="apple-touch-icon-precomposed" href="' . get_apple_touch_icon_url() . '" />' . "\n";
        } else {
            echo '<link rel="apple-touch-icon-precomposed" href="' . get_stylesheet_directory_uri() . '/images/apple-touch-icon.png" />' . "\n";
        }
    }
}
Exemplo n.º 2
0
wp_enqueue_script('jquery');
if (is_singular()) {
    wp_enqueue_script("comment-reply");
}
wp_head();
?>
<script src="<?php 
echo get_template_directory_uri();
?>
/javascript.js" charset="UTF-8"></script>
<?php 
if (wp_is_mobile()) {
    //モバイル
    ?>
  <?php 
    if (is_apple_touch_icon_enable()) {
        ?>
  <link rel="apple-touch-icon-precomposed" href="<?php 
        echo get_stylesheet_directory_uri();
        ?>
/images/apple-touch-icon.png" />
  <?php 
    }
    ?>
  <link rel="stylesheet" href="<?php 
    echo get_stylesheet_directory_uri();
    ?>
/mobile.css">
  <meta name="viewport" content="width=device-width,initial-scale=1.0">
<?php 
} else {