/var
/www
/nlgrit-adekidero
/wordpress
/current
/content
/themes
/gritoptiek
/template-facebook.php
<?php
/**
* Template Name: Facebook
*
* @package maasfactor_boilerplate
*/
use function Maasfactor\Functions\get_field;
// Facebook Feed function
//page id
$page_id = 'gritoptiek';
//goto https://developers.facebook.com/ for app id and app secret
//then goto https://smashballoon.com/custom-facebook-feed/access-token/ at the bottom of the page convert app id and secret to access tokens
$access_token = '749150728588078|OiYhUr0N2dA0Qsstn8hQBhCsc4w';
$json_object = file_get_contents('https://graph.facebook.com/v2.6/' . $page_id . '/posts?fields=id,from{name,id},message,message_tags,story,story_tags,picture,full_picture,link,source,name,caption,description,type,status_type,object_id,created_time,attachments{subattachments},shares,likes,comments{id,from,message,message_tags,created_time,like_count,comment_count,attachment}&access_token=' . $access_token . '&limit=15&locale=en_US)');
$fbdata = json_decode($json_object);
get_header(); ?>
<header id="detail-header" style="background-image: url('<?php the_field('header_image_news', 'company_info'); ?>')">
<div class="container">
<div class="aligner">
<h1><span class="highlight"><?php the_field('header_title_news', 'company_info'); ?></span></h1>
</div>
</div>
</header>
<?php get_template_part( 'partials/block', 'breadcrumbs'); ?>
<div id="primary-filter">
<div class="container">
<!--<h2>Blijf op de hoogte</h2>-->
<?php wp_nav_menu(array(
'theme_location' => 'news-filter-menu',
'container' => false,
'menu_id' => 'news-filter-menu',
'menu_class' => 'menu'
/var
/www
/nlgrit-adekidero
/wordpress
/current
/content
/themes
/gritoptiek
/template-facebook.php
<?php
/**
* Template Name: Facebook
*
* @package maasfactor_boilerplate
*/
use function Maasfactor\Functions\get_field;
// Facebook Feed function
//page id
$page_id = 'gritoptiek';
//goto https://developers.facebook.com/ for app id and app secret
//then goto https://smashballoon.com/custom-facebook-feed/access-token/ at the bottom of the page convert app id and secret to access tokens
$access_token = '749150728588078|OiYhUr0N2dA0Qsstn8hQBhCsc4w';
$json_object = file_get_contents('https://graph.facebook.com/v2.6/' . $page_id . '/posts?fields=id,from{name,id},message,message_tags,story,story_tags,picture,full_picture,link,source,name,caption,description,type,status_type,object_id,created_time,attachments{subattachments},shares,likes,comments{id,from,message,message_tags,created_time,like_count,comment_count,attachment}&access_token=' . $access_token . '&limit=15&locale=en_US)');
$fbdata = json_decode($json_object);
get_header(); ?>
<header id="detail-header" style="background-image: url('<?php the_field('header_image_news', 'company_info'); ?>')">
<div class="container">
<div class="aligner">
<h1><span class="highlight"><?php the_field('header_title_news', 'company_info'); ?></span></h1>
</div>
</div>
</header>
<?php get_template_part( 'partials/block', 'breadcrumbs'); ?>
<div id="primary-filter">
<div class="container">
<!--<h2>Blijf op de hoogte</h2>-->
<?php wp_nav_menu(array(
'theme_location' => 'news-filter-menu',
'container' => false,
'menu_id' => 'news-filter-menu',
'menu_class' => 'menu'
/var
/www
/nlgrit-adekidero
/wordpress
/current
/wp
/wp-includes
/template-loader.php
elseif ( is_single() && $template = get_single_template() ) :
elseif ( is_page() && $template = get_page_template() ) :
elseif ( is_singular() && $template = get_singular_template() ) :
elseif ( is_category() && $template = get_category_template() ) :
elseif ( is_tag() && $template = get_tag_template() ) :
elseif ( is_author() && $template = get_author_template() ) :
elseif ( is_date() && $template = get_date_template() ) :
elseif ( is_archive() && $template = get_archive_template() ) :
else :
$template = get_index_template();
endif;
/**
* Filters the path of the current template before including it.
*
* @since 3.0.0
*
* @param string $template The path of the template to include.
*/
if ( $template = apply_filters( 'template_include', $template ) ) {
include( $template );
} elseif ( current_user_can( 'switch_themes' ) ) {
$theme = wp_get_theme();
if ( $theme->errors() ) {
wp_die( $theme->errors() );
}
}
return;
endif;
/var
/www
/nlgrit-adekidero
/wordpress
/current
/wp
/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( dirname( __FILE__ ) . '/wp-load.php' );
// Set up the WordPress query.
wp();
// Load the theme template.
require_once( ABSPATH . WPINC . '/template-loader.php' );
}
/var
/www
/nlgrit-adekidero
/wordpress
/current
/index.php
<?php
define('WP_USE_THEMES', true);
require('./wp/wp-blog-header.php');