Uname: Linux webm016.cluster127.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64
Software: Apache
PHP version: 7.4.33 [ PHP INFO ] PHP os: Linux
Server Ip: 54.36.31.145
Your Ip: 216.73.216.182
User: homesquasz (91404) | Group: users (100)
Safe Mode: OFF
Disable Function:
_dyuweyrj4,_dyuweyrj4r,dl

name : social.php
<?php

tie_build_theme_option(
	array(
		'title' =>	esc_html__( 'Social Networks', TIELABS_TEXTDOMAIN ),
		'id'    => 'social-networks-tab',
		'type'  => 'tab-title',
	));

tie_build_theme_option(
	array(
		'title' => esc_html__( 'Social Networks', TIELABS_TEXTDOMAIN ),
		'id'    => 'social-networks',
		'type'  => 'header',
	));

tie_build_theme_option(
	array(
		'name'   => esc_html__( 'RSS', TIELABS_TEXTDOMAIN ),
		'id'     => 'rss_icon',
		'type'   => 'checkbox',
		'toggle' => '#social-rss-item'
	));


$social_array	= tie_social_networks();

foreach ( $social_array as $network => $data ){

	$social_data = array(
		'name' => $data['title'],
		'id'   => 'social',
		'key'  => $network,
		'type' => 'arrayText',
	);

	$social_data['hint'] = ! empty( $data['hint'] ) ? $data['hint'] : '';

	tie_build_theme_option( $social_data );
}

for( $i = 1; $i <= 5; $i++ ){

	tie_build_theme_option(
		array(
			'title' => esc_html__( 'Custom Social Network', TIELABS_TEXTDOMAIN ),
			'id'    => 'custom-social-network-' . $i ,
			'type'  => 'header',
		));

	tie_build_theme_option(
		array(
			'name' => esc_html__( 'Title', TIELABS_TEXTDOMAIN ),
			'id'   => 'custom_social_title_'.$i,
			'type' => 'text',
		));

	tie_build_theme_option(
		array(
			'name'        => esc_html__( 'URL', TIELABS_TEXTDOMAIN ),
			'id'          => 'custom_social_url_'.$i,
			'placeholder' => 'https://',
			'type'        => 'text',
		));

	tie_build_theme_option(
		array(
			'name' => esc_html__( 'Color', TIELABS_TEXTDOMAIN ),
			'id'   => 'custom_social_color_'.$i,
			'type' => 'color',
		));

	tie_build_theme_option(
		array(
			'name'        => esc_html__( 'Icon', TIELABS_TEXTDOMAIN ),
			'id'          => 'custom_social_icon_'.$i,
			'hint'        => '<a href="'. esc_url( 'https://fontawesome.com/icons?d=gallery&s=brands&m=free' ) .'" target="_blank">'. esc_html__( 'Use the full Font Awesome icon name', TIELABS_TEXTDOMAIN ) .'</a>',
			'type'        => 'icon',
			'placeholder' => 'fab fa-icon',
		));

	tie_build_theme_option(
		array(
			'name'        => esc_html__( 'Image Icon', TIELABS_TEXTDOMAIN ),
			'id'          => 'custom_social_icon_img_'.$i,
			'pre_text'    => esc_html__( '- OR -', TIELABS_TEXTDOMAIN ),
			'type'        => 'upload',
			'placeholder' => 'https://',
		));
}
© 2026 GrazzMean