コード例 #1
0
ファイル: functions.php プロジェクト: vicpril/rep_bidqa
function projectTheme_get_post_pay_function($arr = '')
{
    $ending = get_post_meta(get_the_ID(), 'ending', true);
    $sec = $ending - current_time('timestamp', 0);
    $location = get_post_meta(get_the_ID(), 'Location', true);
    $closed = get_post_meta(get_the_ID(), 'closed', true);
    $featured = get_post_meta(get_the_ID(), 'featured', true);
    $post = get_post(get_the_ID());
    $hide_project_p = get_post_meta(get_the_ID(), 'private_bids', true);
    global $current_user;
    get_currentuserinfo();
    $uid = $current_user->ID;
    $bid = projectTheme_get_winner_bid(get_the_ID());
    $bid_wn = ProjectTheme_get_show_price($bid->bid);
    $winner = get_post_meta(get_the_ID(), 'winner', false);
    foreach ($winner as &$one) {
        $one = get_userdata($one);
        $one = '<a href="' . ProjectTheme_get_user_profile_link($one->ID) . '">' . $one->user_login . '</a>';
    }
    if (count($winner) > 1) {
        $winner = sprintf(__("Winners: %s", 'ProjectTheme'), implode(', ', $winner));
    } else {
        $winner = sprintf(__("Winner: %s", 'ProjectTheme'), implode(', ', $winner));
    }
    $tm_d = get_post_meta(get_the_ID(), 'expected_delivery', true);
    $delivery_on = sprintf(__('Delivery On: %s', 'ProjectTheme'), date_i18n('d-M-Y g:iA', $tm_d));
    $auth = get_userdata($post->post_author);
    $posted = get_the_time("jS F Y");
    $users_with_escrow_made = array();
    $awaiting_users = Bid::get_by_pid_uid($post->ID, $uid = '', $single = false, $filters = array("winner='1'", "paid='0'", "outstanding='0'", "delivered='1'"));
    foreach ($awaiting_users as &$one) {
        $escrow = Escrow::get_by_field('bid', $one->id);
        $one = get_userdata($one->uid);
        if (isset($escrow) && $escrow->released == 0) {
            $users_with_escrow_made[] = '<a href="' . ProjectTheme_get_user_profile_link($one->ID) . '">' . $one->user_login . '</a>';
        }
        $one = '<a href="' . ProjectTheme_get_user_profile_link($one->ID) . '">' . $one->user_login . '</a>';
    }
    $users_wait_for_escrow = array_values(array_diff($awaiting_users, $users_with_escrow_made));
    ?>



        <div class="post" id="post-<?php 
    the_ID();
    ?>
"><div class="padd10">

    		<div class="post-title"><a href="<?php 
    the_permalink();
    ?>
"><?php 
    the_title();
    ?>
</a>

            

             <?php 
    if ($featured == "1") {
        echo '<span class="featured_thing_project2">' . __('Featured Project', 'ProjectTheme') . '</span>';
    }
    if ($hide_project_p == "1" or $hide_project_p == "yes") {
        echo '<span class="private_thing_project2">' . __('Sealed Bidding', 'ProjectTheme') . '</span>';
    }
    ?>

            

            </div>

    		<div class="post-main-details">

            	<ul>

                	<li>

                    	<p><img src="<?php 
    bloginfo('template_url');
    ?>
/images/wallet_icon2.png" alt="project budget" width="16" height="16" /></p>

                        <h4><?php 
    echo sprintf(__('Winning Bid: %s', 'ProjectTheme'), $bid_wn);
    ?>
</h4>

                    </li>

                    

                    <li>

                    	<p><img src="<?php 
    bloginfo('template_url');
    ?>
/images/prop_icon.png" alt="project proposals" width="16" height="16" /></p>

                        <h4><?php 
    echo $winner;
    ?>
</h4>

                    </li>

                    

                    <li>

                    	<p><img src="<?php 
    bloginfo('template_url');
    ?>
/images/cal_icon.png" alt="project calendar" width="16" height="16" /></p>

                        <h4><?php 
    echo $posted;
    ?>
</h4>

                    </li>

                    

                    <li class="last">

                    	<p><img src="<?php 
    bloginfo('template_url');
    ?>
/images/clock_icon.png" alt="project clock" width="16" height="16" /></p>

                        <h4><?php 
    echo $delivery_on;
    ?>
</h4>

                    </li>

                    

                </ul>

            </div> <!-- end post-main-details -->

          

            <div class="excerpt-thing">

            	

                <?php 
    $projecttheme_escrow_was_made_for_project_not_released = projecttheme_escrow_was_made_for_project_not_released(get_the_ID());
    //					if($projecttheme_escrow_was_made_for_project_not_released == false):
    $projectTheme_project_function_filter_adv = true;
    $projectTheme_project_function_filter_adv = apply_filters('projectTheme_project_function_filter_adv', get_the_ID());
    if ($projectTheme_project_function_filter_adv == true) {
        $adaptive_done = get_post_meta(get_the_ID(), 'adaptive_done', true);
        if ($adaptive_done == "started") {
            ?>

                            

                            	 <a href="<?php 
            echo get_bloginfo('siteurl');
            ?>
/?complete_paypal_escrow=<?php 
            the_ID();
            ?>
" class="green_btn"><?php 
            echo __("Complete PayPal Escrow Payment", "ProjectTheme");
            ?>
</a>

                            

                            <?php 
        } else {
            $ProjectTheme_enable_credits_wallet = get_option('ProjectTheme_enable_credits_wallet');
            if ($ProjectTheme_enable_credits_wallet == "yes") {
                ?>

       

                        <!-- <a href="<?php 
                echo ProjectTheme_get_pay4project_page_url(get_the_ID());
                ?>
" 

                        class="green_btn"><?php 
                echo __("Pay This", "ProjectTheme");
                ?>
</a> -->

                                 
                        <?php 
                if (count($users_wait_for_escrow) > 0) {
                    ?>
                                 <div >
                                     <span><?php 
                    echo sprintf(__('Next users are waiting their payments: %s ', 'ProjectTheme'), implode(', ', $users_wait_for_escrow));
                    ?>
</span> 
                                     
                                     <a href="<?php 
                    echo ProjectTheme_get_payments_page_url_redir('escrow');
                    ?>
" class="post_bid_btn"><?php 
                    _e('Make Escrow', 'ProjectTheme');
                    ?>
</a>
                                 </div>
                                     
                                 
                                 
                                 
                        <?php 
                }
                ?>

                        <br/>

                        

                        

                   

                   

				<?php 
            }
        }
    } else {
        do_action('projectTheme_project_function_filter_1_action', get_the_ID());
    }
    ?>

                        <?php 
    // else:
    ?>

                	<?php 
    if (!empty($users_with_escrow_made)) {
        $kk = ProjectTheme_get_payments_page_url_redir('');
        echo sprintf(__('Escrow was made for next users: %s ', 'ProjectTheme'), implode(', ', $users_with_escrow_made));
        ?>
                        
                        <a href="<?php 
        echo $kk;
        ?>
" class="green_btn"><?php 
        _e('Go and release it.', 'ProjectTheme');
        ?>
</a>

                

                <?php 
    }
    ?>
                <?php 
    // endif;
    ?>

                

            </div> <!-- end excerpt-thing -->

            

            

            <div class="user-poster-thing">

            	<div class="user-avatar-me">

                	<img src="<?php 
    echo ProjectTheme_get_avatar($post->post_author, 25, 25);
    ?>
" alt="avatar-user" class="acc_m1" width="25" height="25" />

                </div>

                

                <div class="user-avatar-me fun-time">

                <div class="post-main-details">

            	<ul>

                	<li><a class="avatar-posted-by-username" href="<?php 
    bloginfo('siteurl');
    ?>
/?p_action=user_profile&post_author=<?php 
    echo $post->post_author;
    ?>
"><?php 
    echo $auth->user_login;
    ?>
</a></li>

                	<li><?php 
    echo ProjectTheme_project_get_star_rating($post->post_author);
    ?>
</li>

                    <li class="last"><a href="<?php 
    echo ProjectTheme_get_user_feedback_link($post->post_author);
    ?>
"><?php 
    _e('View User Feedback', 'ProjectTheme');
    ?>
</a></li>

                </ul>

                

                </div>

                </div>

                

            </div> <!-- end user-poster-thing -->

        

        </div></div>





		 <?php 
}
コード例 #2
0
        $p->add_field('return', $this_script . '?action=success');
        $p->add_field('cancel_return', $this_script . '&action=cancel');
        $p->add_field('notify_url', $this_script . '&action=ipn');
        $p->add_field('item_name', $post->post_title);
        $p->add_field('custom', $pid . '|' . current_time('timestamp', 0));
        $p->add_field('amount', ProjectTheme_formats($total, 2));
        $p->submit_paypal_post();
        // submit the fields to paypal
        break;
    case 'success':
        // Order was successful...
    // Order was successful...
    case 'ipn':
        if (isset($_POST['custom'])) {
            global $current_user;
            get_currentuserinfo();
            $uid = $current_user->ID;
            $cust = $_POST['custom'];
            $cust = explode("|", $cust);
            $pid = $cust[0];
            $datemade = $cust[1];
            update_post_meta($pid, 'paid_user', "1");
            update_post_meta($pid, "paid_user_date", $datemade);
        }
        wp_redirect(get_permalink($pid));
        break;
    case 'cancel':
        // Order was canceled...
        wp_redirect(ProjectTheme_get_pay4project_page_url($pid));
        break;
}
コード例 #3
0
ファイル: deleted-code.php プロジェクト: vicpril/rep_bidqa
function projectTheme_get_post_main_function2($arr = '')
{
    if ($arr[0] == "winner") {
        $pay_this_me = 1;
    }
    if ($arr[0] == "winner_not") {
        $pay_this_me2 = 1;
    }
    if ($arr[0] == "unpaid") {
        $unpaid = 1;
    }
    $ending = get_post_meta(get_the_ID(), 'ending', true);
    $sec = $ending - current_time('timestamp', 0);
    $location = get_post_meta(get_the_ID(), 'Location', true);
    $closed = get_post_meta(get_the_ID(), 'closed', true);
    $featured = get_post_meta(get_the_ID(), 'featured', true);
    $private_bids = get_post_meta(get_the_ID(), 'private_bids', true);
    $paid = get_post_meta(get_the_ID(), 'paid', true);
    $post = get_post(get_the_ID());
    //echo $paid;
    global $current_user;
    get_currentuserinfo();
    $uid = $current_user->ID;
    do_action('ProjectTheme_regular_proj_post_before');
    ?>

				<div class="post" id="post-<?php 
    the_ID();
    ?>
"><div class="padd10">

                

                <?php 
    if ($featured == "1") {
        ?>

                <div class="featured-one"></div>

                <?php 
    }
    ?>

                

                

                <?php 
    if ($private_bids == "yes" or $private_bids == "1") {
        ?>

                <div class="sealed-one"></div>

                <?php 
    }
    ?>

                

                

                <div class="padd10_only_top">

                

               

                

                <div class="image_holder">

                

                 <?php 
    $ProjectTheme_enable_images_in_projects = get_option('ProjectTheme_enable_images_in_projects');
    if ($ProjectTheme_enable_images_in_projects == "yes") {
        $width = 40;
        $height = 32;
        $image_class = "image_class";
        $width = apply_filters("ProjectTheme_regular_proj_img_width", $width);
        $height = apply_filters("ProjectTheme_regular_proj_img_height", $height);
        $image_class = apply_filters("ProjectTheme_regular_proj_img_class", $image_class);
        ?>

                

                <a href="<?php 
        the_permalink();
        ?>
" title="<?php 
        the_title();
        ?>
"><img alt="<?php 
        the_title();
        ?>
" width="<?php 
        echo $width;
        ?>
" height="<?php 
        echo $height;
        ?>
" class="<?php 
        echo $image_class;
        ?>
" 

                src="<?php 
        echo ProjectTheme_get_first_post_image(get_the_ID(), $width, $height);
        ?>
" /></a>

               

               <?php 
    }
    ?>

               

                </div>

  

                

                <div class="title_holder" > 

                     <h2><a class="post-title-class" href="<?php 
    the_permalink();
    ?>
" rel="bookmark" title="<?php 
    the_title();
    ?>
">

                        <?php 
    do_action('ProjectTheme_regular_proj_title_before');
    the_title();
    do_action('ProjectTheme_regular_proj_title_after');
    ?>
</a></h2>

                        

                        

                  <?php 
    if (1) {
        ?>
     

                        

                      

                        

                  <p class="mypostedon">

                        <?php 
        _e("Posted in", 'ProjectTheme');
        ?>
: <?php 
        echo get_the_term_list(get_the_ID(), 'project_cat', '', ', ', '');
        ?>
 

                        <?php 
        _e("by", 'ProjectTheme');
        ?>
: <a href="<?php 
        bloginfo('siteurl');
        ?>
?p_action=user_profile&post_author=<?php 
        echo $post->post_author;
        ?>
"><?php 
        the_author();
        ?>
</a> 

                        

                        <?php 
        $projectTheme_admin_approves_each_project = get_option('projectTheme_admin_approves_each_project');
        if ($post->post_status == "draft" && $closed == "0" && $paid == "1" && $projectTheme_admin_approves_each_project == "yes") {
            echo '<br/><em>' . __('Your project is awaiting moderation.', 'ProjectTheme') . "</em>";
        }
        ?>

                        

                        

                        </p>

                       

                        

                        

                        

                                <p class="task_buttons">   

                        <?php 
        if ($pay_this_me == 1) {
            ?>

                        <a href="<?php 
            echo ProjectTheme_get_pay4project_page_url(get_the_ID());
            ?>
" 

                        class="post_bid_btn"><?php 
            echo __("Pay This", "ProjectTheme");
            ?>
</a>

                        <?php 
        }
        ?>

                        

                   <?php 
        if (1) {
            ?>
  

                 

                  <?php 
            if ($pay_this_me != 1) {
                ?>

                  <a href="<?php 
                the_permalink();
                ?>
" class="post_bid_btn"><?php 
                echo __("Read More", "ProjectTheme");
                ?>
</a>

                  <?php 
            }
            ?>

                  

                  <?php 
            if ($unpaid == 1) {
                $finalised_posted = get_post_meta(get_the_ID(), 'finalised_posted', true);
                if ($finalised_posted == "1") {
                    $finalised_posted = 3;
                } else {
                    $finalised_posted = "1";
                }
                $finalised_posted = apply_filters('ProjectTheme_publish_prj_posted', $finalised_posted);
                ?>

                  <a href="<?php 
                echo ProjectTheme_post_new_with_pid_stuff_thg(get_the_ID(), $finalised_posted);
                ?>
" class="post_bid_btn"><?php 
                echo __("Publish", "ProjectTheme");
                ?>
</a>

                  <?php 
            }
            ?>

                  

                  

                

                  

				  <?php 
            if ($post->post_author == $uid) {
                ?>

                  <a href="<?php 
                bloginfo('siteurl');
                ?>
/?p_action=edit_project&pid=<?php 
                the_ID();
                ?>
" class="post_bid_btn"><?php 
                echo __("Edit Project", "ProjectTheme");
                ?>
</a>

                  <?php 
            }
            ?>

                  

                  <?php 
            if ($post->post_author == $uid) {
                ?>
 

                  

                   <?php 
                if ($closed == "1") {
                    ?>

                  <a href="<?php 
                    bloginfo('siteurl');
                    ?>
/?p_action=repost_project&pid=<?php 
                    the_ID();
                    ?>
" class="post_bid_btn"><?php 
                    echo __("Repost Project", "ProjectTheme");
                    ?>
</a>

                  

                  <?php 
                }
                /*} else { */
                ?>

                	<?php 
                $winner = get_post_meta(get_the_ID(), 'winner', true);
                if (empty($winner)) {
                    ?>

                   <a href="<?php 
                    bloginfo('siteurl');
                    ?>
/?p_action=delete_project&pid=<?php 
                    the_ID();
                    ?>
" class="post_bid_btn"><?php 
                    echo __("Delete", "ProjectTheme");
                    ?>
</a>

                  <?php 
                }
                ?>

                  

                  <?php 
            }
            ?>

                  

                  <?php 
        }
        ?>

                  </p>

                        

                        

                     </div> 

                     

                  <div class="details_holder"> <?php 
    }
    ?>

                  

                  

                  

                  <ul class="project-details1">

							<li>

								<img src="<?php 
    echo get_bloginfo('template_url');
    ?>
/images/price.png" width="15" height="15" /> 

								<h3><?php 
    echo __("Budget:", 'ProjectTheme');
    ?>
</h3>

								<p><?php 
    $sel = get_post_meta(get_the_ID(), 'budgets', true);
    echo ProjectTheme_get_budget_name_string_fromID($sel);
    ?>

                                

                                </p>

							</li>

					

             			<?php 
    $ProjectTheme_enable_project_location = get_option('ProjectTheme_enable_project_location');
    if ($ProjectTheme_enable_project_location == "yes") {
        ?>

                        

							<li>

								<img src="<?php 
        echo get_bloginfo('template_url');
        ?>
/images/location.png" width="15" height="15" /> 

								<h3><?php 
        echo __("Location:", 'ProjectTheme');
        ?>
</h3>

								<p><?php 
        echo get_the_term_list(get_the_ID(), 'project_location', '', ', ', '');
        ?>
</p>

							</li>

                            

			<?php 
    }
    ?>
				

					

							<li>

								<img src="<?php 
    echo get_bloginfo('template_url');
    ?>
/images/clock.png" width="15" height="15" /> 

								<h3><?php 
    echo __("Expires in:", 'ProjectTheme');
    ?>
</h3>

								<p><?php 
    echo $closed == "1" ? __('Closed', 'ProjectTheme') : ProjectTheme_prepare_seconds_to_words($ending - current_time('timestamp', 0));
    ?>
</p>

							</li>

							

						</ul>

                      

               

                  </div>   

                     

                     </div></div></div>

<?php 
    do_action('ProjectTheme_regular_proj_post_after');
}
コード例 #4
0
ファイル: functions.php プロジェクト: roberto95117/auction
function projectTheme_get_post_pay_function($arr = '')
{
    $ending = get_post_meta(get_the_ID(), 'ending', true);
    $sec = $ending - current_time('timestamp', 0);
    $location = get_post_meta(get_the_ID(), 'Location', true);
    $closed = get_post_meta(get_the_ID(), 'closed', true);
    $featured = get_post_meta(get_the_ID(), 'featured', true);
    $post = get_post(get_the_ID());
    $hide_project_p = get_post_meta(get_the_ID(), 'private_bids', true);
    global $current_user;
    get_currentuserinfo();
    $uid = $current_user->ID;
    $bid = projectTheme_get_winner_bid(get_the_ID());
    $bid_wn = ProjectTheme_get_show_price($bid->bid);
    $winner = get_post_meta(get_the_ID(), 'winner', true);
    $winner = get_userdata($winner);
    $winner = '<a href="' . ProjectTheme_get_user_profile_link($winner->ID) . '">' . $winner->user_login . '</a>';
    $winner = sprintf(__("WInner: %s", 'ProjectTheme'), $winner);
    $tm_d = get_post_meta(get_the_ID(), 'expected_delivery', true);
    $delivery_on = sprintf(__('Delivery On: %s', 'ProjectTheme'), date_i18n('d-M-Y g:iA', $tm_d));
    $auth = get_userdata($post->post_author);
    $posted = get_the_time("jS F Y");
    ?>

        <div class="post" id="post-<?php 
    the_ID();
    ?>
"><div class="padd10">
    		<div class="post-title"><a href="<?php 
    the_permalink();
    ?>
"><?php 
    the_title();
    ?>
</a>
            
             <?php 
    if ($featured == "1") {
        echo '<span class="featured_thing_project2">' . __('Featured Project', 'ProjectTheme') . '</span>';
    }
    if ($hide_project_p == "1" or $hide_project_p == "yes") {
        echo '<span class="private_thing_project2">' . __('Sealed Bidding', 'ProjectTheme') . '</span>';
    }
    ?>
            
            </div>
    		<div class="post-main-details">
            	<ul>
                	<li>
                    	<p><img src="<?php 
    bloginfo('template_url');
    ?>
/images/wallet_icon2.png" alt="project budget" width="16" height="16" /></p>
                        <h4><?php 
    echo sprintf(__('Winning Bid: %s', 'ProjectTheme'), $bid_wn);
    ?>
</h4>
                    </li>
                    
                    <li>
                    	<p><img src="<?php 
    bloginfo('template_url');
    ?>
/images/prop_icon.png" alt="project proposals" width="16" height="16" /></p>
                        <h4><?php 
    echo $winner;
    ?>
</h4>
                    </li>
                    
                    <li>
                    	<p><img src="<?php 
    bloginfo('template_url');
    ?>
/images/cal_icon.png" alt="project calendar" width="16" height="16" /></p>
                        <h4><?php 
    echo $posted;
    ?>
</h4>
                    </li>
                    
                    <li class="last">
                    	<p><img src="<?php 
    bloginfo('template_url');
    ?>
/images/clock_icon.png" alt="project clock" width="16" height="16" /></p>
                        <h4><?php 
    echo $delivery_on;
    ?>
</h4>
                    </li>
                    
                </ul>
            </div> <!-- end post-main-details -->
          
            <div class="excerpt-thing">
            	
                <?php 
    $projecttheme_escrow_was_made_for_project_not_released = projecttheme_escrow_was_made_for_project_not_released(get_the_ID());
    if ($projecttheme_escrow_was_made_for_project_not_released == false) {
        $projectTheme_project_function_filter_adv = true;
        $projectTheme_project_function_filter_adv = apply_filters('projectTheme_project_function_filter_adv', get_the_ID());
        if ($projectTheme_project_function_filter_adv == true) {
            $adaptive_done = get_post_meta(get_the_ID(), 'adaptive_done', true);
            if ($adaptive_done == "started") {
                ?>
                            
                            	 <a href="<?php 
                echo get_bloginfo('siteurl');
                ?>
/?complete_paypal_escrow=<?php 
                the_ID();
                ?>
" class="green_btn"><?php 
                echo __("Complete PayPal Escrow Payment", "ProjectTheme");
                ?>
</a>
                            
                            <?php 
            } else {
                $ProjectTheme_enable_credits_wallet = get_option('ProjectTheme_enable_credits_wallet');
                if ($ProjectTheme_enable_credits_wallet == "yes") {
                    ?>
       
                        <a href="<?php 
                    echo ProjectTheme_get_pay4project_page_url(get_the_ID());
                    ?>
" 
                        class="green_btn"><?php 
                    echo __("Pay This", "ProjectTheme");
                    ?>
</a>
                   
                   
				<?php 
                }
            }
        } else {
            do_action('projectTheme_project_function_filter_1_action', get_the_ID());
        }
    } else {
        ?>
                
                	<?php 
        $kk = ProjectTheme_get_payments_page_url_redir('');
        echo sprintf(__('Escrow was made. <a href="%s" class="green_btn">Go and release it.</a>', 'ProjectTheme'), $kk);
        ?>
	
                
                <?php 
    }
    ?>
                
            </div> <!-- end excerpt-thing -->
            
            
            <div class="user-poster-thing">
            	<div class="user-avatar-me">
                	<img src="<?php 
    echo ProjectTheme_get_avatar($post->post_author, 25, 25);
    ?>
" alt="avatar-user" class="acc_m1" width="25" height="25" />
                </div>
                
                <div class="user-avatar-me fun-time">
                <div class="post-main-details">
            	<ul>
                	<li><a class="avatar-posted-by-username" href="<?php 
    echo ProjectTheme_get_user_profile_link($post->post_author);
    ?>
"><?php 
    echo $auth->user_login;
    ?>
</a></li>
                	<li><?php 
    echo ProjectTheme_project_get_star_rating($post->post_author);
    ?>
</li>
                    <li class="last"><a href="<?php 
    echo ProjectTheme_get_user_feedback_link($post->post_author);
    ?>
"><?php 
    _e('View User Feedback', 'ProjectTheme');
    ?>
</a></li>
                </ul>
                
                </div>
                </div>
                
            </div> <!-- end user-poster-thing -->
        
        </div></div>


		 <?php 
}
コード例 #5
0
ファイル: functions.php プロジェクト: juliosd/legacy-master
function projectTheme_get_post_pay_function($arr = '')
{
    $ending = get_post_meta(get_the_ID(), 'ending', true);
    $sec = $ending - current_time('timestamp', 0);
    $location = get_post_meta(get_the_ID(), 'Location', true);
    $closed = get_post_meta(get_the_ID(), 'closed', true);
    $featured = get_post_meta(get_the_ID(), 'featured', true);
    $post = get_post(get_the_ID());
    global $current_user;
    get_currentuserinfo();
    $uid = $current_user->ID;
    ?>
				<div class="post" id="post-<?php 
    the_ID();
    ?>
">
                
                <?php 
    if ($featured == "1") {
        ?>
                <div class="featured-one"></div>
                <?php 
    }
    ?>
                
                
                <?php 
    if ($private_bids == "yes" or $private_bids == "1") {
        ?>
                <div class="sealed-one"></div>
                <?php 
    }
    ?>
                
                
                <div class="padd10_only_top">
                <div class="image_holder">
                <?php 
    $ProjectTheme_enable_images_in_projects = get_option('ProjectTheme_enable_images_in_projects');
    if ($ProjectTheme_enable_images_in_projects == "yes") {
        $width = 40;
        $height = 32;
        $image_class = "image_class";
        $width = apply_filters("ProjectTheme_outstanding_payment_proj_img_width", $width);
        $height = apply_filters("ProjectTheme_outstanding_payment_proj_img_height", $height);
        $image_class = apply_filters("ProjectTheme_outstanding_payment_proj_img_class", $image_class);
        ?>
                
                <a href="<?php 
        the_permalink();
        ?>
" title="<?php 
        the_title();
        ?>
"><img alt="<?php 
        the_title();
        ?>
" width="<?php 
        echo $width;
        ?>
" height="<?php 
        echo $height;
        ?>
" class="<?php 
        echo $image_class;
        ?>
" 
                src="<?php 
        echo ProjectTheme_get_first_post_image(get_the_ID(), $width, $height);
        ?>
" /></a>
               
               <?php 
    }
    ?>
               
               
                </div>
                <div class="title_holder" > 
                     <h2><a class="post-title-class" href="<?php 
    the_permalink();
    ?>
" rel="bookmark" title="<?php 
    the_title();
    ?>
"><?php 
    the_title();
    ?>
</a></h2>
                        
    
                        
                  <p class="mypostedon">
                        <?php 
    _e("Posted in", 'ProjectTheme');
    ?>
: <?php 
    echo get_the_term_list(get_the_ID(), 'project_cat', '', ', ', '');
    ?>
 
                        <?php 
    _e("by", 'ProjectTheme');
    ?>
: <a href="<?php 
    bloginfo('siteurl');
    ?>
?p_action=user_profile&post_author=<?php 
    echo $post->post_author;
    ?>
"><?php 
    the_author();
    ?>
</a> 
                  </p>
                       
                        
              <p class="task_buttons">   
                        
		
       
       
                        <a href="<?php 
    echo ProjectTheme_get_pay4project_page_url(get_the_ID());
    ?>
" 
                        class="post_bid_btn"><?php 
    echo __("Pay This", "ProjectTheme");
    ?>
</a>
                   
                   

                  </p>
      </div> 
                     
                  <div class="details_holder"> 

                  
                  <ul class="project-details1 project-details1_a">
							<li>
								<img src="<?php 
    echo get_bloginfo('template_url');
    ?>
/images/price.png" width="15" height="15" /> 
								<h3><?php 
    echo __("Budget", 'ProjectTheme');
    ?>
:</h3>
								<p><?php 
    $sel = get_post_meta(get_the_ID(), 'budgets', true);
    echo ProjectTheme_get_budget_name_string_fromID($sel);
    ?>
                                
                                </p>
							</li>
                            
                            
                            <li>
								<img src="<?php 
    echo get_bloginfo('template_url');
    ?>
/images/price.png" width="15" height="15" /> 
								<h3><?php 
    echo __("Winning Bid", 'ProjectTheme');
    ?>
:</h3>
								<p><?php 
    $bid = projectTheme_get_winner_bid(get_the_ID());
    echo ProjectTheme_get_show_price($bid->bid);
    ?>
                                
                                </p>
							</li>
					
             
                        
							<li>
								<img src="<?php 
    echo get_bloginfo('template_url');
    ?>
/images/location.png" width="15" height="15" /> 
								<h3><?php 
    echo __("Winner", 'ProjectTheme');
    ?>
:</h3>
								<p><?php 
    $winner = get_post_meta(get_the_ID(), 'winner', true);
    $winner = get_userdata($winner);
    echo '<a href="' . ProjectTheme_get_user_profile_link($winner->ID) . '">' . $winner->user_login . '</a>';
    ?>
</p>
							</li>
							
					
                    
						</ul>
                      
               
                  </div>   
                     
                     </div></div>
<?php 
}