From d586f64e406306a9fc55e55fa6d153e46fe0796c Mon Sep 17 00:00:00 2001 From: redmatrix Date: Thu, 4 Feb 2016 18:35:40 -0800 Subject: update the poke page layout and UI --- mod/poke.php | 19 +++++++++++--- view/tpl/poke_content.tpl | 64 +++++++++++++++++++++++++++++------------------ 2 files changed, 55 insertions(+), 28 deletions(-) diff --git a/mod/poke.php b/mod/poke.php index f66d28956..15a69780c 100755 --- a/mod/poke.php +++ b/mod/poke.php @@ -158,16 +158,27 @@ function poke_content(&$a) { if($v[1] !== 'NOTRANSLATION') $shortlist[] = array($k,$v[1]); - $tpl = get_markup_template('poke_content.tpl'); - $o = replace_macros($tpl,array( - '$title' => t('Poke/Prod'), - '$desc' => t('poke, prod or do other things to somebody'), + $poke_basic = get_config('system','poke_basic'); + if($poke_basic) { + $title = t('Poke'); + $desc = t('Poke somebody'); + } + else { + $title = t('Poke/Prod'); + $desc = t('Poke, prod or do other things to somebody'); + } + + $o = replace_macros(get_markup_template('poke_content.tpl'),array( + '$title' => $title, + '$poke_basic' => $poke_basic, + '$desc' => $desc, '$clabel' => t('Recipient'), '$choice' => t('Choose what you wish to do to recipient'), '$verbs' => $shortlist, '$parent' => $parent, '$prv_desc' => t('Make this post private'), + '$private' => array('private', t('Make this post private'), false, ''), '$submit' => t('Submit'), '$name' => $name, '$id' => $id diff --git a/view/tpl/poke_content.tpl b/view/tpl/poke_content.tpl index 22a0b291f..f368cb024 100755 --- a/view/tpl/poke_content.tpl +++ b/view/tpl/poke_content.tpl @@ -1,32 +1,48 @@ -

{{$title}}

-
{{$desc}}
+
+
+

{{$title}}

+
+
-
-
-
+
{{$desc}}
-
{{$clabel}}
-
- - - -
-
-
{{$choice}}
-
-
- -
-
-
{{$prv_desc}}
-

+ + + + + +
+ + +
+ + + + + +{{if $poke_basic}} + +{{else}} +
+ + +
+{{/if}} + +{{if ! $parent}} +{{include file="field_checkbox.tpl" field=$private}} +{{/if}} +
+ +
+
-- cgit v1.2.3