This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* DEFINE CONSTANTS | |
========================================== */ | |
define('THEME_DIR', get_stylesheet_directory_uri() ); | |
define('THEME_IMAGES_DIR', THEME_DIR . '/assets/img' ); | |
/* REGISTER MENUS | |
========================================== */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Theme Name: | |
Theme URI: | |
Description: | |
Version: 1.0 | |
Author: | |
Author URI: | |
License: | |
License URI: | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html <?php language_attributes(); ?>> | |
<head> | |
<meta charset="<?php bloginfo('charset'); ?>"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
<title><?php wp_title('|', true, 'right'); ?><?php bloginfo('name'); ?></title> | |
<meta name="description" content="<?php bloginfo('description'); ?>"> | |
<meta name="author" content=""> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if(have_posts()) : ?> | |
<?php while(have_posts()) : the_post(); // start the loop ?> | |
<?php get_template_part('partials/content', get_post_format()); ?> | |
<?php endwhile; // end the loop ?> | |
<?php else : ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- get_search_form() --> | |
<form method="get" action="<?php home_url(); ?>"> | |
<input type="text" name="s" id="s" placeholder="search"> | |
<input type="submit" value="search"> | |
</form> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Prevent the direct loading of the file | |
// ======================================== | |
if(!empty($_SERVER['SCRIPT-FILENAME']) && basename($_SERVER['SCRIPT-FILENAME']) == 'comments.php') | |
{ | |
die('You cannot access this file directly'); | |
} | |
?> | |
<!-- Check if post is pwd protected |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if(have_posts()) : ?> | |
<?php while(have_posts()) : the_post(); ?> | |
<article class="clearfix"> | |
<header> | |
<h1><?php the_title(); ?></h1> | |
<?php if( current_user_can('edit_post', $post->ID)) : ?> | |
<?php edit_post_link('Edit This', '<p class="article-meta-extra">','</p>'); ?> | |
<?php endif; ?> | |
</header> |
OlderNewer