aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
Diffstat (limited to 'view')
-rw-r--r--view/php/zen.php10
-rw-r--r--view/tpl/diaspora_consensus.tpl17
-rw-r--r--view/tpl/diaspora_post.tpl1
3 files changed, 28 insertions, 0 deletions
diff --git a/view/php/zen.php b/view/php/zen.php
new file mode 100644
index 000000000..6fd11127c
--- /dev/null
+++ b/view/php/zen.php
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <title><?php if(x($page,'title')) echo $page['title'] ?></title>
+ <?php if(x($page,'htmlhead')) echo $page['htmlhead'] ?>
+</head>
+<body>
+ <?php if(x($page,'content')) echo $page['content']; ?>
+</body>
+</html>
diff --git a/view/tpl/diaspora_consensus.tpl b/view/tpl/diaspora_consensus.tpl
new file mode 100644
index 000000000..b6b7cf13d
--- /dev/null
+++ b/view/tpl/diaspora_consensus.tpl
@@ -0,0 +1,17 @@
+<poll>
+<guid>{{$guid_q}}</guid>
+<question>{{$question}}</question>
+<poll_answer>
+ <guid>{{$guid_y}}</guid>
+ <answer>{{$agree}}</answer>
+</poll_answer>
+<poll_answer>
+ <guid>{{$guid_n}}</guid>
+ <answer>{{$disagree}}</answer>
+</poll_answer>
+<poll_answer>
+ <guid>{{$guid_a}}</guid>
+ <answer>{{$abstain}}</answer>
+</poll_answer>
+</poll>
+
diff --git a/view/tpl/diaspora_post.tpl b/view/tpl/diaspora_post.tpl
index 2fe916e00..ebfe9e5b7 100644
--- a/view/tpl/diaspora_post.tpl
+++ b/view/tpl/diaspora_post.tpl
@@ -4,6 +4,7 @@
<raw_message>{{$body}}</raw_message>
<guid>{{$guid}}</guid>
<diaspora_handle>{{$handle}}</diaspora_handle>
+ {{$poll}}
<public>{{$public}}</public>
<created_at>{{$created}}</created_at>
<provider_display_name>{{$provider}}</provider_display_name>