function origami_print_styles()
{
    // Create the footer widget CSS
    $sidebars_widgets = wp_get_sidebars_widgets();
    $count = count($sidebars_widgets['site-footer']);
    $count = max($count, 1);
    ?>
	<style type="text/css" media="screen">
		.content a { color: <?php 
    print so_setting('colors_link_color');
    ?>
; }
		#page-container { border-color: <?php 
    print so_setting('colors_page_border_color');
    ?>
; }
		#footer-widgets .widget { width: 100%; }
		#footer { color: <?php 
    print so_setting('colors_footer_text');
    ?>
; }
		#footer a { color: <?php 
    print so_setting('colors_footer_link');
    ?>
; }
	</style>
	<?php 
}
Beispiel #2
0
							</svg>
						</div>
					<?php 
            }
            ?>
					<div class="clear"></div>
					
					<?php 
            if (is_singular() && so_setting('social_share')) {
                locate_template('social-share.php', true);
            }
            ?>
				</div>
			<?php 
        } elseif (so_setting('social_share') && function_exists('so_share_render')) {
            so_share_render(array('twitter' => so_setting('social_twitter')));
        }
        ?>
				
			<?php 
        if (is_singular()) {
            ?>
				<div id="single-comments-wrapper">
					<?php 
            comments_template();
            ?>
				</div>
			<?php 
        }
        ?>
			
<h1 class="archive-title">
	<?php 
printf(__('Search Results for: %s', 'origami'), '<span>' . get_search_query() . '</span>');
?>
</h1>

<?php 
if (have_posts()) {
    ?>
	<?php 
    get_template_part('loop', 'index');
    ?>
	<div id="posts-nav">
		<?php 
    posts_nav_link('', __('Newer Entries', 'origami'), __('Older Entries', 'origami'));
    ?>
	</div>
<?php 
} else {
    ?>
	<div class="content">
		<?php 
    print so_setting('messages_no_results');
    ?>
	</div>
<?php 
}
?>

<?php 
get_footer();
Beispiel #4
0
<?php

get_header();
?>

<div class="post">
	<h1 class="entry-title noinfo"><?php 
_e('Not Found', 'origami');
?>
</h1>
	
	<div class="content" id="blog-archives">
		<?php 
print wpautop(so_setting('messages_not_found'));
?>
		<h1 class="super">I'm sorry, but the page you've requested cannot be found.</h1>

		<h1 class="entry-title"><a href="/">Return to Home.</a></h1>
	</div>
</div>

<?php 
get_footer();
<?php

get_header();
the_post();
global $post;
?>
<div <?php 
post_class();
?>
>
	<div class="single-post-wrapper">
		<?php 
if (has_post_thumbnail() && get_post_format() != 'image' && so_setting('display_featured_image')) {
    ?>
		<div class="featured-image">
			<?php 
    the_post_thumbnail(null, array('class' => 'main-image desktop'));
    ?>
			<?php 
    the_post_thumbnail('post-thumbnail-mobile', array('class' => 'main-image mobile'));
    ?>
		</div>
		<?php 
}
?>

		<?php 
if (!in_array(get_post_format(), array('aside', 'link', 'status'))) {
    ?>
		<div class="post-info">
			<span class="category">