Added gold option

This commit is contained in:
Kenneth John Odle 2021-07-01 18:58:48 -04:00
parent b4f4830a07
commit ca8642fca8
3 changed files with 70 additions and 5 deletions

30
css/chgold.css Normal file
View File

@ -0,0 +1,30 @@
/* Contextual Help Settings */
/* BLUE */
#contextual-help-link-wrap,
#contextual-help-wrap {
border-bottom: 1px solid #c58748;
border-left: 1px solid #c58748;
border-right: 1px solid #c58748;
background: #f0d5b9;
}
#contextual-help-link-wrap { /* Fixes bottom border issue on #contextual-help-wrap */
border-top: none;
margin-right: 1px;
margin-top: -1px;
}
a#contextual-help-link {
color: #c58748;
font-weight: bold;
}
a#contextual-help-link:hover {
color: #00138B;
}
/* WP 4.4 fix */
button#contextual-help-link,
button#show-settings-link {
box-shadow: none;
}

29
css/sogold.css Normal file
View File

@ -0,0 +1,29 @@
/* Screen Options Settings */
/* BLUE */
#screen-options-link-wrap,
#screen-options-wrap {
border-bottom: 1px solid #c58748;
border-left: 1px solid #c58748;
border-right: 1px solid #c58748;
background: #f0d5b9;
}
#screen-options-link-wrap { /* Fixes bottom border issue on #screen-options-wrap */
border-top: none;
margin-top: -1px;
}
a#show-settings-link {
color: #c58748;
font-weight: bold;
}
a#show-settings-link:hover {
color: #00138B;
}
/* WP 4.4 fix */
button#contextual-help-link,
button#show-settings-link {
box-shadow: none;
}

View File

@ -131,7 +131,7 @@ function so_settings_section() {
// Callback for settings_field for Screen Options tab
function so_settings_field(){
$options = get_option( 'd12sr_options' );
$items = array("Red", "Green", "Blue", "Purple", "Default");
$items = array("Red", "Green", "Blue", "Purple", "Gold", "Default");
echo "<select id='d12sr-so' name='d12sr_options[so]'>";
foreach($items as $item) {
$selected = ($options[so]==$item) ? 'selected="selected"' : '';
@ -143,7 +143,7 @@ function so_settings_field(){
// Callback for settings_field for Contextual Help tab
function ch_settings_field(){
$options = get_option( 'd12sr_options' );
$items = array("Red", "Green", "Blue", "Purple", "Default");
$items = array("Red", "Green", "Blue", "Purple", "Gold", "Default");
echo "<select id='d12sr-ch' name='d12sr_options[ch]'>";
foreach($items as $item) {
$selected = ($options[ch]==$item) ? 'selected="selected"' : '';
@ -171,9 +171,12 @@ function d12so_retrieve() {
case "Blue" :
wp_register_style( 'd12sr_admin_socss', plugins_url('css/soblue.css', __FILE__), false, '1.0.0' );
break;
case "Purple" :
wp_register_style( 'd12sr_admin_socss', plugins_url('css/sopurple.css', __FILE__), false, '1.0.0' );
break;
case "Purple" :
wp_register_style( 'd12sr_admin_socss', plugins_url('css/sopurple.css', __FILE__), false, '1.0.0' );
break;
case "Gold" :
wp_register_style( 'd12sr_admin_socss', plugins_url('css/sogold.css', __FILE__), false, '1.0.0' );
break;
default:
return;
}
@ -198,6 +201,9 @@ function d12ch_retrieve() {
case "Purple" :
wp_register_style( 'd12sr_admin_chcss', plugins_url('css/chpurple.css', __FILE__), false, '1.0.0' );
break;
case "Gold" :
wp_register_style( 'd12sr_admin_chcss', plugins_url('css/chgold.css', __FILE__), false, '1.0.0' );
break;
default:
return;
}