function PricerrTheme_autosuggest_it() { include 'classes/stem.php'; include 'classes/cleaner.php'; global $wpdb; $string = $_POST['queryString']; $stemmer = new Stemmer(); $stemmed_string = $stemmer->stem($string); $clean_string = new jSearchString(); $stemmed_string = $clean_string->parseString($stemmed_string); $new_string = ''; foreach (array_unique(split(" ", $stemmed_string)) as $array => $value) { if (strlen($value) >= 1) { $new_string .= '' . $value . ' '; } } //$new_string = substr ( $new_string,0, ( strLen ( $new_string ) -1 ) ); $new_string = htmlspecialchars($_POST['queryString']); if (strlen($new_string) > 0) { $split_stemmed = split(" ", $new_string); $sql = "SELECT DISTINCT COUNT(*) as occurences, " . $wpdb->prefix . "posts.post_title, " . $wpdb->prefix . "posts.ID FROM " . $wpdb->prefix . "posts,\r\n\t\t\t" . $wpdb->prefix . "postmeta WHERE " . $wpdb->prefix . "posts.post_status='publish' and \r\n\t\t\t" . $wpdb->prefix . "posts.post_type='job' \r\n\t\t\t\r\n\t\t\t\t\tAND " . $wpdb->prefix . "posts.ID = " . $wpdb->prefix . "postmeta.post_id \r\n\t\t\t\t\tAND " . $wpdb->prefix . "postmeta.meta_key = 'closed' \r\n\t\t\t\t\tAND " . $wpdb->prefix . "postmeta.meta_value = '0' \r\n\t\t\t\r\n\t\t\tAND ("; while (list($key, $val) = each($split_stemmed)) { if ($val != '' && strlen($val) > 0) { $sql .= "(" . $wpdb->prefix . "posts.post_title LIKE '%" . $val . "%' OR " . $wpdb->prefix . "posts.post_content LIKE '%" . $val . "%') OR"; } } $sql = substr($sql, 0, strlen($sql) - 3); //this will eat the last OR $sql .= ") GROUP BY " . $wpdb->prefix . "posts.post_title ORDER BY occurences DESC LIMIT 10"; /* SELECT DISTINCT COUNT(*) as occurences, wp_posts.post_title FROM wp_posts, wp_postmeta WHERE wp_posts.post_status='publish' and wp_posts.post_type='job' AND wp_posts.ID = wp_postmeta.post_id AND wp_postmeta.meta_key = 'closed' AND wp_postmeta.meta_value = '0' AND ((wp_posts.post_title LIKE '%test%' OR wp_posts.post_content LIKE '%test%')) GROUP BY wp_posts.post_title ORDER BY occurences DESC LIMIT 10 */ $r = $wpdb->get_results($sql, ARRAY_A); if (count($r) > 0) { foreach ($r as $row) { echo '<ul id="sk_auto_suggest">'; $prm = get_permalink($row['ID']); echo '<li onClick="window.location=\'' . $prm . '\';">' . PricerrTheme_wrap_the_title($row['post_title'], $row['ID']) . '</li>'; echo '</ul>'; } } else { echo '<ul>'; echo '<li onClick="fill(\'' . $new_string . '\');">' . __('No results found', 'PricerrTheme') . '</li>'; echo '</ul>'; } } }
function PricerrTheme_user_reviews_scr() { $id_icon = 'icon-options-general-rev'; $ttl_of_stuff = 'PricerrTheme - ' . __('User Reviews', 'PricerrTheme'); global $wpdb; //------------------------------------------------------ echo '<div class="wrap">'; echo '<div class="icon32" id="' . $id_icon . '"><br/></div>'; echo '<h2 class="my_title_class_sitemile">' . $ttl_of_stuff . '</h2>'; ?> <div id="usual2" class="usual"> <ul> <li><a href="#tabs1"><?php _e('All User Reviews', 'PricerrTheme'); ?> </a></li> <li><a href="#tabs2"><?php _e('Search User', 'PricerrTheme'); ?> </a></li> <!-- <li><a href="#tabs3"><?php _e('Search Job', 'PricerrTheme'); ?> </a></li> --> </ul> <div id="tabs1"> <?php $s = "select * from " . $wpdb->prefix . "job_ratings where awarded>0 order by id desc"; $r = $wpdb->get_results($s); if (count($r) > 0) { ?> <table class="widefat post fixed" cellspacing="0"> <thead> <tr> <th><?php _e('User', 'PricerrTheme'); ?> </th> <th><?php _e('Job', 'PricerrTheme'); ?> </th> <th><?php _e('Price', 'PricerrTheme'); ?> </th> <th><?php _e('Rating Type', 'PricerrTheme'); ?> </th> <th><?php _e('Description', 'PricerrTheme'); ?> </th> <th><?php _e('Awarded On', 'PricerrTheme'); ?> </th> <th><?php _e('Options', 'PricerrTheme'); ?> </th> </tr> </thead> <tbody> <?php foreach ($r as $row) { $s_ql = "select * from " . $wpdb->prefix . "job_orders where id='" . $row->orderid . "'"; $r_ql = $wpdb->get_results($s_ql); $post = get_post($r_ql[0]->pid); $userdata = get_userdata($post->post_author); $pid = $r_ql[0]->pid; echo '<tr>'; echo '<th>' . $userdata->user_login . '</th>'; echo '<th>' . pricerrtheme_get_show_price(get_post_meta($r_ql[0]->pid, 'price', true)) . '</th>'; echo '<th><a href="' . get_permalink($pid) . '">' . PricerrTheme_wrap_the_title($post->post_title, $pid) . '</a></th>'; echo '<th>' . PricerrTheme_show_stars_our_of_number($row->grade) . '</th>'; echo '<th>' . $row->reason . '</th>'; echo '<th>' . date('d-M-Y H:i:s', $row->datemade) . '</th>'; echo '<th>#</th>'; echo '</tr>'; } ?> </tbody> </table> <?php } else { ?> <div class="padd101"> <?php _e('There are no user feedback.', 'PricerrTheme'); ?> </div> <?php } ?> </div> <div id="tabs2"> <form method="get" action="<?php bloginfo('siteurl'); ?> /wp-admin/admin.php"> <input type="hidden" value="usrrev" name="page" /> <input type="hidden" value="tabs2" name="active_tab" /> <table width="100%" class="sitemile-table"> <tr> <td><?php _e('Search User', 'PricerrTheme'); ?> </td> <td><input type="text" value="<?php echo $_GET['search_user']; ?> " name="search_user" size="20" /> <input type="submit" name="PricerrTheme_save2" value="<?php _e('Search', 'PricerrTheme'); ?> "/></td> </tr> </table> </form> <?php $user = trim($_GET['search_user']); $user = get_userdatabylogin($user); $uid = $user->ID; $s = "select ratings.orderid, ratings.datemade, ratings.reason, ratings.grade \r\n\t\t from " . $wpdb->prefix . "job_ratings ratings, " . $wpdb->prefix . "job_orders orders, " . $wpdb->prefix . "posts posts where orders.pid=posts.ID AND posts.post_author='{$uid}' AND\r\n\t\t\t orders.id=ratings.orderid AND ratings.awarded>0 order by ratings.id desc"; $r = $wpdb->get_results($s); if (count($r) > 0) { ?> <table class="widefat post fixed" cellspacing="0"> <thead> <tr> <th><?php _e('User', 'PricerrTheme'); ?> </th> <th><?php _e('Job', 'PricerrTheme'); ?> </th> <th><?php _e('Price', 'PricerrTheme'); ?> </th> <th><?php _e('Rating Type', 'PricerrTheme'); ?> </th> <th><?php _e('Description', 'PricerrTheme'); ?> </th> <th><?php _e('Awarded On', 'PricerrTheme'); ?> </th> <th><?php _e('Options', 'PricerrTheme'); ?> </th> </tr> </thead> <tbody> <?php foreach ($r as $row) { $s_ql = "select * from " . $wpdb->prefix . "job_orders where id='" . $row->orderid . "'"; $r_ql = $wpdb->get_results($s_ql); $post = get_post($r_ql[0]->pid); $userdata = get_userdata($post->post_author); $pid = $r_ql[0]->pid; echo '<tr>'; echo '<th>' . $userdata->user_login . '</th>'; echo '<th>' . pricerrtheme_get_show_price(get_post_meta($r_ql[0]->pid, 'price', true)) . '</th>'; echo '<th><a href="' . get_permalink($pid) . '">' . PricerrTheme_wrap_the_title($post->post_title, $pid) . '</a></th>'; echo '<th>' . PricerrTheme_show_stars_our_of_number($row->grade) . '</th>'; echo '<th>' . $row->reason . '</th>'; echo '<th>' . date('d-M-Y H:i:s', $row->datemade) . '</th>'; echo '<th>#</th>'; echo '</tr>'; } ?> </tbody> </table> <?php } else { ?> <div class="padd101"> <?php _e('There are no user feedback.', 'PricerrTheme'); ?> </div> <?php } ?> </div> <div id="tabs3"> </div> <?php echo '</div>'; }
$ttl = $post_a->post_title; $max_days = get_post_meta($pid, "max_days", true); $location = wp_get_object_terms($pid, 'job_location'); $cat = wp_get_object_terms($pid, 'job_cat'); $s = "update " . $wpdb->prefix . "job_chatbox set rd_receiver='1' where oid='{$orderid}' AND uid!='{$uid}'"; $wpdb->query($s); ?> <div id="content"> <div class="my_box3"> <div class="padd10"> <div class="box_title"><?php echo sprintf(__("Conversation #%s - %s", 'PricerrTheme'), $orderid, PricerrTheme_wrap_the_title($post_a->post_title, $pid)); ?> </div> <div class="box_content"> <?php if (isset($_POST['send-message'])) { $messaje = nl2br(trim(strip_tags(htmlspecialchars($_POST['messaje'])))); $datemade = current_time('timestamp', 0); global $wpdb; $pref = $wpdb->prefix; $ss = "select * from " . $pref . "job_chatbox where content='{$messaje}'"; $rr = $wpdb->get_results($ss); if (count($rr) == 0) {
//-------------------- wp_redirect(get_permalink(get_option('PricerrTheme_my_account_shopping_page_id'))); exit; } //===================================================== $post = get_post($pid); get_header(); ?> <div id="content"> <div class="my_box3"> <div class="padd10"> <div class="box_title"><?php echo sprintf(__("Request Order Cancellation #%s - %s", 'PricerrTheme'), $orderid, PricerrTheme_wrap_the_title($post->post_title, $pid)); ?> </div> <div class="box_content"> <!-- ####### --> <?php if ($seller_is_logged_in == 1) { echo '<form method="post">'; _e('You are about to request cancellation for this job. By using this option you are asking the buyer to mutually cancel the order. If he agrees, and cancels the order, the money gets refunded into his account and you will not get a bad review over it.', 'PricerrTheme'); echo '<br/><br/>'; _e('Your message to the buyer: ', 'PricerrTheme'); echo '<br/>'; echo '<textarea rows="4" name="message_to_buyer" cols="40">' . $_POST['message_to_buyer'] . '</textarea>'; echo '<br/><br/>'; _e('Click yes to confirm or your back browser button.', 'PricerrTheme');
function PricerrTheme_my_account_reviews_area_function() { global $current_user; get_currentuserinfo(); $uid = $current_user->ID; //------------------------------------- global $wpdb, $wp_rewrite, $wp_query; $third_page = $wp_query->query_vars['third_page']; $third_page = $_GET['pg']; if (empty($_GET['pg'])) { $third_page = 'home'; } ?> <div id="content"> <div class="my_box3"> <div class="padd10"> <!-- page content here --> <div class="box_title3"><?php _e("My Ratings", 'PricerrTheme'); ?> </div> <?php $using_perm = PricerrTheme_using_permalinks(); if ($using_perm) { $rev_pg_lnk = get_permalink(get_option('PricerrTheme_my_account_reviews_page_id')) . "/?"; } else { $rev_pg_lnk = get_bloginfo('siteurl') . "/?page_id=" . get_option('PricerrTheme_my_account_reviews_page_id') . "&"; } ?> <div id="padd10"> <a class="green_btn"<?php echo $third_page == "home" ? 'class="actiove"' : ""; ?> href="<?php echo $rev_pg_lnk; ?> "><?php _e("Ratings to Award", "PricerrTheme"); ?> </a> <a class="green_btn"<?php echo $third_page == "waiting" ? 'class="actiove"' : ""; ?> href="<?php echo $rev_pg_lnk; ?> pg=waiting"><?php _e("Pending Ratings", "PricerrTheme"); ?> </a> <a class="green_btn"<?php echo $third_page == "my_rev" ? 'class="actiove"' : ""; ?> href="<?php echo $rev_pg_lnk; ?> pg=my_rev"><?php _e("My Ratings", "PricerrTheme"); ?> </a> </div> <div class="clear10"></div> <?php if ($third_page == "home") { ?> <div class="box_content"> <script> jQuery(document).ready(function() { jQuery('.dd-submit-rating').click(function() { var id = jQuery(this).attr('rel'); var uprating = jQuery("#rating_me-" + id + " :selected").val(); var reason = jQuery("#reason-" + id).val(); if(reason.length < 10) { alert("<?php _e('Please input a longer description for your rating', 'PricerrTheme'); ?> "); return false; } jQuery.ajax({ type: "POST", url: "<?php echo get_bloginfo('siteurl'); ?> /", data: "rate_me=1&ids="+id+"&uprating="+uprating+"&reason="+reason, success: function(msg){ jQuery("#post-" + id).hide('slow'); } }); return false; }); //------------------------- }); </script> <?php global $wpdb; $query = "select distinct *, ratings.id ratid from " . $wpdb->prefix . "job_ratings ratings, " . $wpdb->prefix . "job_orders orders where \r\n\t\t\t\t\t ratings.awarded='0' AND orders.id=ratings.orderid AND orders.uid='{$uid}'"; $r = $wpdb->get_results($query); if (count($r) > 0) { foreach ($r as $row) { $post = $row->pid; $post = get_post($post); $user = get_userdata($row->touser); ?> <div class="post" id="post-<?php echo $row->ratid; ?> "> <div class="padd10_only"> <div class="image_holder3"> <a href="<?php the_permalink(); ?> "><img width="65" height="50" src="<?php echo PricerrTheme_get_first_post_image($row->pid, 65, 50); ?> " /></a> </div> <div class="title_holder3" > <h2><a href="<?php echo get_permalink($row->pid); ?> "><?php echo PricerrTheme_wrap_the_title($post->post_title, $row->pid); ?> </a></h2> <div class="c111">Rate:</div> <div class="c111"><textarea id="reason-<?php echo $row->ratid; ?> " rows="2" cols="35"></textarea></div> <div class="c111"> <select name="rating_me" id="rating_me-<?php echo $row->ratid; ?> "> <option value="5">5</option> <option value="4">4</option> <option value="3">3</option> <option value="2">2</option> <option value="1">1</option> </select> </div> <div class="c111 ck999"> <a href="#" rel="<?php echo $row->ratid; ?> " class="dd-submit-rating"><?php _e('Submit Rating Now', 'PricerrTheme'); ?> </a> </div> </div> </div> </div> <?php } } else { _e("There are no reviews to be awarded.", "PricerrTheme"); } ?> </div> <?php } elseif ($third_page == "waiting") { ?> <div class="box_content"> <?php global $wpdb; $query = "select distinct * from " . $wpdb->prefix . "job_ratings ratings, " . $wpdb->prefix . "job_orders orders, \r\n\t\t\t\t\t" . $wpdb->prefix . "posts posts where posts.ID=orders.pid AND \r\n\t\t\t\t\t ratings.awarded='0' AND orders.id=ratings.orderid AND posts.post_author='{$uid}'"; $r = $wpdb->get_results($query); if (count($r) > 0) { foreach ($r as $row) { $post = $row->pid; $post = get_post($post); $user = get_userdata($row->uid); ?> <div class="post" id="post-<?php echo $row->ratid; ?> "> <div class="padd10_only"> <div class="image_holder3"> <a href="<?php the_permalink(); ?> "><img width="65" height="50" src="<?php echo PricerrTheme_get_first_post_image($row->pid, 65, 50); ?> " /></a> </div> <div class="title_holder3" > <h2><a href="<?php echo get_permalink($row->pid); ?> "><?php echo PricerrTheme_wrap_the_title($post->post_title, $row->pid); ?> </a></h2> <?php echo sprintf(__('Waiting from: %s', 'PricerrTheme'), $user->user_login); ?> </div> </div> </div> <?php } } else { _e("You have no pending reviews.", "PricerrTheme"); } ?> </div> <?php } elseif ($third_page == "my_rev") { ?> <div class="box_content"> <?php global $wpdb; $query = "select distinct *, ratings.id ratid from " . $wpdb->prefix . "job_ratings ratings, " . $wpdb->prefix . "job_orders orders, \r\n\t\t\t\t\t" . $wpdb->prefix . "posts posts where posts.ID=orders.pid AND \r\n\t\t\t\t\t ratings.awarded='1' AND orders.id=ratings.orderid AND posts.post_author='{$uid}'"; $r = $wpdb->get_results($query); if (count($r) > 0) { foreach ($r as $row) { $post = $row->pid; $post = get_post($post); $user = get_userdata($row->touser); ?> <div class="post" id="post-<?php echo $row->ratid; ?> "> <div class="padd10_only"> <div class="image_holder3"> <a href="<?php the_permalink(); ?> "><img width="65" height="50" src="<?php echo PricerrTheme_get_first_post_image($row->pid, 65, 50); ?> " /></a> </div> <div class="title_holder3" > <h2><a href="<?php echo get_permalink($row->pid); ?> "><?php echo PricerrTheme_wrap_the_title($post->post_title, $row->pid); ?> </a></h2> <div class="c111"><b><?php _e("Rated", "PricerrTheme"); ?> : </b></div> <div class="c111"><?php echo PricerrTheme_show_stars_our_of_number($row->grade); ?> </div> <div class="clear10" style="float:left"></div> <div class="c111"><b><?php _e("Description", "PricerrTheme"); ?> : </b></div> <div class="c111"><?php echo stripslashes($row->reason); ?> </div> </div> </div> </div> <?php } } else { _e("You have no reviews.", "PricerrTheme"); } ?> </div> <?php } ?> <!-- page content here --> </div></div></div> <?php PricerrTheme_get_users_links(); }
function PricerrTheme_filter_ttl($title) { return __("Pay for featured job", 'PricerrTheme') . " - "; } add_filter('wp_title', 'PricerrTheme_filter_ttl', 10, 3); if (!is_user_logged_in()) { wp_redirect(get_bloginfo('siteurl') . "/wp-login.php"); exit; } global $current_user; get_currentuserinfo(); $uid = $current_user->ID; //-------------------------------- $pid = $_GET['jobid']; $post = get_post($pid); $jbnm = PricerrTheme_wrap_the_title($post->post_title, $pid); $prc = get_option('PricerrTheme_new_job_feat_listing_fee'); if (get_post_meta($pid, 'featured', true) != "1") { $prc = 0; } $PricerrTheme_new_job_listing_fee = get_option('PricerrTheme_new_job_listing_fee'); $prc += $PricerrTheme_new_job_listing_fee; get_header(); $cr = PricerrTheme_get_show_price(PricerrTheme_get_credits($uid)); ?> <div id="content"> <div class="box_title"><?php echo sprintf(__('Pay for job: %s', 'PricerrTheme'), $jbnm);
function PricerrTheme_add_wrap_the_title($title, $pid) { $post = get_post($pid); //$post = PricerrTheme_get_post_by_title($title); if ($post != false) { if ($post->post_type == "job") { $data = PricerrTheme_wrap_the_title($title, $post->ID); return $data; } } return $title; }
function PT_JOB_filter_ttl($title) { global $post; return PricerrTheme_wrap_the_title($post->post_title, $post->ID) . " - " . get_bloginfo('name'); }
function PricerrTheme_pay_for_job_area_function() { global $current_user, $wpdb; get_currentuserinfo(); $uid = $current_user->ID; $pid = trim($_GET['jobid']); $post = get_post($_GET['jobid']); $jbnm = PricerrTheme_wrap_the_title($post->post_title, $pid); $prc = get_option('PricerrTheme_new_job_feat_listing_fee'); if (get_post_meta($pid, 'featured', true) != "1") { $prc = 0; } $PricerrTheme_new_job_listing_fee = get_option('PricerrTheme_new_job_listing_fee'); $prc += $PricerrTheme_new_job_listing_fee; ?> <div id="content"> <div class="box_title"><?php echo sprintf(__('Pay for job: %s', 'PricerrTheme'), $jbnm); ?> </div> <div class="box_content"> <span class="skl_pay_feat"> <?php echo sprintf(__('You are about to pay for the listing fees for your new job. <br/>The fee is <b>%s</b>. Please use the following payment methods.', 'PricerrTheme'), PricerrTheme_get_show_price($prc)); ?> </span> <br/><br/> <?php $PricerrTheme_paypal_enable = get_option('PricerrTheme_paypal_enable'); if ($PricerrTheme_paypal_enable == "yes") { echo '<a class="payment_feat" href="' . get_bloginfo('siteurl') . '/?jb_action=pay_featured&method=paypal&jobid=' . $pid . '">' . __('Pay with PayPal', 'PricerrTheme') . '</a> '; } ?> <?php $PricerrTheme_moneybookers_enable = get_option('PricerrTheme_moneybookers_enable'); if ($PricerrTheme_moneybookers_enable == "yes") { echo '<a class="payment_feat" href="' . get_bloginfo('siteurl') . '/?jb_action=pay_featured&method=moneybookers&jobid=' . $pid . '">' . __('Pay with Moneybookers', 'PricerrTheme') . '</a> '; } ?> <?php $PricerrTheme_alertpay_enable = get_option('PricerrTheme_alertpay_enable'); if ($PricerrTheme_alertpay_enable == "yes") { echo '<a class="payment_feat" href="' . get_bloginfo('siteurl') . '/?jb_action=pay_featured&method=payza&jobid=' . $pid . '">' . __('Pay with Payza', 'PricerrTheme') . '</a> '; } $PricerrTheme_get_credits = PricerrTheme_get_credits($uid); if ($PricerrTheme_get_credits >= $prc) { echo '<a class="payment_feat" href="' . get_bloginfo('siteurl') . '/?jb_action=pay_featured_credits&jobid=' . $pid . '">' . __('Pay by Virtual Currency', 'PricerrTheme') . '</a> '; } do_action('PricerrTheme_pay_for_featured_job', $pid); ?> </div> </div> <div id="right-sidebar"> <ul class="xoxo"> <?php dynamic_sidebar('other-page-area'); ?> </ul> </div> <?php }
function PricerrTheme_my_account_area_function() { global $current_user; get_currentuserinfo(); $uid = $current_user->ID; update_user_meta($uid, 'ip_reg', $_SERVER['REMOTE_ADDR']); update_user_meta($uid, 'last_user_login', current_time('timestamp', 0)); //------------------------------------- ?> <div id="content"> <!-- page content here --> <?php global $wpdb; $s = "select orders.id oid, posts.ID pid, count(chatbox.id) mess_count from " . $wpdb->prefix . "job_chatbox chatbox, " . $wpdb->prefix . "job_orders orders, {$wpdb->posts} posts where \r\n\t\t\t\tchatbox.rd_receiver='0' AND chatbox.oid=orders.id AND chatbox.uid!='{$uid}' AND posts.ID=orders.pid AND (posts.post_author='{$uid}' OR orders.uid='{$uid}') group by orders.id order by orders.id desc "; $r = $wpdb->get_results($s); //echo '<pre>'; //print_r($r); //echo '<pre>'; if (count($r) > 0) { ?> <div class="info_box_m"> <table width="100%"> <?php foreach ($r as $row) { $pst = get_post($row->pid); $lkm = get_bloginfo('siteurl') . "/?jb_action=chat_box&oid=" . $row->oid; echo '<tr>'; echo '<td width="32"><img src="' . get_bloginfo('template_url') . '/images/i_icon.png" border="0" /></td>'; echo '<td>'; echo sprintf(__('You have %s unread message(s) on the order for: <a href="%s">%s</a>', 'PricerrTheme'), $row->mess_count, $lkm, PricerrTheme_wrap_the_title($pst->post_title, $row->pid)); echo '</td></tr>'; } ?> </table> </div> <?php } ?> <!-- notifications --> <div class="my_new_box_title"><?php _e("My Listings", 'PricerrTheme'); ?> </div> <div class="job_info_stuff2"> <div class="padd5"> <div class="font-my-account-info"><?php _e("Active", "PricerrTheme"); ?> : <?php echo pricerrTheme_nr_active_jobs($uid); ?> </div> <div class="separator_my-account"></div> <div class="font-my-account-info"><?php _e("Inactive", "PricerrTheme"); ?> : <?php echo pricerrTheme_nr_inactive_jobs($uid); ?> </div> <div class="separator_my-account"></div> <div class="font-my-account-info"><?php _e("In Review", "PricerrTheme"); ?> : <?php echo pricerrTheme_nr_in_review_jobs($uid); ?> </div> </div> </div> <!-- ####### --> <div class="box_content"> <?php global $wp_query; $query_vars = $wp_query->query_vars; $post_per_page = 10; query_posts("meta_key=closed&meta_value=0&post_status=publish,draft&post_type=job&order=DESC&orderby=id&author=" . $uid . "&posts_per_page=" . $post_per_page . "&paged=" . $query_vars['paged']); if (have_posts()) { while (have_posts()) { the_post(); PricerrTheme_get_post_small(); } if (function_exists('wp_pagenavi')) { wp_pagenavi(); } } else { _e("There are no jobs yet.", 'PricerrTheme'); } wp_reset_query(); ?> </div> <!-- page content here --> </div> <?php PricerrTheme_get_users_links(); }