コード例 #1
0
ファイル: Inline.php プロジェクト: Aziz-JH/core
 /**
  * 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);
 }
コード例 #2
0
ファイル: Inline.php プロジェクト: rpquadrat/core
 /**
  * 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);
 }