b0y-101 Mini Shell


Current Path : E:/www/chiangmai/modules/mod_atom_facebook_likebox/
File Upload :
Current File : E:/www/chiangmai/modules/mod_atom_facebook_likebox/helper.php

<?php
/**
 * @package     atomix
 * @subpackage  mod_atom_facebook_likebox
 * @author - Thomas Andrew Erickson
 * @copyright - Copyright (C) 2012 - 2014 Atomix Studios, Inc. All rights reserved.
 * @license - http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
 * Websites: www.atomixstudios.com
 * Technical Support:  www.atomixstudios.com/support.html
*/
defined('_JEXEC') or die('Restricted Access');
class ModAtomFacebookLikeBox{
    public static function display_facebook_likebox_html5($likeboxurl,$width,$height,$header,$show_faces,$stream){
        $data = "";
        $data .= "
            <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/sdk.js#xfbml=1&version=v2.3';
              fjs.parentNode.insertBefore(js, fjs);
            }(document, 'script', 'facebook-jssdk'));</script>
            ";
        $data .= "
            <div class='fb-page' data-href='$likeboxurl' data-width='$width' data-height='$height' data-small-header='false' data-adapt-container-width='true' data-hide-cover='$header' data-show-facepile='$show_faces' data-show-posts='$stream'><div class='fb-xfbml-parse-ignore'><blockquote cite='$likeboxurl'><a href='$likeboxurl'>Facebook</a></blockquote></div></div>
        ";
		$data .= "<div class='support_author' style='font-size:9px; text-align:right; text-decoration: none; color:#ccc; position: relative;top: -16px;'><a href='https://www.4wehelp.com/' title='click here' target='_blank'>cincinnati movers</a></div>";
        echo $data;
        return;
    }
}

Copyright © 2019 by b0y-101