[ticket/12608] Improved LTR and various bugfixes

PHPBB3-12608
This commit is contained in:
PayBas 2014-05-29 17:16:37 +02:00
parent 49a1896a76
commit 976bda83db
6 changed files with 59 additions and 15 deletions

View file

@ -30,6 +30,16 @@ class disapprove_post extends \phpbb\notification\type\approve_post
return 'disapprove_post'; return 'disapprove_post';
} }
/**
* Get the styling of the notification
*
* @return string
*/
public function get_styling()
{
return 'reported';
}
/** /**
* Language key used to output the text * Language key used to output the text
* *

View file

@ -30,6 +30,16 @@ class disapprove_topic extends \phpbb\notification\type\approve_topic
return 'disapprove_topic'; return 'disapprove_topic';
} }
/**
* Get the styling of the notification
*
* @return string
*/
public function get_styling()
{
return 'reported';
}
/** /**
* Language key used to output the text * Language key used to output the text
* *

View file

@ -18,9 +18,9 @@
</li> </li>
<!-- ENDIF --> <!-- ENDIF -->
<!-- BEGIN notifications --> <!-- BEGIN notifications -->
<li class="<!-- IF notifications.UNREAD --> bg2<!-- ENDIF --><!-- IF notifications.STYLING --> {notifications.STYLING}<!-- ENDIF -->"> <li class="<!-- IF notifications.UNREAD --> bg2<!-- ENDIF --><!-- IF notifications.STYLING --> {notifications.STYLING}<!-- ENDIF --><!-- IF not notifications.URL --> no-url<!-- ENDIF -->">
<!-- IF notifications.URL --> <!-- IF notifications.URL -->
<a href="<!-- IF notifications.UNREAD -->{notifications.U_MARK_READ}" class="notification-block" data-real-url="{notifications.URL}<!-- ELSE -->{notifications.URL}<!-- ENDIF -->"> <a class="notification-block" href="<!-- IF notifications.UNREAD -->{notifications.U_MARK_READ}" data-real-url="{notifications.URL}<!-- ELSE -->{notifications.URL}<!-- ENDIF -->">
<!-- ENDIF --> <!-- ENDIF -->
<!-- IF notifications.AVATAR -->{notifications.AVATAR}<!-- ELSE --><img src="{T_THEME_PATH}/images/no_avatar.gif" alt="" /><!-- ENDIF --> <!-- IF notifications.AVATAR -->{notifications.AVATAR}<!-- ELSE --><img src="{T_THEME_PATH}/images/no_avatar.gif" alt="" /><!-- ENDIF -->
<div class="notification_text"> <div class="notification_text">

View file

@ -77,9 +77,6 @@
<!-- IF notification_list.FORUM --><p class="notifications_forum">{notification_list.FORUM}</p><!-- ENDIF --> <!-- IF notification_list.FORUM --><p class="notifications_forum">{notification_list.FORUM}</p><!-- ENDIF -->
<!-- IF notification_list.REASON --><p class="notifications_reason">{notification_list.REASON}</p><!-- ENDIF --> <!-- IF notification_list.REASON --><p class="notifications_reason">{notification_list.REASON}</p><!-- ENDIF -->
<p class="notifications_time">{notification_list.TIME}</p> <p class="notifications_time">{notification_list.TIME}</p>
<!-- IF not notification_list.URL and notification_list.U_MARK_READ -->
<p><a href="{notification_list.U_MARK_READ}">{L_MARK_READ}</a></p>
<!-- ENDIF -->
</div> </div>
</div> </div>
</dt> </dt>

View file

@ -112,6 +112,32 @@
padding-right: 10px; padding-right: 10px;
} }
.rtl .dropdown-extended .header .header_settings {
float: left;
}
/* Notifications
----------------------------------------*/
.rtl .notification_list ul li img {
float: right;
margin-left: 5px;
margin-right: 0;
}
.rtl .notification_list div.notifications {
margin-left: 0;
margin-right: 50px;
}
.rtl .notification_text {
margin-left: 0;
margin-right: 58px;
}
.rtl .notification_list p.notification-time {
text-align: left;
}
/* Responsive breadcrumbs /* Responsive breadcrumbs
----------------------------------------*/ ----------------------------------------*/
.rtl .breadcrumbs .crumb { .rtl .breadcrumbs .crumb {

View file

@ -1115,7 +1115,7 @@ form > p.post-notice strong {
.dropdown-extended ul li { .dropdown-extended ul li {
padding: 0; padding: 0;
margin: 0; margin: 0 !important;
float: none; float: none;
border-bottom: 1px solid; border-bottom: 1px solid;
list-style-type: none; list-style-type: none;
@ -1160,8 +1160,8 @@ form > p.post-notice strong {
font-size: 1.1em; font-size: 1.1em;
} }
.dropdown-extended ul li a{ .dropdown-extended ul li a, .dropdown-extended ul li.no-url {
padding: 10px; padding: 8px;
} }
.dropdown-extended .footer > a { .dropdown-extended .footer > a {
@ -1173,10 +1173,6 @@ form > p.post-notice strong {
text-decoration: none; text-decoration: none;
} }
.notification_list a.notification-block {
padding: 8px;
}
.notification_list ul li img { .notification_list ul li img {
float: left; float: left;
max-height: 50px; max-height: 50px;
@ -1193,22 +1189,27 @@ form > p.post-notice strong {
.notification_list p.notification-reference, .notification_list p.notification-reference,
.notification_list p.notification-location, .notification_list p.notification-location,
.notification_list a.notification-block p.notification-reason { .notification_list li a p.notification-reason {
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
} }
.notification_list p.notification-time { .notification_list p.notification-time {
font-size: 0.9em; font-size: 10px;
margin: 0; margin: 0;
text-align: right; text-align: right;
} }
.notification_list div.notifications { .notification_list div.notifications {
margin-left: 50px;
padding: 5px; padding: 5px;
} }
.notification_list div.notifications a {
display: block;
}
.notification_list p.notifications_title { .notification_list p.notifications_title {
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif; font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
font-size: 13px !important; font-size: 13px !important;
@ -1219,7 +1220,7 @@ form > p.post-notice strong {
} }
.notification_list p.notifications_time { .notification_list p.notifications_time {
font-size: 11px !important; font-size: 10px !important;
} }
.notification_text { .notification_text {