I would like to display blocks in region by code, in the same way that I can use context (so: if I'm on a node_view of type "article" display block "user login" on region "Sidebar first", for example).
I know how to load and display blocks but I don't know which is the best place to make it.
Have I to add the render function in regions template? Or have I to use a theme function to do this?
Admin > Structure > Blocks
?