Esempio n. 1
0
" <?php 
        post_class();
        ?>
>
            <?php 
        if (has_post_thumbnail() && !post_password_required()) {
            $post_image = wp_get_attachment_url(get_post_thumbnail_id($post->ID));
        } else {
            $post_image = templatemela_get_first_post_images(get_the_ID());
        }
        ?>
            <div class="entry-content">
              <div class="staff-left">
                <div class="staff-image">
                  <?php 
        templatemela_print_images_thumb($post_image, get_the_title(get_the_ID()), 200, 200, 'left');
        ?>
                </div>
              </div>
              <div class="staff-right">
                <div class="staff-name"><?php 
        echo esc_attr(the_title());
        ?>
</div>
                <div class="staff-position"><?php 
        echo "- " . $staff_position;
        ?>
</div>
                <div class="staff-description"><?php 
        echo esc_attr(the_content());
        ?>
Esempio n. 2
0
        ?>
			</div>
		</div>		
		  <?php 
    } else {
        ?>
			  <?php 
        if ($postImage = templatemela_get_first_post_images(get_the_ID())) {
            ?>
				  <?php 
            if ($postImage != "0") {
                ?>
				  <div class="entry-thumbnail">
					<div class="entry-image-loop-con main">
					  <?php 
                templatemela_print_images_thumb($postImage, get_the_title(get_the_ID()), 600, 270, 'center');
                ?>
					  <article class="da-animate da-slideFromRight" style="display: block;">
						<div class="blog-icon-container"> <span class="zoom"><a data-lightbox="example-set" id="blog-zoom" href="<?php 
                echo esc_url($postImage);
                ?>
" title="Standard Post"></a></span> <span class="single_link"><a href="<?php 
                echo esc_url(get_permalink());
                ?>
" title="View Full Image" class="standard"></a></span> </div>
					  </article>
					</div>
					
				  </div>
			  <?php 
            }