@@ -6,14 +6,14 @@ |
||
| 6 | 6 | * Add or remove files to the array as needed. Supports child theme overrides. |
| 7 | 7 | */ |
| 8 | 8 | $stash_includes = [ |
| 9 | - 'lib/timber.php', // Twig magic |
|
| 10 | - 'lib/assets.php', // Scripts and stylesheets |
|
| 11 | - 'lib/extras.php', // Custom functions |
|
| 12 | - 'lib/setup.php', // Theme setup |
|
| 13 | - 'lib/images.php', // Helper for retrieving Images |
|
| 14 | - 'lib/custom.php', // Load custom post types and taxonomies |
|
| 15 | - 'lib/admin.php', // Cleaner admin pages |
|
| 16 | - 'lib/acf.php', // Functions related to ACF |
|
| 9 | + 'lib/timber.php', // Twig magic |
|
| 10 | + 'lib/assets.php', // Scripts and stylesheets |
|
| 11 | + 'lib/extras.php', // Custom functions |
|
| 12 | + 'lib/setup.php', // Theme setup |
|
| 13 | + 'lib/images.php', // Helper for retrieving Images |
|
| 14 | + 'lib/custom.php', // Load custom post types and taxonomies |
|
| 15 | + 'lib/admin.php', // Cleaner admin pages |
|
| 16 | + 'lib/acf.php', // Functions related to ACF |
|
| 17 | 17 | 'lib/transients.php', // Clear all transients on database changes |
| 18 | 18 | ]; |
| 19 | 19 | |
@@ -11,7 +11,7 @@ discard block |
||
| 11 | 11 | return admin_url('edit.php?post_type=page'); |
| 12 | 12 | } |
| 13 | 13 | |
| 14 | -add_filter('login_redirect', __NAMESPACE__ . '\\login_redirect', 10, 3); |
|
| 14 | +add_filter('login_redirect', __NAMESPACE__.'\\login_redirect', 10, 3); |
|
| 15 | 15 | |
| 16 | 16 | function remove_menu() |
| 17 | 17 | { |
@@ -19,28 +19,28 @@ discard block |
||
| 19 | 19 | remove_menu_page('edit-comments.php'); //comments |
| 20 | 20 | } |
| 21 | 21 | |
| 22 | -add_action('admin_menu', __NAMESPACE__ . '\\remove_menu', 99); |
|
| 22 | +add_action('admin_menu', __NAMESPACE__.'\\remove_menu', 99); |
|
| 23 | 23 | |
| 24 | 24 | function remove_wp_logo($wp_admin_bar) |
| 25 | 25 | { |
| 26 | 26 | $wp_admin_bar->remove_node('wp-logo'); |
| 27 | 27 | } |
| 28 | 28 | |
| 29 | -add_action('admin_bar_menu', __NAMESPACE__ . '\\remove_wp_logo', 999); |
|
| 29 | +add_action('admin_bar_menu', __NAMESPACE__.'\\remove_wp_logo', 999); |
|
| 30 | 30 | |
| 31 | 31 | function change_footer_admin() |
| 32 | 32 | { |
| 33 | 33 | return ' '; |
| 34 | 34 | } |
| 35 | 35 | |
| 36 | -add_filter('admin_footer_text', __NAMESPACE__ . '\\change_footer_admin', 9999); |
|
| 36 | +add_filter('admin_footer_text', __NAMESPACE__.'\\change_footer_admin', 9999); |
|
| 37 | 37 | |
| 38 | 38 | function change_footer_version() |
| 39 | 39 | { |
| 40 | 40 | return ' '; |
| 41 | 41 | } |
| 42 | 42 | |
| 43 | -add_filter('update_footer', __NAMESPACE__ . '\\change_footer_version', 9999); |
|
| 43 | +add_filter('update_footer', __NAMESPACE__.'\\change_footer_version', 9999); |
|
| 44 | 44 | |
| 45 | 45 | /* |
| 46 | 46 | * Change the opacity of WordPress Admin Bar |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | } |
| 53 | 53 | |
| 54 | 54 | if (!is_admin()) { |
| 55 | - add_action('wp_head', __NAMESPACE__ . '\\adminbar_opacity'); |
|
| 55 | + add_action('wp_head', __NAMESPACE__.'\\adminbar_opacity'); |
|
| 56 | 56 | } |
| 57 | 57 | |
| 58 | 58 | /* |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | exit; |
| 65 | 65 | } |
| 66 | 66 | |
| 67 | -add_action('wp_dashboard_setup', __NAMESPACE__ . '\\redirect_from_dashboard'); |
|
| 67 | +add_action('wp_dashboard_setup', __NAMESPACE__.'\\redirect_from_dashboard'); |
|
| 68 | 68 | |
| 69 | 69 | function admin_menu() |
| 70 | 70 | { |
@@ -73,11 +73,11 @@ discard block |
||
| 73 | 73 | $menu[0] = array(__('STASH'), 'read', '#', 'undefined-logo', 'undefined-logo'); |
| 74 | 74 | } |
| 75 | 75 | |
| 76 | -add_action('admin_menu', __NAMESPACE__ . '\\admin_menu'); |
|
| 76 | +add_action('admin_menu', __NAMESPACE__.'\\admin_menu'); |
|
| 77 | 77 | |
| 78 | 78 | function admin_style() |
| 79 | 79 | { |
| 80 | - echo '<link rel="stylesheet" href="' . get_template_directory_uri() . '/dist/css/admin/main.css" type="text/css" media="all" />'; |
|
| 80 | + echo '<link rel="stylesheet" href="'.get_template_directory_uri().'/dist/css/admin/main.css" type="text/css" media="all" />'; |
|
| 81 | 81 | } |
| 82 | 82 | |
| 83 | -add_action('admin_head', __NAMESPACE__ . '\\admin_style'); |
|
| 83 | +add_action('admin_head', __NAMESPACE__.'\\admin_style'); |
|