diff --git a/model/CreditApi.class.php b/model/CreditApi.class.php index cd0ea598..504c228d 100644 --- a/model/CreditApi.class.php +++ b/model/CreditApi.class.php @@ -14,7 +14,9 @@ class CreditApi public static function getTotalPeople() { - return 573; + $rawJSON = file_get_contents('https://spreadsheets.google.com/feeds/cells/1iOC1o5jq_4ySwRzsy2tZPPltw6Tbky2e3lDFdsWV8dU/okf1n52/public/full/R1C1?alt=json'); + $json = $rawJSON ? json_decode($rawJSON, true) : []; + return isset($json['entry']) && isset($json['entry']['content']) ? $json['entry']['content']['$t'] : -1; } public static function getCreditsPerDollar($days) diff --git a/view/nav/globalItems.php b/view/nav/globalItems.php index 7579476e..405aa62b 100644 --- a/view/nav/globalItems.php +++ b/view/nav/globalItems.php @@ -1,11 +1,8 @@ __('Fund'), +// '/fund' => __('Fund'), '/get' => __('Get'), '//blog.lbry.io' => __('News'), - '/learn' => __('Learn'), -// '/what' => __('What'), -// '/why' => __('Why'), -// '/team' => __('Team') + '/learn' => __('Learn') ] as $url => $label): ?>
@@ -11,18 +12,25 @@ | - + */ ?> |
- + + | +|
+ + | ++ |