Esempio n. 1
0
 /**
  * @param int    $maxLength
  * @param string $format
  *
  * @return mixed|string
  */
 public function subtitle($maxLength = 0, $format = "S")
 {
     $ret = $this->getVar("subtitle", $format);
     if ($maxLength != 0) {
         if (!XoopsLocale::isMultiByte()) {
             if (strlen($ret) >= $maxLength) {
                 $ret = PublisherUtils::substr($ret, 0, $maxLength);
             }
         }
     }
     return $ret;
 }