. */ /** * Image tags. * * @since 4.6.0 */ namespace Textpattern\Tag\Syntax; class Image { /** * Checks if the image is the first in the list. * * @param array $atts * @param string $thing * @return string */ public static function renderIfFirstImage($atts, $thing) { global $thisimage; assert_image(); return parse(EvalElse($thing, !empty($thisimage['is_first']))); } /** * Checks if the image is the last in the list. * * @param array $atts * @param string $thing * @return string */ public static function renderIfLastImage($atts, $thing) { global $thisimage; assert_image(); return parse(EvalElse($thing, !empty($thisimage['is_last']))); } }