# photonic/3.37/Lightboxes/PrettyPhoto.php

Photonic Gallery &amp; Lightbox for Flickr, SmugMug &amp; Others, version 3.37. 29 lines.

- Page: https://pluginprobe.com/plugins/photonic/3.37/code/Lightboxes/PrettyPhoto.php
- Raw: https://pluginprobe.com/plugins/photonic/3.37/raw/Lightboxes/PrettyPhoto.php
- Modified: 2026-07-23T21:21:48+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/photonic/3.37/code/Lightboxes/PrettyPhoto.php#L10-L20`.

```php
<?php

namespace Photonic_Plugin\Lightboxes;

use Photonic_Plugin\Platforms\Base;

require_once 'Lightbox.php';

class PrettyPhoto extends Lightbox {
	protected function __construct() {
		$this->library = 'prettyphoto';
		parent::__construct();
	}

	/**
	 * @param $rel_id
	 * @param Base $module
	 * @return array
	 */
	public function get_gallery_attributes($rel_id, Base $module): array {
		$rel = 'lightbox-photonic-' . $module->provider . '-stream-' . (empty($rel_id) ? $module->gallery_index : $rel_id);
		return [
			'class'    => $this->class,
			'rel'      => ["photonic-prettyPhoto[$rel]"],
			'specific' => [],
		];
	}
}

```
