2012年8月29日

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)

导航