mirror of
https://github.com/friendica/friendica
synced 2024-11-10 09:02:53 +00:00
quattro: move center css to style.php. add tpl for generic_links_widget
This commit is contained in:
parent
e992e29685
commit
6c50eba206
3 changed files with 26 additions and 21 deletions
11
view/theme/quattro/generic_links_widget.tpl
Normal file
11
view/theme/quattro/generic_links_widget.tpl
Normal file
|
@ -0,0 +1,11 @@
|
|||
<div class="widget">
|
||||
{{if $title}}<h3>$title</h3>{{endif}}
|
||||
{{if $desc}}<div class="desc">$desc</div>{{endif}}
|
||||
|
||||
<ul>
|
||||
{{ for $items as $item }}
|
||||
<li class="tool {{ if $item.selected }}selected{{ endif }}"><a href="$item.url" class="link">$item.label</a></li>
|
||||
{{ endfor }}
|
||||
</ul>
|
||||
|
||||
</div>
|
|
@ -1,5 +1,9 @@
|
|||
<?php
|
||||
$color = get_pconfig(local_user(), "quattro","color");
|
||||
$color = false;
|
||||
if (local_user()) {
|
||||
$color = get_pconfig(local_user(), "quattro","color");
|
||||
$quattro_align = get_pconfig(local_user(), 'quattro', 'align' );
|
||||
}
|
||||
|
||||
if ($color===false) $color="dark";
|
||||
|
||||
|
@ -7,3 +11,13 @@
|
|||
echo file_get_contents("$THEMEPATH/$color/style.css");
|
||||
}
|
||||
|
||||
|
||||
if($quattro_align=="center"){
|
||||
echo "
|
||||
html { width: 100%; margin:0px; padding:0px; }
|
||||
body {
|
||||
margin: 50px auto;
|
||||
width: 900px;
|
||||
}
|
||||
";
|
||||
}
|
||||
|
|
|
@ -1,20 +0,0 @@
|
|||
<?php
|
||||
|
||||
|
||||
|
||||
|
||||
$quattro_align = get_pconfig(local_user(), 'quattro', 'align' );
|
||||
|
||||
if(local_user() && $quattro_align=="center"){
|
||||
|
||||
$a->page['htmlhead'].="
|
||||
<style>
|
||||
html { width: 100%; margin:0px; padding:0px; }
|
||||
body {
|
||||
margin: 50px auto;
|
||||
width: 900px;
|
||||
}
|
||||
</style>
|
||||
";
|
||||
|
||||
}
|
Loading…
Reference in a new issue