From 76cbccfe96bccc607d6aa1045e8c3484e78c3805 Mon Sep 17 00:00:00 2001 From: Laury GvR Date: Tue, 25 Oct 2016 16:28:30 -0400 Subject: [PATCH] Mobile friendly changes for the list front view For mobile size, member list front view: Remove short descriptions and social icons. Toll Free numbers no longer wrap. Option in management to view image or not (logo). --- classes/data/settings/dataSettingsGeneral.php | 28 +++++++++---------- css/front.css | 18 ++++++++++++ views/admin/management/index.html | 7 ++++- views/front/members/list.html | 2 +- 4 files changed, 39 insertions(+), 16 deletions(-) diff --git a/classes/data/settings/dataSettingsGeneral.php b/classes/data/settings/dataSettingsGeneral.php index b815811f..aeaf2e43 100644 --- a/classes/data/settings/dataSettingsGeneral.php +++ b/classes/data/settings/dataSettingsGeneral.php @@ -316,18 +316,18 @@ class GlmDataSettingsGeneral extends GlmDataAbstract // Front-end Listings - Whether the Search/Filters box should be sticky 'list_floating_search' => array( - 'field' => 'list_floating_search', - 'type' => 'checkbox', - 'default' => false, - 'use' => 'a' + 'field' => 'list_floating_search', + 'type' => 'checkbox', + 'default' => false, + 'use' => 'a' ), // Front-end Listings - How far from the top the sticky Search/Filters box should hover 'list_floating_search_distance_top' => array( - 'field' => 'list_floating_search_distance_top', - 'type' => 'integer', - 'default' => 0, - 'use' => 'a' + 'field' => 'list_floating_search_distance_top', + 'type' => 'integer', + 'default' => 0, + 'use' => 'a' ), /* @@ -343,16 +343,16 @@ class GlmDataSettingsGeneral extends GlmDataAbstract // Front-end Listings - Show Logo 'list_show_logo' => array( - 'field' => 'list_show_logo', - 'type' => 'checkbox', - 'use' => 'a' + 'field' => 'list_show_logo', + 'type' => 'checkbox', + 'use' => 'a' ), // Front-end Listings - Show Logo for Mobile 'list_logo_for_mobile' => array( - 'field' => 'list_logo_for_mobile', - 'type' => 'checkbox', - 'use' => 'a' + 'field' => 'list_logo_for_mobile', + 'type' => 'checkbox', + 'use' => 'a' ), // Front-end Listings - Show Logo Filler diff --git a/css/front.css b/css/front.css index 0786d26a..b00a7166 100644 --- a/css/front.css +++ b/css/front.css @@ -313,6 +313,24 @@ .glm-member-db-list-view .glm-member-list-sub-links:last-child { /* text-align: right;*/ } +@media (max-width: 640px) { + .glm-member-db-list-view .glm-member-db-phone-tollfree { + float: left; + width: 100%; + } + .glm-member-db-list-view .glm-member-db-phone-tollfree::before { + padding-left: 0; + } + .glm-member-db-list-view .mobile-hide { + display: none; + } + .glm-member-db-list-view .glm-member-list-description { + display: none; + } + .glm-member-db-list-view .glm-member-db-socials { + display: none; + } +} .glm-member-db-list .glm-member-list-listing-container { padding: 0 20px; } diff --git a/views/admin/management/index.html b/views/admin/management/index.html index fae4d30e..23b59d3d 100644 --- a/views/admin/management/index.html +++ b/views/admin/management/index.html @@ -183,7 +183,6 @@ Show Member Name as Link to Detail: List Header Text: Show Member Logo: - Show Member Logo for Mobile: Logo Size: @@ -286,6 +285,12 @@ Floating Search Distance From Top:px + + + + +

Member List Mobile Options

Show Member Logo for Mobile:
+ diff --git a/views/front/members/list.html b/views/front/members/list.html index fb191d8c..a2b8d1df 100644 --- a/views/front/members/list.html +++ b/views/front/members/list.html @@ -272,7 +272,7 @@
{if $member.logo && $settings.list_show_logo} -
+
-- 2.17.1