From fffe7d0d10628d7727a346b0b283c3a18d4c8641 Mon Sep 17 00:00:00 2001 From: Ian Weller Date: Tue, 10 Feb 2015 14:28:54 -0500 Subject: [PATCH] php format --- footer.php | 61 ++++++++++++++++++++++++++++++++++ front-page.php | 51 ++++++++++++++++++++++++++++ functions.php | 90 ++++++++++++++++++++++++++++++++++++++++++++++++++ header.php | 68 ++++++++++++++++++++++++++++++++++++++ index.php | 51 ++++++++++++++++++++++++++++ page.php | 18 ++++++++++ sidebar.php | 15 +++++++++ style.css | 7 ++++ 8 files changed, 361 insertions(+) create mode 100644 footer.php create mode 100644 front-page.php create mode 100644 functions.php create mode 100644 header.php create mode 100644 index.php create mode 100644 page.php create mode 100644 sidebar.php create mode 100644 style.css diff --git a/footer.php b/footer.php new file mode 100644 index 0000000..c3f969c --- /dev/null +++ b/footer.php @@ -0,0 +1,61 @@ +
+
+

The Gilmore Car Musuem

+

6865 W Hickory Rd. Hickory Corners, MI 49060 • 269-671-5089 • Directions

+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+
+ +
+ + + + + + + + + + diff --git a/front-page.php b/front-page.php new file mode 100644 index 0000000..a748b9e --- /dev/null +++ b/front-page.php @@ -0,0 +1,51 @@ + +
+
+
+
+
+
+ + + + +
+
+
+
+
+
+

Welcome

+

On a 90-acre historic campus midway between Detroit and Chicago is the Gilmore Car Museum. Here, visitors shoot the breeze in an old-fashioned gas station. Children stand inches from a 1930 Rolls-Royce that’s from a Disney® movie. Grandparents share stories about a ’57 Chevy, as their smiles are reflected in the car’s chrome. Stroll the campus. Eat lunch in our authentic Blue Moon Diner. Walk right upto an amazing collection of over 300 vintage automobiles, motorcycles, and memories. It’s America’s Signature Collection. And the ultimate experience for everyone in your family.

+
+
+

News

+
+ +

Sunday, June 7, 2015

Classic Car Club of
American Museum
"Grand Experience"

+

Saturday, June 13, 2015

Pre-Show Vintage
Motorcycle Ride

+

Sunday, June 14, 2015

One Example Event

+ +
+
+
+

Upcoming Events

+
+ +

Pint with the Past
Saturday, February 14th
7:00pm - 10:00pm

+

Under the Hood
February 27, 2015 - March 1, 2015
Open during regular GCM hours

+

Cars and Canvas
Sunday, March 15th
2:00pm - 6:00pm

+ +
+
+
+

Featured Partner

+
+ +

Did you know we have 7 onsite partner museums?

+

Our featured partner this month is the H.H. Franklin Club. This permanent exhibit includes automobiles, engines, and artifacts that span the four-decade history of the H.H. Franklin Company.

+ +
+
+
+ \ No newline at end of file diff --git a/functions.php b/functions.php new file mode 100644 index 0000000..d64446b --- /dev/null +++ b/functions.php @@ -0,0 +1,90 @@ + 'page', + 'parent' => $parent, + 'number' => '', + 'exclude' => $frontPageId, + 'post_status' => 'publish', + 'sort_order' => 'asc', + 'sort_column' => 'menu_order' + )); + echo ''."\n"; + foreach ($pages as $page) { + $childs = get_pages('child_of=' . $page->ID); + if (count($childs) > 0) { + echo '
  • '."\n"; + echo ''.$page->post_title.''."\n"; + echo glm_page_menu($page->ID, 'sub-menu dropdown'); + echo '
  • '."\n"; + } else { + echo '
  • '.$page->post_title.'
  • '."\n"; + } + } + echo ''."\n"; +} + + +/** + * glm_offcanvas_menu + * + * Generate the list of pages as nested ul li list + */ +function glm_offcanvas_menu() +{ + wp_page_menu(array( + 'depth' => 0, + 'sort_column' => 'menu_order', + 'menu_class' => 'left-off-canvas-list' + )); +} + +function glm_site_scripts() +{ + wp_enqueue_script( + 'modernizr', + get_template_directory_uri() . '/js/vendor/modernizr.js' + ); + wp_enqueue_script( + 'jquery', + get_template_directory_uri() . '/js/vendor/jquery.js' + ); + wp_enqueue_script( + 'dollarsign', + get_template_directory_uri() . '/js/dollarsign.js' + ); + wp_enqueue_script( + 'foundation', + get_template_directory_uri() . '/js/foundation.min.js', + 'jquery', + '1.0', + true + ); + wp_enqueue_script( + 'pageSetup', + get_template_directory_uri() . '/js/pageSetup.js', + 'foundation', + '1.0', + true + ); + if(is_front_page()) { + wp_enqueue_script( + 'cycle_script', + get_template_directory_uri() . '/js/jquery.cycle2.min.js', + 'jquery', + '1.0', + true + ); + } + +} +add_action('wp_enqueue_scripts', 'glm_site_scripts'); +?> diff --git a/header.php b/header.php new file mode 100644 index 0000000..ffc5522 --- /dev/null +++ b/header.php @@ -0,0 +1,68 @@ + + + + + + Gilmore Car Museum + + + + + + +
    +
    +
    +
    +
    + +
    +
    +
    + +
    + +
    +

    America's Signature Collection

    +
    +
    +
    + + + +
    diff --git a/index.php b/index.php new file mode 100644 index 0000000..a748b9e --- /dev/null +++ b/index.php @@ -0,0 +1,51 @@ + +
    +
    +
    +
    +
    +
    + + + + +
    +
    +
    +
    +
    +
    +

    Welcome

    +

    On a 90-acre historic campus midway between Detroit and Chicago is the Gilmore Car Museum. Here, visitors shoot the breeze in an old-fashioned gas station. Children stand inches from a 1930 Rolls-Royce that’s from a Disney® movie. Grandparents share stories about a ’57 Chevy, as their smiles are reflected in the car’s chrome. Stroll the campus. Eat lunch in our authentic Blue Moon Diner. Walk right upto an amazing collection of over 300 vintage automobiles, motorcycles, and memories. It’s America’s Signature Collection. And the ultimate experience for everyone in your family.

    +
    +
    +

    News

    +
    + +

    Sunday, June 7, 2015

    Classic Car Club of
    American Museum
    "Grand Experience"

    +

    Saturday, June 13, 2015

    Pre-Show Vintage
    Motorcycle Ride

    +

    Sunday, June 14, 2015

    One Example Event

    + +
    +
    +
    +

    Upcoming Events

    +
    + +

    Pint with the Past
    Saturday, February 14th
    7:00pm - 10:00pm

    +

    Under the Hood
    February 27, 2015 - March 1, 2015
    Open during regular GCM hours

    +

    Cars and Canvas
    Sunday, March 15th
    2:00pm - 6:00pm

    + +
    +
    +
    +

    Featured Partner

    +
    + +

    Did you know we have 7 onsite partner museums?

    +

    Our featured partner this month is the H.H. Franklin Club. This permanent exhibit includes automobiles, engines, and artifacts that span the four-decade history of the H.H. Franklin Company.

    + +
    +
    +
    + \ No newline at end of file diff --git a/page.php b/page.php new file mode 100644 index 0000000..9a803bf --- /dev/null +++ b/page.php @@ -0,0 +1,18 @@ + +
    +
    + +
    + +
    + + + +

    + +
    +
    + \ No newline at end of file diff --git a/sidebar.php b/sidebar.php new file mode 100644 index 0000000..930cb22 --- /dev/null +++ b/sidebar.php @@ -0,0 +1,15 @@ + \ No newline at end of file diff --git a/style.css b/style.css new file mode 100644 index 0000000..560c527 --- /dev/null +++ b/style.css @@ -0,0 +1,7 @@ +/* +Theme Name: Gilmore Car Museum +Author: Gaslight Media +Author URI: http://www.gaslightmedia.com +Description: A theme created for Gilmore Car Museum. +Version: 1.0 +*/ \ No newline at end of file -- 2.17.1