/home/i/infotu5k/en.tutmee.ru/public_html/wp-content/themes/tutmee-business/service.php
* Time: 10:30
*/
use Sau\WP\Theme\Extension\Twig\SauTwig;
$data = [];
while ( have_posts() ):the_post();
$data[ 'page' ] = get_post();
$data[ 'list' ] = carbon_get_post_meta( get_the_ID(), 'list' );
$services = carbon_get_post_meta( carbon_get_theme_option( 'services' ), 'services' ) ?: [];
foreach ( $services as $key => $service ) {
if ( $service[ 'id' ] == get_the_ID() ) {
if ( $prev = $services[ $key - 1 ][ 'id' ] ) {
$data[ 'footer_nav' ][ 'prev' ][ 'url' ] = get_permalink( $prev );
$data[ 'footer_nav' ][ 'prev' ][ 'title' ] = get_the_title( $prev );
}
if ( $next = $services[ $key + 1 ][ 'id' ] ) {
$data[ 'footer_nav' ][ 'next' ][ 'url' ] = get_permalink( $next );
$data[ 'footer_nav' ][ 'next' ][ 'title' ] = get_the_title( $next );
}
break;
}
}
SauTwig::display( '@template/service.twig', $data );
endwhile;
/home/i/infotu5k/en.tutmee.ru/public_html/wp-content/themes/tutmee-business/service.php
* Time: 10:30
*/
use Sau\WP\Theme\Extension\Twig\SauTwig;
$data = [];
while ( have_posts() ):the_post();
$data[ 'page' ] = get_post();
$data[ 'list' ] = carbon_get_post_meta( get_the_ID(), 'list' );
$services = carbon_get_post_meta( carbon_get_theme_option( 'services' ), 'services' ) ?: [];
foreach ( $services as $key => $service ) {
if ( $service[ 'id' ] == get_the_ID() ) {
if ( $prev = $services[ $key - 1 ][ 'id' ] ) {
$data[ 'footer_nav' ][ 'prev' ][ 'url' ] = get_permalink( $prev );
$data[ 'footer_nav' ][ 'prev' ][ 'title' ] = get_the_title( $prev );
}
if ( $next = $services[ $key + 1 ][ 'id' ] ) {
$data[ 'footer_nav' ][ 'next' ][ 'url' ] = get_permalink( $next );
$data[ 'footer_nav' ][ 'next' ][ 'title' ] = get_the_title( $next );
}
break;
}
}
SauTwig::display( '@template/service.twig', $data );
endwhile;
/home/i/infotu5k/en.tutmee.ru/public_html/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/i/infotu5k/en.tutmee.ru/public_html/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/i/infotu5k/en.tutmee.ru/public_html/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';