Commit 1d048e26 authored by agata's avatar agata

rimosso tema connections-reloaded

parent f20d8389
<?php
global $options;
foreach ($options as $value) {
if (get_settings( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_settings( $value['id'] ); }
}
?>
<?php get_header()?>
<div id="main">
<div id="content">
<h2 class="center"><?php _e('Error 404 - Not Found') ?></h2>
<p><?php _e('The page you are looking for cannot be found on this site. You can use the search box to the left to find the page or go to the ') ?><a href="<?php bloginfo('url'); ?>"><?php _e('home page') ?></a>.</p>
</div>
<div id="sidebar">
<?php get_sidebar(); ?>
</div>
<?php get_footer();?>
html,body,div,ul,ol,li,dl,dt,dd,h1,h2,h3,h4,h5,h6,pre,form,p,blockquote,fieldset,input,hr
{
margin:0;
padding:0;
}
pre,code,address,caption,cite,code,em,strong,th
{
font-size:1em;
font-weight:400;
font-style:normal;
}
fieldset,img,hr
{
border:none;
}
caption,th
{
text-align:left;
}
table
{
border-collapse:collapse;
border-spacing:0;
}
td
{
vertical-align:top;
}
input
{
padding:3px 5px;
}
.description
{
font-family:Arial, sans-serif;
font-size:10px;
color:#444;
display:block;
padding:2px 0;
}
.textarea,.text,.checkbox
{
background:#eee;
border-bottom:1px solid #ddd;
margin:0 0 5px;
padding:0 0 5px;
}
.textarea textarea
{
height:150px;
overflow:scroll;
margin-bottom:10px;
}
.cb
{
float:left;
margin:8px 10px;
}
span.title,.title
{
font-family:Arial, sans-serif;
font-size:12px;
font-weight:700;
color:#444;
display:block;
padding:5px 0;
}
#header-wrap
{
width:940px;
}
#options-div
{
width:570px;
overflow:hidden;
display:block;
float:left;
margin:0;
padding:10px;
}
#side
{
width:300px;
min-height:440px;
margin-left:610px;
padding:10px;
}
#side .side-widget
{
background:#FFF;
border:solid 1px #DDD;
margin-bottom:10px;
border-width:0 1px 1px;
}
.side-widget span.title
{
background: #E6EADB;
border: #E1D6C6 1px solid;
border-bottom: #F3F6ED 0px solid;
color: #676E04;
font-size: 1em;
font-weight: bold;
height: 22px;
padding: 2px;
text-align: center;
}
.side-widget p
{
padding:10px;
}
.side-widget ul
{
margin:10px 5px 5px;
}
.side-widget ul li
{
list-style:square;
padding-bottom:3px;
margin-left:20px;
}
.side-widget span.rss-date
{
color:#999;
font:normal normal 10px/12px Georgia, "Times New Roman", Times, serif;
}
.open
{
background:#eee;
border:solid #ddd;
overflow:hidden;
display:block;
border-width:0 1px;
margin:0;
padding:10px;
}
.open input.width
{
width:400px;
}
.misc
{
background:#fffde2;
border:1px solid #ddd;
overflow:hidden;
display:block;
margin:0 0 30px;
padding:20px;
}
input.save
{
border: green 2px solid;
font-weight:bold;
font-size:1.2em;
margin: 0;
}
input.reset
{
border: red 2px solid;
font-weight:bold;
font-size:1.2em;
margin:-20px 0 0 0;
}
div.clear
{
clear:both;
}
#donate-form
{
background:#c9defa;
padding:10px;
text-align: center;
}
<?php
global $options;
foreach ($options as $value) {
if (get_settings( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_settings( $value['id'] ); }
}
?>
<?php get_header()?>
<div id="main">
<div id="content">
<!--- middle (posts) column content begin -->
<?php if (have_posts()) { ?>
<?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
<?php /* If this is a category archive */ if (is_category()) { ?>
<h2><?php _e('Archive for the '); echo single_cat_title(); _e(' Category'); ?></h2>
<div class="post-info"><?php _e('Category Archive'); ?></div>
<?php /* If this is a daily archive */ } elseif (is_day()) { ?>
<h2><?php _e('Archive for '); the_time('F jS, Y'); ?></h2>
<div class="post-info"><?php _e('Daily Archive'); ?></div>
<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
<h2><?php _e('Archive for '); the_time('F, Y'); ?></h2>
<div class="post-info"><?php _e('Monthly Archive'); ?></div>
<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
<h2><?php _e('Archive for '); the_time('Y'); ?></h2>
<div class="post-info"><?php _e('Yearly Archive'); ?></div>
<?php /* If this is a search */ } elseif (is_search()) { ?>
<h2><?php _e('Search Results'); ?></h2>
<?php /* If this is an author archive */ } elseif (is_author()) { ?>
<h2><?php _e('Author Archive'); ?></h2>
<?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
<h2><?php _e('Blog Archives'); ?></h2>
<?php } ?>
<div class="left"><?php posts_nav_link('','','&laquo; Previous Entries') ?></div>
<div class="right"><?php posts_nav_link('','Next Entries &raquo;','') ?></div>
<div class="clear"></div>
<?php while (have_posts()) { the_post(); ?>
<div class="post">
<?php require('post.php'); ?>
<?php comments_template(); // Get wp-comments.php template ?>
</div>
<?php } } else { ?>
<h2 class="center">Not Found</h2>
<p class="center"><?php _e("Sorry, but you are looking for something that isn't here."); ?></p>
<?php } ?>
<!--- middle (main content) column content end -->
</div>
<div id="sidebar">
<?php get_sidebar(); ?>
</div>
<?php get_footer();?>
<?php
/*
Template Name: Archives
*/
?>
<?php
global $options;
foreach ($options as $value) {
if (get_settings( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_settings( $value['id'] ); }
}
?>
<?php get_header()?>
<div id="main">
<div id="content">
<!--- middle (posts) column content begin -->
<?php if (have_posts()) { while (have_posts()) { the_post(); ?>
<div class="page">
<div class="page-info"><h2 class="page-title"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e('Permanent Link: '); the_title(); ?>"><?php the_title(); ?></a></h2>
<?php /*Posted by <?php the_author(); ?>*/ ?><?php edit_post_link('(edit this)'); ?>
</div>
<div class="page-content">
<h2><?php _e('Archives by Month:'); ?></h2>
<ul>
<?php wp_get_archives('type=monthly'); ?>
</ul>
<h2><?php _e('Archives by Subject:'); ?></h2>
<ul>
<?php wp_list_cats(); ?>
</ul>
</div>
</div>
<?php } } ?>
<!--- middle (main content) column content end -->
</div>
<div id="sidebar">
<?php get_sidebar(); ?>
</div>
<?php get_footer();?>
<?php
global $options;
foreach ($options as $value) {
if (get_settings( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_settings( $value['id'] ); }
}
?>
<?php get_header();?>
<div id="main">
<div id="content">
<?php if (have_posts()) { ?>
<h3><?php echo single_cat_title(); ?></h3>
<div class="post-info"><?php _e('Archived Posts from this Category'); ?></div>
<br />
<?php while (have_posts()) { the_post(); ?>
<div class="post">
<?php require('post.php'); ?>
<?php comments_template(); // Get wp-comments.php template ?>
</div>
<?php } ?>
<p class="center"><?php posts_nav_link() ?></p>
<?php } else { ?>
<p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
<?php } ?>
</div>
<div id="sidebar">
<?php get_sidebar(); ?>
</div>
<?php get_footer()?>
<?php
// Do not delete these lines
if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
die ('Please do not load this page directly. Thanks!');
if ( post_password_required() ) { ?>
<p class="nocomments"><?php _e('This post is password protected. Enter the password to view comments.'); ?></p>
<?php
return;
}
?>
<!-- You can start editing here. -->
<div class="boxcomments">
<h2 id="comments">
<?php comments_number('No Responses', 'One Response', '% Responses' );?>
<?php _e('to'); ?> &#8220; <?php the_title(); ?> &#8221;
</h2>
<?php
if (have_comments()) { ?>
<ol class="commentlist">
<?php wp_list_comments(array('avatar_size'=>40, 'type'=>'comment')); ?>
</ol>
<h3 id="pings"><?php _e('Trackbacks &amp; Pingbacks:') ?></h3>
<ol class="tblist">
<?php wp_list_comments('type=pings'); ?>
</ol>
<div class="navigation">
<div class="alignleft"><?php previous_comments_link() ?></div>
<div class="alignright"><?php next_comments_link() ?></div>
</div>
<?php } else { // this is displayed if there are no comments so far
if ('open' == $post->comment_status) { ?>
<!-- If comments are open, but there are no comments. -->
<!-- I don't see the point of this bit but have left it here just incase! -->
<?php } else { // comments are closed ?>
<!-- If comments are closed. -->
<p id="comments-closed"><?php _e('Sorry, comments for this entry are closed at this time.') ?></p>
<?php }
}
?>
<?php if ('open' == $post->comment_status) { ?>
<div id="respond">
<?php if (get_option('comment_registration') && !$user_ID ) { ?>
<p id="comments-blocked"><?php _e('You must be') ?> <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=
<?php echo urlencode(get_permalink()); ?>"><?php _e('logged in') ?></a> <?php _e('to post a comment.') ?></p>
<?php } else { ?>
<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
<fieldset><legend><?php comment_form_title( 'Leave a Comment', 'Leave a Reply to %s' ); ?></legend>
<p><?php cancel_comment_reply_link() ?></p>
<?php if ($user_ID) { ?>
<p><?php _e('You are logged in as') ?> <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php">
<?php echo $user_identity; ?></a>. <?php _e('To logout') ?>, <a href="<?php echo wp_logout_url(get_permalink()); ?>" title="<?php _e('Log out of this account') ?>"><?php _e('click here') ?></a>.
</p>
<?php } else { ?>
<p><label for="author"><?php _e('Name'); if ($req) _e(' (required)'); ?></label>
<input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" /></p>
<p><label for="email"><?php _e('Mail (will not be published)'); if ($req) _e(' (required)'); ?></label>
<input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" /></p>
<p><label for="url"><?php _e('Website'); ?></label>
<input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" /></p>
<?php } ?>
<p><label for="comment"><?php _e('Your Comment'); ?></label>
<textarea name="comment" id="comment" cols="5" rows="10"></textarea></p>
<p><input name="submit" type="submit" id="submit" value="<?php _e('Submit Comment'); ?>" />
<?php comment_id_fields(); ?>
</p>
</fieldset>
<div><?php do_action('comment_form', $post->ID); ?></div>
</form>
</div><!-- end #respond -->
<?php
} // If registration required and not logged in
}
?>
</div><!-- end boxcomments -->
\ No newline at end of file
<?php
global $options;
foreach ($options as $value) {
if (get_settings( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_settings( $value['id'] ); }
}
?>
<div id="footer">
<p><small>
<a href="<?php bloginfo('url'); ?>" title="<?php bloginfo('name'); ?>"><?php bloginfo('name'); ?></a>
<?php _e('is powered by') ?>
<a href="http://wordpress.org" title="Powered by WordPress <?php bloginfo('version'); ?>, state-of-the-art semantic personal publishing platform">WordPress <?php bloginfo('version'); ?></a>
<?php
_e(' and delivered to you in ');
timer_stop(1);
_e(' seconds using ');
echo $wpdb->num_queries;
_e(' queries.');
?>
<br />
Theme: <a href="http://ajaydsouza.com/wordpress/wpthemes/connections-reloaded/" title="Powered by Connections Reloaded">Connections Reloaded</a> <?php _e(' by ') ?> <a href="http://ajaydsouza.com" title="Visit Ajay's Blog">Ajay D'Souza</a>. <?php _e('Derived from ') ?> <a href="http://vanillamist.com/blog/" title="Connections Theme">Connections</a>.
</small></p>
<?php echo $conrel_footer_stuff; ?>
<?php wp_footer(); ?>
</div> <!-- End id="footer" -->
</div> <!-- End id="main" -->
</div> <!-- End id="rap" -->
</body>
</html>
<?php
$themecolors = array(
'bg' => 'F3F6ED',
'text' => '29303B',
'link' => '909D73',
);
// Custom Header
define('HEADER_TEXTCOLOR', 'B5C09D');
define('HEADER_IMAGE', '%s/img/train.jpg'); // %s is theme dir uri
define('HEADER_IMAGE_WIDTH', 741);
define('HEADER_IMAGE_HEIGHT', 142);
//define( 'NO_HEADER_TEXT', true );
function header_style() {
?>
<style type="text/css">
#headimg{
background:#fff url(<?php header_image() ?>) no-repeat bottom;
}
<?php if ( 'blank' == get_header_textcolor() ) { ?>
#headimg h1, #headimg #desc {
display: none;
}
<?php } else { ?>
#headimg h1 a, #desc {
color:#<?php header_textcolor() ?>;
}
<?php } ?>
</style>
<?php
}
function crev_admin_header_style() {
?>
<style type="text/css">
#headimg{
background:#fff url(<?php header_image() ?>) no-repeat bottom;
height: <?php echo HEADER_IMAGE_HEIGHT; ?>px;
width:<?php echo HEADER_IMAGE_WIDTH; ?>px;
padding:0;
}
#headimg h1{
margin: 0;
font-size: 1.6em;
padding:10px 20px 0 0;
text-align:right;
}
#headimg h1 a{
color:#<?php header_textcolor() ?>;
text-decoration:none;
}
#headimg #desc{
color:#<?php header_textcolor() ?>;
font-weight:normal;
font-style:italic;
font-size:1em;
text-align:right;
margin:0;
padding:0 20px 0 0;
}
<?php if ( 'blank' == get_header_textcolor() ) { ?>
#headimg h1, #headimg #desc {
display: none;
text-decoration:none;
}
#headimg h1 a, #headimg #desc {
color:#<?php echo HEADER_TEXTCOLOR ?>;
}
<?php } ?>
</style>
<?php
}
add_custom_image_header('header_style', 'crev_admin_header_style');
// Enable WordPress 2.9 Post Thumbnails feature
if ( function_exists( 'add_theme_support' ) ) {
add_theme_support( 'post-thumbnails' );
set_post_thumbnail_size( 150, 150 );
}
// Connections reloaded theme options page
require_once("theme-options.php");
?>
<?php
if ( function_exists('register_sidebar') )
register_sidebar(array(
'before_widget' => '<li id="%1$s" class="widget %2$s">',
'after_widget' => '</li></ul></li>',
'before_title' => '<h2>',
'after_title' => '</h2><ul><li>',
));
function widget_conrel_search() {
?>