Add more comments and make code more readable.
This commit is contained in:
parent
c9ebaaa882
commit
bc93e6d4c3
3 changed files with 15 additions and 1 deletions
|
@ -43,11 +43,14 @@ class BlueprintExtensionController extends Controller
|
||||||
*/
|
*/
|
||||||
public function index(): View
|
public function index(): View
|
||||||
{
|
{
|
||||||
|
// The following code rerolls the panel identifier used for telemetry
|
||||||
|
// when the version name changes.
|
||||||
if ($this->settings->get('blueprint::panel:id') == "" || $this->bp->version() != $this->settings->get('blueprint::version:cache')) {
|
if ($this->settings->get('blueprint::panel:id') == "" || $this->bp->version() != $this->settings->get('blueprint::version:cache')) {
|
||||||
$this->settings->set('blueprint::panel:id', uniqid(rand())."@".$this->bp->version());
|
$this->settings->set('blueprint::panel:id', uniqid(rand())."@".$this->bp->version());
|
||||||
$this->settings->set('blueprint::version:cache', $this->bp->version());
|
$this->settings->set('blueprint::version:cache', $this->bp->version());
|
||||||
$this->bp->config('TELEMETRY_ID',$this->settings->get("blueprint::panel:id"));
|
$this->bp->config('TELEMETRY_ID',$this->settings->get("blueprint::panel:id"));
|
||||||
};
|
};
|
||||||
|
// Sync developer mode option with the core of Blueprint.
|
||||||
$this->bp->config('DEVELOPER', $this->settings->get('blueprint::developer'));
|
$this->bp->config('DEVELOPER', $this->settings->get('blueprint::developer'));
|
||||||
return $this->view->make(
|
return $this->view->make(
|
||||||
'admin.extensions.blueprint.index', [
|
'admin.extensions.blueprint.index', [
|
||||||
|
|
|
@ -16,8 +16,13 @@
|
||||||
@if(($bp->isInstalled() != "NOTINSTALLED") && ($bp->version() != "&bp.version"."&"))
|
@if(($bp->isInstalled() != "NOTINSTALLED") && ($bp->version() != "&bp.version"."&"))
|
||||||
|
|
||||||
<div class="col-xs-6 col-sm-3 text-center">
|
<div class="col-xs-6 col-sm-3 text-center">
|
||||||
<a href="{{ route('admin.extensions.blueprint.index') }}"><button class="btn btn-gray" style="width:100%;margin-bottom:17px;"><img src="/assets/extensions/blueprint/logo.jpg" alt="logo" class="img-btn"> Blueprint <small>{{ $bp->version() }}</small></button></a>
|
<a href="{{ route('admin.extensions.blueprint.index') }}">
|
||||||
|
<button class="btn btn-gray" style="width:100%;margin-bottom:17px;">
|
||||||
|
<img src="/assets/extensions/blueprint/logo.jpg" alt="logo" class="img-btn"> Blueprint <small>{{ $bp->version() }}</small>
|
||||||
|
</button>
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!--␀replace␀-->
|
<!--␀replace␀-->
|
||||||
|
|
||||||
@else
|
@else
|
||||||
|
|
|
@ -45,6 +45,12 @@
|
||||||
@yield('above-container')
|
@yield('above-container')
|
||||||
@yield('container')
|
@yield('container')
|
||||||
@yield('below-container')
|
@yield('below-container')
|
||||||
|
|
||||||
|
<!--
|
||||||
|
Blueprint extensions containing dashboard wrappers
|
||||||
|
will have their wrapper code injected here.
|
||||||
|
-->
|
||||||
|
|
||||||
<!-- wrapper:insert -->
|
<!-- wrapper:insert -->
|
||||||
@show
|
@show
|
||||||
@section('scripts')
|
@section('scripts')
|
||||||
|
|
Loading…
Reference in a new issue