Skip to content

Instantly share code, notes, and snippets.

@Logiks
Created February 4, 2014 06:22
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Logiks/8798991 to your computer and use it in GitHub Desktop.
Save Logiks/8798991 to your computer and use it in GitHub Desktop.
Generate Social Links Using Social Feature File. This allows the social features to be able to manipulated using CMS->Configurations->Feature Settings. #Logiks-Core
<?php
$arrF=loadFeature("socials");
foreach($arrF as $a=>$b) {
if(strlen($b)<=0) continue;
echo "<li><a href='$b' target=_blank><img src='".
loadMedia("images/socials/".strtolower($a).".png")."' width=20px height=20px ></a></li>";
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment