use $showacl to show/hide acl in jot.tpl - remove $pvisit and repair editblock and editlayout which still depended on it.
This commit is contained in:
parent
74bd772a5b
commit
b88a7fc23a
@ -1129,7 +1129,6 @@ function status_editor($a,$x,$popup=false) {
|
|||||||
'$baseurl' => $a->get_baseurl(true),
|
'$baseurl' => $a->get_baseurl(true),
|
||||||
'$defloc' => $x['default_location'],
|
'$defloc' => $x['default_location'],
|
||||||
'$visitor' => $x['visitor'],
|
'$visitor' => $x['visitor'],
|
||||||
'$pvisit' => (($notes_cid) ? 'none' : $x['visitor']),
|
|
||||||
'$public' => t('Public post'),
|
'$public' => t('Public post'),
|
||||||
'$jotnets' => $jotnets,
|
'$jotnets' => $jotnets,
|
||||||
'$emtitle' => t('Example: bob@example.com, mary@example.com'),
|
'$emtitle' => t('Example: bob@example.com, mary@example.com'),
|
||||||
@ -1137,7 +1136,7 @@ function status_editor($a,$x,$popup=false) {
|
|||||||
'$acl' => $x['acl'],
|
'$acl' => $x['acl'],
|
||||||
'$mimeselect' => $mimeselect,
|
'$mimeselect' => $mimeselect,
|
||||||
'$layoutselect' => $layoutselect,
|
'$layoutselect' => $layoutselect,
|
||||||
'$showacl' => ((array_key_exists('showacl',$x)) ? $x['showacl'] : 'yes'),
|
'$showacl' => ((array_key_exists('showacl',$x)) ? $x['showacl'] : true),
|
||||||
'$bang' => $x['bang'],
|
'$bang' => $x['bang'],
|
||||||
'$profile_uid' => $x['profile_uid'],
|
'$profile_uid' => $x['profile_uid'],
|
||||||
'$preview' => $preview,
|
'$preview' => $preview,
|
||||||
|
@ -60,6 +60,7 @@ require_once ('include/conversation.php');
|
|||||||
'nickname' => $a->profile['channel_address'],
|
'nickname' => $a->profile['channel_address'],
|
||||||
'lockstate' => (($group || $cid || $channel['channel_allow_cid'] || $channel['channel_allow_gid'] || $channel['channel_deny_cid'] || $channel['channel_deny_gid']) ? 'lock' : 'unlock'),
|
'lockstate' => (($group || $cid || $channel['channel_allow_cid'] || $channel['channel_allow_gid'] || $channel['channel_deny_cid'] || $channel['channel_deny_gid']) ? 'lock' : 'unlock'),
|
||||||
'bang' => (($group || $cid) ? '!' : ''),
|
'bang' => (($group || $cid) ? '!' : ''),
|
||||||
|
'showacl' => false,
|
||||||
'visitor' => true,
|
'visitor' => true,
|
||||||
'mimetype' => 'choose',
|
'mimetype' => 'choose',
|
||||||
'ptlabel' => t('Block Name'),
|
'ptlabel' => t('Block Name'),
|
||||||
|
@ -126,7 +126,6 @@ function editblock_content(&$a) {
|
|||||||
'$baseurl' => $a->get_baseurl(),
|
'$baseurl' => $a->get_baseurl(),
|
||||||
'$defloc' => $channel['channel_location'],
|
'$defloc' => $channel['channel_location'],
|
||||||
'$visitor' => false,
|
'$visitor' => false,
|
||||||
'$pvisit' => 'none',
|
|
||||||
'$public' => t('Public post'),
|
'$public' => t('Public post'),
|
||||||
'$jotnets' => $jotnets,
|
'$jotnets' => $jotnets,
|
||||||
'$title' => htmlspecialchars($itm[0]['title'],ENT_COMPAT,'UTF-8'),
|
'$title' => htmlspecialchars($itm[0]['title'],ENT_COMPAT,'UTF-8'),
|
||||||
|
@ -120,7 +120,6 @@ function editlayout_content(&$a) {
|
|||||||
'$baseurl' => $a->get_baseurl(),
|
'$baseurl' => $a->get_baseurl(),
|
||||||
'$defloc' => $channel['channel_location'],
|
'$defloc' => $channel['channel_location'],
|
||||||
'$visitor' => false,
|
'$visitor' => false,
|
||||||
'$pvisit' => 'none',
|
|
||||||
'$public' => t('Public post'),
|
'$public' => t('Public post'),
|
||||||
'$jotnets' => $jotnets,
|
'$jotnets' => $jotnets,
|
||||||
'$title' => htmlspecialchars($itm[0]['title'],ENT_COMPAT,'UTF-8'),
|
'$title' => htmlspecialchars($itm[0]['title'],ENT_COMPAT,'UTF-8'),
|
||||||
|
@ -126,7 +126,6 @@ function editpost_content(&$a) {
|
|||||||
'$baseurl' => $a->get_baseurl(),
|
'$baseurl' => $a->get_baseurl(),
|
||||||
'$defloc' => $channel['channel_location'],
|
'$defloc' => $channel['channel_location'],
|
||||||
'$visitor' => false,
|
'$visitor' => false,
|
||||||
'$pvisit' => 'none',
|
|
||||||
'$public' => t('Public post'),
|
'$public' => t('Public post'),
|
||||||
'$jotnets' => $jotnets,
|
'$jotnets' => $jotnets,
|
||||||
'$title' => htmlspecialchars($itm[0]['title'],ENT_COMPAT,'UTF-8'),
|
'$title' => htmlspecialchars($itm[0]['title'],ENT_COMPAT,'UTF-8'),
|
||||||
|
@ -158,8 +158,7 @@ function editwebpage_content(&$a) {
|
|||||||
'$defloc' => $itm[0]['location'],
|
'$defloc' => $itm[0]['location'],
|
||||||
'$visitor' => ($is_owner) ? true : false,
|
'$visitor' => ($is_owner) ? true : false,
|
||||||
'$acl' => populate_acl($itm[0]),
|
'$acl' => populate_acl($itm[0]),
|
||||||
'$showacl' => true,
|
'$showacl' => ($is_owner) ? true : false,
|
||||||
'$pvisit' => ($is_owner) ? 'block' : 'none',
|
|
||||||
'$public' => t('Public post'),
|
'$public' => t('Public post'),
|
||||||
'$jotnets' => $jotnets,
|
'$jotnets' => $jotnets,
|
||||||
'$mimeselect' => $mimeselect,
|
'$mimeselect' => $mimeselect,
|
||||||
|
@ -78,6 +78,7 @@ function layouts_content(&$a) {
|
|||||||
'nickname' => $a->profile['channel_address'],
|
'nickname' => $a->profile['channel_address'],
|
||||||
'lockstate' => (($group || $cid || $channel['channel_allow_cid'] || $channel['channel_allow_gid'] || $channel['channel_deny_cid'] || $channel['channel_deny_gid']) ? 'lock' : 'unlock'),
|
'lockstate' => (($group || $cid || $channel['channel_allow_cid'] || $channel['channel_allow_gid'] || $channel['channel_deny_cid'] || $channel['channel_deny_gid']) ? 'lock' : 'unlock'),
|
||||||
'bang' => (($group || $cid) ? '!' : ''),
|
'bang' => (($group || $cid) ? '!' : ''),
|
||||||
|
'showacl' => false,
|
||||||
'visitor' => false,
|
'visitor' => false,
|
||||||
'nopreview' => 1,
|
'nopreview' => 1,
|
||||||
'ptlabel' => t('Layout Name'),
|
'ptlabel' => t('Layout Name'),
|
||||||
|
@ -75,7 +75,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div id="profile-jot-submit-right" class="btn-group pull-right">
|
<div id="profile-jot-submit-right" class="btn-group pull-right">
|
||||||
{{if $showacl}}
|
{{if $showacl}}
|
||||||
<a href="#profile-jot-acl-wrapper" class="btn btn-default btn-sm jot-icons icon-{{$lockstate}}" id="jot-perms-icon" title="{{$permset}}" style="display: {{$pvisit}};"></a>{{$bang}}
|
<a href="#profile-jot-acl-wrapper" class="btn btn-default btn-sm jot-icons icon-{{$lockstate}}" id="jot-perms-icon" title="{{$permset}}"></a>{{$bang}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{if $preview}}
|
{{if $preview}}
|
||||||
<button class="btn btn-default btn-sm" onclick="preview_post();return false;" title="{{$preview}}">
|
<button class="btn btn-default btn-sm" onclick="preview_post();return false;" title="{{$preview}}">
|
||||||
|
Reference in New Issue
Block a user