Skip to content

Commit

Permalink
Optimize the directory structure
Browse files Browse the repository at this point in the history
  • Loading branch information
AH-dark committed Nov 21, 2021
1 parent 7cb5cdd commit b524e0e
Show file tree
Hide file tree
Showing 26 changed files with 15 additions and 14 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.vscode/
.idea/
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
2 changes: 1 addition & 1 deletion static/js/DPlayer.min.js → assets/js/DPlayer.min.js

Large diffs are not rendered by default.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
14 changes: 7 additions & 7 deletions components/footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@
<?php $this->need('components/sidebar.php'); ?>
<?php $this->footer(); ?>

<script src="<?php echo G::staticUrl('static/js/pjax.min.js'); ?>?v=3.10012"></script>
<script src="<?php echo G::staticUrl('static/js/smoothscroll.js'); ?>?v=3.215"></script>
<script src="<?php echo G::staticUrl('static/js/toastify.min.js'); ?>?v=3.211"></script>
<script src="<?php echo G::staticUrl('static/js/tocbot.min.js'); ?>?v=3.211"></script>
<script src="<?php echo G::staticUrl('static/js/lib.js'); ?>?v=3.10018"></script>
<script src="<?php echo G::staticUrl('static/js/prism.js'); ?>?v=1.03" data-manual></script>
<script src="<?php echo G::staticUrl('static/js/G.js'); ?>?v=3.241"></script>
<script src="<?php echo G::staticUrl('assets/js/pjax.min.js'); ?>?v=3.10012"></script>
<script src="<?php echo G::staticUrl('assets/js/smoothscroll.js'); ?>?v=3.215"></script>
<script src="<?php echo G::staticUrl('assets/js/toastify.min.js'); ?>?v=3.211"></script>
<script src="<?php echo G::staticUrl('assets/js/tocbot.min.js'); ?>?v=3.211"></script>
<script src="<?php echo G::staticUrl('assets/js/lib.js'); ?>?v=3.10018"></script>
<script src="<?php echo G::staticUrl('assets/js/prism.js'); ?>?v=1.03" data-manual></script>
<script src="<?php echo G::staticUrl('assets/js/G.js'); ?>?v=3.241"></script>
<script>
<?php $this->options->customFooterJS(); ?>
</script>
Expand Down
6 changes: 3 additions & 3 deletions components/header.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
/* 输出自定义主题色 */
<?php echo G::setCSSValues(); ?>
</style>
<link rel="stylesheet" href="<?php echo G::staticUrl('static/css/G.css'); ?>?v=3.2327">
<link rel="stylesheet <?php if (!isset($_COOKIE['night']) || $_COOKIE['night'] != '1') {echo 'alternate';} ?>" href="<?php echo G::staticUrl('static/css/dark.css'); ?>?v=3.227" title="dark">
<link rel="stylesheet" href="<?php echo G::staticUrl('assets/css/G.css'); ?>?v=3.2327">
<link rel="stylesheet <?php if (!isset($_COOKIE['night']) || $_COOKIE['night'] != '1') {echo 'alternate';} ?>" href="<?php echo G::staticUrl('assets/css/dark.css'); ?>?v=3.227" title="dark">

<style>
/* 设置自定义背景[颜色/图片] */
Expand All @@ -31,7 +31,7 @@
<?php $this->options->customCSS(); ?>
</style>
<?php $this->header(); ?>
<script src="<?php echo G::staticUrl('static/js/DPlayer.min.js'); ?>"></script>
<script src="<?php echo G::staticUrl('assets/js/DPlayer.min.js'); ?>"></script>
<script>
<?php $this->options->customHeaderJS(); ?>
</script>
Expand Down
4 changes: 2 additions & 2 deletions functions.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php
if (!defined('__TYPECHO_ROOT_DIR__')) exit;

require_once("lib/G.class.php");
require_once("lib/GEditor.class.php");
require_once("libs/G.class.php");
require_once("libs/GEditor.class.php");
G::init();
Typecho_Plugin::factory('Widget_Abstract_Contents')->excerptEx = array('GEditor','reply2see');
Typecho_Plugin::factory('Widget_Abstract_Contents')->contentEx = array('GEditor','reply2see');
Expand Down
2 changes: 1 addition & 1 deletion lib/G.class.php → libs/G.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ public static function getArticlePath()
public static function getFooterLogos()
{
if(self::$config['enableUPYUNLOGO'] == 1)
$logos = '<a href="https://www.upyun.com/?utm_source=lianmeng&utm_medium=referral"><img src="'.self::staticUrl('static/img/upyun.png').'"/></a>';
$logos = '<a href="https://www.upyun.com/?utm_source=lianmeng&utm_medium=referral"><img src="'.self::staticUrl('assets/img/upyun.png').'"/></a>';
else
$logos = '';
$imgs = explode(',', self::$config["footerLOGO"]);
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit b524e0e

Please sign in to comment.