First Commit
This commit is contained in:
commit
feb864dc47
170 changed files with 4671 additions and 0 deletions
41
hackatonApp/www/views/app/wordpress/wordpress.html
Normal file
41
hackatonApp/www/views/app/wordpress/wordpress.html
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
<ion-view class="wordpress-view">
|
||||
<ion-nav-buttons side="left">
|
||||
<button menu-toggle="left" class="button button-icon icon ion-navicon"></button>
|
||||
</ion-nav-buttons>
|
||||
<ion-nav-title>
|
||||
<span>WordPress</span>
|
||||
</ion-nav-title>
|
||||
<ion-content>
|
||||
<!-- Refresh to get the new posts -->
|
||||
<ion-refresher pulling-text="Pull to refresh..." on-refresh="doRefresh()">
|
||||
</ion-refresher>
|
||||
|
||||
<div class="posts-list">
|
||||
<div ng-repeat="post in posts" class="list card post-item">
|
||||
<div class="post-heading item item-text-wrap">
|
||||
<h2 class="post-title" ng-bind-html="post.title | rawHtml"></h2>
|
||||
<p class="post-author">
|
||||
By <span>{{post.author.nickname}}</span> <span am-time-ago="post.date"></span>
|
||||
</p>
|
||||
</div>
|
||||
<div class="post-content item item-text-wrap" post-content>
|
||||
<p class="post-excerpt" dynamic-anchor-fix ng-bind-html="post.content | rawHtml"></p>
|
||||
<div class="post-actions row">
|
||||
<div class="actions col col-center col-66">
|
||||
<a class="button button-icon icon ion-bookmark" ng-click="bookmarkPost(post)"></a>
|
||||
</div>
|
||||
<div class="read-more col col-center col-33">
|
||||
<a ui-sref="app.post({postId: post.id})" class="button button-small button-block button-assertive">
|
||||
Read more
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Infinit scroll -->
|
||||
<ion-infinite-scroll ng-if="moreDataCanBeLoaded()" on-infinite="loadMoreData()" distance="1%" icon="ion-loading-c">
|
||||
</ion-infinite-scroll>
|
||||
</ion-content>
|
||||
</ion-view>
|
||||
32
hackatonApp/www/views/app/wordpress/wordpress_post.html
Normal file
32
hackatonApp/www/views/app/wordpress/wordpress_post.html
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
<ion-view class="post-view">
|
||||
<ion-content>
|
||||
<div class="post-heading item item-text-wrap">
|
||||
<h1 class="post-title">{{post.title}}</h1>
|
||||
<p class="post-author">
|
||||
By <span>{{post.author.nickname}}</span> <span am-time-ago="post.date"></span>
|
||||
</p>
|
||||
</div>
|
||||
<div class="post-content item item-text-wrap" post-content>
|
||||
<p class="post-text" dynamic-anchor-fix ng-bind-html="post.content | rawHtml"></p>
|
||||
</div>
|
||||
<div class="post-tags item item-text-wrap">
|
||||
<span class="post-tag button button-small button-outline button-stable" ng-repeat="category in post.categories">{{category.title}}</span>
|
||||
</div>
|
||||
</ion-content>
|
||||
<ion-footer-bar class="post-footer bar bar-footer bar-dark">
|
||||
<div class="row">
|
||||
<div class="col col-20 col-center">
|
||||
<a class="button button-icon icon icon-right ion-plus" bigger-text=".post-view .post-text">A</a>
|
||||
</div>
|
||||
<div class="col col-20 col-center">
|
||||
<a class="button button-icon icon icon-right ion-minus" smaller-text=".post-view .post-text">A</a>
|
||||
</div>
|
||||
<div class="col col-20 col-offset-20 col-center">
|
||||
<a class="button button-icon icon ion-heart"></a>
|
||||
</div>
|
||||
<div class="col col-20 col-center">
|
||||
<a class="button button-icon icon ion-android-share-alt" ng-click="sharePost(post.url)"></a>
|
||||
</div>
|
||||
</div>
|
||||
</ion-footer-bar>
|
||||
</ion-view>
|
||||
Loading…
Add table
Add a link
Reference in a new issue