diff options
Diffstat (limited to 'print/print.php')
-rw-r--r-- | print/print.php | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/print/print.php b/print/print.php index 0e1137f..e4cc759 100644 --- a/print/print.php +++ b/print/print.php @@ -8,6 +8,9 @@ if (empty($decklist)) { die('No decklist provided.'); } +$useUnroundedCorners = $_ENV['USE_UNROUNDED_CORNERS'] ?? true; +$unroundedCornerColor = $_ENV['UNROUNDED_CORNER_COLOR'] ?? '#000'; + require_once __DIR__ . '/vendor/autoload.php'; /* @@ -90,6 +93,11 @@ if (empty($images)) { * Build HTML */ +$imgBackgroundColor = ''; +if ($useUnroundedCorners) { + $imgBackgroundColor = "background-color: {$unroundedCornerColor};"; +} + $template = <<<HTML <html> <head> @@ -103,8 +111,8 @@ $template = <<<HTML width: 2.49in; height: 3.48in; display: block; - background-color: #16130e; - background-color: #000; + /*background-color: #16130e;*/ + $imgBackgroundColor; } #bg { |