WBCE CMS Forum

WBCE CMS – Way Better Content Editing.

You are not logged in.

#1 26.05.2021 08:30:03

florian
Administrator

[erledigt] mailto-OPF und FontAwesome

Problem: Wenn mit Font-Awesome Mail-Links gekennzeichnet werden, verdoppelt sich das FA-Symbol.

Lösung:
/modules/mod_opf_email/filter.php
Zeile 146f.

// build the encrypted Javascript mailto link
 $mailto_link  = "<a {$class_attr}{$title_attr}{$id_attr}{$style_attr}href=\"javascript:mdcr('$encrypted_email','$email_subject')\">" .$match[5] ."</a>";

ändern zu

// build the encrypted Javascript mailto link
if (strpos($class_attr,'fa-') == false) {
  $mailto_link  = "<a {$class_attr}{$title_attr}{$id_attr}{$style_attr}href=\"javascript:mdcr('$encrypted_email','$email_subject')\">" .$match[5] ."</a>";
} else {
  $mailto_link  = "<a {$title_attr}{$id_attr}{$style_attr}href=\"javascript:mdcr('$encrypted_email','$email_subject')\">" .$match[5] ."</a>";
}

Last edited by florian (27.08.2021 07:55:05)

Offline

#2 31.05.2021 23:23:27

mrbaseman
Developer

Re: [erledigt] mailto-OPF und FontAwesome

hab ich committed

Offline

Liked by:

florian

Board footer

up