/**
 * Create the widget
 */
function display_wpe_dify_news_feed()
{
    $plugin = WpeCommon::instance();
    $site_info = $plugin->get_site_info();
    $install_name = $site_info->name;
    $show_hidden = apply_filters('wpengine_show_hidden_news', false) ? "true" : "false";
    wp_enqueue_script('wpe-dify-blog', WPE_PLUGIN_URL . '/js/dify-blog.js', array('jquery'), WPE_PLUGIN_VERSION, true);
    ?>
	<div id='wpe-dify-widget' >
	<?php 
    include __DIR__ . "/dify-partial.php";
    display_wpe_dify($show_hidden, $install_name);
    ?>
		<div class='wpe-dify-widget-overlay'>
		</div>
	</div>
<?php 
}
	<?php 
    }
    ?>
	</div><!--.wpe-content-wrapper-->
    <?php 
    // Check if the user has disabled the dify wpengine news feed
    if ($wpengine_news_feed_enabled) {
        /**
         * Filter wpengine_show_hidden_news to determine whether to show qa blog posts
         *
         * @param bool $value The value that is returned after filters are applied.
         */
        $show_hidden = apply_filters('wpengine_show_hidden_news', false) ? "true" : "false";
        echo "<div id='wpe-dify-plugin'>";
        include_once __DIR__ . "/dify-partial.php";
        display_wpe_dify($show_hidden, $site_info->name);
        echo "</div><!-- .wpe-dify-plugin -->";
    }
    ?>

<?php 
}
/* is_wpe_snapshot() */
?>
</div><!--.wrap-->
<div class="wpe-plugin-version">
	<hr/>
	<p>WP Engine Plugin v<?php 
echo WPE_PLUGIN_VERSION;
?>
 | <a href="https://my.wpengine.com/support" target="_blank">Support</a></p>