|
| 1 | +<?php |
| 2 | + use Pterodactyl\BlueprintFramework\Libraries\ExtensionLibrary\Admin\BlueprintAdminLibrary as BlueprintExtensionLibrary; |
| 3 | +
|
| 4 | + $settings = app()->make('Pterodactyl\Contracts\Repository\SettingsRepositoryInterface'); |
| 5 | + $blueprint = app()->make(BlueprintExtensionLibrary::class, ['settings' => $settings]); |
| 6 | +?> |
| 7 | + |
| 8 | +@section("blueprint.introduction") |
| 9 | + @if(!$blueprint->dbGet("blueprint", "flags:introduction_dismissed")) |
| 10 | + <div class="modal fade" id="blueprintIntroductionModal" tabindex="-1" role="dialog"> |
| 11 | + <div class="modal-dialog" role="document"> |
| 12 | + <div class="modal-content" style="background: transparent;"> |
| 13 | + <form action="/admin/extensions/blueprint" method="POST"> |
| 14 | + <div style="overflow: hidden; border-radius: 15px 15px 0 0;"> |
| 15 | + <img src="/assets/extensions/blueprint/welcomebanner.jpeg" style="width: 100%"/> |
| 16 | + </div> |
| 17 | + <div class="modal-body"> |
| 18 | + <h3 class="modal-title">Welcome to Blueprint</h3> |
| 19 | + <p style="padding-top: 5px;"> |
| 20 | + Blueprint is the industry-leading tool to build, manage and maintain extensions for the Pterodactyl panel. You are almost ready to manage extensions, this is the last step. |
| 21 | + </p> |
| 22 | + <div class="row" style="padding-top: 5px;"> |
| 23 | + <div class="col-xs-12"> |
| 24 | + <div style="background-color: #4C5A67; padding: 10px; border-radius: 8px;"> |
| 25 | + <p style="margin: 0 !important; padding-bottom: 3px;"><strong>Join the Blueprint community</strong></p> |
| 26 | + <p style="margin: 0 !important;"> |
| 27 | + Become part of the <a href="https://discord.com/servers/blueprint-1063548024825057451" target="_blank">Blueprint Discord community</a> and get notified when new extensions are released, participate with community events and more. |
| 28 | + </p> |
| 29 | + </div> |
| 30 | + </div> |
| 31 | + </div> |
| 32 | + </div> |
| 33 | + <div class="modal-footer" style="border-radius: 0 0 15px 15px;"> |
| 34 | + <p class="small text-left">By using Blueprint you accept our <a href="https://blueprint.zip/legal/privacy" target="_blank">privacy policy</a>. You can disable anonymized telemetry data in the Blueprint settings menuh.</p> |
| 35 | + <input type="hidden" name="flags:introduction_dismissed" value="1"> |
| 36 | + <input type="hidden" name="_method" value="PATCH"> |
| 37 | + {!! csrf_field() !!} |
| 38 | + <button type="submit" class="btn btn-primary btn-sm" style="border-radius: 8px;">Take me to my extensions!</button> |
| 39 | + </div> |
| 40 | + </form> |
| 41 | + </div> |
| 42 | + </div> |
| 43 | + </div> |
| 44 | + |
| 45 | + <script> |
| 46 | + document.addEventListener('DOMContentLoaded', () => { |
| 47 | + $('#blueprintIntroductionModal').modal({ |
| 48 | + keyboard: false, |
| 49 | + backdrop: 'static', |
| 50 | + show: true |
| 51 | + }) |
| 52 | + }) |
| 53 | + </script> |
| 54 | + @endif |
| 55 | +@endsection |
0 commit comments