2012年8月29日

html-table

摘要: theadtfootcolspancolgroupcol 阅读全文

posted @ 2012-08-29 21:08 kalintw 阅读(86) 评论(0) 推荐(0)

theme - 8

摘要: copy from content-single.php of 2011, paste into the new content-posts.phprename content-recipes.php to content.php, add condition 阅读全文

posted @ 2012-08-29 13:38 kalintw 阅读(76) 评论(0) 推荐(0)

theme - 7

摘要: 2. 主要内容调用放到一个文件save content-recipes.php as custom-content.php将content-recipes.php内容清空,加入:1 <?php2 get_template_part( 'custom-content' ); 3 ?>在custom-content.php中再判断是哪种post type 阅读全文

posted @ 2012-08-29 13:11 kalintw 阅读(85) 评论(0) 推荐(0)

theme - 6

摘要: 1. 每个post type 自己的template,当各种type内容类型很不同时适用content-recipes.phpcontent-photos.php - 改变内容展现方式,页面结构、位置content-videos.php内容调用API:1 <?php the_content(); ?>2 <?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', & 阅读全文

posted @ 2012-08-29 12:47 kalintw 阅读(88) 评论(0) 推荐(0)

theme - 5

摘要: 判断taxonomy有没有设置值: 1 <div class="entry-meta-custom"> 2 <?php if (get_the_term_list( $post->ID, 'meal-type' ) != null ) { ?> 3 <div>Meal type: <?php echo get_the_term_list( $post->ID, 'meal-type', '', ', ', '' ); ?></di 阅读全文

posted @ 2012-08-29 11:54 kalintw 阅读(88) 评论(0) 推荐(0)

theme - 4

摘要: add the taxonomy info, in content-recipes.php:<?php //if ( 'post' == get_post_type() ) : ?>1 <div class="entry-meta-custom">2 <div>Meal type: <?php echo get_the_term_list( $post->ID, 'meal-type', '', ', ', '' ); ?></div& 阅读全文

posted @ 2012-08-29 11:47 kalintw 阅读(103) 评论(0) 推荐(0)

theme - 3

摘要: 自定义post typesingle-$typename.php如果是child theme,还要遵守具体父theme的约定。例如2011的single.php里的约定:<?php get_template_part('content', 'single'); ?>约定content-single.php1. create a new and override single.php, 修改下面这行,最后删除single-recipes.php:1 <?php get_template_part( 'content', get_p 阅读全文

posted @ 2012-08-29 11:23 kalintw 阅读(86) 评论(0) 推荐(0)

2011theme

摘要: single.php: 1 <?php 2 3 get_header(); ?> 4 5 <div id="primary"> 6 <div id="content" role="main"> 7 8 <?php while ( have_posts() ) : the_post(); ?> 9 10 <nav id="nav-single">11 <h3 class="assistive-text"><?php _e 阅读全文

posted @ 2012-08-29 10:47 kalintw 阅读(100) 评论(0) 推荐(0)

theme - 2

摘要: 增加新的post type 1 // Add new post type for Recipes 2 add_action('init', 'cooking_recipes_init'); 3 function cooking_recipes_init() 4 { 5 $recipe_labels = array( 6 'name' => _x('Recipes', 'post type general name'), 7 'singular_name' => _x('Recip 阅读全文

posted @ 2012-08-29 10:17 kalintw 阅读(165) 评论(0) 推荐(0)

theme - 1

摘要: wp两种内容:post & pagepost:以category的形式组织进一步由tag按照发布时间逆序自定义custom fieldcommentsfeatured imagepage:独立parent-childtemplatemenucommentsfeatured image 阅读全文

posted @ 2012-08-29 10:13 kalintw 阅读(102) 评论(0) 推荐(0)

Userful UI test framework

摘要: Frankhttp://www.testingwithfrank.comUISpechttp://code.google.com/p/uispec/FoneMonkeyhttp://www.gorillalogic.com/testing-tools/meet-the-monkeyssikulihttp://sikuli.org/icukehttps://github.com/unboxed/icukeZucchinihttp://www.zucchiniframework.org/KIFhttps://github.com/square/KIF 阅读全文

posted @ 2012-08-29 10:10 kalintw 阅读(132) 评论(0) 推荐(0)

吐槽 - 1

摘要: 1.人生就像耗子钻水管,表现在两个方面,其一,只能前进,木得退路,其二,耗子以为能把握自己的命运,其实前途早已注定。2.人生大可不必太过悲观,即使你的心上人没有乘着七彩的云朵来迎接你,只要你朝着太阳撒泡尿,也能创造出属于你的独一无二的彩虹。3.嫉妒,其实是一门移花接木的高深功夫,它能成功的把对自己不努力的愤怒成功转嫁到另外一个比你强的人身上,从而减轻自己的心理负担。 阅读全文

posted @ 2012-08-29 10:09 kalintw 阅读(116) 评论(0) 推荐(0)

导航