/** * Generate gallery and return it as HTML string * @param integer * @param bool * @return string */ public function generateGallery($intSkip = 0, $blnForce = false) { // Do not render gallery if there are no additional image $total = count($this->arrFiles); if (($total == 1 || $total <= $intSkip) && !$blnForce) { return ''; } return parent::generateGallery($intSkip); }
/** * Generate gallery and return it as HTML string * @param integer * @param bool * @return string */ public function generateGallery($intSkip = 0, $blnForce = false) { // Do not render gallery if there are no additional image $total = count($this->arrFiles); if (($total == 1 || $total <= $intSkip) && !$blnForce) { return ''; } // Add class "active" to the first file $this->arrFiles[0]['class'] = trim($this->arrFiles[0]['class'] . ' active'); return parent::generateGallery($intSkip); }