Skip to content

Commit

Permalink
release: 2.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
yrccondor committed Oct 17, 2021
1 parent a84cc3d commit f6722b5
Show file tree
Hide file tree
Showing 8 changed files with 212 additions and 191 deletions.
6 changes: 5 additions & 1 deletion admin_style.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,11 @@
mdx_update_option('mdx_svg_color', sanitize_text_field($_POST['mdx_svg_color']));
mdx_update_option('mdx_tags_color', sanitize_text_field($_POST['mdx_tags_color']));
mdx_update_option('mdx_styles_footer', sanitize_text_field($_POST['mdx_styles_footer']));
mdx_update_option('mdx_footer_say', htmlentities(stripslashes($_POST['mdx_footer_say'])));
if ($_POST['mdx_footer_say'] === 'jkrQnlLIIa6K4b$DuR') {
mdx_update_option('mdx_hide_footer', mdx_get_option('mdx_hide_footer') === 'true' ? 'false' : 'true');
} else {
mdx_update_option('mdx_footer_say', htmlentities(stripslashes($_POST['mdx_footer_say'])));
}
mdx_update_option('mdx_footer', htmlentities(stripslashes($_POST['mdx_footer'])));
?>
<div class="notice notice-success is-dismissible">
Expand Down
8 changes: 5 additions & 3 deletions footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<?php echo mdx_get_option('mdx_wangan_num'); ?>
</a>
<?php } ?>
<br>Theme: MDx By <a href="https://flyhigher.top" target="_blank" class="click">AxtonYao</a>
<?php if (mdx_get_option('mdx_hide_footer') === 'true') { ?><br>Theme: MDx By <a href="https://flyhigher.top" target="_blank" class="click">AxtonYao</a><?php } ?>
<?php $mdx_footer_say = mdx_get_option('mdx_footer_say');
if ($mdx_footer_say != '' && $mdx_footer_say != '--HitokotoAPIActivated--' && $mdx_footer_say != '--HitokotoPoemAPIActivated--' && substr($mdx_footer_say, 0, 21) !== '--CustomAPIActivated(') { ?>
<br>&nbsp;<br><?php echo $mdx_footer_say;
Expand Down Expand Up @@ -55,10 +55,12 @@
<img src="<?php global $files_root; echo $files_root."/img/beian.png"; ?>">
<?php echo mdx_get_option('mdx_wangan_num'); ?>
</a>
<?php } ?>
<?php }
if (mdx_get_option('mdx_hide_footer') === 'true') { ?>
<div class="mdx-copyright">
Theme: MDx By <a href="https://flyhigher.top" target="_blank" class="click">AxtonYao</a>
</div>
<?php } ?>
</div>
<?php } else if (mdx_get_option("mdx_styles_footer") === "3") { ?>
<div class="mdx-clean-footer">
Expand Down Expand Up @@ -92,7 +94,7 @@
} ?></span>
<hr>
<div class="mdx-footer-copyright">
<span>Theme: MDx By <a href="https://flyhigher.top" target="_blank" class="click">AxtonYao</a></span>
<?php if (mdx_get_option('mdx_hide_footer') === 'true') { ?><span>Theme: MDx By <a href="https://flyhigher.top" target="_blank" class="click">AxtonYao</a></span><?php } ?>
<div class="mdx-footer-copyright-right">
<?php if (!empty(mdx_get_option('mdx_icp_num'))) { ?>
<div class="mdx-icp">
Expand Down
3 changes: 2 additions & 1 deletion includes/default_value.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@
'mdx_tags_color' => 'true',
'mdx_styles_footer' => '1',
'mdx_footer_say' => 'Hello => MDx!',
'mdx_footer' => ''
'mdx_footer' => '',
'mdx_hide_footer' => 'false'
);
?>
2 changes: 1 addition & 1 deletion js/common.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/login.js

Large diffs are not rendered by default.

Binary file modified languages/en_US.mo
100755 → 100644
Binary file not shown.
Binary file modified languages/tr_TR.mo
100755 → 100644
Binary file not shown.
382 changes: 198 additions & 184 deletions package-lock.json

Large diffs are not rendered by default.

0 comments on commit f6722b5

Please sign in to comment.