Skip to content

Commit

Permalink
remove angular logic, only static items
Browse files Browse the repository at this point in the history
  • Loading branch information
shayan-ghzl committed Mar 19, 2023
1 parent 8a52b25 commit 4fbd828
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 14 deletions.
4 changes: 1 addition & 3 deletions src/app/app.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

<app-sidebar></app-sidebar>

<app-content></app-content>

<!-- <svg class="icon-test"><use xlink:href="#admin-media"/></svg> -->
<app-content></app-content>

</div>
16 changes: 8 additions & 8 deletions src/app/layout/sidebar/sidebar.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -122,17 +122,17 @@
<ul class="wp-submenu wp-submenu-wrap">
<li class="wp-submenu-head"
aria-hidden="true">ابزارها</li>
<li class="wp-first-item"><a (focus)="stayOpen()" (blur)="closeIt()"
<li class="wp-first-item"><a
href="tools.php" class="wp-first-item">ابزارهای دردسترس</a></li>
<li><a (focus)="stayOpen()" (blur)="closeIt()"
<li><a
href="import.php">درون‌ریزی</a></li>
<li><a (focus)="stayOpen()" (blur)="closeIt()" href="export.php">برون‌بری</a></li>
<li><a (focus)="stayOpen()" (blur)="closeIt()"
<li><a href="export.php">برون‌بری</a></li>
<li><a
href="site-health.php">سلامت سایت <span class="menu-counter
site-health-counter count-0"><span class="count">0</span></span></a></li><li><a (focus)="stayOpen()" (blur)="closeIt()"
href="export-personal-data.php">برون‌بری دادهٔ شخصی</a></li><li><a (focus)="stayOpen()" (blur)="closeIt()"
href="erase-personal-data.php">پاک‌سازی اطلاعات شخصی</a></li><li><a (focus)="stayOpen()" (blur)="closeIt()"
href="theme-editor.php">ویرایشگر پرونده پوسته</a></li><li><a (focus)="stayOpen()" (blur)="closeIt()"
site-health-counter count-0"><span class="count">0</span></span></a></li><li><a
href="export-personal-data.php">برون‌بری دادهٔ شخصی</a></li><li><a
href="erase-personal-data.php">پاک‌سازی اطلاعات شخصی</a></li><li><a
href="theme-editor.php">ویرایشگر پرونده پوسته</a></li><li><a
href="plugin-editor.php">ویرایشگر پرونده افزونه</a></li></ul>
</li>
<!-- -------------------------- -->
Expand Down
6 changes: 5 additions & 1 deletion src/app/layout/sidebar/sidebar.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -814,7 +814,7 @@ li#wp-admin-bar-menu-toggle {

}

@media (min-width: 782px) {
@media screen and (min-width: 782px) {
body.is-fullscreen-mode #adminmenumain {
display: none;
}
Expand Down Expand Up @@ -909,6 +909,10 @@ li#wp-admin-bar-menu-toggle {
display: none;
}

#collapse-menu{
display: none;
}

/* Make the submenus appear correctly when tapped. */
#adminmenu .wp-submenu {
position: relative;
Expand Down
4 changes: 2 additions & 2 deletions src/app/layout/sidebar/sidebar.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { Component, ViewEncapsulation } from '@angular/core';
encapsulation: ViewEncapsulation.None,
})
export class SidebarComponent {

constructor() {
document.body.classList.add('rtl');
// document.body.classList.add('sticky-menu');
Expand All @@ -24,7 +25,6 @@ export class SidebarComponent {
// document.body.classList.add('menu-over-content');
}

stayOpen(){}
closeIt(){}


}

0 comments on commit 4fbd828

Please sign in to comment.