Update blocks.php

Added new private function block_content() to secure executing php code.