Exemplo n.º 1
0
function pb_addtocart($item_id)
{
    return '/graph/addtocart?id=' . $item_id . '&accessToken=' . pb_og('token') . '&redirect=' . domain('actual_link');
}
Exemplo n.º 2
0
function pb_og_fgc($call, $query)
{
    return file_get_contents('http://' . domain() . '/graph/' . $call . '?accessToken=' . pb_og('token') . '&' . $query);
}
Exemplo n.º 3
0
<!-- 		<span style="font-size: 14px;" class="pb-theme-black"><?php 
print $pb_user['registered'];
?>
</span> -->
	</h3>
	
	<?php 
print '<strong><i class="zmdi zmdi-home"></i> ' . $home . '</strong><br />' . pb_user()->phone . '<br />' . pb_user()->email . '';
?>
	<hr />
</div>


<div class="pb-sidebar-overflow" style="padding-bottom: 20px;">
	<?php 
$user_feed = pb_switch(json_decode(pb_og('feed', pb_user()->user_id)));
if (!is_array($user_feed)) {
    foreach ($user_feed as $post) {
        if ($post->status == 'open' || $post->status == 1) {
            if ($post->type == 'product') {
                ?>
					<a href="/item?id=<?php 
                print $post->id;
                ?>
">
					<div class="col-md-12 pb-post pb-rule-below-thick">
						<div class="pb-post-block">
							<div class="pb-post-content">
								<?php 
                if (!empty($post->images->featured) && pb_is_image($post->images->featured)) {
                    print '<img src="' . $post->images->featured . '" class="pb-post-product lazy">';