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/theflexguy.com/wp-content/themes/primepress/functions.php
<?php 
require_once(TEMPLATEPATH . '/library/pp-options.php');
require_once(TEMPLATEPATH . '/library/widgets.php');

add_action( 'init', 'primepress_register_menus' );
function primepress_register_menus() {
	register_nav_menus(
		array(
			'primary-menu' => 'Primary Menu'
		)
	);
}
// add support for post thumbnails
add_theme_support('post-thumbnails');
// add the feed links in the head
add_theme_support('automatic-feed-links');
// enable the custom background option
add_custom_background();

//Set the content width.
	if ( (!isset($content_width)) && (get_option('pp_layout_setup') == 'content-480px' ) ) {
		$content_width = 480;
	} elseif ( (!isset($content_width)) && (get_option('pp_layout_setup') == 'content-580px' ) ) {
		$content_width = 580;
	} elseif ( (!isset($content_width)) && (get_option('pp_layout_setup') == 'content-620px' ) ) {
		$content_width = 620;
	} else {
		$content_width = 540;
	}

// link the post thumbnails to the post
add_filter( 'post_thumbnail_html', 'pp_post_image_html', 10, 3 );
function pp_post_image_html( $html, $post_id, $post_image_id ) {
	$html = '<a href="' . get_permalink( $post_id ) . '" title="' . esc_attr( get_post_field( 'post_title', $post_id ) ) . '">' . $html . '</a>';
	return $html;
}

// exceprt options
function pp_the_content() {
	if ( ( get_option('pp_home_excerpts') == 'true' && is_home() ) || ( get_option('pp_category_excerpts') == 'true' && is_category() ) || ( get_option('pp_tag_excerpts') == 'true' && is_tag() ) || ( get_option('pp_date_excerpts') == 'true' && is_date() ) ) {
		the_excerpt();
	} else {
		the_content();
	}
}

function pp_excerpt_length( $length ) {
	if (get_option('pp_excerpt_length')) {
		return get_option('pp_excerpt_length');
	}
}
add_filter( 'excerpt_length', 'pp_excerpt_length' );

function pp_breadcrubs() {
	if ( function_exists('bcn_display') ) {
		echo '<div class="breadcrumb-nav">';
		bcn_display();
		echo '</div>';
	} elseif ( function_exists('yoast_breadcrumb') ) {
		echo '<div class="breadcrumb-nav">';
		yoast_breadcrumb('<p>','</p>');
		echo '</div>';
	}

}
?>