| 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/content/ |
Upload File : |
<?php
/**
* Created by PhpStorm.
* User: wiloke
* Date: 7/12/15
* Time: 9:56 PM
*/
/*Get the status of sharing box on page*/
function pi_is_sharing_box_on_page()
{
$status = piBlogCustomize::pi_refresh_in_customize("pi_options[content][sharing_box_on_page][toggle]") ? piBlogCustomize::pi_refresh_in_customize("pi_options[sharing_box_on_page][toggle]") : piBlogFramework::$piOptions['content']['sharing_box_on_page']['toggle'];
if ( $status == 'disable' )
{
$status = 0;
}
return $status;
}
/* Sharing Box */
function pi_render_sharing_box_on_page()
{
global $post;
do_action('pi_before_sharing_box');
$sharing_box = "";
// $sharing_box .= '<div class="pi-sharing_box share">';
$sharing_box .= '<a target="_blank" href="http://www.facebook.com/sharer.php?u='.urlencode(get_permalink($post->ID)).'&t='.urlencode(get_the_title($post->ID)).'"><i class="fa fa-facebook"></i></a>';
$sharing_box .= '<a target="_blank" href="http://twitthis.com/twit?url='.urlencode(get_permalink($post->ID)).'"><i class="fa fa-twitter"></i></a>';
$sharing_box .= '<a target="_blank" href="http://google.com/bookmarks/mark?op=edit&bkmk='.urlencode(get_permalink($post->ID)).'&title='.urlencode(get_the_title($post->ID)).'"><i class="fa fa-google-plus"></i></a>';
// $sharing_box .= '<a target="_blank" href="http://vkontakte.ru/share.php?url='.urlencode(get_permalink($post->ID)).'&title='.urlencode(get_the_title($post->ID)).'"><i class="fa fa-vk"></i></a>';
$sharing_box .= '<a data-pin-do="skipLink" target="_blank" href="https://pinterest.com/pin/create/button/?url='.urlencode(get_permalink($post->ID)).'&media='.urlencode(get_the_post_thumbnail($post->ID, 'full')).'&description='.urlencode(get_the_title($post->ID)).'"><i class="fa fa-pinterest"></i></a>';
// $sharing_box .= '</div>';
if ( has_filter('pi_render_sharing_box') )
{
$sharing_box = apply_filters("pi_render_sharing_box", $sharing_box);
}
echo apply_filters('pi_filter_before_sharingbox_wrapper', '<div class="pi-sharingbox">');
echo wp_unslash($sharing_box);
echo apply_filters('pi_filter_after_sharingbox_wrapper', '</div>');
do_action('pi_after_sharing_box');
}
/*End / Sharing Box*/
/* Page Sidebar */
function pi_get_sidebar_on_page()
{
$sidebar = piBlogCustomize::pi_refresh_in_customize("pi_options[content][sidebar_on_page]") ? piBlogCustomize::pi_refresh_in_customize("pi_options[sidebar_on_page]") : piBlogFramework::$piOptions['content']['sidebar_on_page'];
if ( $sidebar == 'default' )
{
$sidebar = pi_get_sidebar_layout();
}
return $sidebar;
}
/* End / Page Sidebar */