-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from weDevsOfficial/frontent
Added vendor-biography.php file on dokani theme
- Loading branch information
Showing
1 changed file
with
86 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
<?php | ||
/** | ||
* The Template for displaying vendor biography. | ||
* | ||
* @package dokan | ||
*/ | ||
|
||
$store_user = get_userdata( get_query_var( 'author' ) ); | ||
$store_info = dokan_get_store_info( $store_user->ID ); | ||
$map_location = $store_user->get_location(); | ||
|
||
get_header(); | ||
?> | ||
|
||
|
||
<?php dokan_get_template_part( 'store-header' ); ?> | ||
|
||
<div class="grid-container"> | ||
|
||
<div id="primary" <?php dokani_content_class(); ?>> | ||
|
||
<main id="main" <?php dokani_main_class(); ?>> | ||
|
||
<?php | ||
|
||
/** | ||
* dokani_before_main_content hook. | ||
* | ||
* @since 1.0.0 | ||
*/ | ||
do_action( 'dokani_before_main_content' ); | ||
|
||
?> | ||
|
||
<div class="store-review-wrap woocommerce"> | ||
|
||
<div id="vendor-biography"> | ||
<div id="comments"> | ||
<?php do_action( 'dokan_vendor_biography_tab_before', $store_user, $store_info ); ?> | ||
|
||
<h2 class="headline"><?php echo apply_filters( 'dokan_vendor_biography_title', __( 'Vendor Biography', 'dokan' ) ); ?></h2> | ||
|
||
<?php | ||
if ( ! empty( $store_info['vendor_biography'] ) ) { | ||
printf( '%s', apply_filters( 'the_content', $store_info['vendor_biography'] ) ); | ||
} | ||
?> | ||
|
||
<?php do_action( 'dokan_vendor_biography_tab_after', $store_user, $store_info ); ?> | ||
</div> | ||
</div> | ||
|
||
|
||
</div><!-- #content .site-content --> | ||
|
||
<?php | ||
|
||
/** | ||
* dokani_after_main_content hook. | ||
* | ||
* @since 1.0.0 | ||
*/ | ||
do_action( 'dokani_after_main_content' ); | ||
|
||
?> | ||
|
||
</main><!-- #main --> | ||
|
||
</div><!-- #primary --> | ||
|
||
<?php | ||
|
||
/** | ||
* dokani_after_primary_content_area hook. | ||
* | ||
* @since 1.0.0 | ||
*/ | ||
do_action( 'dokani_after_primary_content_area' ); | ||
|
||
dokani_construct_sidebars(); | ||
|
||
?> | ||
|
||
</div> | ||
|
||
<?php get_footer(); ?> |