public function image($image, $width=null, $height=null, $alt=null, $class=null, $link=null, $caption=null, $srcset=null) {
		$image = $this->getLink($image);
		$attributes = $this->getHtmlAttributes(array(
			'width'=>$width,
			'height'=>$height,
			'alt'=>$alt,
			'caption'=>$caption,
			'class'=>$class,
			'srcset'=>$srcset
		));

		$img = "<img src='$image'$attributes />";
		if (!is_null($link)) {
			$link = $this->getLink($link);
			return "<a href='$link'>$img</a>";
		}

		return $img;
	}
public function image($image, $width=null, $height=null, $alt=null, $class=null, $link=null, $caption=null, $srcset=null) {
		$image = $this->getLink($image);
		$attributes = $this->getHtmlAttributes(array(
			'width'=>$width,
			'height'=>$height,
			'alt'=>$alt,
			'caption'=>$caption,
			'class'=>$class,
			'srcset'=>$srcset
		));

		$img = "<img src='$image'$attributes />";
		if (!is_null($link)) {
			$link = $this->getLink($link);
			return "<a href='$link'>$img</a>";
		}

		return $img;
	}
public function image ( $ image , $ width = null , $ height = null , $ alt = null , $ class = null , $ link = null , $ caption = null , $ srcset = null ) { $ image = $ this -> getLink ( $ image ) ; $ attributes = $ this -> getHtmlAttributes ( array ( 'width' => $ width , 'height' => $ height , 'alt' => $ alt , 'caption' => $ caption , 'class' => $ class , 'srcset' => $ srcset ) ) ; $ img = "<img src='$image'$attributes />" ; if ( ! is_null ( $ link ) ) { $ link = $ this -> getLink ( $ link ) ; return "<a href='$link'>$img</a>" ; } return $ img ; }
Implements the 'image' snippet
Implements the image snippet