123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118 |
- <?php
- if (! file_exists($composer = __DIR__.'/vendor/autoload.php')) {
- wp_die(__('Error locating autoloader. Please run <code>composer install</code>.', 'sage'));
- }
- require $composer;
- if (! function_exists('\Roots\bootloader')) {
- wp_die(
- __('You need to install Acorn to use this theme.', 'sage'),
- '',
- [
- 'link_url' => 'https://roots.io/acorn/docs/installation/',
- 'link_text' => __('Acorn Docs: Installation', 'sage'),
- ]
- );
- }
- \Roots\bootloader()->boot();
- collect(['setup', 'filters'])
- ->each(function ($file) {
- if (! locate_template($file = "app/{$file}.php", true, true)) {
- wp_die(
-
- sprintf(__('Error locating <code>%s</code> for inclusion.', 'sage'), $file)
- );
- }
- });
-
- function cacher_bloc_head_admin() {
-
- echo '<style>.pp-version-notice-bold-purple { display: none; }</style>';
- echo '<style>.notice-warning { display: none; }</style>';
-
- }
- add_action('admin_head', 'cacher_bloc_head_admin');
-
- function cacher_bloc_foot_admin() {
-
- echo '<style>.pp-rating { display: none; }</style>';
- echo '<style>.pp-pressshack-logo { display: none; }</style>';
- echo '<style> footer nav{ display: none; }</style>';
- echo '<style> ul.subsubsub li:nth-child(1) a { display: none;}</style>';
-
- }
- add_action('admin_footer', 'cacher_bloc_foot_admin');
-
-
-
-
|