@@ 737-739 (lines=3) @@ | ||
734 | { |
|
735 | if (is_string($icon)) { |
|
736 | $path = "/assets/images/themes/{$this->conf['theme']}/{$icon}"; |
|
737 | if (file_exists(\BASE_PATH.$path.'.png')) { |
|
738 | return SUBFOLDER.$path.'.png'; |
|
739 | } |
|
740 | ||
741 | if (file_exists(\BASE_PATH.$path.'.gif')) { |
|
742 | return SUBFOLDER.$path.'.gif'; |
|
@@ 741-743 (lines=3) @@ | ||
738 | return SUBFOLDER.$path.'.png'; |
|
739 | } |
|
740 | ||
741 | if (file_exists(\BASE_PATH.$path.'.gif')) { |
|
742 | return SUBFOLDER.$path.'.gif'; |
|
743 | } |
|
744 | ||
745 | if (file_exists(\BASE_PATH.$path.'.ico')) { |
|
746 | return SUBFOLDER.$path.'.ico'; |
|
@@ 745-747 (lines=3) @@ | ||
742 | return SUBFOLDER.$path.'.gif'; |
|
743 | } |
|
744 | ||
745 | if (file_exists(\BASE_PATH.$path.'.ico')) { |
|
746 | return SUBFOLDER.$path.'.ico'; |
|
747 | } |
|
748 | ||
749 | $path = "/assets/images/themes/default/{$icon}"; |
|
750 | if (file_exists(\BASE_PATH.$path.'.png')) { |
|
@@ 750-752 (lines=3) @@ | ||
747 | } |
|
748 | ||
749 | $path = "/assets/images/themes/default/{$icon}"; |
|
750 | if (file_exists(\BASE_PATH.$path.'.png')) { |
|
751 | return SUBFOLDER.$path.'.png'; |
|
752 | } |
|
753 | ||
754 | if (file_exists(\BASE_PATH.$path.'.gif')) { |
|
755 | return SUBFOLDER.$path.'.gif'; |
|
@@ 754-756 (lines=3) @@ | ||
751 | return SUBFOLDER.$path.'.png'; |
|
752 | } |
|
753 | ||
754 | if (file_exists(\BASE_PATH.$path.'.gif')) { |
|
755 | return SUBFOLDER.$path.'.gif'; |
|
756 | } |
|
757 | ||
758 | if (file_exists(\BASE_PATH.$path.'.ico')) { |
|
759 | return SUBFOLDER.$path.'.ico'; |
|
@@ 758-760 (lines=3) @@ | ||
755 | return SUBFOLDER.$path.'.gif'; |
|
756 | } |
|
757 | ||
758 | if (file_exists(\BASE_PATH.$path.'.ico')) { |
|
759 | return SUBFOLDER.$path.'.ico'; |
|
760 | } |
|
761 | } else { |
|
762 | // Icon from plugins |
|
763 | $path = "/plugins/{$icon[0]}/images/{$icon[1]}"; |
|
@@ 764-766 (lines=3) @@ | ||
761 | } else { |
|
762 | // Icon from plugins |
|
763 | $path = "/plugins/{$icon[0]}/images/{$icon[1]}"; |
|
764 | if (file_exists(\BASE_PATH.$path.'.png')) { |
|
765 | return SUBFOLDER.$path.'.png'; |
|
766 | } |
|
767 | ||
768 | if (file_exists(\BASE_PATH.$path.'.gif')) { |
|
769 | return SUBFOLDER.$path.'.gif'; |
|
@@ 768-770 (lines=3) @@ | ||
765 | return SUBFOLDER.$path.'.png'; |
|
766 | } |
|
767 | ||
768 | if (file_exists(\BASE_PATH.$path.'.gif')) { |
|
769 | return SUBFOLDER.$path.'.gif'; |
|
770 | } |
|
771 | ||
772 | if (file_exists(\BASE_PATH.$path.'.ico')) { |
|
773 | return SUBFOLDER.$path.'.ico'; |
|
@@ 772-774 (lines=3) @@ | ||
769 | return SUBFOLDER.$path.'.gif'; |
|
770 | } |
|
771 | ||
772 | if (file_exists(\BASE_PATH.$path.'.ico')) { |
|
773 | return SUBFOLDER.$path.'.ico'; |
|
774 | } |
|
775 | } |
|
776 | ||
777 | return ''; |