开发者 |
mkdo
mwtsn mkjones |
---|---|
更新时间 | 2014年5月5日 21:29 |
PHP版本: | 3.3 及以上 |
WordPress版本: | 3.9 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
/wp-content/plugins/
directoryIt is:
You can use:
This function will render a Bootstrap 3 carousel. You can use it like so:
exhibition_render_bootstrap( $post_id, $args );
It accepts the ID of the post you wish to render the images of, as well as an array of arguments that dictate how it renders.
Use the defaults like so:
`
$defaults = array(
'id' => 'exhibition_carousel', // If you want to have multiple carousels, you will want to change the id each time
'image_size' => 'golden-ratio-1024', // [ thumbnail | medium | large | full | custom ] - the image size you wish to output
'render_controls' => true, // [ true | false ] - Show the slide left right controls
'render_indicators' => true // [ true | false ] - Show the slide indicators
);
exhibition_render_bootstrap( $post_id, $defaults );
`
The plugin will only render the HTML and JavaScript configuratio for the carousel, you will need to add Bootstrap CSS and JS to your theme.
The image sizes are:
The image sizes will only take effect on images you have uploaded after this plugin has been installed, however there are other plugins out there (such as WPThumb) that will fix this for you.
If it still isnt working, check that you have the 'GD' module installed in your PHP environment. If you havent, you can install it like so:
apt-get install php5-gd
Sure thing, the GitHub repository is right here: (https://github.com/mwtsn/exhibition)