本文整理汇总了PHP中dokan_get_template函数的典型用法代码示例。如果您正苦于以下问题:PHP dokan_get_template函数的具体用法?PHP dokan_get_template怎么用?PHP dokan_get_template使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了dokan_get_template函数的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: get_current_user_id
<?php
$user_id = get_current_user_id();
$orders_counts = dokan_count_orders($user_id);
$post_counts = dokan_count_posts('product', $user_id);
$comment_counts = dokan_count_comments('product', $user_id);
$pageviews = (int) dokan_author_pageviews($user_id);
$earning = dokan_author_total_sales($user_id);
$products_url = dokan_get_navigation_url('products');
$orders_url = dokan_get_navigation_url('orders');
$reviews_url = dokan_get_navigation_url('reviews');
?>
<div class="dokan-dashboard-wrap">
<?php
dokan_get_template('dashboard-nav.php', array('active_menu' => 'dashboard'));
?>
<div class="dokan-dashboard-content">
<?php
if (!dokan_is_seller_enabled($user_id)) {
dokan_seller_not_enabled_notice();
}
?>
<article class="dashboard-content-area">
<?php
echo dokan_get_profile_progressbar();
?>
<div class="dokan-w6 dokan-dash-left">
示例2: get_current_user_id
$user_id = get_current_user_id();
$processing_time = dokan_get_shipping_processing_times();
$dps_enable_shipping = get_user_meta($user_id, '_dps_shipping_enable', true);
$dps_shipping_type_price = get_user_meta($user_id, '_dps_shipping_type_price', true);
$dps_additional_product = get_user_meta($user_id, '_dps_additional_product', true);
$dps_additional_qty = get_user_meta($user_id, '_dps_additional_qty', true);
$dps_form_location = get_user_meta($user_id, '_dps_form_location', true);
$dps_country_rates = get_user_meta($user_id, '_dps_country_rates', true);
$dps_state_rates = get_user_meta($user_id, '_dps_state_rates', true);
$dps_pt = get_user_meta($user_id, '_dps_pt', true);
$dps_shipping_policy = get_user_meta($user_id, '_dps_ship_policy', true);
$dps_refund_policy = get_user_meta($user_id, '_dps_refund_policy', true);
?>
<div class="dokan-dashboard-wrap">
<?php
dokan_get_template('dashboard-nav.php', array('active_menu' => 'settings/shipping'));
?>
<div class="dokan-dashboard-content dokan-settings-content">
<article class="dokan-settings-area">
<header class="dokan-dashboard-header">
<h1 class="entry-title">
<?php
_e('Shipping Settings', 'dokan');
?>
<small>→ <a href="<?php
echo dokan_get_store_url(get_current_user_id());
?>
"><?php
_e('Visit Store', 'dokan');
?>
示例3: get_post_meta
$_width = get_post_meta($post_id, '_width', true);
$_height = get_post_meta($post_id, '_height', true);
$_downloadable = get_post_meta($post_id, '_downloadable', true);
$_stock_status = get_post_meta($post_id, '_stock_status', true);
$_visibility = get_post_meta($post_id, '_visibility', true);
$_enable_reviews = $post->comment_status;
get_header();
dokan_frontend_dashboard_scripts();
?>
<div id="primary" class="content-area col-md-12">
<div id="content" class="site-content" role="main">
<div class="row">
<?php
dokan_get_template(dirname(__FILE__) . '/dashboard-nav.php', array('active_menu' => 'product'));
?>
<form class="form" role="form" method="post">
<div class="product-edit-container">
<div class="col-md-7">
<?php
if (isset($_GET['message']) && $_GET['message'] == 'success') {
?>
<div class="dokan-message">
<button type="button" class="close" data-dismiss="alert">×</button>
<strong><?php
_e('Success!', 'dokan');
示例4: dokan_get_template
<?php
$announcement = Dokan_Template_Notice::init();
?>
<div class="dokan-dashboard-wrap">
<?php
dokan_get_template('dashboard-nav.php', array('active_menu' => 'announcement'));
?>
<?php
//var_dump( $urls = dokan_get_dashboard_nav() );
?>
<div class="dokan-dashboard-content dokan-notice-listing">
<?php
do_action('dokan_before_listing_notice');
?>
<article class="dokan-notice-listing-area">
<header class="dokan-dashboard-header dokan-clearfix">
<span class="left-header-content">
<h1 class="entry-title"><?php
_e('Announcement', 'dokan');
?>
</h1>
</span>
</header>
<div class="notice-listing-top dokan-clearfix">
<!-- Listing filters -->