mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Show edit button for users who have modify permissions on an article page #2458
This commit is contained in:
parent
3fd2fad70e
commit
b5a16dad5e
2 changed files with 17 additions and 7 deletions
|
|
@ -1,7 +1,8 @@
|
|||
<block cond="$oDocument">
|
||||
<h1 cond="($module_info->display_title ?? '') !== 'hide'">{$oDocument->getTitle()}</h1>
|
||||
{$oDocument->getContent(false)}
|
||||
</block>
|
||||
<block cond="!$oDocument">
|
||||
{$lang->none_content}
|
||||
</block>
|
||||
<!--@if($oDocument && $oDocument->isExists())-->
|
||||
<!--@if(($module_info->display_title ?? '') !== 'hide')-->
|
||||
<h1>{$oDocument->getTitle()}</h1>
|
||||
<!--@endif-->
|
||||
{$oDocument->getContent(false)}
|
||||
<!--@else-->
|
||||
{$lang->none_content}
|
||||
<!--@endif-->
|
||||
|
|
|
|||
|
|
@ -15,4 +15,13 @@
|
|||
<!--@end-->
|
||||
</span>
|
||||
</div>
|
||||
<!--@elseif($grant->modify && $module_info->page_type === 'ARTICLE')-->
|
||||
<div class="btnArea">
|
||||
<span class="btn-group">
|
||||
<a class="btn" href="{getUrl('act','dispPageAdminContentModify','document_srl','')}">{$lang->cmd_page_modify}</a>
|
||||
<!--@if($module_info->use_mobile === 'Y')-->
|
||||
<a class="btn" href="{getUrl('act','dispPageAdminMobileContent','module_srl',$module_info->module_srl)}">{$lang->mobile}</a>
|
||||
<!--@end-->
|
||||
</span>
|
||||
</div>
|
||||
<!--@end-->
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue