<meta name="format-detection" content="telephone=no"> <title><?php wp_title('«', true, 'right'); bloginfo('name'); ?> </title> <?php if (judge_device($_SERVER['HTTP_USER_AGENT']) == "mobile") { ?> <link href="<?php bloginfo('template_url'); ?> /css/android.css" rel="stylesheet" type="text/css" media="screen" /> <?php } else { if (judge_device($_SERVER['HTTP_USER_AGENT']) == "pad") { ?> <link href="<?php bloginfo('template_url'); ?> /css/pad.css" rel="stylesheet" type="text/css" media="screen" /> <?php } else { ?> <link href="<?php bloginfo('template_url'); ?> /css/editor-style.css" rel="stylesheet" type="text/css" media="screen" /> <?php } }
<?php get_header(); $mobileDisplay = false; if (judge_device($_SERVER['HTTP_USER_AGENT']) == "mobile") { $mobileDisplay = true; } ?> <div id="main"> <?php if ($mobileDisplay == false) { $posts = query_posts($query_string . '&orderby=date&showposts=6'); } else { $posts = query_posts($query_string . '&orderby=date&showposts=100'); } ?> <?php if (have_posts()) { $post_position = 0; $post_position_first = true; ?> <?php while (have_posts()) { the_post(); ?> <?php if (get_the_ID() == 53) { continue; } ?> <?php