Esempio n. 1
0
        } elseif (has_post_format('image')) {
            include 'templates/blog_image.php';
        } elseif (has_post_format('quote')) {
            include 'templates/blog_quote.php';
        } elseif (has_post_format('video')) {
            include 'templates/blog_video.php';
        } else {
            include 'templates/blog_standart.php';
        }
        ?>
                    </div>
                <?php 
    }
} else {
    ?>
                    <?php 
    ale_part('notfound');
    ?>
                <?php 
}
?>
            </div>
            <?php 
ale_part('archives');
?>
        </div>
    </div>
    <div class="cf"></div>
</section>
<?php 
get_footer();
                                        <?php 
        $current_category = wp_get_post_terms($post->ID, 'gallery-category', array("fields" => "all"));
        foreach ($current_category as $curcat) {
            echo $curcat->name . ' ';
        }
        ?>
                                    </span>
                                        </a>
                                    </figcaption>
                                </figure>
                            </div>
                            <?php 
    }
} else {
    ?>
                            <?php 
    ale_part('notfound');
    ?>
                            <?php 
}
?>
                    </div>
                </div>
                <div class="cf"></div>
            </div>
        </div>
    </div>
    <div class="cf"></div>
</section>
<?php 
get_footer();
Esempio n. 3
0
<section class="full"><?php 
if (is_single()) {
    ?>
    <?php 
    ale_part('postcontent');
    ?>
    <?php 
    ale_part('postline');
}
?>
</section>
Esempio n. 4
0
    ?>
>
            <a id="rel-top"></a>
            <?php 
    if (ale_get_option('switcher') == 1) {
        ale_part('switcher');
    }
    ?>
        </div>
    <?php 
} else {
    ?>
        <div class="topline" <?php 
    if (ale_get_option('switcher') == 1) {
        echo 'style="min-height:35px; line-height:35px;"';
    }
    ?>
>
            <a id="rel-top"></a>
            <?php 
    if (ale_get_option('switcher') == 1) {
        ale_part('switcher');
    }
    ?>
        </div>
    <?php 
}
?>

        <div id="content-main" role="main">
Esempio n. 5
0
                          <div class="videotitle cf">
                              <div class="text"><?php 
    _e('Video  Presentation', 'aletheme');
    ?>
</div>
                              <div class="plus">+</div>
                          </div>
                          <div class="videocode" <?php 
    if (ale_get_meta('aboutvideotog') == 'open') {
        echo 'style="display:block;"';
    }
    ?>
 >
                              <?php 
    echo wp_oembed_get(ale_get_meta('aboutvideo'), array('width' => 1000));
    ?>
                          </div>
                      </div>
                <?php 
}
?>
            </div>
            <?php 
ale_part('pagefooter');
?>
        </div>
    </div>
    <div class="cf"></div>
</section>
<?php 
get_footer();
Esempio n. 6
0
<section class="full"><?php 
if (is_single()) {
    ?>
    <?php 
    ale_part('postcontent');
    ?>
    <div class="soclikesline cf">
        <div class="lefticons">
            <div class="couintbox"><?php 
    echo getPostLikeLink($post->ID);
    ?>
</div><div class="soctext"> &nbsp;<?php 
    _e('likes', 'aletheme');
    ?>
 / <?php 
    printf(_n('One comment', '%1$s Comments', get_comments_number(), 'aletheme'), number_format_i18n(get_comments_number()));
    ?>
</div>
        </div>
        <div class="righticons">
            <?php 
    if (ale_get_option('social_sharing')) {
        ?>
            <div class="righticonstext">
                <?php 
        _e('Share this post:', 'aletheme');
        ?>
            </div>
            <div class="righticonsbuttons">
                <a href="<?php 
        echo ale_get_share('fb');
Esempio n. 7
0
/**
 * Load Post AJAX Hook
 */
function ale_load_post()
{
    global $withcomments;
    $query = new WP_Query(array('post_type' => 'post', 'p' => (int) $_POST['id'], 'post_status' => 'publish'));
    while ($query->have_posts()) {
        $query->the_post();
        ale_part('postcontent', 'single');
        ale_part('postactions', 'single');
        # force inserting comments in index
        $withcomments = 1;
        comments_template();
    }
    exit;
}