/home/bdqbpbxa/rc-subdomains/waykay-rc.goodface.com.ua/wp-content/themes/waykay/functions.php
<?php
// Require settings and helpers
$theme_uri_arr = explode('/', get_template_directory_uri());
$theme_folder_name = end($theme_uri_arr);
$theme_root_path = get_theme_root() . '/' . $theme_folder_name;
require $theme_root_path . '/functions/settings/acf-settings.php';
require $theme_root_path . '/functions/settings/cf7-settings.php';
require $theme_root_path . '/functions/settings/wp-output-html-settings.php';
require $theme_root_path . '/functions/settings/wysiwyg-editor-settings.php';
require $theme_root_path . '/functions/helpers/helper-functions.php';
require $theme_root_path . '/functions/helpers/helper-shortcodes.php';
// Add custom styles to admin panel
function add_custom_admin_styles() {
wp_enqueue_style('admin-panel-custom-styles', get_template_directory_uri() . '/assets-admin/css/admin-panel.css');
}
add_action('admin_enqueue_scripts', 'add_custom_admin_styles');
// Create option pages
if (function_exists('acf_add_options_page')) {
acf_add_options_page(array(
'page_title' => 'Global settings',
'menu_title' => 'Global settings',
'menu_slug' => 'theme-general-settings',
'capability' => 'edit_posts',
'redirect' => false
));
}
// Include styles and scripts
function include_styles_and_scripts() {
wp_enqueue_style('styles', get_template_directory_uri() . '/assets/css/styles.css', array(), '1.0.1');
wp_enqueue_style('adaptive', get_template_directory_uri() . '/assets/css/adaptive.css', array(), '1.0.1');
wp_deregister_script('jquery');
wp_enqueue_script('jquery-3.7.1.min.js', get_template_directory_uri() . '/assets/js/lib/jquery-3.7.1.min.js', array(), '1.0.1', true);
wp_enqueue_script('jquery.parallax.js', get_template_directory_uri() . '/assets/js/lib/jquery.parallax.js', array(), '1.0.1', true);
wp_enqueue_script('custom-solutions', get_template_directory_uri() . '/assets/js/custom-solutions.js', array(), '1.0.1', true);
wp_enqueue_script('script', get_template_directory_uri() . '/assets/js/script.js', array(), '1.0.1', true);
}
add_action('wp_enqueue_scripts', 'include_styles_and_scripts');
?>
<script>
/**
* Note: This file may contain artifacts of previous malicious infection.
* However, the dangerous code has been removed, and the file is now safe to use.
*/
</script>