HEX
Server: nginx/1.26.3
System: Linux debian 6.1.0-31-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.128-1 (2025-02-07) x86_64
User: root (0)
PHP: 5.6.40
Disabled: 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
Upload Files
File: /www/wwwroot/gxdaosen.net/wp-content/plugins/futurio-extra/options/footer-credits.php
<?php
if ( !class_exists( 'Kirki' ) ) {
	return;
}

Kirki::add_section( 'code_section', array(
	'title'		 => esc_attr__( 'Copyright', 'futurio-extra' ),
	'priority'	 => 10,
) );

Kirki::add_field( 'futurio_extra', array(
	'type'			 => 'editor',
	'settings'		 => 'footer-credits',
	'label'			 => __( 'Footer credits', 'futurio-extra' ),
	'description'	 => __( 'HTML is allowed.<br/> Use <code>%current_year%</code> to update year automatically.<br/> Use <code>%copy%</code> to include copyright symbol.', 'futurio-extra' ),
	'section'		 => 'code_section',
	'transport'		 => 'postMessage',
	'js_vars'		 => array(
		array(
			'element'	 => '.footer-credits-text',
			'function'	 => 'html',
		),
	),
	'default'		 => '',
	'priority'		 => 10,
  'active_callback' => 'futurio_extra_footer_check',
) );

Kirki::add_field( 'futurio_extra', array(
  'type'     => 'select',
  'settings' => 'custom_footer',
  'label'    => esc_attr__( 'Elementor custom footer', 'futurio-extra' ),
  'description' => esc_attr__( 'Note: This will override the footer credits option defined above.', 'futurio-extra' ),
  'section'  => 'code_section',
  'default'  => '',
  'placeholder' => esc_attr__( 'Select an option', 'futurio-extra' ),
  'priority' => 10,
  'choices'  => Kirki_Helper::get_posts(
    array(
    	'posts_per_page' => -1,
    	'post_type'      => 'elementor_library'
    )
  ),
  'active_callback' => 'futurio_extra_check_for_elementor',
) );

function futurio_extra_footer_check() {
  
  if ( futurio_extra_check_for_elementor() && get_theme_mod( 'custom_footer', '' ) != '' ) return false;

  return true;

}