. */ /** * Link tags. * * @since 4.6.0 */ namespace Textpattern\Tag\Syntax; class Link { /** * Checks if the link is the first in the list. * * @param array $atts * @param string $thing * @return string */ public static function renderIfFirstLink($atts, $thing) { global $thislink; assert_link(); return parse(EvalElse($thing, !empty($thislink['is_first']))); } /** * Checks if the link is the last in the list. * * @param array $atts * @param string $thing * @return string */ public static function renderIfLastLink($atts, $thing) { global $thislink; assert_link(); return parse(EvalElse($thing, !empty($thislink['is_last']))); } }