This gem allows you to easily integrate the prettyPhoto lightbox into your Wheelhouse CMS templates.
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>