Commit 2e4a0dc9 authored by agata's avatar agata

rimosso tema greentrack

parent 56e4f6ed
<?php get_header(); ?>
<div id="content">
<div class="post">
<p class="post-title"><em>Category Archive</em><?php echo single_cat_title(); ?></p>
<br/><br/>
</div>
<?php if ($posts) : foreach ($posts as $post) : start_wp(); ?>
<div class="post">
<p class="post-title"><em><?php the_category(' &amp;');?> <?php edit_post_link('[edit this]'); ?></em><?php the_time('d M Y h:i a'); ?></p>
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></a></h2>
<div class="post-content">
<?php the_content("<br/> Continue Reading &#187;"); ?>
<p class="post-info-co">
<?php wp_link_pages(); ?>
</p>
<!--
<?php trackback_rdf(); ?>
-->
</div>
<p class="post-footer"><?php comments_popup_link(__('No Comments Yet'), __('Comments (1)'), __('Comments (%)')); ?></p>
<?php comments_template(); // Get wp-comments.php template ?>
</div>
<?php endforeach; else: ?>
<p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
<?php endif; ?>
<p align="center"><?php posts_nav_link() ?></p>
</div>
<?php get_sidebar() ;?>
<?php get_footer(); ?>
\ No newline at end of file
<?php // Do not delete these lines
if ('comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
die ('Please do not load this page directly. Thanks!');
if (!empty($post->post_password)) { // if there's a password
if ($_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) { // and it doesn't match the cookie
?>
<p class="nocomments"><?php _e("This post is password protected. Enter the password to view comments."); ?><p>
<?php
return;
}
}
/* This variable is for alternating comment background */
$oddcomment = 'alt';
?>
<!-- You can start editing here. -->
<?php if ($comments) : ?>
<h3 id="comments"><?php comments_number('No Responses', 'One Response', '% Responses' );?> to &#8220;<?php the_title(); ?>&#8221;</h3>
<ol class="commentlist">
<?php $commentcounter = 0; ?>
<?php foreach ($comments as $comment) : ?>
<?php $commentcounter++; ?>
<li class="<?php echo $oddcomment; ?>">
<p class="cmtinfo" id="comment-<?php comment_ID() ?>"><em>on <?php comment_date('d M Y') ?> at <?php comment_time() ?> <a href="#comment-<?php comment_ID() ?>" title=""></a> <?php edit_comment_link('edit','',''); ?></em><cite><span class="commentnum"><?php echo $commentcounter; ?>.</span><?php comment_author_link() ?></cite> said &#8230;</p>
<?php if ($comment->comment_approved == '0') : ?>
<em>Your comment is awaiting moderation.</em>
<br />
<?php endif; ?>
<p><?php comment_text() ?></p>
</li>
<?php /* Changes every other comment to a different class */
if ('alt' == $oddcomment) $oddcomment = '';
else $oddcomment = 'alt';
?>
<?php endforeach; /* end for each comment */ ?>
</ol>
<?php else : // this is displayed if there are no comments so far ?>
<?php if ('open' == $post-> comment_status) : ?>
<!-- If comments are open, but there are no comments. -->
<?php else : // comments are closed ?>
<!-- If comments are closed. -->
<p class="nocomments">Comments are closed.</p>
<?php endif; ?>
<?php endif; ?>
<div class="post-content">
<p>
<?php if ($post->ping_status == "open") { ?>
<a href="<?php trackback_url(display); ?>">Trackback This Post</a> |
<?php } ?>
<?php if ($post-> comment_status == "open") {?>
<?php comments_rss_link('Subscribe to the comments through RSS Feed'); ?>
<?php }; ?>
</p>
</div>
<?php if ('open' == $post-> comment_status) : ?>
<h3 id="respond">Leave a Reply</h3>
<?php if ( get_option('comment_registration') && !$user_ID ) : ?>
<p>You must be <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php the_permalink(); ?>">logged in</a> to post a comment.</p>
<?php else : ?>
<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
<?php if ( $user_ID ) : ?>
<p>Logged in as <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="<?php _e('Log out of this account') ?>">Logout &raquo;</a></p>
<?php else : ?>
<p><input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" />
<label for="author"><small>Name <?php if ($req) _e('(required)'); ?></small></label></p>
<p><input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" />
<label for="email"><small>Mail (will not be published) <?php if ($req) _e('(required)'); ?></small></label></p>
<p><input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" />
<label for="url"><small>Website</small></label></p>
<?php endif; ?>
<!--<p><small><strong>XHTML:</strong> You can use these tags: <?php echo allowed_tags(); ?></small></p>-->
<p><textarea name="comment" id="comment" cols="100%" rows="10" tabindex="4"></textarea></p>
<p><input name="submit" type="submit" id="submit" tabindex="5" value="Submit Comment" />
<input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
</p>
<?php do_action('comment_form', $post->ID); ?>
</form>
<?php endif; // If registration required and not logged in ?>
<?php endif; // if you delete this the sky will fall on your head ?>
\ No newline at end of file
<?php
/*
Template Name: Contact
*/
?>
<?php get_header(); ?>
<div id="main">
<div id="content">
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="post">
<?php
//validate email adress
function is_valid_email($email)
{
return (eregi ("^([a-z0-9_]|\\-|\\.)+@(([a-z0-9_]|\\-)+\\.)+[a-z]{2,4}$", $email));
}
//clean up text
function clean($text)
{
return stripslashes($text);
}
//encode special chars (in name and subject)
function encodeMailHeader ($string, $charset = 'UTF-8')
{
return sprintf ('=?%s?B?%s?=', strtoupper ($charset),base64_encode ($string));
}
$ssc_name = (!empty($_POST['ssc_name'])) ? $_POST['ssc_name'] : "";
$ssc_email = (!empty($_POST['ssc_email'])) ? $_POST['ssc_email'] : "";
$ssc_url = (!empty($_POST['ssc_url'])) ? $_POST['ssc_url'] : "";
$ssc_message = (!empty($_POST['ssc_message'])) ? $_POST['ssc_message'] : "";
$ssc_message = clean($ssc_message);
$error_msg = "";
$send = 0;
if (!empty($_POST['submit'])) {
$send = 1;
if (empty($ssc_name) || empty($ssc_email) || empty($ssc_message)) {
$error_msg.= "<p><strong>Please fill in all required fields.</strong></p>\n";
$send = 0;
}
if (!is_valid_email($ssc_email)) {
$error_msg.= "<p><strong>Your email adress failed to validate.</strong></p>\n";
$send = 0;
}
}
if (!$send) { ?>
<h2 class="post-info">
<?php the_title(); ?>
</h2>
<p class="post-footer">
Created by <?php the_author(); ?> on <?php the_time('d M y'); ?> <?php edit_post_link(); ?>
</p>
<div class="post-content">
<?php
the_content();
echo $error_msg;
?>
<form method="post" action="<?php echo "http://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; ?>" id="contactform">
<fieldset>
<strong>Name</strong><br/>
<input type="text" id="ssc_name" name="ssc_name" value="<?php echo $ssc_name ;?>" /><br/>
<strong>Email</strong><br/>
<input type="text" id="ssc_email" name="ssc_email" value="<?php echo $ssc_email ;?>" /><br/>
<strong>Website</strong><br/>
<input type="text" id="ssc_url" name="ssc_url" value="<?php echo $ssc_url ;?>" /><br/>
<strong>Message</strong><br/>
<textarea id="ssc_message" name="ssc_message" value="<?php echo $ssc_message ;?>"></textarea><br/>
<input type="submit" id="submit" name="submit" value="Send Message" />
</fieldset>
</form>
</div>
<?php
} else {
$displayName_array = explode(" ",$ssc_name);
$displayName = htmlentities(utf8_decode($displayName_array[0]));
$header = "MIME-Version: 1.0\n";
$header .= "Content-Type: text/plain; charset=\"utf-8\"\n";
$header .= "From:" . encodeMailHeader($ssc_name) . "<" . $ssc_email . ">\n";
$email_subject = "[" . get_settings('blogname') . "] " . encodeMailHeader($ssc_name);
$email_text = "From......: " . $ssc_name . "\n" .
"Email.....: " . $ssc_email . "\n" .
"Url.......: " . $ssc_url . "\n\n" .
$ssc_message;
if (@mail(get_settings('admin_email'), $email_subject, $email_text, $header)) {
echo "<h2>Hey " . $displayName . ",</h2><p>thanks for your message! I'll get back to you as soon as possible.</p>";
}
}
?>
<?php endwhile; ?>
</div>
<?php endif; ?>
</div>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
\ No newline at end of file
<?php get_header(); ?>
<div id="content">
<div class="post">
<?php if ($posts) { ?>
<?php $post = $posts[0]; /* Hack. Set $post so that the_date() works. */ ?>
<?php if (is_day()) { ?>
<p class="post-title"><em>Daily Archive</em><?php the_time('l, F jS, Y'); ?></p>
<?php } elseif (is_month()) { ?>
<p class="post-title"><em>Monthly Archive</em><?php the_time('F Y'); ?></p>
<?php } elseif (is_year()) { ?>
<p class="post-title"><em>Yearly Archive</em><?php the_time('Y'); ?></p>
<?php } ?>
<?php } ?>
<br/><br/>
</div>
<?php if ($posts) : foreach ($posts as $post) : start_wp(); ?>
<div class="post">
<p class="post-title"><em><?php the_category(' &amp;');?> <?php edit_post_link('[edit this]'); ?></em><?php the_time('d M Y h:i a'); ?></p>
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></a></h2>
<div class="post-content">
<?php the_content("<br/> Continue Reading &#187;"); ?>
<p class="post-info-co">
<?php wp_link_pages(); ?>
</p>
<!--
<?php trackback_rdf(); ?>
-->
</div>
<p class="post-footer"><?php comments_popup_link(__('No Comments Yet'), __('Comments (1)'), __('Comments (%)')); ?></p>
<?php comments_template(); // Get wp-comments.php template ?>
</div>
<?php endforeach; else: ?>
<p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
<?php endif; ?>
<p align="center"><?php posts_nav_link() ?></p>
</div>
<?php get_sidebar() ;?>
<?php get_footer(); ?>
\ No newline at end of file
<hr />
<?php //please keep the link back to the author ?>
<p id="footer">
<a title="WPThemes.Info" href="http://wpthemes.info/green-track/">GreenTrack</a> Theme made free by <a href="http://www.webhostingbluebook.com/">Web Hosting Bluebook</a></p>
<?php
/*
Gets the number of posts and comments so we can display it in the sidebar
*/
$numposts = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->posts WHERE post_status = 'publish'");
if (0 < $numposts) $numposts = number_format($numposts);
$numcmnts = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->comments WHERE comment_approved = '1'");
if (0 < $numcmnts) $numcmnts = number_format($numcmnts);
/*
Description: Returns a list of the most recent posts.
Created by Sadish for his GreenTrack Theme
*/
function gt_get_recent_posts($no_posts = 5, $before = '<li>', $after = '</li>', $show_pass_post = false) {
global $wpdb, $tableposts;
$time_difference = get_settings('gmt_offset');
$now = gmdate("Y-m-d H:i:s",(time()+($time_difference*3600)));
$request = "SELECT ID, post_title, post_excerpt FROM $tableposts WHERE post_status = 'publish' ";
if(!$show_pass_post) $request .= "AND post_password ='' ";
$request .= "AND post_date < '$now' ORDER BY post_date DESC LIMIT 0, $no_posts";
$posts = $wpdb->get_results($request);
$output = '';
foreach ($posts as $post) {
$post_title = stripslashes($post->post_title);
$permalink = get_permalink($post->ID);
$output .= $before . '<a href="' . $permalink . '" rel="bookmark" title="Permanent Link: ' . $post_title . '">' . $post_title . '</a>';
$output .= $after;
}
echo $output;
}
/*
Description: Returns a list of the most recent comments.
Created by Sadish for his GreenTrack Theme
*/
function gt_get_recent_comments($no_comments = 5, $comment_num_of_words = 4, $before = '<li>', $after = '</li>')
{
global $wpdb, $tablecomments, $tableposts;
$request = "SELECT ID, comment_ID, comment_content, comment_author FROM $tableposts, $tablecomments WHERE $tableposts.ID=$tablecomments.comment_post_ID AND post_status = 'publish' ";
$request .= "AND comment_approved = '1' ORDER BY $tablecomments.comment_date DESC LIMIT $no_comments";
$comments = $wpdb->get_results($request);
$output = '';
if($comments) {
foreach ($comments as $comment)
{
$comment_author = stripslashes($comment->comment_author);
$comment_content = strip_tags($comment->comment_content);
$comment_content = stripslashes($comment_content);
$words=split(" ",$comment_content);
$comment_excerpt = join(" ",array_slice($words,0,$comment_num_of_words));
$permalink = get_permalink($comment->ID)."#comment-".$comment->comment_ID;
$output .= $before . '<strong>' . $comment_author . '</strong>: <a href="' . $permalink;
$output .= '" title="'.__('Comment by','c4m').' ' . $comment_author.'">' . $comment_excerpt . '...</a>' . $after;
}
}
echo $output;
echo '<br/>'."\n";
}
?>
\ No newline at end of file
<!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 profile="http://gmpg.org/xfn/1">
<title><?php bloginfo('name'); ?><?php wp_title(); ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=<?php bloginfo('charset'); ?>" />
<meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats please -->
<style type="text/css" media="screen">
@import url( <?php bloginfo('stylesheet_url'); ?> );
</style>
<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 0.3" 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 ?>
<?php
// Load functions for active theme.
if ( file_exists(TEMPLATEPATH . "/functions.php") )
include_once(TEMPLATEPATH . "/functions.php");
?>
<?php wp_head(); ?>
</head>
<body>
<div id="rap">
<ul id="gnav">
<li <?php if(is_home()){echo 'class="current_page_item"';}?>><a href="<?php bloginfo('siteurl'); ?>" title="Home">Home</a></li>
<?php wp_list_pages('title_li=&depth=1&'.$page_sort)?>
</ul>
<div id="header">
<h1><a href="<?php bloginfo('url'); ?>" title="<?php bloginfo('name'); ?>"><?php bloginfo('name'); ?></a></h1>
</div>
<?php get_header(); ?>
<div id="content">
<?php if ($posts) : foreach ($posts as $post) : start_wp(); ?>
<div class="post">
<p class="post-title"><em><?php the_category(' &amp;');?> <?php edit_post_link('[edit this]'); ?></em><?php the_time('d M Y h:i a'); ?></p>
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></a></h2>
<div class="post-content">
<?php the_content("<br/> Continue Reading &#187;"); ?>
<p class="post-info-co">
<?php wp_link_pages(); ?>
</p>
<!--
<?php trackback_rdf(); ?>
-->
</div>
<p class="post-footer"><?php comments_popup_link(__('No Comments Yet'), __('Comments (1)'), __('Comments (%)')); ?></p>
<?php comments_template(); // Get wp-comments.php template ?>
</div>
<?php endforeach; else: ?>
<p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
<?php endif; ?>
<p align="center"><?php posts_nav_link() ?></p>
</div>
<?php get_sidebar() ;?>
<?php get_footer(); ?>
\ No newline at end of file
<?php
/*
Template Name: Archives
*/
?>
<?php get_header(); ?>
<div id="main">
<div id="content">
<h2>Archives</h2>
<h2>Latest 15 Posts</h2>
<ul><?php gt_get_recent_posts(15);?></ul>
<h2>Search</h2>
<form id="searchform" method="get" action="<?php bloginfo('siteurl') ?>/index.php">
<input type="text" name="s" id="s" value="<?php echo wp_specialchars($s, 1); ?>" size="15" />
<input id="btnSearch" type="submit" name="submit" value="<?php _e('Search'); ?>" />
</form>
<h2>Monthly</h2>
<ul>
<?php wp_get_archives('type=monthly&show_post_count=1'); ?>
</ul>
<h2>Categories</h2>
<ul>
<?php wp_list_cats('sort_column=name&optioncount=1&hierarchical=0'); ?>
</ul>
</div>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
\ No newline at end of file
<?php get_header(); ?>
<div id="content">
<?php if ($posts) : foreach ($posts as $post) : start_wp(); ?>
<div class="post">
<p class="post-title"><em> <?php edit_post_link('[edit this]'); ?></em><?php the_time('d M Y h:i a'); ?></p>
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></a></h2>
<div class="post-content">
<?php the_content("<br/> Continue Reading &#187;"); ?>
<p class="post-info-co">
<?php wp_link_pages(); ?>
</p>
<!--
<?php trackback_rdf(); ?>
-->
</div>
<p class="post-footer"><?php comments_popup_link(__('No Comments Yet'), __('Comments (1)'), __('Comments (%)')); ?></p>
<?php comments_template(); // Get wp-comments.php template ?>
</div>
<?php endforeach; else: ?>
<p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
<?php endif; ?>
<p align="center"><?php posts_nav_link() ?></p>
</div>
<?php get_sidebar() ;?>
<?php get_footer(); ?>
\ No newline at end of file
<div class="post-title"><em><?php the_category('&amp;');?></em><?php the_time('d M Y h:i a'); ?></div>
<p class="post-info"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></a><?php edit_post_link('e'); ?></p>
<div class="post-content">
<?php the_content(); ?>
<p class="post-info-co">
<?php wp_link_pages(); ?>
</p>
<!--
<?php trackback_rdf(); ?>
-->
</div>
<div class="post-footer"><?php comments_popup_link(__('No Comments Yet'), __('Comments (1)'), __('Comments (%)')); ?></div>
\ No newline at end of file
<!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>
<title>ShadedGrey From WPThemes.Info</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css" media="screen">
@import url( style.css ); </style>
</head>
<body>
<div id="rap">
<div id="header"><h1><a href="http://wpthemes.Info">ShadedGrey From WPThemes.Info</a></h1>
</div>
<div id="main">
<div id="content">
<div class="post">
<h2 class="post-title"><em><a href="#">ShadedGrey : Install it !</a></em>Saturday,
Feb 25 2006</span></h2>
<p class="post-info">
<small>Downloadable Theme From WPThemes.info</small>
</p>
<div class="post-content">
<p>This is the version 2.0 of the 'ShadedGrey' theme.<br />
Available at <a href="http://wpthemes.info/shaded-grey/">http://wpthemes.info/shaded-grey/</a></p>
<p>Please follow the steps as in the sidebar of this page, but if you would need
more assistance, send en email to me at reachme @ wpthemes.info</p>
<p>Thanks.
</p>
<div class="post-footer">Sadish Balasubramanian From <a href="http://wpthemes.info">WPThemes.Info</a></div>
</div>
</div>
</div>
</div>
<div id="sidebar">
<h2>Step 1:</h2>
<ul>
<li>
Unzip the contents of the zip.</li></ul>
<h2>Step 2:</h2>
<ul>
<li>
copy the whole folder into your wordpress's wp-content/themes/ folder</li></ul>
<h2>Step 3:</h2>
<ul>
<li>
Go to the Presentation area of your WordPress Admin and Select the 'ShadedGrey'</li></ul>
<h2>Step 4:</h2>
<ul>
<li>
Thats all !!!</li>
<li>
Go Ahead and Click on View Site at the top!!!</li></ul>
</div>
<p id="footer">
Designed by <a title="WPThemes.Info" href="http://wpthemes.info">
WPThemes.Info</a> | Powered By <a href="http://wordpress.org" title="WordPress">WordPress</a></p>
</div>
</body>
</html>
<?php get_header(); ?>
<div id="content">
<?php if ($posts) { ?>
<div class="post">
<p class="post-title"><em>Search Results</em>For "<?php echo $s; ?>"</p>
<br/><br/>
</div>
<?php } ?>
<?php if ($posts) : foreach ($posts as $post) : start_wp(); ?>
<div class="post">
<p class="post-title"><em><?php the_category(' &amp;');?> <?php edit_post_link('[edit this]'); ?></em><?php the_time('d M Y h:i a'); ?></p>
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></a></h2>
<div class="post-content">
<?php the_content("<br/> Continue Reading &#187;"); ?>
<p class="post-info-co">
<?php wp_link_pages(); ?>
</p>
<!--
<?php trackback_rdf(); ?>
-->
</div>
<p class="post-footer"><?php comments_popup_link(__('No Comments Yet'), __('Comments (1)'), __('Comments (%)')); ?></p>
<?php comments_template(); // Get wp-comments.php template ?>
</div>
<?php endforeach; else: ?>
<p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
<?php endif; ?>
<p align="center"><?php posts_nav_link() ?></p>
</div>
<?php get_sidebar() ;?>
<?php get_footer(); ?>
\ No newline at end of file
<div id="sidebar">
<h2><?php _e('About'); ?></h2>
<ul><li id="about"><?php bloginfo('description'); ?><p>There are <?php global $numposts; echo $numposts ;?> posts and <?php global $numcmnts; echo $numcmnts ;?> comments so far.</p></li></ul>
<?php if (!is_home()) {?>
<h2><?php _e('Recent Posts'); ?></h2>
<ul><?php gt_get_recent_posts(6);?></ul>
<?php }?>
<h2><?php _e('Pages'); ?></h2>
<ul><?php wp_list_pages('title_li=