function display($codeonly = false, $search = array(), $replace = array()) { $xdomains = OX_Plugin_Cj::get_domains(); $search[] = '{{xdomain}}'; $replace[] = $xdomains[array_rand($xdomains)]; return parent::display($codeonly, $search, $replace); }
function display($codeonly = false, $search = array(), $replace = array()) { if ($this->get('width', true) > $this->get('height', true)) { $xwidth = 18; $xheight = 17; } else { $xwidth = 0; $xheight = 35; } $search[] = '{{xwidth}}'; $search[] = '{{xheight}}'; $replace[] = $this->get('width', true) + $xwidth; $replace[] = $this->get('height', true) + $xheight; return parent::display($codeonly, $search, $replace); }