1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-06 22:57:14 +02:00

Featurebox work and other fixes

This commit is contained in:
Cameron
2013-03-08 02:19:18 -08:00
parent bfd095e0c4
commit 3fcd499f9f
11 changed files with 249 additions and 33 deletions

View File

@@ -148,6 +148,19 @@ class plugin_featurebox_item extends e_model
}
}
/**
* Returns 'active' for the first-slide. - often used by Bootstrap.
*/
public function sc_featurebox_active()
{
$count = $this->getParam('counter', 1);
return ($count == 1) ? "active" : "";
}
/**
* Item counter number (starting from 1)