<table class="sites table table-responsive table-striped table-bordered table-hover"> <thead> <tr> <th>Debug Mode</th> <th>Sites</th> <th>WP Version</th> <th>Actions</th> </tr> </thead> <?php foreach ($hosts as $key => $array) { if ('site_count' != $key) { $host_info = $vvv_dash->set_host_info($array['host']); $is_env = isset($host_info['is_env']) ? $host_info['is_env'] : false; $dash_hosts = new vvv_dash_hosts(); $has_wp_config = $dash_hosts->wp_config_exists($host_info); if ($is_env) { $env_configs = $dash_hosts->get_wp_starter_configs($host_info); $env = isset($env_configs[$host_info['host']]["WORDPRESS_ENV"]) ? $env_configs[$host_info['host']]["WORDPRESS_ENV"] : false; if ($env) { $configs = $env_configs[$host_info['host']][$env]; $array['is_wp'] = true; $array['debug'] = $configs['WP_DEBUG']; } } ?> <tr> <?php if ('true' == $array['debug']) { ?> <td><span class="label label-success">Debug On <i class="fa fa-check-circle-o"></i></span>