refactor

global var for posts layout settings, instead of those nm_show_post
parameters that were added