forked from royboy789/Angular-Wordpress-Theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
view.html
executable file
·63 lines (62 loc) · 2.63 KB
/
view.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<!-- LOOP THROUGH POSTS / ROWS -->
<div class="row projects">
<div class="col-sm-12">
<h2>{{ViewPost.title}}</h2>
</div>
</div>
<div class="row">
<div class="col-sm-8" ng-bind-html="ViewPost.content | to_trusted"></div>
<p>{{Directory.url}}</p>
<div class="col-sm-4 sidebar" ng-controller="SidebarCtrl">
<ng-include src="SidebarURL"></ng-include>
</div>
</div>
<div class="row">
<div class="col-sm-8">
<div class="row-fliud">
<div class="col-sm-12">
<div ng-hide="ViewPost.comments.length">
<h3>No Comments</h3>
</div>
<h3 ng-show="ViewPost.comments.length">Comments</h3>
<article ng-repeat="comment in ViewPost.comments" class="comment">
<blockquote>
<p ng-bind-html="comment.content | to_trusted "></p>
</blockquote>
<span class="author">- {{comment.author.name}} </span>
</article>
<!--<div id="disqus_thread"></div>
<script type="text/javascript">
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
var disqus_shortname = 'angularwp'; // required: replace example with your forum shortname
/* * * DON'T EDIT BELOW THIS LINE * * */
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script> -->
</div>
</div>
</div>
<div class="col-sm-4 sidebar">
<section class="hidden">
<h4>Add Comment</h4>
<form ng-submit="savecomment()" name="CommentForm" id="comment-form">
<div class="form-group">
<input type="text" id="name" name="name" ng-model="openComment.author" placeholder="Name" required/>
<span ng-show="CommentForm.name.$error.required" class="help-block">Required</span>
</div>
<div class="form-group">
<input type="email" name="email" id="email" ng-model="openComment.comment_author_email" placeholder="Email Address" required />
<span ng-show="CommentForm.email.$error.required" class="help-block">Required</span>
</div>
<div class="form-group">
<textarea required name="comment" ng-model="openComment.content" placeholder="Your Comment..."></textarea><br/>
<span ng-show="CommentForm.comment.$error.required" class="help-block">Required</span>
</div>
<input class="btn btn-primary" type="submit" value="Add Comment" />
</form>
</section>
</div>
</div>