aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
Diffstat (limited to 'view')
-rwxr-xr-xview/settings.tpl4
-rw-r--r--view/theme/dispy/style.css71
-rw-r--r--view/theme/quattro/theme.php46
-rw-r--r--view/theme/quattro/theme_settings.tpl11
4 files changed, 94 insertions, 38 deletions
diff --git a/view/settings.tpl b/view/settings.tpl
index 1172df8b9..b7f427b32 100755
--- a/view/settings.tpl
+++ b/view/settings.tpl
@@ -60,9 +60,9 @@ $suggestme
{{inc field_input.tpl with $field=$expire.days }}{{endinc}}
<div class="field input">
- <span class="field_help"><a href="#advaced-expire-popup" id="advenced-expire" class='popupbox' title="$expire.advanced">$expire.label</a></span>
+ <span class="field_help"><a href="#advanced-expire-popup" id="advanced-expire" class='popupbox' title="$expire.advanced">$expire.label</a></span>
<div style="display: none;">
- <div id="advaced-expire-popup" style="width:auto;height:auto;overflow:auto;">
+ <div id="advanced-expire-popup" style="width:auto;height:auto;overflow:auto;">
<h3>$expire.advanced</h3>
{{ inc field_yesno.tpl with $field=$expire.items }}{{endinc}}
{{ inc field_yesno.tpl with $field=$expire.notes }}{{endinc}}
diff --git a/view/theme/dispy/style.css b/view/theme/dispy/style.css
index bda163b8f..0032c4866 100644
--- a/view/theme/dispy/style.css
+++ b/view/theme/dispy/style.css
@@ -177,14 +177,14 @@ input[type=submit] {
padding: 1em;
}
.pager {
- padding-top: 30px;
+ margin-top: 60px;
display: block;
clear: both;
text-align: center;
}
.pager span {
padding: 4px;
- margin:4px;
+ margin: 4px;
}
.pager_current {
background-color: #729fcf;
@@ -618,20 +618,28 @@ aside {
}
.vcard .fn {
font-size: 1.7em;
- font-weight: 700;
+ font-weight: bold;
border-bottom: 1px solid #729fcf;
- padding-top: 1px;
+ padding-top: 3px;
}
.vcard #profile-photo-wrapper {
- margin: 10px 0px;
+ margin: 20px;
+}
+.vcard #profile-photo-wrapper img {
+ box-shadow: 3px 3px 10px 0;
}
aside h4 {
font-size: 1.2em;
}
-
aside #viewcontacts {
text-align: right;
}
+.aprofile dt {
+ box-shadow: 1px 1px 5px 0;
+ color: #666666;
+ margin: 15px 0 5px;
+ padding-left: 5px;
+}
#profile-extra-links ul {
margin-left: 0px;
padding-left: 0px;
@@ -750,34 +758,27 @@ aside #viewcontacts {
}
#jot #jot-title {
border: 0px;
- margin: 0px;
+ margin: 0 0 5px;
height: 20px;
- width: 100%;
+ width: 90%;
font-weight: bold;
- border: 1px solid #ffffff;
border-radius: 5px;
-}
-#jot #jot-title:-webkit-input-placeholder {
- font-weight: normal;
-}
-#jot #jot-title:-moz-placeholder {
- font-weight: normal;
-}
-#jot #jot-title:placeholder {
- font-weight: normal;
+ vertical-align: middle;
+ padding: 5px 1px;
}
#jot #jot-title:hover,
#jot #jot-title:focus {
- border: 1px solid #999999;
+ border: 1px solid #999;
border-radius: 5px;
}
#jot #character-counter {
- width: 80px;
+ width: 40px;
float: right;
text-align: right;
height: 20px;
line-height: 20px;
- padding-right: 20px;
+ padding: 5px;
+ margin: 0 0 5px;
}
#profile-jot-text_tbl {
margin-bottom: 10px;
@@ -796,10 +797,6 @@ aside #viewcontacts {
float: left;
margin-left: 10px;
}
-#character-counter {
- float:right;
- padding:8px 10px;
-}
#profile-rotator-wrapper {
float: right;
}
@@ -1556,10 +1553,11 @@ div[id$="wrapper"] br {
.view-contact-wrapper,
.contact-entry-wrapper {
float: left;
- margin-right: 20px;
- margin-bottom: 20px;
+ margin-right: 5px;
+ margin-bottom: 40px;
width: 120px;
- /*height: 120px;*/
+ height: 120px;
+ padding: 3px;
position: relative;
}
.contact-direction-wrapper {
@@ -1703,13 +1701,15 @@ div[id$="wrapper"] br {
}
#settings-nickname-desc {
- background-color: #def;
+ background-color: #eee;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
padding: 5px;
}
-
+#settings-default-perms {
+ margin-bottom: 20px;
+}
#register-form div,
#profile-edit-form div {
clear: both;
@@ -2112,17 +2112,16 @@ div[id$="wrapper"] br {
display: block;
font-size: 1.077em;
/*font-weight: bold;*/
- margin-bottom: 0.2em;
- margin: 0 10px 0.2em 0;
+ margin: 0 10px 0.5em 0;
border: 1px #999 solid;
padding: 5px;
- background: #def;
+ background: #eee;
vertical-align: middle;
}
.field input {
width: 250px;
height: 25px;
- border: 1px #666 solid;
+ border: 1px #999 solid;
}
.field textarea {
width: 80%;
@@ -2147,8 +2146,8 @@ div[id$="wrapper"] br {
text-decoration: none;
}
.field .onoff .on {
- background: url("../../../images/onoff.jpg") no-repeat 42px 1px #def;
- color: #333;
+ background: url("../../../images/onoff.jpg") no-repeat 42px 1px #999;
+ color: #111;
text-align: left;
}
.field .onoff .off {
diff --git a/view/theme/quattro/theme.php b/view/theme/quattro/theme.php
new file mode 100644
index 000000000..7e5ab1e62
--- /dev/null
+++ b/view/theme/quattro/theme.php
@@ -0,0 +1,46 @@
+<?php
+
+$a->hooks[] = array('plugin_settings', 'view/theme/quattro/theme.php', 'quattro_settings');
+$a->hooks[] = array('plugin_settings_post', 'view/theme/quattro/theme.php', 'quattro_settings_post');
+
+
+function quattro_settings(&$a, &$o){
+ if(!local_user())
+ return;
+
+ $align = get_pconfig(local_user(), 'quattro', 'align' );
+
+ $t = file_get_contents( dirname(__file__). "/theme_settings.tpl" );
+ $o .= replace_macros($t, array(
+ '$submit' => t('Submit'),
+ '$baseurl' => $a->get_baseurl(),
+ '$title' => t("Theme settings"),
+ '$align' => array('quattro_align', t('Alignment'), $align, '', array('left'=>t('Left'), 'center'=>t('Center'))),
+ ));
+}
+
+function quattro_settings_post(&$a){
+ if(! local_user())
+ return;
+ if (isset($_POST['quattro-settings-submit'])){
+ set_pconfig(local_user(), 'quattro', 'align', $_POST['quattro_align']);
+ }
+ goaway($a->get_baseurl()."/settings/addon");
+}
+
+
+$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>
+ ";
+
+}
diff --git a/view/theme/quattro/theme_settings.tpl b/view/theme/quattro/theme_settings.tpl
new file mode 100644
index 000000000..25af04253
--- /dev/null
+++ b/view/theme/quattro/theme_settings.tpl
@@ -0,0 +1,11 @@
+<div class="settings-block">
+ <h3 class="settings-heading">$title</h3>
+
+ {{inc field_select.tpl with $field=$align}}{{endinc}}
+
+ <div class="settings-submit-wrapper">
+ <input type="submit" value="$submit" class="settings-submit" name="quattro-settings-submit" />
+ </div>
+
+
+</div>