You are here

public function JuiceboxGallery::renderEmbed in Juicebox HTML5 Responsive Image Galleries 7.2

Get the embed code for a Juicebox gallery once images and options have been added.

Return value

string Embed code markup describing a gallery.

Overrides JuiceboxGalleryInterface::renderEmbed

File

includes/JuiceboxGallery.inc, line 238
A php-only set of methods to create the script and markup components of a Juicebox gallery.

Class

JuiceboxGallery
Class to generate the script and markup for a Juicebox gallery.

Code

public function renderEmbed() {
  $output = '';
  $output .= '<div class="juicebox-parent">';
  $output .= '<div id="' . $this->id . '" class="juicebox-container">';
  $output .= '</div></div>';
  return $output;
}