sync
This commit is contained in:
@@ -96,14 +96,14 @@ function article_page_from_markdown($article_id)
|
|||||||
$lines = preg_split("/\r\n|\n|\r/", $article_content);
|
$lines = preg_split("/\r\n|\n|\r/", $article_content);
|
||||||
foreach ($lines as $line)
|
foreach ($lines as $line)
|
||||||
if (str_contains($line, '<h4>'))
|
if (str_contains($line, '<h4>'))
|
||||||
$article_toc .= '<p>' . extract_content_from_tag($line, '<h4>', '</h4>') . '</p>';
|
$article_toc .= '<p>' . extract_content_from_tag($line, '<h4>', '</h4>') . '</p><br>';
|
||||||
|
|
||||||
$html = '
|
$html = '
|
||||||
<div class="article">
|
<div class="article">
|
||||||
<h3>' . $article['title'] . '</h3>
|
<h3>' . $article['title'] . '</h3>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col_right">
|
<div class="col_right">
|
||||||
<h5>Written by <a href="user.php?action=view&user_id=' . $author['user_id'] . '" style="font-size: 1.5vw;">' . $author['username'] . '</a></h5>
|
<h5>Written by <a href="user.php?action=view&user_id=' . $author['user_id'] . '">' . $author['username'] . '</a></h5>
|
||||||
<p>Published on ' . $article['published_at'] . '</p>
|
<p>Published on ' . $article['published_at'] . '</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="card_pic_box">
|
<div class="card_pic_box">
|
||||||
|
|||||||
Reference in New Issue
Block a user