Linux 软件免费装

Click

开发者 benallfree
更新时间 2011年9月20日 01:49
PHP版本: 3.1.2 及以上
WordPress版本: 3.1.2

标签

library developer sass mvc haml activerecord

下载

1.0.0 1.1.0 1.1.1 1.1.2

详情介绍:

Click makes it easy to implement an MVC pattern in WordPress. Your plugins will be more organized, stable, and standards-compliant. It has special trappings for easily hooking into WordPress events. Make widgets, dedicated admin pages, and more. Features:

安装:

Click can be installed as a stand-alone WP plugin or as a subfolder of your plugin. If you ship your plugin, you must include a copy of Click with it as a subfolder so users don't have to install this developer plugin. If the user is running multiple plugins that ship with Click, only the first one will be loaded. Please remember that WordPress.org SVN does not support svn:externals. To install Click as a separate plugin: cd wp-content/plugins svn checkout http://plugins.svn.wordpress.org/clicklib/trunk clicklib To install in a subfolder of your own plugin: cd wp-content/plugins/my_plugin svn checkout http://plugins.svn.wordpress.org/clicklib/trunk clicklib find clicklib -name .svn | xargs rm -rf # remove all the .svn folders svn add clicklib Now, create your plugin PHP file as follows: wp-content/plugins/my_plugin/my_plugin.php <?php / -- plugin meta info, you know the drill -- / $plugin_fpath = dirname(FILE); $lib = 'clicklib/click.php'; if(file_exists($plugin_fpath."/$lib")) require($lib); else require($plugin_fpath."/../$lib"); That will load first from the main clicklib plugin, or from the local subfolder copy if the main plugin is missing. That's it!

更新日志:

1.1.2 1.1.0 1.0.0