Пример #1
0
                
      <?php 
        if (get_post_meta($post->ID, 'icon', true)) {
            ?>
    
      <!-- 1 -->
      <div class="app-shops">
        <img src="<?php 
            bloginfo('template_directory');
            ?>
/scripts/timthumb.php?src=<?php 
            echo get_post_meta($post->ID, "icon", $single = true);
            ?>
&amp;h=60&amp;w=59" alt="">
        <h1> <?php 
            the_title_limit(30, '...');
            ?>
 </h1>
        <p> <?php 
            content('10');
            ?>
</p>
        <a href="<?php 
            the_permalink();
            ?>
" class="mini-red" style="margin-right:4px;">more</a> 
        
        <?php 
            if (get_post_meta($post->ID, 'price', true)) {
                ?>
 
                                         alt="<?php 
        $myExcerpt = get_the_excerpt();
        $tags = array("<p>", "</p>");
        $myExcerpt = str_replace($tags, "", $myExcerpt);
        echo $myExcerpt;
        ?>
"
                                         title="<?php 
        $myExcerpt = get_the_excerpt();
        $tags = array("<p>", "</p>");
        $myExcerpt = str_replace($tags, "", $myExcerpt);
        echo $myExcerpt;
        ?>
">
                                        <p><?php 
        the_title_limit(70);
        ?>
</p>
                                    </div>
                                </div>
                            </a>
                            <!-- /card lateral -->
                        </li>
                    <?php 
    }
    ?>
                <ul>
                <a href="<?php 
    echo get_post_type_archive_link('publicacao');
    ?>
" class="btn btn-link" >Ver todas</a>
Пример #3
0
    }
}
?>
		
			<div class="sd-thumb-container">
				<div class="sd-thumb">
					<?php 
echo get_the_post_thumbnail($post_id, 'full', array('class' => 'sd-card-image'));
?>
				</div> <!-- /.sd-thumb -->
			</div> <!-- /.sd-thumb-container -->

		<div class="sd-card-block">
			<div class="sd-card-title">
				<h4 class="sd-card-title-text"><?php 
the_title_limit(70, '&hellip;');
?>
</h4>
			</div> <!-- /.sd-card-title -->
			<div class="sd-card-support-text">
				<?php 
the_excerpt();
?>
			</div> <!-- /.sd-card-support-text -->

			<div class="sd-action-bar">
				<div class="sd-read-more">
					Read More
				</div> <!-- /.sd-read-more -->
			</div> <!-- /.sd-action-bar -->
		</div> <!-- /.sd-card-block -->
Пример #4
0
&amp;h=77&amp;w=77" alt=""/>
              </div>
              <?php 
                }
                ?>
              <?php 
                if (get_post_meta($post->ID, 'tabimage', true)) {
                    ?>
              <img src="<?php 
                    bloginfo('template_directory');
                    ?>
/scripts/timthumb.php?src=<?php 
                    echo get_post_meta($post->ID, "tabimage", $single = true);
                    ?>
&amp;h=260&amp;w=340" alt="<?php 
                    the_title_limit(30, '');
                    ?>
"/>
              <?php 
                }
                ?>
            </div>
        </div>
        <?php 
            }
        }
        ?>
      </div>
      
    </div><!-- .coda-slider -->
  </div><!-- .coda-slider-wrapper -->