Skip to content

Commit

Permalink
修复在站点在二级目录出现的跳转错误
Browse files Browse the repository at this point in the history
  • Loading branch information
owen0o0 committed Feb 21, 2020
1 parent ef1e467 commit 677ff52
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion single-sites.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
?>
<div class="site-go mt-3">
<?php if($m_link_url!=""): ?>
<a style="margin-right: 10px;" href="<?php echo io_get_option('is_go')? '/go/?url='.base64_encode($m_link_url) : $m_link_url ?>" title="<?php echo $sitetitle ?>" target="_blank" class="btn btn-arrow"><span>链接直达<i class="fa fa-angle-right"></i></span></a>
<a style="margin-right: 10px;" href="<?php echo io_get_option('is_go')? home_url().'/go/?url='.base64_encode($m_link_url) : $m_link_url ?>" title="<?php echo $sitetitle ?>" target="_blank" class="btn btn-arrow"><span>链接直达<i class="fa fa-angle-right"></i></span></a>
<?php endif; ?>
<a href="javascript:" class="btn btn-arrow" data-toggle="tooltip" data-placement="bottom" title="" data-html="true" data-original-title="<img src='<?php echo $qrurl ?>' width='150'>"><span><?php echo $qrname ?><i class="fa fa-qrcode"></i></span></a>
</div>
Expand Down
2 changes: 1 addition & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Theme Name:WebStack
Theme URI:https://www.iowen.cn
Description:by 一为!官方网站:<a href="https://www.iowen.cn">一为忆</a>,</br><a href="https://www.iowen.cn/webstack-pro-navigation-theme-advanced/">升级pro版</a>,体验更多功能
Version:1.1315
Version:1.1421
Author:iowen
Author URI: https://www.iowen.cn/
*/
4 changes: 2 additions & 2 deletions templates/header-nav.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
);
if(empty($children)){ ?>
<li>
<a href="<?php if (is_home() || is_front_page()): ?><?php else: ?>/<?php endif; ?>#<?php echo $category->name;?>" class="smooth">
<a href="<?php if (is_home() || is_front_page()): ?><?php else: echo home_url() ?>/<?php endif; ?>#<?php echo $category->name;?>" class="smooth">
<i class="fa <?php echo $category->description ?> fa-fw"></i>
<span class="title"><?php echo $category->name; ?></span>
</a>
Expand All @@ -45,7 +45,7 @@
<?php foreach ($children as $mid) { ?>

<li>
<a href="<?php if (is_home() || is_front_page()): ?><?php else: ?>/<?php endif; ?>#<?php echo $mid->name ;?>" class="smooth"><?php echo $mid->name; ?></a>
<a href="<?php if (is_home() || is_front_page()): ?><?php else: echo home_url() ?>/<?php endif; ?>#<?php echo $mid->name ;?>" class="smooth"><?php echo $mid->name; ?></a>
</li>
<?php } ?>
</ul>
Expand Down
2 changes: 1 addition & 1 deletion templates/site-card.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
$blank = '';
}else{
if(io_get_option('is_go'))
$url = '/go/?url='.base64_encode($link_url) ;
$url = home_url().'/go/?url='.base64_encode($link_url) ;
else
$url = $link_url;
}
Expand Down

0 comments on commit 677ff52

Please sign in to comment.