<div class="page-header">
        <h2><?php 
    echo t('Unread');
    ?>
<span id="page-counter"><?php 
    echo isset($nb_items) ? $nb_items : '';
    ?>
</span></h2>
        <ul>
            <li>
                <a href="?action=unread&amp;order=updated&amp;direction=<?php 
    echo $direction == 'asc' ? 'desc' : 'asc';
    ?>
"><?php 
    echo tne('sort by date %s(%s)%s', '<span class="hide-mobile">', $direction == 'desc' ? t('older first') : t('most recent first'), '</span>');
    ?>
</a>
            </li>
            <li>
                <a href="?action=mark-as-read" data-action="mark-all-read"><?php 
    echo t('mark all as read');
    ?>
</a>
            </li>
        </ul>
    </div>

    <section class="items" id="listing">
        <?php 
    foreach ($items as $item) {
Exemple #2
0
<?php 
} else {
    ?>

    <?php 
    if ($nb_failed_feeds > 0) {
        ?>
        <p class="alert alert-error"><?php 
        echo tne('An error occurred during the last check. Refresh the feed manually and check the %sconsole%s for errors afterwards!', '<a href="?action=console">', '</a>');
        ?>
</p>
    <?php 
    } elseif ($nothing_to_read) {
        ?>
        <p class="alert alert-info"><?php 
        echo tne('Nothing to read, do you want to %supdate your subscriptions%s?', '<a href="?action=refresh-all" data-action="refresh-all">', '</a>');
        ?>
</p>
    <?php 
    }
    ?>

    <section class="items">
    <?php 
    foreach ($feeds as $feed) {
        ?>
        <article data-feed-id="<?php 
        echo $feed['id'];
        ?>
" <?php 
        echo !$feed['enabled'] ? 'data-feed-disabled="1"' : '';
Exemple #3
0
    echo $feed['id'];
    ?>
"><?php 
    echo t('mark all as read');
    ?>
</a>
            </li>
        </ul>
    </div>

    <?php 
    if ($feed['parsing_error']) {
        ?>
        <p class="alert alert-error">
            <?php 
        echo tne('An error occurred during the last check. Refresh the feed manually and check the %sconsole%s for errors afterwards!', '<a href="?action=console">', '</a>');
        ?>
        </p>
    <?php 
    }
    ?>

    <section class="items" id="listing">
        <?php 
    foreach ($items as $item) {
        ?>
            <?php 
        echo \PicoFarad\Template\load('item', array('feed' => $feed, 'item' => $item, 'menu' => $menu, 'offset' => $offset, 'hide' => false, 'display_mode' => $display_mode, 'favicons' => $favicons, 'original_marks_read' => $original_marks_read));
        ?>
        <?php 
    }
Exemple #4
0
        <link rel="apple-touch-icon" sizes="144x144" href="assets/img/touch-icon-ipad-retina.png">

        <link href="<?php 
echo Helper\css();
?>
" rel="stylesheet" media="screen">
        <script type="text/javascript" src="assets/js/all.min.js?<?php 
echo filemtime('assets/js/all.min.js');
?>
" defer></script>
    </head>
    <body>
        <header>
            <nav>
                <a class="logo" href="?"><?php 
echo tne('mini%sflux%s', '<span>', '</span>');
?>
</a>
                <ul>
                    <li <?php 
echo isset($menu) && $menu === 'unread' ? 'class="active"' : '';
?>
>
                        <a href="?action=unread"><?php 
echo t('unread');
?>
<span id="nav-counter"><?php 
echo empty($nb_unread_items) ? '' : $nb_unread_items;
?>
</span></a>
                    </li>