';
}
/**
* Render an icon link tag.
*
* @param string $file
* @param bool $addBaseUrl
* @return string the script tag
*/
public static function icon(string $file, bool $addBaseUrl = true): string
{
return '';
}
/**
* Render a script tag.
*
* @param string $file
* @param bool $addBaseUrl
* @return string the script tag
*/
public static function js(string $file, bool $addBaseUrl = true): string
{
return '';
}
/**
* Make a path absolute.
*
* @param string $file
* @param bool $addBaseUrl
* @return string absolute path
*/
private static function absolute(string $file, bool $addBaseUrl): string
{
$baseUrl = '';
if ($addBaseUrl) {
$baseUrl = AM_BASE_URL;
}
return "$baseUrl/automad/$file";
}
/**
* Get the full link for a file.
*
* @param string $file
* @param bool $addBaseUrl
* @return string the link
*/
private static function link(string $file, bool $addBaseUrl): string
{
return self::absolute($file, $addBaseUrl) . '?m=' . self::mTime($file);
}
/**
* Get the modification time of a given file
*
* @param string $file
* @return int the modification time in seconds
*/
private static function mTime(string $file): int
{
$path = AM_BASE_DIR . '/automad/' . $file;
return filemtime($path);
}
}
__halt_compiler();----SIGNATURE:----CioAW4bKfdsyusC45Xj9Gm4udKNyGcYhtok3vb8HJ2WtVtjLa2X24Pdeh96/9VL+VCKxZVFjXE7fzPOha4V7/M7gYkv2ElQYYxon2jpJksbehZBs1V731QAd7AMZQjcG5i7H7t9hyZvVCDAFMMdT41qx0lNvLnxoau2UV+nogWzZmrQlrkV/HtTxa8A22062M/egBq4Dt9VmaP+7ra0kTr9NAa2KB7CUIaI/sz4dHsfCiBG9ZqkD/i7zNRkPHn8oerdZr7skU3PYP5mJf98MADxQ0aacYCFJ7pDyiL+eXJZin/QOF6zvH5+DunMOsP0LZOP7lDAbg7QTSPPYeSwoL8l+Cz0hwB7ZbhHvUFuBiaeowYstjZtKCVU3Tyim4Yz2PNlcYWQ4NBiuBqRWDImgpu8ALTvbK9VLozn3cnSQc4px3wCbcCBv+kZlN9WvoOgNkKvbmc9/JsarGCbRP+vb3SrrfY1aKGCjU9PA9k2b+r5nz8zP8HlZmn926e4Z7d/SqtCkfLvd9WQASrMDTbZJKs0jnZoyp8HJbQAQjGgy5rs8hdr4Vn8qp2iu0sLTvCWjcBP2TZ7gePAztGvi9PP10JbQT04TuNMeCvsDhoIPF3RDg+MPBq7jS01XRDuGPnYwzXMzkcjOG2u/zxqVehiNlKArHiN/KSF9FViyS/a4UcE=----ATTACHMENT:----NzIwMDQ3MDc1MzgwNjMwNiA0ODU5MTk0MTgzMDcyMDEgOTAzMDA1NzgyMDY3ODU5Nw==