Example #1
0
}
$post_title_limit = '128';
if (sith_get_option('title_limit')) {
    $post_title_limit = sith_get_option('title_limit');
}
if (sith_get_option('post_title_position')) {
    $control_title_above = ' control-title-above';
}
?>

<div class="post-excerpt<?php 
echo $post_image_control, $post_excerpt_thumbnail;
?>
">
  <article <?php 
sith_post_class('default-loop-post');
?>
>
    <?php 
if (!sith_get_option('post_title_position')) {
} else {
    ?>
    <h2 class="entry-loop-title<?php 
    echo $control_title_above;
    ?>
"><a href="<?php 
    the_permalink();
    ?>
" title="<?php 
    printf(esc_attr__('%s', 'sith'), the_title_attribute('echo=0'));
    ?>
Example #2
0
function sith_popular_posts($pop_posts = 5, $thumb = true)
{
    global $post;
    $orig_post = $post;
    $popularposts = new WP_Query(array('orderby' => 'comment_count', 'order' => 'DESC', 'posts_per_page' => $pop_posts, 'post_status' => 'publish', 'no_found_rows' => 1, 'ignore_sticky_posts' => 1));
    while ($popularposts->have_posts()) {
        $popularposts->the_post();
        ?>
<li <?php 
        sith_post_class();
        ?>
>
  <?php 
        if (function_exists("has_post_thumbnail") && has_post_thumbnail() && $thumb) {
            ?>
  <div class="post-thumbnail"><a href="<?php 
            echo get_permalink($post->ID);
            ?>
" title="<?php 
            printf(__('%s', 'sith'), the_title_attribute('echo=0'));
            ?>
" rel="bookmark">
    <?php 
            sith_thumb();
            ?>
    </a></div>
  <!-- post-thumbnail /-->
  <?php 
        }
        ?>
  <h3><a href="<?php 
        echo get_permalink($post->ID);
        ?>
" title="<?php 
        echo the_title();
        ?>
"><?php 
        echo the_title();
        ?>
</a></h3>
  <span class="date"><?php 
        echo get_the_time(get_option('date_format'));
        ?>
</span></li>
<?php 
    }
    $post = $orig_post;
}
Example #3
0
} else {
}
$post_caption_excerpt_limit = '64';
if (sith_get_option('post_caption_excerpt_limit')) {
    $post_caption_excerpt_limit = sith_get_option('post_caption_excerpt_limit');
}
$post_caption_title_limit = '128';
if (sith_get_option('post_caption_title_limit')) {
    $post_caption_title_limit = sith_get_option('post_caption_title_limit');
}
?>

<div class="box-w-caption box-w-caption2">
  <div class="post-2caption post-default-loop-caption">
    <article <?php 
sith_post_class('post-loop-caption');
?>
>
      <div> <a href="<?php 
the_permalink();
?>
" title="<?php 
printf(esc_attr__('%s', 'sith'), the_title_attribute('echo=0'));
?>
" rel="bookmark">
        <?php 
sith_thumb($size2c);
?>
        </a> </div>
      <?php 
if (has_post_thumbnail()) {
Example #4
0
<?php

$size2c = 'thumbnail-420x236';
if (sith_get_option('full_home_nosidebar')) {
    $size2c = 'thumbnail-850x478';
}
?>

<div class="post-full-thumb">
  <article <?php 
sith_post_class('');
?>
>
    <?php 
if (function_exists("has_post_thumbnail") && has_post_thumbnail()) {
    ?>
    <div class="post-thumbnail"> <a href="<?php 
    the_permalink();
    ?>
" title="<?php 
    printf(esc_attr__('%s', 'sith'), the_title_attribute('echo=0'));
    ?>
" rel="bookmark">
      <?php 
    sith_thumb($size2c);
    ?>
      </a> </div>
    <?php 
}
?>
    <?php