diff --git a/mod/message.php b/mod/message.php index 61af60530..5cdf0f233 100644 --- a/mod/message.php +++ b/mod/message.php @@ -109,8 +109,23 @@ function message_content(App $a) $myprofile = System::baseUrl() . '/profile/' . $a->user['nickname']; $tpl = get_markup_template('mail_head.tpl'); + if ($a->argc > 1 && $a->argv[1] == 'new') { + $button = [ + 'label' => L10n::t('Discard'), + 'url' => '/message', + 'sel' => 'close', + ]; + } else { + $button = [ + 'label' => L10n::t('New Message'), + 'url' => '/message/new', + 'sel' => 'new', + 'accesskey' => 'm', + ]; + } $header = replace_macros($tpl, [ '$messages' => L10n::t('Messages'), + '$button' => $button, ]); if (($a->argc == 3) && ($a->argv[1] === 'drop' || $a->argv[1] === 'dropconv')) { diff --git a/mod/photos.php b/mod/photos.php index 8798cbb7a..07916c587 100644 --- a/mod/photos.php +++ b/mod/photos.php @@ -1154,9 +1154,9 @@ function photos_content(App $a) } if ($order_field === 'posted') { - $order = [L10n::t('Show Newest First'), 'photos/' . $a->data['user']['nickname'] . '/album/' . bin2hex($album)]; + $order = [L10n::t('Show Newest First'), 'photos/' . $a->data['user']['nickname'] . '/album/' . bin2hex($album), 'oldest']; } else { - $order = [L10n::t('Show Oldest First'), 'photos/' . $a->data['user']['nickname'] . '/album/' . bin2hex($album) . '?f=&order=posted']; + $order = [L10n::t('Show Oldest First'), 'photos/' . $a->data['user']['nickname'] . '/album/' . bin2hex($album) . '?f=&order=posted', 'newest']; } $photos = []; diff --git a/view/templates/section_title.tpl b/view/templates/section_title.tpl index f17dcf7ad..07685d346 100644 --- a/view/templates/section_title.tpl +++ b/view/templates/section_title.tpl @@ -1,4 +1,8 @@ -
- {{if $title}}

{{$title}}

{{/if}} +{{if $title}} +
+

{{$title}}

+ {{if ! isset($pullright)}}
+ {{/if}}
+{{/if}} diff --git a/view/theme/frio/css/style.css b/view/theme/frio/css/style.css index 59d882669..3daa99233 100644 --- a/view/theme/frio/css/style.css +++ b/view/theme/frio/css/style.css @@ -1235,17 +1235,19 @@ div#sidebar-group-list { .group-edit-tool { color: #555; } -aside #group-sidebar .group-edit-tool, -aside #saved-search-list .savedsearchdrop { - opacity: 0.1; - transition: all 0.25s ease-in-out; -} -aside #group-sidebar .group-edit-tool:hover, -aside #saved-search-list .saved-search-li:hover .savedsearchdrop { + +.faded-icon { color: #555; - opacity: 0.8; - transition: all 0.25s ease-in-out; + opacity: 0.3; + transition: all 0.1s ease-in-out; } +.faded-icon:hover { + opacity: 1; +} +.icon-padding { + margin-left: 20px; +} + aside #group-sidebar .sidebar-group-li .group-edit-tool:hover, aside #saved-search-list .saved-search-li .savedsearchdrop:hover { opacity: 1; diff --git a/view/theme/frio/templates/events_js.tpl b/view/theme/frio/templates/events_js.tpl index 76394fe40..cdf1636fe 100644 --- a/view/theme/frio/templates/events_js.tpl +++ b/view/theme/frio/templates/events_js.tpl @@ -1,12 +1,16 @@
{{$tabs}} - {{include file="section_title.tpl" title=$title}} + {{include file="section_title.tpl" title=$title pullright=1}} {{* The link to create a new event *}} - + {{* We create our own fullcallendar header (with title & calendar view *}} -
+
{{* The dropdown to change the callendar view *}}