Update profile.php
This commit is contained in:
+8
-5
@@ -47,15 +47,18 @@ include_once 'php/controller/profileArticles-controller.php';
|
|||||||
<p class="alert-message is-error">
|
<p class="alert-message is-error">
|
||||||
Es ist ein Fehler beim Speichern aufgetreten. Bitte versuche es erneut.
|
Es ist ein Fehler beim Speichern aufgetreten. Bitte versuche es erneut.
|
||||||
</p>
|
</p>
|
||||||
<?php elseif(isset($articles) && count($articles) > 0): ?>
|
<?php elseif(isset($userArticles) && count($userArticles) > 0): ?>
|
||||||
<!-- Beispiel-Eintrag 1 (Wird später per PHP wiederholt) -->
|
<!-- Beispiel-Eintrag 1 (Wird später per PHP wiederholt) -->
|
||||||
<div class="article-item">
|
<div class="article-item">
|
||||||
<div class="article-meta">
|
<div class="article-meta">
|
||||||
<span class="article-date"><?php if (isset($creationDate)) { echo htmlspecialchars($creationDate); } ?></span>
|
<?php foreach ($userArticles as $userArticle): ?>
|
||||||
<span class="article-category"><?php if (isset($category)) { echo htmlspecialchars($category); } ?></span>
|
<span class="article-date"><?php htmlspecialchars($userArticle->getTitle()); ?></span>
|
||||||
|
<span class="article-category"><?php echo htmlspecialchars($userArticle->getCategory()); ?></span>
|
||||||
</div>
|
</div>
|
||||||
<h3 class="article-title"><?php if (isset($title)) { echo htmlspecialchars($title); } ?></h3>
|
<h3 class="article-title"><?php echo htmlspecialchars($userArticle->getTitle()); ?></h3>
|
||||||
<?php if (isset($tags) && !empty($tags)): ?>
|
<?php
|
||||||
|
$tags = $userArticle->getTags();
|
||||||
|
if (isset($tags) && !empty($tags)): ?>
|
||||||
<div class="article-view-bottom-section">
|
<div class="article-view-bottom-section">
|
||||||
<div class="article-view-tags-label">Tags:</div>
|
<div class="article-view-tags-label">Tags:</div>
|
||||||
<div class="article-view-tags-list">
|
<div class="article-view-tags-list">
|
||||||
|
|||||||
Reference in New Issue
Block a user