summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorspiderr <spiderr@bitweaver.org>2024-09-26 14:49:05 -0400
committerspiderr <spiderr@bitweaver.org>2024-09-26 14:49:05 -0400
commit120622ca7c89d599b35013f19c38793daf73dee1 (patch)
treef551c93c46503d42ab5bcef74123e00e7ea44b1d
parent4e37099bfeee6e7e0677bc8eacb2f37eab72af00 (diff)
downloadthemes-120622ca7c89d599b35013f19c38793daf73dee1.tar.gz
themes-120622ca7c89d599b35013f19c38793daf73dee1.tar.bz2
themes-120622ca7c89d599b35013f19c38793daf73dee1.zip
rename antiquated bit- css classes and cookie to bw-
-rw-r--r--css/base.css4
-rw-r--r--css/menuhor.css4
-rw-r--r--modules/mod_switch_theme.php4
-rw-r--r--switch_theme.php6
4 files changed, 9 insertions, 9 deletions
diff --git a/css/base.css b/css/base.css
index c38bad6..6ee09bc 100644
--- a/css/base.css
+++ b/css/base.css
@@ -272,7 +272,7 @@ ul.structure-toc ul {
margin-left: 20px;
}
-.bit-columns {
+.bw-columns {
-webkit-column-count: 3;
-webkit-column-gap: 10px;
-webkit-column-fill: auto;
@@ -284,7 +284,7 @@ column-gap: 15px;
column-fill: auto;
}
-.bit-column-cell {
+.bw-column-cell {
display: inline-block;
-webkit-column-break-inside: avoid;
-moz-column-break-inside: avoid;
diff --git a/css/menuhor.css b/css/menuhor.css
index fb02b2a..7a69920 100644
--- a/css/menuhor.css
+++ b/css/menuhor.css
@@ -16,11 +16,11 @@ ul.hor li ul ul {margin:-21px 0 0 13em;}
ul.hor li.m-admin li a {margin:0;}
/* set some background colors for visibility */
/* thanks to our favourite browser we can't simply inherit the values */
-#bittopbar {z-index:1000;}
+#bw-top-bar {z-index:1000;}
ul.hor {z-index:1001;}
ul.hor ul {z-index:1002;}
ul.hor ul ul {z-index:1003;}
-#bittopbar,
+#bw-top-bar,
ul.hor,
ul.hor li,
ul.hor li ul {background:#fff; z-index:1004;}
diff --git a/modules/mod_switch_theme.php b/modules/mod_switch_theme.php
index 4b48e00..76338e9 100644
--- a/modules/mod_switch_theme.php
+++ b/modules/mod_switch_theme.php
@@ -18,8 +18,8 @@ if( $change_theme == 'y' ) {
$userStyle = $gBitUser->getPreference('theme');
$style = empty($userStyle) ? $style : $userStyle;
}
- if (isset($_COOKIE['bit-theme'])) {
- $style = $_COOKIE['bit-theme'];
+ if (isset($_COOKIE['bw-theme'])) {
+ $style = $_COOKIE['bw-theme'];
}
$styles = $gBitThemes->getStyles( NULL, TRUE );
diff --git a/switch_theme.php b/switch_theme.php
index e329b6f..4d8f867 100644
--- a/switch_theme.php
+++ b/switch_theme.php
@@ -22,12 +22,12 @@ if (isset($_GET['theme']) && $gBitSystem->getConfig('users_themes') == 'y'){
if(isset($gBitUser) && $gBitSystem->getConfig('users_preferences') == 'y' ) {
$gBitUser->storePreference('theme',$new_theme);
- setcookie('bit-theme', '', time()-3600*24*30*12, $gBitSystem->getConfig('cookie_path'), $gBitSystem->getConfig('cookie_domain'));
+ setcookie('bw-theme', '', time()-3600*24*30*12, $gBitSystem->getConfig('cookie_path'), $gBitSystem->getConfig('cookie_domain'));
} else {
- setcookie('bit-theme', $new_theme, time()+3600*24*30*12, $gBitSystem->getConfig('cookie_path'), $gBitSystem->getConfig('cookie_domain'));
+ setcookie('bw-theme', $new_theme, time()+3600*24*30*12, $gBitSystem->getConfig('cookie_path'), $gBitSystem->getConfig('cookie_domain'));
}
} else{
- setcookie('bit-theme', '', time()-3600*24*30*12, $gBitSystem->getConfig('cookie_path'), $gBitSystem->getConfig('cookie_domain'));
+ setcookie('bw-theme', '', time()-3600*24*30*12, $gBitSystem->getConfig('cookie_path'), $gBitSystem->getConfig('cookie_domain'));
}
header("location: $orig_url");