/** * Checks if the file is the last in the list. * * @param array $atts * @param string $thing * @return string */ public static function renderIfLastFile($atts, $thing) { global $thisfile; assert_file(); return parse(EvalElse($thing, !empty($thisfile['is_last']))); }
function file_download_description($atts) { global $thisfile; assert_file(); extract(lAtts(array('class' => '', 'escape' => 'html', 'wraptag' => ''), $atts)); if ($thisfile['description']) { $description = $escape == 'html' ? txpspecialchars($thisfile['description']) : $thisfile['description']; return $wraptag ? doTag($description, $wraptag, $class) : $description; } }