2012年9月12日

快捷键-2

摘要: 快捷键修改菜单项颜色修改F 切换显示模式,全屏tab 切换或隐藏面板cmd+n 新建cmd+o, 空白处双击, cmd+双击,打开web 像素印刷 英寸分辨率:喷绘,喷墨打印 72印刷 300指定像素无所谓分辨率 阅读全文

posted @ 2012-09-12 10:38 kalintw 阅读(100) 评论(0) 推荐(0)

9.11.2012

摘要: wp theme commentsps资料搜集 阅读全文

posted @ 2012-09-12 04:04 kalintw 阅读(81) 评论(0) 推荐(0)

快捷键-1

摘要: 各种工具模式下,按住cmd+space,点击鼠标, 放大; cmd++,放大 按住option+space,点击鼠标,缩小,cmd+-,缩小cmd+1,实际大小 阅读全文

posted @ 2012-09-12 03:54 kalintw 阅读(98) 评论(0) 推荐(0)

2012年9月1日

html5-1

摘要: <!DOCTYPE html><header><nav><section><aside><article>内部也可以有header和footer<hgroup><footer> 阅读全文

posted @ 2012-09-01 00:12 kalintw 阅读(95) 评论(0) 推荐(0)

2012年8月30日

short code

摘要: 允许非编程人员直接使用的功能函数,并且可以添加属性等,类似标签( from v2.5 on) 1 <?php 2 /* 3 Plugin Name: Map plugin using shortcode 4 Plugin URI: http://www.falkonproductions.com/shortcodeMaps/ 5 Description: This plugin will get a map of whatever parameter is passed. 6 Author: Drew Falkman 7 Version: 1.0 8 Author URI: http:/ 阅读全文

posted @ 2012-08-30 23:16 kalintw 阅读(259) 评论(0) 推荐(0)

Template Tags

摘要: Template Tags 是一些get某些内容并输出的函数,例如经常用于theme可以自己定义一些tempalte tag 函数http://codex.wordpress.org/Template_Tags 1 <?php 2 /* 3 Plugin Name: My copyright plugin 4 Plugin URI: http://www.falkonproductions.com/copyrightPlugin/ 5 Description: This plugin does things you never thought were possible. 6 Autho 阅读全文

posted @ 2012-08-30 23:04 kalintw 阅读(180) 评论(0) 推荐(0)

write a pluggable function

摘要: 方法:写一个函数使用相同的名字,即重写重写wp_new_user_notification,当新用户注册时,发送邮件copy wp_new_user_notification from plug.php, 改写部分邮件内容: 1 <?php 2 /* 3 Plugin Name: Welcome Plugin 4 Plugin URI: http://www.falkonproductions.com/welcome/ 5 Description: This plugin will welcome new users 6 Author: Drew Falkman 7 Version: 1 阅读全文

posted @ 2012-08-30 22:59 kalintw 阅读(152) 评论(0) 推荐(0)

pluggable functions

摘要: pluggable functions都在wp-includes/pluggable.phphttp://codex.wordpress.org/Pluggable_Functions源文件中形式:if ( ! func exit ){ define}如果用户重写了,那么源文件的定义就被忽略,因此pluggable此外,默认的定义在适当需要的时候也可以直接调用 阅读全文

posted @ 2012-08-30 22:49 kalintw 阅读(114) 评论(0) 推荐(0)

a filter

摘要: filter是过滤和处理内容的。两个时刻:发送给client之前;保存进数据库之前。和action不同,需要一个内容参数: 1 <?php 2 function cwmp_add_content_watermark( $content ) 3 { 4 5 // in case we want to add to earlier versions 6 if ( is_feed() ) 7 { 8 return $content . 9 "Created by Falkon Productions, copyright " .... 阅读全文

posted @ 2012-08-30 22:41 kalintw 阅读(175) 评论(0) 推荐(0)

an action

摘要: action是事件,在某一时刻自定义事件或者动作。提交comments的时候,发送邮件: 1 <?php 2 function cc_comment() 3 { 4 global $_REQUEST; 5 $to = "kalintw@gmail.com"; 6 $subject = "new comment posted @ your blog " . $_REQUEST['subject']; 7 $msg = "Message from: " . $_REQUEST['author'] . 阅读全文

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

导航