Added support for custom js

pull/2720/head
Andreas 2023-11-23 12:14:37 +01:00
rodzic ad6512197b
commit ae2bd9ee94
2 zmienionych plików z 7 dodań i 2 usunięć

1
.gitignore vendored
Wyświetl plik

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

Wyświetl plik

@ -9,7 +9,7 @@
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="default">
<link rel="manifest" href="<?php echo base_url(); ?>manifest.json"/>
<!-- Bootstrap CSS -->
<?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">
@ -54,6 +54,10 @@
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">
<title><?php if (isset($page_title)) {
@ -416,4 +420,4 @@
</div>
</div>
</nav>
</nav>