259 lines
14 KiB
PHP
259 lines
14 KiB
PHP
@section('page_title')
|
|
<h2><a href="{{ route('settings.plugins') }}"><i class="xi-arrow-left"></i>{{xe_trans('xe::pluginDetails')}}</a></h2>
|
|
@stop
|
|
|
|
<!--어드민 컨텐츠 영역 col-sm-"n" n:1~12에 따라 그리드 사용가능-->
|
|
<div class="container-fluid container-fluid--part">
|
|
<div class="row">
|
|
<div class="col-sm-12">
|
|
|
|
@if(count($unresolvedComponents))
|
|
<div class="alert alert-warning" role="alert" style="margin-top:10px;">
|
|
<p><i class="xi-info-o txt_red"></i> {{ xe_trans('xe::componentNotRegisteredProperly') }}</p>
|
|
<ul class="list-unstyled">
|
|
@foreach($unresolvedComponents as $cId => $info)
|
|
{{ $cId }}
|
|
@endforeach
|
|
</ul>
|
|
</div>
|
|
@endif
|
|
|
|
<div class="panel plugin-detail">
|
|
<div class="panel-heading">
|
|
<div class="pull-left">
|
|
<p class="plugin-title">{{$plugin->getTitle()}}</p>
|
|
<div class="plugin-summary">
|
|
<div class="img-thumbnail">
|
|
@if($plugin->getIcon() === null)
|
|
<img src="{{ asset('assets/core/plugin/img/noicon.png') }}" width="100" height="100" alt="{{$plugin->getTitle()}}">
|
|
@else
|
|
<img src="{{$plugin->getIcon()}}" width="100" height="100" alt="{{$plugin->getTitle()}}">
|
|
@endif
|
|
</div>
|
|
<dl>
|
|
|
|
@if($author = $plugin->getAuthor())
|
|
|
|
{{-- author name --}}
|
|
<dt class="sr-only">{{xe_trans('xe::author')}}</dt>
|
|
<dd>
|
|
<i class="xi-user"></i>
|
|
@if($email = array_get($author, 'email'))
|
|
<a href="mailto:{{ $email }}">
|
|
{{ array_get($author, 'name', '') }}
|
|
</a>
|
|
@else
|
|
{{ array_get($author, 'name', '') }}
|
|
@endif
|
|
</dd>
|
|
|
|
{{-- author homepage --}}
|
|
@if($homepage = array_get($author, 'homepage'))
|
|
<dt class="sr-only">{{xe_trans('xe::author')}}</dt>
|
|
<dd>
|
|
<i class="xi-paperclip"></i>
|
|
<a href="{{ $homepage }}">
|
|
{{ $homepage }}
|
|
</a>
|
|
</dd>
|
|
@endif
|
|
|
|
@endif
|
|
|
|
{{-- author source--}}
|
|
@if($source = $plugin->getSupport('source'))
|
|
<dt class="sr-only">Source</dt>
|
|
<a href="{{ $source }}" target="_blank">{{ $source }}</a>
|
|
</dd>
|
|
@endif
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<div class="pull-right">
|
|
@if($plugin->isActivated())
|
|
<form method="POST" action="{{ route('settings.plugins.deactivate', [$plugin->getId()]) }}" accept-charset="UTF-8" role="form" style="display: inline;">
|
|
{!! csrf_field() !!}
|
|
{!! method_field('PUT') !!}
|
|
<button class="btn btn-danger">{{xe_trans('xe::deactivation')}}</button>
|
|
</form>
|
|
|
|
@if($plugin->needUpdateInstall())
|
|
<form method="POST" action="{{ route('settings.plugins.update', [$plugin->getId()]) }}" accept-charset="UTF-8" role="form" style="display: inline;">
|
|
{!! csrf_field() !!}
|
|
{!! method_field('PUT') !!}
|
|
<button class="btn btn-default">{{ xe_trans('xe::updates') }}</button>
|
|
</form>
|
|
@endif
|
|
|
|
@if($plugin->getSettingsURI())
|
|
<a href="{{ $plugin->getSettingsURI() }}" class="xe-btn xe-btn-default blue v2">{{xe_trans('xe::settings')}}</a>
|
|
@endif
|
|
@else
|
|
<form method="POST" action="{{ route('settings.plugins.activate', [$plugin->getId()]) }}" accept-charset="UTF-8" role="form" style="display: inline;">
|
|
{!! csrf_field() !!}
|
|
{!! method_field('PUT') !!}
|
|
<button class="btn btn-default">{{xe_trans('xe::activation')}}</button>
|
|
</form>
|
|
@endif
|
|
|
|
</div>
|
|
<ul class="nav nav-pills nav-justified">
|
|
<li class="active"><a href="#details" data-toggle="tab" role="tab">Details</a></li>
|
|
<li><a href="#readme" data-toggle="tab" role="tab">Documentation</a></li>
|
|
<li><a href="#changelog" data-toggle="tab" role="tab">Change Log</a></li>
|
|
</ul>
|
|
</div>
|
|
<div class="tab-content">
|
|
{{-- 세부사항 --}}
|
|
<ul role="tabpanel" id="details" class="list-group tab-pane fade in active">
|
|
<li class="list-group-item">
|
|
<p class="tit">{{xe_trans('xe::description')}}</p>
|
|
<p>{{ $plugin->getDescription() }}</p>
|
|
</li>
|
|
<li class="list-group-item">
|
|
<p class="tit">{{xe_trans('xe::information')}}</p>
|
|
<div>
|
|
<table class="plugin_tbl">
|
|
<colgroup>
|
|
<col width="200">
|
|
<col>
|
|
</colgroup>
|
|
<tbody>
|
|
<tr>
|
|
<th scope="row">{{xe_trans('xe::version')}}</th>
|
|
<td>{{$plugin->getVersion()}}</td>
|
|
</tr>
|
|
<tr>
|
|
<th scope="row">{{xe_trans('xe::author')}}</th>
|
|
<td>
|
|
@if($authors = $plugin->getAuthors())
|
|
{{ reset($authors)['name'] }}
|
|
@endif
|
|
</td>
|
|
</tr>
|
|
{{--<tr>--}}
|
|
{{--<th scope="row">업데이트</th>--}}
|
|
{{--<td>2015.10.15</td>--}}
|
|
{{--</tr>--}}
|
|
{{--<tr>--}}
|
|
{{--<th scope="row">인스톨 수</th>--}}
|
|
{{--<td>1+ million</td>--}}
|
|
{{--</tr>--}}
|
|
{{--<tr>--}}
|
|
<th scope="row">{{xe_trans('xe::supportingComponents')}}</th>
|
|
<td>
|
|
@foreach($componentTypes as $type => $typeText)
|
|
@foreach($plugin->getComponentList($type) as $key => $component)
|
|
<span class="label label-{{ $color[$type] }}" title="{{ $component['name'] }}" data-toggle="tooltip">{{ $type }}</span>
|
|
@endforeach
|
|
@endforeach
|
|
</td>
|
|
</tr>
|
|
{{--<tr>--}}
|
|
{{--<th scope="row">호환성</th>--}}
|
|
{{--<td>XpressEngine 0.8 or higher</td>--}}
|
|
{{--</tr>--}}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li>
|
|
<li class="list-group-item">
|
|
<p class="tit">Screenshot</p>
|
|
@if($screenshots = $plugin->getScreenshots())
|
|
<div class="swiper-container swiper">
|
|
<div class="swiper-wrapper">
|
|
@foreach($screenshots as $screenshot)
|
|
<div class="swiper-slide">
|
|
<div class="thum_plugin">
|
|
<img src="{{ $screenshot }}" height="400" alt="plugin screenshot">
|
|
</div>
|
|
</div>
|
|
@endforeach
|
|
</div>
|
|
<!-- Add Pagination -->
|
|
<div class="swiper-pagination swiper-pagination-white swiper-pagination"></div>
|
|
<!-- Add Arrows -->
|
|
<div class="swiper-button-next swiper-button-white swiper-button-next" style="opacity:0"></div>
|
|
<div class="swiper-button-prev swiper-button-white swiper-button-prev" style="opacity:0"></div>
|
|
</div>
|
|
@else
|
|
{{xe_trans('xe::msgNoScreenshot')}}
|
|
@endif
|
|
|
|
</li>
|
|
<li class="list-group-item">
|
|
<p class="tit">{{xe_trans('xe::supportComponents')}}</p>
|
|
<div class="table-responsive">
|
|
<table class="table">
|
|
<thead>
|
|
<tr>
|
|
<th>{{xe_trans('xe::name')}}</th>
|
|
<th>{{xe_trans('xe::type')}}</th>
|
|
<th>{{xe_trans('xe::description')}}</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach($componentTypes as $type => $typeText)
|
|
@foreach($plugin->getComponentList($type) as $key => $component)
|
|
@if($plugin->isActivated())
|
|
@if($class = $component['class'])
|
|
@if(class_exists($class))
|
|
<tr>
|
|
<td>
|
|
{{ $class::getComponentInfo('name') }}
|
|
@if($class::getSettingsUri() !== null)
|
|
<a href="{{ $class::getSettingsUri()}}" class="btn_plugin_cog"><i class="xi-cog"></i></a>
|
|
@endif
|
|
</td>
|
|
<td><span class="label label-green">{{ $typeText }}</span></td>
|
|
<td>{{ $class::getComponentInfo('description') }}</td>
|
|
</tr>
|
|
@endif
|
|
@endif
|
|
@else
|
|
<tr>
|
|
<td>
|
|
{{ $component['name'] }}
|
|
</td>
|
|
<td><span class="label label-green">{{ $typeText }}</span></td>
|
|
<td>{{ $component['description'] }}</td>
|
|
</tr>
|
|
@endif
|
|
@endforeach
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li>
|
|
</ul>
|
|
|
|
{{-- 문서정보 --}}
|
|
<div role="tabpanel" class="tab-pane fade panel-body" id="readme">
|
|
@if($readme = $plugin->getReadMe())
|
|
{!! $readme !!}
|
|
@else
|
|
{{xe_trans('xe::msgNoDocument')}}
|
|
@endif
|
|
</div>
|
|
|
|
{{-- 지원 --}}
|
|
{{--<div role="tabpanel" class="tab-pane fade panel-body" id="support">
|
|
|
|
</div>--}}
|
|
|
|
{{-- 업데이트 기록 --}}
|
|
<div role="tabpanel" class="tab-pane fade panel-body" id="changelog">
|
|
@if($changelog = $plugin->getChangeLog())
|
|
{!! nl2br($changelog) !!}
|
|
@else
|
|
{{xe_trans('xe::msgNoUpdateChangeLog')}}
|
|
@endif
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!--//어드민 컨텐츠 영역 -->
|