<span class="post_comments"><?php 
comments_popup_link(__('No Comments', 'haku'), __('1 Comment', 'haku'), __('% Comments', 'haku'));
?>
</span>
				
				<div class="clr"></div>
				
			</div>
		
			<label class="date"><?php 
echo retro_filter(get_the_time('j'));
?>
<br />
			<?php 
echo retro_filter(get_the_time('M'));
?>
</label>
			
			<?php 
the_content();
?>
				
		</li>
		
	</ul>

	<div class="clr"></div>
	
	<?php 
if (haku_get_url_type($media) == 'audio') {
echo sanitize_title(get_theme_option('portfolio_label'));
?>
">

	<div id="portfolio_section_botm_bg">
	
		<div class="section_inn">
						
			<?php 
if (isset($terms)) {
    ?>
			
			<div id="filter_menu">
			
				<label><?php 
    echo retro_filter(get_theme_option('portfolio_filter_label'));
    ?>
</label>
				
				<ul>
				
					<li><a href="#" data-category="all"><?php 
    _e('all', 'haku');
    ?>
</a></li>
					
					<?php 
    if (is_array($terms)) {
        foreach ($terms as $filter) {
            ?>
					
Пример #3
0
    function widget($args, $instance)
    {
        extract($args);
        $title = $instance['title'];
        $center = urlencode($instance['center']);
        $zoom = urlencode($instance['zoom']);
        $size = urlencode($instance['size']);
        $maptype = urlencode($instance['maptype']);
        $map = '<img src="http://maps.googleapis.com/maps/api/staticmap?center=' . $center . '&zoom=' . $zoom . '&size=' . $size . '&maptype=' . $maptype . '&sensor=false" alt="" />';
        /*
        	Before widget
        */
        echo $before_widget;
        if ($title) {
            echo $before_title . retro_filter($title) . $after_title;
        }
        ?>
		
		<!-- Map -->
		
		<?php 
        echo $map;
        ?>
		
		<!-- end: Map -->
		
		<?php 
        /*
        	After widget
        */
        echo $after_widget;
    }
Пример #4
0
<!-- Pagination navigation -->
<nav class="pagination">

	<?php 
        previous_comments_link(__('Show more', 'haku'));
        ?>
	<?php 
        next_comments_link(__('Newer comments', 'haku'));
        ?>
	
</nav>
<!-- end: Pagination navigation -->

<?php 
    }
    ?>
		
<?php 
}
?>
	
<!-- Comment form -->
<?php 
/*******************/
/*   Comment form  */
$form = array('title_reply' => retro_filter(__('Leave a reply', 'haku')), 'comment_notes_before' => '<p class="comments-data">' . __('FILL THE FIELDS TO LEAVE A REPLY. Your email address will not be published.', 'haku') . '</p>', 'comment_notes_after' => '', 'logged_in_as' => '<p class="comments-data logged-in-as">' . sprintf(__('Logged in as <a href="%1$s">%2$s</a>. <a href="%3$s" title="Log out of this account">Log out?</a>', 'haku'), admin_url('profile.php'), $user_identity, wp_logout_url(apply_filters('the_permalink', get_permalink()))) . '</p>', 'fields' => apply_filters('comment_form_default_fields', array('author' => '<fieldset id="leave_comment_left">' . '<input id="author" name="author" type="text" value="' . esc_attr($commenter['comment_author']) . '" placeholder=" ' . esc_attr(__('Your Name*', 'haku')) . '" />', 'email' => '<input id="email" name="email" type="text" value="' . esc_attr($commenter['comment_author_email']) . '" placeholder=" ' . esc_attr(__('Your e-mail address*', 'haku')) . '" />', 'url' => '<input id="url" name="url" type="text" value="' . esc_attr($commenter['comment_author_url']) . '" placeholder=" ' . esc_attr(__('Your Website', 'haku')) . '" /></fieldset>')), 'comment_field' => '<fieldset id="leave_comment_right" class="' . (is_user_logged_in() ? 'logged_in' : 'not_logged_in') . '">' . '<textarea id="comment" name="comment" rows="12" placeholder="' . esc_attr(__('Type your comment here..', 'haku')) . '"></textarea></fieldset>', 'label_submit' => esc_attr(__('Post Comment!', 'haku')));
comment_form($form);
?>

<!-- end: Comment form -->
Пример #5
0
<h1><?php 
echo retro_filter(__('Not found', 'haku'));
?>
</h1>

<p><?php 
_e('Sorry, we couldn&rsquo;t find who you were looking for.', 'haku');
?>
</p>

<br />

<?php 
get_search_form();
Пример #6
0
    function widget($args, $instance)
    {
        extract($args);
        $title = $instance['title'];
        $id = $instance['id'];
        $number = $instance['number'];
        $display = $instance['display'];
        /*
        	Before widget
        */
        echo $before_widget;
        if ($title) {
            echo $before_title . retro_filter($title) . $after_title;
        }
        ?>
		
		<!-- Photos -->
		<div>
		
			<script type="text/javascript" src="http://www.flickr.com/badge_code_v2.gne?count=<?php 
        echo $number;
        ?>
&amp;display=<?php 
        echo $display;
        ?>
&amp;size=s&amp;layout=x&amp;source=user&amp;user=<?php 
        echo $id;
        ?>
"></script>
		
		</div>
		<!-- end: Photos -->
		
		<?php 
        /*
        	After widget
        */
        echo $after_widget;
    }
Пример #7
0
    function widget($args, $instance)
    {
        extract($args);
        $title = $instance['title'];
        $number = $instance['number'];
        $orderby = $instance['orderby'];
        $order = $instance['order'];
        $nasc_latests_config = array('posts_per_page' => $number, 'orderby' => $orderby, 'order' => $order, 'post_status' => 'publish', 'ignore_sticky_posts' => 1);
        $nasc_latests = new WP_Query($nasc_latests_config);
        /*
        	Before widget
        */
        echo $before_widget;
        if ($title) {
            echo $before_title . retro_filter($title) . $after_title;
        }
        ?>
		
		<!-- Latests widget -->
		
		<ul>
			
			<?php 
        if ($nasc_latests->have_posts()) {
            while ($nasc_latests->have_posts()) {
                $nasc_latests->the_post();
                ?>
			
			<!-- Article -->
			<li>
				<h4><a title="<?php 
                printf(__('Permanent Link to %s', 'haku'), get_the_title());
                ?>
" href="<?php 
                the_permalink();
                ?>
"><?php 
                the_title();
                ?>
</a></h4>
				<span>
					<time datetime="<?php 
                the_time(DATE_W3C);
                ?>
"><?php 
                echo haku_nice_date(get_the_time('U'));
                ?>
</time>, 
					<?php 
                comments_popup_link(__('No Comments', 'haku'), __('1 Comment', 'haku'), __('% Comments', 'haku'));
                ?>
				</span>
			</li>
			<!-- end: Article -->
			
			<?php 
            }
        }
        wp_reset_postdata();
        ?>
						
		</ul>

		<!-- end: Latests widget -->
		
		<?php 
        /*
        	After widget
        */
        echo $after_widget;
    }
Пример #8
0
    function widget($args, $instance)
    {
        extract($args);
        $title = $instance['title'];
        $url = $instance['url'];
        $size = esc_attr($instance['size']);
        $size = explode('x', $size);
        /*
        	Before widget
        */
        echo $before_widget;
        if ($title) {
            echo $before_title . retro_filter($title) . $after_title;
        }
        if ($url) {
            ?>
		
		<!-- Video -->
		<div class="video">
			
			<!-- Video container -->
			<figure>
			
				<?php 
            if (haku_get_url_type($url) == 'youtube') {
                $id = haku_get_video_id($url);
                ?>
				
				<!-- Youtube Video -->
				<iframe type="text/html" width="<?php 
                echo $size[0];
                ?>
" height="<?php 
                echo $size[1];
                ?>
" src="http://www.youtube.com/embed/<?php 
                echo $id;
                ?>
?wmode=transparent" frameborder="0" allowfullscreen></iframe>
			
				<?php 
            } elseif (haku_get_url_type($url) == 'vimeo') {
                $id = haku_get_video_id($url);
                ?>
				
				<!-- Vimeo Video -->
				<iframe src="http://player.vimeo.com/video/<?php 
                echo $id;
                ?>
?title=0&amp;byline=0&amp;portrait=0" width="<?php 
                echo $size[0];
                ?>
" height="<?php 
                echo $size[1];
                ?>
" frameborder="0"></iframe>
				<?php 
            }
            ?>
			
			</figure>
			<!-- end: Video container -->
			
		</div>
		<!-- end: Video -->
		
		<?php 
        }
        /*
        	After widget
        */
        echo $after_widget;
    }
Пример #9
0
			
			<?php 
} elseif (is_category()) {
    ?>
				
				<h1><?php 
    echo retro_filter(get_cat_name(get_query_var('cat')));
    ?>
</h1>
				
			<?php 
} else {
    ?>
			
				<h1><?php 
    echo retro_filter(__('Blog Archives', 'haku'));
    ?>
</h1>
				
			<?php 
}
?>
			
			<div id="blog_section_content">
			
				<div id="blog_section_content_left">
				
					<div id="blog_section_listing">
					
						<ul>
						
	<?php 
}
?>
	
	<?php 
if ($item['is_audio']) {
    ?>
	
	<!-- Audio item -->
	<div id="<?php 
    echo sanitize_title(get_the_title());
    ?>
" class="quote" style="display: none;">
	
		<div class="title_quote"><?php 
    echo retro_filter(get_the_title());
    ?>
</div>
		
		<?php 
    if (has_excerpt()) {
        ?>
		
		<div class="subtitle_quote"><?php 
        the_excerpt();
        ?>
</div>
		
		<?php 
    }
    ?>
Пример #11
0
    function widget($args, $instance)
    {
        extract($args);
        $title = $instance['title'];
        $username = $instance['username'];
        $number = $instance['number'];
        $haku_tweets = haku_get_tweets($username, $number);
        /*
        	Before widget
        */
        echo $before_widget;
        if ($title) {
            echo $before_title . retro_filter($title) . $after_title;
        }
        ?>
		
		<!-- Tweets list -->
		
		<ul>
			
			<?php 
        if ($haku_tweets) {
            foreach ($haku_tweets as $tweets => $tweet) {
                ?>
			
			<!-- Tweet -->
			<li><span><?php 
                echo $tweet['content'];
                ?>
</span> <a style="font-size:85%" href="<?php 
                echo $tweet['link'];
                ?>
"><?php 
                echo $tweet['date'];
                ?>
</a></li>
			<!-- end: Tweet -->
				
			<?php 
            }
        } else {
            ?>
						
			<p><em><?php 
            printf(__('No tweets found from "%s"', 'haku'), $instance['username']);
            ?>
</em></p>
			
			<?php 
        }
        ?>
				
		</ul>

		<!-- end: Tweets list -->
		
		<?php 
        /*
        	After widget
        */
        echo $after_widget;
    }
Пример #12
0
			<?php 
if (get_theme_option('top')) {
    ?>
			
			<a class="go_top" href="<?php 
    echo get_site_url();
    ?>
"></a>
			
			<?php 
}
?>
			
			<h1><?php 
echo retro_filter(single_post_title('', false));
?>
</h1>
			
			<div id="blog_section_content">
			
				<div id="blog_section_content_left">
					
					<?php 
if (have_posts()) {
    while (have_posts()) {
        the_post();
        ?>

					<!-- Post content -->
					<?php 
Пример #13
0
				</li>
				<li>
					<a href="<?php 
echo get_site_url();
?>
/#blog_section"><?php 
echo retro_filter(get_theme_option('blog_label'));
?>
</a>
				</li>
				<li>
					<a href="<?php 
echo get_site_url();
?>
/#contact_section"><?php 
echo retro_filter(get_theme_option('contact_label'));
?>
</a>
				</li>
			</ul>
			
		</div><!-- end div #menu -->		
		<!-- Logo -->
		<div id="top_logo">
<a href="<?php 
echo get_site_url();
?>
/#home_section"><img src="logo.png" alt="Corinne Nagel Logo" /></a>
		</div>
        <div id="ribbon"></div>