From: laury Date: Fri, 20 May 2016 13:14:30 +0000 (-0400) Subject: Some social styling updates X-Git-Tag: v1.0.0^2~2 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=5ba098e86a8c32248da2e1b708f91b47249a5e95;p=WP-Plugins%2Fglm-member-db-social.git Some social styling updates --- 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