<script type="text/javascript" <?php
src($rel_path . $suffix);?>"></script><?php
}
+
+// Link output helper functions.
+function href($path) {
+ echo 'href="';
+ esc(rel_url($path));
+ echo '"';
+}
+function src($path) {
+ echo 'src="';
+ esc(rel_url($path));
+ echo '"';
+}
function abs_url($path) {
return 'https://ycra.org.uk' . rel_url($path);
}
-function href($path) {
- echo 'href="';
- esc(rel_url($path));
- echo '"';
-}
-function src($path) {
- echo 'src="';
- esc(rel_url($path));
- echo '"';
-}
/** Return cache control file suffix for file at $path
*
<?php
-require_once('includes/utils.php');
require_once('includes/html-templating.php');