Show Rhymix logo instead of version only if it is a part of the Core

This commit is contained in:
Kijin Sung 2022-10-29 21:45:37 +09:00
parent 8d228890c9
commit 0adce0dd47
5 changed files with 18 additions and 6 deletions

View file

@ -2,7 +2,7 @@
<table class="x_table x_table-striped x_table-hover">
<tr>
<th scope="row">{$lang->title}</th>
<td>{$addon_info->title} ver. {$addon->version === 'RX_VERSION' ? 'CORE' : $addon->version}</td>
<td>{$addon_info->title} ver. {($addon->version === 'RX_VERSION' && Context::isDefaultPlugin($addon_info->addon_name, 'addon')) ? 'CORE' : $addon->version}</td>
</tr>
<tr>
<th scope="row">{$lang->author}</th>

View file

@ -8,8 +8,14 @@
<tr>
<th class="nowr">{$lang->version}</th>
<td>
{$addon_info->version === 'RX_VERSION' ? 'CORE' : $addon_info->version}
<!--@if($addon_info->date)-->({zdate($addon_info->date, 'Y-m-d')})<!--@endif-->
<!--@if($addon_info->version === 'RX_VERSION' && Context::isDefaultPlugin($addon_info->addon_name, 'addon'))-->
CORE
<!--@else-->
{$addon_info->version}
<!--@if($addon_info->date)-->
({zdate($addon_info->date, 'Y-m-d')})
<!--@endif-->
<!--@endif-->
</td>
</tr>
<tr>