10, 'orderby' => 'post_date', 'order' => 'DESC', 'post_type' => 'shop_order', 'post_status' => 'publish' ); $orders = get_posts( $args ); if ($orders) : echo '
    '; foreach ($orders as $order) : $this_order = new jigoshop_order( $order->ID ); echo '
  • '.ucwords(__($this_order->status, 'jigoshop')).' '.get_the_time(__('l jS \of F Y h:i:s A', 'jigoshop'), $order->ID).'
    '.sizeof($this_order->items).' '._n('item', 'items', sizeof($this_order->items), 'jigoshop').' '.__('Total: ', 'jigoshop').jigoshop_price($this_order->order_total).'
  • '; endforeach; echo '
'; endif; ?>

'product', 'post_status' => 'publish', 'ignore_sticky_posts' => 1, 'posts_per_page' => -1 ); $my_query = new WP_Query($args); if ($my_query->have_posts()) : while ($my_query->have_posts()) : $my_query->the_post(); $_product = new jigoshop_product( $my_query->post->ID ); if (!$_product->managing_stock()) continue; $thisitem = ' '.$_product->stock.' '.$my_query->post->post_title.' '; if ($_product->stock<=$nostockamount) : $outofstock[] = $thisitem; continue; endif; if ($_product->stock<=$lowstockamount) $lowinstock[] = $thisitem; endwhile; endif; wp_reset_query(); if (sizeof($lowinstock)==0) : $lowinstock[] = ''.__('No products are low in stock.', 'jigoshop').''; endif; if (sizeof($outofstock)==0) : $outofstock[] = ''.__('No products are out of stock.', 'jigoshop').''; endif; ?>

get_results("SELECT *, SUBSTRING(comment_content,1,100) AS comment_excerpt FROM $wpdb->comments LEFT JOIN $wpdb->posts ON ($wpdb->comments.comment_post_ID = $wpdb->posts.ID) WHERE comment_approved = '1' AND comment_type = '' AND post_password = '' AND post_type = 'product' ORDER BY comment_date_gmt DESC LIMIT 5" ); if ($comments) : echo '
    '; foreach ($comments as $comment) : echo '
  • '; echo get_avatar($comment->comment_author, '32'); $rating = get_comment_meta( $comment->comment_ID, 'rating', true ); echo '
    '.$rating.' '.__('out of 5', 'jigoshop').'
    '; echo '

    '.$comment->post_title.' reviewed by ' .strip_tags($comment->comment_author) .'

    '; echo '
    '.strip_tags($comment->comment_excerpt).' [...]
  • '; endforeach; echo '
'; else : echo '

'.__('There are no product reviews yet.', 'jigoshop').'

'; endif; ?>

get_item_quantity(5); $rss_items = $rss->get_items(0, $maxitems); if ( $maxitems > 0 ) : echo '
    '; foreach ( $rss_items as $item ) : $title = wptexturize($item->get_title(), ENT_QUOTES, "UTF-8"); $link = $item->get_permalink(); $date = $item->get_date('U'); if ( ( abs( time() - $date) ) < 86400 ) : // 1 Day $human_date = sprintf(__('%s ago','jigoshop'), human_time_diff($date)); else : $human_date = date(__('F jS Y','jigoshop'), $date); endif; echo '
  • '.$title.''.$human_date.'
  • '; endforeach; echo '
'; else : echo '
  • '.__('No items found.','jigoshop').'
'; endif; else : echo '
  • '.__('No items found.','jigoshop').'
'; endif; } ?>