/** * Echos an notification box * @param $message */ function w3_e_notification_box($message) { echo w3_get_notification_box($message); }
/** * @param $extension_name * @param $extension_id */ function w3_e_extension_activation_notification($extension_name, $extension_id) { w3_require_once(W3TC_INC_FUNCTIONS_DIR . '/ui.php'); $page = w3tc_get_current_page(); printf(w3_get_notification_box('<p>' . __('It appears that activating the <a href="%s">%s</a> extension for W3 Total Cache will be helpful for your site. <a class="button" href="%s">Click here</a> to try it. %s', 'w3-total-cache') . '</p>', $extension_id), sprintf(w3_admin_url('admin.php?page=w3tc_extensions#%s'), $extension_id), $extension_name, sprintf(w3_admin_url('admin.php?page=' . $page . '&w3tc_extensions_activate=%s'), $extension_id), w3_button_hide_note(__('Hide this message', 'w3-total-cache'), 'hide-extension-notification', '', true, '', 'w3tc_default_hide_note_custom=' . $extension_id)); }
/** * Echos an notification box * @param string $message * @param string $id adds an id to the notification box */ function w3_e_notification_box($message, $id = '') { echo w3_get_notification_box($message, $id); }