Skip to content

Commit

Permalink
Bump to v1.10 for release. Update changelog.
Browse files Browse the repository at this point in the history
  • Loading branch information
ewels committed Mar 25, 2019
1 parent b478984 commit 8f65e0c
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 16 deletions.
14 changes: 9 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
CPT Bootstrap Carousel
======================

A custom post type for choosing images and content which outputs a [carousel](http://getbootstrap.com/javascript/#carousel) from [Twitter Bootstrap](http://www.getbootstrap.com) using the shortcode `[image-carousel]`.
A custom post type for choosing images and content which outputs a [carousel](http://getbootstrap.com/javascript/#carousel) from [Twitter Bootstrap](http://www.getbootstrap.com) using the shortcode `[image-carousel]`.

The plugin assumes that you're already using Bootstrap, so you need to load the Bootstrap javascript and CSS separately.

Expand Down Expand Up @@ -51,7 +51,7 @@ As of version 1.5, nearly all of these options can be set in the CPT Bootstrap C
* `twbs` _(default 2)_
* Output markup for Twitter Bootstrap Version 2 or 3.
* `[image-carousel twbs="3"]`

Credits
-------
This plugin was written by @tallphil with help and suggestions from several others including (but not limited to) @reddo, @joshgerdes, @atnon, @grahamharper, @rchq, @oheijo, @smtk, @cla63, @cookierebes and @sipman.
Expand Down Expand Up @@ -86,7 +86,7 @@ Installation
1. Create new items in the `Carousel` post type, uploading a Featured Image for each.
1. *Optional:* You can hyperlink each image by entering the desired url `Image Link URL` admin metabox when adding a new carousel image.


Frequently Asked Questions
--------------------------

Expand Down Expand Up @@ -143,10 +143,14 @@ You need to make sure that each image is the same height. You can do this by set

Changelog
---------
* __1.9.2dev__
* __1.10__
* Added support for Bootstrap 4
* Added support for video backgrounds, youtube or vimeo
* Tested with WordPress 5.1.1
* Separated settings option for _Show Caption / Titles?_ into two, one for each.
* Fixed minor front end bug when using background images. Thanks to @thendigital
* New Indonesian translation by Jordan Silaen from http://chameleonjohn.com/
* Many other tweaks and improvements
* __1.9.1__
* Titles and captions now show if present, independently of each other (previously both needed to be filled in)
* You can hide them by leaving blank, or setting _Show Slide Titles / Captions?_ to False in the settings
Expand Down Expand Up @@ -210,4 +214,4 @@ Changelog
* __1.1__
* Added shortcode attributes (code contributed by @joshgerdes)
* __1.0__
* Initial release
* Initial release
13 changes: 6 additions & 7 deletions trunk/cpt-bootstrap-carousel.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Plugin Name: CPT Bootstrap Carousel
Plugin URI: http://www.tallphil.co.uk/bootstrap-carousel/
Description: A custom post type for choosing images and content which outputs <a href="http://getbootstrap.com/javascript/#carousel" target="_blank">Bootstrap Carousel</a> from a shortcode. Requires Bootstrap javascript and CSS to be loaded separately.
Version: 1.9.2dev
Version: 1.10
Author: Phil Ewels
Author URI: http://phil.ewels.co.uk
Text Domain: cpt-bootstrap-carousel
Expand Down Expand Up @@ -41,17 +41,17 @@ function cptbc_post_type() {
'public' => true,
'exclude_from_search' => true,
'publicly_queryable' => false,
'show_ui' => true,
'show_in_menu' => true,
'show_ui' => true,
'show_in_menu' => true,
'query_var' => true,
'rewrite' => true,
'capability_type' => 'page',
'has_archive' => true,
'has_archive' => true,
'hierarchical' => false,
'menu_position' => 21,
'menu_icon' => 'dashicons-images-alt',
'supports' => array('title','excerpt','thumbnail', 'page-attributes')
);
);
register_post_type('cptbc', $args);
}
// Create a taxonomy for the carousel post type
Expand All @@ -67,7 +67,7 @@ function cptbc_taxonomies () {
function cptbc_addFeaturedImageSupport() {
$supportedTypes = get_theme_support( 'post-thumbnails' );
if( $supportedTypes === false ) {
add_theme_support( 'post-thumbnails', array( 'cptbc' ) );
add_theme_support( 'post-thumbnails', array( 'cptbc' ) );
add_image_size('featured_preview', 100, 55, true);
} elseif( is_array( $supportedTypes ) ) {
$supportedTypes[0][] = 'cptbc';
Expand All @@ -81,4 +81,3 @@ function cptbc_addFeaturedImageSupport() {
require_once('cptbc-admin.php');
require_once('cptbc-settings.php');
require_once('cptbc-frontend.php');

17 changes: 13 additions & 4 deletions trunk/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@ Contributors: tallphil
Donate Link: http://www.tallphil.co.uk/bootstrap-carousel/
Tags: carousel, slider, image, bootstrap
Requires at least: 3.0.1
Tested up to: 4.3
Stable tag: 1.9.2dev
Tested up to: 5.1.1
Stable tag: 1.10
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

A custom post type for choosing images and content which outputs Bootstrap Image Carousel (slider) from the [image-carousel] shortcode.

== Description ==

A custom post type for choosing images and content which outputs a [carousel](http://getbootstrap.com/javascript/#carousel) from [Twitter Bootstrap](http://www.getbootstrap.com) using the shortcode `[image-carousel]`.
A custom post type for choosing images and content which outputs a [carousel](http://getbootstrap.com/javascript/#carousel) from [Twitter Bootstrap](http://www.getbootstrap.com) using the shortcode `[image-carousel]`.

The plugin assumes that you're already using Bootstrap, so you need to load the Bootstrap javascript and CSS separately.

Expand Down Expand Up @@ -156,6 +156,15 @@ You need to make sure that each image is the same height. You can do this by set

== Changelog ==

= 1.10.1 =
* Added support for Bootstrap 4
* Added support for video backgrounds, youtube or vimeo
* Tested with WordPress 5.1.1
* Separated settings option for _Show Caption / Titles?_ into two, one for each.
* Fixed minor front end bug when using background images. Thanks to @thendigital
* New Indonesian translation by Jordan Silaen from http://chameleonjohn.com/
* Many other tweaks and improvements

= 1.9.1 =
* Titles and captions now show if present, independently of each other (previously both needed to be filled in)
* You can hide them by leaving blank, or setting _Show Slide Titles / Captions?_ to False in the settings
Expand Down Expand Up @@ -242,4 +251,4 @@ You need to make sure that each image is the same height. You can do this by set
* Added a new admin metabox to give each image a link (optional).

= 1.1 =
* Added shortcode attribute functionality for tweaking of carousel options.
* Added shortcode attribute functionality for tweaking of carousel options.

0 comments on commit 8f65e0c

Please sign in to comment.