introduce plugin constants, show unpublished pages

also fixed bug with array_key_exists
update path to theme