当前位置: 首页>>代码示例>>PHP>>正文


PHP dokan_get_template_part函数代码示例

本文整理汇总了PHP中dokan_get_template_part函数的典型用法代码示例。如果您正苦于以下问题:PHP dokan_get_template_part函数的具体用法?PHP dokan_get_template_part怎么用?PHP dokan_get_template_part使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了dokan_get_template_part函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: do_action

                                    <?php 
    do_action('dokan_product_tab_content', $post, $seller_id);
    ?>

                                </div> <!-- .tab-content -->
                            </div> <!-- .tabbable -->

                        </div> <!-- .col-md-7 -->

                        <!-- #################### Sidebar ######################### -->

                        <div class="dokan-product-edit-right dokan-edit-sidebar">

                            <?php 
    dokan_get_template_part('products/edit/sidebar', '', array('pro' => true, 'post' => $post, 'post_id' => $post_id));
    ?>

                        </div> <!-- .dokan-edit-sidebar -->
                    </div> <!-- .product-edit-container -->
                </form>

            <?php 
} else {
    ?>

                <?php 
    dokan_seller_not_enabled_notice();
    ?>

            <?php 
开发者ID:StefanBonilla,项目名称:CoupSoup,代码行数:30,代码来源:product-edit.php

示例2: load_template_files

 public function load_template_files()
 {
     global $wp;
     if (!function_exists('WC')) {
         return sprintf(__('Please install <a href="%s"><strong>WooCommerce</strong></a> plugin first', 'dokan'), 'http://wordpress.org/plugins/woocommerce/');
     }
     if (isset($wp->query_vars['reports'])) {
         return dokan_get_template_part('reports');
     }
     if (isset($wp->query_vars['products'])) {
         return dokan_get_template_part('products');
     }
     if (isset($wp->query_vars['new-product'])) {
         return dokan_get_template_part('new-product');
     }
     if (isset($wp->query_vars['orders'])) {
         return dokan_get_template_part('orders');
     }
     if (isset($wp->query_vars['coupons'])) {
         return dokan_get_template_part('coupons');
     }
     if (isset($wp->query_vars['reviews'])) {
         return dokan_get_template_part('reviews');
     }
     if (isset($wp->query_vars['withdraw'])) {
         return dokan_get_template_part('withdraw');
     }
     if (isset($wp->query_vars['settings'])) {
         return dokan_get_template_part('settings');
     }
     //do_action( 'dokan_dashboard_template_render' );
     return apply_filters('dokan_dashboard_template_render', dokan_get_template_part('dashboard'));
 }
开发者ID:amirkchetu,项目名称:dokan,代码行数:33,代码来源:template-shortcodes.php

示例3: dokan_order_show_suborders

/**
 * Show sub-orders on a parent order if available
 *
 * @param WC_Order $parent_order
 * @return void
 */
function dokan_order_show_suborders($parent_order)
{
    $sub_orders = get_children(array('post_parent' => $parent_order->id, 'post_type' => 'shop_order', 'post_status' => array('wc-pending', 'wc-completed', 'wc-processing', 'wc-on-hold')));
    if (!$sub_orders) {
        return;
    }
    $statuses = wc_get_order_statuses();
    dokan_get_template_part('sub-orders', '', array('sub_orders' => $sub_orders, 'statuses' => $statuses));
}
开发者ID:StefanBonilla,项目名称:CoupSoup,代码行数:15,代码来源:wc-template.php

示例4: order_main_content

 /**
  * Get Order Main Content
  *
  * @since 2.4
  *
  * @return void
  */
 public function order_main_content()
 {
     $order_id = isset($_GET['order_id']) ? intval($_GET['order_id']) : 0;
     if ($order_id) {
         dokan_get_template_part('orders/details');
     } else {
         dokan_get_template_part('orders/date-export');
         dokan_get_template_part('orders/listing');
     }
 }
开发者ID:StefanBonilla,项目名称:CoupSoup,代码行数:17,代码来源:template-orders.php

示例5: dokan_get_profile_progressbar

 function dokan_get_profile_progressbar()
 {
     global $current_user;
     $profile_info = dokan_get_store_info($current_user->ID);
     $progress = isset($profile_info['profile_completion']['progress']) ? $profile_info['profile_completion']['progress'] : 0;
     $next_todo = isset($profile_info['profile_completion']['next_todo']) ? $profile_info['profile_completion']['next_todo'] : __('Start with adding a Banner to gain profile progress', 'dokan');
     ob_start();
     if (strlen(trim($next_todo)) != 0) {
         dokan_get_template_part('global/profile-progressbar', '', array('pro' => true, 'progress' => $progress, 'next_todo' => $next_todo));
     }
     $output = ob_get_clean();
     return $output;
 }
开发者ID:StefanBonilla,项目名称:CoupSoup,代码行数:13,代码来源:functions.php

示例6: widget

 /**
  * Outputs the HTML for this widget.
  *
  * @param array  $args
  * @param array  $instance [An array of settings for this widget instance]
  *
  * @return void Echoes it's output
  */
 function widget($args, $instance)
 {
     extract($args, EXTR_SKIP);
     $title = apply_filters('widget_title', $instance['title']);
     $limit = absint($instance['count']) ? absint($instance['count']) : 10;
     $sellers = dokan_get_feature_sellers($limit);
     echo $before_widget;
     if (!empty($title)) {
         echo $args['before_title'] . $title . $args['after_title'];
     }
     dokan_get_template_part('widgets/feature-seller', '', array('pro' => true, 'sellers' => $sellers));
     echo $after_widget;
 }
开发者ID:StefanBonilla,项目名称:CoupSoup,代码行数:21,代码来源:feature-seller.php

示例7: widget

 /**
  * Front-end display of widget.
  *
  * @see WP_Widget::widget()
  *
  * @param array $args     Widget arguments.
  * @param array $instance Saved values from database.
  */
 public function widget($args, $instance)
 {
     $title = apply_filters('widget_title', $instance['title']);
     extract($instance);
     $r = dokan_get_best_selling_products($no_of_product);
     echo $args['before_widget'];
     if (!empty($title)) {
         echo $args['before_title'] . $title . $args['after_title'];
     }
     dokan_get_template_part('widgets/widget-content-product', '', array('r' => $r, 'show_rating' => $show_rating));
     echo $args['after_widget'];
     wp_reset_postdata();
 }
开发者ID:StefanBonilla,项目名称:CoupSoup,代码行数:21,代码来源:bestselling-product.php

示例8: widget

 /**
  * Outputs the HTML for this widget.
  *
  * @param array  An array of standard parameters for widgets in this theme
  * @param array  An array of settings for this widget instance
  *
  * @return void Echoes it's output
  */
 function widget($args, $instance)
 {
     if (!dokan_is_store_page()) {
         return;
     }
     extract($args, EXTR_SKIP);
     $title = apply_filters('widget_title', $instance['title']);
     $store_info = dokan_get_store_info(get_query_var('author'));
     $map_location = isset($store_info['location']) ? esc_attr($store_info['location']) : '';
     echo $before_widget;
     if (!empty($title)) {
         echo $args['before_title'] . $title . $args['after_title'];
     }
     dokan_get_template_part('widgets/store-map', '', array('pro' => true, 'store_info' => $store_info, 'map_location' => $map_location));
     echo $after_widget;
 }
开发者ID:StefanBonilla,项目名称:CoupSoup,代码行数:24,代码来源:store-location.php

示例9: widget

 /**
  * Outputs the HTML for this widget.
  *
  * @param array  An array of standard parameters for widgets in this theme
  * @param array  An array of settings for this widget instance
  *
  * @return void Echoes it's output
  **/
 function widget($args, $instance)
 {
     if (!dokan_is_store_page()) {
         return;
     }
     extract($args, EXTR_SKIP);
     $title = apply_filters('widget_title', $instance['title']);
     $seller_id = (int) get_query_var('author');
     $store_info = dokan_get_store_info($seller_id);
     echo $before_widget;
     if (!empty($title)) {
         echo $args['before_title'] . $title . $args['after_title'];
     }
     dokan_get_template_part('widgets/store-contact-form', '', array('pro' => true, 'seller_id' => $seller_id, 'store_info' => $store_info));
     echo $after_widget;
 }
开发者ID:StefanBonilla,项目名称:CoupSoup,代码行数:24,代码来源:store-contact.php

示例10: get_dashboard_side_navigation

 /**
  * Get Dashboard Side Navigations
  *
  * @since 2.4
  *
  * @return void
  */
 public function get_dashboard_side_navigation()
 {
     global $wp;
     $request = $wp->request;
     $active = explode('/', $request);
     unset($active[0]);
     if ($active) {
         $active_menu = implode('/', $active);
         if ($active_menu == 'new-product') {
             $active_menu = 'products';
         }
         if (get_query_var('edit') && is_singular('product')) {
             $active_menu = 'products';
         }
     } else {
         $active_menu = 'dashboard';
     }
     dokan_get_template_part('global/dashboard-nav', '', array('active_menu' => apply_filters('dokan_dashboard_nav_active', $active_menu, $request, $active)));
 }
开发者ID:StefanBonilla,项目名称:CoupSoup,代码行数:26,代码来源:template-main.php

示例11: product_edit_template

 /**
  * Returns the edit product template
  *
  * @param string  $template
  *
  * @return string
  */
 function product_edit_template($template)
 {
     if (!$this->is_woo_installed()) {
         return $template;
     }
     if (get_query_var('edit') && is_singular('product')) {
         return dokan_get_template_part('product-edit');
     }
     return $template;
 }
开发者ID:nuwe1,项目名称:dokan-lite,代码行数:17,代码来源:rewrites.php

示例12: load_shipping_tax_content

 /**
  * Load Shipping and tax content
  *
  * @since 2.4
  *
  * @param  object $post
  * @param  integer $post_id
  *
  * @return void
  */
 public function load_shipping_tax_content($post, $post_id)
 {
     $user_id = get_current_user_id();
     $processing_time = dokan_get_shipping_processing_times();
     $_required_tax = get_post_meta($post_id, '_required_tax', true);
     $_disable_shipping = get_post_meta($post_id, '_disable_shipping', true) ? get_post_meta($post_id, '_disable_shipping', true) : 'no';
     $_additional_price = get_post_meta($post_id, '_additional_price', true);
     $_additional_qty = get_post_meta($post_id, '_additional_qty', true);
     $_processing_time = get_post_meta($post_id, '_dps_processing_time', true);
     $dps_shipping_type_price = get_user_meta($user_id, '_dps_shipping_type_price', true);
     $dps_additional_qty = get_user_meta($user_id, '_dps_additional_qty', true);
     $dps_pt = get_user_meta($user_id, '_dps_pt', true);
     $classes_options = $this->get_tax_class_option();
     $porduct_shipping_pt = $_processing_time ? $_processing_time : $dps_pt;
     dokan_get_template_part('products/product-shipping-content', '', array('pro' => true, 'post' => $post, 'post_id' => $post_id, 'user_id' => $user_id, 'processing_time' => $processing_time, '_required_tax' => $_required_tax, '_disable_shipping' => $_disable_shipping, '_additional_price' => $_additional_price, '_additional_qty' => $_additional_qty, '_processing_time' => $_processing_time, 'dps_shipping_type_price' => $dps_shipping_type_price, 'dps_additional_qty' => $dps_additional_qty, 'dps_pt' => $dps_pt, 'classes_options' => $classes_options, 'porduct_shipping_pt' => $porduct_shipping_pt));
 }
开发者ID:StefanBonilla,项目名称:CoupSoup,代码行数:26,代码来源:products.php

示例13: render_product_listing_template

 /**
  * Render Product Listing Template
  *
  * @since 2.4
  *
  * @param  string $action
  *
  * @return void
  */
 public function render_product_listing_template($action)
 {
     dokan_get_template_part('products/products-listing');
 }
开发者ID:Artgorae,项目名称:wp-artgorae,代码行数:13,代码来源:template-products.php

示例14: load_seo_content

 /**
  * Load SEO Content
  *
  * @since 2.4
  *
  * @return void
  */
 public function load_seo_content()
 {
     dokan_get_template_part('settings/seo', '', array('pro' => true));
 }
开发者ID:nealmattox,项目名称:updatednebrowse,代码行数:11,代码来源:settings.php

示例15: my_orders_page

 /**
  * Render my orders page
  *
  * @return string
  */
 function my_orders_page()
 {
     return dokan_get_template_part('my-orders');
 }
开发者ID:CPHollister,项目名称:shyftmodels,代码行数:9,代码来源:template-shortcodes.php


注:本文中的dokan_get_template_part函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。