__( 'Primary Navigation', 'placester' ), ) ); // This theme allows users to set a custom background add_custom_background(); // Your changeable header business starts here if ( ! defined( 'HEADER_TEXTCOLOR' ) ) define( 'HEADER_TEXTCOLOR', '' ); // Define default header image if ( ! defined( 'HEADER_IMAGE' ) ) define( 'HEADER_IMAGE', '%s/images/sample-slide.png' ); define( 'HEADER_IMAGE_WIDTH', apply_filters( 'allure_header_image_width', 620 ) ); define( 'HEADER_IMAGE_HEIGHT', apply_filters( 'allure_header_image_height', 323 ) ); // We'll be using post thumbnails for custom header images on posts and pages. // We want them to be 940 pixels wide by 198 pixels tall. // Larger images will be auto-cropped to fit, smaller ones will be ignored. See header.php. set_post_thumbnail_size( HEADER_IMAGE_WIDTH, HEADER_IMAGE_HEIGHT, true ); // Don't support text inside the header image. if ( ! defined( 'NO_HEADER_TEXT' ) ) define( 'NO_HEADER_TEXT', true ); add_custom_image_header( '', 'placester_admin_header_style' ); } // ================================== // = Standard Functions / Utilities = // ================================== /** * Switch theme */ include('backbone/functions/enqueue.php'); include("parts/enqueue.php"); // Thats all you need =) include('backbone/init.php'); /** * switch_theme.php makes the necessary updates to the users pages * once the theme is activated */ require('parts/switch_theme.php'); function placester_footer_nav() { ?> TRUE)); } catch (PlaceSterNoApiKeyException $e) { return; } $i = 1; $flag = FALSE; // print_r($featured_listings); foreach ($featured_listings->properties as $listing) { if ($i == $limit) $flag = TRUE; ?>
location->full_address; ?>

bedrooms . ' bed, ' . $listing->bathrooms . ' bath for $' . $listing->price . ' available ' . $listing->available_on ?>

Learn More
TRUE)); } catch (PlaceSterNoApiKeyException $e) { } $i = 1; $flag = FALSE; // print_r($featured_listings); foreach ($new_listings->properties as $listing) { if ($i == $limit) $flag = TRUE; ?>
location->full_address; ?>

bedrooms . ' bed, ' . $listing->bathrooms . ' bath for $' . $listing->price . ' available ' . $listing->available_on ?>

Learn More
city); $selected = TRUE; foreach ($locations->city as $city) { ?> city); $last_flag = FALSE; $i = 1; foreach ($locations->city as $city) { if ($num_results && $i == $num_results) { $last_flag = true; } ?>
  • >
  • zip); $last_flag = FALSE; $i = 1; foreach ($locations->zip as $zip) { if ($num_results && $i == $num_results) { $last_flag = true; } ?>
  • >
  • ID; global $wp_rewrite; if ($wp_rewrite->using_permalinks()) { $form->search_url = get_permalink($search_page_id); $form->hidden_field = ''; } else { $form->search_url = "index.php"; $form->hidden_field = ""; } return $form; } /** * For Building the Unstructured list on the search page */ function display_unstructured_list() { include('parts/unstructured_list.php'); } /** * When viewing a listing details page, grab the post data and make it available. */ function get_property_details() { global $post; $listing = json_decode($post->post_content); return $listing; } /** * Registers the various sidebars for Allure */ function register_custom_sidebars() { // Footer Control For all Pages. register_sidebar( array( 'name' => __( 'Allure Footer', 'allure' ), 'id' => 'allure-footer-widget-area', 'description' => __( 'These widgets will be displayed in the footer', 'allure' ), 'before_widget' => '
  • ', 'after_widget' => '
  • ', 'before_title' => '

    ', 'after_title' => '

    ', ) ); // Footer Control For Search register_sidebar( array( 'name' => __( 'Allure Search Sidebar', 'allure' ), 'id' => 'allure-search-widget-area', 'description' => __( 'These widgets will be displayed in the sidebar on the search page', 'allure' ), 'before_widget' => '
  • ', 'after_widget' => '
  • ', 'before_title' => '

    ', 'after_title' => '

    ', ) ); // Sidebar control for all blog register_sidebar( array( 'name' => __( 'Allure Blog Sidebar', 'allure' ), 'id' => 'allure-blog-widget-area', 'description' => __( 'These widgets will be displayed on the blog and all posts.', 'allure' ), 'before_widget' => '
  • ', 'after_widget' => '
  • ', 'before_title' => '

    ', 'after_title' => '

    ', ) ); // Sidebar Control For all Property Details. register_sidebar( array( 'name' => __( 'Allure Property Details Sidebar', 'allure' ), 'id' => 'allure-details-widget-area', 'description' => __( 'These widgets will be displayed on all property details pages.', 'allure' ), 'before_widget' => '
  • ', 'after_widget' => '
  • ', 'before_title' => '

    ', 'after_title' => '

    ', ) ); } add_action( 'widgets_init', 'register_custom_sidebars' );