Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

partial #78 kontakt page: add IRC, Twitter, forum #130

Merged
merged 5 commits into from
Jul 19, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 34 additions & 0 deletions tests/SocialGroupsTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?php

use PHPUnit\Framework\TestCase;

class SocialGroupsTest extends TestCase {
public function isValidHtmlContent($htmlExtract) {
try {
$doc = new DOMDocument();

return $doc->loadHTML('<html><body>'.$htmlExtract.'</body></html>');
} catch (Exception $e) {
echo "\n\ninvalid HTML:\n",$e->getMessage(),"\n\n",$htmlExtract,"\n\n";

return false;
}
}

public function test_generate_social_groups() {
// GIVEN
require_once 'website/templates/konfig-groups.php';
$socialGroupsConfig = $config['gk_social_groups'];
$socialGroups = new \Geokrety\View\SocialGroups($socialGroupsConfig);

// WHEN
$groupsCount = $socialGroups->count();
$groupsTable = $socialGroups->toHtmlTable();

// THEN
$this->assertGreaterThan(0, $groupsCount, 'please define one or more social groups into konfig-groups');

$this->assertNotNull($groupsTable);
$this->assertTrue($this->isValidHtmlContent($groupsTable), 'social groups table: must be valid html content');
}
}
10 changes: 5 additions & 5 deletions website/composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 2 additions & 5 deletions website/help/bg/help.html
Original file line number Diff line number Diff line change
Expand Up @@ -380,10 +380,7 @@
<a id="morehelp"></a>
<div class="rozdzial">Need more help?</div>

<p>To get more help on GeoKrety visit the forums:</p>
<ul>
<li><a href="https://forum.opencaching.pl/viewforum.php?f=11">forum opencaching.pl (Polish, English)</a></li>
<li><a href="https://www.geoclub.de/viewforum.php?f=102">GeoClub (German)</a></li>
</ul>
<p>To get more help on GeoKrety <a href="https://geokrety.org/kontakt.php">contact us</a> or visit the forums:</p>

#GK_SOCIAL_GROUPS#
<!-- tresc -->
8 changes: 3 additions & 5 deletions website/help/ca/help.html
Original file line number Diff line number Diff line change
Expand Up @@ -380,10 +380,8 @@
<a id="morehelp"></a>
<div class="rozdzial">Need more help?</div>

<p>To get more help on GeoKrety visit the forums:</p>
<ul>
<li><a href="https://forum.opencaching.pl/viewforum.php?f=11">forum opencaching.pl (Polish, English)</a></li>
<li><a href="https://www.geoclub.de/viewforum.php?f=102">GeoClub (German)</a></li>
</ul>
<p>To get more help on GeoKrety <a href="https://geokrety.org/kontakt.php">contact us</a> or visit the forums:</p>

#GK_SOCIAL_GROUPS#

<!-- tresc -->
8 changes: 3 additions & 5 deletions website/help/cs/help.html
Original file line number Diff line number Diff line change
Expand Up @@ -380,10 +380,8 @@
<a id="morehelp"></a>
<div class="rozdzial">Need more help?</div>

<p>To get more help on GeoKrety visit the forums:</p>
<ul>
<li><a href="https://forum.opencaching.pl/viewforum.php?f=11">forum opencaching.pl (Polish, English)</a></li>
<li><a href="https://www.geoclub.de/viewforum.php?f=102">GeoClub (German)</a></li>
</ul>
<p>To get more help on GeoKrety <a href="https://geokrety.org/kontakt.php">contact us</a> or visit the forums:</p>

#GK_SOCIAL_GROUPS#

<!-- tresc -->
8 changes: 3 additions & 5 deletions website/help/cz/help.html
Original file line number Diff line number Diff line change
Expand Up @@ -334,10 +334,8 @@

<a id="morehelp"></a><div class="rozdzial">Potřebujete další pomoc?</div>

<p>Chcete-li získat další pomoc na GeoKrety navštívit fóra:</p>
<ul>
<li><a href="http://forum.opencaching.pl/viewforum.php?f=11">Fórum opencaching.pl (polsky, anglicky)</a></li>
<li><a href="http://www.geoclub.de/viewforum.php?f=102">GeoClub (německy)</a></li>
</ul>
<p>Chcete-li získat další pomoc na GeoKrety, <a href="https://geokrety.org/kontakt.php">kontaktujte nás</a>a> nebo navštivte fóra:</p>

#GK_SOCIAL_GROUPS#

</body></html>
8 changes: 3 additions & 5 deletions website/help/da/help.html
Original file line number Diff line number Diff line change
Expand Up @@ -380,10 +380,8 @@
<a id="morehelp"></a>
<div class="rozdzial">Need more help?</div>

<p>To get more help on GeoKrety visit the forums:</p>
<ul>
<li><a href="https://forum.opencaching.pl/viewforum.php?f=11">forum opencaching.pl (Polish, English)</a></li>
<li><a href="https://www.geoclub.de/viewforum.php?f=102">GeoClub (German)</a></li>
</ul>
<p>To get more help on GeoKrety <a href="https://geokrety.org/kontakt.php">contact us</a> or visit the forums:</p>

#GK_SOCIAL_GROUPS#

<!-- tresc -->
8 changes: 3 additions & 5 deletions website/help/de/help.html
Original file line number Diff line number Diff line change
Expand Up @@ -368,10 +368,8 @@
<a id="morehelp"></a>
<div class="rozdzial">Benötigst du weitere Hilfe?</div>

<p>Für mehr Hilfe für GeoKrety besuche die Foren:</p>
<ul>
<li><a href="https://forum.opencaching.pl/viewforum.php?f=11">Forum opencaching.pl (Polnisch, Englisch)</a></li>
<li><a href="https://www.geoclub.de/viewforum.php?f=102">GeoClub (Deutsch)</a></li>
</ul>
<p>Für weitere Hilfe mit GeoKrety, <a href="https://geokrety.org/kontakt.php">kontaktieren Sie uns</a> oder besuchen Sie die Foren:</p>

#GK_SOCIAL_GROUPS#

<!-- tresc -->
8 changes: 3 additions & 5 deletions website/help/el/help.html
Original file line number Diff line number Diff line change
Expand Up @@ -380,10 +380,8 @@
<a id="morehelp"></a>
<div class="rozdzial">Need more help?</div>

<p>To get more help on GeoKrety visit the forums:</p>
<ul>
<li><a href="https://forum.opencaching.pl/viewforum.php?f=11">forum opencaching.pl (Polish, English)</a></li>
<li><a href="https://www.geoclub.de/viewforum.php?f=102">GeoClub (German)</a></li>
</ul>
<p>To get more help on GeoKrety <a href="https://geokrety.org/kontakt.php">contact us</a> or visit the forums:</p>

#GK_SOCIAL_GROUPS#

<!-- tresc -->
8 changes: 3 additions & 5 deletions website/help/en/help.html
Original file line number Diff line number Diff line change
Expand Up @@ -380,10 +380,8 @@
<a id="morehelp"></a>
<div class="rozdzial">Need more help?</div>

<p>To get more help on GeoKrety visit the forums:</p>
<ul>
<li><a href="https://forum.opencaching.pl/viewforum.php?f=11">forum opencaching.pl (Polish, English)</a></li>
<li><a href="https://www.geoclub.de/viewforum.php?f=102">GeoClub (German)</a></li>
</ul>
<p>To get more help on GeoKrety <a href="https://geokrety.org/kontakt.php">contact us</a> or visit the forums:</p>

#GK_SOCIAL_GROUPS#

<!-- tresc -->
8 changes: 3 additions & 5 deletions website/help/es/help.html
Original file line number Diff line number Diff line change
Expand Up @@ -380,10 +380,8 @@
<a id="morehelp"></a>
<div class="rozdzial">Need more help?</div>

<p>To get more help on GeoKrety visit the forums:</p>
<ul>
<li><a href="https://forum.opencaching.pl/viewforum.php?f=11">forum opencaching.pl (Polish, English)</a></li>
<li><a href="https://www.geoclub.de/viewforum.php?f=102">GeoClub (German)</a></li>
</ul>
<p>To get more help on GeoKrety <a href="https://geokrety.org/kontakt.php">contact us</a> or visit the forums:</p>

#GK_SOCIAL_GROUPS#

<!-- tresc -->
8 changes: 3 additions & 5 deletions website/help/et/help.html
Original file line number Diff line number Diff line change
Expand Up @@ -380,10 +380,8 @@
<a id="morehelp"></a>
<div class="rozdzial">Need more help?</div>

<p>To get more help on GeoKrety visit the forums:</p>
<ul>
<li><a href="https://forum.opencaching.pl/viewforum.php?f=11">forum opencaching.pl (Polish, English)</a></li>
<li><a href="https://www.geoclub.de/viewforum.php?f=102">GeoClub (German)</a></li>
</ul>
<p>To get more help on GeoKrety <a href="https://geokrety.org/kontakt.php">contact us</a> or visit the forums:</p>

#GK_SOCIAL_GROUPS#

<!-- tresc -->
8 changes: 3 additions & 5 deletions website/help/fi/help.html
Original file line number Diff line number Diff line change
Expand Up @@ -380,10 +380,8 @@
<a id="morehelp"></a>
<div class="rozdzial">Need more help?</div>

<p>To get more help on GeoKrety visit the forums:</p>
<ul>
<li><a href="https://forum.opencaching.pl/viewforum.php?f=11">forum opencaching.pl (Polish, English)</a></li>
<li><a href="https://www.geoclub.de/viewforum.php?f=102">GeoClub (German)</a></li>
</ul>
<p>To get more help on GeoKrety <a href="https://geokrety.org/kontakt.php">contact us</a> or visit the forums:</p>

#GK_SOCIAL_GROUPS#

<!-- tresc -->
8 changes: 3 additions & 5 deletions website/help/fr/help.html
Original file line number Diff line number Diff line change
Expand Up @@ -369,10 +369,8 @@
<a id="morehelp"></a>
<div class="rozdzial">Besoin d'aide supplémentaire ?</div>

<p>Pour plus d'information sur GeoKrety.org, consultez ces forums :</p>
<ul>
<li><a href="https://forum.opencaching.pl/viewforum.php?f=11">Forum opencaching.pl (Anglais, Polonais)</a></li>
<li><a href="https://www.geoclub.de/viewforum.php?f=102">GeoClub (Allemand)</a></li>
</ul>
<p>Pour plus d'information sur GeoKrety.org, <a href="https://geokrety.org/kontakt.php">contactez-nous</a> ou consultez ces forums :</p>

#GK_SOCIAL_GROUPS#

<!-- tresc -->
8 changes: 3 additions & 5 deletions website/help/hu/help.html
Original file line number Diff line number Diff line change
Expand Up @@ -380,10 +380,8 @@
<a id="morehelp"></a>
<div class="rozdzial">Need more help?</div>

<p>To get more help on GeoKrety visit the forums:</p>
<ul>
<li><a href="https://forum.opencaching.pl/viewforum.php?f=11">forum opencaching.pl (Polish, English)</a></li>
<li><a href="https://www.geoclub.de/viewforum.php?f=102">GeoClub (German)</a></li>
</ul>
<p>To get more help on GeoKrety <a href="https://geokrety.org/kontakt.php">contact us</a> or visit the forums:</p>

#GK_SOCIAL_GROUPS#

<!-- tresc -->
8 changes: 3 additions & 5 deletions website/help/id/help.html
Original file line number Diff line number Diff line change
Expand Up @@ -380,10 +380,8 @@
<a id="morehelp"></a>
<div class="rozdzial">Need more help?</div>

<p>To get more help on GeoKrety visit the forums:</p>
<ul>
<li><a href="https://forum.opencaching.pl/viewforum.php?f=11">forum opencaching.pl (Polish, English)</a></li>
<li><a href="https://www.geoclub.de/viewforum.php?f=102">GeoClub (German)</a></li>
</ul>
<p>To get more help on GeoKrety <a href="https://geokrety.org/kontakt.php">contact us</a> or visit the forums:</p>

#GK_SOCIAL_GROUPS#

<!-- tresc -->
8 changes: 3 additions & 5 deletions website/help/it/help.html
Original file line number Diff line number Diff line change
Expand Up @@ -380,10 +380,8 @@
<a id="morehelp"></a>
<div class="rozdzial">Need more help?</div>

<p>To get more help on GeoKrety visit the forums:</p>
<ul>
<li><a href="https://forum.opencaching.pl/viewforum.php?f=11">forum opencaching.pl (Polish, English)</a></li>
<li><a href="https://www.geoclub.de/viewforum.php?f=102">GeoClub (German)</a></li>
</ul>
<p>To get more help on GeoKrety <a href="https://geokrety.org/kontakt.php">contact us</a> or visit the forums:</p>

#GK_SOCIAL_GROUPS#

<!-- tresc -->
8 changes: 3 additions & 5 deletions website/help/lt/help.html
Original file line number Diff line number Diff line change
Expand Up @@ -380,10 +380,8 @@
<a id="morehelp"></a>
<div class="rozdzial">Need more help?</div>

<p>To get more help on GeoKrety visit the forums:</p>
<ul>
<li><a href="https://forum.opencaching.pl/viewforum.php?f=11">forum opencaching.pl (Polish, English)</a></li>
<li><a href="https://www.geoclub.de/viewforum.php?f=102">GeoClub (German)</a></li>
</ul>
<p>To get more help on GeoKrety <a href="https://geokrety.org/kontakt.php">contact us</a> or visit the forums:</p>

#GK_SOCIAL_GROUPS#

<!-- tresc -->
8 changes: 3 additions & 5 deletions website/help/lv/help.html
Original file line number Diff line number Diff line change
Expand Up @@ -380,10 +380,8 @@
<a id="morehelp"></a>
<div class="rozdzial">Need more help?</div>

<p>To get more help on GeoKrety visit the forums:</p>
<ul>
<li><a href="https://forum.opencaching.pl/viewforum.php?f=11">forum opencaching.pl (Polish, English)</a></li>
<li><a href="https://www.geoclub.de/viewforum.php?f=102">GeoClub (German)</a></li>
</ul>
<p>To get more help on GeoKrety <a href="https://geokrety.org/kontakt.php">contact us</a> or visit the forums:</p>

#GK_SOCIAL_GROUPS#

<!-- tresc -->
8 changes: 3 additions & 5 deletions website/help/nl/help.html
Original file line number Diff line number Diff line change
Expand Up @@ -380,10 +380,8 @@
<a id="morehelp"></a>
<div class="rozdzial">Meer hulp nodig?</div>

<p>To get more help on GeoKrety visit the forums:</p>
<ul>
<li><a href="https://forum.opencaching.pl/viewforum.php?f=11">forum opencaching.pl (Polish, English)</a></li>
<li><a href="https://www.geoclub.de/viewforum.php?f=102">GeoClub (German)</a></li>
</ul>
<p>To get more help on GeoKrety <a href="https://geokrety.org/kontakt.php">contact us</a> or visit the forums:</p>

#GK_SOCIAL_GROUPS#

<!-- tresc -->
8 changes: 3 additions & 5 deletions website/help/no/help.html
Original file line number Diff line number Diff line change
Expand Up @@ -380,10 +380,8 @@
<a id="morehelp"></a>
<div class="rozdzial">Need more help?</div>

<p>To get more help on GeoKrety visit the forums:</p>
<ul>
<li><a href="https://forum.opencaching.pl/viewforum.php?f=11">forum opencaching.pl (Polish, English)</a></li>
<li><a href="https://www.geoclub.de/viewforum.php?f=102">GeoClub (German)</a></li>
</ul>
<p>To get more help on GeoKrety <a href="https://geokrety.org/kontakt.php">contact us</a> or visit the forums:</p>

#GK_SOCIAL_GROUPS#

<!-- tresc -->
8 changes: 3 additions & 5 deletions website/help/pl/help.html
Original file line number Diff line number Diff line change
Expand Up @@ -380,10 +380,8 @@
<a id="morehelp"></a>
<div class="rozdzial">Need more help?</div>

<p>To get more help on GeoKrety visit the forums:</p>
<ul>
<li><a href="https://forum.opencaching.pl/viewforum.php?f=11">forum opencaching.pl (Polish, English)</a></li>
<li><a href="https://www.geoclub.de/viewforum.php?f=102">GeoClub (German)</a></li>
</ul>
<p>To get more help on GeoKrety <a href="https://geokrety.org/kontakt.php">contact us</a> or visit the forums:</p>

#GK_SOCIAL_GROUPS#

<!-- tresc -->
8 changes: 3 additions & 5 deletions website/help/pt/help.html
Original file line number Diff line number Diff line change
Expand Up @@ -380,10 +380,8 @@
<a id="morehelp"></a>
<div class="rozdzial">Need more help?</div>

<p>To get more help on GeoKrety visit the forums:</p>
<ul>
<li><a href="https://forum.opencaching.pl/viewforum.php?f=11">forum opencaching.pl (Polish, English)</a></li>
<li><a href="https://www.geoclub.de/viewforum.php?f=102">GeoClub (German)</a></li>
</ul>
<p>To get more help on GeoKrety <a href="https://geokrety.org/kontakt.php">contact us</a> or visit the forums:</p>

#GK_SOCIAL_GROUPS#

<!-- tresc -->
Loading