开发者 | global_1981 |
---|---|
更新时间 | 2012年11月14日 09:01 |
捐献地址: | 去捐款 |
PHP版本: | 3.3.1 及以上 |
WordPress版本: | 3.3.1 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
flickree
to the /wp-content/plugins/
directoryMost flickr plugins are only good for specific use cases. This plugin provides a more sophisticated approach: it can be as simple or as complex as you like. Flickree steers away from elaborate markup, dependencies and full-featured galleries. Instead Flickree empowers you to easily integrate flickr with your gallery of choice - orbit, fancybox, lightbox etc. Having said that, Flickree is pretty gentle on newcomers, providing a thickbox template out of the box. Flickree also comes with three other templates: default (minimal layout), attributed (for creative commons attribution) and caption (Wordpress caption markup).
As thickbox keeps the markup separate from any dependent style and script, we just need to paste
the following code into your functions.php file:
add_action('wp_enqueue_scripts', 'my_enqueue_scripts'); function my_enqueue_scripts(){ wp_enqueue_style('thickbox'); //include thickbox .css wp_enqueue_script('jquery'); //include jQuery wp_enqueue_script('thickbox'); //include Thickbox jQuery plugin }