Skip to content
This repository has been archived by the owner on Aug 9, 2021. It is now read-only.

Commit

Permalink
feat(ui): use font awesome instead of pics
Browse files Browse the repository at this point in the history
  • Loading branch information
btry authored and ajsb85 committed Nov 3, 2017
1 parent 6f61a89 commit 570eb64
Show file tree
Hide file tree
Showing 12 changed files with 8 additions and 9 deletions.
5 changes: 2 additions & 3 deletions css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,12 @@
position: relative;
}

#plugin_flyvemdm_menu li li img {
#plugin_flyvemdm_menu li li span.fa {
position: absolute;
height: 20px;
margin: auto 0;
top: 0;
left: 4px;
bottom: 0;
color: #16a085;
}

#plugin_flyvemdm_menu li div::before, #plugin_flyvemdm_menu li div::after {
Expand Down
2 changes: 1 addition & 1 deletion inc/agent.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public static function getTypeName($nb = 0) {
* @return string
*/
public static function getMenuPicture() {
return '../pics/picto-agent.png';
return 'fa-tablet';
}

/**
Expand Down
2 changes: 1 addition & 1 deletion inc/file.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public static function getTypeName($nb=0) {
* @return string URI to the picture file
*/
public static function getMenuPicture() {
return '../pics/picto-file.png';
return 'fa-file';
}

/**
Expand Down
2 changes: 1 addition & 1 deletion inc/fleet.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public static function getTypeName($nb = 0) {
* @return string the menu picture
*/
public static function getMenuPicture() {
return '../pics/picto-fleet.png';
return 'fa-group';
}

/**
Expand Down
2 changes: 1 addition & 1 deletion inc/invitation.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public static function getTypeName($nb=0) {
* @return string URI to the picture file
*/
public static function getMenuPicture() {
return '../pics/picto-invitation.png';
return 'fa-paper-plane';
}

/**
Expand Down
2 changes: 1 addition & 1 deletion inc/package.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public static function getTypeName($nb=0) {
* @return string the menu picture
*/
public static function getMenuPicture() {
return '../pics/picto-package.png';
return 'fa-gear';
}

/**
Expand Down
Binary file removed pics/picto-agent.png
Binary file not shown.
Binary file removed pics/picto-file.png
Binary file not shown.
Binary file removed pics/picto-fleet.png
Binary file not shown.
Binary file removed pics/picto-invitation.png
Binary file not shown.
Binary file removed pics/picto-package.png
Binary file not shown.
2 changes: 1 addition & 1 deletion tpl/menu.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<li><a href="#"><div>{{ menuName }}</div></a>
<ul>
{% for subMenuName, subMenu in menuItem %}
<li><a href="{{ subMenu.link }}"><div><img src="{{ subMenu.pic }}" /><span>{{ subMenuName }}</span></div></a></li>
<li><a href="{{ subMenu.link }}"><div><span class="fa {{ subMenu.pic }}" >&nbsp;&nbsp;</span><span>{{ subMenuName }}</span></div></a></li>
{% endfor %}
</ul>
</li>
Expand Down

0 comments on commit 570eb64

Please sign in to comment.