This repository has been archived by the owner on Oct 19, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 127
/
page-contributors.php
64 lines (59 loc) · 3.46 KB
/
page-contributors.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<head>
<link href="<?php echo get_template_directory_uri(); ?>/assets/css/pages/contributors.css" rel="stylesheet">
</head>
<section class="hero-section second-menu">
<div class="background contributors-background">
<div class="container">
<div class="col-md-6 topheader">
<h1><?php echo $l->t('Get to know us');?></h1>
<h2><?php echo $l->t('The international community of Nextcloud Contributors.');?></h2>
</div>
</div>
</div>
</section>
<section class="section--contributors">
<div class="container">
<blockquote class="text-center"><?php echo $l->t('An open source project is its contributors');?></blockquote>
<p class="section--paragraph"><?php echo $l->t('Over 1000 people have code in Nextcloud. About a 10th of those have direct access to the code in our repository, contributing regularly. Besides coders, there are designers, Nextcloud advocates, translators, forum admins and many others who are part of our community. Below you see a random selection of our awesome members.');?></p>
<p class="section--paragraph"><?php echo $l->t('If you want to be listed just <a class="hyperlink" href="https://github.com/orgs/nextcloud/people">set yourself as public in our GitHub organization.</a> If you want to take part in our community, learn more about the different');?> <a class="hyperlink" href="<?php echo home_url('contribute') ?>"><?php echo $l->t('ways to contribute.</a>');?></p>
<div class="row">
<div class="col-md-4">
<script type='text/javascript' src='https://www.openhub.net/p/nextcloud/widgets/project_factoids_stats?format=js'></script>
</div>
</div>
</div>
</div>
<div class="wrap container contributorgroup">
<h1 class="section--heading-1">100x awesome</h1>
<?php
if(CONTRIBOOK) {
require(dirname(__FILE__).'/../../../contribook/main/contribook/lib_contribook.php');
$users = CONTRIBOOK_USER::getusers();
$forbiddenUsers = ['Nextcloud', 'nextcloud-bot'];
shuffle($users);
echo('<div class="row">');
foreach($users as $user) {
$data = CONTRIBOOK_USER::getuser($user);
$image_src = CONTRIBOOK_PHOTO_URL.blogger_200.png;
if(in_array($data['userid'], $forbiddenUsers, true)) { continue; }
echo('<div class="col-sm-4 col-md-3 col-lg-2 contributor-area"><div class="contribshowhide">');
if($data['picture_200'] !== ''){
$image_src = CONTRIBOOK_PHOTO_URL.$data['picture_200'];
// echo('<span class="bloguserpicture"><img src="'.CONTRIBOOK_PHOTO_URL.$_['picture_200'].'" border="1" /></span>');
} elseif($data['githubId']) {
$image_src = 'https://avatars2.githubusercontent.com/u/'.$data['githubId'].'?v=3&s=200';
// echo('<span class="bloguserpicture"><img src="https://avatars2.githubusercontent.com/u/'.$_['githubId'].'?v=3&s=200" border="1" /></span>');
}
echo('<a href="/user/?user='.$user.'"><div class="contribimg"><span class="contribook_microbloguserpicture"><img class="img-responsive img-circle" src="'.$image_src.'" border="0" /></span></div></a>');
echo('<a href="/user/?user='.$user.'"><div class="contribtext">'.$data['name'].'</a></div>');
echo('</div></div>');
}
echo('</div>');
}
?>
</div>
</section>
<div class="calltoaction">
<h1 class="section--heading-2 section--text--center"><?php echo $l->t('Let\'s make Nextcloud Rock!');?></h1>
<p class="section--paragraph section--text--center"><a class="hyperlink" href="<?php echo home_url('contribute') ?>"><?php echo $l->t('You can get involved, too.</a>');?></p>
</div>