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


PHP dokan_get_navigation_url函数代码示例

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


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

示例1: load_settings_menu

 /**
  * Load Settings Menu for Pro
  *
  * @since 2.4
  *
  * @param  array $sub_settins
  *
  * @return array
  */
 public function load_settings_menu($sub_settins)
 {
     $dokan_shipping_option = get_option('woocommerce_dokan_product_shipping_settings');
     $enable_shipping = isset($dokan_shipping_option['enabled']) ? $dokan_shipping_option['enabled'] : 'yes';
     if ($enable_shipping == 'yes') {
         $sub_settins['shipping'] = array('title' => __('Shipping', 'dokan'), 'icon' => '<i class="fa fa-truck"></i>', 'url' => dokan_get_navigation_url('settings/shipping'), 'pos' => 70);
     }
     $sub_settins['social'] = array('title' => __('Social Profile', 'dokan'), 'icon' => '<i class="fa fa-share-alt-square"></i>', 'url' => dokan_get_navigation_url('settings/social'), 'pos' => 90);
     if (dokan_get_option('store_seo', 'dokan_general', 'on') === 'on') {
         $sub_settins['seo'] = array('title' => __('Store SEO', 'dokan'), 'icon' => '<i class="fa fa-globe"></i>', 'url' => dokan_get_navigation_url('settings/seo'), 'pos' => 110);
     }
     return $sub_settins;
 }
开发者ID:nealmattox,项目名称:updatednebrowse,代码行数:22,代码来源:settings.php

示例2: tokopress_dokan_quicknav_account

function tokopress_dokan_quicknav_account()
{
    if (!is_user_logged_in()) {
        return;
    }
    global $current_user;
    $user_id = $current_user->ID;
    if (!dokan_is_user_seller($user_id)) {
        return;
    }
    // $nav_urls = dokan_get_dashboard_nav();
    // foreach ($nav_urls as $key => $item) {
    //     printf( '<li><a href="%s">%s %s</a></li>', $item['url'], $item['title'], $item['icon'] );
    // }
    $title = __('Dashboard', 'dokan');
    $icon = '<i class="fa fa-tachometer"></i>';
    $url = dokan_get_navigation_url();
    printf('<li><a href="%s">%s %s</a></li>', $url, $title, $icon);
}
开发者ID:Artgorae,项目名称:wp-artgorae,代码行数:19,代码来源:plugin-dokan.php

示例3: dokan_edit_product_url

/**
 * Get edit product url
 *
 * @param type $product_id
 * @return type
 */
function dokan_edit_product_url($product_id)
{
    if (get_post_field('post_status', $product_id) == 'publish') {
        return trailingslashit(get_permalink($product_id)) . 'edit/';
    }
    if (dokan_get_option('product_style', 'dokan_selling', 'old') == 'old') {
        $new_product_url = dokan_get_navigation_url('products');
    } elseif (dokan_get_option('product_style', 'dokan_selling', 'old') == 'new') {
        $new_product_url = dokan_get_navigation_url('new-product');
    }
    return add_query_arg(array('product_id' => $product_id, 'action' => 'edit'), $new_product_url);
}
开发者ID:CPHollister,项目名称:shyftmodels,代码行数:18,代码来源:functions.php

示例4: render_review_content

 /**
  * Render Review Content
  *
  * @return [type] [description]
  */
 public function render_review_content()
 {
     global $woocommerce;
     require_once DOKAN_PRO_INC . '/reports.php';
     $charts = dokan_get_reports_charts();
     $link = dokan_get_navigation_url('reports');
     $current = isset($_GET['chart']) ? $_GET['chart'] : 'overview';
     dokan_get_template_part('report/content', '', array('pro' => true, 'charts' => $charts, 'link' => $link, 'current' => $current));
 }
开发者ID:StefanBonilla,项目名称:CoupSoup,代码行数:14,代码来源:reports.php

示例5: dokan_get_dashboard_nav

function dokan_get_dashboard_nav()
{
    $urls = array('dashboard' => array('title' => __('Dashboard', 'dokan'), 'icon' => '<i class="fa fa-tachometer"></i>', 'url' => dokan_get_navigation_url()), 'product' => array('title' => __('Products', 'dokan'), 'icon' => '<i class="fa fa-briefcase"></i>', 'url' => dokan_get_navigation_url('products')), 'order' => array('title' => __('Orders', 'dokan'), 'icon' => '<i class="fa fa-shopping-cart"></i>', 'url' => dokan_get_navigation_url('orders')), 'withdraw' => array('title' => __('Withdraw', 'dokan'), 'icon' => '<i class="fa fa-upload"></i>', 'url' => dokan_get_navigation_url('withdraw')), 'settings' => array('title' => __('Settings', 'dokan'), 'icon' => '<i class="fa fa-cog"></i>', 'url' => dokan_get_navigation_url('settings')));
    return apply_filters('dokan_get_dashboard_nav', $urls);
}
开发者ID:nuwe1,项目名称:dokan-lite,代码行数:5,代码来源:template-tags.php

示例6: _e

_e('Special Offer', 'dokan');
?>
                    <?php 
if ($is_edit_page) {
    printf('<small> - %s</small>', __('Edit Special Offer', 'dokan'));
}
?>
                    </h1>
                </span>

                <?php 
if (!$is_edit_page) {
    ?>
                    <span class="left-header-content dokan-right">
                        <a href="<?php 
    echo add_query_arg(array('view' => 'add_coupons'), dokan_get_navigation_url('coupons'));
    ?>
" class="dokan-btn dokan-btn-theme dokan-right"><i class="fa fa-gift">&nbsp;</i> <?php 
    _e('Add new Coupon', 'dokan');
    ?>
</a>
                    </span>
                <?php 
}
?>
            </header><!-- .entry-header -->

            <?php 
if (!dokan_is_seller_enabled(get_current_user_id())) {
    dokan_seller_not_enabled_notice();
} else {
开发者ID:CPHollister,项目名称:shyftmodels,代码行数:31,代码来源:coupons.php

示例7: do_action

        <?php 
/**
 *  dokan_before_edit_product_inside_content_area hook
 *
 *  @since 2.4
 */
do_action('dokan_before_edit_product_inside_content_area');
?>

        <div class="dokan-product-edit-area">

            <header class="dokan-pro-edit-breadcrumb">
                <h1 class="dokan-header-crumb">
                    <span class="dokan-breadcrumb"><a href="<?php 
echo dokan_get_navigation_url('products');
?>
"><?php 
_e('Products', 'dokan');
?>
</a> &rarr; </span>
                    <?php 
echo $post->post_title;
?>

                    <?php 
if ($_visibility == 'hidden') {
    ?>
                        <span class="dokan-label dokan-label-default"><?php 
    _e('Hidden', 'dokan');
    ?>
开发者ID:StefanBonilla,项目名称:CoupSoup,代码行数:30,代码来源:product-edit.php

示例8: date

    <header class="dokan-dashboard-header dokan-clearfix">
        <span class="left-header-content">
            <h1 class="entry-title"><?php 
echo $notice_data->post_title;
?>
</h1>
        </span>
    </header>
    <span class="dokan-single-announcement-date"><i class="fa fa-calendar"></i> <?php 
echo date('F j, Y ', strtotime($notice_data->post_date));
?>
</span>

    <div class="entry-content">
        <?php 
echo wpautop($notice_data->post_content);
?>
    </div>

    <div class="dokan-announcement-link">
        <a href="<?php 
echo dokan_get_navigation_url('announcement');
?>
" class="dokan-btn dokan-btn-theme"><?php 
_e('Back to all Notice', 'dokan');
?>
</a>
    </div>

</article>
开发者ID:StefanBonilla,项目名称:CoupSoup,代码行数:30,代码来源:single-notice.php

示例9: _e

                    </div>
                    <div class="content-half-part">
                        <canvas id="order-stats"></canvas>
                    </div>
                </div> <!-- .orders -->


                <div class="dashboard-widget products">
                    <div class="widget-title">
                        <i class="icon-briefcase"></i> <?php 
_e('Products', 'dokan');
?>

                        <span class="pull-right">
                            <a href="<?php 
echo dokan_get_navigation_url('new-product');
?>
" class="btn btn-theme btn-sm"><?php 
_e('+ Add new product', 'dokan');
?>
</a>
                        </span>
                    </div>

                    <ul class="list-unstyled list-count">
                        <li>
                            <a href="<?php 
echo $products_url;
?>
">
                                <span class="title"><?php 
开发者ID:nuwe1,项目名称:dokan-lite,代码行数:31,代码来源:dashboard.php

示例10: withdraw_requests

    /**
     * List withdraw request for a user
     *
     * @param  int  $user_id
     *
     * @return void
     */
    function withdraw_requests($user_id)
    {
        $withdraw_requests = $this->get_withdraw_requests($user_id);
        if ($withdraw_requests) {
            ?>
            <table class="table table-striped">
                <tr>
                    <th><?php 
            _e('Amount', 'dokan');
            ?>
</th>
                    <th><?php 
            _e('Method', 'dokan');
            ?>
</th>
                    <th><?php 
            _e('Date', 'dokan');
            ?>
</th>
                    <th><?php 
            _e('Cancel', 'dokan');
            ?>
</th>
                    <th><?php 
            _e('Status', 'dokan');
            ?>
</th>
                </tr>

                <?php 
            foreach ($withdraw_requests as $request) {
                ?>

                    <tr>
                        <td><?php 
                echo wc_price($request->amount);
                ?>
</td>
                        <td><?php 
                echo dokan_withdraw_get_method_title($request->method);
                ?>
</td>
                        <td><?php 
                echo dokan_format_time($request->date);
                ?>
</td>
                        <td>
                            <?php 
                $url = add_query_arg(array('action' => 'dokan_cancel_withdrow', 'id' => $request->id), dokan_get_navigation_url('withdraw'));
                ?>
                            <a href="<?php 
                echo wp_nonce_url($url, 'dokan_cancel_withdrow');
                ?>
">
                                <?php 
                _e('Cancel', 'dokan');
                ?>
                            </a>
                        </td>
                        <td><?php 
                echo $this->request_status($request->status);
                ?>
</td>
                    </tr>

                <?php 
            }
            ?>

            </table>
            <?php 
        }
    }
开发者ID:CPHollister,项目名称:shyftmodels,代码行数:80,代码来源:template-withdraw.php

示例11: esc_attr

        echo '<abbr title="' . esc_attr($t_time) . '">' . esc_html(apply_filters('post_date_column_time', $h_time, $the_order->id)) . '</abbr>';
        ?>
                    </td>
                    <td class="dokan-order-action" width="17%">
                        <?php 
        do_action('woocommerce_admin_order_actions_start', $the_order);
        $actions = array();
        if (dokan_get_option('order_status_change', 'dokan_selling', 'on') == 'on') {
            if (in_array($the_order->post_status, array('wc-pending', 'wc-on-hold'))) {
                $actions['processing'] = array('url' => wp_nonce_url(admin_url('admin-ajax.php?action=dokan-mark-order-processing&order_id=' . $the_order->id), 'dokan-mark-order-processing'), 'name' => __('Processing', 'dokan'), 'action' => "processing", 'icon' => '<i class="fa fa-clock-o">&nbsp;</i>');
            }
            if (in_array($the_order->post_status, array('wc-pending', 'wc-on-hold', 'wc-processing'))) {
                $actions['complete'] = array('url' => wp_nonce_url(admin_url('admin-ajax.php?action=dokan-mark-order-complete&order_id=' . $the_order->id), 'dokan-mark-order-complete'), 'name' => __('Complete', 'dokan'), 'action' => "complete", 'icon' => '<i class="fa fa-check">&nbsp;</i>');
            }
        }
        $actions['view'] = array('url' => wp_nonce_url(add_query_arg(array('order_id' => $the_order->id), dokan_get_navigation_url('orders')), 'dokan_view_order'), 'name' => __('View', 'dokan'), 'action' => "view", 'icon' => '<i class="fa fa-eye">&nbsp;</i>');
        $actions = apply_filters('woocommerce_admin_order_actions', $actions, $the_order);
        foreach ($actions as $action) {
            $icon = isset($action['icon']) ? $action['icon'] : '';
            printf('<a class="dokan-btn dokan-btn-default dokan-btn-sm tips" href="%s" data-toggle="tooltip" data-placement="top" title="%s">%s</a> ', esc_url($action['url']), esc_attr($action['name']), $icon);
        }
        do_action('woocommerce_admin_order_actions_end', $the_order);
        ?>
                    </td>
                </tr>

            <?php 
    }
    ?>

        </tbody>
开发者ID:amirkchetu,项目名称:dokan,代码行数:31,代码来源:listing.php

示例12: wpuf_comments_menu

    /**
     * Show menu
     *
     * @param string  $post_type
     */
    function wpuf_comments_menu($post_type)
    {
        $url = dokan_get_navigation_url('reviews');
        $pending = isset($this->pending) ? $this->pending : 0;
        $spam = isset($this->spam) ? $this->spam : 0;
        $trash = isset($this->trash) ? $this->trash : 0;
        ?>
        <div id="dokan-comments_menu">
            <ul class="subsubsub list-inline">
                <li><a href="<?php 
        echo $url;
        ?>
"><?php 
        _e('All', 'dokan');
        ?>
</a></li>
                <li>
                    <a href="<?php 
        echo add_query_arg(array('comment_status' => 'hold'), $url);
        ?>
"><?php 
        _e('Pending (', 'dokan');
        ?>
<span class="comments-menu-pending"><?php 
        echo $pending;
        ?>
</span><?php 
        _e(')', 'dokan');
        ?>
</a>
                </li>
                <li>
                    <a href="<?php 
        echo add_query_arg(array('comment_status' => 'spam'), $url);
        ?>
"><?php 
        _e('Spam (', 'dokan');
        ?>
<span class="comments-menu-spam"><?php 
        echo $spam;
        ?>
</span><?php 
        _e(')', 'dokan');
        ?>
</a>
                </li>
                <li>
                    <a href="<?php 
        echo add_query_arg(array('comment_status' => 'trash'), $url);
        ?>
"><?php 
        _e('Trash (', 'dokan');
        ?>
<span class="comments-menu-trash"><?php 
        echo $trash;
        ?>
</span><?php 
        _e(')', 'dokan');
        ?>
</a>
                </li>
            </ul>
        </div>
        <?php 
    }
开发者ID:abcode619,项目名称:wpstuff,代码行数:70,代码来源:template-reviews.php

示例13: _e

<?php

/**
 * Dokan No Announcement Found Template
 *
 * @since 2.4
 *
 * @package dokan
 */
?>
<article class="dokan-notice-single-notice-area">
    <header class="dokan-dashboard-header dokan-clearfix">
        <span class="left-header-content">
            <h1 class="entry-title"><?php 
_e('Notice', 'dokan');
?>
</h1>
        </span>
    </header>
    <div class="dokan-error">
        <?php 
echo sprintf("<p>%s <a href='%s'>%s</a></p", __('No Notice found; ', 'dokan'), dokan_get_navigation_url('announcement'), __('Back to all Notice', 'dokan'));
?>
    </div>
</article>
开发者ID:StefanBonilla,项目名称:CoupSoup,代码行数:25,代码来源:no-announcement.php

示例14: get_announcement_widget

 /**
  * Get announcement widget
  *
  * @return void
  */
 public function get_announcement_widget()
 {
     $template_notice = Dokan_Pro_Notice::init();
     $query = $template_notice->get_announcement_by_users(apply_filters('dokan_announcement_list_number', 3));
     dokan_get_template_part('dashboard/announcement-widget', '', array('pro' => true, 'notices' => $query->posts, 'announcement_url' => dokan_get_navigation_url('announcement')));
 }
开发者ID:Artgorae,项目名称:wp-artgorae,代码行数:11,代码来源:dashboard.php

示例15: list_user_coupons

    function list_user_coupons()
    {
        //click add coupon then hide this function
        if (isset($_GET['view']) && $_GET['view'] == 'add_coupons') {
            return;
        }
        if (isset($_GET['post']) && $_GET['action'] == 'edit') {
            return;
        }
        $perpage = $this->perpage;
        $pagenum = isset($_GET['pagenum']) ? absint($_GET['pagenum']) : 1;
        $offset = ($pagenum - 1) * $perpage;
        $paged = get_query_var('paged') ? get_query_var('paged') : 1;
        $args = array('post_type' => 'shop_coupon', 'post_status' => array('publish'), 'posts_per_page' => $this->perpage, 'offset' => $offset, 'author' => get_current_user_id(), 'paged' => $paged);
        $coupon_query = new WP_Query($args);
        $all_coupons = $coupon_query->get_posts();
        if ($all_coupons) {
            //pagination total
            $this->total_query_result = $coupon_query->found_posts;
            //message save, update, delte
            $this->message();
            ?>

            <table class="dokan-table">
                <thead>
                    <tr>
                        <th><?php 
            _e('Code', 'dokan');
            ?>
</th>
                        <th><?php 
            _e('Coupon type', 'dokan');
            ?>
</th>
                        <th><?php 
            _e('Coupon amount', 'dokan');
            ?>
</th>
                        <th><?php 
            _e('Product IDs', 'dokan');
            ?>
</th>
                        <th><?php 
            _e('Usage / Limit', 'dokan');
            ?>
</th>
                        <th><?php 
            _e('Expiry date', 'dokan');
            ?>
</th>
                    </tr>
                </thead>

            <?php 
            foreach ($coupon_query->posts as $key => $post) {
                ?>
                <tr>
                    <td class="coupon-code">
                        <?php 
                $edit_url = wp_nonce_url(add_query_arg(array('post' => $post->ID, 'action' => 'edit', 'view' => 'add_coupons'), dokan_get_navigation_url('coupons')), '_coupon_nonce', 'coupon_nonce_url');
                ?>
                        <div class="code">
                            <a href="<?php 
                echo $edit_url;
                ?>
"><span><?php 
                echo esc_attr($post->post_title);
                ?>
</span></a>
                        </div>

                        <div class="row-actions">
                            <?php 
                $del_url = wp_nonce_url(add_query_arg(array('post' => $post->ID, 'action' => 'delete'), get_permalink()), '_coupon_del_nonce', 'coupon_del_nonce');
                ?>

                            <span class="edit"><a href="<?php 
                echo $edit_url;
                ?>
"><?php 
                _e('Edit', 'dokan');
                ?>
</a> | </span>
                            <span class="delete"><a  href="<?php 
                echo $del_url;
                ?>
"  onclick="return confirm('<?php 
                esc_attr_e('Are you sure want to delete', 'dokan');
                ?>
');"><?php 
                _e('delete', 'dokan');
                ?>
</a></span>
                        </div>
                    </td>

                    <td>
                        <?php 
                $discount_type = get_post_meta($post->ID, 'discount_type', true);
                $type = '';
//.........这里部分代码省略.........
开发者ID:amirkchetu,项目名称:dokan,代码行数:101,代码来源:template-coupons.php


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