aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-08-23 20:00:10 -0700
committerfriendica <info@friendica.com>2012-08-23 20:00:10 -0700
commit2456174cc905d2d0ae19d21c94fec2c5552322a8 (patch)
tree1e64335bad03cadb168d9cd88627e6a893459efb /include
parenta9dabd8eb918436b57d9263ad3d635774455f28f (diff)
downloadvolse-hubzilla-2456174cc905d2d0ae19d21c94fec2c5552322a8.tar.gz
volse-hubzilla-2456174cc905d2d0ae19d21c94fec2c5552322a8.tar.bz2
volse-hubzilla-2456174cc905d2d0ae19d21c94fec2c5552322a8.zip
back to identity creation form
Diffstat (limited to 'include')
-rw-r--r--include/conversation.php14
-rw-r--r--include/identity.php11
-rw-r--r--include/text.php33
3 files changed, 58 insertions, 0 deletions
diff --git a/include/conversation.php b/include/conversation.php
index 3bbaf0cba..59f2f2ed8 100644
--- a/include/conversation.php
+++ b/include/conversation.php
@@ -206,6 +206,20 @@ function localize_item(&$item){
$item['body'] = sprintf($txt, $A, $B). "\n\n\n" . $Bphoto;
}
+ if (stristr($item['verb'],ACTIVITY_MOOD)) {
+ $verb = urldecode(substr($item['verb'],strpos($item['verb'],'#')+1));
+ if(! $verb)
+ return;
+
+ $Aname = $item['author-name'];
+ $Alink = $item['author-link'];
+ $A = '[url=' . zrl($Alink) . ']' . $Aname . '[/url]';
+
+ $txt = t('%1$s is currently %2$s');
+
+ $item['body'] = sprintf($txt, $A, t($verb));
+ }
+
if ($item['verb']===ACTIVITY_TAG){
$r = q("SELECT * from `item`,`contact` WHERE
`item`.`contact-id`=`contact`.`id` AND `item`.`uri`='%s';",
diff --git a/include/identity.php b/include/identity.php
index 5164b5eae..8f906228f 100644
--- a/include/identity.php
+++ b/include/identity.php
@@ -1,6 +1,17 @@
<?php
+function create_identity($arr) {
+
+
+
+
+}
+
+
+
+
+
class simple_identity {
diff --git a/include/text.php b/include/text.php
index d49b2269c..feafafd06 100644
--- a/include/text.php
+++ b/include/text.php
@@ -670,6 +670,39 @@ function get_poke_verbs() {
return $arr;
}
+function get_mood_verbs() {
+
+ // index is present tense verb
+ // value is array containing past tense verb, translation of present, translation of past
+
+ $arr = array(
+ 'happy' => t('happy'),
+ 'sad' => t('sad'),
+ 'mellow' => t('mellow'),
+ 'tired' => t('tired'),
+ 'perky' => t('perky'),
+ 'angry' => t('angry'),
+ 'stupefied' => t('stupified'),
+ 'puzzled' => t('puzzled'),
+ 'interested' => t('interested'),
+ 'bitter' => t('bitter'),
+ 'cheerful' => t('cheerful'),
+ 'alive' => t('alive'),
+ 'annoyed' => t('annoyed'),
+ 'anxious' => t('anxious'),
+ 'cranky' => t('cranky'),
+ 'disturbed' => t('disturbed'),
+ 'frustrated' => t('frustrated'),
+ 'motivated' => t('motivated'),
+ 'relaxed' => t('relaxed'),
+ 'surprised' => t('surprised'),
+ );
+
+ call_hooks('mood_verbs', $arr);
+ return $arr;
+}
+
+
/**
*
* Function: smilies