3 Commits
3.5.0 ... 3.5.1

3 changed files with 6 additions and 6 deletions

View File

@ -27,8 +27,8 @@ function doWithMootols() {
function doWithJQuery() {
jQuery('a[name^="aeo-obfuscated-"]').each(function(i, el) {
if (!$(el).hasClass('aeo-with-title')) {
$(el).attr('title',tooltip_js_on);
if (!jQuery(el).hasClass('aeo-with-title')) {
jQuery(el).attr('title',tooltip_js_on);
}
aeo_prepare_link(el);
}

View File

@ -2,7 +2,7 @@
var map;onReadyAeo(function(){aeo_dom_ready();});function aeo_dom_ready(){if(window.MooTools){doWithMootols();}else if(window.jQuery){doWithJQuery();}}
function doWithMootols(){$$('a').filter(function(el){return el.getAttribute('name')!=null&&el.getAttribute('name').match('^aeo-obfuscated-')=='aeo-obfuscated-'}).each(function(el){if(!el.hasClass('aeo-with-title')){el.setAttribute('title',tooltip_js_on);}
aeo_prepare_link(el);});}
function doWithJQuery(){jQuery('a[name^="aeo-obfuscated-"]').each(function(i,el){if(!$(el).hasClass('aeo-with-title')){$(el).attr('title',tooltip_js_on);}
function doWithJQuery(){jQuery('a[name^="aeo-obfuscated-"]').each(function(i,el){if(!jQuery(el).hasClass('aeo-with-title')){jQuery(el).attr('title',tooltip_js_on);}
aeo_prepare_link(el);});}
function aeo_prepare_link(el){el.setAttribute('href','javascript:aeo_link_decode(\''+el.getAttribute('href')+'\');');}
function rot13init(){this.map=new Array();var s="abcdefghijklmnopqrstuvwxyz";for(var i=0;i<s.length;i++)

View File

@ -36,7 +36,7 @@ namespace cgoIT\aeo;
//define('REGEXP_EMAIL_PREFIX', '(\w[-._\w]*\w)\@');
define('REGEXP_EMAIL', '\w[-._\w]*\w@[\d\w][-._\w]*\w\.\w{2,18}');
define('REGEXP_MAILTO_LINK', '/(?P<all>\<a(?P<before>[^>]+)href\=["\']mailto\:(?P<email>\w[-._\w]*\w)\@(?P<domain>\w[-._\w]*\w)\.(?P<suffix>\w{2,18})(?P<params>\?{0,1}[\w=&; ]*)["\'](?P<after>[^>]*)\>).*?\<\/a\>/ism');
define('REGEXP_MAILTO_LINK', '/(?P<all>\<a(?P<before>[^>]+)href\=["\']mailto\:(?P<email>\w[-._\w]*\w)\@(?P<domain>\w[-._\w]*\w)\.(?P<suffix>\w{2,18})(?P<params>\?{0,1}[^"^\']*)["\'](?P<after>[^>]*)\>).*?\<\/a\>/ism');
class AeoFrontendUtil extends \Frontend {
@ -508,7 +508,7 @@ class Aeo extends \System {
//$css .= '*>.obfuscated { unicode-bidi: -moz-isolate-override !important; }';
break;
case 'nullspan':
$css .= 'span.obfuscated { display: none; }';
$css .= 'span.obfuscated { display: none; white-space: nowrap;}';
break;
}
$css .= "\n</style>";
@ -586,7 +586,7 @@ class Aeo extends \System {
}
if ($includeCss) {
return $email1.'<span style="display: none;">null</span>'.$email2.'&#64;'.$arrEmail[1];
return $email1.'<span style="display: none; white-space: nowrap;">null</span>'.$email2.'&#64;'.$arrEmail[1];
}
return $email1.'<span class="obfuscated">null</span>'.$email2.'&#64;'.$arrEmail[1];
}