Team:Penn

From 2011.igem.org

(Difference between revisions)
Line 345: Line 345:
body.cufon-disabled h2.post-title, body.cufon-disabled h3#comments { font-size: 38px; }
body.cufon-disabled h2.post-title, body.cufon-disabled h3#comments { font-size: 38px; }
</style>
</style>
 +
<!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" <?php language_attributes(); ?>>
 +
<head profile="http://gmpg.org/xfn/11">
 +
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
 +
<title><?php elegant_titles(); ?></title>
 +
<?php elegant_description(); ?>
 +
<?php elegant_keywords(); ?>
 +
<?php elegant_canonical(); ?>
 +
 +
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
 +
<link href='http://fonts.googleapis.com/css?family=Yanone+Kaffeesatz:light,regular,bold&amp;subset=latin' rel='stylesheet' type='text/css'/>
 +
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
 +
<link rel="alternate" type="application/atom+xml" title="<?php bloginfo('name'); ?> Atom Feed" href="<?php bloginfo('atom_url'); ?>" />
 +
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
 +
 +
<!--[if lt IE 7]>
 +
<link rel="stylesheet" type="text/css" href="<?php bloginfo('template_directory'); ?>/css/ie6style.css" />
 +
<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/DD_belatedPNG_0.0.8a-min.js"></script>
 +
<script type="text/javascript">DD_belatedPNG.fix('img#logo, a.readmore, a.readmore span, #header, span.overlay, #search-form, ul.nav ul, ul.nav span.top-arrow, ul.nav ul li a:hover, #content-top, #content-bottom, span.post-overlay, span.avatar-overlay, .comment-arrow, .service-top, .service-description-bottom, .service-description');</script>
 +
<![endif]-->
 +
<!--[if IE 7]>
 +
<link rel="stylesheet" type="text/css" href="<?php bloginfo('template_directory'); ?>/css/ie7style.css" />
 +
<![endif]-->
 +
<!--[if IE 8]>
 +
<link rel="stylesheet" type="text/css" href="<?php bloginfo('template_directory'); ?>/css/ie8style.css" />
 +
<![endif]-->
 +
 +
<script type="text/javascript">
 +
document.documentElement.className = 'js';
 +
</script>
 +
 +
<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
 +
<?php wp_head(); ?>
 +
 +
</head>
 +
<body <?php body_class(); ?>>
 +
<div id="background">
 +
<div id="backgrounds">
 +
<?php
 +
if ( is_home() ) {
 +
$et_bg_images = get_option('instyle_home_bg_images');
 +
} elseif ( is_category() ) {
 +
$et_bg_images = get_option('instyle_category_bg_images');
 +
} elseif ( is_archive() ) {
 +
$et_bg_images = get_option('instyle_archive_bg_images');
 +
} elseif ( is_search() ) {
 +
$et_bg_images = get_option('instyle_search_bg_images');
 +
} elseif ( is_tag() ) {
 +
$et_bg_images = get_option('instyle_tag_bg_images');
 +
} elseif ( is_single() || is_page() ) {
 +
$et_instyle_settings = maybe_unserialize( get_post_meta($post->ID,'et_instyle_settings',true) );
 +
$et_bg_images = isset( $et_instyle_settings['et_fs_bg_images'] ) ? $et_instyle_settings['et_fs_bg_images'] : '';
 +
}
 +
 +
if ( $et_bg_images == '' )
 +
$et_bg_images = get_option('instyle_default_bg_images') <> '' ? get_option('instyle_default_bg_images') : apply_filters('et_default_images',get_bloginfo('template_directory') . '/images/landscape.png');
 +
 +
$et_backgrounds = explode(",", $et_bg_images);
 +
foreach ( $et_backgrounds as $et_background ){
 +
echo '<img src="'.esc_attr( trim($et_background) ).'" alt=""/>';
 +
}
 +
?>
 +
</div> <!-- end #backgrounds -->
 +
 +
<div id="header" class="clearfix">
 +
<a href="<?php bloginfo('url'); ?>"><?php $logo = (get_option('instyle_logo') <> '') ? get_option('instyle_logo') : get_bloginfo('template_directory').'/images/logo.png'; ?>
 +
<img src="<?php echo esc_url( $logo ); ?>" alt="<?php bloginfo('name'); ?>" id="logo"/>
 +
</a>
 +
<div id="header-right">
 +
<?php $menuClass = 'nav';
 +
$menuID = 'top-menu';
 +
$primaryNav = '';
 +
if (function_exists('wp_nav_menu')) {
 +
$primaryNav = wp_nav_menu( array( 'theme_location' => 'primary-menu', 'container' => '', 'fallback_cb' => '', 'menu_class' => $menuClass, 'menu_id' => $menuID, 'echo' => false ) );
 +
};
 +
if ($primaryNav == '') { ?>
 +
<ul id="<?php echo $menuID; ?>" class="<?php echo $menuClass; ?>">
 +
<?php if (get_option('instyle_home_link') == 'on') { ?>
 +
<li <?php if (is_home()) echo('class="current_page_item"') ?>><a href="<?php bloginfo('url'); ?>"><?php esc_html_e('Home','InStyle') ?></a></li>
 +
<?php } ?>
 +
 +
<?php show_page_menu($menuClass,false,false); ?>
 +
<?php show_categories_menu($menuClass,false); ?>
 +
</ul> <!-- end ul#nav -->
 +
<?php } else echo($primaryNav); ?>
 +
 +
<div id="search-form">
 +
<form method="get" id="searchform" action="<?php echo home_url(); ?>">
 +
<input type="text" value="<?php esc_attr_e('Search this site...','InStyle'); ?>" name="s" id="searchinput" />
 +
<input type="image" src="<?php bloginfo('template_directory'); ?>/images/search_btn.png" id="searchsubmit" />
 +
</form>
 +
</div> <!-- end #search-form -->
 +
</div> <!-- end #header-right -->
 +
</div> <!-- end #header -->
 +
 +
<div id="container"<?php global $fullwidth; if ( is_page_template('page-full.php') || $fullwidth ) echo ' class="fullwidth"'; ?>>
 +
 +
<?php get_header(); ?>
 +
 +
<?php include(TEMPLATEPATH . '/includes/top_info.php'); ?>
 +
 +
<div id="content-top"></div>
 +
<div id="content" class="clearfix">
 +
<div id="content-area">
 +
<?php include(TEMPLATEPATH . '/includes/breadcrumbs.php'); ?>
 +
 +
<?php $i = 1;?>
 +
 +
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
 +
<div class="post clearfix">
 +
<h2 class="post-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
 +
<?php include(TEMPLATEPATH . '/includes/postinfo.php'); ?>
 +
 +
<?php
 +
$thumb = '';
 +
$width = 211;
 +
$height = 211;
 +
$classtext = '';
 +
$titletext = get_the_title();
 +
 +
$thumbnail = get_thumbnail($width,$height,$classtext,$titletext,$titletext,false,'Entry');
 +
$thumb = $thumbnail["thumb"];
 +
?>
 +
 +
<?php if($thumb <> '' && get_option('instyle_thumbnails_index') == 'on') { ?>
 +
<div class="post-thumbnail alignleft">
 +
<a href="<?php the_permalink(); ?>">
 +
<?php print_thumbnail($thumb, $thumbnail["use_timthumb"], $titletext, $width, $height, $classtext); ?>
 +
<span class="post-overlay"></span>
 +
</a>
 +
</div> <!-- end .post-thumbnail -->
 +
<?php } ?>
 +
 +
<div class="description">
 +
<?php if ( get_option('instyle_blog_style') == 'on' ){ ?>
 +
<?php echo apply_filters('the_content',et_create_dropcaps(get_the_content(''))); ?>
 +
<?php } else { ?>
 +
<p><?php echo et_create_dropcaps(truncate_post(775,false)); ?></p>
 +
<?php } ?>
 +
</div> <!-- end .description-->
 +
<a href="<?php the_permalink(); ?>" class="readmore"><span><?php esc_html_e('read more','InStyle'); ?></span></a>
 +
</div> <!-- end .post -->
 +
<?php endwhile; ?>
 +
<?php
 +
if(function_exists('wp_pagenavi')) { wp_pagenavi(); }
 +
else { include(TEMPLATEPATH . '/includes/navigation.php'); }
 +
?>
 +
<?php else : ?>
 +
<?php include(TEMPLATEPATH . '/includes/no-results.php'); ?>
 +
<?php endif; ?>
 +
</div> <!-- end #content-area -->
 +
 +
<?php get_sidebar(); ?>
 +
</div> <!--end #content-->
 +
<div id="content-bottom"></div>
 +
 +
</html>
</html>

Revision as of 16:25, 9 September 2011

> <?php elegant_titles(); ?> >

ID,'et_instyle_settings',true) ); $et_bg_images = isset( $et_instyle_settings['et_fs_bg_images'] ) ? $et_instyle_settings['et_fs_bg_images'] : ''; } if ( $et_bg_images == '' ) $et_bg_images = get_option('instyle_default_bg_images') <> '' ? get_option('instyle_default_bg_images') : apply_filters('et_default_images',get_bloginfo('template_directory') . '/images/landscape.png'); $et_backgrounds = explode(",", $et_bg_images); foreach ( $et_backgrounds as $et_background ){ echo ''; } ?>
>

'' && get_option('instyle_thumbnails_index') == 'on') { ?>