Logo
parent
457701a907
commit
3befe56011
|
@ -145,3 +145,14 @@ div.mce-floatpanel{
|
|||
}
|
||||
|
||||
|
||||
.asgarosforum-widget {
|
||||
|
||||
.widget-content{
|
||||
@apply flex flex-col justify-start items-start;
|
||||
|
||||
.post-author{
|
||||
@apply text-white;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
|
@ -20,3 +20,13 @@
|
|||
.entry-content {
|
||||
@apply px-8 bg-glass;
|
||||
}
|
||||
|
||||
.editor-styles-wrapper{
|
||||
z-index:1;
|
||||
}
|
||||
|
||||
.wp-block-widget-area__panel-body-content {
|
||||
.editor-styles-wrapper{
|
||||
z-index:0;
|
||||
}
|
||||
}
|
|
@ -116,6 +116,7 @@ body:before {
|
|||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--wowp-gap);
|
||||
|
||||
@media screen(xl) {
|
||||
display: grid;
|
||||
grid-column-gap: var(--wowp-gap);
|
||||
|
@ -127,6 +128,7 @@ gap: var(--wowp-gap);
|
|||
|
||||
article {
|
||||
margin-inline: var(--wowp-gap);
|
||||
|
||||
@media screen(xl) {
|
||||
margin-inline: unset;
|
||||
}
|
||||
|
@ -141,13 +143,19 @@ article{
|
|||
|
||||
}
|
||||
|
||||
.post-title { grid-area: 1 / 1 / 2 / 4;
|
||||
.post-title {
|
||||
grid-area: 1 / 1 / 2 / 4;
|
||||
@apply text-center text-2xl py-2;
|
||||
}
|
||||
.post-content { grid-area: 3 / 1 / 4 / 4;
|
||||
|
||||
padding-inline: var(--wowp-gap);}
|
||||
.post-category { grid-area: 2 / 1 / 3 / 4;
|
||||
.post-content {
|
||||
grid-area: 3 / 1 / 4 / 4;
|
||||
|
||||
padding-inline: var(--wowp-gap);
|
||||
}
|
||||
|
||||
.post-category {
|
||||
grid-area: 2 / 1 / 3 / 4;
|
||||
|
||||
span {
|
||||
@apply p-0;
|
||||
|
@ -155,15 +163,18 @@ article{
|
|||
&:before {
|
||||
height: 1.5em;
|
||||
}
|
||||
|
||||
&:after {
|
||||
height: 1.5em;
|
||||
}
|
||||
|
||||
@media screen(xl) {
|
||||
padding: .75em 1.25em .75em .75em;
|
||||
|
||||
&:before {
|
||||
height: 3em;
|
||||
}
|
||||
|
||||
&:after {
|
||||
height: 3em;
|
||||
}
|
||||
|
@ -172,22 +183,29 @@ article{
|
|||
}
|
||||
|
||||
}
|
||||
.post-author { grid-area: 4 / 3 / 5 / 4;
|
||||
|
||||
.post-author {
|
||||
grid-area: 4 / 3 / 5 / 4;
|
||||
@apply text-end;
|
||||
color: var(--author-class);
|
||||
padding-right: var(--wowp-gap);
|
||||
padding-bottom: var(--wowp-gap);
|
||||
|
||||
}
|
||||
.post-day { grid-area: 4 / 1 / 5 / 2;
|
||||
|
||||
.post-day {
|
||||
grid-area: 4 / 1 / 5 / 2;
|
||||
|
||||
padding-left: var(--wowp-gap);
|
||||
padding-bottom: var(--wowp-gap);
|
||||
}
|
||||
.post-month { grid-area: 4 / 2 / 5 / 3;
|
||||
|
||||
.post-month {
|
||||
grid-area: 4 / 2 / 5 / 3;
|
||||
padding-bottom: var(--wowp-gap);
|
||||
|
||||
}
|
||||
|
||||
.post-avatar {
|
||||
display: none;
|
||||
}
|
||||
|
@ -201,28 +219,37 @@ article{
|
|||
grid-row-gap: 0px;
|
||||
}
|
||||
|
||||
.post-title { grid-area: 1 / 2 / 2 / 5;
|
||||
.post-title {
|
||||
grid-area: 1 / 2 / 2 / 5;
|
||||
@apply text-4xl text-left;
|
||||
}
|
||||
.post-content { grid-area: 2 / 2 / 8 / 5;
|
||||
|
||||
.post-content {
|
||||
grid-area: 2 / 2 / 8 / 5;
|
||||
@apply prose prose-wowpress;
|
||||
padding: unset;
|
||||
padding-right: var(--wowp-gap);
|
||||
}
|
||||
.post-day { grid-area: 1 / 1 / 2 / 2;
|
||||
|
||||
.post-day {
|
||||
grid-area: 1 / 1 / 2 / 2;
|
||||
@apply bg-shaman flex flex-row items-center justify-center text-4xl;
|
||||
padding: unset;
|
||||
|
||||
}
|
||||
|
||||
.post-month {
|
||||
@apply bg-slate-400 flex flex-row items-center justify-center text-xl;
|
||||
padding: unset;
|
||||
grid-area: 2 / 1 / 3 / 2;
|
||||
}
|
||||
.post-category { grid-area: 3 / 1 / 4 / 2;
|
||||
|
||||
.post-category {
|
||||
grid-area: 3 / 1 / 4 / 2;
|
||||
@apply bg-glass;
|
||||
margin-top: var(--wowp-gap);
|
||||
}
|
||||
|
||||
.post-avatar {
|
||||
@apply flex flex-col justify-end items-center bg-glass;
|
||||
grid-area: 4 / 1 / 7 / 2;
|
||||
|
@ -234,7 +261,9 @@ article{
|
|||
}
|
||||
|
||||
}
|
||||
.post-author { grid-area: 7 / 1 / 8 / 2;
|
||||
|
||||
.post-author {
|
||||
grid-area: 7 / 1 / 8 / 2;
|
||||
@apply flex flex-row items-center justify-center;
|
||||
|
||||
padding: unset;
|
||||
|
@ -244,5 +273,33 @@ article{
|
|||
}
|
||||
}
|
||||
|
||||
.page-numbers {
|
||||
@apply btn btn-alliance;
|
||||
|
||||
&.current {
|
||||
@apply btn-outline;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.is-type-video {
|
||||
@apply w-full;
|
||||
|
||||
@media screen(lg) {
|
||||
@apply w-1/2;
|
||||
}
|
||||
}
|
||||
|
||||
.logo {
|
||||
mask-image: url(icons/logo_nk.png);
|
||||
mask-repeat: no-repeat;
|
||||
mask-position: center;
|
||||
mask-mode: auto;
|
||||
background-color: var(--color-alliance);
|
||||
mask-size: contain;
|
||||
-webkit-mask-image: url(icons/logo_nk.png);
|
||||
-webkit-mask-repeat: no-repeat;
|
||||
-webkit-mask-position: center;
|
||||
-webkit-mask-mode: auto;
|
||||
-webkit-mask-size: contain;
|
||||
}
|
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 26 KiB |
Binary file not shown.
After Width: | Height: | Size: 81 KiB |
|
@ -263,6 +263,7 @@ if ( ! function_exists( 'wowpress_the_posts_navigation' ) ) :
|
|||
'mid_size' => 2,
|
||||
'prev_text' => __( 'Newer posts', 'wowpress' ),
|
||||
'next_text' => __( 'Older posts', 'wowpress' ),
|
||||
#'base' => "%_%",
|
||||
)
|
||||
);
|
||||
}
|
||||
|
|
|
@ -36,7 +36,15 @@ get_header();
|
|||
}
|
||||
|
||||
// Previous/next page navigation.
|
||||
wowpress_the_posts_navigation();
|
||||
?>
|
||||
<template x-data x-teleport="#sidebar_bottom">
|
||||
<div class="bg-glass shadow p-auto flex flex-row justify-center gap-2">
|
||||
<?php foreach(paginate_links(['type' => 'array']) as $link):?>
|
||||
<?=$link?>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
</template>
|
||||
<?php
|
||||
|
||||
} else {
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -5,16 +5,19 @@
|
|||
<div class="bg-glass shadow p-auto order-last flex flex-col gap-2">
|
||||
<h3 class="text-xl font-bold text-center"><?= $this->title ?></h3>
|
||||
<h4 class="text-lg font-bold text-center"><?= $instance['raid_name'] ?></h4>
|
||||
<?php
|
||||
foreach ($instance['bosses'] as $boss) {
|
||||
if (!empty($boss['name'])) :
|
||||
?>
|
||||
<div class="flex flex-row gap-2 justify-around">
|
||||
<div><?= $boss['name'] ?></div>
|
||||
<div><?= $boss['date']?format_date($boss['date']):"Nicht besiegt" ?></div>
|
||||
<div class="relative pt-1">
|
||||
<div class="overflow-hidden h-2 mb-4 text-xs flex bg-slate-200">
|
||||
<div style="width:<?=$this->getCompletePercent($instance)?>%" class="shadow-none flex flex-col text-center whitespace-nowrap text-white justify-center bg-alliance"></div>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
foreach ($this->getBossList($instance) as $boss) {
|
||||
?>
|
||||
<div class="flex flex-row gap-2">
|
||||
<div><?= $boss['name'] ?></div>
|
||||
<div class="w-full text-end"><?= $boss['date'] ? format_date($boss['date']) : "Nicht besiegt" ?></div>
|
||||
</div>
|
||||
<?php
|
||||
endif;
|
||||
}
|
||||
?>
|
||||
</div>
|
|
@ -2,6 +2,18 @@
|
|||
|
||||
use WoWPress\Models\Character;
|
||||
|
||||
function hasSearch($specs)
|
||||
{
|
||||
foreach ($specs as $spec) {
|
||||
foreach ($spec as $search) {
|
||||
if ($search) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
?>
|
||||
<div class="bg-glass shadow p-auto order-last flex flex-col gap-1">
|
||||
<h1 class="text-xl font-bold text-center">Klassensuche</h1>
|
||||
|
|
|
@ -9,7 +9,7 @@ use WoWPress\Models\User;
|
|||
$user = User::find(get_current_user_id());
|
||||
$raids = Raid::where('start', '>', date('Y-m-d H:i', strtotime('NOW')))->get()->take(intval($instance['count']) ?: 1);
|
||||
$character = $user->raiders->first();
|
||||
|
||||
if(!empty($character)){
|
||||
?>
|
||||
|
||||
<div class="bg-glass shadow p-auto flex flex-col gap-auto order-last">
|
||||
|
@ -32,3 +32,4 @@ $character = $user->raiders->first();
|
|||
</div>
|
||||
<?php endforeach; endif;?>
|
||||
</div>
|
||||
<?php }
|
|
@ -9,8 +9,8 @@ class CreateCharacterTable extends CreateTable
|
|||
public static $fields = [
|
||||
'name' => 'text NOT NULL',
|
||||
'realm' => 'text NOT NULL',
|
||||
'class' => "text DEFAULT Adventurer",
|
||||
'spec' => "text DEFAULT Brave",
|
||||
'class' => "text",
|
||||
'spec' => "text",
|
||||
'id_blizz' => 'mediumint',
|
||||
'id_wowaudit' => 'mediumint',
|
||||
'raidchar' => 'boolean DEFAULT 0',
|
||||
|
|
|
@ -12,6 +12,29 @@ class BossKills extends Widget
|
|||
protected $restricted = false;
|
||||
|
||||
|
||||
public function getBossList($instance){
|
||||
$out = [];
|
||||
foreach($instance['bosses'] as $boss){
|
||||
if(!empty($boss['name'])){
|
||||
$out[] = $boss;
|
||||
}
|
||||
}
|
||||
|
||||
return $out;
|
||||
}
|
||||
|
||||
public function getCompletePercent($instance){
|
||||
$bosses = $this->getBossList($instance);
|
||||
$done = 0;
|
||||
foreach($bosses as $boss){
|
||||
if(!empty($boss['date'])){
|
||||
$done++;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return (($done/100)*count($bosses))*1000;
|
||||
}
|
||||
|
||||
public function form($instance)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue