/**
* Bail Hotline functions and definitions
*
* @package Bail Hotline
*/
/**
* Set the content width based on the theme's design and stylesheet.
*/
if ( ! isset( $content_width ) ) {
$content_width = 640; /* pixels */
}
if ( ! function_exists( 'bail_hotline_setup' ) ) :
/**
* Sets up theme defaults and registers support for various WordPress features.
*
* Note that this function is hooked into the after_setup_theme hook, which
* runs before the init hook. The init hook is too late for some features, such
* as indicating support for post thumbnails.
*/
function bail_hotline_setup() {
/*
* Make theme available for translation.
* Translations can be filed in the /languages/ directory.
* If you're building a theme based on Bail Hotline, use a find and replace
* to change 'bail-hotline' to the name of your theme in all the template files
*/
load_theme_textdomain( 'bail-hotline', get_template_directory() . '/languages' );
// Add default posts and comments RSS feed links to head.
add_theme_support( 'automatic-feed-links' );
/*
* Enable support for Post Thumbnails on posts and pages.
*
* @link http://codex.wordpress.org/Function_Reference/add_theme_support#Post_Thumbnails
*/
add_theme_support( 'post-thumbnails' );
// This theme uses wp_nav_menu() in one location.
register_nav_menus( array(
'primary' => 'Primary Header Menu',
'secondary' => 'Secondary Header Menu',
'tertiary' => 'Footer Menu',
'footer_column_1' => 'Footer Column 1',
'footer_column_2' => 'Footer Column 2',
'footer_column_3' => 'Footer Column 3',
'footer_column_4' => 'Footer Column 4',
) );
// Enable support for Post Formats.
add_theme_support( 'post-formats', array( 'aside', 'image', 'video', 'quote', 'link' ) );
// Setup the WordPress core custom background feature.
add_theme_support( 'custom-background', apply_filters( 'bail_hotline_custom_background_args', array(
'default-color' => 'ffffff',
'default-image' => '',
) ) );
// Enable support for HTML5 markup.
add_theme_support( 'html5', array(
'comment-list',
'search-form',
'comment-form',
'gallery',
'caption',
) );
}
endif; // bail_hotline_setup
add_action( 'after_setup_theme', 'bail_hotline_setup' );
/* Function used to create widget areas in the Bail Hotline theme */
function create_bailhotline_widget( $name, $id, $description ){
register_sidebar( array(
'name' => __($name),
'id' => $id,
'description' => $description,
'before_widget' => '
With over 36 locations located throughout California, Bail Hotline Bail Bonds continues to grow in order to service your needs. If you cannot make it to one of our offices, we can come to you. To find a bail bonds office close to you, simply click the “find a California bail bonds office” link and you will be forwarded to a directory containing all of our bail bond offices in California.