insert-coin/res/library/insert-coin.php

23 lines
631 B
PHP
Raw Permalink Normal View History

2018-02-03 23:14:25 -06:00
<?php
2018-10-09 19:39:09 -05:00
// TITLE_STING TEMPLATE_PATH IMAGE_ALT IMAGE_PATH --> HTML
// Create a general insert-coin webpage; relative path from rootdir
2019-02-14 09:39:29 -06:00
// for $image_path, and relative path from /res/templates/
2018-10-09 19:39:09 -05:00
// for $template
function create_page($page_title, $template, $image_alt_text, $image_path)
{
2019-02-14 09:39:29 -06:00
include(root("res/templates/header.php"));
2018-10-09 19:39:09 -05:00
?><body><?php
2019-02-14 09:39:29 -06:00
include(root("res/templates/menu.php"));
2018-10-09 19:39:09 -05:00
?><main><?php
2019-02-14 09:39:29 -06:00
include(root("res/templates/" . $template));
2018-10-09 19:39:09 -05:00
?>
<img
alt="<?php echo($image_alt_text); ?>"
2019-02-14 19:20:06 -06:00
src="<?php echo(webroot($image_path)); ?>">
2018-10-09 19:39:09 -05:00
</main> <?php
2019-02-14 09:39:29 -06:00
include(root("res/templates/footer.php"));
2018-10-09 19:39:09 -05:00
?></body>
</html><?php
}