摘要: 插件位置:/wp-content/plugins/主文件开始位置加入:如果使用GPL许可,要求插件中包含以下信息:目录结构(参考):/unique-plugin-name — 唯一的插件名称,不要包含空格或者特殊字符unique-plugin-name.php — 唯一的插件名称,插件主文件uninstall.php — 插件的卸载文件/js — JavaScript 文件/css — css 样式表/images — 图片/includes — 存放要包含的 PHP 文件URL路径:plugins_url() — 插件目录的 URL (例如:http://example.com/wp-con 阅读全文
posted @ 2013-08-05 17:45 二分之一黑与白 阅读(184) 评论(0) 推荐(0)
摘要: ember-data.js/** An adapter is an object that receives requests from a store and translates them into the appropriate action to take against your persistence layer. The persistence layer is usually an HTTP API, but may be anything, such as the browser's local storage. ### Creating an Adapter Fir 阅读全文
posted @ 2013-07-02 17:29 二分之一黑与白 阅读(122) 评论(0) 推荐(0)
摘要: 1 /* 2 * application 3 * */ 4 window.Trot = Ember.Application.create(); 5 6 /* 7 * router 8 */ 9 Trot.Router.map(function() {10 this.resource('index', {11 path : '/'12 });13 this.resource('list', {14 path : '/list'15 });16 this.resource('content', {17 ... 阅读全文
posted @ 2013-07-02 15:18 二分之一黑与白 阅读(569) 评论(1) 推荐(0)