Added support for custom js

这个提交包含在:
Andreas 2023-11-23 12:14:37 +01:00
父节点 ad6512197b
当前提交 ae2bd9ee94
共有 2 个文件被更改,包括 7 次插入2 次删除

1
.gitignore vendored
查看文件

@ -11,6 +11,7 @@
/images/eqsl_card_images/*.jpg /images/eqsl_card_images/*.jpg
/updates/clublog_scp.txt /updates/clublog_scp.txt
/assets/qslcard/* /assets/qslcard/*
/assets/js/sections/custom.js
.idea/* .idea/*
.DS_Store .DS_Store
sync.sh sync.sh

查看文件

@ -9,7 +9,7 @@
<meta name="mobile-web-app-capable" content="yes"> <meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="default"> <meta name="apple-mobile-web-app-status-bar-style" content="default">
<link rel="manifest" href="<?php echo base_url(); ?>manifest.json"/> <link rel="manifest" href="<?php echo base_url(); ?>manifest.json"/>
<!-- Bootstrap CSS --> <!-- Bootstrap CSS -->
<?php if ($this->optionslib->get_theme()) { ?> <?php if ($this->optionslib->get_theme()) { ?>
<link rel="stylesheet" href="<?php echo base_url(); ?>assets/css/<?php echo $this->optionslib->get_theme(); ?>/bootstrap.min.css"> <link rel="stylesheet" href="<?php echo base_url(); ?>assets/css/<?php echo $this->optionslib->get_theme(); ?>/bootstrap.min.css">
@ -54,6 +54,10 @@
echo '<link rel="stylesheet" href="' . base_url() . 'assets/css/custom.css">'; echo '<link rel="stylesheet" href="' . base_url() . 'assets/css/custom.css">';
} ?> } ?>
<?php if (file_exists(APPPATH . '../assets/js/sections/custom.js')) {
echo '<script src="' . base_url() . 'assets/js/sections/custom.js"></script>';
} ?>
<link rel="icon" href="<?php echo base_url(); ?>favicon.ico"> <link rel="icon" href="<?php echo base_url(); ?>favicon.ico">
<title><?php if (isset($page_title)) { <title><?php if (isset($page_title)) {
@ -416,4 +420,4 @@
</div> </div>
</div> </div>
</nav> </nav>