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
|
|
|
|
// for $image_path, and relative path from /resources/templates/
|
|
|
|
// for $template
|
|
|
|
function create_page($page_title, $template, $image_alt_text, $image_path)
|
2018-04-07 18:19:14 -05:00
|
|
|
{
|
2018-10-09 19:39:09 -05:00
|
|
|
include(root("resources/templates/header.php"));
|
|
|
|
?><body><?php
|
|
|
|
include(root("resources/templates/menu.php"));
|
|
|
|
?><main><?php
|
|
|
|
include(root("resources/templates/" . $template));
|
|
|
|
?>
|
|
|
|
<img
|
|
|
|
alt="<?php echo($image_alt_text); ?>"
|
|
|
|
src="<?php echo($image_path); ?>">
|
|
|
|
</main> <?php
|
|
|
|
include(root("resources/templates/footer.php"));
|
|
|
|
?></body>
|
|
|
|
</html><?php
|
2018-04-07 18:19:14 -05:00
|
|
|
}
|