Skip to content

Commit

Permalink
nginx compatible view file
Browse files Browse the repository at this point in the history
  • Loading branch information
cubny committed Jul 9, 2016
1 parent 9d49c34 commit d636754
Showing 1 changed file with 95 additions and 0 deletions.
95 changes: 95 additions & 0 deletions app/views/index.phtml.nginx
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>LiteReader</title>
<link href="css/main.css" media="screen" rel="stylesheet" type="text/css" />
<link href="css/jquery-ui.css" media="screen" rel="stylesheet" type="text/css" />
<link href="css/font-awesome/css/font-awesome.min.css" media="screen" rel="stylesheet" type="text/css" />

<script type="text/javascript">
</script>
</head>

<body>

<div class="ui-layout-west" id="feeds">
<div id="toolbar" class="ui-layout-north">
<div id="addfeed">
<a class="add btn btn-purple" href="#">
<i class="icon-plus"></i> <span>Feed</span>
</a>
<input type="text" id="urlToAdd" style="display:none">
</div>
</div>
<ul>
<li id="feeds-actions">
<a class="btn btn-purple btn-small" href="#" id="update-all"><i class="icon-repeat"></i> update all</a>
</li>
<li id="unread" class="feed">
<div class="count"><?php echo $unread_count>0?"<span>".$unread_count."</span>":""; ?></div>
<i class="icon-circle"></i>
<div class="feedtitle">Unread</div>
</li>
<li id="starred" class="feed">
<div class="count"><?php echo $starred_count>0?"<span>".$starred_count."</span>":""; ?></div>
<i class="icon-star"></i>
<div class="feedtitle">Starred</div>
</li>

<?php foreach($feeds as $feed): ?>
<li class="feed" id="<?php echo $feed->id?>">
<?php $parsed = parse_url($feed->link); ?>
<div class="count"><?php echo $feed->unread>0?"<span>".$feed->unread."</span>":""; ?></div>
<img src="http://api.byi.pw/favicon?url=<?php echo $feed->url; ?>
<div class="feedtitle"><?php echo $feed->title; ?></div>
</li>
<?php endforeach; ?>
</ul>
</div>
<div id="content" class="ui-layout-center">
<div class="ui-layout-north">
<div id="feedbar">
<div id="title"></div>
<div id="actions">
<div class="action update"><i class="icon-repeat"></i> Update</div>
<div id="mark-read-all" class="action markread"><i class="icon-circle-blank"></i> Read All</div>
<div id="mark-unread-all" class="action markread"><i class="icon-circle"></i> Unread All</div>
<div class="action remove"><i class="icon-trash"></i> Remove</div>
</div>
</div>
</div>
<div id="msg">loading</div>
<div class="ui-layout-center">
<ul id="items">
</ul>
</div>
</div>
<script type="text/template" id="item-template">
<li id={0}>
<div class="title">
<a name="starred" class="item-action item-star"><i class="{5}"></i></a>
<a name="read" class="item-action item-read"><i class="{4}"></i></a>
<span>{1}</span>
<a href="{3}" target="blank" class="item-action item-link"><i class="icon-external-link"></i> link</a>
<span class="timestamp">{6}</span>
</div>
<div class="desc">{2}</div>
</li>
</script>
</body>
<script type="text/javascript" src="javascript/jquery.js"></script>
<script type="text/javascript" src="javascript/jquery.ui.all.js"></script>
<script type="text/javascript" src="javascript/jquery.layout.js"></script>
<script type="text/javascript" src="javascript/jquery.cookie.js"></script>
<script type="text/javascript" src="javascript/jquery.scrollTo.min.js"></script>
<script type="text/javascript" src="javascript/spin.min.js"></script>
<script type="text/javascript" src="javascript/moment.min.js"></script>
<script type="text/javascript" src="javascript/utils.js"></script>
<script type="text/javascript" src="javascript/feeds.js"></script>
<script type="text/javascript" src="javascript/items.js"></script>
<script type="text/javascript" src="javascript/stage.js"></script>
<script type="text/javascript" src="javascript/main.js"></script>
</html>

0 comments on commit d636754

Please sign in to comment.