diff options
author | Christian Weiske <cweiske@cweiske.de> | 2015-01-21 22:05:12 +0100 |
---|---|---|
committer | Christian Weiske <cweiske@cweiske.de> | 2015-01-21 22:05:12 +0100 |
commit | 11e56e586189b52393875155e3c077ab0f83defd (patch) | |
tree | 7f8dd98def7dc38f69e74832bd187146b4e15ba6 /data/templates/default/top.inc.php | |
parent | f6902bc09d8ef5b1df8090b6d2b54f0d91d27c10 (diff) | |
download | semanticscuttle-11e56e586189b52393875155e3c077ab0f83defd.tar.gz semanticscuttle-11e56e586189b52393875155e3c077ab0f83defd.tar.bz2 |
Integrate Firefox Social API for bookmarking
Diffstat (limited to 'data/templates/default/top.inc.php')
-rw-r--r-- | data/templates/default/top.inc.php | 18 |
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"'; } ?> |