Prezi Embedder

Description

This plugin, like most things useful, grew out of a need. I had a Prezi
and I had a WordPress blog. I Googled for a few hours, trying to find a way to embed one within the other, and found some
dirty hacks that ended up not working, as well as a plugin or two that didn’t work, or only half worked. When I realized
that there were no good solutions for this issue, I decided to create one.

This plugin is based on simplicity, making it extremely robust. On the back end, it is actually only a few lines of code.
It takes the embed code that Prezi provides when clicking the share option through their site and simply inserts the
necessary values that are needed to render a working Prezi.

I hope that you all find this plugin as useful as I have!

If this plugin has been helpful, please take a moment to
rate it!

Installation

  1. Upload prezi-embedder to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Place [prezi id="<Prezi ID>"] in any post or page were you want to embed a Prezi.

To find your Prezi ID, the easiest solution is to simply copy the URL of your Prezi, which should look something
like this: http://prezi.com/<Prezi ID>/<Prezi Slug>. If you paste that URL exactly as it is, the plugin is
now smart enough to extract the ID for you. Alternatively, if you would like to do it the hard way, you can
manually extract the <Prezi ID> from that same URL.

Prezi Embedder Options

In addition to a simple embed, you can also set some additional embed options:

  1. align (default = none): Aligns the Prezi left, right, or center in your post.
  2. width (default = 500): Width of viewer in pixels.
  3. height (default = 400): Height of viewer in pixels.
  4. lock_to_path (default = 0): Whether to constrain user navigation to Prezi path (1), or let them roam free (0).
  5. autoplay (default = 0): Enables option at bottom of Prezi display to start autoplay.
  6. html5 (default = 1): True (1) to use new HTML5 viewer, false (0) to use Flash-based viewer.

The following shortcode is equivalent to [prezi id="<Prezi ID>"], with default values explicitly set:

[prezi id="<Prezi ID>" width=500 height=400 lock_to_path=0 html5=1]

Contributors & Developers

“Prezi Embedder” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

2.1

  • Tested Up To 4.4
  • Enhancement: Minor changes to embed code matching recent Prezi updates.
  • Enhancement: Some under-the-hood cleanup.
  • Bug Fix: In some cases the plugin would fail to startup with a warning about PreziEmbedder class not existing.

2.0

  • Enhancement: Big news in this release is the addition of alignment. You can now center your Prezi
    as well as align left or right. See installation tab for details.
  • Enhancement: Added support for autoplay.

1.4

  • Enhancement: Added new HTML5 option.
  • Enhancement: Made user input sanitization more robust.

1.3

  • Enhancement: Now uses Prezi’s latest embed code, which includes cross-browser
    full-screen support through use of allowfullscreen attribute.
  • Enhancement: Prezi Embedder is now fully
    Internationalization-enabled.
    This means that we can now support users speaking all languages. If you are interested
    in translating Prezi Embedder into a language that you speak, please
    let me know!

1.2

  • Bug Fix: Corrects issue with lock_to_path attribute. Thanks to lhkstudio for spotting this!

1.1.2

  • Bug Fix: Corrected typos in readme.
  • Update: Changed plugin URL.

1.1.1

  • Bug Fix: Corrected some typos in the documentation.
  • Enhancement: Cleaned up source code for easier reading.

1.1

  • Enhancement: Shortcode now handles the full URL of the Prezi as an ID value (while still supporting just the id value).
  • Enhancement: Added some simple error checking for attribute values.

1.0

  • Released: Initial release.