php-gallery/ui/flyout.php

26 lines
844 B
PHP
Raw Normal View History

<?php
2022-07-30 10:52:16 +00:00
function flyout($flyout_header, $flyout_content, $flyout_action) {
// Used for background dimming
echo "<div class='flyout-dim'></div>";
// Div Start
echo "<div class='flyout flex-down default-window between'>";
2022-07-29 15:41:05 +00:00
// Header for the flyout, must be included
if (isset($flyout_header) && !empty($flyout_header)) {
echo "<h2 class='space-bottom'>".$flyout_header."</h2>";
}
// Flyout content, must be included!!!!
2022-07-29 12:53:36 +00:00
if (isset($flyout_content) && !empty($flyout_content)) {
2022-07-29 15:41:05 +00:00
echo "<p class='space-bottom'>".$flyout_content."</p>";
}
// Flyout button, not required so must need more information when added
if (isset($flyout_action) && !empty($flyout_action)) {
echo $flyout_action;
2022-07-29 12:53:36 +00:00
}
// Exit button + Div End
echo "<button class='btn alert-default space-top flyout-close'>Cancel</button>
</div>";
}
?>