Redbasic - add stupid mode theme settings. Partial functionality.
This commit is contained in:
parent
575874d0a8
commit
5a2970dea1
2
view/theme/redbasic/css/mod_home.css
Normal file
2
view/theme/redbasic/css/mod_home.css
Normal file
@ -0,0 +1,2 @@
|
||||
section {left: 20px;}
|
||||
|
40
view/theme/redbasic/css/mod_profile.css
Normal file
40
view/theme/redbasic/css/mod_profile.css
Normal file
@ -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;
|
||||
}
|
@ -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' );
|
||||
@ -142,6 +140,17 @@ function redbasic_form(&$a, $font_size, $line_height, $colour, $shadow, $navcolo
|
||||
'$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;
|
||||
}
|
||||
|
||||
|
9
view/theme/redbasic/tpl/basic_theme_settings.tpl
Normal file
9
view/theme/redbasic/tpl/basic_theme_settings.tpl
Normal file
@ -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>
|
171
view/theme/redbasic/tpl/profile_advanced.tpl
Normal file
171
view/theme/redbasic/tpl/profile_advanced.tpl
Normal file
@ -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">♥</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>
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user