-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
complete frontend view with custom rewrites
- Loading branch information
1 parent
7de7db7
commit 075bffc
Showing
15 changed files
with
283 additions
and
24 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
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,34 @@ | ||
.wpsm-content-wrap { | ||
display: flex; | ||
} | ||
.wpsm-content-wrap ul.wpsm-side-nav { | ||
float: left; | ||
flex: 1; | ||
margin: 0 20px 0 0 ; | ||
padding: 0; | ||
background: #fafafa; | ||
} | ||
.wpsm-content-wrap ul.wpsm-side-nav li { | ||
list-style: none; | ||
padding: 0; | ||
margin: 0; | ||
border-bottom: 1px solid #eee; | ||
} | ||
.wpsm-content-wrap ul.wpsm-side-nav li.active { | ||
background: #eee; | ||
} | ||
.wpsm-content-wrap ul.wpsm-side-nav li a { | ||
display: block; | ||
text-decoration: none; | ||
padding: 8px 15px; | ||
color: #222; | ||
} | ||
.wpsm-content-wrap ul.wpsm-side-nav li a:hover { | ||
background: #eee; | ||
} | ||
.wpsm-content-wrap .wpsm-content { | ||
flex: 3; | ||
} | ||
.wpsm-content-wrap .wpsm-content .wpsm-content-article { | ||
border-bottom: none; | ||
} |
Empty file.
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,42 @@ | ||
.wpsm-content-wrap { | ||
display: flex; | ||
|
||
ul.wpsm-side-nav { | ||
float: left; | ||
flex: 1; | ||
margin: 0 20px 0 0 ; | ||
padding: 0; | ||
background: #fafafa; | ||
|
||
li { | ||
list-style: none; | ||
padding: 0; | ||
margin: 0; | ||
border-bottom: 1px solid #eee; | ||
|
||
&.active { | ||
background: #eee; | ||
} | ||
|
||
a { | ||
display: block; | ||
text-decoration: none; | ||
padding: 8px 15px; | ||
color: #222; | ||
|
||
|
||
&:hover { | ||
background: #eee; | ||
} | ||
} | ||
} | ||
} | ||
|
||
.wpsm-content { | ||
flex: 3; | ||
|
||
.wpsm-content-article { | ||
border-bottom: none; | ||
} | ||
} | ||
} |
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 @@ | ||
@import "general.less"; |
Empty file.
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
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
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
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
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
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 |
---|---|---|
@@ -1,6 +1,33 @@ | ||
<ul> | ||
<li><a href="#">Dashboard</a></li> | ||
<li><a href="#">Tickets</a></li> | ||
<li><a href="#">Add new</a></li> | ||
<li><a href="#">Settings</a></li> | ||
</ul> | ||
<?php | ||
/** | ||
* Side navigation template | ||
* | ||
* @since 1.0.0 | ||
* | ||
* @package wp-support-manager | ||
*/ | ||
|
||
global $wp; | ||
|
||
$navigations = wpsm_get_dashboard_nav(); | ||
$request = $wp->request; | ||
$active = explode('/', $request ); | ||
|
||
unset( $active[0] ); | ||
|
||
if ( $active ) { | ||
$active_menu = implode( '/', $active ); | ||
} else { | ||
$active_menu = 'overview'; | ||
} | ||
|
||
?> | ||
<ul class="wpsm-side-nav"> | ||
|
||
<?php foreach ( $navigations as $key => $nav ): ?> | ||
|
||
<li class="<?php echo ( $key == $active_menu ) ? 'active' : ''; ?>"><a href="<?php echo $nav['url'] ?>" class=""><span class="fa <?php echo $nav['icon'] ?>"></span> <?php echo $nav['title'] ?></a></li> | ||
|
||
<?php endforeach ?> | ||
|
||
</ul> |
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,68 @@ | ||
<?php | ||
/** | ||
* Dokan Dashboard Template | ||
* | ||
* Dokan Main Dahsboard template for Fron-end | ||
* | ||
* @since 2.4 | ||
* | ||
* @package dokan | ||
*/ | ||
?> | ||
<div class="wpsm-content-wrap"> | ||
<?php | ||
|
||
/** | ||
* wpsm_content_before hook | ||
* | ||
* @hooked get_dashboard_side_navigation | ||
* | ||
* @since 2.4 | ||
*/ | ||
wpsm_get_template( 'global/side-nav.php' ); | ||
?> | ||
|
||
<div class="wpsm-content"> | ||
|
||
<?php | ||
|
||
/** | ||
* wpsm_content_inside_before hook | ||
* | ||
* @hooked show_seller_dashboard_notice | ||
* | ||
* @since 2.4 | ||
*/ | ||
do_action( 'wpsm_content_inside_before' ); | ||
?> | ||
|
||
<article class="wpsm-content-article"> | ||
|
||
<p>Add new tickets</p> | ||
|
||
</article><!-- .dashboard-content-area --> | ||
|
||
<?php | ||
|
||
/** | ||
* wpsm_content_inside_after hook | ||
* | ||
* @since 2.4 | ||
*/ | ||
do_action( 'wpsm_content_inside_after' ); | ||
?> | ||
|
||
|
||
</div><!-- .wpsm-content --> | ||
|
||
<?php | ||
|
||
/** | ||
* wpsm_content_after hook | ||
* | ||
* @since 2.4 | ||
*/ | ||
do_action( 'wpsm_content_after' ); | ||
?> | ||
|
||
</div><!-- .wpsm-content-wrap --> |
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,68 @@ | ||
<?php | ||
/** | ||
* Dokan Dashboard Template | ||
* | ||
* Dokan Main Dahsboard template for Fron-end | ||
* | ||
* @since 2.4 | ||
* | ||
* @package dokan | ||
*/ | ||
?> | ||
<div class="wpsm-content-wrap"> | ||
<?php | ||
|
||
/** | ||
* wpsm_content_before hook | ||
* | ||
* @hooked get_dashboard_side_navigation | ||
* | ||
* @since 2.4 | ||
*/ | ||
wpsm_get_template( 'global/side-nav.php' ); | ||
?> | ||
|
||
<div class="wpsm-content"> | ||
|
||
<?php | ||
|
||
/** | ||
* wpsm_content_inside_before hook | ||
* | ||
* @hooked show_seller_dashboard_notice | ||
* | ||
* @since 2.4 | ||
*/ | ||
do_action( 'wpsm_content_inside_before' ); | ||
?> | ||
|
||
<article class="wpsm-content-article"> | ||
|
||
<p>List all tickets</p> | ||
|
||
</article><!-- .dashboard-content-area --> | ||
|
||
<?php | ||
|
||
/** | ||
* wpsm_content_inside_after hook | ||
* | ||
* @since 2.4 | ||
*/ | ||
do_action( 'wpsm_content_inside_after' ); | ||
?> | ||
|
||
|
||
</div><!-- .wpsm-content --> | ||
|
||
<?php | ||
|
||
/** | ||
* wpsm_content_after hook | ||
* | ||
* @since 2.4 | ||
*/ | ||
do_action( 'wpsm_content_after' ); | ||
?> | ||
|
||
</div><!-- .wpsm-content-wrap --> |
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