{namespace n=GeorgRinger\News\ViewHelpers}
{height -> v:format.pregReplace(pattern:'/[^0-9]/', replacement:'') -> v:variable.set(name: 'heightSrc')} {width -> v:format.pregReplace(pattern:'/[^0-9]/', replacement:'') -> v:variable.set(name: 'widthSrc')} {heightSrc -> v:or(alternative: widthSrc) -> v:or(alternative: '200') -> v:variable.set(name: 'heightSrc')} {widthSrc -> v:or(alternative: heightSrc) -> v:or(alternative: '200') -> v:variable.set(name: 'widthSrc')} {f:uri.image(src:mediaElement.uid,treatIdAsReference:1,width:'{mediaQueryItem.width}c',height:'{mediaQueryItem.height}c')} {mediaQueryItem.maxWidth}w{f:if(condition: iteration.isLast, else: ', ')}