b0y-101 Mini Shell


Current Path : E:/www/chiangmai/modules/mod_fbfanpage/tmpl/
File Upload :
Current File : E:/www/chiangmai/modules/mod_fbfanpage/tmpl/default.php

<?php 
/*------------------------------------------------------------------------
# mod_fbfanpage - Facebook Fan Page for Joomla 3.x v6.0.3
# ------------------------------------------------------------------------
# author    GraphicAholic
# copyright Copyright (C) 2017 GraphicAholic.com. All Rights Reserved.
# @license - http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
# Websites: http://www.graphicaholic.com
-------------------------------------------------------------------------*/
// No direct access
defined('_JEXEC') or die('Restricted access');
defined('DS') or define('DS', DIRECTORY_SEPARATOR);   
?> 
<?php if($loadjQuery == "1"):?> 
    <script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<?php endif ?>    
<?php if($loadScripts == "2"):?>	
    <script src="<?php echo $modbase ?>js/famax-pro.min.js"></script>
    <script src="<?php echo $modbase ?>js/magnific-popup-full.js"></script>
<?php endif ?>	 
<div class="famax-pro-container" style="max-width:<?php echo $params->get('widthPercentage') ?>; display:inline;">  
<div class="famax-pro"></div>
<style type="text/css">
.fp-3-col-grid .fp-item-container { -webkit-column-count:<?php echo $params->get('gridPosts') ?> !important; -webkit-column-gap:<?php echo $params->get('marginLeft_Right') ?> !important; }
.fp-3-col-grid .fp-item-wrapper { margin-bottom:<?php echo $params->get('marginTop_Bottom') ?> !important; }
.fp-wrapper { margin-bottom:<?php echo $params->get('marginBottom'); ?>; }
.fp-grid .fp-wrapper { background:<?php echo $params->get('BackgroundColor') ?>; padding:<?php echo $params->get('postsPadding') ?>; }
.fp-load-more-button { float:none !important; }
.fp-header { height:<?php echo $params->get('HeaderHeight') ?>; }
.fp-title-description-wrapper { max-height: <?php echo $params->get('maxPostHeight') ?> !important; }
</style>
<script type="text/javascript">
            jQuery('.famax-pro').famaxPro({ 
                  appId:'<?php echo $params->get('appID') ?>',
                  accessToken: '<?php echo $params->get('accessToken') ?>', 
                  <?php if ($defaultView == "Posts") : ?>
                  defaultTab:"<?php echo $params->get('postsTabTitle') ?>", 
                  <?php elseif ($defaultView == "Photos") : ?>
                  defaultTab:"<?php echo $params->get('photosTabTitle') ?>",    
                  <?php elseif ($defaultView == "Videos") : ?>
                  defaultTab:"<?php echo $params->get('videosTabTitle') ?>",    
                  <?php elseif ($defaultView == "Albums") : ?>
                  defaultTab:"<?php echo $params->get('albumsTabTitle') ?>",    
                  <?php endif ; ?>  
                  accessTokenVideo:"<?php echo $params->get('accessTokenVideo') ?>",
                  fanPageLinkForHeader:'https://www.facebook.com/<?php echo $params->get('facebookURL') ?>',    
            tabs:[
                {
                    display:"<?php echo $params->get('postsTabTitle') ?>",
                    name:"Posts",
                    type:"facebook-page-posts",
                    link:"https://www.facebook.com/<?php echo $params->get('facebookURL') ?>",
                },
            <?php if ($photosTab == "2"): ?>
                {
                    display:"<?php echo $params->get('photosTabTitle') ?>",
                    name:"Photos",
                    type:"facebook-page-photos",
                    link:"http://www.facebook.com/<?php echo $params->get('facebookURL') ?>"
                },
            <?php endif ; ?>
            <?php if ($videoAPI == "1"): ?>
            <?php if ($videoTab == "2"): ?>
                {
                    display:"<?php echo $params->get('videosTabTitle') ?>",
                    name:"Videos",
                    type:"facebook-page-videos",
                    link:"http://www.facebook.com/<?php echo $params->get('facebookURL') ?>"
                },
            <?php endif ; ?>
            <?php endif ; ?>
            <?php if ($albumsTab == "2"): ?>
                {
                    display:"<?php echo $params->get('albumsTabTitle') ?>",
                    name:"Albums",
                    type:"facebook-page-albums",
                    link:"http://www.facebook.com/<?php echo $params->get('facebookURL') ?>"
                },
            <?php endif ; ?> 
                
            ],  

            itemDisplayMode         :"<?php echo $onClickAction; ?>",   
            maxResults              :<?php echo $params->get('numberPosts') ?>, 
            famaxDisplayMode:"<?php echo $displayMode; ?>", 
            dateFormat:"<?php echo $dateFormat; ?>",   
            famaxBackgroundColor    :"<?php echo $params->get('BackgroundColor') ?>",
            itemBackgroundColor     :"<?php echo $params->get('ArticleboxColor') ?>",
            headerBackgroundColor   :"<?php echo $params->get('headerBackgroundColor') ?>",
            headerTextColor         :"<?php echo $params->get('headerFontColor') ?>",
            titleColor              :"<?php echo $params->get('BodyColor') ?>",
            likesColor              :"<?php echo $params->get('LinkColor') ?>",
            controlsTextColor       :"<?php echo $params->get('ControlsColor') ?>",   
            titleFontFamily         :"<?php echo $params->get('titlefontFamily') ?>",
            generalFontFamily       :"<?php echo $params->get('bodyfontFamily') ?>",
            titleFontSize           :"0.9",
            titleFontWeight         :"<?php echo $params->get('bodyWeight') ?>",
            likesDateFontSize       :"0.75",
            baseFontSize            :"<?php echo $params->get('globalfontSize') ?>",
            responsiveBreakpoints   :[<?php echo $params->get('responsiveBreakpoints') ?>], 
            loadMoreText            :"<i class='fa fa-<?php echo $params->get('loadmoreIcon') ?>'></i>&nbsp;&nbsp;<?php echo $params->get('loadmoreText') ?>",
            showCoverImage          :<?php echo $showcoverImage; ?>,    
            hideHeader              :<?php echo $hideHeader; ?>,
            hideTabs                :<?php echo $hideTabs; ?>,
            hideSorting             :<?php echo $hideSorting; ?>,
            hideLoadingMechanism    :false,
            hideCtaButton           :false,
            hidePopupDetails        :false,
            hideThumbnailLikesCommentsDate:<?php echo $hideLikesComments; ?>,
            hidePageAboutInfo       :<?php echo $hideHeaderInfo; ?>,    
            sortRecentText          :"<?php echo $params->get('sortRecentText') ?>",
            sortPopularText         :"<?php echo $params->get('sortPopularText') ?>",
            yearAgoText             :"<?php echo $params->get('yearAgoText') ?>",
            monthAgoText            :"<?php echo $params->get('monthAgoText') ?>",
            dayAgoText              :"<?php echo $params->get('dayAgoText') ?>",
            hourAgoText             :"<?php echo $params->get('hourAgoText') ?>",
            justNowText             :"<?php echo $params->get('justNowText') ?>",
            janMonthText            :"<?php echo $params->get('janMonthText') ?>",
            febMonthText            :"<?php echo $params->get('febMonthText') ?>",
            marMonthText            :"<?php echo $params->get('marMonthText') ?>",
            aprMonthText            :"<?php echo $params->get('aprMonthText') ?>",
            mayMonthText            :"<?php echo $params->get('mayMonthText') ?>",
            junMonthText            :"<?php echo $params->get('junMonthText') ?>",
            julMonthText            :"<?php echo $params->get('julMonthText') ?>",
            augMonthText            :"<?php echo $params->get('augMonthText') ?>",
            sepMonthText            :"<?php echo $params->get('sepMonthText') ?>",
            octMonthText            :"<?php echo $params->get('octMonthText') ?>",
            novMonthText            :"<?php echo $params->get('novMonthText') ?>",
            decMonthText            :"<?php echo $params->get('decMonthText') ?>",
            facebookCommentsText    :"<?php echo $params->get('facebookCommentsText') ?>",
            facebookPostText        :"<?php echo $params->get('facebookPostText') ?>",
            dateLayout              :"<?php echo $params->get('dateLayout') ?>"

            });
</script>
<?php if ($pageRefresh == "2"): ?>  
<script type='text/javascript'>

(function()
{
  if( window.localStorage )
  {
    if( !localStorage.getItem( 'firstLoad' ) )
    {
      localStorage[ 'firstLoad' ] = true;
      window.location.reload();
    }  
    else
      localStorage.removeItem( 'firstLoad' );
  }
})();

</script>
<?php endif ; ?>    
</div>

Copyright © 2019 by b0y-101