-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix for elastic skin #36
Closed
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -67,6 +67,7 @@ public function init() | |
$this->add_hook('storage_init', array($this, 'storage_init')); | ||
$this->add_hook('messages_list', array($this, 'messages_list')); | ||
$this->add_hook('message_headers_output', array($this, 'message_headers')); | ||
$this->add_hook('template_object_messagesummary', array($this, 'message_summary')); | ||
|
||
$dont_override = $rcmail->config->get('dont_override', array()); | ||
|
||
|
@@ -229,8 +230,7 @@ public function messages_list($p) | |
return $p; | ||
} | ||
|
||
public function message_headers($p) | ||
{ | ||
private function populate_message_headers($p){ | ||
/* We only have to check the headers once and this method is executed more than once, | ||
/* so let's cache the result | ||
*/ | ||
|
@@ -240,13 +240,22 @@ public function message_headers($p) | |
$show_statuses = (int)rcmail::get_instance()->config->get('show_statuses'); | ||
$this->img_status = $this->get_authentication_status($p['headers'], $show_statuses, (int)$_GET["_uid"]); | ||
} | ||
} | ||
public function message_headers($p) | ||
{ | ||
$this->populate_message_headers($p); | ||
|
||
$p['output']['from']['value'] = $this->img_status . $p['output']['from']['value']; | ||
$p['output']['from']['html'] = true; | ||
|
||
return $p; | ||
} | ||
|
||
public function message_summary($p){ | ||
$this->populate_message_headers($GLOBALS['MESSAGE']); | ||
return array('content' => preg_replace('/(<span>\s*)()(From)/', '$1' . $this->img_status . ' $3', $p['content'])); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please have a look at the comment/regex provided by @photoninger |
||
} | ||
|
||
/* See https://tools.ietf.org/html/rfc5451 | ||
*/ | ||
public function rfc5451_extract_authresheader($headers) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
.listing.iconized tr.authres_status>td.section:before { | ||
content: url(badge.png); | ||
} | ||
|
||
.webkit .messagelist tr > .authres_status | ||
{ | ||
width: 20px; | ||
} | ||
|
||
.messagelist tr > .authres_status { | ||
width: 20px; | ||
padding: 2px 3px; | ||
text-align: center; | ||
} | ||
|
||
.messagelist tr > .authres_status span { | ||
display: inline-block; | ||
vertical-align: middle; | ||
background: url(badge.png) center no-repeat; | ||
} | ||
|
||
#sections-table tbody #rcmrowauthres_status td.section { | ||
background-image: url(badge.png); | ||
background-repeat: no-repeat; | ||
background-position: 10px 5px; | ||
} | ||
|
||
.authres-status-img { | ||
} | ||
|
||
.widescreen .authres-status-img { | ||
position: relative; | ||
top: -1px; | ||
height: 12px; | ||
width: 12px; | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Didnt look this up in the docs but is using $GLOBALS really required?