HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: /home/mmickelson/theflexguys.com/baronconstruct/wp-content/themes/almost-spring/functions.php
<?php

$themecolors = array(
	'bg' => 'ffffff',
	'text' => '000000',
	'link' => 'E58712',
	'url' =>  'E58712'
	);

$content_width = 480;

function widget_almostspring_search() {
?>
	<li>
		<h2><?php _e('Search'); ?></h2>
		<?php get_search_form(); ?>
	</li>
<?php
}

register_sidebar(array(
	'before_title' => '<div><h2>',
	'after_title' => "</h2></div>\n",
));

function almostspring_widgets_init() {
	unregister_widget('WP_Widget_Search');
	wp_register_sidebar_widget('search', __('Search'), 'widget_almostspring_search');
}
add_action('widgets_init', 'almostspring_widgets_init');

add_theme_support( 'automatic-feed-links' );

// Custom background
add_custom_background();

function almostspring_custom_background() {
	if ( '' != get_background_color() && '' == get_background_image() ) { ?>
	<style type="text/css">
		body { background-image: none; }
	</style>
	<?php }
}
add_action( 'wp_head', 'almostspring_custom_background' );