-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
523e102
commit 98b24ea
Showing
16 changed files
with
206 additions
and
182 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<?php | ||
namespace Themes\Argon; | ||
|
||
use App\Admin\Settings\SettingsInterface; | ||
use ClientX\Renderer\RendererInterface; | ||
use ClientX\Renderer\TwigRenderer; | ||
use ClientX\Validator; | ||
|
||
class ArgonSettings implements SettingsInterface { | ||
|
||
public function name(): string | ||
{ | ||
return "argon"; | ||
} | ||
|
||
public function title(): string | ||
{ | ||
return "Argon Theme"; | ||
} | ||
|
||
public function icon(): string | ||
{ | ||
return "fas fa-fill"; | ||
} | ||
|
||
public function render(RendererInterface $renderer) | ||
{ | ||
|
||
return $renderer->render("setting/argon", ['themes' => [ | ||
'none' => 'User choose between Dark and light', | ||
'dark' => "Dark only", | ||
'light' => "Light only" | ||
], 'default' => [ | ||
'dark' => "Dark", | ||
'light' => "Light" | ||
]]); | ||
|
||
return ''; | ||
} | ||
|
||
public function validate(array $params): Validator | ||
{ | ||
return (new Validator($params))->notEmpty('argon_theme'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
{% if is_dark() %} | ||
{% if is_dark() or (config('argon_default') == 'dark' and request().CookieParams.theme == 'dark') %} | ||
{% set dark = true %} | ||
{% endif %} | ||
{% set marginBtn = true %} | ||
{% include("@account-copy/home.twig") %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
{% extends "layout.twig" %} | ||
|
||
{% block title trans("announcements") %} | ||
|
||
{% block body %} | ||
|
||
<section class="forms"> | ||
<div class="container-fluid"> | ||
<div class="row"> | ||
<div class="col-md-3 col-sm-12"> | ||
<div class="card"> | ||
<div class="card-body"> | ||
<h4>{{ trans("announcementsadmin.bymonth") }}</h4> | ||
<ul class="list-group"> | ||
<a class="list-group-item " | ||
href="{{ path('announcements.index') }}">{{ trans("announcementsadmin.all") }}</a> | ||
{% for month in months %} | ||
{% set currentDate = [month.format('Y'),month.format('m')] | join('-') %} | ||
<a class="list-group-item {{ currentDate == current ? 'active' }}" | ||
href="{{ path('announcements.view', {year: month.format('Y'), month: month.format('m')}) }}">{{ month.format('M Y') }}</a> | ||
{% endfor %} | ||
</ul> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="col-md-9 col-sm-12"> | ||
{% for row in announcements|batch(3) %} | ||
<div class="card-group" style="margin-top: 30px;"> | ||
|
||
{% for announcement in row %} | ||
<div class="card"> | ||
<div class="card-header p-0 mx-3 mt-3 position-relative z-index-1"> | ||
<a href="{{ path('announcements.show', {id: announcement.id}) }}" class="d-block"> | ||
<img src="{{ announcement.thumbnailUrl }}" class="img-fluid border-radius-lg"> | ||
</a> | ||
</div> | ||
|
||
<div class="card-body pt-2"> | ||
{% if announcement.pinned %} | ||
<span class="text-gradient text-primary text-uppercase text-xs font-weight-bold my-2">{{ trans("pinned") }}</span> | ||
{% endif %} | ||
<a href="{{ path('announcements.show', {id: announcement.id}) }}" class="card-title h5 d-block text-darker"> | ||
{{ announcement.title }} | ||
</a> | ||
<p class="card-description mb-4"> | ||
{{ announcement.excerpt | raw }} | ||
</p> | ||
<a class="card-footer" href="{{ path('announcements.show', {id: announcement.id}) }}"> | ||
{{ trans("see_more") }} | ||
</a> | ||
<div class="author align-items-center"> | ||
<div class="name ps-3"> | ||
<div class="stats"> | ||
<small>{{ announcement.createdAt.format('h M y') }}</small> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
{% endfor %} | ||
</div> | ||
{% endfor %} | ||
</div> | ||
</div> | ||
</section> | ||
{% endblock %} | ||
|
||
{% block scripts %} | ||
{{ ago_scripts() }} | ||
|
||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,121 +1 @@ | ||
{% if inAdmin %} | ||
{% set bootstrap = 'v4' %} | ||
{% endif %} | ||
<style> | ||
.imagecheck { | ||
margin: 0; | ||
position: relative; | ||
cursor: pointer; | ||
} | ||
.imagecheck-input { | ||
position: absolute; | ||
z-index: -1; | ||
opacity: 0; | ||
} | ||
.card.card-large-icons .card-icon .fab { | ||
font-size: 60px; | ||
} | ||
.card-icon { | ||
display: flex; | ||
justify-content: center; | ||
padding: 10px; | ||
} | ||
.imagecheck-input:checked ~ .imagecheck-figure:before { | ||
opacity: 1; | ||
} | ||
.imagecheck-figure:before { | ||
content: ''; | ||
position: absolute; | ||
top: .25rem; | ||
left: .25rem; | ||
display: block; | ||
width: 1rem; | ||
height: 1rem; | ||
pointer-events: none; | ||
-webkit-user-select: none; | ||
-moz-user-select: none; | ||
-ms-user-select: none; | ||
user-select: none; | ||
background: var({{ bootstrap == 'v4' ? '--primary' : '--bs-primary'}}) url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/%3E%3C/svg%3E") no-repeat center center/50% 50%; | ||
color: #fff; | ||
z-index: 1; | ||
border-radius: 3px; | ||
opacity: 0; | ||
transition: .3s opacity; | ||
} | ||
</style> | ||
<div class="col-md-12 col-xl-{{ inAdmin == false ? 12 : 6 }} col-sm-12"> | ||
<div class="card"> | ||
<div class="card-body"> | ||
<div class="row"> | ||
<div class="col-12"> | ||
{% if bootstrap == 'v4' %} | ||
<div class="form-group custom-control custom-switch"> | ||
<input type="checkbox" class="custom-control-input" id="choosehostname" name="choosehostname" data-toggle="collapse" {{ item.choosehostname ? 'checked' }} data-target="#virtualizorGroup"> | ||
<label class="custom-control-label" for="choosehostname"> | ||
{{ trans("proxmox.choosehostname") }} | ||
</label> | ||
</div> | ||
|
||
<div id="virtualizorGroup" class="{{ item.choosehostname ? 'show' : 'collapse' }} mt-3"> | ||
{{ field('hostname', item.hostname, trans("proxmox.hostname")) }} | ||
</div> | ||
{% else %} | ||
|
||
<div class="form-check"> | ||
<input type="checkbox" class="form-check-input" id="choosehostname" name="choosehostname" data-bs-toggle="collapse" data-bs-target="#collapseOne" aria-expanded="true" aria-controls="collapseOne" {{ item.choosehostname ? 'checked' }}> | ||
<label class="form-check-label" for="choosehostname"> | ||
{{ trans("proxmox.choosehostname") }} | ||
</label> | ||
</div> | ||
<div id="collapseOne" class="accordion-collapse border-0 {{item.choosehostname ? 'collapse show' : 'collapse'}}" aria-labelledby="headingOne" data-bs-parent="#choosehostname"> | ||
{{ field('hostname', item.hostname, trans("proxmox.hostname")) }} | ||
</div> | ||
{% endif %} | ||
{% if config('proxmox_auth_type') == 'password' %} | ||
{{ field('rootpass', item.rootpass, trans("password"), {type: 'password'} ) }} | ||
{{ field('confirmation',item.confirmation, trans("confirmation"), {type: 'password'} ) }} | ||
|
||
{% else %} | ||
{{ field('sshpublic', item.sshpublic, "Public SSH", {type: 'textarea'} ) }} | ||
{% endif %} | ||
|
||
<div class="row mt-4"> | ||
|
||
{% for key, value in oses %} | ||
|
||
<div class="col-xl-4 col-sm-12 col-md-6 col-12"> | ||
<label class="imagecheck mb-2 mt-2"> | ||
<input name="osid" type="radio" value="{{ key }}" {{ loop.first ? 'checked' : '' }} class="imagecheck-input" /> | ||
<div class="card card-large-icons imagecheck-figure"> | ||
<div class="card-icon bg-primary text-white"> | ||
{% if value is proxmox_debian %} | ||
<img | ||
src="{{ theme_global('debian.svg') }}" width="60" height="60"> | ||
{% else %} | ||
<i class="{{ value | proxmox_os_icon }}"></i> | ||
{% endif %} | ||
</div> | ||
<div class="card-body"> | ||
<p> | ||
{{ value }} | ||
</p> | ||
</div> | ||
</div> | ||
</label> | ||
</div> | ||
{% endfor %} | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
{{ include('@proxmox-copy/data', {bootstrap: 'v5'}) }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
{% set boostrap = 'v5' %} | ||
{% include('@shop/domaindata') %} | ||
{{ include('@shop-copy/domaindata', {bootstrap: 'v5'}) }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1 @@ | ||
{% set bootstrap = 'v5' %} | ||
|
||
{% include "@virtualizor-copy/data.twig" %} | ||
{{ include('@virtualizor-copy/data', {bootstrap: 'v5'}) }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1 @@ | ||
{% set bootstrap = 'v5' %} | ||
|
||
{% include "@virtualizorcloud-copy/data.twig" %} | ||
{{ include('@virtualizorcloud-copy/data', {bootstrap: 'v5'}) }} |
Oops, something went wrong.