Browse Source

Added entry to homepage sort function

Henry Whitaker 6 years ago
parent
commit
85cb99cec3
1 changed files with 7 additions and 0 deletions
  1. 7 0
      api/functions/homepage-functions.php

+ 7 - 0
api/functions/homepage-functions.php

@@ -2668,6 +2668,13 @@ function buildHomepageSettings()
 					$class .= ' faded';
 					$class .= ' faded';
 				}
 				}
 				break;
 				break;
+			case 'homepageOrderPihole':
+				$class = 'bg-info';
+				$image = 'plugins/images/tabs/pihole.png';
+				if (!$GLOBALS['homepagePiholeEnabled']) {
+					$class .= ' faded';
+				}
+				break;
 			default:
 			default:
 				$class = 'blue-bg';
 				$class = 'blue-bg';
 				$image = '';
 				$image = '';