From: Anthony Talarico Date: Thu, 13 Apr 2017 16:47:18 +0000 (-0400) Subject: changing the manufacturer ids array in the functions.php file to test on dev55 X-Git-Tag: v1.0.0^2~46 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=cbc4a25b7c2c606c809b55d727883033fad458d3;p=WP-Themes%2Fbrewbakers.git changing the manufacturer ids array in the functions.php file to test on dev55 functions.php has a filter that returns an array of category ids, I have one set for local and one set for dev55, pushing the set for dev55 to see if it works with the current category structure --- diff --git a/functions.php b/functions.php index c32d70f..649695a 100644 --- a/functions.php +++ b/functions.php @@ -20,7 +20,8 @@ if (!function_exists('glm_quicksite_widget_init')) { } add_filter('manufacturer_ids', function(){ - $ids = [3,11]; +// $ids = [3,11]; + $ids = [165,143,140,178,149,224]; return $ids; }); /** diff --git a/glm-member-db/views/front/members/list.html b/glm-member-db/views/front/members/list.html index 5d2d69e..9873cae 100644 --- a/glm-member-db/views/front/members/list.html +++ b/glm-member-db/views/front/members/list.html @@ -38,17 +38,11 @@ {$rvTypes = array()} {$rvManufacturers = array()} {$brands = array()} + {foreach from=$categories item=v} {if $v.id|in_array:$manufacturer_ids} - - {else} - - {/if} - {if $v.parent == 'RV Classes'} - {$rvTypes[$v.id] = $v} - {elseif $v.parent == 'RV Manufacturers'} - {$rvManufacturers[$v.id] = $v} - {elseif $v.parent == 'Brands'} + {$rvManufacturers[$v.id] = $v} + {elseif $v.parent_id|in_array:$manufacturer_ids} {$brands[$v.id] = $v} {/if} {/foreach}