Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Languages/en/Admin/Navbar.language.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
'L_SECTION_FORUM' => 'Forum',
'L_SECTION_OTHER' => 'Other',

'L_INDEX' => 'Title page',
'L_INDEX' => 'Dashboard',

'L_SETTINGS' => 'Settings',
'L_SETTINGS_SITE' => 'Global settings',
Expand Down
11 changes: 11 additions & 0 deletions Styles/Default_Dark/Info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"name": "PHPCore Dark",
"body": {
"Terms": "Body2",
"Login": "Body2",
"Register": "Body2",
"Forgot/Change": "Body2",
"Forgot/Send": "Body2",
"Error": "Body2"
}
}
57 changes: 57 additions & 0 deletions Styles/Default_Dark/Templates/Blocks/Block/Block.phtml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
<?php foreach ($this->data->block['body'] ?? [] as $objectName => $object) : ?>
<?php foreach ((array)$object['body'] as $row) : ?>
<?php if (isset($row['options']['template']['body'])) : ?>
<?php require $row['options']['template']['body']; ?>
<?php else : ?>
<div id="<?= $row['data']['id'] ?>" class="block<?= $row['options']['selected'] ?? false ? ' block-selected' : '' ?><?= $row['options']['disabled'] ?? false ? ' block-disabled' : '' ?><?= $row['options']['closed'] ?? false ? ' block-closed' : '' ?>" ajax-selector="block" data-id="<?= $row['data']['id'] ?>" data-type="<?= $row['options']['type'] ?? '' ?>" >
<div class="block-head">
<?= $this->build->user->image($row['data'], true) ?>
<div class="inner">
<div class="block-title">
<?php require $this->template->template('/Blocks/Labels.phtml'); ?>
<span ajax-selector="name"><?= $row['data']['name'] ?></span>
</div>
<?= $this->build->user->link($row['data'], true) ?>
<span class="block-description">
<span ajax="title" data-title="<?= $L_CREATED ?>">
<i class="fas fa-clock"></i>
<?= $this->build->date->long($row['data']['created']) ?>
</span>
<?php if ($row['data']['is_edited'] == 1) : ?>
<span ajax="title" data-title="<?= $L_LAST_EDITED ?>">
<i class="fas fa-edit"></i>
<?= $this->build->date->long($row['data']['edited_time']) ?>
</span>
<?php endif; ?>
</span>
</div>
</div>
<?php if (!empty($row['data']['image'])) : ?>
<div class="block-image" style="background-image: url(/Uploads/Topics/<?= $row['data']['id'] ?>.<?= $row['data']['image'] ?>);"></div>
<?php endif; ?>

<?php require $this->template->template('/Blocks/Block/Notices/Load.phtml'); ?>

<div class="block-body" ajax-selector="block-body">
<div class="block-content" ajax-selector="block-content"><?= $row['data']['text'] ?></div>
<?php if (!empty($row['data']['user_signature'])) : ?>
<div class="block-signature">
<?= $row['data']['user_signature'] ?>
</div>
<?php endif; ?>
<?php if (!empty($row['data']['likes'])) : ?>
<?php require $this->template->template('/Blocks/Block/Likes.phtml'); ?>
<?php endif; ?>
<div ajax-place="likes"></div>
<?php if (!empty($row['data']['button'])) : ?>
<div class="block-bottom" ajax-selector="block-bottom">
<?php foreach ((array)$row['data']['button'] as $button) : ?>
<?php require $button; ?>
<?php endforeach; ?>
</div>
<?php endif; ?>
</div>
</div>
<?php endif; ?>
<?php endforeach; ?>
<?php endforeach; ?>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a class="a-reverse f-right" ajax="delete"><?= $L_DELETE ?></a>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a class="a-reverse f-right" ajax="editor"><span><?= $L_EDIT ?></span></a>
3 changes: 3 additions & 0 deletions Styles/Default_Dark/Templates/Blocks/Block/Buttons/Like.phtml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<a class="a-reverse" ajax="like">
<i class="fas fa-thumbs-up"></i><span><?= $L_LIKE ?></span>
</a>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a class="a-reverse" ajax="quote" href="#new"><i class="fas fa-quote-right"></i><span><?= $L_QUOTE ?></span></a>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a class="a-reverse" ajax="report"><i class="fas fa-bug"></i> <?= $L_REPORT ?></a>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a class="a-reverse f-right" ajax="edit"><span><?= $L_SAVE ?></span></a>
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<a class="a-reverse" ajax="unlike">
<i class="fas fa-thumbs-down"></i><span><?= $L_UNLIKE ?></span>
</a>
19 changes: 19 additions & 0 deletions Styles/Default_Dark/Templates/Blocks/Block/Likes.phtml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<div class="block-inner m-top fw-600" ajax-selector="likes">
<span>
<span class="like" ><i class="fas fa-thumbs-up"></i></span> x <span class="count" ajax-selector="count"><?= isset($row) ? $row['data']['count_of_likes'] : '' ?></span>
</span>
<span class="commas" ajax-selector="list">
<?php if (isset($row)) : ?>
<?php foreach ($row['data']['likes'] as $username) : ?>
<?php if ($this->user->isLogged() and $username['user_id'] == LOGGED_USER_ID) : ?>
<span><?= $L_YOU ?></span>
<?php else : ?>
<?= $this->build->user->link($username) ?>
<?php endif; ?>
<?php endforeach; ?>
<?php if ($row['data']['is_more_likes'] == 1) : ?>
<a ajax="all-likes">... <?= $L_LIKES_MORE ?> <?= (int)$row['data']['count_of_likes'] - 5 ?></a>
<?php endif; ?>
<?php endif; ?>
</span>
</div>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<div class="block-alert" ajax-selector="block-alert"><?= $L_CONTENT_DELETED ?> <a class="a-reverse d-none" ajax="hide"><?= $L_HIDE ?></a> <a class="a-reverse" ajax="show"><?= $L_SHOW ?></a> <a ajax-selector="details" class="a-reverse" href="<?= $this->system->url->build('/admin/deleted/show/' . $row['data']['deleted_id']) ?>"><?= $L_DETAILS ?></a></div>
7 changes: 7 additions & 0 deletions Styles/Default_Dark/Templates/Blocks/Block/Notices/Load.phtml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?php foreach ($row['data']['notice'] ?? [] as $noticeName => $notice) : ?>
<?php if (is_string($notice)) : ?>
<?php require $notice; ?>
<?php else : ?>
<div ajax-place="notice-<?= $noticeName ?>"></div>
<?php endif; ?>
<?php endforeach; ?>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<div class="block-alert" ajax-selector="block-alert"><?= $L_CONTENT_REPORTED ?> <a ajax-selector="details" class="a-reverse" href="<?= $this->system->url->build('/admin/report/show/' . ($row['data']['report_id'] ?? '')) ?>"><?= $L_DETAILS ?></a></div>
43 changes: 43 additions & 0 deletions Styles/Default_Dark/Templates/Blocks/Block/ProfilePost.phtml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<?php foreach ($this->data->block['body'] as $objectName => $object) : ?>
<?php foreach ((array)$object['body'] as $row) : ?>
<div id="<?= $row['data']['id'] ?>" class="block block-small<?= $row['options']['selected'] ?? false ? ' block-selected' : '' ?><?= $row['options']['closed'] ?? false ? ' block-closed' : '' ?><?= $row['options']['disabled'] ?? false ? ' block-disabled' : '' ?>" ajax-selector="block" data-id="<?= $row['data']['id'] ?>" data-type="<?= $row['options']['type'] ?? '' ?>">
<div class="block-head">
<?= $this->build->user->image($row['data']) ?>
<div class="inner">
<?php if (!empty($row['data']['name'])) : ?>
<div class="block-title"><span ajax-selector="name"><?= $row['data']['name'] ?></span></div>
<?php endif; ?>
<?= $this->build->user->link($row['data'], true) ?>
<span class="block-description">
<span ajax="title" data-title="<?= $L_CREATED?>">
<i class="fas fa-clock"></i>
<?= $this->build->date->long($row['data']['created']) ?>
</span>
</span>
</div>
</div>
<?php require $this->template->template('/Blocks/Block/Notices/Load.phtml'); ?>
<div class="block-body" ajax-selector="block-body">
<div class="block-content" ajax-selector="block-content"><?= $row['data']['text'] ?></div>
<?php if (!empty($row['data']['button'])) : ?>
<div class="block-bottom" ajax-selector="block-bottom">
<?php foreach ((array)$row['data']['button'] as $btn) : ?>
<?php require $btn; ?>
<?php endforeach; ?>
</div>
<?php endif; ?>
<?php if (!empty($row['body'])) : ?>
<div class="body-sub" ajax-selector="block-body-sub">
<?php $cache = $row; foreach ($cache['body'] as $row) : ?>
<?php if (isset($row['options']['template']['body'])) : ?>
<?php require $row['options']['template']['body']; ?>
<?php else : ?>
<?php require $this->template->template('/Blocks/Block/ProfilePostComment.phtml'); ?>
<?php endif; ?>
<?php endforeach; $row = $cache;?>
</div>
<?php endif; ?>
</div>
</div>
<?php endforeach; ?>
<?php endforeach; ?>
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<div id="c<?= $row['data']['profile_post_comment_id'] ?>" class="block block-two-column block-mini<?= $row['options']['selected'] ?? false ? ' block-selected' : '' ?><?= $row['options']['closed'] ?? false ? ' block-closed' : '' ?><?= $row['options']['disabled'] ?? false ? ' block-disabled' : '' ?>" ajax-selector="block" data-id="<?= $row['data']['id'] ?>" data-id="<?= $row['data']['id'] ?>" data-type="<?= $row['options']['type'] ?>">
<?= $this->build->user->image($row['data']) ?>
<div class="block-* wh-full">
<?php require $this->template->template('/Blocks/Block/Notices/Load.phtml'); ?>
<div class="block-body" ajax-selector="block-body">
<div class="block-head">
<?= $this->build->user->link($row['data'], true) ?>
<span class="block-description">
<span ajax="title" data-title="<?= $L_CREATED ?>">
<i class="fas fa-clock"></i>
<?= $this->build->date->long($row['data']['created']) ?>
</span>
</span>
</div>
<div class="block-content" ajax-selector="block-content">
<?= $row['data']['text'] ?>
</div>
<?php if (!empty($row['data']['button'])) : ?>
<div class="block-bottom" ajax-selector="block-bottom">
<?php foreach ($row['data']['button'] as $btn) : ?>
<?php require $btn; ?>
<?php endforeach; ?>
</div>
<?php endif; ?>
</div>
</div>
</div>
1 change: 1 addition & 0 deletions Styles/Default_Dark/Templates/Blocks/Bottom.phtml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<script defer src="<?= $this->template->theme('/Addons.min.js') ?>?12"></script>
9 changes: 9 additions & 0 deletions Styles/Default_Dark/Templates/Blocks/Cookie.phtml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?php if ($this->system->settings->get('cookie.enabled') == 1) : ?>
<div class="cookie" ajax-selector="cookie">
<div class="cookie-body">
<span><?= $this->system->settings->get('cookie.text') ?></span>
<br>
<a ajax-selector="cookie-button"><?= $L_COOKIE_BUTTON ?></a>
</div>
</div>
<?php endif; ?>
31 changes: 31 additions & 0 deletions Styles/Default_Dark/Templates/Blocks/Field/Default.phtml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<form method="post" enctype="multipart/form-data">
<?php foreach ($this->data->field['body'] as $fieldName => $field) : ?>
<div class="field field-name-<?= $fieldName ?>" ajax-selector="field">
<?php foreach ($field['body'] as $rowName => $row) :?>
<div class="field-row<?php if (isset($row['options']['type']) and $row['options']['type'] === 'textarea') : ?> field-row-grid<?php endif; ?>" ajax-selector="field-row">
<?php if (isset($row['data']['title'])) : ?>
<div class="field-text<?= !isset($row['data']['desc']) ? ' vertical-align' : '' ?>">
<?php if (isset($row['options']['template']['text'])) : ?>
<?php require $row['options']['template']['text']; ?>
<?php else : ?>
<span><?= ${$row['data']['title']} ?>:</span><?php if (isset($row['data']['desc'])) : ?><br><?= ${$row['data']['desc']} ?><?php endif; ?>
<?php endif; ?>
</div>
<?php endif; ?>
<div class="field-option">
<?php if (isset($row['options']['template']['option'])) : ?>
<?php require $row['options']['template']['option']; ?>
<?php endif; ?>
</div>
</div>
<?php endforeach; ?>
</div>
<?php endforeach; ?>

<div class="field-submit">
<input type="hidden" value="<?= SESSION_ID ?>" name="key">
<?php foreach ($this->data->field['button'] as $btn) : ?>
<input class="button" type="<?= $btn['data']['type'] ?>" name="<?= $btn['data']['name'] ?>" value="<?= isset($btn['data']['value']) ? ${$btn['data']['value']} : '' ?>">
<?php endforeach; ?>
</div>
</form>
41 changes: 41 additions & 0 deletions Styles/Default_Dark/Templates/Blocks/Field/Form.phtml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?php foreach ($this->data->field['body'] as $objectName => $object) :?>
<div class="page-column page-column-name-<?= $objectName ?>">
<div class="page-column-icon"><i class="<?= $object['data']['icon']?>"></i></div>
<div class="page-column-title"><?= ${$object['data']['title']} ?></div>
<?php if (isset($object['data']['desc'])) : ?>
<div class="page-column-description"><?= ${$object['data']['desc']} ?></div>
<?php endif; ?>

<?php if (!empty($this->data->data['message']['text'])) : ?>
<div class="field-alert field-alert-type-<?= $this->data->data['message']['type'] ?>">
<?= $this->data->data['message']['text'] ?>
</div>
<?php endif; ?>

<form method="post">
<div class="page-column-body">
<?php foreach ($object['body'] as $rowName => $row) :?>
<div class="page-column-input">
<?php if (isset($row['options']['template']['option'])) : ?>
<?php require $row['options']['template']['option']; ?>
<?php endif; ?>
<?php if (isset($row['data']['icon'])) : ?>
<i class="<?= $row['data']['icon'] ?>"></i>
<?php endif; ?>
</div>
<?php endforeach; ?>

<div class="field-submit">
<input type="hidden" value="<?= SESSION_ID ?>" name="key">
<?php foreach ($this->data->field['button'] as $btnName => $btn) : ?>
<input class="button" type="<?= $btn['data']['type'] ?>" name="<?= $btnName ?>" value="<?= isset($btn['data']['value']) ? ${$btn['data']['value']} : '' ?>">
<?php endforeach; ?>
</div>

<?php if (isset($object['options']['template']['link'])) : ?>
<?php require $object['options']['template']['link']; ?>
<?php endif; ?>
</div>
</form>
</div>
<?php endforeach; ?>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="<?= $this->system->url->build('login') ?>"><?= $L_LOGIN_BUTTON_BACK ?></a>
5 changes: 5 additions & 0 deletions Styles/Default_Dark/Templates/Blocks/Field/Links/Login.phtml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<a href="<?= $this->system->url->build('forgot') ?>"><?= $L_FORGOT_PASSWORD ?></a>
<?php if ($this->system->settings->get('registration.enabled') == 1) : ?>
<hr>
<a href="<?= $this->system->url->build('register') ?>"><?= $L_REGISTER_NOT ?></a>
<?php endif; ?>
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<a href="<?= $this->system->url->build('login') ?>"><?= $L_REGISTER_ALREADY ?></a>
<hr>
<a href="<?= $this->system->url->build('terms') ?>"><?= $L_TERMS ?></a>
18 changes: 18 additions & 0 deletions Styles/Default_Dark/Templates/Blocks/Head.phtml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<head>

<?php require ROOT . '/Includes/Template/Head.phtml' ?>

<link rel="preload" as="font" type="font/woff2" href="<?= $this->template->theme('/Fonts/Quicksand-Light.woff2') ?>" crossorigin>
<link rel="preload" as="font" type="font/woff" href="<?= $this->template->theme('/Fonts/Quicksand-Light.woff') ?>" crossorigin>
<link rel="preload" as="font" type="font/woff2" href="<?= $this->template->theme('/Fonts/Quicksand-Regular.woff2') ?>" crossorigin>
<link rel="preload" as="font" type="font/woff" href="<?= $this->template->theme('/Fonts/Quicksand-Regular.woff') ?>" crossorigin>
<link rel="preload" as="font" type="font/woff2" href="<?= $this->template->theme('/Fonts/Quicksand-Medium.woff2') ?>" crossorigin>
<link rel="preload" as="font" type="font/woff" href="<?= $this->template->theme('/Fonts/Quicksand-Medium.woff') ?>" crossorigin>
<link rel="preload" as="font" type="font/woff2" href="<?= $this->template->theme('/Fonts/Quicksand-Bold.woff2') ?>" crossorigin>
<link rel="preload" as="font" type="font/woff" href="<?= $this->template->theme('/Fonts/Quicksand-Bold.woff') ?>" crossorigin>

<link rel="preload" as="style" href="<?= $this->template->theme('/Stylesheet.min.css') ?>?355">

<link async rel="stylesheet" type="text/css" href="<?= $this->template->theme('/Stylesheet.min.css') ?>?362">
<link async rel="stylesheet" type="text/css" href="<?= $this->template->theme('/Quicksand.min.css') ?>?15">
</head>
7 changes: 7 additions & 0 deletions Styles/Default_Dark/Templates/Blocks/Labels.phtml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?php if (isset($row['data']['labels']) and !empty($row['data']['labels'])) : ?>
<label class="label-list">
<?php foreach ((array)$row['data']['labels'] as $label) : ?>
<label class="label label--<?= $label['label_class_name'] ?>"><i class="fas fa-tag"></i><?= $label['label_name'] ?></label>
<?php endforeach; ?>
</label>
<?php endif; ?>
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?= $this->build->user->image($row['data']) ?>
<div class="inner">
<a class="fw-700" href="<?= $this->system->url->build('/user/conversation/show/' . $row['data']['conversation_id'] . '.' . $row['data']['conversation_url']) ?>"><?= $row['data']['conversation_name'] ?></a>
<br>
<?= $this->build->user->link($row['data']) ?> · <?= $this->build->date->long($row['data']['conversation_created']) ?>
</div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php if (!empty($row['data']['conversation_message_id'])) : ?>
<?= $this->build->user->image($row['data'], false, 'message_') ?>
<div class="inner">
<?= $this->build->user->link($row['data'], false, 'message_') ?>
<br>
<?= $this->build->date->long($row['data']['conversation_message_created'], true) ?>
</div>
<?php else : ?>
<span class="fw-600"><?= $L_USER_CONVERSATION_MESSAGE_NO ?></span>
<?php endif; ?>
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<div class="inner">
<strong><?= $L_MESSAGES ?> :</strong> <span><?= $row['data']['conversation_messages'] ?></span>
<br>
<strong><?= $L_USER_CONVERSATION_RECIPIENT_COUNT ?>:</strong> <span><?= $row['data']['recipients'] ?></span>
</div>
Loading