From 5ba098e86a8c32248da2e1b708f91b47249a5e95 Mon Sep 17 00:00:00 2001 From: laury Date: Fri, 20 May 2016 09:14:30 -0400 Subject: [PATCH] Some social styling updates --- css/front.css | 10 ++++++++++ models/front/social/list.php | 6 +++++- views/front/social/list.html | 31 ++++++++++++++++++++++++++++++- 3 files changed, 45 insertions(+), 2 deletions(-) create mode 100644 css/front.css diff --git a/css/front.css b/css/front.css new file mode 100644 index 0000000..96abaf3 --- /dev/null +++ b/css/front.css @@ -0,0 +1,10 @@ + +.glm-member-db-socials { + margin: 10px 0 0; +} +.glm-member-db-socials a { + margin-right: 10px; +} +.glm-member-db-socials a img { + width: 18px; +} \ No newline at end of file diff --git a/models/front/social/list.php b/models/front/social/list.php index af0e7ee..655915c 100644 --- a/models/front/social/list.php +++ b/models/front/social/list.php @@ -46,7 +46,11 @@ class GlmMembersFront_social_list extends GlmDataSocialUrls if ($memberID) { $urlList = $this->getList("ref_dest = " . $memberID); } - + if (!is_array($urlList)) { + $urlList = null; + } + + // Compile template data $templateData = array( 'socials' => $urlList, diff --git a/views/front/social/list.html b/views/front/social/list.html index ce8abe8..41a528d 100644 --- a/views/front/social/list.html +++ b/views/front/social/list.html @@ -1,7 +1,36 @@ {if $memberID} {foreach $socials as $social} - + + {$social.social_name} + + + + {/foreach} {/if} + \ No newline at end of file -- 2.17.1