示例#1
0
<?php

use Helium\Content;
global $influencer_name, $influencer_firstname, $influencer_uuid, $influencer_id;
$influencer_id = Content::get_influencer(get_the_ID());
if ($influencer_id) {
    $influencer = get_user_by('id', $influencer_id);
    $influencer_name = $influencer->display_name;
    $influencer_firstname = $influencer->user_firstname;
    $influencer_lastname = $influencer->user_lastname;
    $influencer_uuid = get_user_meta($influencer_id, 'uuid', true);
    $topbar_image_id = get_user_meta($influencer_id, 'influencer_topbar_image', true);
    $topbar_image = wp_get_attachment_image_src($topbar_image_id);
    ?>

<div class="topbar" data-bind="css: {'': show_dropdown, 'small-head': show_dropdown() == false, 'small-head': is_scrolled() && show_dropdown()== false}">
    
    <a data-bind="click: $root.toggleDropdown" class="head circular" 
        style="background: url('<?php 
    echo $topbar_image[0];
    ?>
') no-repeat center center;
            -webkit-background-size: cover;
            -moz-background-size: cover;
            -o-background-size: cover;  
            background-size: cover;">
        <div class="circular overlay">
        </div>

        <div class="influencer circular">
            <span>
		style="background: url('<?php 
echo get_template_directory_uri();
?>
/assets/helium/img/white.gif') no-repeat center center;-webkit-background-size: cover;	-moz-background-size: cover;
		-o-background-size: cover;  
		background-size: cover;">
	
	<div class="post-content">

		<header class="feed-title">
			<h2>
				<a href="<?php 
the_permalink();
?>
" class="feed-item-hed"><?php 
echo Content::title(get_the_title(), 50);
?>
</a>
			</h2>
			
			
			<h3>
				<div class="feed-item-dek hide-for-small"><?php 
echo the_excerpt();
?>
</div>
			</h3>
		
			
			<div class="row hide">
				<div class="columns large-12 large-centered medium-12 medium-centered">
示例#3
0
//this is not used for Topics pages - see taxonomy-topics.php
use Helium\Content;
get_header('homepage');
?>

<?php 
get_template_part('parts/module', 'most-viewed');
?>

<div class="home-feed">

	<h2 class="most-recent">Most Recent from Heleo</h2>

	<?php 
$posts = Content::get_posts(12, 1, 0, NULL, 'happiness');
$i = 1;
foreach ($posts as $post) {
    setup_postdata($post);
    get_template_part('content', 'home');
    if ($i == 3) {
        get_template_part('parts/module', 'editors-picks');
    }
    if ($i == 6) {
        get_template_part('parts/module', 'featured-influencers');
    }
    if ($i == 9) {
        get_template_part('parts/module', 'get-the-gist');
    }
    $i++;
}
示例#4
0
				<div class="photo-caption right">
					<?php 
            echo $attachment->post_excerpt;
            ?>
				</div>
				<?php 
        }
        ?>
				<?php 
    }
    ?>

				<div class="row full-width-row collapse" data-equalizer>
					<div class="pullquote columns large-4 show-for-large-only" data-equalizer-watch>
						<div class=""><?php 
    echo Content::get_pullquote(get_the_ID());
    ?>
</div>
					</div>

					<div class="post-body columns large-4 medium-8 small-12" data-equalizer-watch>

						<?php 
    the_content();
    ?>

						<?php 
    get_template_part('parts/post', 'in-brief');
    ?>

						<div class="row">