Skip to content

Commit

Permalink
fix(): post 语法错误
Browse files Browse the repository at this point in the history
  • Loading branch information
fordes123 committed Jan 15, 2025
1 parent ca892c2 commit 81a03dc
Showing 1 changed file with 15 additions and 16 deletions.
31 changes: 15 additions & 16 deletions post.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,24 @@
$this->need('header.php');
$this->need('sidebar.php');
$this->need('topbar.php');
if ($this->fields->navigation == 2):
<div class="modal fade" id="openWxModal" tabindex="-1" aria-labelledby="openWxModalLabel" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-body d-flex flex-column justify-content-center align-items-center gap-3">
<?php if ($this->fields->url): ?>
<img src="<?php $this->fields->url(); ?>" alt="二维码" class="img-fluid mt-3">
<?php elseif ($this->fields->logo): ?>
<img src="<?php $this->fields->logo(); ?>" alt="logo" class="img-fluid mt-3">
<?php endif; ?>
<p class="modal-title mb-3 fs-5"><?php echo $this->title(); ?></p>
<p class="text-muted">Tips: 长按识别二维码, 或者去微信搜索:<b class="text-success"><?php echo $this->title(); ?></b></p>
<a class="btn btn-primary" href="weixin://" role="button">前往微信</a>
if ($this->fields->navigation == 2): ?>
<div class="modal fade" id="openWxModal" tabindex="-1" aria-labelledby="openWxModalLabel" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-body d-flex flex-column justify-content-center align-items-center gap-3">
<?php if ($this->fields->url): ?>
<img src="<?php $this->fields->url(); ?>" alt="二维码" class="img-fluid mt-3">
<?php elseif ($this->fields->logo): ?>
<img src="<?php $this->fields->logo(); ?>" alt="logo" class="img-fluid mt-3">
<?php endif; ?>
<p class="modal-title mb-3 fs-5"><?php echo $this->title(); ?></p>
<p class="text-muted">Tips: 长按识别二维码, 或者去微信搜索:<b class="text-success"><?php echo $this->title(); ?></b></p>
<a class="btn btn-primary" href="weixin://" role="button">前往微信</a>
</div>
</div>
</div>
</div>
</div>
endif; ?>

<?php endif; ?>

<main class="site-main">
<div class="container">
Expand Down

0 comments on commit 81a03dc

Please sign in to comment.