PHP Classes

File: tag.php

Recommend this page to a friend!
  Classes of Victor Andeloci   Project P Wordpress Podcast Theme   tag.php   Download  
File: tag.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Project P Wordpress Podcast Theme
Publish pages for a podcast in a WordPress site
Author: By
Last change:
Date: 11 months ago
Size: 701 bytes
 

Contents

Class file image Download
<?php
    get_header
();
   
$url = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http") . "://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
   
$tag = explode('/', substr($url, strpos($url, 'tag/') + 4))[0];
?>

<main id="tag">
    <div class="container">
        <?php get_template_part('parts/header_info'); ?>
<?php get_template_part('parts/banner_min', null, [
           
'tag' => $tag
       
]); ?>
<?php get_template_part('elements/nav'); ?>
<?php get_template_part('elements/category_selector'); ?>
<?php get_template_part('parts/last_posts', null, [
           
'tag' => $tag
       
]); ?>
</div>
</main>

<?php get_footer(); ?>