Example #1
0
<?php

$arrSocial = loadFeature("socials");
?>
<style>
#content .lgks-widget[name=socialbar] {
	text-align: center;
}
#content .lgks-widget[name=socialbar] .fa {
	font-size: 2em;
	text-decoration: none;
	margin: 10px;
}
#content .lgks-widget[name=socialbar] .fa:hover {
	color: orange;
}
</style>
<div class="social_list social">
    <div class="hi-icon-wrap hi-icon-effect-5 hi-icon-effect-5c">
    	<?php 
foreach ($arrSocial as $key => $lnk) {
    if (strlen($lnk) > 0) {
        echo "<a href='{$lnk}' target='_blank' class='icon fa fa-{$key} animated fadeInLeft'></a>";
    }
}
?>
    </div>
</div><!--/.social_list-->
Example #2
0
<?php

$arrCfg = loadFeature("facebookLike");
if (isset($arrCfg['APP-ID'])) {
    ?>
<div class="fb-like" data-href="<?php 
    echo SiteLocation . $_SERVER['REQUEST_PATH'];
    ?>
" data-layout="<?php 
    echo $arrCfg['DATA-LAYOUT'];
    ?>
" 
	data-action="<?php 
    echo $arrCfg['DATA-ACTION'];
    ?>
" data-show-faces="<?php 
    echo $arrCfg['DATA-SHOWFACES'];
    ?>
" data-share="<?php 
    echo $arrCfg['DATA-SHARE'];
    ?>
" style='margin-top: 6px;'></div>
<div id='fb-root'></div>
<script>(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=<?php 
    echo $arrCfg['APP-ID'];
    ?>
";