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/dusk/functions.php
<?php

$themecolors = array(
	'bg' => 'eeeae8',
	'text' => '000000',
	'link' => '497ca7',
	'border' => 'eeeae8'
);

$content_width = 495;

register_sidebars(1);

function dusk_widgets_init() {
	unregister_widget('WP_Widget_Search');
	register_sidebar_widget('Search', 'dusk_search', null, 'search');
}
add_action('widgets_init', 'dusk_widgets_init');

function dusk_search() {
?>
<li>
	<form id="searchform" method="get" action="<?php bloginfo('url'); ?>">
	<h2>Search:</h2>
	<p><input type="text" class="input" name="s" id="search" size="15" />
	<input name="submit" type="submit" value="<?php esc_attr_e( 'GO' ); ?>" /></p>
	</form>
</li>
<?php
}

add_theme_support( 'automatic-feed-links' );

// Custom background
add_custom_background();

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

function dusk_comment($comment, $args, $depth) {
	$GLOBALS['comment'] = $comment;
	extract($args, EXTR_SKIP);
?>
	<li <?php comment_class(); ?> id="comment-<?php comment_ID() ?>">
		<?php if ($args['avatar_size'] != 0) { ?><div class="avatar"><?php echo get_avatar( $comment, $args['avatar_size'] ); ?></div><?php } ?>
		<h4 class="commentauthor vcard"><span class="fn"><?php comment_author_link() ?></span> <span class="says"><?php _e('said,'); ?></span></h4>
		<p class="comment-meta commentmetadata commentmeta"><?php comment_date() ?> <?php _e('at'); ?> <a href="#comment-<?php comment_ID() ?>" title="<?php _e('Permanent link to this comment'); ?>"><?php comment_time() ?></a> <?php edit_comment_link(__('Edit'),' &#183; ',''); ?></p>
		<div id="div-comment-<?php comment_ID() ?>">
			<?php comment_text() ?>
		<div class="reply">
			<?php comment_reply_link(array_merge( $args, array('add_below' => 'div-comment', 'depth' => $depth, 'max_depth' => $args['max_depth']))) ?>
		</div>
		</div>
<?php 
}