core: add variable "current_layout" in infolist "layout"