Mainers in Afghanistan
    #set($soldierImageMaxWidth = 320) #set($soldierImgStyle='style="border:1px solid #000; padding: 0px;"') #foreach($item in $cms.links("/special/afghanistan/profiles",1,18))
  • #set($myImage = "") $cms.template("Get Main Image") #if($mainImage) #set($newHeight = $mainImage.height) #set($newWidth = $mainImage.width) #set($myImage = $util.tag($mainImage,$imgStyle)) ##1 $newWidth x $newHeight -- #if($newWidth > $soldierImageMaxWidth) #set($newHeight = $math.round($math.multiply($math.divide($soldierImageMaxWidth,$mainImage.width),$mainImage.height))) #set($myImage = $util.resizeImageTag($mainImage,$soldierImageMaxWidth,0,$soldierImgStyle)) #end #if($newHeight > $soldierImageMaxHeight) #set($newWidth = $math.round($math.multiply($math.divide($soldierImageMaxHeight,$mainImage.height),$mainImage.width))) #set($myImage = $util.resizeImageTag($mainImage,0,$soldierImageMaxHeight,$soldierImgStyle)) #end
    $myImage
    #end

    $item.title

    $item.copy

    Gabe Souza / Staff Photographer

  • #end