Skip to content

Instantly share code, notes, and snippets.

Created December 8, 2015 16:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/c7df86a6cb717b73ff1f to your computer and use it in GitHub Desktop.
Save anonymous/c7df86a6cb717b73ff1f to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0" />
<title><?php global $page, $paged;
wp_title( '|', true, 'right' );
bloginfo( 'name' );
$site_description = get_bloginfo( 'description', 'display' );
if ( $site_description && ( is_home() || is_front_page() ) )
echo " | $site_description";
if ( $paged >= 2 || $page >= 2 )
echo ' | ' . sprintf( __( 'Page %s', 'ari' ), max( $paged, $page ) );
?></title>
<link rel="profile" href="http://gmpg.org/xfn/11" />
<link rel="stylesheet" href="<?php bloginfo( 'stylesheet_url' ); ?>" type="text/css" media="all" />
<?php if (get_theme_mod("darktheme_css") == 'checked') : ?>
<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/dark.css" type="text/css">
<?php endif; ?>
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
<?php if ( is_singular() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' ); ?>
<?php wp_head(); ?>
<?php // dieser Code sorgt für die Farbanpassungen
$content_text_color = get_option('content_text_color');
$content_link_color = get_option('content_link_color');
$content_header_color = get_theme_mod('accent_color');
?>
<style>
#content { color: <?php echo $content_text_color; ?>; }
#content a { color: <?php echo $content_link_color; ?>; }
.site-title a { color: <?php echo $content_header_color; ?>; }
</style>
</head>
<body <?php body_class(); ?>>
<div id="wrap" class="clearfix">
<div id="sidebar-primary">
<div class="logo">
<?php if (get_theme_mod('ari_logo') ) : ?>
<a href="<?php echo home_url(); ?>"><img src="<?php echo get_theme_mod('ari_logo')?>" alt="<?php bloginfo('name'); ?>" /></a>
<?php else : ?>
<h1 class="site-title"><a href="<?php echo home_url( '/' ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>"><?php bloginfo( 'name' ); ?></a></h1>
<p class="site-description"><?php bloginfo( 'description' ); ?></p>
<?php endif; ?>
</div><!--end Logo-->
<?php get_sidebar('primary'); ?>
</div>
<!--end Sidebar One-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment