From: Laury GvR Date: Mon, 22 Aug 2016 14:56:13 +0000 (-0400) Subject: Added checks for mem detail price display X-Git-Tag: v1.1.14^2~2 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=a1785d4e42ac5ccdcaf08b1f51c443f128f3a09b;p=WP-Plugins%2Fglm-member-db-packaging.git Added checks for mem detail price display Added checks to see whether the package price exists, before displaying it on the member detail package list. Did so as well for the expire_date.date (even though that should never be blank). Max-height for packages on member detail page changed 120 -> 240px --- diff --git a/css/front.css b/css/front.css index 5c7f5c7..ccda116 100644 --- a/css/front.css +++ b/css/front.css @@ -48,7 +48,7 @@ div.member div.address { border: 1px solid #e1e1e1; border-radius: 4px; margin-bottom: 10px; - max-height: 120px; + max-height: 240px; overflow: hidden; } #glm-member-detail-packages-container .glm-member-db-package-info { diff --git a/views/front/packaging/listForMemberDetail.html b/views/front/packaging/listForMemberDetail.html index 17f00c9..c6465b3 100644 --- a/views/front/packaging/listForMemberDetail.html +++ b/views/front/packaging/listForMemberDetail.html @@ -19,8 +19,8 @@

{$p.title}

{$p.short_descr}
-
Expires: {$p.expire_date.date}
-
Pricing: {$p.pricing}
+ {if $p.expire_date.date}
Expires: {$p.expire_date.date}
{/if} + {if $p.pricing}
Pricing: {$p.pricing}
{/if}