Lines Matching refs:sizes
149 * Srcset and sizes for responsive image
179 $sizes = "";
195 * Add samller breakpoints sizes
216 $sizes .= ", ";
239 $sizes .= $this->getSizes($breakpointPixels, $breakpointWidthMinusMargin);
246 * If the target image is really small, srcset and sizes are empty
250 $sizes .= ", ";
253 $sizes .= "{$targetWidth}px";
301 * We use `data-sizes` and not `sizes`
302 * because `sizes` without `srcset`
306 $attributes->addOutputAttributeValue("data-sizes", $sizes);
327 $attributes->addOutputAttributeValue("sizes", $sizes);
364 * @return string sizes with a dpi correction if
372 $sizes = "(max-width: {$screenWidth}px) and (min-resolution:" . (3 * $dpiBase) . "dpi) " . intval($imageWidth / 3) . "px";
373 $sizes .= ", (max-width: {$screenWidth}px) and (min-resolution:" . (2 * $dpiBase) . "dpi) " . intval($imageWidth / 2) . "px";
374 $sizes .= ", (max-width: {$screenWidth}px) and (min-resolution:" . (1 * $dpiBase) . "dpi) {$imageWidth}px";
376 $sizes = "(max-width: {$screenWidth}px) {$imageWidth}px";
378 return $sizes;