Comanche documentation and some cleanup of layout page (including link to doco) and a few other webpage related cleanups

This commit is contained in:
friendica
2013-10-28 17:48:42 -07:00
parent 1bf6591e1b
commit 1380bee82c
7 changed files with 173 additions and 4 deletions

View File

@@ -1072,6 +1072,11 @@ function status_editor($a,$x,$popup=false) {
$jotplugins = '';
$jotnets = '';
$preview = ((feature_enabled($x['profile_uid'],'preview')) ? t('Preview') : '');
if(x($x,'nopreview'))
$preview = '';
call_hooks('jot_tool', $jotplugins);
call_hooks('jot_networks', $jotnets);
@@ -1080,7 +1085,7 @@ function status_editor($a,$x,$popup=false) {
'$action' => $a->get_baseurl(true) . '/item',
'$share' => (x($x,'button') ? $x['button'] : t('Share')),
'$webpage' => $webpage,
'$placeholdpagetitle' => t('Page link title'),
'$placeholdpagetitle' => ((x($x,'ptlabel')) ? $x['ptlabel'] : t('Page link title')),
'$pagetitle' => (x($x,'pagetitle') ? $x['pagetitle'] : ''),
'$upload' => t('Upload photo'),
'$shortupload' => t('upload photo'),
@@ -1121,7 +1126,7 @@ function status_editor($a,$x,$popup=false) {
'$showacl' => ((array_key_exists('showacl',$x)) ? $x['showacl'] : 'yes'),
'$bang' => $x['bang'],
'$profile_uid' => $x['profile_uid'],
'$preview' => ((feature_enabled($x['profile_uid'],'preview')) ? t('Preview') : ''),
'$preview' => $preview,
'$sourceapp' => t($a->sourcename),
'$jotplugins' => $jotplugins,
));