Done !
| Server IP : 46.105.57.169 / Your IP : 216.73.216.67 Web Server : Apache System : Linux webm002.cluster120.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64 User : verseaumee ( 152031) PHP Version : 8.5.7 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/verseaumee/blueversion/wp-content/plugins/stm-motors-extends/nuxy/settings/ |
Upload File : |
<?php
class WPCFTO_Front_Settings {
public static function render( $option_name ) {
$front_options = apply_filters( 'wpcfto_get_frontend_settings', array() );
foreach ( $front_options as $front_option ) {
if ( $front_option['option_name'] !== $option_name ) {
continue;
}
$options = $front_option;
}
if ( empty( $options['option_name'] ) || empty( $options['page'] ) || ! isset( $options['fields'] ) ) {
return;
}
$page = $options['page'];
$option_name = $options['option_name'];
$wpcfto_title = ( ! empty( $options['title'] ) ) ? $options['title'] : '';
$wpcfto_sub_title = ( ! empty( $options['sub_title'] ) ) ? $options['sub_title'] : '';
$wpcfto_logo = ( ! empty( $options['logo'] ) ) ? $options['logo'] : STM_WPCFTO_URL . '/metaboxes/assets/images/stm-logo.svg';
$settings = get_option( $option_name, array() );
$metabox = apply_filters( $option_name, array(
'id' => $option_name,
'args' => array(
$option_name => $options['fields']
)
) );
foreach ( $metabox['args'][ $option_name ] as $section_name => $section ) {
foreach ( $section['fields'] as $field_name => $field ) {
$default_value = ( ! empty( $field['value'] ) ) ? $field['value'] : '';
$metabox['args'][ $option_name ][ $section_name ]['fields'][ $field_name ]['value'] = ( isset( $settings[ $field_name ] ) ) ? $settings[ $field_name ] : $default_value;
}
}
STM_Metaboxes::wpcfto_scripts();
include STM_WPCFTO_PATH . '/settings/view/main.php';
}
}