feat: initial import of the23 theme for lamp-link
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
<section class="bg-primary pb-5 border-top border-bottom" id="help">
|
||||
<div class="container">
|
||||
<?php view('help.top') ?>
|
||||
<nav aria-label="breadcrumb">
|
||||
<ol class="breadcrumb px-0 breadcrumb-links">
|
||||
<li class="breadcrumb-item"><a href="<?php echo route('home') ?>"><?php ee('Home') ?></a></li>
|
||||
<li class="breadcrumb-item"><a href="<?php echo route('help') ?>"><?php ee('Help Center') ?></a></li>
|
||||
</ol>
|
||||
</nav>
|
||||
<div class="mb-4 d-flex align-items-center">
|
||||
<?php if(isset($category->icon) && $category->icon): ?>
|
||||
<div class="me-4 text-center">
|
||||
<?php if(isset($category->iconstyle) && $category->iconstyle == 'emoji'): ?>
|
||||
<span class="display-4"><?php echo $category->icon ?></span>
|
||||
<?php else: ?>
|
||||
<i class="display-4 gradient-primary clip-text <?php echo $category->icon ?>"></i>
|
||||
<?php endif ?>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
<div>
|
||||
<h2 class="fw-bold"><?php echo $category->title ?></h2>
|
||||
<div class="mt-2">
|
||||
<p class="lead lh-180"><?php echo $category->description ?></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<?php foreach($articles as $article): ?>
|
||||
<div class="col-sm-6 col-md-4 mb-4">
|
||||
<div class="card card-body flex-fill h-100 p-4 border-0 shadow-sm">
|
||||
<div class="d-flex align-items-center">
|
||||
<div>
|
||||
<a href="<?php echo route('help.single', $article->slug) ?>" class="h6 stretched-link mb-0"><?php echo $article->question ?></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="my-2">
|
||||
<?php echo \Core\Helper::truncate(strip_tags($article->answer), 100) ?>
|
||||
</div>
|
||||
<small class="text-muted"><?php ee('Updated {t}', null, ['t' => \Core\Helper::timeago($article->created_at)]) ?></small>
|
||||
</div>
|
||||
</div>
|
||||
<?php endforeach ?>
|
||||
</div>
|
||||
<?php echo pagination('pagination bg-white rounded p-2 shadow-sm', 'page-item', 'page-link') ?>
|
||||
</div>
|
||||
</section>
|
||||
@@ -0,0 +1,55 @@
|
||||
<section class="bg-primary pb-5 border-top border-bottom" id="help">
|
||||
<div class="container">
|
||||
<?php view('help.top') ?>
|
||||
<div class="mt-3 text-start">
|
||||
<h2 class="fw-bold"><?php ee('Browse Topics') ?></h2>
|
||||
</div>
|
||||
<div class="row row-grid py-5">
|
||||
<?php foreach($categories as $slug => $category): ?>
|
||||
<div class="col-sm-6 col-md-4 mb-4">
|
||||
<div class="card card-body flex-fill h-100 p-4 border-0 shadow-sm">
|
||||
<a href="<?php echo route('help.category', [$slug]) ?>">
|
||||
<div class="text-center">
|
||||
<?php if(isset($category->icon) && $category->icon): ?>
|
||||
<?php if(isset($category->iconstyle) && $category->iconstyle == 'emoji'): ?>
|
||||
<span class="display-4"><?php echo $category->icon ?></span>
|
||||
<?php else: ?>
|
||||
<i class="display-4 gradient-primary clip-text <?php echo $category->icon ?>"></i>
|
||||
<?php endif ?>
|
||||
<?php endif ?>
|
||||
<div class="mt-2">
|
||||
<h4>
|
||||
<span><?php echo $category->title ?></span>
|
||||
</h4>
|
||||
<p class="text-dark"><?php echo $category->description ?></p>
|
||||
<small class="text-muted"><?php echo $category->count ?> <?php ee('articles') ?></small>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<?php endforeach ?>
|
||||
</div>
|
||||
|
||||
<div class="my-5 text-start">
|
||||
<h2 class="fw-bold"><?php ee('Common Questions') ?></h2>
|
||||
</div>
|
||||
<div class="row">
|
||||
<?php foreach($articles as $article): ?>
|
||||
<div class="col-sm-6 col-md-4 mb-4">
|
||||
<div class="card card-body flex-fill h-100 p-4 border-0 shadow-sm">
|
||||
<div class="d-flex align-items-center">
|
||||
<div>
|
||||
<a href="<?php echo route('help.single', $article->slug) ?>" class="h6 stretched-link mb-0"><?php echo $article->question ?></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="my-2">
|
||||
<?php echo \Core\Helper::truncate(strip_tags($article->answer), 100) ?>
|
||||
</div>
|
||||
<small class="text-muted"><?php ee('Updated {t}', null, ['t' => \Core\Helper::timeago($article->created_at)]) ?></small>
|
||||
</div>
|
||||
</div>
|
||||
<?php endforeach ?>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@@ -0,0 +1,36 @@
|
||||
<section class="bg-primary pb-5 border-top border-bottom" id="help">
|
||||
<div class="container">
|
||||
<?php view('help.top', ['q' => $q]) ?>
|
||||
<nav aria-label="breadcrumb">
|
||||
<ol class="breadcrumb px-0 breadcrumb-links">
|
||||
<li class="breadcrumb-item"><a href="<?php echo route('home') ?>"><?php ee('Home') ?></a></li>
|
||||
<li class="breadcrumb-item"><a href="<?php echo route('help') ?>"><?php ee('Help Center') ?></a></li>
|
||||
</ol>
|
||||
</nav>
|
||||
<div class="mb-5 justify-content-center">
|
||||
<h2 class="mt-4"><?php echo ee('Search Results for "{q}"', null, ['q' => "<strong>{$q}</strong>"]) ?></h2>
|
||||
</div>
|
||||
<?php if($articles): ?>
|
||||
<div class="row">
|
||||
<?php foreach($articles as $article): ?>
|
||||
<div class="col-md-6 mb-4">
|
||||
<div class="card card-body flex-fill h-100 p-4 border-0 shadow-sm">
|
||||
<div class="d-flex align-items-center">
|
||||
<div>
|
||||
<a href="<?php echo route('help.single', $article->slug) ?>" class="h6 stretched-link mb-0"><?php echo $article->question ?></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="my-2">
|
||||
<?php echo \Core\Helper::truncate(strip_tags($article->answer), 100) ?>
|
||||
</div>
|
||||
<small class="text-muted"><?php ee('Updated {t}', null, ['t' => \Core\Helper::timeago($article->created_at)]) ?></small>
|
||||
</div>
|
||||
</div>
|
||||
<?php endforeach ?>
|
||||
</div>
|
||||
<?php echo pagination('pagination bg-white rounded p-2 shadow-sm', 'page-item', 'page-link') ?>
|
||||
<?php else: ?>
|
||||
<?php ee('No results') ?>
|
||||
<?php endif ?>
|
||||
</div>
|
||||
</section>
|
||||
@@ -0,0 +1,39 @@
|
||||
<section class="bg-primary pb-5 border-top border-bottom" id="help">
|
||||
<div class="container">
|
||||
<?php view('help.top') ?>
|
||||
<div class="row">
|
||||
<div class="col-md-8 mb-5">
|
||||
<nav aria-label="breadcrumb" class="mb-3">
|
||||
<ol class="breadcrumb px-0 breadcrumb-links mb-0">
|
||||
<li class="breadcrumb-item"><a href="<?php echo route('home') ?>"><?php ee('Home') ?></a></li>
|
||||
<li class="breadcrumb-item"><a href="<?php echo route('help') ?>"><?php ee('Help Center') ?></a></li>
|
||||
<li class="breadcrumb-item"><a href="<?php echo route('help.category', $article->category) ?>"><?php echo $category->title ?></a></li>
|
||||
</ol>
|
||||
</nav>
|
||||
<div class="card border-0 shadow-sm">
|
||||
<div class="card-body py-4 px-md-4">
|
||||
<h2 class="mt-4"><?php echo $article->question ?></h2>
|
||||
<small class="text-muted"><i class="fa fa-clock me-1"></i> <?php _ee('Last updated on {d}', ['d' => \Core\Helper::dtime($article->created_at, 'F d, Y')]) ?></small>
|
||||
<article class="mt-5">
|
||||
<?php echo $article->answer ?>
|
||||
</article>
|
||||
</div>
|
||||
<?php if(config('contact')): ?>
|
||||
<div class="text-center mt-5 mb-3">
|
||||
<h6><?php ee('Did not answer your question?') ?> </h6>
|
||||
<a href="<?php echo route('contact') ?>" class="btn btn-sm btn-primary"><?php ee('Contact us') ?></a>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<h6 class="mb-3 fw-bold"><?php ee('Related Questions') ?></h6>
|
||||
<?php foreach($related as $article): ?>
|
||||
<a href="<?php echo route('help.single', [$article->slug]) ?>" class="mb-2 d-block"><?php echo $article->question ?></a>
|
||||
<?php endforeach ?>
|
||||
|
||||
<?php \Helpers\App::ads('helpsidebar') ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@@ -0,0 +1,18 @@
|
||||
<div class="py-10">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-lg-9">
|
||||
<h2 class="text-center fw-bolder"><?php ee('How can we help you?') ?></h2>
|
||||
<form action="<?php echo route('help.search') ?>" class="card rounded-pill mb-0 px-2 py-2 mt-5 shadow-sm border-0">
|
||||
<div class="input-group p-2 d-flex align-items-center">
|
||||
<span class="mx-2">
|
||||
<i class="fa fa-search"></i>
|
||||
</span>
|
||||
<input type="text" class="form-control border-0" name="q" value="<?php echo $q ?? '' ?>" aria-label="Find something" placeholder="<?php ee('Search') ?>...">
|
||||
<span>
|
||||
<button type="submit" class="btn btn-primary rounded-pill px-4"><?php ee('Search') ?></button>
|
||||
</span>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user