diff options
-rw-r--r-- | home.html | 11 | ||||
-rw-r--r-- | images/mistpark-net.jpg | bin | 0 -> 3532 bytes | |||
-rw-r--r-- | include/auth.php | 2 | ||||
-rw-r--r-- | include/nav.php | 1 | ||||
-rw-r--r-- | mod/contacts.php | 1 | ||||
-rw-r--r-- | mod/directory.php | 1 | ||||
-rw-r--r-- | mod/home.php | 2 | ||||
-rw-r--r-- | mod/message.php | 1 | ||||
-rw-r--r-- | mod/network.php | 2 | ||||
-rw-r--r-- | mod/notifications.php | 1 | ||||
-rw-r--r-- | mod/profile.php | 1 | ||||
-rw-r--r-- | mod/profiles.php | 1 | ||||
-rw-r--r-- | mod/settings.php | 5 | ||||
-rw-r--r-- | view/default.php | 2 | ||||
-rw-r--r-- | view/directory_header.tpl | 2 | ||||
-rw-r--r-- | view/profile.php | 2 | ||||
-rw-r--r-- | view/profile_edit.tpl | 2 | ||||
-rw-r--r-- | view/settings.tpl | 2 | ||||
-rw-r--r-- | view/theme/clean/style.css | 6 | ||||
-rw-r--r-- | view/theme/darkness/style.css | 15 | ||||
-rw-r--r-- | view/theme/default/style.css | 81 | ||||
-rw-r--r-- | view/theme/goldenrod/style.css | 4 | ||||
-rw-r--r-- | view/theme/shady/style.css | 70 |
23 files changed, 179 insertions, 36 deletions
diff --git a/home.html b/home.html new file mode 100644 index 000000000..83fe0f3cc --- /dev/null +++ b/home.html @@ -0,0 +1,11 @@ +<img src="images/mistpark-net.jpg" alt="mistpark network logo" align="left" style="margin-right: 30px;" /> +<p> +Bring your privacy back home - where it belongs. +</p> +<p> +Share your life with your friends and family - privately, securely. +</p> +<p> +Join the mistpark "dispersed" social network. +</p> +<div style="height: 30px;" ></div> diff --git a/images/mistpark-net.jpg b/images/mistpark-net.jpg Binary files differnew file mode 100644 index 000000000..c3be16b81 --- /dev/null +++ b/images/mistpark-net.jpg diff --git a/include/auth.php b/include/auth.php index 78e2bb8e0..b856379f1 100644 --- a/include/auth.php +++ b/include/auth.php @@ -42,6 +42,8 @@ else { unset($_SESSION['visitor_id']); unset($_SESSION['administrator']); unset($_SESSION['cid']); + unset($_SESSION['theme']); + $encrypted = hash('whirlpool',trim($_POST['password'])); if((x($_POST,'auth-params')) && $_POST['auth-params'] == 'login') { diff --git a/include/nav.php b/include/nav.php index 4833ed7db..94fbf36bb 100644 --- a/include/nav.php +++ b/include/nav.php @@ -40,3 +40,4 @@ if(x($_SESSION['uid'])) { } $a->page['nav'] .= "</span>\r\n<span id=\"nav-end\"></span>\r\n"; + $a->page['nav'] .= '<span id="banner">mistpark</span>'; diff --git a/mod/contacts.php b/mod/contacts.php index 2469e0c6f..45f792d30 100644 --- a/mod/contacts.php +++ b/mod/contacts.php @@ -72,6 +72,7 @@ function contacts_post(&$a) { function contacts_content(&$a) { + $o .= '<script> $(document).ready(function() { $(\'#nav-contacts-link\').addClass(\'nav-selected\'); });</script>'; if(! local_user()) { notice( t('Permission denied.') . EOL); return; diff --git a/mod/directory.php b/mod/directory.php index 9cce16760..4e3657673 100644 --- a/mod/directory.php +++ b/mod/directory.php @@ -4,6 +4,7 @@ function directory_init(&$a) { } function directory_content(&$a) { + $o .= '<script> $(document).ready(function() { $(\'#nav-directory-link\').addClass(\'nav-selected\'); });</script>'; $search = ((x($_GET,'search')) ? notags(trim($_GET['search'])) : ''); diff --git a/mod/home.php b/mod/home.php index 3a1aa212a..4406576a3 100644 --- a/mod/home.php +++ b/mod/home.php @@ -15,6 +15,8 @@ function home_content(&$a) { $a->page['footer'] .= "<div class=\"powered\" >Powered by <a href=\"http://mistpark.com\" name=\"mistpark\" >mistpark</a></div>"; $o .= '<h1>Welcome' . ((x($a->config,'sitename')) ? " to {$a->config['sitename']}" : "" ) . '</h1>'; + if(file_exists('home.html')) + $o .= file_get_contents('home.html'); $o .= login(($a->config['register_policy'] == REGISTER_CLOSED) ? 0 : 1); return $o; diff --git a/mod/message.php b/mod/message.php index 2048cff1f..6119e894f 100644 --- a/mod/message.php +++ b/mod/message.php @@ -82,6 +82,7 @@ function message_post(&$a) { } function message_content(&$a) { + $o .= '<script> $(document).ready(function() { $(\'#nav-messages-link\').addClass(\'nav-selected\'); });</script>'; if(! local_user()) { notice( t('Permission denied.') . EOL); diff --git a/mod/network.php b/mod/network.php index afe44dabf..c5845f63c 100644 --- a/mod/network.php +++ b/mod/network.php @@ -19,6 +19,8 @@ function network_content(&$a, $update = false) { $group = 0; if(! $update) { + $o .= '<script> $(document).ready(function() { $(\'#nav-network-link\').addClass(\'nav-selected\'); });</script>'; + // pull out the group here because the updater might have different args if($a->argc > 1) { $group = intval($a->argv[1]); diff --git a/mod/notifications.php b/mod/notifications.php index 6422b3b00..96f50d90b 100644 --- a/mod/notifications.php +++ b/mod/notifications.php @@ -57,6 +57,7 @@ function notifications_content(&$a) { } $o = ''; + $o .= '<script> $(document).ready(function() { $(\'#nav-notify-link\').addClass(\'nav-selected\'); });</script>'; if(($a->argc > 1) && ($a->argv[1] == 'all')) $sql_extra = ''; diff --git a/mod/profile.php b/mod/profile.php index c42291d96..6923b0923 100644 --- a/mod/profile.php +++ b/mod/profile.php @@ -89,6 +89,7 @@ function profile_content(&$a, $update = false) { $a->profile['profile_uid'] = $_SESSION['profile_uid']; } else { + $o .= '<script> $(document).ready(function() { $(\'#nav-home-link\').addClass(\'nav-selected\'); });</script>'; // set the uid so we can pick it up during update $_SESSION['profile_uid'] = $a->profile['uid']; } diff --git a/mod/profiles.php b/mod/profiles.php index 5ee9a3e96..c9dc4c80c 100644 --- a/mod/profiles.php +++ b/mod/profiles.php @@ -157,6 +157,7 @@ function profiles_post(&$a) { function profiles_content(&$a) { + $o .= '<script> $(document).ready(function() { $(\'#nav-profiles-link\').addClass(\'nav-selected\'); });</script>'; if(! local_user()) { notice( t('Permission denied.') . EOL); return; diff --git a/mod/settings.php b/mod/settings.php index fbeee7768..2e14fcee5 100644 --- a/mod/settings.php +++ b/mod/settings.php @@ -155,6 +155,7 @@ function settings_post(&$a) { if(! function_exists('settings_content')) { function settings_content(&$a) { + $o .= '<script> $(document).ready(function() { $(\'#nav-settings-link\').addClass(\'nav-selected\'); });</script>'; if(! local_user()) { notice( t('Permission denied.') . EOL ); @@ -229,9 +230,9 @@ function settings_content(&$a) { '$basepath' => $a->get_hostname(), '$baseurl' => $a->get_baseurl())); - $o = file_get_contents('view/settings.tpl'); + $stpl = file_get_contents('view/settings.tpl'); - $o = replace_macros($o,array( + $o .= replace_macros($stpl,array( '$baseurl' => $a->get_baseurl(), '$uid' => $_SESSION['uid'], '$username' => $username, diff --git a/view/default.php b/view/default.php index 47adf4a76..2d45d946a 100644 --- a/view/default.php +++ b/view/default.php @@ -6,7 +6,7 @@ </head>
<body>
<header><?php echo $page['header']; ?></header>
- <nav><?php echo $page['nav']; ?></nav>
+ <nav><div id="top-margin"></div><?php echo $page['nav']; ?></nav>
<aside><?php echo $page['aside']; ?></aside>
<section><?php echo $page['content']; ?>
<div id="page-footer"></div>
diff --git a/view/directory_header.tpl b/view/directory_header.tpl index c4217ac48..ba39236f2 100644 --- a/view/directory_header.tpl +++ b/view/directory_header.tpl @@ -1,6 +1,6 @@ <h1>Site Directory</h1> -<ul><li><div id="global-directory-link"><a href="http://dir.dfrn.org">Global Community Directory</a></div></li></ul> +<ul><li><div id="global-directory-link"><a href="http://dir.dfrn.org">Global Directory</a></div></li></ul> $finding diff --git a/view/profile.php b/view/profile.php index e2c190da0..a07a45220 100644 --- a/view/profile.php +++ b/view/profile.php @@ -6,7 +6,7 @@ </head>
<body>
<header><?php echo $page['header']; ?></header>
-<nav><?php echo $page['nav']; ?></nav>
+<nav><div id="top-margin"></div><?php echo $page['nav']; ?></nav>
<aside>
<?php if((is_array($profile)) && count($profile)) { ?>
<div class="vcard">
diff --git a/view/profile_edit.tpl b/view/profile_edit.tpl index 7bbd4091b..8d32226bc 100644 --- a/view/profile_edit.tpl +++ b/view/profile_edit.tpl @@ -2,7 +2,7 @@ <div id="profile-edit-links"> <ul> -<li><a href="profile/$profile_id/view" id="profile-edit-view-link" title="View this profile">View this profile</a></li> +<li><a href="profile/$profile_id/view?tab=profile" id="profile-edit-view-link" title="View this profile">View this profile</a></li> <li><a href="profiles/clone/$profile_id" id="profile-edit-clone-link" title="Create a new profile using these settings">Clone this profile</a></li> <li></li> <li><a href="profiles/drop/$profile_id" id="profile-edit-drop-link" title="Delete this profile" $disabled >Delete this profile</a></li> diff --git a/view/settings.tpl b/view/settings.tpl index 84fc38926..da330bcd1 100644 --- a/view/settings.tpl +++ b/view/settings.tpl @@ -44,7 +44,7 @@ $profile_in_dir $profile_in_net_dir -<div id="settings-default-perms" class="settings-default-perms" > +<div id="settings-default-perms" class="settings-default-perms fakelink" > <div id="settings-default-perms-menu" onClick="openClose('settings-default-perms-select');" >$permissions</div> <div id="settings-default-perms-menu-end"></div> diff --git a/view/theme/clean/style.css b/view/theme/clean/style.css index f32462b3c..f190b3d1a 100644 --- a/view/theme/clean/style.css +++ b/view/theme/clean/style.css @@ -1,5 +1,9 @@ @import url('../default/style.css'); +nav { + background: #F4F4F4; +} + body { background: #FFFFFF; color: #444444; @@ -8,11 +12,13 @@ body { .nav-link { color: #444444; background: #EEE; + border: 2px solid #888888; } .nav-commlink { color: #444444; background: #EEE; + border: 2px solid #888888; } .profile-tabs { diff --git a/view/theme/darkness/style.css b/view/theme/darkness/style.css index a93f87a90..a7097d543 100644 --- a/view/theme/darkness/style.css +++ b/view/theme/darkness/style.css @@ -4,29 +4,32 @@ body { background: #000000; color: #FF0000; } +.nav-selected { + background: #000000 !important; +} .nav-link { color: #FF0000; - background: #888888; + background: #444444; } .nav-commlink { color: #FF0000; - background: #888888; + background: #444444; } .profile-tabs { color: #FF0000; - background: #888888; + background: #444444; } -a, a:visited { - color: #444444; +a, a:visited, .fakelink, .fakelink:visited { + color: #888888; text-decoration: none; } -a:hover { +a:hover, .fakelink:hover { color: #FF0000; text-decoration: underline; } diff --git a/view/theme/default/style.css b/view/theme/default/style.css index 916b32fd2..9edb6424a 100644 --- a/view/theme/default/style.css +++ b/view/theme/default/style.css @@ -31,7 +31,21 @@ img { #sysmsg { width: 600px; } - +#top-margin { + height: 20px; +} +#banner { + color: lightgreen; + font-size: 1.4em; + font-weight: bold; + position: absolute; + filter:alpha(opacity=50); + -moz-opacity:0.5; + -khtml-opacity: 0.5; + opacity: 0.5; + top: 12px; + left: 42%; +} code { font-family: monospace; white-space: pre; @@ -49,7 +63,7 @@ blockquote:before { } body { - background: #DDDDDD; + background: #FFFFFF; color: #444444; font-family: "Lucida Grande", Tahoma, sans-serif; font-size: 90%; @@ -91,6 +105,7 @@ section { position: absolute; left: 270px; top: 60px; + margin-top: 25px; margin-left: 20px; margin-right: 20px; right: 0px; @@ -102,10 +117,10 @@ h1 { nav { position: absolute; top: 0px; - height: 30px; + height: 48px; left: 0px; right: 0px; - margin-top: 20px; + background: #444; } footer { @@ -136,11 +151,17 @@ footer { float: right; margin-left: 0px; margin-right: 10px; - padding: 3px; - border: 1px solid #AAAAAA; - background: #F4F4F4; + padding: 4px; + border: 2px solid #000000; + background: #EEE; font-size: 90%; font-weight: bold; + -moz-border-radius-topleft: 3px; + -moz-border-radius-topright: 3px; + -webkit-border-radius-topleft: 3px; + -webkit-border-radius-topright: 3px; + border-radius-topleft: 3px; + border-radius-topright: 3px; } @@ -150,6 +171,20 @@ footer { font-size: 0.6em; font-weight: bold; color: #FF0000; + background: #FFFFFF; +} + + + +.nav-selected { + border-bottom: none !important; + background: #FFFFFF !important; + padding: 5px !important; +} + + +.nav-ajax-left:hover { + font-size: 1.5em; } .nav-ajax-right { @@ -164,12 +199,19 @@ footer { float: left; margin-left: 10px; margin-right: 0px; - padding: 3px; - border: 1px solid #AAAAAA; - background: #F4F4F4; + padding: 4px; + border: 2px solid #000000; + background: #EEE; font-size: 90%; font-weight: bold; text-decoration: none; + -moz-border-radius-topleft: 3px; + -moz-border-radius-topright: 3px; + -webkit-border-radius-topleft: 3px; + -webkit-border-radius-topright: 3px; + border-radius-topleft: 3px; + border-radius-topright: 3px; + } #nav-end { @@ -639,6 +681,7 @@ input#dfrn-url { .wall-item-content-wrapper { margin-top: 10px; + border: 1px solid #CCC; } .wall-item-content-wrapper.comment { @@ -701,6 +744,7 @@ input#dfrn-url { float: left; width: 450px; margin-left: 10px; + margin-bottom: 20px; } .wall-item-title { @@ -1115,12 +1159,12 @@ input#dfrn-url { .profile-tabs { float: left; - padding: 3px; + padding: 4px; margin-top: 10px; margin-bottom: 10px; margin-right: 5px; - border: 1px solid #AAAAAA; - background: #F4F4F4; + border: 1px solid #CCC; + background: #F8F8F8; font-size: 0.8em; font-weight: bold; } @@ -1445,20 +1489,11 @@ input#dfrn-url { text-decoration: underline; cursor: pointer; } -#settings-default-perms-menu, #settings-default-perms-menu:visited { - color: #8888FF; - text-decoration: none; - cursor: pointer; +#settings-default-perms-menu { margin-top: 15px; margin-bottom: 15px; } -#settings-default-perms-menu:hover { - color: #0000FF; - text-decoration: underline; - cursor: pointer; -} - #photo-edit-caption-label, #photo-edit-tags-label { float: left; width: 150px; diff --git a/view/theme/goldenrod/style.css b/view/theme/goldenrod/style.css index e84cf5d64..8743dcbf5 100644 --- a/view/theme/goldenrod/style.css +++ b/view/theme/goldenrod/style.css @@ -15,6 +15,10 @@ body { background: #FFCC55; } +.nav-selected { + background: #FFDDAA !important; +} + .profile-tabs { color: #444444; background: #FFCC55; diff --git a/view/theme/shady/style.css b/view/theme/shady/style.css new file mode 100644 index 000000000..071310541 --- /dev/null +++ b/view/theme/shady/style.css @@ -0,0 +1,70 @@ +@import url('../default/style.css'); + +body { + background: #DDDDDD; + color: #444444; +} + +.nav-link { + color: #444444; + background: #F4F4F4; +} +.nav-selected { + background: #DDDDDD !important; +} + +.nav-commlink { + color: #444444; + background: #F4F4F4; +} + +.profile-tabs { + color: #444444; + background: #F4F4F4; + +} + +a, a:visited { + color: #8888FF; + text-decoration: none; +} + +a:hover { + color: #0000FF; + text-decoration: underline; +} + +.fakelink, .fakelink:visited { + color: #8888FF; +} + +.fakelink:hover { + color: #0000FF; +} + +.wall-item-content-wrapper.comment { + background: #CCCCCC; +} + +.comment-edit-wrapper { + background: #CCCCCC; +} + +.comment-wwedit-wrapper { + background: #CCCCCC; +} + +#photos-upload-perms-menu, #photos-upload-perms-menu:visited { + color: #8888FF; +} + +#photos-upload-perms-menu:hover { + color: #0000FF; +} +#settings-default-perms-menu, #settings-default-perms-menu:visited { + color: #8888FF; +} + +#settings-default-perms-menu:hover { + color: #0000FF; +} |