Submit
Path:
~
/
home
/
getwphos
/
public_html
/
giulianos
/
wp-content
/
themes
/
mechano
/
admin
/
File Content:
admin--notice.php
<?php function mechano__admin_notices_html($current_screen, $plugin_status__pixelwars_core, $plugin_status__one_click_demo_import) { if (isset($_GET['mechano_theme_welcome_panel'])) { if ($_GET['mechano_theme_welcome_panel'] == 'dismiss') { update_option('mechano_theme_welcome_panel', 'dismiss'); } elseif ($_GET['mechano_theme_welcome_panel'] == 'show') { update_option('mechano_theme_welcome_panel', 'show'); } } $mechano_theme_welcome_panel = get_option('mechano_theme_welcome_panel', 'show'); if ('dismiss' != $mechano_theme_welcome_panel) { ?> <div class="notice mechano-admin-notice"> <div class="mechano-admin-notice--dismiss"> <p> <a href="<?php echo esc_url(admin_url('index.php?mechano_theme_welcome_panel=dismiss')); ?>"><?php esc_html_e('Dismiss', 'mechano'); ?></a> </p> </div> <div class="mechano-admin-notice--header"> <h1 class="mechano-admin-notice--title"><?php esc_html_e('Welcome to Mechano Theme', 'mechano'); ?></h1> <p><?php esc_html_e('Thank you for choosing our theme!', 'mechano'); ?></p> </div> <?php if (isset($_GET['pixelwars_core'])) { if ($_GET['pixelwars_core'] == 'activate') { activate_plugin('pixelwars-core/pixelwars-core.php'); // Activate Plugin: "Pixelwars Core". } } else { if (($plugin_status__pixelwars_core == 'installed') && ($plugin_status__pixelwars_core != 'activated')) // Plugin: Installed but not activated. { ?> <div class="mechano-admin-notice--activate-pixelwars-core-plugin"> <p> <?php esc_html_e('Activate Pixelwars Core plugin for advanced features.', 'mechano'); ?> [<a href="<?php echo esc_url(admin_url('index.php?pixelwars_core=activate')); ?>"><?php esc_html_e('Activate Pixelwars Core', 'mechano'); ?></a>] </p> </div> <?php } } ?> <div class="mechano-admin-notice--helpful-links"> <div class="mechano-admin-notice--column"> <h3 class="mechano-admin-notice--column-title"><?php esc_html_e('Customize Your Site', 'mechano'); ?></h3> <p> <?php esc_html_e('Tweak your site, or give it a whole new look! Use styles or try a new color palette and font.', 'mechano'); ?> </p> <p> <a class="mechano-admin-notice--button mechano-admin-notice--button-primary" href="<?php echo esc_url(admin_url('customize.php')); ?>"><?php esc_html_e('Open Customizer', 'mechano'); ?></a> </p> </div> <div class="mechano-admin-notice--column"> <h3 class="mechano-admin-notice--column-title"><?php esc_html_e('Theme Demo', 'mechano'); ?></h3> <p> <?php esc_html_e('Importing demo data is the quickest and easiest way to set up your new theme.', 'mechano'); ?> </p> <p> <?php if (isset($_GET['one_click_demo_import'])) { if ($_GET['one_click_demo_import'] == 'activate') { activate_plugin('one-click-demo-import/one-click-demo-import.php'); // Activate Plugin: "One Click Demo Import". ?> <a class="mechano-admin-notice--button" href="<?php echo esc_url(admin_url('themes.php?page=mechano-import-theme-demos')); ?>"><?php esc_html_e('Run Importer', 'mechano'); ?></a> <?php } } else { if ($plugin_status__one_click_demo_import == 'activated') // Plugin: Activated. { ?> <a class="mechano-admin-notice--button" href="<?php echo esc_url(admin_url('themes.php?page=mechano-import-theme-demos')); ?>"><?php esc_html_e('Run Importer', 'mechano'); ?></a> <?php } elseif (($plugin_status__one_click_demo_import == 'installed') && ($plugin_status__one_click_demo_import != 'activated')) // Plugin: Installed but not activated. { ?> <a class="mechano-admin-notice--button" href="<?php echo esc_url(admin_url('index.php?one_click_demo_import=activate')); ?>"><?php esc_html_e('Activate Importer', 'mechano'); ?></a> <?php } else // Plugin: Not installed. { ?> <a class="mechano-admin-notice--button" href="<?php echo esc_url(admin_url('themes.php?page=mechano-install-update-theme-plugins')); ?>"><?php esc_html_e('Install Importer', 'mechano'); ?></a> <?php } } ?> <a target="_blank" href="https://elementor.com/help/requirements/" title="<?php esc_attr_e('The system requirements you need in order to import demo data', 'mechano'); ?>"><?php esc_html_e('Requirements', 'mechano'); ?></a> </p> </div> <div class="mechano-admin-notice--column"> <h3 class="mechano-admin-notice--column-title"><?php esc_html_e('Need Help?', 'mechano'); ?></h3> <ul> <li> <a target="_blank" href="https://docs.pixelwars.org/mechano.php"><?php esc_html_e('Documentation', 'mechano'); ?></a> </li> <li> <a target="_blank" href="https://www.pixelwars.org/forums/"><?php esc_html_e('Get Support', 'mechano'); ?></a> </li> <li> <a target="_blank" href="https://themeforest.net/user/pixelwars/portfolio"><?php esc_html_e('Changelog', 'mechano'); ?></a> </li> <li> <a href="<?php echo esc_url(admin_url('site-health.php')); ?>"><?php esc_html_e('Site Health', 'mechano'); ?></a> </li> </ul> </div> <div class="mechano-admin-notice--column"> <h3 class="mechano-admin-notice--column-title"><?php esc_html_e('Rate Theme', 'mechano'); ?></h3> <ul> <li> <a target="_blank" href="https://themeforest.net/downloads"><?php esc_html_e('Rate on ThemeForest', 'mechano'); ?></a> </li> <li> <a target="_blank" href="https://themeforest.net/user/pixelwars/portfolio"><?php esc_html_e('More Themes', 'mechano'); ?></a> </li> <li> <a target="_blank" href="https://www.pixelwars.org/newsletter/"><?php esc_html_e('Newsletter', 'mechano'); ?></a> </li> <li> <a target="_blank" href="https://themeforest.net/licenses"><?php esc_html_e('License', 'mechano'); ?></a> </li> </ul> </div> <div class="mechano-admin-notice--column"> <h3 class="mechano-admin-notice--column-title"><?php esc_html_e('Follow Us', 'mechano'); ?></h3> <div class="mechano-admin-notice--social-media-links"> <p> <a title="Follow us on Facebook" target="_blank" href="https://www.facebook.com/pixelwarsdesign"><span class="dashicons dashicons-facebook-alt"></span></a> <a title="Follow us on Twitter" target="_blank" href="https://twitter.com/pixelwarsdesign"><span class="dashicons dashicons-twitter"></span></a> </p> <p> <a title="Follow us on Instagram" target="_blank" href="https://www.instagram.com/pixelwarsdesign/"><span class="dashicons dashicons-instagram"></span></a> <a title="Follow us on YouTube" target="_blank" href="https://www.youtube.com/c/pixelwarsdesign"><span class="dashicons dashicons-youtube"></span></a> </p> </div> </div> </div> <div class="mechano-admin-notice--footer"> <p> <?php esc_html_e('Could you please give it a 5-star rating on', 'mechano'); ?> <a target="_blank" href="https://themeforest.net/downloads"><?php esc_html_e('ThemeForest', 'mechano'); ?></a><?php esc_html_e('? Your feedback will boost our motivation and help us continue to improve this theme :)', 'mechano'); ?> </p> <p> — <?php esc_html_e('Pixelwars Team', 'mechano'); ?> </p> </div> </div> <?php } } /* ============================================================================================================================================= */ /* ============================================================================================================================================= */ function mechano__is_plugin_installed($plugin) { $installed_plugins = get_plugins(); return isset($installed_plugins[$plugin]); } function mechano__is_plugin_activated($plugin) { return in_array($plugin, (array) get_option('active_plugins', array()), true ) || is_plugin_active_for_network($plugin); } function mechano__get_plugin_status($plugin) { $plugin_status = 'not_installed'; if (mechano__is_plugin_activated($plugin)) { $plugin_status = 'activated'; } elseif (mechano__is_plugin_installed($plugin)) { $plugin_status = 'installed'; } return $plugin_status; } /* ============================================================================================================================================= */ function mechano__admin_notices() { $plugin_status__pixelwars_core = mechano__get_plugin_status('pixelwars-core/pixelwars-core.php'); $plugin_status__one_click_demo_import = mechano__get_plugin_status('one-click-demo-import/one-click-demo-import.php'); $current_screen = get_current_screen(); if ($current_screen->id === 'dashboard') { mechano__admin_notices_html($current_screen, $plugin_status__pixelwars_core, $plugin_status__one_click_demo_import); } } add_action('admin_notices', 'mechano__admin_notices', 1);
Edit
Rename
Chmod
Delete
FILE
FOLDER
Name
Size
Permission
Action
css
---
0755
demo-data
---
0755
js
---
0755
plugins
---
0755
about-author.php
1412 bytes
0644
admin--class-tgm-plugin-activation.php
126853 bytes
0644
admin--demo-import.php
10565 bytes
0644
admin--help-tab.php
2049 bytes
0644
admin--notice.php
9889 bytes
0644
ajax-loader.gif
4203 bytes
0644
archive-title.php
3072 bytes
0644
automatic-excerpt.php
3257 bytes
0644
content-none.php
1105 bytes
0644
customizer-default-values.php
3280 bytes
0644
customizer-sections.php
8509 bytes
0644
customizer-settings.php
262878 bytes
0644
enqueue-inline-script.php
2601 bytes
0644
enqueue-inline-style.php
66490 bytes
0644
enqueue-styles-scripts.php
13122 bytes
0644
functions-core.php
8160 bytes
0644
functions-layout-grid.php
1082 bytes
0644
functions-layout-regular.php
802 bytes
0644
functions-portfolio.php
2917 bytes
0644
functions-singular.php
13678 bytes
0644
functions-woocommerce.php
4674 bytes
0644
html-attributes.php
18503 bytes
0644
image-sizes.php
1986 bytes
0644
index.php
30 bytes
0644
navigation-archive.php
1231 bytes
0644
navigation-single.php
4441 bytes
0644
override-post-class.php
1447 bytes
0644
override-post-gallery.php
7368 bytes
0644
post-meta.php
7608 bytes
0644
pre-get-posts.php
353 bytes
0644
theme-options.php
11646 bytes
0644
widget_area-register.php
10228 bytes
0644
widget_area-sidebar-archive.php
4224 bytes
0644
widget_area-sidebar-singular.php
7161 bytes
0644
N4ST4R_ID | Naxtarrr