splittingred/Gallery — Issue #157: Marked active album
Author: Devoll
Created: 2011-12-08 19:58:52+00:00
State: open

I wrote small hack for this feature:

Edit GalleryAlbums snippet:

1. Add this code on line №46

```php
$activeClass = $modx->getOption('activeClass',$scriptProperties,'active');
```

2. Add this code on line №113:

```php
if($_GET[$albumRequestVar] == $album->get('id')) $albumArray['cls'] += $activeClass;
```