Merge pull request #1124 from tobiasd/duepuntoderivs

added variations of duepuntozero to the theme as options to be selected
This commit is contained in:
fabrixxm 2014-09-07 15:04:26 +02:00
commit b7bd29c347
24 changed files with 702 additions and 0 deletions

View file

@ -0,0 +1,65 @@
<?php
/**
* Theme settings
*/
function theme_content(&$a){
if(!local_user())
return;
$colorset = get_pconfig( local_user(), 'duepuntozero', 'colorset');
$user = true;
return clean_form($a, $colorset, $user);
}
function theme_post(&$a){
if(! local_user())
return;
if (isset($_POST['duepuntozero-settings-submit'])){
set_pconfig(local_user(), 'duepuntozero', 'colorset', $_POST['duepuntozero_colorset']);
}
}
function theme_admin(&$a){
$colorset = get_config( 'duepuntozero', 'colorset');
$user = false;
return clean_form($a, $colorset, $user);
}
function theme_admin_post(&$a){
if (isset($_POST['duepuntozero-settings-submit'])){
set_config('duepuntozero', 'colorset', $_POST['duepuntozero_colorset']);
}
}
function clean_form(&$a, &$colorset, $user){
$colorset = array(
'default'=>t('default'),
'greenzero'=>t('greenzero'),
'purplezero'=>t('purplezero'),
'easterbunny'=>t('easterbunny'),
'darkzero'=>t('darkzero'),
'comix'=>t('comix'),
'slackr'=>t('slackr'),
);
if ($user) {
$color = get_pconfig(local_user(), 'duepuntozero', 'colorset');
} else {
$color = get_config( 'duepuntozero', 'colorset');
}
$t = get_markup_template("theme_settings.tpl" );
$o .= replace_macros($t, array(
'$submit' => t('Submit'),
'$baseurl' => $a->get_baseurl(),
'$title' => t("Theme settings"),
'$colorset' => array('duepuntozero_colorset', t('Variations'), $color, '', $colorset),
));
return $o;
}

View file

@ -0,0 +1,107 @@
body {
font-family: "Comic Sans MS", sans !important;
font-size: 13px;
}
.wall-item-content-wrapper {
border: none;
}
.wall-item-content-wrapper.comment {
background: #ffffff !important;
border-left: 1px solid #EEE;
}
.wall-item-tools {
background: none;
}
.comment-edit-text-empty, .comment-edit-text-full {
border: none;
border-left: 1px solid #EEE;
background: #EEEEEE;
}
.comment-edit-wrapper, .comment-wwedit-wrapper {
background: #ffffff !important;
}
section {
margin: 0px 32px;
}
aside {
margin-left: 32px;
}
nav {
margin-left: 32px;
margin-right: 32px;
}
nav #site-location {
top: 80px;
right: 36px;
}
.wall-item-photo, .photo, .contact-block-img, .my-comment-photo {
border-radius: 3px;
-moz-border-radius: 3px;
margin-top: 15px;
}
.wall-item-photo.comment {
margin-top: 26px;
}
.triangle-isosceles {
position:relative;
padding:15px;
margin:1em 0 3em;
color:#000;
background:#EEEEEE; /* default background for browsers without gradient support */
/* css3 */
background:-webkit-gradient(linear, 0 0, 0 100%, from(#EEEEEE), to(#ffffff));
background:-moz-linear-gradient(#EEEEEE, #ffffff);
background:-o-linear-gradient(#EEEEEE, #ffffff);
background:linear-gradient(#EEEEEE, #ffffff);
-webkit-border-radius:10px;
-moz-border-radius:10px;
border-radius:10px;
}
/* Variant : for left/right positioned triangle
------------------------------------------ */
.triangle-isosceles.left {
margin-left:30px;
background:#F8F8F8;
border: 2px solid #CCCCCC;
}
/* THE TRIANGLE
------------------------------------------------------------------------------------------------------------------------------- */
/* creates triangle */
.triangle-isosceles:after {
content:"";
position:absolute;
bottom:-8px; /* value = - border-top-width - border-bottom-width */
left:30px; /* controls horizontal position */
border-width:15px 15px 0; /* vary these values to change the angle of the vertex */
border-style:solid;
border-color:#f8f8f8 transparent;
/* reduce the damage in FF3.0 */
display:block;
width:0;
}
/* Variant : left
------------------------------------------ */
.triangle-isosceles.left:after {
top:12px; /* controls vertical position */
left:-30px; /* value = - border-left-width - border-right-width */
bottom:auto;
border-width:10px 30px 10px 0;
border-color:transparent #f8f8f8;
}

View file

@ -0,0 +1,187 @@
/* dark variation Fabio Comuni <fabrix.xm@gmail.com> */
a:link, a:visited { color: #99CCFF; text-decoration: none; }
a:hover {text-decoration: underline; }
input, select, textarea {
background-color: #222222;
color: #FFFFFF !important;
border: 1px solid #444444;
}
.openid { background-color: #222222;}
body { background-color: #222222; color: #cccccc; background-image: url('imgdarkzero/head.jpg'); }
aside{ background-image: url('imgdarkzero/border.jpg'); padding-bottom: 0px; }
section { background-color: #333333; background-image: url('imgdarkzero/border.jpg'); }
#panel { background-color: #2e2f2e;}
.tabs { background-image: url('imgdarkzero/head.jpg'); }
div.wall-item-content-wrapper.shiny { background-image: url('ingdarkzero/shiny.png'); }
nav #banner #logo-text a { color: #ffffff; }
.wall-item-content-wrapper {
border: 1px solid #444444;
background: #444444;
}
.wall-item-outside-wrapper.threaded > .wall-item-content-wrapper {
-moz-border-radius: 3px 3px 0px;
border-radius: 3px 3px 0px;
}
.wall-item-tools { background-color: #444444; background-image: none;}
.comment-wwedit-wrapper{
background-color: #333333;
}
.comment-wwedit-wrapper.threaded {
border: solid #444444;
border-width: 0px 3px 3px;
-moz-border-radius: 0px 0px 3px 3px;
border-radius: 0px 0px 3px 3px;
}
.editicon {
background-color: #333;
}
.comment-edit-preview{ color: #000000; }
.wall-item-content-wrapper.comment { background-color: #444444; border: 0px;}
.photo-top-album-name{ background-color: #333333; }
.photo-album-image-wrapper .caption { background-color: rgba(51, 51, 51, 0.8); color: #FFFFFF; }
.nav-selected.nav-link { color: #ffffff!important; border-bottom: 0px}
.nav-commlink, .nav-login-link {background-color: #b7bab3;}
.nav-commlink:link, .nav-commlink:visited,
.nav-login-link:link, .nav-login-link:visited{
color: #ffffff;
}
.fakelink, .fakelink:visited {
color: #99CCFF;
}
.wall-item-name-link {
color: #99CCFF;
}
.wall-item-photo-menu li a, .contact-photo-menu {
color: #CCCCCC; background-color: #333333;
}
.wall-item-photo-menu li a:hover {
background-color: #CCCCCC; color: #333333;
}
code {
background:#2e2f2e !important;
color:#fff !important;
}
blockquote {
background:#2e2f2e !important;
color:#eec !important;
}
#page-footer { min-height: 1em;}
footer {
margin: 0px 10%;
display: block;
background-image: url('imgdarkzero/sectionend.jpg');
background-position: top left;
background-repeat: repeat-x;
height: 25px;
}
input#dfrn-url {
background-color: #222222;
color: #FFFFFF !important;
}
.pager_first a, .pager_last a, .pager_prev a, .pager_next a, .pager_n a, .pager_current {
color: #000088;
}
#jot-perms-icon {
float: left;
}
#jot-title, #jot-category {
background-color: #333333;
border: 1px solid #333333;
}
#jot-title::-webkit-input-placeholder{ color: #555555!important;}
#jot-title:-moz-placeholder{color: #555555!important;}
#jot-category::-webkit-input-placeholder{ color: #555555!important;}
#jot-category:-moz-placeholder{color: #555555!important;}
#jot-title:hover,
#jot-title:focus,
#jot-category:hover,
#jot-category:focus {
border: 1px solid #cccccc;
}
.acl-list-item p, #profile-jot-email-label, div#jot-preview-content, div.profile-jot-net {
color: #eec;
}
#fancybox-content{
background:#444;
}
input#acl-search {
background-color: #aaa;
}
.notify-seen {
background:#111;
}
#nav-notifications-menu {
background: #2e2e2f;
}
#nav-notifications-menu li:hover {
background: #444;
}
.acpopupitem{
background:#2e2f2e;
}
.group-selected, .nets-selected, .fileas-selected, .categories-selected{
background:#2e2f2e;
}
/* Events */
.fc-state-highlight {
background: #666 !important;
}
.fc-state-disabled, .fc-state-disabled .fc-button-inner {
color: #000 !important;
}
/*Admin page */
#adminpage table tr:hover {
color: #eec;
background-color: #666;
}
.settings-widget .selected {
background: #666;
}
/* Stuff that doesn't seem to fit with anything else */
#datebrowse-sidebar select {
color:#99CCFF !important;
}
input#prvmail-subject {
background: #222 !important;
}

View file

@ -0,0 +1,46 @@
.vcard .fn {
color: orange !important;
}
.vcard .title {
color: #00BB00 !important;
}
.wall-item-content-wrapper {
border: 1px solid red;
background: #FFDDFF;
}
.wall-item-content-wrapper.comment {
background: #FFCCAA;
}
.comment-edit-wrapper {
background: yellow;
}
body { background-image: url('imgeasterbunny/head.jpg'); }
section { background: #EEFFFF; }
a, a:visited { color: #0000FF; text-decoration: none; }
a:hover {text-decoration: underline; }
aside( background-image: url('imgeasterbunny/border.jpg'); }
.tabs { background-image: url('imgeasterbunny/head.jpg'); }
div.wall-item-content-wrapper.shiny { background-image: url('imgeasterbunny/shiny.png'); }
.nav-commlink, .nav-login-link {
background-color: #aed3b2;
}
.fakelink, .fakelink:visited {
color: #0000FF;
}
.wall-item-name-link {
color: #0000FF;
}

View file

@ -0,0 +1,34 @@
/* green variation by Tobias Diekershoff <tobias.diekershoff@gmx.net> */
a:link, a:visited { color: #549f4f; text-decoration: none; }
a:hover {text-decoration: underline; }
.nav-selected.nav-link { color: #549f4f!important; border-bottom: 0px}
.nav-commlink, .nav-login-link {background-color: #aed3b2;}
.nav-commlink:link, .nav-commlink:visited,
.nav-login-link:link, .nav-login-link:visited{
color: #ffffff;
}
.icon {
display: block; width: 16px; height: 16px;
background-image: url('imggreenzero/greenicons.png');
}
body { background-image: url('imggreenzero/head.jpg'); }
aside { background-image: url('imggreenzero/border.jpg'); }
section { background-image: url('imggreenzero/border.jpg'); }
.tabs { background-image: url('imggreenzero/head.jpg'); }
div.wall-item-content-wrapper.shiny { background-image: url('imggreenzero/shiny.png'); }
.fakelink, .fakelink:visited, .fakelink:hover, .fakelink:link {
color: #549f4f !important;
}
.wall-item-name-link {
color: #549f4f;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 521 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 355 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 362 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 364 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 320 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 342 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 614 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 362 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 364 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 320 B

View file

@ -0,0 +1,25 @@
a, a:link, a:visited { color: #7433af; text-decoration: none; }
a:hover {text-decoration: underline; }
body { background-image: url('imgpurplezero/head.jpg'); }
aside( background-image: url('imgpurplezero/border.jpg'); }
section { background-image: url('imgpurplezero/border.jpg'); }
.tabs { background-image: url('imgpurplezero/head.jpg'); }
div.wall-item-content-wrapper.shiny { background-image: url('imgpurplezero/shiny.png'); }
.nav-commlink, .nav-login-link {
background-color: #aed3b2;
}
.fakelink, .fakelink:visited {
color: #7433af;
}
.wall-item-name-link {
color: #7433af;
}

View file

@ -0,0 +1,210 @@
.wall-item-content-wrapper {
border: none;
}
.wall-item-content-wrapper.comment {
background: #ffffff !important;
border-left: 1px solid #EEE;
}
.wall-item-tools {
background: none;
}
.wall-item-body a:hover {
color: #ff6600;
}
.widget {
/* box-shadow: 4px 4px 3px 0 #444444; */
}
.comment-edit-text-empty, .comment-edit-text-full {
border: none;
border-left: 1px solid #EEE;
background: #EEEEEE;
}
.comment-edit-wrapper, .comment-wwedit-wrapper {
background: #ffffff !important;
}
section {
margin: 0px 32px;
}
aside {
margin-left: 32px;
}
nav {
margin-left: 32px;
margin-right: 32px;
}
nav #site-location {
top: 80px;
right: 36px;
}
#profile-jot-text_parent, .mceLayout {
border-radius: 3px;
-moz-border-radius: 3px;
box-shadow: 4px 4px 3px 0 #444444;
}
#profile-jot-text:hover {
color: #000000;
}
#events-reminder {
border-radius: 3px;
-moz-border-radius: 3px;
opacity: 0.3;
filter:alpha(opacity=30);
margin-left: 5px;
margin-top: 5px;
}
#events-reminder.birthday-today, #events-reminder.event-today {
opacity: 1.0;
filter:alpha(opacity=100);
box-shadow: 4px 4px 3px 0 #444444;
margin-left: 0px;
margin-top: 0px;
}
#events-reminder:hover {
opacity: 1.0;
filter:alpha(opacity=100);
box-shadow: 4px 4px 3px 0 #444444;
margin-left: 0px;
margin-top: 0px;
}
.fc-event-skin {
background-color: #3465a4 !important;
}
.wall-item-photo, .photo, .contact-block-img, .my-comment-photo {
border-radius: 3px;
-moz-border-radius: 3px;
box-shadow: 4px 4px 3px 0 #444444;
}
.forumlist-img {
border-radius: 3px;
-moz-border-radius: 3px;
box-shadow: 4px 4px 3px 0 #444444;
}
#datebrowse-sidebar select {
margin-left: 25px;
border-radius: 3px;
-moz-border-radius: 3px;
opacity: 0.3;
filter:alpha(opacity=30);
}
#datebrowse-sidebar select:hover {
opacity: 1.0;
filter:alpha(opacity=100);
}
#posted-date-selector {
margin-left: 30px !important;
margin-top: 5px !important;
margin-right: 0px !important;
margin-bottom: 0px !important;
}
#posted-date-selector:hover {
box-shadow: 4px 4px 3px 0 #444444;
margin-left: 25px !important;
margin-top: 0px !important;
margin-right: 5px !important;
margin-bottom: 5px !important;
}
.contact-entry-photo img, .profile-match-photo img, #photo-photo img, .directory-photo-img, .photo-album-photo, .photo-top-photo, .profile-jot-text, .group-selected, .nets-selected, .fileas-selected, #profile-jot-submit, .categories-selected {
border-radius: 3px;
-moz-border-radius: 3px;
box-shadow: 4px 4px 3px 0 #444444;
}
.settings-widget .selected {
border-radius: 3px;
-moz-border-radius: 3px;
box-shadow: 4px 4px 3px 0 #444444;
}
#sidebar-page-list .label {
margin-left: 5px;
}
.photo {
border: 1px solid #AAAAAA;
}
.photo-top-photo, .photo-album-photo {
padding: 10px;
max-width: 300px;
border: 1px solid #888888;
}
.rotleft1 {
-webkit-transform: rotate(-1deg);
-moz-transform: rotate(-1deg);
-ms-transform: rotate(-1deg);
-o-transform: rotate(-1deg);
}
.rotleft2 {
-webkit-transform: rotate(-2deg);
-moz-transform: rotate(-2deg);
-ms-transform: rotate(-2deg);
-o-transform: rotate(-2deg);
}
.rotleft3 {
-webkit-transform: rotate(-3deg);
-moz-transform: rotate(-3deg);
-ms-transform: rotate(-3deg);
-o-transform: rotate(-3deg);
}
.rotleft4 {
-webkit-transform: rotate(-4deg);
-moz-transform: rotate(-4deg);
-ms-transform: rotate(-4deg);
-o-transform: rotate(-4deg);
}
.rotright1 {
-webkit-transform: rotate(1deg);
-moz-transform: rotate(1deg);
-ms-transform: rotate(1deg);
-o-transform: rotate(1deg);
}
.rotright2 {
-webkit-transform: rotate(2deg);
-moz-transform: rotate(2deg);
-ms-transform: rotate(2deg);
-o-transform: rotate(2deg);
}
.rotright3 {
-webkit-transform: rotate(3deg);
-moz-transform: rotate(3deg);
-ms-transform: rotate(3deg);
-o-transform: rotate(3deg);
}
.rotright4 {
-webkit-transform: rotate(4deg);
-moz-transform: rotate(4deg);
-ms-transform: rotate(4deg);
-o-transform: rotate(4deg);
}

View file

@ -0,0 +1,11 @@
<?php
if (file_exists("$THEMEPATH/style.css")){
echo file_get_contents("$THEMEPATH/style.css");
}
$s_colorset = get_config('duepuntozero','colorset');
$uid = local_user();
$colorset = get_pconfig( $uid, 'duepuntozero', 'colorset');
if (!x($colorset))
$colorset = $s_colorset;
?>

View file

@ -5,6 +5,23 @@ function duepuntozero_init(&$a) {
$a->theme_info = array();
set_template_engine($a, 'smarty3');
$colorset = get_pconfig( local_user(), 'duepuntozero','colorset');
if (!$colorset)
$colorset = get_config('duepuntozero', 'colorset'); // user setting have priority, then node settings
if ($colorset) {
if ($colorset == 'greenzero')
$a->page['htmlhead'] .= '<link rel="stylesheet" href="view/theme/duepuntozero/deriv/greenzero.css" type="text/css" media="screen" />'."\n";
if ($colorset == 'purplezero')
$a->page['htmlhead'] .= '<link rel="stylesheet" href="view/theme/duepuntozero/deriv/purplezero.css" type="text/css" media="screen" />'."\n";
if ($colorset == 'easterbunny')
$a->page['htmlhead'] .= '<link rel="stylesheet" href="view/theme/duepuntozero/deriv/easterbunny.css" type="text/css" media="screen" />'."\n";
if ($colorset == 'darkzero')
$a->page['htmlhead'] .= '<link rel="stylesheet" href="view/theme/duepuntozero/deriv/darkzero.css" type="text/css" media="screen" />'."\n";
if ($colorset == 'comix')
$a->page['htmlhead'] .= '<link rel="stylesheet" href="view/theme/duepuntozero/deriv/comix.css" type="text/css" media="screen" />'."\n";
if ($colorset == 'slackr')
$a->page['htmlhead'] .= '<link rel="stylesheet" href="view/theme/duepuntozero/deriv/slackr.css" type="text/css" media="screen" />'."\n";
}
$a->page['htmlhead'] .= <<< EOT
<script>
function insertFormatting(comment,BBcode,id) {