diff --git a/images/icons.png b/images/icons.png index 9bf6cf6277..4c4c00b8a5 100644 Binary files a/images/icons.png and b/images/icons.png differ diff --git a/include/nav.php b/include/nav.php index 66fdbc49b2..97cbe87cb0 100644 --- a/include/nav.php +++ b/include/nav.php @@ -64,8 +64,8 @@ function nav(&$a) { $nav['help'] = array($help_url, t('Help'), ""); - - $nav['apps'] = array('apps', t('Apps'), ""); + if(count($a->apps)) + $nav['apps'] = array('apps', t('Apps'), ""); $nav['search'] = array('search', t('Search'), ""); diff --git a/mod/apps.php b/mod/apps.php index f25722df78..7a0a3f59ea 100644 --- a/mod/apps.php +++ b/mod/apps.php @@ -5,19 +5,9 @@ function apps_content(&$a) { $o .= '

' . t('Applications') . '

'; - $apps = false; - - if(local_user()) { - $apps = true; - $o .= '
' . t('Private Notes') . '
'; - } - - if($a->apps) { - $apps = true; + if($a->apps) $o .= $a->apps; - } - - if(! $apps) + else notice( t('No installed applications.') . EOL); return $o; diff --git a/mod/events.php b/mod/events.php index a4809607c8..1418a75495 100644 --- a/mod/events.php +++ b/mod/events.php @@ -130,6 +130,14 @@ function events_content(&$a) { if(! $m) $m = intval($thismonth); + // Put some limits on dates. The PHP date functions don't seem to do so well before 1900. + // An upper limit was chosen to keep search engines from exploring links endlessly. + + if($y < 1901) + $y = 1900; + if($y > 2099) + $y = 2100; + $nextyear = $y; $nextmonth = $m + 1; if($nextmonth > 12) { @@ -144,11 +152,18 @@ function events_content(&$a) { $prevmonth = 12; $prevyear --; } + $o .= ''; - $o .= '' . t('<< Previous') . ' | ' . t('Next >>') . ''; + $o .= '
'; + + $o .= ''; $o .= cal($y,$m,false, ' eventcal'); + $o .= ''; + $o .= '
'; + $o .= '
'; + $dim = get_dim($y,$m); $start = sprintf('%d-%d-%d %d:%d:%d',$y,$m,1,0,0,0); $finish = sprintf('%d-%d-%d %d:%d:%d',$y,$m,$dim,23,59,59); diff --git a/mod/notes.php b/mod/notes.php index 7a826bf612..0f980ff67f 100644 --- a/mod/notes.php +++ b/mod/notes.php @@ -38,7 +38,7 @@ function notes_content(&$a) { $is_owner = true; - $o .= '

' . t('Private Notes') . '

'; + $o .= '

' . t('Personal Notes') . '

'; $commpage = false; $commvisitor = false; diff --git a/mod/profile.php b/mod/profile.php index 7dfdb49de4..aeb21f077c 100644 --- a/mod/profile.php +++ b/mod/profile.php @@ -115,7 +115,9 @@ function profile_content(&$a, $update = 0) { '$phototab' => $a->get_baseurl() . '/photos/' . $a->profile['nickname'], '$status' => t('Status'), '$profile' => t('Profile'), - '$photos' => t('Photos') + '$photos' => t('Photos'), + '$events' => (($is_owner) ? '' . t('Events') . '' : ''), + '$notes' => (($is_owner) ? '' . t('Personal Notes') . '' : '') )); diff --git a/view/profile_tabs.tpl b/view/profile_tabs.tpl index 975d069a68..3628ff5ff0 100644 --- a/view/profile_tabs.tpl +++ b/view/profile_tabs.tpl @@ -3,5 +3,7 @@ $status $profile $photos + $events + $notes
\ No newline at end of file diff --git a/view/theme/duepuntozero/style.css b/view/theme/duepuntozero/style.css index 8928148042..9555a1e964 100644 --- a/view/theme/duepuntozero/style.css +++ b/view/theme/duepuntozero/style.css @@ -2224,7 +2224,8 @@ a.mail-list-link { } .eventcal { - font-size: 24px; + float: left; + font-size: 20px; } #new-event-link { @@ -2245,6 +2246,17 @@ a.mail-list-link { .event-start .dtstart, .event-end .dtend { float: right; } + +.prevcal, .nextcal { + float: left; + margin-left: 32px; + margin-right: 32px; + margin-top: 64px; +} +.event-calendar-end { + clear: both; +} + .calendar { font-family: Courier, monospace; @@ -2454,6 +2466,8 @@ a.mail-list-link { } + + #lang-select-icon { cursor: pointer; position: absolute; @@ -2505,6 +2519,8 @@ a.mail-list-link { .youtube { background-position: -64px -32px;} .attach { background-position: -80px -32px; } .language { background-position: -96px -32px; } +.prev { background-position: -112px -32px; } +.next { background-position: -128px -32px; } .attachtype { diff --git a/view/theme/loozah/style.css b/view/theme/loozah/style.css index 0edde248e3..a566acadcb 100644 --- a/view/theme/loozah/style.css +++ b/view/theme/loozah/style.css @@ -2423,6 +2423,48 @@ a.mail-list-link { color: #FF0000; } +.eventcal { + float: left; + font-size: 20px; +} + +#new-event-link { + margin-bottom: 10px; +} + +.event-description:before { + content: url('../../../images/calendar.png'); + margin-right: 15px; +} + +.event-start, .event-end { + margin-left: 10px; + width: 330px; + clear: both; +} + +.event-start .dtstart, .event-end .dtend { + float: right; +} + +.prevcal, .nextcal { + float: left; + margin-left: 32px; + margin-right: 32px; + margin-top: 64px; +} +.event-calendar-end { + clear: both; +} + +.calendar { + font-family: Courier, monospace; +} +.today { + color: #FF0000; +} + + #event-start-text, #event-finish-text { margin-top: 10px; margin-bottom: 5px; @@ -2491,6 +2533,8 @@ a.mail-list-link { .youtube { background-position: -64px -32px;} .attach { background-position: -80px -32px; } .language { background-position: -96px -32px; } +.prev { background-position: -112px -32px; } +.next { background-position: -128px -32px; } .attachtype { display: block; width: 20px; height: 23px;