﻿@CHARSET "UTF-8";
/*
	Theme Name: Imeto na temata
	Theme URI: http://domain.com
	Author: Chochev.EU
*/

//izhod na sidebar

<?php if(!dynamic_sidebar('right-sidebar')): ?>

<?php endif;?>

//do tuk

//izhod na menu
<?php 
				wp_nav_menu(array(
					'theme_location'  => 'top-menu',
					'menu'            => 'navigation',
					'container'       => 'nav',
					'container_id'    => 'main-nav',
					'container_class'    => '',
					'menu_class'      => 'nav1',
					'menu_id'         => 'idm',
					'echo'            => true,
					'fallback_cb'     => 'wp_page_menu',
					'before'          => '',
					'after'           => '',
					'link_before'     => '',
					'link_after'      => '',
					'items_wrap'      => '<ul class="%2$s">%3$s</ul>',
					'depth'           => 0,
					'walker'          => ''
				));
			?>

//do tuk

<?php bloginfo('name'); ?> <?php wp_title("",true); ?>
<?php bloginfo('template_directory'); ?>


//izhod na postove
<?php query_posts('showposts=8'); ?>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>

<?php 
         						 if ( has_post_thumbnail() ) { // check if the post has a Post Thumbnail assigned to it.
         						   the_post_thumbnail();
         						 } 
      							  ?>
<?php the_title(); ?>
<?php the_author(); ?>
<?php the_date('m dS, Y'); ?> | <?php comments_popup_link( 'Leave a Comment', '1 Comment', '% Comments' ); ?>
<?php echo get_the_content(); ?>
<?php echo the_content(); ?>

<?php comments_template('', true); ?>
					
					<?php 
						endwhile;
						endif;
					?>



<?php endwhile; endif; ?>

//do tuk

//function.php
register_sidebar(array(
	'name' => __( 'Right Sidebar' ),
	'id' => 'right-sidebar',
	'description' => __( 'Widgets in this area will be shown on the right-hand side.' ),
	'before_widget' => '<div class="sidebar">',
	'after_widget'  => '</div>',
	'before_title'  => '<div class="header"><h6><span class="widget-title">',
	'after_title'   => '</span></h6></div>'
));

register_nav_menu('top-menu', 'Menu Top');

add_theme_support( 'post-thumbnails' );

//do tuk

<?php wp_header(); ?>
<?php wp_footer(); ?>

<?php
	get_header();
?>

<?php
	get_footer();
?>