diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2012-03-12 08:41:07 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2012-03-12 08:41:07 +0000 |
| commit | 2d09ae4454d07fcb083507966122321d6451e9be (patch) | |
| tree | f58ab08b4b62b922c4fe527954597b4d435dccc7 /plugins/vcard_attachments/vcard_attachments.php | |
| parent | b22694cb7acfbe52f0fd5f2014769b5b34303cae (diff) | |
Added skinning for Larry
git-svn-id: https://svn.roundcube.net/trunk@5997 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'plugins/vcard_attachments/vcard_attachments.php')
| -rw-r--r-- | plugins/vcard_attachments/vcard_attachments.php | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/plugins/vcard_attachments/vcard_attachments.php b/plugins/vcard_attachments/vcard_attachments.php index fdb2d3289..c321e84aa 100644 --- a/plugins/vcard_attachments/vcard_attachments.php +++ b/plugins/vcard_attachments/vcard_attachments.php @@ -76,29 +76,29 @@ class vcard_attachments extends rcube_plugin if (in_array($part, $this->vcard_bodies)) $p['content'] = ''; - $style = 'margin:0.5em 1em; padding:0.2em 0.5em; border:1px solid #999; ' - .'border-radius:4px; -moz-border-radius:4px; -webkit-border-radius:4px; width: auto'; - foreach ($vcards as $idx => $vcard) { $display = $vcard->displayname; if ($vcard->email[0]) $display .= ' <'.$vcard->email[0].'>'; // add box below messsage body - $p['content'] .= html::p(array('style' => $style), + $p['content'] .= html::p(array('class' => 'vcardattachment'), html::a(array( 'href' => "#", - 'onclick' => "return plugin_vcard_save_contact('".JQ($part.':'.$idx)."')", - 'title' => $this->gettext('addvcardmsg')), - html::img(array('src' => $icon, 'style' => "vertical-align:middle"))) - . ' ' . html::span(null, Q($display))); + 'onclick' => "return plugin_vcard_save_contact('" . JQ($part.':'.$idx) . "')", + 'title' => $this->gettext('addvcardmsg'), + ), + html::span(null, Q($display))) + ); } $attach_script = true; } - if ($attach_script) + if ($attach_script) { $this->include_script('vcardattach.js'); + $this->include_stylesheet($this->local_skin_path() . '/style.css'); + } return $p; } |
