| Server IP : 119.59.104.26 / Your IP : 216.73.217.55 Web Server : Apache/2 System : Linux ns69.hostinglotus.net 4.18.0-553.141.2.el8_10.x86_64 #1 SMP Wed Jul 8 10:28:18 EDT 2026 x86_64 User : com12370 ( 1517) PHP Version : 7.2.34 Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/com12370/public_html/wp-content/themes/titan/wiloke/logoheader/pifollow/ |
Upload File : |
<?php
/**
* Follow
* Created by ninhle - wiloke team
* @since 1.0
*/
add_action('pi_hook_before_logo', 'pi_add_follow_to_logoheader_panel', 10, 3);
function pi_add_follow_to_logoheader_panel($wp_customize, $piSectionPriority, $piControlPriority)
{
$wp_customize->add_section(
'pi_logoheader_follow',
array(
'title' => __('Follow', 'titan'),
'priority' => $piSectionPriority,
'panel' => 'pi_logoheader_panel',
'description'=> __('Enter the social links at the Basic Settings panel', 'titan'),
)
);
$wp_customize->add_setting(
'pi_options[logoheader][follow]',
array(
'default' => 1,
'type' => 'option',
'capability' => 'edit_theme_options',
'sanitize_callback' => 'pi_sanitize_data'
)
);
$wp_customize->add_control(
'pi_options[logoheader][follow]',
array(
'label' => __('Enable/Disable', 'titan'),
'type' => 'select',
'priority' => $piControlPriority,
'section' => 'pi_logoheader_follow',
'settings' => 'pi_options[logoheader][follow]',
'choices' => array(
1 => __('Enable', 'titan'),
0 => __('Disable', 'titan')
)
)
);
}