$displayTitle = $vcard->displayname . ' <'.$vcard->email[0].'>'; $display = ""; foreach ($vcard->get_assoc() as $key => $data) { if (in_array ($key, array ("name", "firstname","surname","email:other"))) continue; if (is_array ($data)) { if (is_array ($data[0])) $data = implode ("\n", $data[0]); else $data = implode ("\n", $data); } $display .= quoted_printable_decode ($data)."
"; } // add box below message body $p['content'] .= html::p(array('class' => 'vcardattachment'), html::a(array( 'href' => "#", 'onclick' => "return plugin_vcard_save_contact('" . rcube::JQ($part.':'.$idx) . "')", 'title' => $this->gettext('addvcardmsg'), ), html::span(null, rcube::Q($displayTitle))). $display );