mirror of
https://github.com/nextcloud/nextcloud.com.git
synced 2026-01-12 15:44:37 +00:00
95 lines
3.3 KiB
PHP
95 lines
3.3 KiB
PHP
<!-- This is the posts page. Most likely. But if not... check also page-blog.php! -->
|
|
<head>
|
|
<link href="<?php echo get_template_directory_uri(); ?>/assets/css/pages/blogroll.css?v=11" rel="stylesheet">
|
|
<!--<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>
|