コード例 #1
0
                        <time datetime="<?php 
        the_time('Y/m/d g:i:s A');
        ?>
" pubdate><?php 
        the_date('j F Y');
        ?>
</time>
                    </aside>
                    <?php 
        echo excerpt_count(160);
        ?>
                </article>
            <?php 
    }
    ?>
            <?php 
} else {
    ?>
            <h3 class="section_title">No hay contenido en <?php 
    echo single_tag_title('', false);
    ?>
</h3>
            <?php 
}
?>
        </section>
    </div>
</section>
<?php 
Starkers_Utilities::get_template_parts(array('parts/shared/footer', 'parts/shared/html-footer'));
コード例 #2
0
    die;
}
$background = '';
$featured_image = '<img src="' . get_stylesheet_directory_uri() . '/images/main-header.jpg" />';
if (has_post_thumbnail($post->ID)) {
    $image = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'full')[0];
    $background = 'style="background-image: url(' . $image . ')"';
    $featured_image = '<img src="' . $image . '" />';
}
?>
<div id="body-wrapper" class="row">
    <div id="masthead" data-equalizer>
        <div id="menu-wrapper" class="medium-4 columns">
            <div class="panel" data-equalizer-watch>
                <?php 
Starkers_Utilities::get_template_parts(array('parts/shared/nav'));
?>
            </div>
        </div>
        <div class="medium-8 columns intro-image">
            <div class="panel" data-equalizer-watch>
                <?php 
echo $featured_image;
?>
                <div class="header-wrapper">
                    <p class="intro">You are invited to...</p>
                    <h1>The Comber Wedding!</h1>
                    <p class="date">Saturday 4th June 2016</p>
                    <p class="local">2pm at The Sandbanks Hotel</p>
                </div>
            </div>
コード例 #3
0
<?php

Starkers_Utilities::get_template_parts(array('parts/shared/pre-header'));
?>


<?php 
$imagen_cabecera = of_get_option('imagen_cabecera', '');
?>

<header id="main_header" role="banner" itemscope itemtype="http://schema.org/WPHeader" <?php 
if ($imagen_cabecera) {
    ?>
      style="background-image: url('<?php 
    echo $imagen_cabecera;
    ?>
');"
    <?php 
} else {
    ?>
          style="background-image: url('<?php 
    echo get_stylesheet_directory_uri();
    ?>
/img/main-bg.jpg');"
    <?php 
}
?>
>
	<h1><a title="<?php 
bloginfo('name');
?>
コード例 #4
0
ファイル: extras.php プロジェクト: jenswaern/generator-docks
function print_a($string)
{
    Starkers_Utilities::print_a($string);
}