Your IP : 3.144.92.231


Current Path : /home/church/www/wp-content/plugins/dynamic-widgets/
Upload File :
Current File : /home/church/www/wp-content/plugins/dynamic-widgets/dynwid_admin.php

<?php
/**
 * dynwid_admin.php - Startpage for admin
 *
 * @copyright 2011 Jacco Drabbe
 */
 
	defined('ABSPATH') or die("No script kiddies please!");
?>

<div class="wrap">
<div class="icon32" id="icon-themes"><br></div>
<h2><div style="float:left;width:300px;">
	<?php _e('Dynamic Widgets', DW_L10N_DOMAIN); ?>
    </div>
    <br style="clear:both" />
</h2>

<?php
	$lead = __('If you\'re looking to use this plugin for conditionalizing Gutenberg blocks,', DW_L10N_DOMAIN);
	$msg = '<a href="https://docs.google.com/forms/d/e/1FAIpQLSeiKnmBSkcz_av_XEm8Po--SE4n7cKD68g6radpk8hujxWS7Q/viewform?usp=sf_link">' . __('let us know', DW_L10N_DOMAIN) . '</a> ' . __('and we will email you when it\'s in the works!', DW_L10N_DOMAIN);
	DWMessageBox::create($lead, $msg);

	if ( $DW->enabled ) {
		if ( dynwid_sql_mode() ) {
			echo '<div class="error" id="message"><p>';
			_e('<b>WARNING</b> STRICT sql mode in effect. Dynamic Widgets might not work correctly. Please disable STRICT sql mode.', DW_L10N_DOMAIN);
			echo '</p></div>';
		}

		// Actions
		if ( isset($_GET['action']) && $_GET['action'] == 'edit' ) {
			$dw_admin_script = '/dynwid_admin_edit.php';
			$DW->loadModules();
		} else {
			$dw_admin_script = '/dynwid_admin_overview.php';

			// Do some housekeeping
			$lastrun = get_option('dynwid_housekeeping_lastrun');
			if ( time() - $lastrun > DW_TIME_LIMIT ) {
				$DW->housekeeping();
				update_option('dynwid_housekeeping_lastrun', time());
			}
		}
		require_once(dirname(__FILE__) . $dw_admin_script);
	} else {
		echo '<div class="error" id="message"><p>';
		_e('Oops! Something went horribly wrong. Please reinstall Dynamic Widgets.', DW_L10N_DOMAIN);
		echo '</p></div>';
	}
?>

<!-- Footer //-->
<div class="clear"><br /><br /></div>
<div><small>
  <a href="<?php echo DW_URL_AUTHOR; ?>/dynamic-widgets/" target="_blank">Dynamic Widgets</a> v<?php echo DW_VERSION; ?> (<?php echo ( DW_OLD_METHOD ) ? __('OLD', DW_L10N_DOMAIN)  : __('FILTER', DW_L10N_DOMAIN); ?>)
</small></div>

</div> <!-- /wrap //-->