Example #1
0
                            <li class="tags_teaser_item">

                                <div>

                                    <?php 
    if (has_post_thumbnail(get_the_ID())) {
        ?>

                                        <div class="post_thumb"><a href="<?php 
        the_permalink();
        ?>
" title="<?php 
        the_title();
        ?>
"><?php 
        get_image_thumb(get_the_ID(), array(95, 70));
        ?>
</a></div>

                                    <?php 
    }
    ?>

                                    <div class="post_time">

                                        <?php 
    echo get_date_formatted(get_the_date('d.m.Y.H.i'));
    ?>

                                        <span class="views"><i class="views-ico"></i><?php 
    $views = get_post_meta(get_the_ID(), 'views', true);
Example #2
0
                    <?php 
get_banner("med-banner-305x350x2");
?>
                </div>
            </div>
        </div>
        <div class="left">
            <div class="single single-news doctor">
                <?php 
while (have_posts()) {
    the_post();
    ?>
                    <div class="dr-single-info">
                        <?php 
    if (has_post_thumbnail()) {
        get_image_thumb(get_the_ID(), array(200, 190));
    }
    ?>

                        <h1 class="title"><?php 
    the_title();
    ?>
</h1>
                        <div class="dr-spec"><?php 
    echo get_post_meta(get_the_ID(), 'pl_specialization', true);
    ?>
</div>
                        <div class="dr-content"><?php 
    the_content();
    ?>
</div>
Example #3
0
?>
            <?php 
if (count($cat_posts) > 0) {
    ?>
             <?php 
    foreach ($cat_posts as $post) {
        setup_postdata($post);
        ?>

                          <div style="margin-bottom:10px !important; display:block;">
                          <table border="0" cellpadding="0" cellspacing="0" width="100%">

<tr>
<td width="230">
								<?php 
        get_image_thumb(get_the_ID(), array(238, 160));
        ?>
</td>
<td valign="top" style="padding: 0 20px !important; background-color:#FFF5E1;   vertical-align: -webkit-baseline-middle;">
								<a href="<?php 
        the_permalink();
        ?>
" style="font-size:24px !important; display:block; margin-bottom:10px; padding:10px 0; border-bottom:1px #CCC dashed; color:#333; text-decoration:none;" >
								<?php 
        the_title_shorten(50);
        ?>
                                </a>
                                
                                <?php 
        echo htmlspecialchars(kama_excerpt('maxchar=200&echo'));
        ?>
Example #4
0
<div class="related-news">
    <h3>Новости по теме:</h3>
    <ul>
        <?php 
    foreach ($related_posts as $post) {
        setup_postdata($post);
        ?>
        <li>
            <?php 
        if (has_post_thumbnail()) {
            ?>
                <a href="<?php 
            the_permalink();
            ?>
"><?php 
            get_image_thumb(get_the_ID(), array(64, 64), true);
            ?>
</a>
            <?php 
        }
        ?>
            <h2 class="title"><a href="<?php 
        the_permalink();
        ?>
" title="<?php 
        the_title();
        ?>
"><?php 
        the_title_shorten(50);
        ?>
</a></h2>
Example #5
0
        ?>
" title="<?php 
        echo htmlspecialchars(get_the_title());
        ?>
">

				<div class="txt-slide">

                <?php 
        the_title_shorten(150);
        ?>

                </div>

				<?php 
        get_image_thumb(get_the_ID(), array(1340, 200));
        ?>

                </a>

                </li>

			<?php 
    }
    wp_reset_postdata();
    ?>

            </ul>

		</div>
Example #6
0
<div style="  background-color: #EFBA00;
  font-size: 10px;
  position: relative;
  margin-bottom: -31px;
  padding: 3px;
  float: right;
  color: #333;
  font-family: Arial;
  margin-top: 13px;">
                    <?php 
    echo get_the_date('d M  H:i');
    ?>
                    </div>

								<?php 
    get_image_thumb(get_the_ID(), array(300, 180));
    ?>
</a>
<div class="txt">
								<a href="<?php 
    the_permalink();
    ?>
">

								<?php 
    the_title_shorten(36);
    ?>

                                </a>

                                
Example #7
0
                    <div class="org-list">
                        <div>
                            <?php 
$q = array('post_type' => 'ads', 'posts_per_page' => 10, 'paged' => get_query_var('paged'));
$posts = get_posts($q);
?>
                            <ul class="abc-list-items">
                                <?php 
foreach ($posts as $post) {
    setup_postdata($post);
    ?>
                                    <li class="item">
                                        <?php 
    if (has_post_thumbnail()) {
        get_image_thumb(get_the_ID(), array(96, 75));
    } else {
        echo "<img src='" . get_template_directory_uri() . "/images/blank_image.png' alt='' />";
    }
    $location = get_the_terms($post->ID, 'nlocation');
    if ($location) {
        $location = array_shift($location);
        $location = $location->name;
    } else {
        $location = "Уральск";
    }
    ?>
                                        <div class="post_info">
                                            <span class="date"><?php 
    echo get_date_formatted(get_the_date('d.m.Y.H.i'));
    ?>
Example #8
0
        ?>

                <?php 
        if (has_post_thumbnail()) {
            ?>

                <a href="<?php 
            the_permalink();
            ?>
" title="<?php 
            the_title();
            ?>
">

                    <?php 
            get_image_thumb(get_the_ID(), array(70, 50), true, false, "grayscale");
            ?>

                </a>

                <?php 
        }
        ?>

        <?php 
    }
    wp_reset_postdata();
    ?>

        </div>
Example #9
0
                        <ul>
                            <?php 
    foreach ($cat_posts as $post) {
        setup_postdata($post);
        ?>
                                <li>
                                    <div>
                                        <a href="<?php 
        the_permalink();
        ?>
" title="<?php 
        echo htmlspecialchars(get_the_title());
        ?>
">
                                            <?php 
        get_image_thumb(get_the_ID(), array(76, 50));
        ?>
                                        </a>
                                        <div class="post_time"><?php 
        echo get_date_formatted(get_the_date('d.m.Y.H.i'), 'v');
        ?>
</div>
                                        <h2><a href="<?php 
        the_permalink();
        ?>
"
                                               title="<?php 
        echo htmlspecialchars(get_the_title());
        ?>
"><?php 
        the_title_shorten(50);
Example #10
0
                                            <span
                                                class="date"><?php 
    echo get_date_formatted(get_the_date('d.m.Y.H.i'), 'slide');
    ?>
</span>
                                            <span class="location"><?php 
    echo $location;
    ?>
</span>
                                        </div>
                                        <?php 
    if (has_post_thumbnail()) {
        $thumb_id = get_post_thumbnail_id(get_the_ID());
        $url = get_image_by_id($thumb_id, array(800, 600), true, true);
        echo "<a href='" . $url . "'>";
        get_image_thumb(get_the_ID(), array(165, 120));
        echo "</a>";
    }
    ?>
                                        <h2 class="adc-title"><?php 
    the_title();
    ?>
</h2>

                                        <div class="adc-content"><?php 
    the_content();
    ?>
</div>
                                    </div>

                                    <?php 
Example #11
0
  position: relative;
  margin-bottom: -31px;
  padding: 3px;
  float: right;
  color: #333;
  font-family: Arial;
  margin-top: 13px;">
                    <?php 
    echo get_the_date('d M  H:i');
    $arr = get_the_ID();
    $arrr = array($arr[0], $arr[1], $arr[2], $arr[3], $arr[4], $arr[5]);
    ?>
                    </div>

								<?php 
    get_image_thumb(get_the_ID(), array(220, 100));
    ?>
</a>
<div class="txt">
								<a href="<?php 
    the_permalink();
    ?>
">

								<?php 
    the_title_shorten(50);
    ?>

                                </a>