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)
|
2018-04-07 18:19:14 -05:00
|
|
|
{
|
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 09:39:29 -06:00
|
|
|
src="<?php echo(root($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
|
2018-04-07 18:19:14 -05:00
|
|
|
}
|