summaryrefslogtreecommitdiff
path: root/data/templates/default/top.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'data/templates/default/top.inc.php')
-rw-r--r--data/templates/default/top.inc.php18
1 files changed, 16 insertions, 2 deletions
diff --git a/data/templates/default/top.inc.php b/data/templates/default/top.inc.php
index 240e5b2..55be4a7 100644
--- a/data/templates/default/top.inc.php
+++ b/data/templates/default/top.inc.php
@@ -30,11 +30,25 @@ if (isset($rsschannels)) {
<?php endif ?>
</head>
- <body>
+<?php
+$bodystyle = '';
+if (isset($_GET['popup'])) {
+ if (isset($_GET['height'])) {
+ $bodystyle .= 'height:' . intval($_GET['height']) . 'px;';
+ }
+ if (isset($_GET['width'])) {
+ $bodystyle .= 'width:' . intval($_GET['width']) . 'px;';
+ }
+ if ($bodystyle != '') {
+ $bodystyle = ' style="' . $bodystyle . '"';
+ }
+}
+?>
+ <body<?php echo $bodystyle; ?>>
<?php
$headerstyle = '';
-if(isset($_GET['popup'])) {
+if (isset($_GET['popup'])) {
$headerstyle = ' class="popup"';
}
?>