weather67° CloudyHigh: 77° | Low: 56°Five Day Forecast
All Sections
Thursday July 24, 2014

Slideshow: 2013 Boston Celtics highlights

Boston Celtics

Headlines and highlights from the Portland Press Herald/Maine Sunday Telegram

#set($mainImageMaxWidth =320)
#set($mainImageMaxHeight = 220)

#foreach($item in $cms.links(“/sports/celtics/”,1,1))

#set($myImage = “”)
$cms.template(“Get Main Image”)
#if($mainImage)
#set($newHeight = $mainImage.height)
#set($newWidth = $mainImage.width)
#set($myImage = $util.tag($mainImage))
##1 $newWidth x $newHeight –
#if($newWidth > $mainImageMaxWidth)
#set($newHeight = $math.round($math.multiply($math.divide($mainImageMaxWidth,$mainImage.width),$mainImage.height)))
#set($myImage = $util.resizeImageTag($mainImage,$mainImageMaxWidth,0))
##2 $newWidth x $newHeight –
#end
#if($newHeight > $mainImageMaxHeight)
#set($newWidth = $math.round($math.multiply($math.divide($mainImageMaxHeight,$mainImage.height),$mainImage.width)))
#set($myImage = $util.resizeImageTag($mainImage,0,$mainImageMaxHeight))
##3 $newWidth x $newHeight –
#end

$myImage

#end
$util.date(“MMMM d, yyyy”,$item.contentLiveDate,”America/New_York”)

$item.title

$item.summary

#end

    #set($smallImageMaxWidth =120)
    #set($smallImageMaxHeight = 120)
    #foreach($item in $cms.links(“/sports/celtics/”,2,30))

  • #set($myImage = “”)
    $cms.template(“Get Main Image”)
    #if($mainImage)
    #set($newHeight = $mainImage.height)
    #set($newWidth = $mainImage.width)
    #set($myImage = $util.tag($mainImage))
    ##1 $newWidth x $newHeight –
    #if($newWidth > $smallImageMaxWidth)
    #set($newHeight = $math.round($math.multiply($math.divide($smallImageMaxWidth,$mainImage.width),$mainImage.height)))
    #set($myImage = $util.resizeImageTag($mainImage,$smallImageMaxWidth,0))
    ##2 $newWidth x $newHeight –
    #end
    #if($newHeight > $smallImageMaxHeight)
    #set($newWidth = $math.round($math.multiply($math.divide($smallImageMaxHeight,$mainImage.height),$mainImage.width)))
    #set($myImage = $util.resizeImageTag($mainImage,0,$smallImageMaxHeight))
    ##3 $newWidth x $newHeight –
    #end

    $myImage

    #end
    $util.date(“MMMM d, yyyy”,$item.contentLiveDate,”America/New_York”)

    $item.title

    $item.summary

  • #end

Portland Press Herald

Member Log In

Please enter your username and password below.
Already a subscriber but don't have one? Click here.

Not a subscriber? Click here to see your options