assigned view_mode to array passed to theme function
updated placement of snippet
Merge pull request #3 from DannyJoris/hotfix/view-mode

Hotfix/view mode