Member list blocks title removed, url added around image
authorLaury GvR <laury@gaslightmedia.com>
Fri, 14 Apr 2017 19:03:01 +0000 (15:03 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Fri, 14 Apr 2017 19:03:01 +0000 (15:03 -0400)
glm-member-db/views/front/members/list.html

index 67b14dd..dfcd634 100644 (file)
                                     </select>
                                 {/if}
                             </div>
-          
+
                             {if !empty($smarty.post.manufacturers)}
                                 {foreach $smarty.post.manufacturers as $key=>$value}
                                     {$manufacturers[] = $value}
                                 {/foreach}
                             {/if}
-                 
+
                              {$manufacturer_ids=apply_filters('manufacturer_ids', '')}
                             {if $settings.list_show_search_category}
                                 {$rvTypes = array()}
@@ -56,7 +56,7 @@
                                 {/foreach}
                                 <div>
 
-                                
+
                                     <select name="categorySearchMultiple[]" id="rvTypes" title="Click to Select Types" multiple="multiple">
                                         {foreach $rvTypes as $item => $v}
                                         <option value="{$v.id}"{if $v.default} selected="selected"{/if}>{$v.name}</option>
@@ -74,7 +74,7 @@
                                 <hr>
                             </div>
                         </form>
-            
+
                         <form id="manufacturer-form" action="{$thisUrl}?glm_action=list" method="post" enctype="multipart/form-data">
                             {if $settings.list_show_search_category}
                                 <div>
             {if $smarty.foreach.glm_block.index % 3 == 0}
                 <div class="glm-row">
             {/if}
-                {if $block->url}
-                    <a href="{$block->url}">
-                {/if}
                     <div class="glm-small-12 glm-medium-4 glm-column">
-                        <h4>{$block->post_title}</h4>
+
+                        {if $block->url}
+                            <a href="{$block->url}">
+                        {/if}
                         {apply_filters('glm_block_image', $block->ID)}
+
+                        {if $block->url}
+                            </a>
+                        {/if}
                     </div>
-                {if $block->url}
-                    </a>
-                {/if}
             {if $smarty.foreach.glm_block.index % 3 == 2}
                 </div>
             {/if}
                     $("#rvManufacturers").prev().prev().prop("disabled",false);
                 }
             });
-                
+
 //            $('#manufacturer-form').submit(function(e){
 //                if( $('#brands').prev().children('li').length > 0 ){
 //                    $('#rvManufacturers').removeAttr('name');
 //                }
-//       
+//
 //            });
 
 
             jQuery('select[multiple]').asmSelect();
-            
-       
-                
+
+
+
 //            if( $('#brands').prev().children('li').length > 0 ){
 //               $("#rvManufacturers").prev().prev().prop("disabled","disabled");
 //            }
 
             if( $('#rvManufacturers').prev().children('li').length > 0 ){
-                
-                $('#brands option').remove();  
+
+                $('#brands option').remove();
                 var brands      = [];
                 var cat_id = $('#rvManufacturers').val();
-                
+
                 $.each(cat_id, function(index, item){
                     var select_id = item;
                     $.each(categories , function(index, item){