# Shortcake Bakery #
**Contributors:** fusionengineering, davisshaver, danielbachhuber  
**Tags:** shortcodes, Facebook, Infogram, Playbuzz, Rap Genius, Scribd  
**Requires at least:** 4.2  
**Tested up to:** 4.3  
**Stable tag:** 0.1.0  
**License:** GPLv2 or later  
**License URI:** http://www.gnu.org/licenses/gpl-2.0.html  

A fine selection of Shortcake-powered shortcodes.

## Description##

Shortcake Bakery adds a fine selection of shortcodes to your WordPress site. Use with [Shortcake](https://wordpress.org/plugins/shortcode-ui/) for the optimal experience.

The follow shortcodes are now available for your use within the content field:

- Image Comparison `[image-comparison left="9" right="10" position="center"]`
- Facebook `[facebook url="https://www.facebook.com/willpd/posts/1001217146572688"]`
- iFrames (requires code-level configuration of accepted domains) `[iframe src="http://www.buzzfeed.com"]`
- Infogram `[infogram url="http://infogr.am/washington_marijuana_sales"]`
- PDF's (requires PDF served from domain with `Access-Control-Allow-Origin` header) `[pdf url="https://assets.fusion.net/edit/pdfs/the_interview_budget_excerpts.pdf"]`
- Playbuzz `[playbuzz url="https://www.playbuzz.com/Fusion/5-mind-blowing-facts-about-cloning-from-jurassic-park-youll-never-believe-actually-exist-in-real"]`
- Rap Genius `[rap-genius]`
- Scribd `[scribd url="http://www.scribd.com/doc/269993358/Transgender-Care-Memorandum"]`
- Scripts (requires code-level configuration of accepted domains) `[script src="https://ajax.googleapis.com/ajax/libs/threejs/r69/three.min.js"]`

See the [Installation](#Installation) section for code-level configuration details. Get involved with the project and [submit your own shortcodes](https://github.com/fusioneng/shortcake-bakery) on Github.

## Installation ##

It's a plugin! Install it like any other.

Most of the shortcodes work out of the box, but you'll need to whitelist any domains you want to be eligible for script and iFrame tag use.

```php
	add_filter( 'shortcake_bakery_whitelisted_script_domains', function(){
		return array(
			'ajax.googleapis.com',		
		);
	});
```

```php
	add_filter( 'shortcake_bakery_whitelisted_iframe_domains', function(){
		return array(
			'buzzfeed.com',		
		);
	});
```

## Screenshots ##

### 1. Shortcodes are accessible through the Insert Element screen, exposed in the media library. ###
![Shortcodes are accessible through the Insert Element screen, exposed in the media library.](http://s.wordpress.org/extend/plugins/shortcake-bakery/screenshot-1.png)

### 2. Shortcodes preview in the visual editor, with a quick edit button to provide easy access to attribute fields. ###
![Shortcodes preview in the visual editor, with a quick edit button to provide easy access to attribute fields.](http://s.wordpress.org/extend/plugins/shortcake-bakery/screenshot-2.png)

### 3. The image comparison shortcode is powered by JuxtaposeJS, a tool built by the Northwestern University Knight Lab. ###
![The image comparison shortcode is powered by JuxtaposeJS, a tool built by the Northwestern University Knight Lab.](http://s.wordpress.org/extend/plugins/shortcake-bakery/screenshot-3.png)

### 4. We've added an Infogram shortcode that accepts public Infogram URL's. ###
![We've added an Infogram shortcode that accepts public Infogram URL's.](http://s.wordpress.org/extend/plugins/shortcake-bakery/screenshot-4.png)

### 5. Scribd shortcodes let you embed documents easily in your WordPress content. ###
![Scribd shortcodes let you embed documents easily in your WordPress content.](http://s.wordpress.org/extend/plugins/shortcake-bakery/screenshot-5.png)

### 6. The script shortcode lets you embed whitelisted sources. ###
![The script shortcode lets you embed whitelisted sources.](http://s.wordpress.org/extend/plugins/shortcake-bakery/screenshot-6.png)

### 7. Same with the iFrame shortcode. ###
![Same with the iFrame shortcode.](http://s.wordpress.org/extend/plugins/shortcake-bakery/screenshot-7.png)

### 8. The RapGenius shortcode doesn't do anything in the admin – but on the frontend, it adds annotations to your post. ###
![The RapGenius shortcode doesn't do anything in the admin – but on the frontend, it adds annotations to your post.](http://s.wordpress.org/extend/plugins/shortcake-bakery/screenshot-8.png)

### 9. The PDF shortcode wraps your document in a nifty viewer tool. ###
![The PDF shortcode wraps your document in a nifty viewer tool.](http://s.wordpress.org/extend/plugins/shortcake-bakery/screenshot-9.png)

### 10. Most Facebook URL's can be embedded with ease. ###
![Most Facebook URL's can be embedded with ease.](http://s.wordpress.org/extend/plugins/shortcake-bakery/screenshot-10.png)

### 11. Playbuzz quizs can be embedded, with a few options supported. ###
![Playbuzz quizs can be embedded, with a few options supported.](http://s.wordpress.org/extend/plugins/shortcake-bakery/screenshot-11.png)


## Changelog ##

### 0.1.0 (July 17, 2015) ###

* Initial release.
* [Full release notes](http://fusion.net/story/167993/introducing-shortcake-bakery-a-selection-of-fine-shortcodes/)
