Kodovi i slike

WordPress tema

 

 

Postavite u svaku datoteku priložene kôdove:

 

 

404.php

 

<?php get_header(); ?>

<div class="post">

<h3 style="text-align:center">Nije pronađeno! <a href="/<?php bloginfo('url'); ?>">Povratak?</a></h3>

</div>

<?php get_footer(); ?>

 

 

archive.php

 

<?php get_header(); ?>                   

<?php get_sidebar(); ?>   

<div id="main">

 

<h2 class="entry-title"><?php the_title() ?></h2>

<?php the_content() ?>

id="archives-page">

id="category-archives">

 

<h3>Archiva po kategorijama</h3>

<?php wp_list_categories('optioncount=1&title_li=&show_count=1') ?>

id="monthly-archives">

 

<h3>Archiva po mjesecu</h3>

<?php wp_get_archives('type=monthly&show_post_count=1') ?>       

 

</div>

<?php get_footer(); ?>

 

 

comments.php

 

<?php

                if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME']))

                               die ("Please don't do that.");

 

                if (!empty($post->post_password)) {

                               if ($_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) {

                                               ?>

 

                                               <p class="nocomments">Ovaj post je zaštićen lozinkom. Unesite lozinku da biste vidjeli komentare.</p>

 

                                               <?php

                                               return;

                               }

                }

 

                $oddcomment = 'class="alt" ';

?>

 

<?php if ($comments) : ?>

                <h3 id="comments"><?php comments_number('Nema odgovora', 'Jedan odgovor', '% odgovora' );?> za &#8220;<?php the_title(); ?>&#8221;</h3>

 

                <ol id="comments">

 

                <?php foreach ($comments as $comment) : ?>

 

                               <li id="comment-<?php comment_ID() ?>" <?php if ($i % 2) echo "class='alt'"; ?>>

                <span class="gravatar"><?php echo get_avatar( $comment, 60 ); ?></span>

                <?php comment_text() ?>

                <p><cite><?php comment_type(); ?><?php _e('od'); ?><?php comment_author_link() ?>

<?php comment_date() ?> u <a href="#comment-<?php comment_ID() ?>"><?php comment_time() ?></a></cite>

<span><?php echo $i; ?></span>

<?php edit_comment_link(__("Uredi"), ' | '); ?></p>

                </li><br /><br />

 

                <?php

 

                               $oddcomment = ( empty( $oddcomment ) ) ? 'class="alt" ' : '';

                ?>

 

                <?php endforeach;?>

 

                </ol>

 

<?php else :?>

 

                <?php if ('open' == $post->comment_status) : ?>

 

                               <?php else : // komentari su zatvoreni ?>

                               <p class="nocomments">Komentari su zatvoreni.</p>

 

                <?php endif; ?>

<?php endif; ?>

 

 

<?php if ('open' == $post->comment_status) : ?>

 

<h3 id="respond">ODGOVORI</h3>

 

<?php if ( get_option('comment_registration') && !$user_ID ) : ?>

<p>Morate biti <a href="/<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php echo urlencode(get_permalink()); ?>">logirani</a> za postavljanje komentara.</p>

<?php else : ?>

 

<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform" style="text-align:justify">

 

<?php if ( $user_ID ) : ?>

 

<p style="text-align:justify;">Logirani kao <a href="/<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="/<?php echo get_option('siteurl'); ?>/wp-login.php?action=logout" title="Log out of this account">Log out &raquo;</a></p>

 

<?php else : ?>

 

<table cellpadding="1" cellspacing="1" border="0" width="50%">

<tr>

<td><input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" <?php if ($req) echo "aria-required='true'"; ?> />

<label for="author"><small>Ime <?php if ($req) echo "(obavezno)"; ?></small></label></td></tr>

 

<tr>

<td>

<input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" <?php if ($req) echo "aria-required='true'"; ?> />

<label for="email"><small>Mail (neće biti objavljen) <?php if ($req) echo "(obavezno)"; ?></small></label></td></tr>

 

 

<tr><td>

<input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" />

<label for="url"><small>Website</small></label>

</td></tr></table>

 

<?php endif; ?>

 

<table width="50%" cellpadding="1" cellspacing="1" border="0" style="text-align:justify;">

<tr><td>

<textarea name="comment" id="comment" cols="100%" rows="10" tabindex="4"></textarea></td></tr>

<tr>

<td align="right">

<input name="submit" type="submit" id="submit" tabindex="5" value="Pošalji komentar" />

<input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />

</td></tr></table>

<?php do_action('comment_form', $post->ID); ?>

 

</form

 

<?php endif; ?>

 

<?php endif; ?>

 

 

footer.php

 

</td>

<td width="30%" valign="top">

<?php get_sidebar(); ?>

</td></tr>

</td>

</table>

</center>

<br /><br />

<div id="footer">

<br />

PONOSNO POKREĆE <a href="http://wordpress.org"> WORDPRESS <?php bloginfo('version'); ?></a>

<br /><br />

 

</body>

</html>

 

 

 

functions.php

 

<?php

if ( function_exists('register_sidebar') )

                register_sidebar(array(

       'before_widget' => '<li id="%1$s" class="widget %2$s">',

       'after_widget' => '</li>',

       'before_title' => '<h3>',

       'after_title' => '</h3>',

   ));

?>

 

 

 

header.php

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

 

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title><?php bloginfo('name'); ?>: <?php bloginfo('description'); ?></title>

<link href="/<?php bloginfo('stylesheet_url'); ?>" rel="stylesheet" type="text/css" media="screen" />

<!--<link href="/<?php bloginfo('template_directory'); ?>/light.css" rel="stylesheet" type="text/css" media="screen" /> -->

<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="/<?php bloginfo('rss2_url'); ?>" />

<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="/<?php bloginfo('rss2_url'); ?>" />

<link rel="alternate" type="text/xml" title="RSS .92" href="/<?php bloginfo('rss_url'); ?>" />

<link rel="alternate" type="application/atom+xml" title="Atom 1.0" href="/<?php bloginfo('atom_url'); ?>" />

<link rel="pingback" href="/<?php bloginfo('pingback_url'); ?>" />

<?php wp_get_archives('type=monthly&format=link'); ?>

<?php //comments_popup_script(); // off by default ?>

</head>

 

<body>

<center>

<div id="wrap">

<h1><a href="/<?php bloginfo('url'); ?>"><?php bloginfo('name'); ?></a></h1>

<h4><?php bloginfo('description'); ?></h4>

<div id="nav">

<ul class="nav">

<li><a href="/<?php bloginfo('url'); ?>">Početna stranica</a></li>

<?php wp_list_pages('title_li=' . __('') . '' ); ?>

</ul>

</div>

</div>

<br clear="all" />

<table width="955" cellpadding="0" cellspacing="1" border="0">

<tr>

<td width="70%" valign="top">

 

 

index.php

 

<?php get_header(); ?>

<div id="main">

<?php if (have_posts()) : while (have_posts()) : the_post(); ?>

<div class="post">

<h2 id="post-<?php the_ID(); ?>"><a href="/<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>

<div class="main">

                <?php the_content('<br /> Više...?'); ?>

</div><br />

<p class="meta">Objavio <?php the_author() ?>, <?php the_time('j. n. Y'); ?><?php _e("u"); ?><?php the_time('H:i:s'); ?>. <?php the_tags('Tags: ', ', ', ''); ?> | <a href="/<?php comments_link(); ?>"><?php comments_number('Nema komentara','1 komentar','% komentara'); ?></a> | <?php edit_post_link('Uredi'); ?></p>

 

</div>

 

<?php if ( comments_open() ) comments_template(); ?>

 

<?php endwhile; else: ?>

<div class="warning">

                <p>Žao mi je, ali tražite nešto čega ovdje nema.</p>

</div>

<?php endif; ?>

 

<div class="navigation_group">

                <div class="alignleft"><?php next_posts_link('&laquo; Older Entries') ?></div>

                <div class="alignright"><?php previous_posts_link('Newer Entries &raquo;') ?></div>

</div>

</div>

<?php get_footer(); ?>

 

 

sidebar.php

 

<div id="sidebar">

<h3>Arhiva</h3>

<ul>

<?php wp_get_archives('type=monthly'); ?>

</ul>

 

<h3>Kategorije</h3>

<ul>

<?php wp_list_cats(); ?>

</ul>     

 

<h3>Meta</h3>

<ul>

<li><a href="/<?php bloginfo('wpurl'); ?>/wp-admin/">Admin stranice</a></li>

<li><?php wp_loginout(); ?></li>

<li><a href="feed:<?php bloginfo('rss2_url'); ?>" title="<?php _e('Sindiciraj ovu stranicu koristeći RSS'); ?>">RSS unosa</a></li>

<li><a href="feed:<?php bloginfo('comments_rss2_url'); ?>" title="<?php _e('Najnoviji komentari na sve postove u RSS'); ?>">RSS komentara</a></li>

<li><a href="#content" title="Povratak na vrh">Povratak</a></li>

<?php wp_meta(); ?>

</ul>

 

<?php if (function_exists('wp_theme_switcher')) { ?>

<h3>Themes</h3>

<div class="themes">

<?php wp_theme_switcher(); ?>

</div>

<?php } ?>

</div>

 

 

 

 

 

style.css

 

/*

Theme Name: ict4scf

Version: 1.0

Description: Jednostavna tema

Author: <a href="http://inf.com.hr">inf.com.hr</a>

Author URI: http://inf.com.hr/

Tags: sivo crna, dvije kolone, jednostavna...

by inf.com.hr

*/

 

 

body{

background-image: url('images/logo.png');

background-repeat: no-repeat;

background-position:50% 20px;

background-color:#ddd;

color:#0e2c15;

font-family:Verdana, Arial, Helvetica, sans-serif;

font-size:12px;

padding-top:12px;

 

}

 

a{

color:#0e2c15;

text-decoration:none;

}

 

a:hover{

color:#5a5aa2;

text-decoration:none;

}

 

blockquote {

margin:0 0 0 0;

padding:0 0 0 10px;

border-left:#777 1px solid;

}

 

cite{

font-size:inherit;

font-style:normal;

}

 

 

 

/* Headers */

 

h1{

margin-left:30px;

font-size:40px;

color:#bbb;

font-family:Helvetica, sans-serif;

text-align:left;

}

 

h1 a{

color:#ed1c24;

text-decoration:none;

text-align:left;

}

 

h2{

font-size:20px;

margin:5px 0 7px 0;

text-align:justify;

}

 

h2 a{

color:#191818;

text-decoration:none;

}

 

h2 a:hover{

color:#e01a1a;

}

 

h3{

text-align:justify;

font-size:12px;

color:#808080;

}

 

h4{

text-align:center;

margin:0 0 19px 30px;

font-size:12px;

text-align:left;

color:#6e6ed3;

}

 

 

 

/* Blog Contents */

 

#wrap{

width:955px;

height:150px;

margin:0px;

padding:0px;

position:relative;

}

 

 

 

/* Navigation */

 

#nav{

padding:3px;

}

 

ul.nav{

width:955px;

list-style:none;

}

 

ul.nav li {

display:inline;

}

 

ul.nav li a {

display:inline;

padding:17px 4px 17px 4px;

width:90px;

color:#999;

text-align:center;

font-family:Helvetica;

font-size:11px;

text-transform:uppercase;

text-decoration:none;

}

 

ul.nav li a:hover {

background-color:#d6d612;

color:#191818;

text-decoration:none;

}

 

 

 

/* Posts */

 

#main{

float:left;

width:800px;

}

 

.post{

padding:25px;

text-align:justify;

}

 

.main{

text-align:justify;

border-bottom:1px solid #bbb;

}

 

.main p{

line-height:18px;

margin:0 0 15px 0;

}

 

.main ol{

line-height:18px;

margin:0 0 15px 30px;

}

 

.main ul{

line-height:18px;

margin:0 0 15px 30px;

}

 

.main li{

margin:0 0 5px 0;

}

 

.main img{

padding:3px;

border:1px solid #fff;

}

 

.main img:hover{

padding:3px;

border:1px solid #444;

}

 

img.wp-smiley{

padding:0px;

border:0px;

}

 

img.wp-smiley:hover{

padding:0px;

border:0px;

}

 

img.post-ratings-image{

border:0px;

}

 

.meta{

font-size:10px;

line-height:15px;

display:inline;

color:#319d4a;

padding:5px 10px;

margin:0 0 30px 0;

}

 

.navigation{

font-size:11px;

}

 

 

 

/* Comments */

 

.gravatar{

float:left;

padding-right:4px;

}

 

.alt{

color:#777;

}

 

ol#comments{

text-align:justify;

}

 

 

 

/* Forms */

 

input, textarea, select, button{

background-color:#edecec;

border:1px solid #bbb;

color:#319d4a;

padding:2px;

margin:3px 0 5px 0;

font-size:13px;

font-family:Verdana, Arial, Helvetica, sans-serif;

}

 

 

 

/* Footer */

 

#footer{

background-color:#191818;

border-bottom:2px solid #ed1c24;

font-size:9px;

text-align:center;

color:#bbb;

width:955px;

margin-right: auto;

margin-left: auto;

}

 

#footer a{

color:#319d4a;

}

 

#footer a:hover{

color:#fff;

}

 

 

 

/* Others */

 

.aligncenter,

div.aligncenter {

   display: block;

   margin-left: auto;

   margin-right: auto;

}

 

.alignleft {

   float: left;

}

 

.alignright {

   float: right;

}

 

.wp-caption {

   border: 1px solid #ddd;

   text-align: center;

   background-color: #f3f3f3;

   padding-top: 4px;

   margin: 10px;

   /* opcije */

   -moz-border-radius: 3px;

   -khtml-border-radius: 3px;

   -webkit-border-radius: 3px;

   border-radius: 3px;

}

 

.wp-caption img {

   margin: 0;

   padding: 0;

   border: 0 none;

}

 

.wp-caption p.wp-caption-text {

   font-size: 11px;

   line-height: 17px;

   padding: 0 4px 5px;

   margin: 0;

}