HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux ubuntu-8gb-hel1-1 6.8.0-55-generic #57-Ubuntu SMP PREEMPT_DYNAMIC Wed Feb 12 23:42:21 UTC 2025 x86_64
User: www-data (33)
PHP: 8.1.32
Disabled: NONE
Upload Files
File: /var/www/agighana.org_backup/extras.php
<?php
global $themetype;
// Theme Option
	new \Kirki\Panel(
		'globly_theme_option',
		[
			'priority'    => 10,
			'title'       => esc_html__( 'Theme Option', 'kirki' ),
		]
	);

// Color Section
	Kirki::add_config( 'color_section' );

	Kirki::add_section( 'color_section', [
		'title'    => esc_html__( 'Colors', 'kirki' ),
	    'priority' => 10,
	] );

	Kirki::add_field( 'color_section', [
		'type'      => 'color',
		'settings'  => $themetype['plugiformname'].'_link_color',
		'label'       => __( 'Link Color', 'kirki' ),
		'section'     => 'color_section',
		'default'     => '#000000',
		'priority'  => 40,
		'choices'     => [
			'alpha' => true,
		],
		'output' => array(
			array(
				'element'  => 'body a, .entry-meta span',
				'property' => 'color',
			),
		),
	] );

	Kirki::add_field( 'color_section', [
		'type'      => 'color',
		'settings'  => $themetype['plugiformname'].'_link_hover_color',
		'label'       => __( 'Link Hover Color', 'kirki' ),
		'section'     => 'color_section',
		'default'     => '#000000',
		'priority'  => 50,
		'choices'     => [
			'alpha' => true,
		],
		'output' => array(
			array(
				'element'  => 'body a:hover',
				'property' => 'color',
			),
		),
	] );


//logo option in image width title_tagline

	new \Kirki\Field\Text(
		[
			'settings' => $themetype['plugiformname'].'_logo_width',
			'label'    => esc_html__( 'Logo Image Width', 'kirki' ),
			'description' => esc_html__( 'in px', 'kirki' ),
			'section'  => 'title_tagline',
			'default'  => '150px',
			'output' => array(
				array(
					'element'  => 'img.custom-logo',
					'property' => 'width',
					'suffix' => ' !important',
				),
			),
		]
	);
?>