0
這是原來的代碼如何更改php代碼以顯示文本?
// the email address
if (isset($this->stored_settings[ 'email' ]) and '' != $this->stored_settings[ 'email' ]) {
$link_href = antispambot(esc_html($this->stored_settings[ 'email' ]));
if (isset($this->stored_settings[ 'email_text' ]) and '' != $this->stored_settings[ 'email_text' ]) {
$link_text = $this->stored_settings[ 'email_text' ];
} else {
$link_text = $link_href;
}
$contact_list[] = sprintf(
'<li id="scb-email"><a href="mailto:%s"><img src="%sassets/images/email_%s.svg" width="%d" height="%d" alt="%s" /><span>%s</span></a></li>',
$link_href,
$this->plugin_root_url,
$this->current_icon_type,
$this->current_icon_size,
$this->current_icon_size,
__('E-Mail', $this->plugin_slug),
esc_html($link_text)
);
}
我在這一行改變了代碼如下:
<li id="scb-email"><i class="fa fa-envelope"><a href="mailto:%s"></a></i></li>
你能有人告訴我,我必須投入一個標籤用於顯示文本電子郵件?
Got it!謝謝你的好解釋:-) – Martin