Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 865 Bytes

README.md

File metadata and controls

32 lines (22 loc) · 865 Bytes

PrettyPhoto Plugin for Wheelhouse CMS

This gem allows you to easily integrate the prettyPhoto lightbox into your Wheelhouse CMS templates.

Installation & Usage

1. Add wheelhouse-prettyphoto to your Gemfile:

gem "wheelhouse-prettyphoto"

Then run bundle install.

2. Include the prettyPhoto assets in your template:

<%= prettyphoto_assets %>

3. Invoke the prettyPhoto JavaScript:

<script type="text/javascript">
  $(function() {
    $('a[rel="prettyPhoto[portfolio]"]').prettyPhoto({
      slideshow: false,
      show_title: false,
      overlay_gallery: false,
      deeplinking: false,
      social_tools: false
    });
  });
</script>