aboutsummaryrefslogtreecommitdiffstats
path: root/view/theme/redbasic
diff options
context:
space:
mode:
authorThomas Willingham <founder@kakste.com>2013-03-10 21:01:18 +0000
committerThomas Willingham <founder@kakste.com>2013-03-10 21:01:18 +0000
commit5a2970dea12e7c36ee62054794fe98226324185e (patch)
treec6a144681994cb85fc0a74c5b30c864305e9dc58 /view/theme/redbasic
parent575874d0a895bda73be201affd351d5c8f1bb63d (diff)
downloadvolse-hubzilla-5a2970dea12e7c36ee62054794fe98226324185e.tar.gz
volse-hubzilla-5a2970dea12e7c36ee62054794fe98226324185e.tar.bz2
volse-hubzilla-5a2970dea12e7c36ee62054794fe98226324185e.zip
Redbasic - add stupid mode theme settings. Partial functionality.
Diffstat (limited to 'view/theme/redbasic')
-rw-r--r--view/theme/redbasic/css/mod_home.css2
-rw-r--r--view/theme/redbasic/css/mod_profile.css40
-rw-r--r--view/theme/redbasic/php/config.php15
-rw-r--r--view/theme/redbasic/tpl/basic_theme_settings.tpl9
-rw-r--r--view/theme/redbasic/tpl/profile_advanced.tpl171
5 files changed, 234 insertions, 3 deletions
diff --git a/view/theme/redbasic/css/mod_home.css b/view/theme/redbasic/css/mod_home.css
new file mode 100644
index 000000000..e66d343ab
--- /dev/null
+++ b/view/theme/redbasic/css/mod_home.css
@@ -0,0 +1,2 @@
+section {left: 20px;}
+
diff --git a/view/theme/redbasic/css/mod_profile.css b/view/theme/redbasic/css/mod_profile.css
new file mode 100644
index 000000000..d3b546113
--- /dev/null
+++ b/view/theme/redbasic/css/mod_profile.css
@@ -0,0 +1,40 @@
+body {
+background-color: #2e2f2e !important;
+color: #fff !important;
+}
+
+aside {
+position: relative;
+float: right;
+margin-right: 15px;
+}
+
+section {
+right: 250px;
+left: 450px;
+}
+
+.aprofile dt {
+ background: none; /*#2e302e; */
+ color: #eec;
+ font-weight: bold;
+/* box-shadow: 1px 1px 5px 0 #111; */
+ margin: 15px 0px 15px;
+ padding-left: 5px;
+/* box-shadow: 5px 5px 5px #000; */
+ width: 100%;
+ }
+
+.aprofile dd{
+ background: #333;
+ box-shadow: 5px 5px 5px #222 inset;
+ border-radius: 5px 5px 5px 5px;
+ margin-left: 120px;
+ max-width: 100%;
+ padding: 10px;
+}
+#profile-extra-links ul {
+ margin-left: 0px;
+ padding-left: 0px;
+ list-style: none;
+} \ No newline at end of file
diff --git a/view/theme/redbasic/php/config.php b/view/theme/redbasic/php/config.php
index 9afc010d7..73d993d6c 100644
--- a/view/theme/redbasic/php/config.php
+++ b/view/theme/redbasic/php/config.php
@@ -6,8 +6,6 @@
function theme_content(&$a) {
// Doesn't yet work for anyone other than the channel owner, and stupid mode isn't finished, so return both for now.
if(!local_user()) { return; }
- if(! feature_enabled(local_user(),'expert')) {return;}
-
$font_size = get_pconfig(local_user(),'redbasic', 'font_size' );
$line_height = get_pconfig(local_user(), 'redbasic', 'line_height' );
$colour = get_pconfig(local_user(), 'redbasic', 'colour' );
@@ -141,7 +139,18 @@ function redbasic_form(&$a, $font_size, $line_height, $colour, $shadow, $navcolo
'$iconset' => array('redbasic_iconset', t('Icons'), $iconset, '', $iconsets),
'$shiny' => array('redbasic_shiny', t('Shiny style'), $shiny, '', $shinys),
));}
-
+
+ if(! feature_enabled(local_user(),'expert')) {
+ $t = get_markup_template('basic_theme_settings.tpl');
+ $o .= replace_macros($t, array(
+ '$submit' => t('Submit'),
+ '$baseurl' => $a->get_baseurl(),
+ '$title' => t("Theme settings"),
+ '$font_size' => array('redbasic_font_size', t('Set font-size for posts and comments'), $font_size, '', $font_sizes),
+ '$line_height' => array('redbasic_line_height', t('Set line-height for posts and comments'), $line_height, '', $line_heights),
+ '$colour_scheme' => array('redbasic_colour_scheme', t('Set colour scheme'), $colour_scheme, '', $colour_schemes),
+ ));}
+
return $o;
}
diff --git a/view/theme/redbasic/tpl/basic_theme_settings.tpl b/view/theme/redbasic/tpl/basic_theme_settings.tpl
new file mode 100644
index 000000000..6f71a6a1a
--- /dev/null
+++ b/view/theme/redbasic/tpl/basic_theme_settings.tpl
@@ -0,0 +1,9 @@
+{{inc field_select.tpl with $field=$font_size}}{{endinc}}
+
+{{inc field_select.tpl with $field=$line_height}}{{endinc}}
+
+{{inc field_select.tpl with $field=$colour_scheme}}{{endinc}}
+
+<div class="settings-submit-wrapper">
+ <input type="submit" value="$submit" class="settings-submit" name="redbasic-settings-submit" />
+</div>
diff --git a/view/theme/redbasic/tpl/profile_advanced.tpl b/view/theme/redbasic/tpl/profile_advanced.tpl
new file mode 100644
index 000000000..cb0cc4d9a
--- /dev/null
+++ b/view/theme/redbasic/tpl/profile_advanced.tpl
@@ -0,0 +1,171 @@
+<h2>$title</h2>
+
+<div id="profile">
+<dl id="aprofile-fullname" class="aprofile">
+ <dt>$profile.fullname.0</dt>
+ <dd>$profile.fullname.1</dd>
+</dl>
+
+{{ if $profile.gender }}
+<dl id="aprofile-gender" class="aprofile">
+ <dt>$profile.gender.0</dt>
+ <dd>$profile.gender.1</dd>
+</dl>
+{{ endif }}
+
+{{ if $profile.birthday }}
+<dl id="aprofile-birthday" class="aprofile">
+ <dt>$profile.birthday.0</dt>
+ <dd>$profile.birthday.1</dd>
+</dl>
+{{ endif }}
+
+{{ if $profile.age }}
+<dl id="aprofile-age" class="aprofile">
+ <dt>$profile.age.0</dt>
+ <dd>$profile.age.1</dd>
+</dl>
+{{ endif }}
+
+{{ if $profile.marital }}
+<dl id="aprofile-marital" class="aprofile">
+ <dt><span class="heart">&hearts;</span> $profile.marital.0</dt>
+ <dd>$profile.marital.1{{ if $profile.marital.with }} ($profile.marital.with){{ endif }}{{ if $profile.howlong }} $profile.howlong{{ endif }}</dd>
+</dl>
+{{ endif }}
+
+{{ if $profile.sexual }}
+<dl id="aprofile-sexual" class="aprofile">
+ <dt>$profile.sexual.0</dt>
+ <dd>$profile.sexual.1</dd>
+</dl>
+{{ endif }}
+
+{{ if $profile.keywords }}
+<dl id="aprofile-tags" class="aprofile">
+ <dt>$profile.keywords.0</dt>
+ <dd>$profile.keywords.1</dd>
+</dl>
+{{ endif }}
+
+{{ if $profile.homepage }}
+<dl id="aprofile-homepage" class="aprofile">
+ <dt>$profile.homepage.0</dt>
+ <dd>$profile.homepage.1</dd>
+</dl>
+{{ endif }}
+
+{{ if $profile.hometown }}
+<dl id="aprofile-hometown" class="aprofile">
+ <dt>$profile.hometown.0</dt>
+ <dd>$profile.hometown.1</dd>
+</dl>
+{{ endif }}
+
+{{ if $profile.politic }}
+<dl id="aprofile-politic" class="aprofile">
+ <dt>$profile.politic.0</dt>
+ <dd>$profile.politic.1</dd>
+</dl>
+{{ endif }}
+
+{{ if $profile.religion }}
+<dl id="aprofile-religion" class="aprofile">
+ <dt>$profile.religion.0</dt>
+ <dd>$profile.religion.1</dd>
+</dl>
+{{ endif }}
+
+{{ if $profile.about }}
+<dl id="aprofile-about" class="aprofile">
+ <dt>$profile.about.0</dt>
+ <dd>$profile.about.1</dd>
+</dl>
+{{ endif }}
+
+{{ if $profile.interest }}
+<dl id="aprofile-interest" class="aprofile">
+ <dt>$profile.interest.0</dt>
+ <dd>$profile.interest.1</dd>
+</dl>
+{{ endif }}
+
+{{ if $profile.likes }}
+<dl id="aprofile-likes" class="aprofile">
+ <dt>$profile.likes.0</dt>
+ <dd>$profile.likes.1</dd>
+</dl>
+{{ endif }}
+
+{{ if $profile.dislikes }}
+<dl id="aprofile-dislikes" class="aprofile">
+ <dt>$profile.dislikes.0</dt>
+ <dd>$profile.dislikes.1</dd>
+</dl>
+{{ endif }}
+
+{{ if $profile.contact }}
+<dl id="aprofile-contact" class="aprofile">
+ <dt>$profile.contact.0</dt>
+ <dd>$profile.contact.1</dd>
+</dl>
+{{ endif }}
+
+
+{{ if $profile.music }}
+<dl id="aprofile-music" class="aprofile">
+ <dt>$profile.music.0</dt>
+ <dd>$profile.music.1</dd>
+</dl>
+{{ endif }}
+
+
+{{ if $profile.book }}
+<dl id="aprofile-book" class="aprofile">
+ <dt>$profile.book.0</dt>
+ <dd>$profile.book.1</dd>
+</dl>
+{{ endif }}
+
+
+{{ if $profile.tv }}
+<dl id="aprofile-tv" class="aprofile">
+ <dt>$profile.tv.0</dt>
+ <dd>$profile.tv.1</dd>
+</dl>
+{{ endif }}
+
+
+{{ if $profile.film }}
+<dl id="aprofile-film" class="aprofile">
+ <dt>$profile.film.0</dt>
+ <dd>$profile.film.1</dd>
+</dl>
+{{ endif }}
+
+
+{{ if $profile.romance }}
+<dl id="aprofile-romance" class="aprofile">
+ <dt>$profile.romance.0</dt>
+ <dd>$profile.romance.1</dd>
+</dl>
+{{ endif }}
+
+
+{{ if $profile.work }}
+<dl id="aprofile-work" class="aprofile">
+ <dt>$profile.work.0</dt>
+ <dd>$profile.work.1</dd>
+</dl>
+{{ endif }}
+
+{{ if $profile.education }}
+<dl id="aprofile-education" class="aprofile">
+ <dt>$profile.education.0</dt>
+ <dd>$profile.education.1</dd>
+</dl>
+{{ endif }}
+</div>
+
+
+