Skip to content
This repository has been archived by the owner on Apr 5, 2021. It is now read-only.

Latest commit

 

History

History
37 lines (28 loc) · 1.14 KB

readme.md

File metadata and controls

37 lines (28 loc) · 1.14 KB

Kirby Gallery

A gallery plugin for Kirby 2 that uses Zurb Foundation.

Installation

  1. Place gallery.php in your site/plugins directory.
  2. Place site/blueprints/gallery.php in your site/blueprints directory.

Not Using Foundation?

If you are not already using Foundation, there are a couple additional steps:

  1. Place foundation.css in your asstes/css directory.
  2. Place the contents of assets/js in your assets/js directory.
  3. In your snippets/header.php include:
<?php echo css("assets/css/foundation.css") ?>
<?php echo js("assets/js/vendor/modernizr.js") ?>`
  1. In your snippets/footer.php include:
  <?php echo js("assets/js/vendor/jquery.js") ?>
  <?php echo js("assets/js/foundation.min.js") ?>
  <script>
    $(document).foundation();
  </script>

Usage

Create a child page using the Gallery template and add images.

Show a gallery on a page using <?php echo getGallery($page, $galleryUri) ?>

Replace $galleryUri in the example above with the URI of the gallery page.

To Do

  • create a Kirby Tag so that galleries can be added with (gallery: uri).