/** * Load the necessary scripts for this admin page. * * @since 1.8.0 * */ function scripts() { /** Load parent scripts as well as Genesis admin scripts */ parent::scripts(); genesis_load_admin_js(); }
/** * 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(); }
/** Load parent scripts as well as Genesis admin scripts **/ function scripts() { parent::scripts(); genesis_load_admin_js(); }
function scripts() { parent::scripts(); genesis_load_admin_js(); wp_enqueue_script('cuttz-admin-js', CHILD_URL . '/lib/js/cuttz-admin.js'); wp_localize_script('cuttz-admin-js', 'cuttz-framework', array('pageHook' => $this->pagehook, 'firstTime' => !is_array(get_user_option('closedpostboxes_' . $this->pagehook)), 'confirmUpgrade' => __("Updating Cuttz will overwrite the core skins inside Cuttz.\nIf you haven't already done so, move them to cuttz-user»skins folder.\nAre you sure you ready to update Cuttz?. \"Cancel\" to stop, \"OK\" to update.", 'cuttz-framework'))); }
function scripts() { parent::scripts(); genesis_load_admin_js(); wp_enqueue_script('farbtastic'); wp_enqueue_script('jquery'); wp_enqueue_script('cuttz-chosen-js', CHILD_URL . '/lib/js/chosen.jquery.min.js'); wp_enqueue_script('cuttz-admin-js', CHILD_URL . '/lib/js/cuttz-admin.js'); wp_localize_script('cuttz-admin-js', 'cuttz-framework', array('pageHook' => $this->pagehook, 'firstTime' => !is_array(get_user_option('closedpostboxes_' . $this->pagehook)), 'cuttz_fonts' => json_encode($this->cuttz_fonts))); }