Commit de0ed60d authored by Klaus-Uwe Mitterer's avatar Klaus-Uwe Mitterer

Check in as is

parents
<div id="comments">
<?php if ( post_password_required() ) : ?>
<p class="nopassword"><?php _e( 'This post is password protected. Enter the password to view any comments.', 'austria' ); ?></p>
</div><!-- #comments -->
<?php
/* Stop the rest of comments.php from being processed,
* but don't kill the script entirely -- we still have
* to fully load the template.
*/
return;
endif;
?>
<?php // You can start editing here -- including this comment! ?>
<?php if ( have_comments() ) : ?>
<h2 id="comments-title">
<?php
printf( _n( 'One thought on %2$s', '%1$s thoughts on %2$s', get_comments_number(), 'austria' ),
number_format_i18n( get_comments_number() ), '<span>' . get_the_title() . '</span>' );
?>
</h2>
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?>
<nav id="comment-nav-above">
<h1 class="assistive-text"><?php _e( 'Comment navigation', 'austria' ); ?></h1>
<div class="nav-previous"><?php previous_comments_link( __( '&larr; Older Comments', 'austria' ) ); ?></div>
<div class="nav-next"><?php next_comments_link( __( 'Newer Comments &rarr;', 'austria' ) ); ?></div>
</nav>
<?php endif; // check for comment navigation ?>
<ol class="commentlist">
<?php
/* Loop through and list the comments. Tell wp_list_comments()
* to use austria_comment() to format the comments.
* If you want to overload this in a child theme then you can
* define austria_comment() and that will be used instead.
* See austria_comment() in austria/functions.php for more.
*/
wp_list_comments( array( 'callback' => 'austria_comment' ) );
?>
</ol>
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?>
<nav id="comment-nav-below">
<h1 class="assistive-text"><?php _e( 'Comment navigation', 'austria' ); ?></h1>
<div class="nav-previous"><?php previous_comments_link( __( '&larr; Older Comments', 'austria' ) ); ?></div>
<div class="nav-next"><?php next_comments_link( __( 'Newer Comments &rarr;', 'austria' ) ); ?></div>
</nav>
<?php endif; // check for comment navigation ?>
<?php
/* If there are no comments and comments are closed, let's leave a little note, shall we?
* But we don't want the note on pages or post types that do not support comments.
*/
elseif ( ! comments_open() && ! is_page() && post_type_supports( get_post_type(), 'comments' ) ) :
?>
<p class="nocomments"><?php _e( 'Comments are closed.', 'austria' ); ?></p>
<?php endif; ?>
<?php comment_form(); ?>
</div><!-- #comments -->
\ No newline at end of file
<br clear="all" />
<div class="clearall"></div>
</div><!-- end of right pagebody -->
</div><!-- end of wrapper -->
<div id="footer">
<?php wp_footer(); ?>
<div class="footerArea">
<div class="left-footer">
<?php wp_nav_menu( array('theme_location'=>'top','fallback_cb'=>'') ); ?>
</div>
<div class="right-footer">
<a href="<?php bloginfo('url'); ?>"><?php bloginfo('name'); ?></a>
</div>
<div class="clear"></div>
</div><!-- end of footerArea -->
</div>
</body>
</html>
<?php
if(!function_exists('austria_setup')) :
function austria_setup() {
// This theme styles the visual editor with editor-style.css to match the theme style.
add_editor_style();
// Post Format support. You can also use the legacy "gallery" or "asides" (note the plural) categories.
add_theme_support( 'post-formats', array( 'aside', 'gallery' ) );
// This theme uses post thumbnails
add_theme_support( 'post-thumbnails' );
// Add default posts and comments RSS feed links to head
add_theme_support( 'automatic-feed-links' );
// This theme uses wp_nav_menu() in one location.
register_nav_menus( array(
'header' => __( 'Header Navigation', 'austria' ),
) );
// This theme allows users to set a custom background
add_custom_background();
// Your changeable header business starts here
if ( ! defined( 'HEADER_TEXTCOLOR' ) )
define( 'HEADER_TEXTCOLOR', '' );
// No CSS, just IMG call. The %s is a placeholder for the theme template directory URI.
if ( ! defined( 'HEADER_IMAGE' ) )
define( 'HEADER_IMAGE', '%s/images/headers/harald.jpg' );
// The height and width of your custom header. You can hook into the theme's own filters to change these values.
// Add a filter to austria_header_image_width and austria_header_image_height to change these values.
define( 'HEADER_IMAGE_WIDTH', apply_filters( 'austria_header_image_width', 940 ) );
define( 'HEADER_IMAGE_HEIGHT', apply_filters( 'austria_header_image_height', 244 ) );
// We'll be using post thumbnails for custom header images on posts and pages.
// We want them to be 940 pixels wide by 244 pixels tall.
// Larger images will be auto-cropped to fit, smaller ones will be ignored. See header.php.
set_post_thumbnail_size( HEADER_IMAGE_WIDTH, HEADER_IMAGE_HEIGHT, true );
// Don't support text inside the header image.
if ( ! defined( 'NO_HEADER_TEXT' ) )
define( 'NO_HEADER_TEXT', true );
// Add a way for the custom header to be styled in the admin panel that controls
// custom headers. See austria_admin_header_style(), below.
add_custom_image_header( '', 'austria_admin_header_style' );
// ... and thus ends the changeable header business.
// Default custom headers packaged with the theme. %s is a placeholder for the theme template directory URI.
register_default_headers( array(
'harald' => array(
'url' => '%s/images/headers/harald.jpg',
'thumbnail_url' => '%s/images/headers/harald-thumbnail.jpg',
/* translators: header image description */
'description' => __( 'Austria theme', 'austria' )
)
) );
}
endif;
add_action('after_setup_theme', 'austria_setup');
if ( ! function_exists( 'austria_admin_header_style' ) ) :
/**
* Styles the header image displayed on the Appearance > Header admin panel.
*
* Referenced via add_custom_image_header() in austria_setup().
*
* @since Twenty Ten 1.0
*/
function austria_admin_header_style() {
?>
<style type="text/css">
/* Shows the same border as on front end */
#headimg {
border-bottom: 1px solid #000;
border-top: 4px solid #000;
}
/* If NO_HEADER_TEXT is false, you would style the text with these selectors:
#headimg #name { }
#headimg #desc { }
*/
</style>
<?php
}
endif;
function my_austrian_sidebar() {
register_sidebar( array(
'name' => __( 'Austrian Widget Area', 'austria' ),
'id' => 'austrian-widget-area',
'description' => __( 'The Austrian widget area', 'austria' ),
'before_widget' => '<ul><li>',
'after_widget' => '</li></ul>',
'before_title' => '<h4>',
'after_title' => '</h4>',
) );
}
add_action('widgets_init', 'my_austrian_sidebar');
if ( ! function_exists( 'austria_content_nav' ) ) :
/**
* Display navigation to next/previous pages when applicable
*/
function austria_content_nav( $nav_id ) {
global $wp_query;
if ( $wp_query->max_num_pages > 1 ) : ?>
<nav id="<?php echo $nav_id; ?>">
<div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">&larr;</span> Older posts', 'austria' ) ); ?></div>
<div class="nav-next"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">&rarr;</span>', 'austria' ) ); ?></div>
</nav><!-- #nav-above -->
<?php endif;
}
endif; // austria_content_nav
if ( ! function_exists( 'austria_comment' ) ) :
/**
* Template for comments and pingbacks.
*
* To override this walker in a child theme without modifying the comments template
* simply create your own austria_comment(), and that function will be used instead.
*
* Used as a callback by wp_list_comments() for displaying the comments.
*
* @since Twenty Eleven 1.0
*/
function austria_comment( $comment, $args, $depth ) {
$GLOBALS['comment'] = $comment;
switch ( $comment->comment_type ) :
case 'pingback' :
case 'trackback' :
?>
<li class="post pingback">
<p><?php _e( 'Pingback:', 'austria' ); ?> <?php comment_author_link(); ?><?php edit_comment_link( __( 'Edit', 'austria' ), '<span class="edit-link">', '</span>' ); ?></p>
<?php
break;
default :
?>
<li <?php comment_class(); ?> id="li-comment-<?php comment_ID(); ?>">
<article id="comment-<?php comment_ID(); ?>" class="comment">
<footer class="comment-meta">
<div class="comment-author vcard">
<?php
$avatar_size = 68;
if ( '0' != $comment->comment_parent )
$avatar_size = 39;
echo get_avatar( $comment, $avatar_size );
/* translators: 1: comment author, 2: date and time */
printf( __( '%1$s on %2$s <span class="says">said:</span>', 'austria' ),
sprintf( '<span class="fn">%s</span>', get_comment_author_link() ),
sprintf( '<a href="%1$s"><time pubdate datetime="%2$s">%3$s</time></a>',
esc_url( get_comment_link( $comment->comment_ID ) ),
get_comment_time( 'c' ),
/* translators: 1: date, 2: time */
sprintf( __( '%1$s at %2$s', 'austria' ), get_comment_date(), get_comment_time() )
)
);
?>
<?php edit_comment_link( __( 'Edit', 'austria' ), '<span class="edit-link">', '</span>' ); ?>
</div><!-- .comment-author .vcard -->
<?php if ( $comment->comment_approved == '0' ) : ?>
<em class="comment-awaiting-moderation"><?php _e( 'Your comment is awaiting moderation.', 'austria' ); ?></em>
<br />
<?php endif; ?>
</footer>
<div class="comment-content"><?php comment_text(); ?></div>
<div class="reply">
<?php comment_reply_link( array_merge( $args, array( 'reply_text' => __( 'Reply <span>&darr;</span>', 'austria' ), 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>
</div><!-- .reply -->
</article><!-- #comment-## -->
<?php
break;
endswitch;
}
endif; // ends check for austria_comment()
?>
<!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" xml:lang="en" >
<head>
<title><?php echo bloginfo('name').wp_title();?></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="" />
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
<link rel="shortcut icon" href="http://static.twoday.net/favicon.png" />
<style type="text/css">
@import url(http://fonts.googleapis.com/css?family=Signika:400,300,600,700);
.connect_widget {display: none; }
</style>
<script type="text/javascript">
/*
jQuery(function(){
jQuery("#face").slideDown("slow");
jQuery(window).load(function(){
jQuery(".connect_widget").slideDown("slow");
});
});*/
function setActiveStyleSheet(title) {
var i, a, main;
for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title")) {
a.disabled = true;
if(a.getAttribute("title") == title) a.disabled = false;
}
}
}
function getActiveStyleSheet() {
var i, a;
for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title") && !a.disabled) return a.getAttribute("title");
}
return null;
}
function getPreferredStyleSheet() {
var i, a;
for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
if(a.getAttribute("rel").indexOf("style") != -1
&& a.getAttribute("rel").indexOf("alt") == -1
&& a.getAttribute("title")
) return a.getAttribute("title");
}
return null;
}
function createCookie(name,value,days) {
if (days) {
var date = new Date();
date.setTime(date.getTime()+(days*24*60*60*1000));
var expires = "; expires="+date.toGMTString();
}
else expires = "";
document.cookie = name+"="+value+expires+"; path=/";
}
function readCookie(name) {
var nameEQ = name + "=";
var ca = document.cookie.split(';');
for(var i=0;i < ca.length;i++) {
var c = ca[i];
while (c.charAt(0)==' ') c = c.substring(1,c.length);
if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
}
return null;
}
window.onload = function(e) {
var cookie = readCookie("style");
var title = cookie ? cookie : getPreferredStyleSheet();
setActiveStyleSheet(title);
}
window.onunload = function(e) {
var title = getActiveStyleSheet();
createCookie("style", title, 365);
}
var cookie = readCookie("style");
var title = cookie ? cookie : getPreferredStyleSheet();
setActiveStyleSheet(title);
</script>
<script type="text/javascript" src="<?php echo bloginfo('template_directory').'/js/jquery.min.js';?>"></script>
<!--
<link rel="stylesheet" type="text/css" title="CSS Stylesheet" href="modToolbar.css" />
-->
<script src="<?php echo bloginfo('template_directory').'/js/urchin.js';?>" type="text/javascript"></script>
<script type="text/javascript">
jQuery(function(){
jQuery("#face").slideDown("slow");
jQuery(window).load(function(){
jQuery(".connect_widget").slideDown("slow");
});
});
</script>
<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
<?php wp_head(); ?>
</head>
<body>
<!-- wrapper -->
<div id="wrapper">
<!-- header -->
<div id="header">
<div id="logo">
<img src="<?php bloginfo('template_url'); ?>/images/logo.png" alt="Logo of Austrian National Council" />
<p><?php bloginfo('name'); ?></p>
</div>
<img title="dr. harald walser" height="244" alt="dr. harald walser" width="940" src="<?php echo bloginfo('template_directory').'/images/header.jpg';?>" />
<div id="mouth">
<div class="sidebarItem">
</div>
</div>
<form role="search" method="get" id="search" action="<?php echo home_url( '/' ); ?>">
<div>
<input class="searchbox field" type="text" value="" name="s" id="s" />
<input class="searchbox button" type="submit" id="searchsubmit" value="Search" />
</div>
</form>
<?php //get_search_form(); ?>
<!--
<form id="search" method="get" action="http://haraldwalser.twoday.net/search">
<input class="searchbox field" value="" type="text" size="20" name="q" />
<input class="searchbox button" value="SUCHE" type="submit" name="submit" />
</form>
-->
<div class="clear"></div>
</div>
<div id="face">
<div id="navi">
<div id="centeredmenu">
<?php wp_nav_menu( array('theme_location'=>'top','fallback_cb'=>'') ); ?>
</div>
</div>
<div id="social">
FOLLOW
<a title="Facebook" href="http://www.facebook.com/haraldwalser" class="fb"><img src="<?php echo bloginfo('template_directory').'/images/fb.png';?>" alt="Facebook" /></a>
<a title="E-mail" href="mailto:harald.walser@gruene.at" class="mail"><img src="<?php echo bloginfo('template_directory').'/images/mail.png';?>" alt="Mail Me" /></a>
</div>
</div>
images/fb.png

413 Bytes

images/rss.png

491 Bytes

<?php get_header(); ?>
<!-- pagebody -->
<div id="pagebody">
<!-- container -->
<div id="container">
<!-- content -->
<div id="content">
<?php
if (have_posts()):
while (have_posts()) :the_post();?>
<div class="daydate"><?php the_time(__('l, F jS, Y', 'kubrick')) ?></div>
<div class="story">
<!-- Story Title -->
<h3 class="storyTitle"><a title="<?php the_title(); ?>" href="<?php the_permalink(); ?>"><?php the_title();?></a>
</h3>
<!-- Story Date -->
<div class="storyDate"><?php the_author();?> | <?php the_date(); ?> | <a href="<?php the_permalink();?>">
<?php comments_number( 'no responses', 'one response', '% responses' ); ?>.
</a></div>
<!-- Story Content -->
<?php if (has_post_thumbnail( $post->ID ) ): ?>
<?php $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'single-post-thumbnail' ); ?>
<div class="storyContent"><img title="" height="210" alt="Staatsoper_NS" width="300" align="left" class="left" src="<?php echo $image[0]; ?>" />
<?php endif; ?>
<?php the_content('read more..'); ?>
</div>
</div>
<div class="clear"></div>
<?php endwhile; ?>
<div class="navigation">
<div class="alignleft"><?php next_posts_link('&laquo; Older Entries') ?></div>
<div class="alignright"><?php previous_posts_link('Newer Entries &raquo;') ?></div>
</div>
<?php else : ?>
</p>I'm not sure what you're looking for.
<?php endif; ?>
</div><!-- end of content -->
</div><!-- end of container -->
<!-- sidebar01 -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
/* Text for javascript */
<script type="text/javascript" src="js/jquery.min.js"></script><link rel="stylesheet" type="text/css" title="CSS Stylesheet" href="modToolbar.css" /><script src="js/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-163565-3";
urchinTracker();
</script>
<script type="text/javascript">
jQuery(function(){
jQuery("#face").slideDown("slow");
jQuery(window).load(function(){
jQuery(".connect_widget").slideDown("slow");
});
});
</script>
<style type="text/css">
.connect_widget {display: none; }
</style>
/* Ends javascript */
<?php
get_header();
?>
<!-- container -->
<div id="container">
<!-- content -->
<div id="content">
<?php if(have_posts()) : ?>
<?php while(have_posts()) : the_post() ?>
<div class="daydate"></div>
<div class="story">
<!-- Story Content -->
<div class="storyContent">
<?php the_content(); ?>
</div>
</div>
<?php endwhile; ?>
<?php else : ?>
<h2>Page not found!</h2>
<div><?php get_search_form(); ?></div>
<?php endif; ?>
</div><!-- end of content -->
</div><!-- end of container -->
<?php
get_sidebar();
get_footer();
?>
\ No newline at end of file
<!-- sidebar01 -->
<div id="sidebar01">
<div class="sidebarItem">
<?php if(!function_exists('dynamic_sidebar') || !dynamic_sidebar('austrian-widget-area')) : ?>
<?php endif; ?>
</div>
</div>
\ No newline at end of file
<?php
get_header();
?>
<!-- container -->
<div id="container">
<!-- content -->
<div id="content">
<?php if(have_posts()) : ?>
<?php while(have_posts()) : the_post() ?>
<div class="daydate"></div>
<div class="story">
<!-- Story Title -->
<h3 class="storyTitle">
<?php the_title(); ?>
</h3>
<!-- Story Date -->
<div class="storyDate">
<em>
Written by <?php the_author(); ?> on <?php the_time('l, F, jS, Y'); ?> at <?php the_time(); ?>&nbsp;&nbsp;&nbsp;-&nbsp;&nbsp;&nbsp;
<?php
$num_comments = get_comments_number(); // get_comments_number returns only a numeric value
if ( comments_open() ) {
if ( $num_comments == 0 ) {
$comments = __('No Comments');
echo $comments;
} elseif ( $num_comments > 1 ) {
$comments = $num_comments . __(' Comments');
echo $comments;
} else {
$comments = __('1 Comment');
echo $comments;
}
}
?>
</em>
</div>
<!-- Story Content -->
<div class="storyContent">
<?php the_content(); ?>
</div>
<div class="act">
<!-- FB -->
<iframe src="http://www.facebook.com/plugins/like.php?href=http://haraldwalser.twoday.net/STORIES/232599755/&amp;layout=button_count&amp;show_faces=false&amp;width=450&amp;action=like&amp;colorscheme=light&amp;height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:200px; height:30px;" allowTransparency="true" class="fblike"></iframe>
</div>
<?php comments_template(); ?>
</div>
<?php endwhile; ?>
<?php else : ?>
<h3>Sorry, but we could not find what your were looking for...</h3>
<div><?php get_search_form(); ?></div>
<?php endif; ?>