Allow to add TOC using shortcode (<!--toc-->). TOC add button in text editor.
This commit is contained in:
danpros 2024-02-20 22:47:45 +07:00
commit 6c8c1271c2
11 changed files with 100 additions and 8 deletions

View file

@ -39,7 +39,7 @@
<span itemprop="author"><a href="<?php echo $p->authorUrl;?>"><?php echo $p->authorName;?></a></span>
</p>
</div>
<div class="desc text-left" itemprop="articleBody">
<div class="desc text-left post-<?php echo $p->date;?>" itemprop="articleBody">
<?php echo $p->body; ?>
</div><!--//desc-->
<div style="margin-top:30px;position:relative;">

View file

@ -38,7 +38,7 @@
<blockquote><?php echo $p->quote ?></blockquote>
</div>
<?php } ?>
<div class="post-body" itemprop="articleBody">
<div class="post-body post-<?php echo $p->date;?>" itemprop="articleBody">
<?php echo $p->body; ?>
</div>
<div class="tags"><strong><?php echo i18n('Tags'); ?>:</strong> <?php echo $p->tag;?></div>

View file

@ -45,7 +45,7 @@
</div>
<div class="content-body" id="content">
<div class="content-body post-<?php echo $p->date;?>" id="content">
<?php echo $post->body;?>
<p class="post-footer">

View file

@ -38,7 +38,7 @@
<blockquote><?php echo $p->quote ?></blockquote>
</div>
<?php } ?>
<div class="post-body" itemprop="articleBody">
<div class="post-body post-<?php echo $p->date;?>" itemprop="articleBody">
<?php echo $p->body; ?>
</div>
<div class="tags"><strong><?php echo i18n('Tags');?></strong> <?php echo $p->tag;?></div>

View file

@ -38,7 +38,7 @@
<blockquote><?php echo $p->quote ?></blockquote>
</div>
<?php } ?>
<div class="post-body" itemprop="articleBody">
<div class="post-body post-<?php echo $p->date;?>" itemprop="articleBody">
<?php echo $p->body; ?>
</div>
<div class="tags"><strong><?php echo i18n('Tags');?>:</strong> <?php echo $p->tag;?></div>

View file

@ -28,7 +28,7 @@
<h1 class="entry-title"><?php echo $p->title; ?></h1>
<?php } ?>
</header>
<div class="entry-content">
<div class="entry-content post-<?php echo $p->date;?>">
<?php echo $p->body; ?>
</div>
<style>.related {padding-bottom:2em;}.related p {margin-top:0;margin-bottom:0.5em;} .related ul {margin-left:1em;}</style>

View file

@ -17,7 +17,7 @@
<div class="entry-content">
<div class="content">
<div class="clearfix text-formatted field field--name-body">
<div class="content">
<div class="content post-<?php echo $p->date;?>">
<?php if (!empty($p->quote)):?>
<blockquote><?php echo $p->quote;?></blockquote>
<?php endif;?>