コード例 #1
0
ファイル: loop.php プロジェクト: Vultur/imcreator.com
		<h2>Not Found</h2>
		<div class="topic-content">
			<p>Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.</p>
			<?php 
    get_search_form();
    ?>
		</div>
	</div>
<?php 
}
?>

<!-- posts -->
<?php 
$i = 0;
$banner1 = blog_get_banner(1);
while (have_posts()) {
    the_post();
    $i++;
    if ($i == 1) {
        $title = get_the_title(get_the_id());
        $count = count(explode(' ', $title));
        $long = '';
        $long = $count > 10 && $count < 15 ? 'long' : '';
        $long = $count >= 15 ? 'long2' : '';
        $thumb_bg = '';
        if (has_post_thumbnail()) {
            $thumb_bg = sprintf('style="background: url(%s) no-repeat; background-size: cover;"', getThumbnailURL(get_the_ID()));
        }
        ?>
	<article class="hentry featured-post full-width-post" <?php 
コード例 #2
0
ファイル: single.php プロジェクト: Vultur/imcreator.com
<?php

/**
 *
 * @package WordPress
 * @subpackage HivistaSoft_Theme
 */
include 'includes/EmailFormBox.php';
get_header();
$title_container = 'h2';
$banner2 = blog_get_banner(2);
?>
<div id="main">	
<?php 
if (have_posts()) {
    the_post();
    ?>
	
<div class="single-bar cf">
	<a href="<?php 
    echo home_url('/');
    ?>
" class="left"><img src="<?php 
    echo TDU;
    ?>
/images/logo-im-s.png" alt=""></a>
	<?php 
    get_top_menu_child();
    ?>
	<?php 
    if (strlen($banner2)) {
コード例 #3
0
ファイル: index.php プロジェクト: Vultur/imcreator.com
<?php

/**
 * @package WordPress
 * @subpackage HivistaSoft_Theme
 */
get_header();
?>

<?php 
global $TO;
error_reporting(E_ALL);
$banner2 = blog_get_banner(2);
$banner3 = blog_get_banner(3);
// =========================================================
// INITIALIZE SOCIAL URLS
// =========================================================
$options = $GLOBALS['gcoptions']->getAllOptions();
$default_socials = array('facebook' => $options['default_facebook_page'], 'twitter' => $options['default_twitter_username'], 'google_plus' => $options['default_google_plus'], 'linkedin' => $options['default_linkedin']);
?>
<!-- main -->
<div id="main" class="main-blog">	
	<div class="top-section">
		<div class="logo-date">
			<h1><a href="<?php 
bloginfo('url');
?>
">im now</a></h1>
			<p>Real-time resources and inspiration from the IM Creator team.</p>
			<div class="date"><?php 
echo date('j.n.Y');