body {padding: 0; margin: 0; background-color: #FFF;}
#extPmo {
margin: 0;
width: 160px;
color: #999;
background-color: #FFF;
font-family: Trebuchet MS, Verdana, Arial, Sans-serif;
font-size: 11px;
line-height: 13px;
}
#extPmo ul {
padding: 0;
margin: 0;
list-style-type: none;
}
#extPmo li {
width: 100%;
padding: 0;
margin: 2px 0;
clear: both;
display: inline-block;
}
#extPmo h3 {
padding: 0;
border-bottom: 1px dotted #000;
margin: 0 0 3px;
color: #000;
font-size: 13px;
}
#extPmo a {
color: #006EBA;
font-size: 13px;
text-decoration: none;
}
#extPmo a:hover {
color: #06C;
text-decoration: underline;
}
#extPmo img {
width: 130px;
margin: 2px 5px 0 0;
border: 2px solid #CCC;
float: left;
}
#extPmo img#logo {
width: 160px;
border: none;
float: none;
}
Patriots News
-
preserveWhiteSpace = false;
- ‘ . $title . ‘
by ‘ . $author . ‘
‘ . $pubDate .’
$doc->load(‘http://www2.nesn.com/boston-bruins/feed’);
$xpath = new DOMXPath($doc);
$posts = $xpath->query(‘//item[position() firstChild->nodeValue;
$link = $post->firstChild->nextSibling->nodeValue;
$fullPubDate = $post->firstChild->nextSibling->nextSibling->nextSibling->nodeValue;
$pubDate = substr($fullPubDate, 0, 11);
$author = $post->firstChild->nextSibling->nextSibling->nextSibling->nextSibling->nodeValue;
$img = $post->getElementsByTagName(‘content’)->item(1)->getAttribute(‘url’);
echo ‘
‘;
}
?>