diff options
author | Michael Vogel <icarus@dabo.de> | 2012-03-09 11:41:23 +0100 |
---|---|---|
committer | Michael Vogel <icarus@dabo.de> | 2012-03-09 11:41:23 +0100 |
commit | 11c29e0cba4f521c5f37d963109c4807af8bccae (patch) | |
tree | 3dde72ce8528cfa9cc6111098585623b5971b605 /view/theme/quattro | |
parent | 52ea842e872cc004fd012496c828e9fb6186bec9 (diff) | |
parent | 2ce78253aeda8672e12f18f0963f52cd4a35e546 (diff) | |
download | volse-hubzilla-11c29e0cba4f521c5f37d963109c4807af8bccae.tar.gz volse-hubzilla-11c29e0cba4f521c5f37d963109c4807af8bccae.tar.bz2 volse-hubzilla-11c29e0cba4f521c5f37d963109c4807af8bccae.zip |
Merge commit 'upstream/master'
Diffstat (limited to 'view/theme/quattro')
-rwxr-xr-x | view/theme/quattro/colors.less | 2 | ||||
-rwxr-xr-x | view/theme/quattro/quattro.less | 27 | ||||
-rwxr-xr-x | view/theme/quattro/style.css | 33 | ||||
-rw-r--r-- | view/theme/quattro/theme.php | 46 | ||||
-rw-r--r-- | view/theme/quattro/theme_settings.tpl | 11 |
5 files changed, 117 insertions, 2 deletions
diff --git a/view/theme/quattro/colors.less b/view/theme/quattro/colors.less index 18d0fc620..9183b2e77 100755 --- a/view/theme/quattro/colors.less +++ b/view/theme/quattro/colors.less @@ -71,6 +71,8 @@ @NoticeColor: @Grey1; @NoticeBackgroundColor: #511919; +@FieldHelpColor: @Grey3; + @ThreadBackgroundColor: #f6f7f8; @ShinyBorderColor: @Yellow1; diff --git a/view/theme/quattro/quattro.less b/view/theme/quattro/quattro.less index 9d2608261..27c48f195 100755 --- a/view/theme/quattro/quattro.less +++ b/view/theme/quattro/quattro.less @@ -890,6 +890,31 @@ ul.tabs { } +/** group editor **/ +#group-edit-desc { margin-top: 1em; color: @FieldHelpColor; } +#group-update-wrapper{ + height: auto; overflow: auto; + #group { + width:300px; + float:left; + margin-right:20px; + } + #contacts { + width:300px; + float:left; + } + #group-separator { display: none; } + .contact_list { + height: 300px; + border: 1px solid @MenuBorder; + overflow: auto; + .contact-block-div { + width: 50px; height: 50px; + float: left; + } + } +} + /** * Form fields */ @@ -913,7 +938,7 @@ ul.tabs { .field_help { display: block; margin-left: 200px; - color: #666666; + color: @FieldHelpColor; } diff --git a/view/theme/quattro/style.css b/view/theme/quattro/style.css index b728023c9..6087e4cd1 100755 --- a/view/theme/quattro/style.css +++ b/view/theme/quattro/style.css @@ -1304,6 +1304,37 @@ ul.tabs li { ul.tabs li .active { border-bottom: 1px solid #005c94; } +/** group editor **/ +#group-edit-desc { + margin-top: 1em; + color: #999999; +} +#group-update-wrapper { + height: auto; + overflow: auto; +} +#group-update-wrapper #group { + width: 300px; + float: left; + margin-right: 20px; +} +#group-update-wrapper #contacts { + width: 300px; + float: left; +} +#group-update-wrapper #group-separator { + display: none; +} +#group-update-wrapper .contact_list { + height: 300px; + border: 1px solid #364e59; + overflow: auto; +} +#group-update-wrapper .contact_list .contact-block-div { + width: 50px; + height: 50px; + float: left; +} /** * Form fields */ @@ -1326,7 +1357,7 @@ ul.tabs li .active { .field .field_help { display: block; margin-left: 200px; - color: #666666; + color: #999999; } .field .onoff { float: left; 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> |