make some function static to meet strict rules,  is never defined in single.php, i think also the is_sticky() calls make nosense