2012年8月30日

hook: action and filter

摘要: 两种hook:action 执行taskfilter 过滤文本等信息,在post到web页面之前或者存到数据库之前plugin api:http://codex.wordpress.org/Plugin_APIFilter ref: http://codex.wordpress.org/Plugin_API/Filter_ReferenceAction ref: http://codex.wordpress.org/Plugin_API/Action_Referenceplugin 激活的时刻developer可以做事情,比如创建数据表,判断运行环境等。 1 <?php 2 global 阅读全文

posted @ 2012-08-30 21:33 kalintw 阅读(138) 评论(0) 推荐(0)

plugin head

摘要: http://adambrown.info/p/wp_hookshttp://codex.wordpress.org/plugin头:(http://codex.wordpress.org/Writing_a_Plugin) 1 <?php 2 /* 3 Plugin Name: Name Of The Plugin 4 Plugin URI: http://URI_Of_Page_Describing_Plugin_and_Updates 5 Description: A brief description of the Plugin. 6 Version: The Plugin 阅读全文

posted @ 2012-08-30 21:06 kalintw 阅读(117) 评论(0) 推荐(0)

画笔

摘要: C-N空白处C-click分辨率:印刷至少300画笔:Command-option-z 依次撤销每一步command-shift-z取消刚才的撤销shift+F5 填充硬度流量喷枪shift 画直线F5 画笔调板 阅读全文

posted @ 2012-08-30 20:09 kalintw 阅读(140) 评论(0) 推荐(0)

color

摘要: RGBgray:百分比 0%白色,100%黑色,黑度通道:灰度图像可以理解为分布状况,饱和度分布白的地方分布多白色在rgb每个通道饱和度都高通道变化会改变图像CMYK油墨调和颜色,rgb是三色发光混合青色,洋红,黄,黑web安全色前景色、背景色 切换快捷键 X, DHSB 色相,饱和度,亮度像素和实际物理大小建立联系:分辨率F 全屏切换, 此时空格+鼠标可移动tab显示或隐藏调板 阅读全文

posted @ 2012-08-30 18:31 kalintw 阅读(137) 评论(0) 推荐(0)

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)

导航