Current File : /home/kelaby89/muzza.fit/wp-content/themes/deadlift/inc/customizer/mods/logo.php
<?php
/**
 * Deadlift customizer logo mods
 *
 * @package WordPress
 * @subpackage Deadlift
 * @version 1.8.2
 */

defined( 'ABSPATH' ) || exit;

/**
 * Logo mods
 *
 * @param array $mods Array of mods.
 * @return array
 */
function deadlift_set_logo_mods( $mods ) {

	$mods['logo'] = array(
		'id'          => 'logo',
		'title'       => esc_html__( 'Logo', 'deadlift' ),
		'icon'        => 'visibility',
		'description' => sprintf(
			wp_kses(
				/* translators: 1: logo width in pixels, 2: logo heigh in pixels, 3: logo max width in pixels */
				__( 'Your theme recommends a logo size of <strong>%1$d &times; %2$d</strong> pixels and set the maximum width to <strong>%3$d</strong> below.', 'deadlift' ),
				array(
					'strong' => array(),
				)
			),
			360,
			160,
			180
		),
		'options'     => array(

			'logo_dark'       => array(
				'id'    => 'logo_dark',
				'label' => esc_html__( 'Logo - Dark Version', 'deadlift' ),
				'type'  => 'image',
			),

			'logo_light'      => array(
				'id'    => 'logo_light',
				'label' => esc_html__( 'Logo - Light Version', 'deadlift' ),
				'type'  => 'image',
			),

			'logo_svg'      => array(
				'id'    => 'logo_svg',
				'label' => esc_html__( 'Logo SVG', 'deadlift' ),
				'type'  => 'image',
			),

			'logo_max_width'  => array(
				'id'    => 'logo_max_width',
				'label' => esc_html__( 'Logo Max Width (don\'t ommit px )', 'deadlift' ),
				'type'  => 'text',
			),

			'logo_visibility' => array(
				'id'        => 'logo_visibility',
				'label'     => esc_html__( 'Visibility', 'deadlift' ),
				'type'      => 'select',
				'choices'   => array(
					'always'      => esc_html__( 'Always', 'deadlift' ),
					'sticky_menu' => esc_html__( 'When menu is sticky only', 'deadlift' ),
				),
				'transport' => 'postMessage',
			),
		),
	);
	
	return $mods;
}
add_filter( 'deadlift_customizer_mods', 'deadlift_set_logo_mods' );
Page not found – Hello World !