Ejemplo n.º 1
0
    <div class="span12">
        <h3 class="heading">Existing feeds</h3>
        
        <table class="table table-striped table-bordered">
            <thead>
                <tr>
                    <th width="*">Feed URL</th>
                    <th width="10%">Frequency</th>
                    <th width="10%">Last crawl</th>
                    <th width="1">&nbsp;</th>
                    <th width="1">&nbsp;</th>
                </tr>
            </thead>
            <tbody>
                <?php 
$feeds = $blogger->getFeeds();
if (!count($feeds)) {
    ?>
                    
                    <tr>
                        <td colspan="5">No feeds added yet</td>
                    </tr>
                
                <?php 
} else {
    foreach ($feeds as $feed_id => $feed_data) {
        print " <tr>\n                                        <td><a href=\"{$feed_data['url']}\" target=\"_blank\">{$feed_data['url']}</a></td>\n                                        <td>{$feed_data['frequency']}</td>\n                                        <td>{$feed_data['last_checked']}</td>\n                                        <td><a href=\"index.php?menu=plugin&plugin=blogger&plugin_menu=blogger_feeds&delete={$feed_id}\" class=\"btn btn-danger\">Delete</a></td>\n                                        <td><a href=\"index.php?menu=plugin&plugin=blogger&plugin_menu=blogger_feeds&feed_id={$feed_id}\" class=\"btn\">Edit</a></td>\n                                    </tr>";
    }
}
?>
            </tbody>