| 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/admin/customize/plugins/views/rest/ |
Upload File : |
<?php
/**
* Render Follow us on social networks
* @since 1.0
*/
function pi_render_follow($showingTitle = false)
{
$follow = "";
foreach ( piConfigs::$aConfigs['configs']['rest']['follow'] as $key => $aInfo )
{
$social = piBlogCustomize::pi_refresh_in_customize("pi_options[follow][$key]") ? piBlogCustomize::pi_refresh_in_customize("pi_options[follow][$key]") :
piBlogFramework::$piOptions['follow'][$key];
if ( !empty($social) )
{
$follow .= '<a href="'.esc_url($social).'" target="_blank"><i class="'.esc_attr($aInfo[0]).'"></i>';
if ( $showingTitle )
{
$follow .= ' ' . $aInfo[1];
}
$follow .= '</a>';
}
}
if ( empty($follow) )
{
return;
}
do_action('pi_before_render_follow');
echo '<div class="'.apply_filters('pi_filter_follow_wrapper_class', 'pi-follow').'">';
if ( has_filter('pi_filter_render_follow') )
{
echo apply_filters('pi_filter_render_follow', $follow, array('classes'=>'pi-follow', 'id'=>''));
}else{
print $follow;
}
echo '</div>';
do_action('pi_after_render_follow');
}
function pi_render_footer_social()
{
$follow = "";
foreach ( piConfigs::$aConfigs['configs']['rest']['follow'] as $key => $aInfo )
{
$social = piBlogCustomize::pi_refresh_in_customize("pi_options[follow][$key]") ? piBlogCustomize::pi_refresh_in_customize("pi_options[follow][$key]") :
piBlogFramework::$piOptions['follow'][$key];
if ( !empty($social) )
{
$follow .= '<a href="'.esc_url($social).'" target="_blank"><i class="'.esc_attr($aInfo[0]).'"></i>'.$aInfo[1].'</a>';
}
}
if ( !empty($follow) )
{
$follow = '<div class="footer-social"><div class="pi-container">'.$follow.'</div><div class="pi-border"><span></span><span></span></div></div>';
}
print $follow;
}
?>