This commit is contained in:
friendica 2013-05-09 01:15:40 -07:00
commit 3339f55310
9 changed files with 62 additions and 18 deletions

View file

@ -45,6 +45,13 @@ class FriendicaSmarty extends Smarty {
class FriendicaSmartyEngine implements ITemplateEngine { class FriendicaSmartyEngine implements ITemplateEngine {
static $name ="smarty3"; static $name ="smarty3";
public function __construct(){
if(!is_writable('view/smarty3/')){
echo "<b>ERROR:</b> folder <tt>view/smarty3/</tt> must be writable by webserver."; killme();
}
}
// ITemplateEngine interface // ITemplateEngine interface
public function replace_macros($s, $r) { public function replace_macros($s, $r) {
$template = ''; $template = '';

View file

@ -19,7 +19,7 @@ body {
padding-bottom: 3em; padding-bottom: 3em;
width: 960px; width: 960px;
height: 100%; height: 100%;
font-family: "Lucida Grande","Lucida Sans Unicode",Arial,Verdana,sans-serif; font-family: "Lucida Grande","Lucida Sans Unicode",Helvetica,Arial,Verdana,sans-serif;
font-size: 15px; font-size: 15px;
font-size-adjust: none; font-size-adjust: none;
font-style: normal; font-style: normal;

View file

@ -26,13 +26,18 @@
<right_aside><?php if(x($page,'right_aside')) echo $page['right_aside']; ?></right_aside> <right_aside><?php if(x($page,'right_aside')) echo $page['right_aside']; ?></right_aside>
<footer id="footer"> <footer id="footer">
<?php if(x($page, 'footer')) echo $page['footer']; ?> <?php if(x($page, 'footer')) echo $page['footer']; ?>
<div id="scrollup" >
<a href="javascript:scrollTo(0,0)"><img src="view/theme/smoothly/images/totop.png" alt="to top" title="to top" /></a>
<a href="javascript:scrollTo(0,100000)"><img src="view/theme/smoothly/images/tobottom.png" alt="to bottom" title="to bottom" /></a>
</div>
</footer> </footer>
<tools id="tools">
<?php if (x($page, 'tools')) echo $page['tools']; ?>
<div id="scrollup" >
<a class="item-scrollup" href="javascript:scrollTo(0,100000)"><img src="view/theme/smoothly/images/down.png" alt="to bottom" title="to bottom" /></a>
<a class="item-scrollup" href="javascript:scrollTo(0,0)"><img src="view/theme/smoothly/images/up.png" alt="to top" title="to top" /></a>
<a class="item-scrollup" href="logout"><img src="view/theme/smoothly/images/power.png" alt="power" title="power" /></a>
</div>
</tools>
<?php if (x($page, 'bottom')) echo $page['bottom']; ?> <?php if (x($page, 'bottom')) echo $page['bottom']; ?>
</body> </body>
</html> </html>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 537 B

After

Width:  |  Height:  |  Size: 2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2 KiB

View file

@ -2,7 +2,7 @@
style.css style.css
Theme: Smoothly Theme: Smoothly
Maintainer: alex@friendica.pixelbits.de Maintainer: alex@friendica.pixelbits.de
last change: 2013-04-24 last change: 2013-05-08
** Colors ** ** Colors **
Blue links - #1873a2 Blue links - #1873a2
@ -574,14 +574,14 @@ ul#user-menu-popup li a.nav-sep {
#lang-select-icon { #lang-select-icon {
bottom: 5px; bottom: 5px;
cursor: pointer; cursor: pointer;
left: 915px; left: 25px;
position: fixed; position: fixed;
z-index: 10; z-index: 10;
} }
#language-selector { #language-selector {
position: fixed; position: fixed;
bottom: 2px; bottom: 2px;
left: 945px; left: 55px;
z-index: 10; z-index: 10;
} }
@ -639,6 +639,12 @@ aside h4 {
font-size: 1.3em; font-size: 1.3em;
} }
.vcard {
width: 205px;
padding-bottom: 10px;
/*border-bottom-style: dotted;*/
}
.vcard .title { .vcard .title {
font-size: 1em; font-size: 1em;
} }
@ -1032,8 +1038,8 @@ ul .sidebar-group-li .icon {
/* ================== */ /* ================== */
.contact-block-img { .contact-block-img {
width: 47px; width: 47px !important;
height: 47px; height: 47px !important;
margin-right: 2px; margin-right: 2px;
border: 1px solid #7C7D7B; border: 1px solid #7C7D7B;
border-radius: 3px; border-radius: 3px;
@ -1061,11 +1067,13 @@ ul .sidebar-group-li .icon {
.contact-block-h4, .contact-block-h4,
.contact-block-content { .contact-block-content {
margin: 0; margin: 0;
font-size: 1.2em;
} }
#contact-block, #contact-block,
#contact-block-end { #contact-block-end {
clear: both; clear: both;
padding-top: 10px;
} }
/* ======= */ /* ======= */
@ -3739,7 +3747,7 @@ margin-left: 0px;
.field label { .field label {
float: left; float: left;
width: 225px; width: 230px;
} }
.field checkbox { .field checkbox {
@ -3925,7 +3933,13 @@ margin-left: 0px;
font-size: 0.7em; font-size: 0.7em;
} }
footer { footer { display: block; margin: 50px 20%; clear: both; }
/* ========== */
/* = Tools = */
/* ========== */
tools {
background: -webkit-gradient( linear, left top, left bottom, color-stop(0.05, #f0edf0), color-stop(1, #e2e2e2) ); background: -webkit-gradient( linear, left top, left bottom, color-stop(0.05, #f0edf0), color-stop(1, #e2e2e2) );
background: -moz-linear-gradient( center top, #f0edf0 5%, #e2e2e2 100% ); background: -moz-linear-gradient( center top, #f0edf0 5%, #e2e2e2 100% );
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f0edf0', endColorstr='#e2e2e2'); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f0edf0', endColorstr='#e2e2e2');
@ -3942,7 +3956,7 @@ footer {
display: block; display: block;
float: right; float: right;
font-size: 15px; font-size: 15px;
height: 2em; height: 38px;
list-style: none outside none; list-style: none outside none;
margin: 0 0 0 755px; margin: 0 0 0 755px;
padding: 0; padding: 0;
@ -3953,7 +3967,6 @@ footer {
clear:both; clear:both;
} }
/* ======= */ /* ======= */
/* = ACL = */ /* = ACL = */
/* ======= */ /* ======= */
@ -4322,9 +4335,10 @@ ul.menu-popup {
----------------------------------------------------------- */ ----------------------------------------------------------- */
#scrollup { #scrollup {
position: absolute; position: absolute;
right: 70px; right: 0px;
bottom: -4px; bottom: -1px;
z-index: 100; z-index: 100;
padding-right: 10px;
} }
#scrollup a:hover { #scrollup a:hover {
@ -4332,6 +4346,10 @@ ul.menu-popup {
border: 0; border: 0;
} }
.item-scrollup {
margin-left: 5px;
}
/* New posts and comments => background color /* New posts and comments => background color
----------------------------------------------------------- */ ----------------------------------------------------------- */
.shiny { .shiny {
@ -4426,6 +4444,7 @@ hr.line-dots {
float: left; float: left;
text-align: left; text-align: left;
display: block; display: block;
line-height: 0.6em;
} }
.adr, .adr,
@ -4435,6 +4454,8 @@ hr.line-dots {
float: left; float: left;
display: block; display: block;
margin-left: 8px; margin-left: 8px;
line-height: 1em;
text-align: left;
} }
#birthday-notice {} #birthday-notice {}

View file

@ -0,0 +1,11 @@
{{*
* AUTOMATICALLY GENERATED TEMPLATE
* DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
*
*}}
<nav>
{{if $nav.logout}}<a id="nav-logout-link" class="nav-link {{$nav.logout.2}}" href="{{$nav.logout.0}}" title="{{$nav.logout.3}}" >{{$nav.logout.1}}</a> {{/if}}
{{if $nav.login}}<a id="nav-login-link" class="nav-login-link {{$nav.login.2}}" href="{{$nav.login.0}}" title="{{$nav.login.3}}" >{{$nav.login.1}}</a> {{/if}}
</nav>

View file

@ -3,7 +3,7 @@
/* /*
* Name: Smoothly * Name: Smoothly
* Description: Like coffee with milk. Theme optimized for iPad[2]. * Description: Like coffee with milk. Theme optimized for iPad[2].
* Version: Version 2013-04-24 * Version: Version 2013-05-08.2
* Author: Anne Walk * Author: Anne Walk
* Author: Devlon Duthied * Author: Devlon Duthied
* Maintainer: Alex <https://friendica.pixelbits.de/profile/alex> * Maintainer: Alex <https://friendica.pixelbits.de/profile/alex>