aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2016-03-02 12:31:25 +0100
committerMario Vavti <mario@mariovavti.com>2016-03-02 12:31:25 +0100
commitc97cc1487cbcac2c4fbc4d9e931a82df109af2e6 (patch)
tree8ec230a5becf307adebbafc95a6551f98b643f1b /include
parent7808689198601780041e022bf0698e559869f305 (diff)
downloadvolse-hubzilla-c97cc1487cbcac2c4fbc4d9e931a82df109af2e6.tar.gz
volse-hubzilla-c97cc1487cbcac2c4fbc4d9e931a82df109af2e6.tar.bz2
volse-hubzilla-c97cc1487cbcac2c4fbc4d9e931a82df109af2e6.zip
a simple cover-photo implementation for redbasic default template
Diffstat (limited to 'include')
-rw-r--r--include/widgets.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/widgets.php b/include/widgets.php
index a995fdf1c..05b9eca1a 100644
--- a/include/widgets.php
+++ b/include/widgets.php
@@ -993,7 +993,7 @@ function widget_cover_photo($arr) {
if(array_key_exists('style', $arr) && isset($arr['style']))
$style = $arr['style'];
else
- $style = 'width:100%; padding-right: 10px; height: auto;';
+ $style = 'width:100%; height: auto;';
// ensure they can't sneak in an eval(js) function
@@ -1003,7 +1003,7 @@ function widget_cover_photo($arr) {
$c = get_cover_photo($channel_id,'html');
if($c) {
- $o = '<div class="widget">' . (($style) ? str_replace('alt=',' style="' . $style . '" alt=',$c) : $c) . '</div>';
+ $o = '<div id="cover-photo">' . (($style) ? str_replace('alt=',' style="' . $style . '" alt=',$c) : $c) . '</div>';
}
return $o;
}