Пример #1
0
            ?>
</div>
                <?php 
        } else {
            ?>
                    <?php 
            if (has_post_thumbnail()) {
                ?>
                        <a href="<?php 
                the_permalink();
                ?>
" title="<?php 
                echo esc_attr(the_title_attribute('echo=0'));
                ?>
" rel="bookmark" class="blog-entry-img-link"><img src="<?php 
                echo wpex_get_featured_image_url();
                ?>
" alt="<?php 
                echo the_title();
                ?>
" /></a>
                    <?php 
            }
            ?>
                <?php 
        }
        ?>
            </div><!-- .blog-entry-media -->
        <?php 
    }
    ?>
Пример #2
0
" title="<?php 
                    echo $attachment_alt;
                    ?>
" class="wpex-lightbox"><img src="<?php 
                    echo wpex_get_featured_image_url(get_the_id(), $attachment);
                    ?>
" alt="<?php 
                    echo $attachment_alt;
                    ?>
" /></a>
											<?php 
                } else {
                    // Lightbox is disabled, only show image
                    ?>
												<img src="<?php 
                    echo wpex_get_featured_image_url(get_the_id(), $attachment);
                    ?>
" alt="<?php 
                    echo $attachment_alt;
                    ?>
" />
											<?php 
                }
                ?>
										</li>
									<?php 
            }
            ?>
								</ul><!-- .slides --> 
							</div><!-- .flexslider --> 
					</div><!-- .flexslider-container -->