/home/user_15014/app_15014/wp-content/themes/skogens_mangbruk/template-parts/layout/news.php
<div class="psm-hero">
<div
class="psm-hero-inner has-height <?= $heroImage == NULL ? 'has-no-bg' : ''; ?>"
style="background-image: url('<?= $heroImage; ?>');"
>
<header class="psm-hero-header">
<h1 class="psm-hero-header-heading">
<?php the_title(); ?>
</h1>
</header>
</div>
</div>
<div class="psm-article">
<div class="psm-article-inner">
<article class="psm-article-content">
<?php if ($postRegistrationLink != ''): ?>
<a
href="<?= $postRegistrationLink; ?>"
class="psm-article-content-button psm-button is-primary"
>
Anmäl dig
</a>
<?php endif; ?>
<?php the_content(); ?>
<?php /*
<div class="psm-article-content-event-details">
<p>
<?php if(get_field('date')): ?>
Datum: <?php print get_field('date'); ?><br />
<?php endif; ?>
<?php if(get_field('location')): ?>
Plats: <?php print get_field('location'); ?><br />
<?php endif; ?>
<?php if(get_field('location')): ?>
<a href="<?php print get_field('link'); ?>">Läs mer</a><br />
<?php endif; ?>
</p>
/home/user_15014/app_15014/wp-content/themes/skogens_mangbruk/template-parts/layout/news.php
<div class="psm-hero">
<div
class="psm-hero-inner has-height <?= $heroImage == NULL ? 'has-no-bg' : ''; ?>"
style="background-image: url('<?= $heroImage; ?>');"
>
<header class="psm-hero-header">
<h1 class="psm-hero-header-heading">
<?php the_title(); ?>
</h1>
</header>
</div>
</div>
<div class="psm-article">
<div class="psm-article-inner">
<article class="psm-article-content">
<?php if ($postRegistrationLink != ''): ?>
<a
href="<?= $postRegistrationLink; ?>"
class="psm-article-content-button psm-button is-primary"
>
Anmäl dig
</a>
<?php endif; ?>
<?php the_content(); ?>
<?php /*
<div class="psm-article-content-event-details">
<p>
<?php if(get_field('date')): ?>
Datum: <?php print get_field('date'); ?><br />
<?php endif; ?>
<?php if(get_field('location')): ?>
Plats: <?php print get_field('location'); ?><br />
<?php endif; ?>
<?php if(get_field('location')): ?>
<a href="<?php print get_field('link'); ?>">Läs mer</a><br />
<?php endif; ?>
</p>
/home/user_15014/app_15014/wp-content/themes/skogens_mangbruk/single.php
<?php
/**
* The template for displaying all single posts
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
*
* @package WordPress
* @subpackage Well Hello
* @since 1.0
* @version 1.0
*/
require_once __DIR__ . '/template-parts/layout/news.php';
?>
/home/user_15014/app_15014/wp-includes/template-loader.php
}
break;
}
}
if ( ! $template ) {
$template = get_index_template();
}
/**
* Filters the path of the current template before including it.
*
* @since 3.0.0
*
* @param string $template The path of the template to include.
*/
$template = apply_filters( 'template_include', $template );
if ( $template ) {
include $template;
} elseif ( current_user_can( 'switch_themes' ) ) {
$theme = wp_get_theme();
if ( $theme->errors() ) {
wp_die( $theme->errors() );
}
}
return;
}
/home/user_15014/app_15014/wp-blog-header.php
<?php
/**
* Loads the WordPress environment and template.
*
* @package WordPress
*/
if ( ! isset( $wp_did_header ) ) {
$wp_did_header = true;
// Load the WordPress library.
require_once __DIR__ . '/wp-load.php';
// Set up the WordPress query.
wp();
// Load the theme template.
require_once ABSPATH . WPINC . '/template-loader.php';
}
/home/user_15014/app_15014/index.php
<?php
/**
* Front to the WordPress application. This file doesn't do anything, but loads
* wp-blog-header.php which does and tells WordPress to load the theme.
*
* @package WordPress
*/
/**
* Tells WordPress to load the WordPress theme and output it.
*
* @var bool
*/
define( 'WP_USE_THEMES', true );
/** Loads the WordPress Environment and Template */
require __DIR__ . '/wp-blog-header.php';