<?php

namespace MGS\Fbuilder\Block\Social;

use Magento\Framework\View\Element\Template;
use Magento\Framework\View\Element\Template\Context;


class Snapppt extends Template{
	
	
	protected $_generateHelper;
	protected $_storeManager;
	public function __construct(
        Context $context,
		\MGS\Fbuilder\Helper\Generate $_generateHelper
    )
    {       
		$this->_generateHelper = $_generateHelper;
		$this->_storeManager = $context->getStoreManager();
        parent::__construct($context);
    }
	
	public function getStoreConfig($node, $storeId = NULL){
		return $this->_generateHelper->getStoreConfig($node);
	}
	
	public function getInstagramShopContent(){
		if($this->getStoreConfig('fbuilder/social/snapppt_script')!=''){
			return $this->getStoreConfig('fbuilder/social/snapppt_script');
		}
		return;
	}
}
?>