function if_thumbnail($atts, $thing) { global $thisimage; assert_image(); return parse(EvalElse($thing, $thisimage['thumbnail'] == 1)); }
/** * 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']))); }