Hide Cats and Credit Cards by default
authorLaury GvR <laury@gaslightmedia.com>
Tue, 26 Jan 2016 17:18:25 +0000 (12:18 -0500)
committerLaury GvR <laury@gaslightmedia.com>
Tue, 26 Jan 2016 17:18:39 +0000 (12:18 -0500)
classes/data/settings/dataSettingsGeneral.php
setup/databaseScripts/create_database_V1.0.43.sql
views/front/members/list.html

index a7f8866..c803295 100644 (file)
@@ -380,7 +380,7 @@ class GlmDataSettingsGeneral extends GlmDataAbstract
                 'list_show_categories' => array(
                         'field' => 'list_show_categories',
                         'type' => 'checkbox',
-                        'default' => true,
+                        'default' => false,
                         'use' => 'a'
                 ),
 
@@ -388,7 +388,7 @@ class GlmDataSettingsGeneral extends GlmDataAbstract
                 'list_show_creditcards' => array(
                         'field' => 'list_show_creditcards',
                         'type' => 'checkbox',
-                        'default' => true,
+                        'default' => false,
                         'use' => 'a'
                 ),
 
index 23e3da2..f243f0f 100644 (file)
@@ -542,8 +542,8 @@ CREATE TABLE {prefix}settings_general (
   list_show_url BOOLEAN DEFAULT '1',
   list_show_url_newtarget BOOLEAN DEFAULT '1',
   list_show_email BOOLEAN DEFAULT '1',
-  list_show_categories BOOLEAN DEFAULT '1',
-  list_show_creditcards BOOLEAN DEFAULT '1',
+  list_show_categories BOOLEAN DEFAULT '0',
+  list_show_creditcards BOOLEAN DEFAULT '0',
   list_show_amenities BOOLEAN DEFAULT '0',
   list_map_show_detaillink BOOLEAN DEFAULT '1',
   list_map_show_logo BOOLEAN DEFAULT '0',
@@ -579,8 +579,8 @@ CREATE TABLE {prefix}settings_general (
   detail_show_url BOOLEAN DEFAULT '1',
   detail_show_url_newtarget BOOLEAN DEFAULT '1',
   detail_show_email BOOLEAN DEFAULT '1',
-  detail_show_categories BOOLEAN DEFAULT '1',
-  detail_show_creditcards BOOLEAN DEFAULT '1',
+  detail_show_categories BOOLEAN DEFAULT '0',
+  detail_show_creditcards BOOLEAN DEFAULT '0',
   detail_show_amenities BOOLEAN DEFAULT '1',
   detail_show_imagegallery BOOLEAN DEFAULT '1',
   detail_show_coupons BOOLEAN DEFAULT '0',
index 87e79da..35e57c8 100644 (file)
                     {apply_filters('glm-member-db-front-members-list-memberDetailBottom', '', $m.id)}
                 </div>
                 <div class="glm-member-list-description small-12 medium-4 left columns">
-                {apply_filters('glm-member-db-front-members-list-memberDescriptionTop', '', $m.id)}                        
-            {if $m.short_descr && $settings.list_show_short_descr}
-                {$m.short_descr|nl2br}
-            {elseif $m.descr && $settings.list_show_description}
-                {$m.descr|nl2br}
-            {/if}
-                {apply_filters('glm-member-db-front-members-list-memberDescriptionBottom', '', $m.id)}
+                    <div>
+                    {apply_filters('glm-member-db-front-members-list-memberDescriptionTop', '', $m.id)}                        
+                    {if $m.short_descr && $settings.list_show_short_descr}
+                        {$m.short_descr|nl2br}
+                    {elseif $m.descr && $settings.list_show_description}
+                        {$m.descr|nl2br}
+                    {/if}
+                    {apply_filters('glm-member-db-front-members-list-memberDescriptionBottom', '', $m.id)}
+                    </div>
                 {if $m.categories && $settings.list_show_categories}
-                        <p>
                             <b>{$terms.term_member_cap} Categories</b>
                             <ul>
                     {foreach $m.categories as $c}
                                 </li>
                     {/foreach}
                             </ul>
-                        </p>
                 {/if}
-                {if $m.cc_type && $settings.list_show_creditcards}
-                        <p>           
+                {if $m.cc_type && $settings.list_show_creditcards}       
                             <b>Credit Cards Accepted:</b>
                             <ul>
                     {foreach $m.cc_type.names as $c}
                                 <li>{$c}</li>
                     {/foreach}
-                            </ul>        
-                        </p>
+                            </ul>
                 {/if}
                 {if $m.amenities && $settings.list_show_amenities}
-                        <p>
                             <b>{$terms.term_member_cap} Amenities</b>
                             <ul>
                     {foreach $m.amenities as $A}
                                 </li>
                     {/foreach}
                             </ul>
-                        </p>
                 {/if}
                     </div>
                     </div>