コード例 #1
0
 /**
  * Inistantiate all classes
  *
  * @since 2.4
  *
  * @return void
  */
 public function inistantiate()
 {
     if (is_admin()) {
         Dokan_Pro_Admin_Ajax::init();
         new Dokan_Pro_Admin_Settings();
         new Dokan_Announcement();
         new Dokan_Update();
     }
     Dokan_Pro_Ajax::init();
     Dokan_Pro_Shipping::init();
     if (is_user_logged_in()) {
         Dokan_Pro_Dashboard::init();
         Dokan_Pro_Products::init();
         Dokan_Pro_Coupons::init();
         Dokan_Pro_Reviews::init();
         Dokan_Pro_Reports::init();
         Dokan_Pro_Withdraws::init();
         Dokan_Pro_Settings::init();
         Dokan_Pro_Notice::init();
     }
     Dokan_Pro_Store::init();
 }
コード例 #2
0
    </div><!-- #secondary .widget-area -->
<?php 
} else {
    get_sidebar('store');
}
?>

<div id="dokan-primary" class="dokan-single-store dokan-w8">
    <div id="dokan-content" class="store-review-wrap woocommerce" role="main">

        <?php 
dokan_get_template_part('store-header');
?>

        <?php 
$dokan_template_reviews = Dokan_Pro_Reviews::init();
$id = $store_user->ID;
$post_type = 'product';
$limit = 20;
$status = '1';
$comments = $dokan_template_reviews->comment_query($id, $post_type, $limit, $status);
?>

        <div id="reviews">
            <div id="comments">

                <h2 class="headline"><?php 
_e('Seller Review', 'dokan');
?>
</h2>
コード例 #3
0
<?php

/**
 * Dokan Review Listing Table body Template
 *
 * @since 2.4
 *
 * @package dokan
 */
if (count($comments) == 0) {
    ?>
        <tr><td colspan="5"><?php 
    _e('No Results Found', 'dokan');
    ?>
</td></tr>
    <?php 
} else {
    foreach ($comments as $comment) {
        Dokan_Pro_Reviews::init()->render_row($comment, $post_type);
    }
}