Closed makroxyz closed 9 years ago
I have 3 images on my page, links have rel="fancybox" attribute. without options fancybox always shows first image..
in Fancybox.php I had to modify:
public function run() { $view = $this->getView(); FancyBoxAsset::register($view); $config = ''; // <-- edited if (!empty($this->config)) { // <-- edited $config = Json::encode($this->config); // <-- edited } // <-- edited $view->registerJs("jQuery('{$this->target}').fancybox({$config});"); }
@makroxyz Sends a pull request.
I have 3 images on my page, links have rel="fancybox" attribute. without options fancybox always shows first image..
in Fancybox.php I had to modify: