From: Anthony Talarico Date: Tue, 30 Jan 2018 14:10:57 +0000 (-0500) Subject: adding manufacturers to the front page X-Git-Tag: v1.0.7^2~1^2~2 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=c6ebbb96883c98206877afdc7d9d0d3720421beb;p=WP-Themes%2Fbrewbakers.git adding manufacturers to the front page adding manufacturers dropdown section to the front page --- 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