コード例 #1
0
ファイル: index.php プロジェクト: Draeli/kriss_feed
    public static function updateTpl()
    {
        extract(FeedPage::$var);
        ?>
<!DOCTYPE html>
<html>
  <head>
<?php 
        FeedPage::includesTpl();
        ?>
  </head>
  <body>
    <div class="container-fluid full-height">
      <div class="row-fluid full-height">
        <div class="span12 full-height">
<?php 
        FeedPage::statusTpl();
        FeedPage::navTpl();
        ?>
          <div class="container-fluid">
            <div class="row-fluid">
              <div class="span6 offset3">
                <ul class="unstyled">
                  <?php 
        echo $kf->updateFeedsHash($feedsHash, $forceUpdate, 'html');
        ?>
                </ul>
                <a class="btn ico-home" href="<?php 
        echo $base;
        ?>
" title="<?php 
        echo Intl::msg('Home');
        ?>
"></a>
                <?php 
        if (!empty($referer)) {
            ?>
                <a class="btn" href="<?php 
            echo $referer;
            ?>
"><?php 
            echo Intl::msg('Go back');
            ?>
</a>
                <?php 
        }
        ?>
                <a class="btn" href="<?php 
        echo $query;
        ?>
update=<?php 
        echo $currentHash;
        ?>
&amp;force"><?php 
        echo Intl::msg('Force update');
        ?>
</a>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
    <?php 
        if (is_file('inc/script.js')) {
            ?>
    <script type="text/javascript" src="inc/script.js?version=<?php 
            echo $version;
            ?>
"></script>
    <?php 
        } else {
            ?>
    <script type="text/javascript" src="?file=script.js&amp;version=<?php 
            echo $version;
            ?>
"></script>
    <?php 
        }
        ?>
  </body>
</html>

<?php 
    }
コード例 #2
0
ファイル: index.php プロジェクト: inscriptionweb/kriss_feed
    public static function indexTpl()
    {
        extract(FeedPage::$var);
        ?>
<!DOCTYPE html>
<html>
  <head>
<?php 
        FeedPage::includesTpl();
        ?>
  </head>
  <body>
<div id="index" class="container-fluid full-height" data-view="<?php 
        echo $view;
        ?>
" data-list-feeds="<?php 
        echo $listFeeds;
        ?>
" data-filter="<?php 
        echo $filter;
        ?>
" data-order="<?php 
        echo $order;
        ?>
" data-by-page="<?php 
        echo $byPage;
        ?>
" data-autoread-item="<?php 
        echo $autoreadItem;
        ?>
" data-autoread-page="<?php 
        echo $autoreadPage;
        ?>
" data-autohide="<?php 
        echo $autohide;
        ?>
" data-current-hash="<?php 
        echo $currentHash;
        ?>
" data-current-page="<?php 
        echo $currentPage;
        ?>
" data-nb-items="<?php 
        echo $nbItems;
        ?>
" data-shaarli="<?php 
        echo $shaarli;
        ?>
" data-redirector="<?php 
        echo $redirector;
        ?>
" data-autoupdate="<?php 
        echo $autoupdate;
        ?>
" data-autofocus="<?php 
        echo $autofocus;
        ?>
" data-add-favicon="<?php 
        echo $addFavicon;
        ?>
" data-preload="<?php 
        echo $preload;
        ?>
" data-is-logged="<?php 
        echo $isLogged;
        ?>
" data-blank="<?php 
        echo $blank;
        ?>
" data-intl-top="<?php 
        echo Intl::msg('top');
        ?>
" data-intl-share="<?php 
        echo Intl::msg('share');
        ?>
" data-intl-read="<?php 
        echo Intl::msg('read');
        ?>
" data-intl-unread="<?php 
        echo Intl::msg('unread');
        ?>
" data-intl-star="<?php 
        echo Intl::msg('star');
        ?>
" data-intl-unstar="<?php 
        echo Intl::msg('unstar');
        ?>
" data-intl-from="<?php 
        echo Intl::msg('from');
        ?>
"<?php 
        if (isset($_GET['stars']) && $kf->kfc->isLogged()) {
            echo ' data-stars="1"';
        }
        ?>
>
      <div class="row-fluid full-height">
        <?php 
        if ($listFeeds == 'show') {
            ?>
        <div id="main-container" class="span9 full-height">
          <?php 
            FeedPage::statusTpl();
            ?>
          <?php 
            FeedPage::navTpl();
            ?>
          <div id="paging-up">
            <?php 
            if (!empty($paging)) {
                FeedPage::pagingTpl();
            }
            ?>
          </div>
          <?php 
            FeedPage::listItemsTpl();
            ?>
          <div id="paging-down">
            <?php 
            if (!empty($paging)) {
                FeedPage::pagingTpl();
            }
            ?>
          </div>
        </div>
        <div id="minor-container" class="span3 full-height minor-container">
          <?php 
            FeedPage::listFeedsTpl();
            ?>
        </div>
        <?php 
        } else {
            ?>
        <div id="main-container" class="span12 full-height">
          <?php 
            FeedPage::statusTpl();
            ?>
          <?php 
            FeedPage::navTpl();
            ?>
          <div id="paging-up">
            <?php 
            if (!empty($paging)) {
                FeedPage::pagingTpl();
            }
            ?>
          </div>
          <?php 
            FeedPage::listItemsTpl();
            ?>
          <div id="paging-down">
            <?php 
            if (!empty($paging)) {
                FeedPage::pagingTpl();
            }
            ?>
          </div>
        </div>
        <?php 
        }
        ?>
      </div>
    </div>
    <?php 
        if (is_file('inc/script.js')) {
            ?>
    <script type="text/javascript" src="inc/script.js?version=<?php 
            echo $version;
            ?>
"></script>
    <?php 
        } else {
            ?>
    <script type="text/javascript" src="?file=script.js&amp;version=<?php 
            echo $version;
            ?>
"></script>
    <?php 
        }
        ?>
  </body>
</html>
<?php 
    }