示例#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);
 }