alt="<?php echo $theCategory; ?> " width="720px"/> </p> </td> </tr> <tr height="4px"><td colspan="3" style="background: #000; height:4px;"></td></tr> <tr colspan=3 height=8px><td height="9" style="height:9px"></td></tr> <?php foreach ($theArticles as $article) { $title = $article['t']; $text = $article['e']; $link = $article['l']; $image = $article['i'] != null ? $article['i'] : SendoutBuilder::get_static_content('120.png'); ?> <tr height="122px" style="padding: 0px; border: 0px 1px solid #555;"> <td width="10px" height="120px" style="background: <?php echo $colorCode; ?> ; display:block; height:118px; width:10px; border: 1px solid #555;"></td> <td width="120px" style="padding: 0 10px;"> <a href="<?php echo $link; ?> "> <img src="<?php echo $image;
<?php /** * Template Name: SendoutDev * The template for displaying the single issue */ require_once 'sendout_helpers.php'; ?> <?php $builder = new SendoutBuilder(); //$builder->test_dump(); $theDate = date("m/d/y"); $comments = get_comments(array('number' => 10)); /*FOR FETCHING WEATHER AND THE SLOG */ include_once ABSPATH . WPINC . '/feed.php'; $url = 'http://daily.swarthmore.edu/slog/feed/'; $rss = fetch_feed($url); if (!$rss->errors) { $rss_item = $rss->get_item(0); $chatter = file_get_contents($rss_item->get_permalink()); $regex = '#<p>.*WEATHER.*?</p>#s'; preg_match($regex, $chatter, $chat_match); if ($chat_match[0]) { //fixme up a bit $weather = $chat_match[0]; $weather = preg_replace('/WEATHER/', 'Weather', $weather); $weather = preg_replace('/<em>/', '<em style="color:#444">', $weather); } $slogitems = array($rss->get_item(0), $rss->get_item(1), $rss->get_item(2)); }