Small changes
|
@ -53,4 +53,11 @@
|
|||
$lang['feed_search_posts'] = 'Posts';
|
||||
$lang['feed_search_media'] = 'Medien';
|
||||
|
||||
$lang['post_reply_to'] = 'als Antwort an';
|
||||
$lang['post_reply'] = 'Antworten';
|
||||
$lang['post_no_replies'] = 'Es gibt zu diesem Post keine Antworten. Wie wär\'s, wenn du der Erste bist, eine zu verfassen?';
|
||||
$lang['post_like'] = 'Gefällt mir';
|
||||
$lang['post_like_account_missing'] = 'Du musst eingeloggt sein, um Posts zu bewerten. <a href="' . base_url('login') . '" class="alert-link">Erstelle dir kostenlos einen Account oder melde dich an.</a>';
|
||||
$lang['post_copy_link'] = 'Link zum Post kopieren';
|
||||
$lang['post_report'] = 'Post melden';
|
||||
$lang['post_delete'] = 'Post löschen';
|
||||
|
|
|
@ -52,3 +52,12 @@
|
|||
$lang['feed_search_user'] = 'Users';
|
||||
$lang['feed_search_posts'] = 'Posts';
|
||||
$lang['feed_search_media'] = 'Media';
|
||||
|
||||
$lang['post_reply_to'] = 'as a reply to';
|
||||
$lang['post_reply'] = 'Reply';
|
||||
$lang['post_no_replies'] = 'There are no replies to this post currently. How about you\'re becoming the first one to write a reply?';
|
||||
$lang['post_like'] = 'Like';
|
||||
$lang['post_like_account_missing'] = 'You have to be logged in to like posts. <a href="' . base_url('login') . '" class="alert-link">Create a new account for free now or sign in with an existing profile.</a>';
|
||||
$lang['post_copy_link'] = 'Copy Post Link';
|
||||
$lang['post_report'] = 'Report Post';
|
||||
$lang['post_delete'] = 'Delete Post';
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
use Coduo\PHPHumanizer\DateTimeHumanizer;
|
||||
use Coduo\PHPHumanizer\DateTimeHumanizer;
|
||||
|
||||
class GeneralModel extends CI_Model {
|
||||
class GeneralModel extends CI_Model
|
||||
{
|
||||
|
||||
function __construct()
|
||||
{
|
||||
|
@ -17,26 +18,30 @@ class GeneralModel extends CI_Model {
|
|||
$posts = $this->BlogModel->getMostRecentPosts($count);
|
||||
|
||||
$return = '';
|
||||
foreach($posts as $result) {
|
||||
foreach ($posts as $result) {
|
||||
$date = strtotime($result['postPublishDate']);
|
||||
$return .= '<div class="media">
|
||||
<div class="pull-left">
|
||||
<img src="' . $result['postImage'] . '?w=100" style="max-width:100px" class="img-fluid">
|
||||
</div>
|
||||
<div class="media-body">
|
||||
<span class="media-heading"><a href="#">' . $result['postTitle'] . '</a></span>
|
||||
<small class="muted">' . lang('footer_published') . ' ' . DateTimeHumanizer::difference(new \DateTime(), new \DateTime("@$date"), $_SESSION['site_lang']) . '</small>
|
||||
$return .= '<div class="media">';
|
||||
|
||||
if ($result['postImage'] != '') {
|
||||
$return .= '<img src="' . $result['postImage'] . '?w=100" style="width:75px" class="img-fluid mr-3">';
|
||||
}
|
||||
|
||||
$return .= '<div class="media-body">
|
||||
<h6 class="my-0"><a href="#">' . $result['postTitle'] . '</a></h6>
|
||||
<small class="text-white-50">' . lang('footer_published') . ' ' . DateTimeHumanizer::difference(new \DateTime(), new \DateTime("@$date"), $_SESSION['site_lang']) . '</small>
|
||||
</div>
|
||||
</div>';
|
||||
}
|
||||
return $return;
|
||||
}
|
||||
|
||||
function addFeedbackAnonymously($pageUrl, $message) {
|
||||
function addFeedbackAnonymously($pageUrl, $message)
|
||||
{
|
||||
$this->addFeedback($pageUrl, $message, true, NULL, NULL);
|
||||
}
|
||||
|
||||
function addFeedback($pageUrl, $message, $anonymous, $userID, $email) {
|
||||
function addFeedback($pageUrl, $message, $anonymous, $userID, $email)
|
||||
{
|
||||
$this->db->query('INSERT INTO feedback (page, message, anonymous, userID, email) VALUES (?, ?, ?, ?, ?)', [$pageUrl, $message, $anonymous, $userID, $email]);
|
||||
$this->db->cache_delete('admin', 'feedback');
|
||||
|
||||
|
@ -44,7 +49,8 @@ class GeneralModel extends CI_Model {
|
|||
$this->NotificationModel->rankNotificationNewFeedback($userID != NULL ? $userID : -1, 9, $pageUrl);
|
||||
}
|
||||
|
||||
function getRankName($rankID) {
|
||||
function getRankName($rankID)
|
||||
{
|
||||
$ranks = [
|
||||
0 => "Nutzer",
|
||||
1 => "Registrierter Nutzer",
|
||||
|
@ -59,4 +65,4 @@ class GeneralModel extends CI_Model {
|
|||
return isset($ranks[$rankID]) ? $ranks[$rankID] : "Nutzer";
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -23,7 +23,7 @@
|
|||
<?php if ($reply_to != NULL): ?>
|
||||
<small>
|
||||
<i class="fa fa-reply"></i>
|
||||
als Antwort an
|
||||
<?= lang('post_reply_to') ?>
|
||||
<a href="#" onclick="showFullPost('<?= $replyToPost['uuid'] ?>', '<?= $replyToPost['username'] ?>')">@<?= $replyToPost['displayname'] ?></a>
|
||||
</small>
|
||||
<?php endif; ?>
|
||||
|
@ -45,11 +45,11 @@
|
|||
</div>
|
||||
<?php if (!isset($hideActionBtns) || !$hideActionBtns): ?>
|
||||
<div class="action-btns">
|
||||
<a href="#" data-uuid="<?= $uuid ?>" class="action-btn reply-button" data-toggle="tooltip" data-placement="top" title="Antworten">
|
||||
<a href="#" data-uuid="<?= $uuid ?>" class="action-btn reply-button" data-toggle="tooltip" data-placement="top" title="<?= lang('post_reply') ?>">
|
||||
<i class="far fa-comment"></i>
|
||||
<span><?= $replyCount ?></span>
|
||||
</a>
|
||||
<a href="#" data-uuid="<?= $uuid ?>" class="action-btn like-button <?= isset($userHasLiked) && $userHasLiked ? 'active' : '' ?>" data-toggle="tooltip" data-placement="top" title="Gefällt mir">
|
||||
<a href="#" data-uuid="<?= $uuid ?>" class="action-btn like-button <?= isset($userHasLiked) && $userHasLiked ? 'active' : '' ?>" data-toggle="tooltip" data-placement="top" title="<?= lang('post_like') ?>">
|
||||
<i class="<?= isset($userHasLiked) && $userHasLiked ? 'fas' : 'far' ?> fa-heart"></i>
|
||||
<span><?= $likeCount ?></span>
|
||||
</a>
|
||||
|
@ -61,17 +61,17 @@
|
|||
<div class="dropdown-menu" aria-labelledby="postMoreOptionsButton<?= $uuid ?>">
|
||||
<a href="#" onclick="copyToClipboard('<?= base_url('user/' . $username . '/post/' . $uuid) ?>')" class="dropdown-item">
|
||||
<i class="fa fa-copy"></i>
|
||||
Link zum Post kopieren
|
||||
<?= lang('post_copy_link') ?>
|
||||
</a>
|
||||
<a href="#" onclick="openPostReportModal('<?= $uuid ?>')" class="dropdown-item">
|
||||
<i class="fa fa-flag"></i>
|
||||
Post melden
|
||||
<?= lang('post_report') ?>
|
||||
</a>
|
||||
<?php if (isset($_SESSION['user']) && $_SESSION['user']['username'] == $username): ?>
|
||||
<div class="dropdown-divider"></div>
|
||||
<a href="#" onclick="openDeletePostModal('<?= $uuid ?>')" class="dropdown-item text-danger">
|
||||
<i class="fa fa-trash"></i>
|
||||
Post löschen
|
||||
<?= lang('post_delete') ?>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
|
|
@ -97,7 +97,7 @@
|
|||
<?php else: ?>
|
||||
<p class="text-muted">
|
||||
<i class="far fa-frown"></i>
|
||||
Es gibt zu diesem Post keine Antworten. Wie wär's, wenn du der Erste bist, eine zu verfassen?
|
||||
<?= lang('post_no_replies') ?>
|
||||
</p>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
|
|
@ -1253,6 +1253,7 @@ ul#downloadSlider a.active .overlay {
|
|||
|
||||
.comment-list .blog-post-item .comment-well {
|
||||
height: 100px;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.comment-list .blog-post-item .comment-well .entry-image {
|
||||
|
|
BIN
files/thumbs/055535ca35f9270840ef2f5131760f03_h110.png
Normal file
After Width: | Height: | Size: 17 KiB |
BIN
files/thumbs/055535ca35f9270840ef2f5131760f03_h215.png
Normal file
After Width: | Height: | Size: 71 KiB |
BIN
files/thumbs/055535ca35f9270840ef2f5131760f03_w150.png
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
files/thumbs/055535ca35f9270840ef2f5131760f03_w200.png
Normal file
After Width: | Height: | Size: 24 KiB |
BIN
files/thumbs/055535ca35f9270840ef2f5131760f03_w350.png
Normal file
After Width: | Height: | Size: 63 KiB |
BIN
files/thumbs/055535ca35f9270840ef2f5131760f03_w600.png
Normal file
After Width: | Height: | Size: 143 KiB |
BIN
files/thumbs/0719cb23b5fb86e76305261431c31287_w500.jpg
Normal file
After Width: | Height: | Size: 58 KiB |
BIN
files/thumbs/09ae7236fe64a83f41759413cdd6cf18_w1920.jpg
Normal file
After Width: | Height: | Size: 603 KiB |
BIN
files/thumbs/0d94e394486dbdd290541c960e4bb4b9_h110.png
Normal file
After Width: | Height: | Size: 35 KiB |
BIN
files/thumbs/0d94e394486dbdd290541c960e4bb4b9_h215.png
Normal file
After Width: | Height: | Size: 120 KiB |
BIN
files/thumbs/0d94e394486dbdd290541c960e4bb4b9_w150.png
Normal file
After Width: | Height: | Size: 18 KiB |
BIN
files/thumbs/0d94e394486dbdd290541c960e4bb4b9_w200.png
Normal file
After Width: | Height: | Size: 30 KiB |
BIN
files/thumbs/0d94e394486dbdd290541c960e4bb4b9_w350.png
Normal file
After Width: | Height: | Size: 83 KiB |
BIN
files/thumbs/0d94e394486dbdd290541c960e4bb4b9_w600.png
Normal file
After Width: | Height: | Size: 223 KiB |
BIN
files/thumbs/1473d4a1d7dad2f8032cfbec72095d58_w150.jpg
Normal file
After Width: | Height: | Size: 6.4 KiB |
BIN
files/thumbs/1473d4a1d7dad2f8032cfbec72095d58_w200.jpg
Normal file
After Width: | Height: | Size: 9.9 KiB |
BIN
files/thumbs/1473d4a1d7dad2f8032cfbec72095d58_w300.jpg
Normal file
After Width: | Height: | Size: 18 KiB |
BIN
files/thumbs/1473d4a1d7dad2f8032cfbec72095d58_w750.jpg
Normal file
After Width: | Height: | Size: 74 KiB |
BIN
files/thumbs/1473d4a1d7dad2f8032cfbec72095d58_w800.jpg
Normal file
After Width: | Height: | Size: 82 KiB |
BIN
files/thumbs/1bf194761cfeee8852950aa8e3780e2b_h110.jpg
Normal file
After Width: | Height: | Size: 6.4 KiB |
BIN
files/thumbs/1bf194761cfeee8852950aa8e3780e2b_h215.jpg
Normal file
After Width: | Height: | Size: 18 KiB |
BIN
files/thumbs/1bf194761cfeee8852950aa8e3780e2b_w150.jpg
Normal file
After Width: | Height: | Size: 5.5 KiB |
BIN
files/thumbs/1bf194761cfeee8852950aa8e3780e2b_w200.jpg
Normal file
After Width: | Height: | Size: 8.7 KiB |
BIN
files/thumbs/1bf194761cfeee8852950aa8e3780e2b_w350.jpg
Normal file
After Width: | Height: | Size: 21 KiB |
BIN
files/thumbs/1bf194761cfeee8852950aa8e3780e2b_w600.jpg
Normal file
After Width: | Height: | Size: 70 KiB |
BIN
files/thumbs/247b4872baf61432dd3886bb30e1239e_h110.png
Normal file
After Width: | Height: | Size: 28 KiB |
BIN
files/thumbs/2d82c389aac9418b797e4787a773d3e0_w100.png
Normal file
After Width: | Height: | Size: 10 KiB |
BIN
files/thumbs/2d82c389aac9418b797e4787a773d3e0_w150.png
Normal file
After Width: | Height: | Size: 22 KiB |
BIN
files/thumbs/2d82c389aac9418b797e4787a773d3e0_w250.png
Normal file
After Width: | Height: | Size: 46 KiB |
BIN
files/thumbs/2d82c389aac9418b797e4787a773d3e0_w300.png
Normal file
After Width: | Height: | Size: 57 KiB |
BIN
files/thumbs/2d82c389aac9418b797e4787a773d3e0_w350.png
Normal file
After Width: | Height: | Size: 74 KiB |
BIN
files/thumbs/2d82c389aac9418b797e4787a773d3e0_w50.png
Normal file
After Width: | Height: | Size: 3.4 KiB |
BIN
files/thumbs/2d82c389aac9418b797e4787a773d3e0_w75.png
Normal file
After Width: | Height: | Size: 7.3 KiB |
BIN
files/thumbs/31118976917b731231719bd9c534dac2_h110.png
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
files/thumbs/31118976917b731231719bd9c534dac2_h215.png
Normal file
After Width: | Height: | Size: 51 KiB |
BIN
files/thumbs/31118976917b731231719bd9c534dac2_w150.png
Normal file
After Width: | Height: | Size: 8.9 KiB |
BIN
files/thumbs/31118976917b731231719bd9c534dac2_w200.png
Normal file
After Width: | Height: | Size: 14 KiB |
BIN
files/thumbs/31118976917b731231719bd9c534dac2_w350.png
Normal file
After Width: | Height: | Size: 38 KiB |
BIN
files/thumbs/31118976917b731231719bd9c534dac2_w600.png
Normal file
After Width: | Height: | Size: 94 KiB |
BIN
files/thumbs/3334c6db81a9b3e35f53d8838a9f647f_w500.jpg
Normal file
After Width: | Height: | Size: 58 KiB |
BIN
files/thumbs/3c470f7761d8cd652e0ee3634325118e_w100.jpg
Normal file
After Width: | Height: | Size: 3.3 KiB |
BIN
files/thumbs/3c470f7761d8cd652e0ee3634325118e_w150.jpg
Normal file
After Width: | Height: | Size: 5.4 KiB |
BIN
files/thumbs/3c470f7761d8cd652e0ee3634325118e_w200.jpg
Normal file
After Width: | Height: | Size: 8.0 KiB |
BIN
files/thumbs/3c470f7761d8cd652e0ee3634325118e_w300.jpg
Normal file
After Width: | Height: | Size: 13 KiB |
BIN
files/thumbs/3c470f7761d8cd652e0ee3634325118e_w750.jpg
Normal file
After Width: | Height: | Size: 45 KiB |
BIN
files/thumbs/3c470f7761d8cd652e0ee3634325118e_w800.jpg
Normal file
After Width: | Height: | Size: 50 KiB |
BIN
files/thumbs/4172ac70ae49fe5664983d9de3dee6d3_w100.jpg
Normal file
After Width: | Height: | Size: 4.1 KiB |
BIN
files/thumbs/4172ac70ae49fe5664983d9de3dee6d3_w150.jpg
Normal file
After Width: | Height: | Size: 7.4 KiB |
BIN
files/thumbs/4172ac70ae49fe5664983d9de3dee6d3_w200.jpg
Normal file
After Width: | Height: | Size: 11 KiB |
BIN
files/thumbs/4172ac70ae49fe5664983d9de3dee6d3_w300.jpg
Normal file
After Width: | Height: | Size: 21 KiB |
BIN
files/thumbs/4172ac70ae49fe5664983d9de3dee6d3_w750.jpg
Normal file
After Width: | Height: | Size: 79 KiB |
BIN
files/thumbs/4172ac70ae49fe5664983d9de3dee6d3_w800.jpg
Normal file
After Width: | Height: | Size: 88 KiB |
BIN
files/thumbs/481e8a3b4b4bb9f11fedf58c09c3965f_h110.png
Normal file
After Width: | Height: | Size: 38 KiB |
BIN
files/thumbs/481e8a3b4b4bb9f11fedf58c09c3965f_h215.png
Normal file
After Width: | Height: | Size: 134 KiB |
BIN
files/thumbs/481e8a3b4b4bb9f11fedf58c09c3965f_w100.png
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
files/thumbs/481e8a3b4b4bb9f11fedf58c09c3965f_w150.png
Normal file
After Width: | Height: | Size: 34 KiB |
BIN
files/thumbs/481e8a3b4b4bb9f11fedf58c09c3965f_w200.png
Normal file
After Width: | Height: | Size: 59 KiB |
BIN
files/thumbs/481e8a3b4b4bb9f11fedf58c09c3965f_w350.png
Normal file
After Width: | Height: | Size: 168 KiB |
BIN
files/thumbs/481e8a3b4b4bb9f11fedf58c09c3965f_w600.png
Normal file
After Width: | Height: | Size: 464 KiB |
BIN
files/thumbs/59768b61257e439b593ff2fb112d5079_w200.png
Normal file
After Width: | Height: | Size: 26 KiB |
BIN
files/thumbs/59a870203c3eae5aa1d9c831f64b32fd_w150.png
Normal file
After Width: | Height: | Size: 3.0 KiB |
BIN
files/thumbs/59a870203c3eae5aa1d9c831f64b32fd_w200.png
Normal file
After Width: | Height: | Size: 4.4 KiB |
BIN
files/thumbs/59a870203c3eae5aa1d9c831f64b32fd_w300.png
Normal file
After Width: | Height: | Size: 8.0 KiB |
BIN
files/thumbs/59a870203c3eae5aa1d9c831f64b32fd_w750.png
Normal file
After Width: | Height: | Size: 62 KiB |
BIN
files/thumbs/5c37b451ae0b3b024c7374faed6dd66e_h110.png
Normal file
After Width: | Height: | Size: 31 KiB |
BIN
files/thumbs/5c37b451ae0b3b024c7374faed6dd66e_h215.png
Normal file
After Width: | Height: | Size: 109 KiB |
BIN
files/thumbs/5c37b451ae0b3b024c7374faed6dd66e_w150.png
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
files/thumbs/5c37b451ae0b3b024c7374faed6dd66e_w200.png
Normal file
After Width: | Height: | Size: 27 KiB |
BIN
files/thumbs/5c37b451ae0b3b024c7374faed6dd66e_w350.png
Normal file
After Width: | Height: | Size: 75 KiB |
BIN
files/thumbs/5c37b451ae0b3b024c7374faed6dd66e_w600.png
Normal file
After Width: | Height: | Size: 180 KiB |
BIN
files/thumbs/7bf2dda16e6bccbb0011473b780a82cc_w100.jpg
Normal file
After Width: | Height: | Size: 3.4 KiB |
BIN
files/thumbs/7bf2dda16e6bccbb0011473b780a82cc_w150.jpg
Normal file
After Width: | Height: | Size: 5.9 KiB |
BIN
files/thumbs/7bf2dda16e6bccbb0011473b780a82cc_w200.jpg
Normal file
After Width: | Height: | Size: 8.3 KiB |
BIN
files/thumbs/7bf2dda16e6bccbb0011473b780a82cc_w750.jpg
Normal file
After Width: | Height: | Size: 48 KiB |
BIN
files/thumbs/7bf2dda16e6bccbb0011473b780a82cc_w800.jpg
Normal file
After Width: | Height: | Size: 53 KiB |
BIN
files/thumbs/7cbaf4a970e896bb1ceda47b1afe960e_w100.png
Normal file
After Width: | Height: | Size: 9.9 KiB |
BIN
files/thumbs/7cbaf4a970e896bb1ceda47b1afe960e_w250.png
Normal file
After Width: | Height: | Size: 46 KiB |
BIN
files/thumbs/7cbaf4a970e896bb1ceda47b1afe960e_w300.png
Normal file
After Width: | Height: | Size: 55 KiB |
BIN
files/thumbs/7cbaf4a970e896bb1ceda47b1afe960e_w50.png
Normal file
After Width: | Height: | Size: 3.4 KiB |
BIN
files/thumbs/7cbaf4a970e896bb1ceda47b1afe960e_w75.png
Normal file
After Width: | Height: | Size: 7.3 KiB |
BIN
files/thumbs/7cc108b67f33f32bd5448758cb3f8df8_h110.png
Normal file
After Width: | Height: | Size: 28 KiB |
BIN
files/thumbs/7cc108b67f33f32bd5448758cb3f8df8_h215.png
Normal file
After Width: | Height: | Size: 77 KiB |
BIN
files/thumbs/7cc108b67f33f32bd5448758cb3f8df8_w150.png
Normal file
After Width: | Height: | Size: 19 KiB |
BIN
files/thumbs/7cc108b67f33f32bd5448758cb3f8df8_w200.png
Normal file
After Width: | Height: | Size: 29 KiB |
BIN
files/thumbs/7cc108b67f33f32bd5448758cb3f8df8_w350.png
Normal file
After Width: | Height: | Size: 66 KiB |
BIN
files/thumbs/7cc108b67f33f32bd5448758cb3f8df8_w600.png
Normal file
After Width: | Height: | Size: 168 KiB |
BIN
files/thumbs/8d0f2d58d2e4a0542479f037519458d6_h110.png
Normal file
After Width: | Height: | Size: 97 KiB |
BIN
files/thumbs/8d0f2d58d2e4a0542479f037519458d6_h215.png
Normal file
After Width: | Height: | Size: 315 KiB |
BIN
files/thumbs/8d0f2d58d2e4a0542479f037519458d6_w150.png
Normal file
After Width: | Height: | Size: 7.4 KiB |
BIN
files/thumbs/8d0f2d58d2e4a0542479f037519458d6_w200.png
Normal file
After Width: | Height: | Size: 12 KiB |
BIN
files/thumbs/8d0f2d58d2e4a0542479f037519458d6_w350.png
Normal file
After Width: | Height: | Size: 33 KiB |
BIN
files/thumbs/8d0f2d58d2e4a0542479f037519458d6_w600.png
Normal file
After Width: | Height: | Size: 85 KiB |
BIN
files/thumbs/8d204712d8132b36d765640ce775ce15_w100.png
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
files/thumbs/8d204712d8132b36d765640ce775ce15_w250.png
Normal file
After Width: | Height: | Size: 6.0 KiB |