You are here

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

Same name and namespace in other branches
  1. 8.3 src/JuiceboxGallery.php \Drupal\juicebox\JuiceboxGallery::renderEmbed()

Get the embed code for Juicebox gallery once images and options are added.

Return value

string Embed code markup describing a gallery.

Overrides JuiceboxGalleryInterface::renderEmbed

File

src/JuiceboxGallery.php, line 253

Class

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

Namespace

Drupal\juicebox

Code

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