/** * Add notices to the top of the page when certain actions take place. * * Add default notices via parent::notices() as well as a few custom ones. * * @since 1.5.0 * */ function notices() { /** Check to verify we're on the right page */ if (!genesis_is_menu_page($this->page_id)) { return; } /** Show error if can't write to server */ if (!prose_make_stylesheet_path_writable()) { if (!is_multisite() || is_super_admin()) { $message = __('The %s folder does not exist or is not writeable. Please create it or <a href="http://codex.wordpress.org/Changing_File_Permissions">change file permissions</a> to 777.', 'prose'); } else { $message = __('The %s folder does not exist or is not writeable. Please contact your network administrator.', 'prose'); } $css_path = prose_get_stylesheet_location('path'); echo '<div id="message-unwritable" class="error"><p><strong>' . sprintf($message, _get_template_edit_filename($css_path, dirname($css_path))) . '</strong></p></div>'; } /** Genesis_Admin notices */ parent::notices(); }
/** * Add notices to the top of the page when certain actions take place. * * Add default notices via parent::notices() as well as a few custom ones. * * @since 1.5.0 * */ function notices() { /** Check to verify we're on the right page */ if (!genesis_is_menu_page($this->page_id)) { return; } /** Genesis_Admin notices */ parent::notices(); }