Added support for custom js

This commit is contained in:
Andreas 2023-11-23 12:14:37 +01:00
parent ad6512197b
commit ae2bd9ee94
2 changed files with 7 additions and 2 deletions

1
.gitignore vendored
View File

@ -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

View File

@ -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>