Example #1
0
function shipme_get_regular_job_post($class_optional = '')
{
    ?>
    <div class="post-jb <?php 
    echo $class_optional;
    ?>
" id="post-<?php 
    the_ID();
    ?>
">

        <div class="title-area col-xs-12 col-sm-12 col-lg-12">
            <a href="<?php 
    the_permalink();
    ?>
" title="<?php 
    the_title();
    ?>
"><?php 
    the_title();
    ?>
</a>
        </div>

        <div class="picture-area col-xs-12 col-sm-2 col-lg-2">
            <a href="<?php 
    the_permalink();
    ?>
">
    <?php 
    if (@getimagesize(shipme_get_first_post_image(get_the_ID(), 70, 70))) {
        ?>

                    <img src="<?php 
        echo shipme_get_first_post_image(get_the_ID(), 70, 70);
        ?>
" class="img_img" width="70" />
    <?php 
    } else {
        ?>
                    <img src="<?php 
        echo get_template_directory_uri();
        ?>
/images/no-image.png" class="img_img" width="70" />
    <?php 
    }
    ?>


            </a>
        </div>
        <div class="header-content col-xs-12 col-sm-3 col-lg-3"><?php 
    _e('Pickup Address', 'shipme');
    ?>
 </div>
        <div class="collection-del-area col-xs-12 col-sm-3 col-lg-3">
    <?php 
    echo get_post_meta(get_the_ID(), 'pickup_location', true);
    ?>
        </div>

        <div class="header-content col-xs-12 col-sm-3 col-lg-3"><?php 
    _e('Delivery Address', 'shipme');
    ?>
 </div>
        <div class="collection-del-area col-xs-12 col-sm-3 col-lg-3">
    <?php 
    echo get_post_meta(get_the_ID(), 'delivery_location', true);
    ?>
        </div>


        <div class=" header-content col-xs-12 col-sm-2 col-lg-2"><?php 
    _e('Price', 'shipme');
    ?>
 </div>
        <div class="price-area col-xs-12 col-sm-2 col-lg-2">
    <?php 
    echo shipme_get_show_price(get_post_meta(get_the_ID(), 'price', true));
    ?>
        </div>


        <!--<div class="ending-area col-xs-12 col-sm-2 col-lg-2">-->
    <?php 
    php;
    ?>
        <!--</div>-->


        <div class="button-area col-xs-12 col-sm-2 col-lg-2">
            <a href="<?php 
    the_permalink();
    ?>
" class="submit_bottom3"  ><i class="fa fa-check-circle"></i> <?php 
    _e('View Details', 'shipme');
    ?>
</a>
        </div>



    </div> 

    <?php 
}
Example #2
0
     echo '<table width="100%">';
     echo '<tr>';
     echo '<th>&nbsp;</th>';
     echo '<th><b>' . __('Job Title', 'shipme') . '</b></th>';
     echo '<th><b>' . __('From User', 'shipme') . '</b></th>';
     echo '<th><b>' . __('Aquired on', 'shipme') . '</b></th>';
     echo '<th><b>' . __('Price', 'shipme') . '</b></th>';
     echo '<th><b>' . __('Rating', 'shipme') . '</b></th>';
     echo '</tr>';
     foreach ($r as $row) {
         $post = $row->pid;
         $post = get_post($post);
         $bid = shipme_get_winner_bid($row->pid);
         $user = get_userdata($row->fromuser);
         echo '<tr>';
         echo '<th><img class="img_class" src="' . shipme_get_first_post_image($row->pid, 42, 42) . '" 
                             alt="' . $post->post_title . '" width="42" /></th>';
         echo '<th><a href="' . get_permalink($row->pid) . '">' . $post->post_title . '</a></th>';
         echo '<th><a href="' . shipme_get_user_profile_link($user->user_login) . '">' . $user->user_login . '</a></th>';
         echo '<th>' . date('d-M-Y H:i:s', get_post_meta($row->pid, 'closed_date', true)) . '</th>';
         echo '<th>' . shipme_get_show_price($bid->bid) . '</th>';
         echo '<th>' . shipme_get_job_stars(floor($row->grade / 2)) . ' (' . floor($row->grade / 2) . '/5)</th>';
         echo '</tr>';
         echo '<tr>';
         echo '<th></th>';
         echo '<th colspan="5"><b>' . __('Comment', 'shipme') . ':</b> ' . $row->comment . '</th>';
         echo '</tr>';
         echo '<tr><th colspan="6"><hr color="#eee" /></th></tr>';
     }
     echo '</table>';
 } else {