'.$extra_before; if ($is_bold) { $html .= '

'.$msg.'

'; } else { $html .= '

'.$msg.'

'; } $html .= $extra_after.''; $html = apply_filters('docketcache/filter/resc/boxmsg', $html, $msg, $type, $is_dismiss, $is_bold, $is_hide); return $html; } } public static function runtimenotice($action, $is_adr = false) { $code = WpConfig::runtime_code(); $is_bedrock = WpConfig::is_bedrock(); $fname = $is_bedrock ? 'config/application.php' : 'wp-config.php'; $is_remove = !WpConfig::is_runtimefalse(); /* translators: %s: file name */ $text1 = sprintf(__('Docket Cache require updating the %s file to handle runtime options.
', 'docket-cache'), $fname); $text2 = '
• '.__('To Install: Copy and insert the code below before require_once ABSPATH . \'wp-settings.php\';', 'docket-cache'); $text3 = '
• '.__('To Install: Copy and insert the code below after Config::apply();.', 'docket-cache'); $text4 = '
'.__('Or click Install to update it now.', 'docket-cache'); if ($is_adr) { $textr = '
• '.__('To Un-install: Find the code below and remove it manually.', 'docket-cache'); if ($is_remove) { $text2 = '
• '.__('To Update: Copy and insert the code below before require_once ABSPATH . \'wp-settings.php\';', 'docket-cache'); $text3 = '
• '.__('To Update: Copy and insert the code below after Config::apply();.', 'docket-cache'); $text2 .= $textr; $text3 .= $textr; $text4 = '
'.__('Or click Install to update it now. Click Un-Install to remove the code.', 'docket-cache'); } } $message = $text1; if ($is_bedrock) { $message .= $text3; } else { $message .= $text2; } $message .= '

'; if (WpConfig::is_writable() && !$is_bedrock) { $message .= '
'.$text4.'
'.esc_html__('Install', 'docket-cache').''; if ($is_remove && $is_adr) { $message .= ''.esc_html__('Un-Install', 'docket-cache').''; } } $message = '
'.$message.'
'; echo self::boxmsg($message, 'warning', true, false, false); } }