| Server IP : 68.178.247.200 / Your IP : 216.73.217.50 Web Server : Apache System : Linux p3plzcpnl489463.prod.phx3.secureserver.net 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64 User : x9dppmxs4rgd ( 8559391) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/x9dppmxs4rgd/public_html/wp-content/themes/grace-church/fw/core/ |
Upload File : |
<?php
/**
* Grace-Church Framework: Widgets detection
*
* @package grace_church
* @since grace_church 1.0
*/
// Disable direct call
if ( ! defined( 'ABSPATH' ) ) { exit; }
// Check if specified widget installed and activated
if (!function_exists('grace_church_widget_is_active')) {
function grace_church_widget_is_active($slug) {
if (!function_exists('is_plugin_inactive')) {
require_once( ABSPATH . '/wp-admin/includes/plugin.php' );
}
return !is_plugin_inactive("{$slug}.php");
}
}
// Check if Instagram widget installed and activated
if (!function_exists('grace_church_exists_instagram')) {
function grace_church_exists_instagram($slug) {
return grace_church_widget_is_active('wp-instagram-widget/wp-instagram-widget');
}
}
?>