Redesign prototype merge #18

Merged
MrPetovan merged 50 commits from feature/redesign-prototype into master 2017-05-06 08:10:18 +02:00
2 changed files with 29 additions and 27 deletions
Showing only changes of commit 280d55f183 - Show all commits

View file

@ -28,8 +28,10 @@ function servers_content(&$a) {
annando commented 2017-05-06 07:07:40 +02:00 (Migrated from github.com)
Review

You can remove App.net since it closed its doors. But you could add Facebook via the "buffer" addon.

You can remove App.net since it closed its doors. But you could add Facebook via the "buffer" addon.
MrPetovan commented 2017-05-06 07:16:16 +02:00 (Migrated from github.com)
Review

Gotcha.

Gotcha.
annando commented 2017-05-06 07:07:40 +02:00 (Migrated from github.com)
Review

You can remove App.net since it closed its doors. But you could add Facebook via the "buffer" addon.

You can remove App.net since it closed its doors. But you could add Facebook via the "buffer" addon.
MrPetovan commented 2017-05-06 07:16:16 +02:00 (Migrated from github.com)
Review

Gotcha.

Gotcha.
$r = q("SELECT * FROM `site-health` WHERE `reg_policy`='REGISTER_OPEN' AND `ssl_state` = 1");
if(count($r)) {
foreach($r as $rr) {
$sites_with_health[$rr['base_url']] = (($sites[$rr['base_url']] / 100) + 10) * intval($rr['health_score']);
annando commented 2017-05-06 07:07:40 +02:00 (Migrated from github.com)
Review

You can remove App.net since it closed its doors. But you could add Facebook via the "buffer" addon.

You can remove App.net since it closed its doors. But you could add Facebook via the "buffer" addon.
MrPetovan commented 2017-05-06 07:16:16 +02:00 (Migrated from github.com)
Review

Gotcha.

Gotcha.
$site_healths[$rr['base_url']] = $rr;
annando commented 2017-05-06 07:07:40 +02:00 (Migrated from github.com)
Review

You can remove App.net since it closed its doors. But you could add Facebook via the "buffer" addon.

You can remove App.net since it closed its doors. But you could add Facebook via the "buffer" addon.
MrPetovan commented 2017-05-06 07:16:16 +02:00 (Migrated from github.com)
Review

Gotcha.

Gotcha.
if (isset($sites[$rr['base_url']])) {
annando commented 2017-05-06 07:07:40 +02:00 (Migrated from github.com)
Review

You can remove App.net since it closed its doors. But you could add Facebook via the "buffer" addon.

You can remove App.net since it closed its doors. But you could add Facebook via the "buffer" addon.
MrPetovan commented 2017-05-06 07:16:16 +02:00 (Migrated from github.com)
Review

Gotcha.

Gotcha.
$sites_with_health[$rr['base_url']] = (($sites[$rr['base_url']] / 100) + 10) * intval($rr['health_score']);
annando commented 2017-05-06 07:07:40 +02:00 (Migrated from github.com)
Review

You can remove App.net since it closed its doors. But you could add Facebook via the "buffer" addon.

You can remove App.net since it closed its doors. But you could add Facebook via the "buffer" addon.
MrPetovan commented 2017-05-06 07:16:16 +02:00 (Migrated from github.com)
Review

Gotcha.

Gotcha.
$site_healths[$rr['base_url']] = $rr;
annando commented 2017-05-06 07:07:40 +02:00 (Migrated from github.com)
Review

You can remove App.net since it closed its doors. But you could add Facebook via the "buffer" addon.

You can remove App.net since it closed its doors. But you could add Facebook via the "buffer" addon.
MrPetovan commented 2017-05-06 07:16:16 +02:00 (Migrated from github.com)
Review

Gotcha.

Gotcha.
}
annando commented 2017-05-06 07:07:40 +02:00 (Migrated from github.com)
Review

You can remove App.net since it closed its doors. But you could add Facebook via the "buffer" addon.

You can remove App.net since it closed its doors. But you could add Facebook via the "buffer" addon.
MrPetovan commented 2017-05-06 07:16:16 +02:00 (Migrated from github.com)
Review

Gotcha.

Gotcha.
}
}
@ -105,7 +107,7 @@ function servers_content(&$a) {
annando commented 2017-05-06 07:07:40 +02:00 (Migrated from github.com)
Review

You can remove App.net since it closed its doors. But you could add Facebook via the "buffer" addon.

You can remove App.net since it closed its doors. But you could add Facebook via the "buffer" addon.
MrPetovan commented 2017-05-06 07:16:16 +02:00 (Migrated from github.com)
Review

Gotcha.

Gotcha.
annando commented 2017-05-06 07:07:40 +02:00 (Migrated from github.com)
Review

You can remove App.net since it closed its doors. But you could add Facebook via the "buffer" addon.

You can remove App.net since it closed its doors. But you could add Facebook via the "buffer" addon.
MrPetovan commented 2017-05-06 07:16:16 +02:00 (Migrated from github.com)
Review

Gotcha.

Gotcha.
}
//In case we asked for a surprise, pick a random one from the top 10! :D
if($a->argv[1] == 'surprise'){
annando commented 2017-05-06 07:07:40 +02:00 (Migrated from github.com)
Review

You can remove App.net since it closed its doors. But you could add Facebook via the "buffer" addon.

You can remove App.net since it closed its doors. But you could add Facebook via the "buffer" addon.
MrPetovan commented 2017-05-06 07:16:16 +02:00 (Migrated from github.com)
Review

Gotcha.

Gotcha.
if($a->argc > 1 && $a->argv[1] == 'surprise'){
annando commented 2017-05-06 07:07:40 +02:00 (Migrated from github.com)
Review

You can remove App.net since it closed its doors. But you could add Facebook via the "buffer" addon.

You can remove App.net since it closed its doors. But you could add Facebook via the "buffer" addon.
MrPetovan commented 2017-05-06 07:16:16 +02:00 (Migrated from github.com)
Review

Gotcha.

Gotcha.
$max = min(count($public_sites), 10);
$i = mt_rand(0, $max-1);
$surpriseSite = $public_sites[$i];

annando commented 2017-05-06 07:07:40 +02:00 (Migrated from github.com)
Review

You can remove App.net since it closed its doors. But you could add Facebook via the "buffer" addon.

You can remove App.net since it closed its doors. But you could add Facebook via the "buffer" addon.
MrPetovan commented 2017-05-06 07:16:16 +02:00 (Migrated from github.com)
Review

Gotcha.

Gotcha.
annando commented 2017-05-06 07:07:40 +02:00 (Migrated from github.com)
Review

You can remove App.net since it closed its doors. But you could add Facebook via the "buffer" addon.

You can remove App.net since it closed its doors. But you could add Facebook via the "buffer" addon.
MrPetovan commented 2017-05-06 07:16:16 +02:00 (Migrated from github.com)
Review

Gotcha.

Gotcha.

View file

@ -1,6 +1,6 @@
<form action="/search" method="get" class="search-form">
<div class="search-wrapper">
<input class="search-field" type="text" name="query" placeholder="Search your friends" tabindex="1" value="<?php echo $query; ?>" />
<input class="search-field" type="text" name="query" placeholder="Search your friends" tabindex="1" value="<?php echo isset($query)? $query : ''; ?>" />
<input class="reset" type="reset" value="&#xf00d;" tabindex="3" />
<input class="search" type="submit" value="Search" tabindex="2" />
</div>