the_title(); ?> " width="130" height="130"/> </a> </div> <div class="post-content"> <?php printf('<p>%s</p>', mutheme_excerpt($post->post_content, 320)); ?> </div> <?php } else { ?> <div class="post-content"> <?php printf('<p>%s</p>', mutheme_excerpt($post->post_content, 250)); ?> </div> <?php } ?> </div> </div> <?php } } ?> </div> <div class="pagenavi"> <?php mutheme_pagenavi();
/** * Override wp-head */ function mutheme_head() { ?> <?php if (is_home()) { ?> <title><?php bloginfo('name'); ?> - <?php bloginfo('description'); ?> </title><?php } ?> <?php if (is_search()) { ?> <title><?php _e('Search"'); the_search_query(); echo """; ?> - <?php bloginfo('name'); ?> </title><?php } ?> <?php if (is_single()) { ?> <title><?php echo trim(wp_title('', 0)); ?> - <?php bloginfo('name'); ?> </title><?php } ?> <?php if (is_author()) { ?> <title><?php wp_title(""); ?> - <?php bloginfo('name'); ?> </title><?php } ?> <?php if (is_archive()) { ?> <title><?php single_cat_title(); ?> - <?php bloginfo('name'); ?> </title><?php } ?> <?php if (is_year()) { ?> <title><?php the_time('Y'); ?> - <?php bloginfo('name'); ?> </title><?php } ?> <?php if (is_month()) { ?> <title><?php the_time('F'); ?> - <?php bloginfo('name'); ?> </title><?php } ?> <?php if (is_page()) { ?> <title><?php echo trim(wp_title('', 0)); ?> - <?php bloginfo('name'); ?> </title><?php } ?> <?php if (is_404()) { ?> <title>404 - <?php bloginfo('name'); ?> </title><?php } ?> <?php global $post; if (is_home()) { $keywords = mutheme_settings('keywords'); $description = mutheme_settings('description'); } elseif (is_single()) { $keywords = get_post_meta($post->ID, "keywords", true); if ($keywords == "") { $tags = wp_get_post_tags($post->ID); foreach ($tags as $tag) { $keywords = $keywords . $tag->name . ","; } $keywords = rtrim($keywords, ', '); } $description = get_post_meta($post->ID, "description", true); if ($description == "") { if ($post->post_excerpt) { $description = $post->post_excerpt; } else { $description = mutheme_excerpt($post->post_content, 200); } } } elseif (is_page()) { $keywords = get_post_meta($post->ID, "keywords", true); $description = get_post_meta($post->ID, "description", true); } elseif (is_category()) { $keywords = single_cat_title('', false); $description = category_description(); } elseif (is_tag()) { $keywords = single_tag_title('', false); $description = tag_description(); } $keywords = trim(strip_tags($keywords)); $description = trim(strip_tags($description)); ?> <meta name="keywords" content="<?php echo $keywords; ?> "/> <meta name="description" content="<?php echo $description; ?> "/> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta name="renderer" content="webkit|ie-comp|ie-stand"> <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no"> <link rel="Shortcut Icon" href="<?php echo mutheme_settings('favicon'); ?> " type="image/x-icon"/> <?php wp_head(); }