aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-08-24 18:34:12 -0700
committerzotlabs <mike@macgirvin.com>2017-08-24 18:34:12 -0700
commit5c92337821834853dc03eecbc8af9e59b16b70a1 (patch)
treeb462d85d5e466f94de8319af79adda03078ff13d /include
parent341386a95ba68227f60964ab50f9b20989ac6802 (diff)
downloadvolse-hubzilla-5c92337821834853dc03eecbc8af9e59b16b70a1.tar.gz
volse-hubzilla-5c92337821834853dc03eecbc8af9e59b16b70a1.tar.bz2
volse-hubzilla-5c92337821834853dc03eecbc8af9e59b16b70a1.zip
cards - change placeholdertext, separate from button text
Diffstat (limited to 'include')
-rw-r--r--include/conversation.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/conversation.php b/include/conversation.php
index 5cb85c3f9..9a48a83d2 100644
--- a/include/conversation.php
+++ b/include/conversation.php
@@ -1340,10 +1340,14 @@ function status_editor($a, $x, $popup = false) {
call_hooks('jot_networks', $jotnets);
}
+ $sharebutton = (x($x,'button') ? $x['button'] : t('Share'));
+ $placeholdtext = (x($x,'content_label') ? $x['content_label'] : $sharebutton);
+
$o .= replace_macros($tpl, array(
'$return_path' => ((x($x, 'return_path')) ? $x['return_path'] : App::$query_string),
'$action' => z_root() . '/item',
- '$share' => (x($x,'button') ? $x['button'] : t('Share')),
+ '$share' => $sharebutton,
+ '$placeholdtext' => $placeholdtext,
'$webpage' => $webpage,
'$placeholdpagetitle' => ((x($x,'ptlabel')) ? $x['ptlabel'] : t('Page link name')),
'$pagetitle' => (x($x,'pagetitle') ? $x['pagetitle'] : ''),