Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
81ae92763e | |||
c79d6e41f0 | |||
72937119e3 |
@ -27,8 +27,8 @@ function doWithMootols() {
|
|||||||
|
|
||||||
function doWithJQuery() {
|
function doWithJQuery() {
|
||||||
jQuery('a[name^="aeo-obfuscated-"]').each(function(i, el) {
|
jQuery('a[name^="aeo-obfuscated-"]').each(function(i, el) {
|
||||||
if (!$(el).hasClass('aeo-with-title')) {
|
if (!jQuery(el).hasClass('aeo-with-title')) {
|
||||||
$(el).attr('title',tooltip_js_on);
|
jQuery(el).attr('title',tooltip_js_on);
|
||||||
}
|
}
|
||||||
aeo_prepare_link(el);
|
aeo_prepare_link(el);
|
||||||
}
|
}
|
||||||
|
2
public/js/aeo.min.js
vendored
2
public/js/aeo.min.js
vendored
@ -2,7 +2,7 @@
|
|||||||
var map;onReadyAeo(function(){aeo_dom_ready();});function aeo_dom_ready(){if(window.MooTools){doWithMootols();}else if(window.jQuery){doWithJQuery();}}
|
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);}
|
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);});}
|
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);});}
|
aeo_prepare_link(el);});}
|
||||||
function aeo_prepare_link(el){el.setAttribute('href','javascript:aeo_link_decode(\''+el.getAttribute('href')+'\');');}
|
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++)
|
function rot13init(){this.map=new Array();var s="abcdefghijklmnopqrstuvwxyz";for(var i=0;i<s.length;i++)
|
||||||
|
@ -36,7 +36,7 @@ namespace cgoIT\aeo;
|
|||||||
|
|
||||||
//define('REGEXP_EMAIL_PREFIX', '(\w[-._\w]*\w)\@');
|
//define('REGEXP_EMAIL_PREFIX', '(\w[-._\w]*\w)\@');
|
||||||
define('REGEXP_EMAIL', '\w[-._\w]*\w@[\d\w][-._\w]*\w\.\w{2,18}');
|
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 {
|
class AeoFrontendUtil extends \Frontend {
|
||||||
|
|
||||||
@ -508,7 +508,7 @@ class Aeo extends \System {
|
|||||||
//$css .= '*>.obfuscated { unicode-bidi: -moz-isolate-override !important; }';
|
//$css .= '*>.obfuscated { unicode-bidi: -moz-isolate-override !important; }';
|
||||||
break;
|
break;
|
||||||
case 'nullspan':
|
case 'nullspan':
|
||||||
$css .= 'span.obfuscated { display: none; }';
|
$css .= 'span.obfuscated { display: none; white-space: nowrap;}';
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
$css .= "\n</style>";
|
$css .= "\n</style>";
|
||||||
@ -586,7 +586,7 @@ class Aeo extends \System {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($includeCss) {
|
if ($includeCss) {
|
||||||
return $email1.'<span style="display: none;">null</span>'.$email2.'@'.$arrEmail[1];
|
return $email1.'<span style="display: none; white-space: nowrap;">null</span>'.$email2.'@'.$arrEmail[1];
|
||||||
}
|
}
|
||||||
return $email1.'<span class="obfuscated">null</span>'.$email2.'@'.$arrEmail[1];
|
return $email1.'<span class="obfuscated">null</span>'.$email2.'@'.$arrEmail[1];
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user