diff --git a/css/wpsc-feedback.css b/css/wpsc-feedback.css new file mode 100644 index 00000000..f9ed02de --- /dev/null +++ b/css/wpsc-feedback.css @@ -0,0 +1,10 @@ +.wpsc-survey-wrapper { + position: relative; + background: white; + padding: 10%; + margin: 2em; + text-align: center; } + .wpsc-survey-wrapper .credits { + position: absolute; + bottom: 5x; + text-align: center; } diff --git a/css/wpsc-feedback.min.css b/css/wpsc-feedback.min.css new file mode 100644 index 00000000..f3ee848d --- /dev/null +++ b/css/wpsc-feedback.min.css @@ -0,0 +1 @@ +.wpsc-survey-wrapper{position:relative;background:#fff;padding:10%;margin:2em;text-align:center}.wpsc-survey-wrapper .credits{position:absolute;bottom:5x;text-align:center} \ No newline at end of file diff --git a/scss/wpsc-feedback.css b/scss/wpsc-feedback.css new file mode 100644 index 00000000..4cfaa020 --- /dev/null +++ b/scss/wpsc-feedback.css @@ -0,0 +1,9 @@ +.wpsc-survey-wrapper { + position: relative; + background: white; + padding: 10%; + margin: 2em; + text-align: center; } + .wpsc-survey-wrapper .credits { + position: absolute; + bottom: 5x; } diff --git a/scss/wpsc-feedback.scss b/scss/wpsc-feedback.scss new file mode 100644 index 00000000..fb6a1b95 --- /dev/null +++ b/scss/wpsc-feedback.scss @@ -0,0 +1,12 @@ +.wpsc-survey-wrapper{ + position:relative; + background:white; + padding:10%; + margin:2em; + text-align: center; + .credits{ + position:absolute; + bottom:5x; + text-align: center; + } +} \ No newline at end of file diff --git a/wp-cache.php b/wp-cache.php index 36742946..b67f3040 100644 --- a/wp-cache.php +++ b/wp-cache.php @@ -235,14 +235,42 @@ function wpsupercache_site_admin() { return is_super_admin(); } +/** + * Modifying to add a menu page and submenus thereafter for ease of navigation + */ function wp_cache_add_pages() { if ( wpsupercache_site_admin() ) { // In single or MS mode add this menu item too, but only for superadmins in MS mode. - add_options_page( 'WP Super Cache', 'WP Super Cache', 'manage_options', 'wpsupercache', 'wp_cache_manager' ); + $wp_super_cache_menu = add_menu_page( 'WP Super Cache', 'WP Super Cache', 'manage_options', 'wpsupercache', 'wp_cache_manager' ); + $wp_super_cache_menu_feedback = add_submenu_page( 'wpsupercache' , 'Feedback', 'Feedback', 'manage_options', 'wpsupercache-feedback', 'wp_cache_feedback' ); + + add_action('admin_print_scripts-' . $wp_super_cache_menu_feedback, 'wp_cache_admin_styles_feedback'); + + } } add_action( 'admin_menu', 'wp_cache_add_pages' ); +function wp_cache_admin_styles_feedback(){ + wp_register_style( 'wpsc_wp_admin_css', plugin_dir_url( __FILE__ ) . 'css/wpsc-feedback.min.css', false, '1.0.0' ); + wp_enqueue_style( 'wpsc_wp_admin_css' ); +} + +function wp_cache_feedback(){ + ?> +