I am wondering though, how many installations of Bootstrap is needed?
My website uses Bootstrap already. Then, when I install bludit, it has its' own Bootstrap installation path.
So, what to do?
Perhaps I have an idea? What if Bludit asked the path to your current Bootstrap path before installation? So that it would use your existing installation of Bootstrap rather than installing it twice and having two or even three different paths to Bootstrap throughout your entire website area's.
Perhaps a requirement could be to have bootstrap installed in a folder and just let bludit use those paths instead of installing it again just for the bludit installation? If the user does not have a previously installed version of bootstrap then bludit would use it's own bootstrap files upon install.
/bs/531/css/bootstrap.min.css
/bs/531/js/bootstrap.bundle.min.js
Code: Select all
// BOOTSTRAP
$BS_CORE_CSS = ".. /bs/531/css/bootstrap.min.css";
$BS_JS_BUNDLE = ".. /bs/531/js/bootstrap.bundle.min.js";
$BS5BLOG_CSS = ".. /css/bs5blog.css"; //custom css file pathCode: Select all
<meta charset="<?= htmlspecialchars($SITE_META_CHAR) ?>">
<meta name="viewport" content="<?= htmlspecialchars($SITE_META_VIEWPORT) ?>">
<?php echo Theme::metaTags('title'); ?>
<?php echo Theme::metaTags('description'); ?>
<meta name="robots" content="<?= htmlspecialchars($SITE_META_ROBOTS_OFF) ?>">
<meta name="copyright" content="<?= htmlspecialchars($SITE_META_COPYRIGHT) ?>">
<?php Theme::plugins('siteHead'); ?>
<link rel="icon" href="<?= htmlspecialchars($SITE_FAVICON) ?>" type="<?= htmlspecialchars($SITE_FAVICON_TYPE) ?>">
<link rel="apple-touch-icon" href="<?= htmlspecialchars($SITE_APPLETOUCH_ICON) ?>">
<link rel="stylesheet" href="<?= htmlspecialchars($BS_CORE_CSS) ?>">
<link rel="stylesheet" href="<?= htmlspecialchars($SITE_CSS) ?>">
<?php echo Theme::css('css/style.css'); ?>
<?= $FONTAWESOME ?>
<?= $GOOGLEANALYTICS ?>
<?= $SHARETHIS ?>Code: Select all
<?php echo Theme::css('css/style.css'); ?>Code: Select all
<link rel="stylesheet" href="<?= htmlspecialchars($BS5BLOG_CSS) ?>">I am only speaking of a website that has already been made, and then installing bludit as a blog section. If your site already has bootstrap installed in its' own folder, then why use others for other software? If you only use bludit for your entire website then you should have no issues using the provided themes.
.. also .. you should know that I am a complete idiot while trying to create this theme. I wish I knew more of the bludit variables to call data sets. For example, a blog admin or user should be allowed to have a profile link in the users admin profile/account area. So when a user publishes a blog their username can link to a profile page either on site or off site.

