forked from nextcloud/nextcloud.com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
page-blog.php
95 lines (89 loc) · 3.4 KB
/
page-blog.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<!-- This is the posts page. or *probably* not. Check also index.php! -->
<head>
<link href="<?php echo get_template_directory_uri(); ?>/assets/css/pages/blogroll.css?v=11" rel="stylesheet">
<link rel="alternate" type="application/rss+xml" href="/blogfeed" title="What is going on in and around Nextcloud?">
<!--<script>
require(["require.config"], function() {
require(["modules/youtubePlayer", "modules/submenu"])
});
</script>-->
</head>
<div class="background blogroll-background">
<div class="container">
<div class="row">
<div class="col-md-6 topheader">
<h1><?php echo $l->t('<span class="avoidwrap">Nextcloud News</span>');?><a href="/blogfeed" class="rss-button"><img style="vertical-align: top;" width=35 class="img-circle" src="<?php echo get_template_directory_uri(); ?>/assets/img/social/rss.png"></img></a></h1>
<h2><?php echo $l->t('What is going on in and around Nextcloud?');?></h2>
</div>
</div>
</div>
</div>
<section class="section--blogroll">
<div class="container">
<div class="row">
<div class="text-center">
<?php get_search_form(); ?>
</div>
</div>
<?php if (!have_posts()) : ?>
<div class="alert alert-warning">
<?php _e('Sorry, no results were found.', 'roots'); ?>
</div>
<?php endif; ?>
<div class="row">
<?php $i = 1; ?>
<?php while (have_posts()) : the_post(); ?>
<?php if ($i % 3 == 0) { ?> <!-- for every three posts we have to put in a row... -->
<div class="col-md-4">
<?php get_template_part('templates/content', get_post_format()); ?>
</div>
</div>
<div class="row">
<?php } else { ?> <!-- no row needed... -->
<div class="col-md-4">
<?php get_template_part('templates/content', get_post_format()); ?>
</div>
<?php } ?>
<?php $i++; ?>
<?php endwhile; ?>
</div>
<?php if ($wp_query->max_num_pages > 1) : ?>
<nav class="post-nav">
<ul class="pager">
<li class="previous"><?php next_posts_link(__('← Older posts', 'roots')); ?></li>
<li class="next"><?php previous_posts_link(__('Newer posts →', 'roots')); ?></li>
</ul>
</nav>
<?php endif; ?>
</div>
</section>
<!-- old grid -->
<!--<section class="section--grid">
<div class="container">
<?php // echo do_shortcode("[post_grid id='3635']"); ?>
</div>
</section>-->
<section class="section--newsletter">
<div class="container-fluid quote">
<h2 class="text-center"><?php echo $l->t('Subscribe to our newsletter');?></h2>
<p class="section--paragraph section--text--center"><?php echo $l->t('Want to be sure to never miss anything? Subscribe to our newsletter!');?></p>
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="row text-center">
<a href="https://newsletter.nextcloud.com/?p=subscribe&id=1" class="button button--arrow button--large"><?php echo $l->t('Subscribe now');?></a>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- This is the blog list. -->
<head>
<link href="<?php echo get_template_directory_uri(); ?>/assets/css/pages/blogroll.css" rel="stylesheet">
<!--<script>
require(["require.config"], function() {
require(["modules/youtubePlayer", "modules/submenu"])
});
</script>-->
</head>