php code in block - Load node
You should check out What are Ctools plugin (content type, access, etc), and how does one create them?, and in addition make sure the content type has a required context on nodes so that you can't accidentally render it without a node. Check the examples on the ctools module to see how to add required contexts.