@@ 2006-2008 (lines=3) @@ | ||
2003 | { |
|
2004 | if (is_string($icon)) { |
|
2005 | $path = "/images/themes/{$this->conf['theme']}/{$icon}"; |
|
2006 | if (file_exists(BASE_PATH.$path.'.png')) { |
|
2007 | return SUBFOLDER.$path.'.png'; |
|
2008 | } |
|
2009 | ||
2010 | if (file_exists(BASE_PATH.$path.'.gif')) { |
|
2011 | return SUBFOLDER.$path.'.gif'; |
|
@@ 2010-2012 (lines=3) @@ | ||
2007 | return SUBFOLDER.$path.'.png'; |
|
2008 | } |
|
2009 | ||
2010 | if (file_exists(BASE_PATH.$path.'.gif')) { |
|
2011 | return SUBFOLDER.$path.'.gif'; |
|
2012 | } |
|
2013 | ||
2014 | if (file_exists(BASE_PATH.$path.'.ico')) { |
|
2015 | return SUBFOLDER.$path.'.ico'; |
|
@@ 2014-2016 (lines=3) @@ | ||
2011 | return SUBFOLDER.$path.'.gif'; |
|
2012 | } |
|
2013 | ||
2014 | if (file_exists(BASE_PATH.$path.'.ico')) { |
|
2015 | return SUBFOLDER.$path.'.ico'; |
|
2016 | } |
|
2017 | ||
2018 | $path = "/images/themes/default/{$icon}"; |
|
2019 | if (file_exists(BASE_PATH.$path.'.png')) { |
|
@@ 2019-2021 (lines=3) @@ | ||
2016 | } |
|
2017 | ||
2018 | $path = "/images/themes/default/{$icon}"; |
|
2019 | if (file_exists(BASE_PATH.$path.'.png')) { |
|
2020 | return SUBFOLDER.$path.'.png'; |
|
2021 | } |
|
2022 | ||
2023 | if (file_exists(BASE_PATH.$path.'.gif')) { |
|
2024 | return SUBFOLDER.$path.'.gif'; |
|
@@ 2023-2025 (lines=3) @@ | ||
2020 | return SUBFOLDER.$path.'.png'; |
|
2021 | } |
|
2022 | ||
2023 | if (file_exists(BASE_PATH.$path.'.gif')) { |
|
2024 | return SUBFOLDER.$path.'.gif'; |
|
2025 | } |
|
2026 | ||
2027 | if (file_exists(BASE_PATH.$path.'.ico')) { |
|
2028 | return SUBFOLDER.$path.'.ico'; |
|
@@ 2027-2029 (lines=3) @@ | ||
2024 | return SUBFOLDER.$path.'.gif'; |
|
2025 | } |
|
2026 | ||
2027 | if (file_exists(BASE_PATH.$path.'.ico')) { |
|
2028 | return SUBFOLDER.$path.'.ico'; |
|
2029 | } |
|
2030 | } else { |
|
2031 | // Icon from plugins |
|
2032 | $path = "/plugins/{$icon[0]}/images/{$icon[1]}"; |
|
@@ 2033-2035 (lines=3) @@ | ||
2030 | } else { |
|
2031 | // Icon from plugins |
|
2032 | $path = "/plugins/{$icon[0]}/images/{$icon[1]}"; |
|
2033 | if (file_exists(BASE_PATH.$path.'.png')) { |
|
2034 | return SUBFOLDER.$path.'.png'; |
|
2035 | } |
|
2036 | ||
2037 | if (file_exists(BASE_PATH.$path.'.gif')) { |
|
2038 | return SUBFOLDER.$path.'.gif'; |
|
@@ 2037-2039 (lines=3) @@ | ||
2034 | return SUBFOLDER.$path.'.png'; |
|
2035 | } |
|
2036 | ||
2037 | if (file_exists(BASE_PATH.$path.'.gif')) { |
|
2038 | return SUBFOLDER.$path.'.gif'; |
|
2039 | } |
|
2040 | ||
2041 | if (file_exists(BASE_PATH.$path.'.ico')) { |
|
2042 | return SUBFOLDER.$path.'.ico'; |
|
@@ 2041-2043 (lines=3) @@ | ||
2038 | return SUBFOLDER.$path.'.gif'; |
|
2039 | } |
|
2040 | ||
2041 | if (file_exists(BASE_PATH.$path.'.ico')) { |
|
2042 | return SUBFOLDER.$path.'.ico'; |
|
2043 | } |
|
2044 | } |
|
2045 | ||
2046 | return ''; |