From c6ebbb96883c98206877afdc7d9d0d3720421beb Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Tue, 30 Jan 2018 09:10:57 -0500 Subject: [PATCH] adding manufacturers to the front page adding manufacturers dropdown section to the front page --- parts/manufacturers.php | 54 +++++++++++++++++++++++++++++++++++++ sections/front-page.php | 1 + sections/interior-page.php | 55 +------------------------------------- 3 files changed, 56 insertions(+), 54 deletions(-) create mode 100644 parts/manufacturers.php diff --git a/parts/manufacturers.php b/parts/manufacturers.php new file mode 100644 index 0000000..b78c712 --- /dev/null +++ b/parts/manufacturers.php @@ -0,0 +1,54 @@ + +$value){ + + if($value['parent']['value'] === 0){ + $manufacturer_name = $value['name']; + $manufacturers[$manufacturer_name] = false; + } else { + $brand = $value['name']; + $manufacturers[$manufacturer_name][] = array('brand'=>$brand,'id'=>$value['id']); + } +} +unset($manufacturers['RV Classes']); +//echo '
',print_r($manufacturers),'
' +?> +
+
+ + + + + + $value){ + if(strpos($key, $block->post_title) !== false){ + $manufacturer = $key; + } + } ?> + +
+ + url){ ?> + + + + ID); ?> + url){ ?> + + + +
    + $value){ ?> +
  • + + + +
  • + +
+ +
+ + + +
+
\ No newline at end of file diff --git a/sections/front-page.php b/sections/front-page.php index 6baf92d..2b44970 100644 --- a/sections/front-page.php +++ b/sections/front-page.php @@ -8,5 +8,6 @@
+ diff --git a/sections/interior-page.php b/sections/interior-page.php index 9893a2b..80cd1ea 100644 --- a/sections/interior-page.php +++ b/sections/interior-page.php @@ -27,59 +27,6 @@ - - $value){ - - if($value['parent']['value'] === 0){ - $manufacturer_name = $value['name']; - $manufacturers[$manufacturer_name] = false; - } else { - $brand = $value['name']; - $manufacturers[$manufacturer_name][] = array('brand'=>$brand,'id'=>$value['id']); - } - } - unset($manufacturers['RV Classes']); - //echo '
',print_r($manufacturers),'
' - ?> -
-
- - - - - - $value){ - if(strpos($key, $block->post_title) !== false){ - $manufacturer = $key; - } - } ?> - -
- - url){ ?> - - - - ID); ?> - url){ ?> - - - -
    - $value){ ?> -
  • - - - -
  • - -
- -
- - - -
-
+ \ No newline at end of file -- 2.17.1