diff --git a/plugins/friend_request/languages/en.php b/plugins/friend_request/languages/en.php index 0cff94327bbf2e0d16f09c8a6fce48a9e167dfc7..6e9a298dd6a55e3a50a809bc8956460fd53053e3 100755 --- a/plugins/friend_request/languages/en.php +++ b/plugins/friend_request/languages/en.php @@ -14,14 +14,14 @@ return [ // notifications 'friend_request:newfriend:subject' => "%s wants to be your friend!", - 'friend_request:newfriend:body' => "%s wants to be your friend! But they are waiting for you to approve the request...so login now so you can approve the request! + 'friend_request:newfriend:body' => "%s wants to be your friend! %s is waiting for you to approve the request...so login now so you can approve the request! You can view your pending friend requests at: %s Make sure you are logged into the website before clicking on the following link otherwise you will be redirected to the login page. -(You cannot reply to this email.)", +Please do not reply to this email. Your reply will not be seen.", // Actions // Add request diff --git a/plugins/unl_theme/css/planetred.css b/plugins/unl_theme/css/planetred.css index 5743ddcfde5c7dcb33bb892695314d96de2255d0..6e7c02a23408370c8f7673667bf84d266cd2d227 100644 --- a/plugins/unl_theme/css/planetred.css +++ b/plugins/unl_theme/css/planetred.css @@ -177,7 +177,7 @@ ul.elgg-list.elgg-list-river { list-style-type: none; border-top: 5px solid #5b5b5a; background-color: #eceae3; - padding: 1em; + /* padding: 1em; */ border-radius: 6px; } @@ -626,6 +626,52 @@ ul.elgg-menu.elgg-menu-hover li { background-color:#D00000; } +.elgg-item-object-messages > .elgg-image-block > .elgg-body { + width: calc(100% - 51px); +} + +.messages-owner { + font-size: 1.25em; + font-family: "Gotham SSm A","Gotham SSm B",Verdana,"Verdana Ref",Geneva,Tahoma,"Lucida Grande","Lucida Sans Unicode","Lucida Sans","DejaVu Sans","Bitstream Vera Sans","Liberation Sans",sans-serif; +} + +.messages-delete { + position:absolute; + top:2.75em; + right:1em; +} + +.pr-message-checkbox { + position:absolute; + top:2.75em; + left: 1.25em; +} + +.messages-timestamp { + font-size:.75em; + font-family: "Gotham SSm A","Gotham SSm B",Verdana,"Verdana Ref",Geneva,Tahoma,"Lucida Grande","Lucida Sans Unicode","Lucida Sans","DejaVu Sans","Bitstream Vera Sans","Liberation Sans",sans-serif; +} + +.elgg-item-object-messages { + padding:0; +} + +.pr-wire-from form fieldset { + border: 0; + margin: 0 0 2em 0; + padding: 0; +} + +.pr-wire-from { + padding: 1em; + border-bottom: none; + box-shadow: 0px 1px 3px rgba(0,0,0,0.3); + margin-bottom: 1em; + list-style-type: none; + background-color: #eceae3; + border-radius: 6px; +} + @media (max-width: 1600px) { .groups-profile-fields b { display: block; diff --git a/plugins/unl_theme/views/default/messages/css.php b/plugins/unl_theme/views/default/messages/css.php index 23431cfbe894d9701db3bb5ad7a7ea741ae070bf..b16b2bb8e3788d630b01f7e54f83b9e1afd41b6a 100755 --- a/plugins/unl_theme/views/default/messages/css.php +++ b/plugins/unl_theme/views/default/messages/css.php @@ -28,25 +28,7 @@ } /*** message metadata ***/ - .messages-owner { - float: left; - width: 20%; - margin-right: 2%; - } - .messages-subject { - float: left; - width: 55%; - margin-right: 2%; - } - .messages-timestamp { - float: left; - width: 14%; - margin-right: 2%; - } - .messages-delete { - float: left; - width: 5%; - } + /*** topbar icon ***/ .messages-new { color: #FFF; diff --git a/plugins/unl_theme/views/default/object/messages.php b/plugins/unl_theme/views/default/object/messages.php new file mode 100644 index 0000000000000000000000000000000000000000..03d3a3d1ab47d38fa1b17425a63ca062dd10ac98 --- /dev/null +++ b/plugins/unl_theme/views/default/object/messages.php @@ -0,0 +1,100 @@ +<?php +/** + * File renderer. + * + * @package ElggFile + */ + +$full = elgg_extract('full_view', $vars, false); +$message = elgg_extract('entity', $vars, false); +$bulk_actions = (bool) elgg_extract('bulk_actions', $vars, false); + +if (!$message) { + return true; +} + +if ($message->toId == elgg_get_page_owner_guid()) { + // received + $user = get_user($message->fromId); + if ($user) { + $icon = elgg_view_entity_icon($user, 'medium'); + $user_link = elgg_view('output/url', array( + 'href' => "messages/compose?send_to=$user->guid", + 'text' => $user->name, + 'is_trusted' => true, + )); + } else { + $icon = ''; + $user_link = elgg_echo('messages:deleted_sender'); + } + + if ($message->readYet) { + $class = 'message read'; + } else { + $class = 'message unread'; + } + +} else { + // sent + $user = get_user($message->toId); + + if ($user) { + $icon = elgg_view_entity_icon($user, 'medium'); + $user_link = elgg_view('output/url', array( + 'href' => "messages/compose?send_to=$user->guid", + 'text' => elgg_echo('messages:to_user', array($user->name)), + 'is_trusted' => true, + )); + } else { + $icon = ''; + $user_link = elgg_echo('messages:deleted_sender'); + } + + $class = 'message read'; +} + +$timestamp = elgg_view_friendly_time($message->time_created); + +$subject_info = elgg_view('output/url', array( + 'href' => $message->getURL(), + 'text' => $message->title, + 'is_trusted' => true, +)); + +$delete_link = elgg_view("output/url", array( + 'href' => "action/messages/delete?guid=" . $message->getGUID() . "&full=$full", + 'text' => elgg_view_icon('delete', 'float-alt'), + 'confirm' => elgg_echo('deleteconfirm'), + 'encode_text' => false, + )); + +$body = <<<HTML +<div class="messages-owner">$user_link</div> +<div class="messages-subject">$subject_info</div> +<div class="messages-timestamp">$timestamp</div> +<div class="messages-delete">$delete_link</div> +HTML; + +if ($full) { + echo elgg_view_image_block($icon, $body, array('class' => $class)); + echo elgg_view('output/longtext', array('value' => $message->description)); +} else { + + $body .= elgg_view("output/longtext", array("value" => elgg_get_excerpt($message->description), "class" => "elgg-subtext clearfloat")); + + if ($bulk_actions) { + $checkbox = elgg_view('input/checkbox', array( + 'name' => 'message_id[]', + 'value' => $message->guid, + 'default' => false, + 'class' => 'pr-message-checkbox' + )); + + $entity_listing = elgg_view_image_block($icon, $body, array('class' => $class)); + + echo $checkbox; + echo elgg_view_image_block($entity_listing); + } else { + echo elgg_view_image_block($icon, $body, array('class' => $class)); + } +} \ No newline at end of file diff --git a/plugins/unl_theme/views/default/resources/river.php b/plugins/unl_theme/views/default/resources/river.php index 3295a7bca02721b76fc9b2fa1201303e45341acb..e892248472fadc689ce7782ad09085bc6acf6ea6 100644 --- a/plugins/unl_theme/views/default/resources/river.php +++ b/plugins/unl_theme/views/default/resources/river.php @@ -48,7 +48,7 @@ switch ($page_type) { $options['relationship'] = 'friend'; break; default: - $title = elgg_echo('river:all'); + $title = elgg_echo("Welcome to Planet Red!"); $page_filter = 'all'; break; } @@ -58,13 +58,23 @@ if (!$activity) { $activity = elgg_echo('river:none'); } + +$thewireform = ""; +if (elgg_is_logged_in()) { + $thewireform .= "<div class='pr-wire-from'>What's on your mind?"; + $form_vars = array('class' => 'thewire-form'); + $thewireform .= elgg_view_form('thewire/add', $form_vars); + $thewireform .= elgg_view('input/urlshortener'); + $thewireform .= "</div>"; +} + $content = elgg_view('core/river/filter', array('selector' => $selector)); $sidebar = elgg_view('core/river/sidebar'); $params = array( 'title' => $title, - 'content' => $content . $activity, + 'content' => $thewireform . $content . $activity, 'sidebar' => $sidebar, 'filter_context' => $page_filter, 'class' => 'elgg-river-layout',