github.com/Fi1osof/ShopModxBox/blob/master/core/components/modxsite/templates/shopmodx/layout.tpl#L42-L65 Чтоб совсем наглядно.