403Webshell
Server IP : 172.67.214.6  /  Your IP : 216.73.216.73
Web Server : LiteSpeed
System : Linux premium900.web-hosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64
User : redwjova ( 1790)
PHP Version : 8.1.32
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : ON |  Sudo : OFF |  Pkexec : OFF
Directory :  /home/redwjova/fyntric.com/wp-content/themes/smart-mag/admin/options/header/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/redwjova/fyntric.com/wp-content/themes/smart-mag/admin/options/header/social.php
<?php
/**
 * Element: Social Icons
 */
$fields = [];

$template = [
	[
		'name'  => '_g_{key}_social',
		'type'  => 'group',
		'style' => 'collapsible',
		'template' => [
			'header' => [
				'label'  => esc_html__('Main Header', 'bunyad-admin'),
				'collapsed' => false,
				'group'     => '',
			],
			'header_mob' => [
				'label' => esc_html__('Mobile Header', 'bunyad-admin'),
				'group'     => '',
			],
		]
	],
	[
		'name'    => '{key}_social_services',
		'label'   => esc_html__('Services to Show', 'bunyad-admin'),
		'value'   => ['facebook', 'twitter', 'instagram'],
		'desc'    => sprintf(
			esc_html__('NOTE: Configure these icons URLs from %1$sSocial Media Links%2$s.', 'bunyad-admin'),
			'<a href="#" class="focus-link is-with-nav" data-section="bunyad-misc-social">',
			'</a>'
		),
		'type'    => 'checkboxes',
		'style'   => 'sortable',
		'options' => $_common['social_services'],
	],

	[
		'name'     => '{key}_social_style',
		'label'    => esc_html__('Icons Style', 'bunyad-admin'),
		'desc'     => '',
		'value'    => 'a',
		'type'     => 'select',
		'options'  => [
			'a' => esc_html__('A: Small Icons', 'bunyad-admin'),
			'b' => esc_html__('B: Rounded Icons', 'bunyad-admin'),
			'c' => esc_html__('C: Small with BG Colors', 'bunyad-admin'),
		],
	],

	[
		'name'    => 'css_{key}_social_color',
		'label'   => esc_html__('Icons Color', 'bunyad-admin'),
		'desc'    => '',
		'value'   => '',
		'type'    => 'color-alpha',
		'style'   => 'inline-sm',
		'css'     => [
			'.smart-head-{suffix} .spc-social' => ['props' => ['--c-spc-social' => '%s']]
		]
	],
	[
		'name'    => 'css_{key}_social_hov_color',
		'label'   => esc_html__('Icons Hover', 'bunyad-admin'),
		'desc'    => '',
		'value'   => '',
		'type'    => 'color-alpha',
		'style'   => 'inline-sm',
		'css'     => [
			'.smart-head-{suffix} .spc-social' => ['props' => ['--c-spc-social-hov' => '%s']]
		]
	],
	[
		'name'    => 'css_{key}_social_color_sd',
		'label'   => esc_html__('Dark: Icons Color', 'bunyad-admin'),
		'desc'    => '',
		'value'   => '',
		'type'    => 'color-alpha',
		'style'   => 'inline-sm',
		'css'     => [
			'.s-dark .smart-head-{suffix} .spc-social,
			.smart-head-{suffix} .s-dark .spc-social' => [
				'props' => ['--c-spc-social' => '%s']
			]
		]
	],
	[
		'name'    => 'css_{key}_social_hov_color_sd',
		'label'   => esc_html__('Dark: Icons Hover', 'bunyad-admin'),
		'desc'    => '',
		'value'   => '',
		'type'    => 'color-alpha',
		'style'   => 'inline-sm',
		'css'     => [
			'.s-dark .smart-head-{suffix} .spc-social,
			.smart-head-{suffix} .s-dark .spc-social' => ['props' => ['--c-spc-social-hov' => '%s']]
		]
	],
	[
		'name'    => 'css_{key}_social_size',
		'label'   => esc_html__('Icons Size', 'bunyad-admin'),
		'desc'    => '',
		'value'   => '',
		'type'    => 'number',
		'input_attrs' => ['min' => 8],
		'style'   => 'inline-sm',
		'css'     => [
			'.smart-head-{suffix} .spc-social' => [
				'props' => ['--spc-social-fs' => '%spx']
			]
		]
	],

	[
		'name'    => 'css_{key}_social_box_size',
		'label'   => esc_html__('Icons Box Size', 'bunyad-admin'),
		'desc'    => '',
		'value'   => '',
		'type'    => 'number',
		'style'   => 'inline-sm',
		'css'     => [
			'.smart-head-{suffix} .spc-social' => [
				'props' => ['--spc-social-size' => '%spx']
			]
		]
	],

	[
		'name'    => 'css_{key}_social_space',
		'label'   => esc_html__('Icons Space', 'bunyad-admin'),
		'desc'    => '',
		'value'   => '',
		'type'    => 'number',
		'style'   => 'inline-sm',
		'css'     => [
			'.smart-head-{suffix} .spc-social' => [
				'props' => ['--spc-social-space' => '%spx']
			]
		]
	],

	[
		'name'  => 'css_{key}_social_lg_hide',
		'label' => esc_html__('Hide on Large Tablets', 'bunyad-admin'),
		'value' => '',
		'type'  => 'toggle',
		'style' => 'inline-sm',
		'css'   => [
			'.smart-head-{suffix} .spc-social' => [
				'large' => [
					'props' => ['display' => 'none'],
					'value_key' => 'global'
				]
			]
		]
	],
	[
		'name'  => 'css_{key}_social_sm_desk_hide',
		'label' => esc_html__('Hide on Small Desktops', 'bunyad-admin'),
		'value' => '',
		'type'  => 'toggle',
		'style' => 'inline-sm',
		'css'   => [
			'.smart-head-{suffix} .spc-social' => [
				'x-large' => [
					'props' => ['display' => 'none'],
					'value_key' => 'global'
				]
			]
		]
	]
];

\Bunyad\Util\repeat_options(
	$template,
	[
		'header'     => [
			'replacements' => ['{suffix}' => 'main'],
			'group'        => '_g_{key}_social'
		],
		'header_mob' => [
			'replacements' => ['{suffix}' => 'mobile'],
			'group'        => '_g_{key}_social'
		],
	],
	$fields,
	[
		'replace_in' => ['css', 'group'],
	]
);

return $fields;

Youez - 2016 - github.com/yon3zu
LinuXploit