示例#1
0
文件: Helper.php 项目: nabble/ajde
 /**
  * @param string $target
  *
  * @return string
  */
 public function ACLazyImage($attributes)
 {
     return Ajde_Component_Image::processStatic($this->getParser(), array_merge($attributes, ['lazy' => true]));
 }
示例#2
0
 /**
  *
  * @param string $target
  * @return string
  */
 public function ACImage($attributes)
 {
     return Ajde_Component_Image::processStatic($this->getParser(), $attributes);
 }
示例#3
0
文件: UserModel.php 项目: nabble/ajde
 public function displayAvatar($width = 90, $class = '')
 {
     if ($this->hasNotEmpty('avatar')) {
         return Ajde_Component_Image::getImageTag(AVATAR_DIR . $this->getAvatar(), $width, $width, true, $class);
     } else {
         return $this->displayGravatar($width, $class);
     }
 }