weather72° Mostly cloudyHigh: 76° | Low: 56°Five Day Forecast
All Sections
Thursday July 24, 2014
  • More in Business

  • More Headlines

Full coverage: High school football


    #set($imageMaxWidth = 150)
    #set($imageMaxHeight = 150)
    #set($imgStyle=’style=”border:1px solid #000; padding: 0px; margin: 5px 15px 5px 0px; float: left; z-index: 0;”‘)
    #foreach($item in $cms.links(“/sports/high-school-football/”,1,1))

  • #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 > $imageMaxWidth)
    #set($newHeight = $math.round($math.multiply($math.divide($imageMaxWidth,$mainImage.width),$mainImage.height)))
    #set($myImage = $util.resizeImageTag($mainImage,$imageMaxWidth,0,$imgStyle))
    ##2 $newWidth x $newHeight –
    #end
    #if($newHeight > $imageMaxHeight)
    #set($newWidth = $math.round($math.multiply($math.divide($imageMaxHeight,$mainImage.height),$mainImage.width)))
    #set($myImage = $util.resizeImageTag($mainImage,0,$imageMaxHeight,$imgStyle))
    ##3 $newWidth x $newHeight –
    #end

    $myImage
    #end

    $item.title

     

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

  • #end

More high school football

    #set($imageMaxWidth = 220)
    #set($imgStyle=’style=”border:1px solid #000; padding: 0px; margin: 5px 5px 5px 0px; float: left; z-index: 0;”‘)
    #foreach($item in $cms.links(“/sport/high-school-football/”,2,10))

  • #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 > $imageMaxWidth)
    #set($newHeight = $math.round($math.multiply($math.divide($imageMaxWidth,$mainImage.width),$mainImage.height)))
    #set($myImage = $util.resizeImageTag($mainImage,$imageMaxWidth,0,$imgStyle))
    ##2 $newWidth x $newHeight –
    #end
    #if($newHeight > $imageMaxHeight)
    #set($newWidth = $math.round($math.multiply($math.divide($imageMaxHeight,$mainImage.height),$mainImage.width)))
    #set($myImage = $util.resizeImageTag($mainImage,0,$imageMaxHeight,$imgStyle))
    ##3 $newWidth x $newHeight –
    #end

    $myImage
    #end

    $item.title

    $util.date(“MMMM d, yyyy”,$item.contentLiveDate,”America/New_York”)
    $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