HEX
Server: Apache
System: Linux hp3-wp-1011494.hostingp3.local 3.10.0-1160.139.1.el7.tuxcare.els2.x86_64 #1 SMP Mon Nov 3 13:30:41 UTC 2025 x86_64
User: csh2729955 (2121743)
PHP: 7.4.33
Disabled: shell_exec,exec,system,popen,set_time_limit
Upload Files
File: /home/storage/162/3480162/user/htdocs/wp-content/plugins/envo-magazine-pro/options/header.php
<?php

if (!class_exists('Kirki')) {
    return;
}

Kirki::add_field('envo_magazine_pro', array(
    'type' => 'radio-buttonset',
    'settings' => 'header_layout',
    'label' => esc_attr__('Logo & Title position', 'envo-magazine-pro'),
    'section' => 'title_tagline',
    'default' => 'left',
    'priority' => 4,
    'choices' => array(
        'left' => esc_attr__('Left', 'envo-magazine-pro'),
        'center' => esc_attr__('Center', 'envo-magazine-pro'),
    ),
));
Kirki::add_field('envo_magazine_pro', array(
    'type' => 'spacing',
    'settings' => 'title_margin',
    'label' => esc_html__('Logo/Title spacing', 'envo-magazine-pro'),
    'section' => 'title_tagline',
    'transport' => 'postMessage',
    'default' => array(
        'top' => '10px',
        'bottom' => '',
    ),
    'output' => array(
        array(
            'element' => '.site-heading',
            'property' => 'padding',
        ),
    ),
));

add_filter('body_class', 'envo_gamgazine_pro_body_class_logo_center');

function envo_gamgazine_pro_body_class_logo_center($classes) {

    $header = get_theme_mod('header_layout', 'left');

    $classes[] = 'envo-mag-header-' . $header;

    return $classes;
}