| Server IP : 47.82.179.145 / Your IP : 216.73.217.93 Web Server : nginx/1.26.3 System : Linux iZt4n9czhka2zvqfajdlr2Z 6.8.0-63-generic #66-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 13 20:25:30 UTC 2025 x86_64 User : www ( 1001) PHP Version : 8.3.30 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /www/wwwroot/scuipturepactory.com/wp-content/themes/artist-art-gallery/ |
Upload File : |
<?php
/**
* Artist Art Gallery functions and definitions
*
* @link https://developer.wordpress.org/themes/basics/theme-functions/
*
* @package artist-art-gallery
* @since artist-art-gallery 1.0
*/
if ( ! function_exists( 'artist_art_gallery_support' ) ) :
/**
* Sets up theme defaults and registers support for various WordPress features.
*
* @since artist-art-gallery 1.0
*
* @return void
*/
function artist_art_gallery_support() {
load_theme_textdomain( 'artist-art-gallery', get_template_directory() . '/languages' );
// Add default posts and comments RSS feed links to head.
add_theme_support( 'automatic-feed-links' );
// Add support for block styles.
add_theme_support( 'wp-block-styles' );
add_theme_support( 'align-wide' );
// Enqueue editor styles.
add_editor_style( 'style.css' );
add_theme_support( 'responsive-embeds' );
// Add support for experimental link color control.
add_theme_support( 'experimental-link-color' );
}
endif;
add_action( 'after_setup_theme', 'artist_art_gallery_support' );
if ( ! function_exists( 'artist_art_gallery_styles' ) ) :
/**
* Enqueue styles.
*
* @since artist-art-gallery 1.0
*
* @return void
*/
function artist_art_gallery_styles() {
// Register theme stylesheet.
wp_register_style(
'artist-art-gallery-style',
get_template_directory_uri() . '/style.css',
array(),
wp_get_theme()->get( 'Version' )
);
wp_enqueue_style(
'artist-art-gallery-animate-css',
esc_url(get_template_directory_uri()).'/assets/css/animate.css'
);
// Enqueue theme stylesheet.
wp_enqueue_style( 'artist-art-gallery-style' );
wp_style_add_data( 'artist-art-gallery-style', 'rtl', 'replace' );
wp_enqueue_style( 'dashicons' );
}
endif;
add_action( 'wp_enqueue_scripts', 'artist_art_gallery_styles' );
/* Enqueue Custom Js */
function artist_art_gallery_scripts() {
wp_enqueue_script(
'artist-art-gallery-scroll-to-top',
esc_url(get_template_directory_uri()) . '/assets/js/scroll-to-top.js',
array(),
null,
true // Load in footer
);
wp_enqueue_script(
'artist-art-gallery-wow', esc_url(get_template_directory_uri()) . '/assets/js/wow.js',
array('jquery')
);
}
add_action( 'wp_enqueue_scripts', 'artist_art_gallery_scripts' );
/* Enqueue admin-notice-script js */
add_action('admin_enqueue_scripts', function ($hook) {
if ($hook !== 'appearance_page_artist-art-gallery') return;
wp_enqueue_script('admin-notice-script', get_template_directory_uri() . '/get-started/js/admin-notice-script.js', ['jquery'], null, true);
wp_localize_script('admin-notice-script', 'pluginInstallerData', [
'ajaxurl' => admin_url('admin-ajax.php'),
'nonce' => wp_create_nonce('install_wordclever_nonce'), // Match this with PHP nonce check
'redirectUrl' => admin_url('themes.php?page=artist-art-gallery'),
]);
});
add_action('wp_ajax_check_wordclever_activation', function () {
include_once ABSPATH . 'wp-admin/includes/plugin.php';
$artist_art_gallery_plugin_file = 'wordclever-ai-content-writer/wordclever.php';
if (is_plugin_active($artist_art_gallery_plugin_file)) {
wp_send_json_success(['active' => true]);
} else {
wp_send_json_success(['active' => false]);
}
});
add_filter( 'woocommerce_enable_setup_wizard', '__return_false' );
function artist_art_gallery_theme_setting() {
// Add block patterns
require get_template_directory() . '/inc/block-pattern.php';
// Add block Style
require get_template_directory() . '/inc/block-style.php';
// TGM
require get_template_directory() . '/inc/tgm/plugin-activation.php';
// Get Started
require get_template_directory() . '/get-started/getstart.php';
// Get Notice
require get_template_directory() . '/get-started/notice.php';
// Get Notice
require get_template_directory() . '/inc/customizer.php';
}
add_action('after_setup_theme', 'artist_art_gallery_theme_setting');