예제 #1
0
파일: blog-list.php 프로젝트: jimmitjoo/mnh
comments_popup_link(__(' 0 comment', TEXTDOMAIN), __(' 1 comment', TEXTDOMAIN), __(' % comments', TEXTDOMAIN));
?>
                            </span>
                            <span class="meta-sep"> / </span>
                            <span class="author-link"><?php 
the_author_posts_link();
?>
</span>
                            <?php 
if (is_tag()) {
    ?>
                                <span class="meta-sep"> / </span>
                                <span class="tag-link"><?php 
    the_tags('Tags: ', ', ');
    ?>
</span>
                            <?php 
}
?>
                        </div>
                        <p class="entry-content">
	                        <?php 
echo wpo_excerpt(20);
?>
	                    </p>

                    </div>
                </div>
            </div>
        </div>
    </article>
예제 #2
0
				</div>
                <div class="entry-content">
                    <h2 class="entry-title">
                        <a href="<?php 
the_permalink();
?>
">
                            <?php 
the_title();
?>
                        </a>
                    </h2>

                    <div class="entry-description">
                        <?php 
echo wpo_excerpt(30);
?>
                    </div>

                    <div class="entry-meta hidden">
                        <span class="entry-date"><?php 
echo get_the_date();
?>
</span>
                        <span class="meta-sep"> / </span>
                        <span class="comment-count">
                            <?php 
comments_popup_link(__(' 0 comment', TEXTDOMAIN), __(' 1 comment', TEXTDOMAIN), __(' % comments', TEXTDOMAIN));
?>
                        </span>
                        <span class="meta-sep"> / </span>
예제 #3
0
"><?php 
            the_title();
            ?>
</a>
				            </h4>
				        <?php 
        }
        ?>

					    <?php 
        if (!has_excerpt()) {
            echo "";
        } else {
            ?>
				                    <p class="entry-description"><?php 
            echo wpo_excerpt(29, '...');
            ?>
</p>
				                <?php 
        }
        ?>

				    </div>
				</article>
			<?php 
        if ($i == $end - 1) {
            ?>
			</div>
			<?php 
        }
        ?>
예제 #4
0
<?php

$campaign = new ATCF_Campaign(get_the_ID());
$uid = wpo_makeid();
?>
<div class="item-campaign row item-layout-3">
	<div class="col-xs-12">
		<div class="campaign-title"><a href="<?php 
the_permalink();
?>
"><?php 
the_title();
?>
</a></div>
		<div class="campaign-des"><?php 
echo wpo_excerpt(30, '...');
?>
	</div>
	</div>	

	<div class="col-xs-12">
		<div class="campaign-main-style-3">
			<ul class="campaign-status text-center">		
				<li class="campaign-raised">
					<span class="label"><?php 
_e('Current', TEXTDOMAIN);
?>
</span>	
					<span class="text"><?php 
echo esc_html($campaign->current_amount());
?>
예제 #5
0
					</a>
					<?php 
            }
            ?>
					<h6>
						<a href="<?php 
            the_permalink();
            ?>
"><?php 
            the_title();
            ?>
</a>
					</h6>
                    <div class="content">
                        <?php 
            echo wpo_excerpt(12, '...');
            ?>
                    </div>
                    <div class="entry-meta">
                        <span class="published"><?php 
            the_time('M d, Y');
            ?>
</span>
                        <span class="meta-sep"> | </span>
                    <span class="comment-count">
                        <i class="fa fa-comments-o"></i>
                        <?php 
            comments_popup_link(__(' 0 ', TEXTDOMAIN), __(' 1 ', TEXTDOMAIN), __(' % ', TEXTDOMAIN));
            ?>
                    </span>
                    <span clas="post-views">
예제 #6
0
파일: blog.php 프로젝트: shubham79/Jhintaak
			<div class="post-name">
				<h2 class="entry-title">
					<a href="<?php 
the_permalink();
?>
">
						<?php 
the_title();
?>
					</a>
				</h2>
			</div>

			<p class="entry-content">
				<?php 
echo wpo_excerpt(40, '...');
?>
			</p>

			<div class="entry-meta">
				<span class="published"><?php 
the_time('M d, Y');
?>
</span>
				<span class="meta-sep"> / </span>
				<span class="comment-count">
					<?php 
comments_popup_link(__(' 0 comment', TEXTDOMAIN), __(' 1 comment', TEXTDOMAIN), __(' % comments', TEXTDOMAIN));
?>
				</span>
				<span class="meta-sep"> / </span>
">
          <div class="img">
              <?php 
        if (has_post_thumbnail()) {
            the_post_thumbnail('blog-thumbnails');
        }
        ?>
          </div>
          <div class="info">
            <h3><?php 
        the_title();
        ?>
</h3>
            <p>
              <?php 
        echo wpo_excerpt(20, '...');
        ?>
            </p>
          </div>
        </a>
      </div>              
    </div>  
</div>
<?php 
    }
    ?>
</div>


<?php 
}
예제 #8
0
?>
</span>
				<?php 
if (is_tag()) {
    ?>
				<span class="meta-sep"> / </span>
				<span class="tag-link"><?php 
    the_tags('Tags: ', ', ');
    ?>
</span>
				<?php 
}
?>
			</p>
			<h4 class="entry-title">
		        <a href="<?php 
the_permalink();
?>
"><?php 
the_title();
?>
</a>
		    </h4>
		    <p class="entry-description"><?php 
echo wpo_excerpt(25, '...');
?>
</p>
		</div>
    </figure>

</article>
예제 #9
0
                <div class="information-post">
                    <h2 class="entry-title">
                        <a href="<?php 
the_permalink();
?>
">
                            <?php 
the_title();
?>
                        </a>
                       
                    </h2>

                    <p class="entry-content">
                        <?php 
echo wpo_excerpt(100);
?>
                    </p>

                    <div class="entry-meta">
                        <span class="entry-date"><?php 
the_time('M d, Y');
?>
</span>
                        <span class="meta-sep"> / </span>
                <span class="comment-count">
                    <?php 
comments_popup_link(__(' 0 comment', TEXTDOMAIN), __(' 1 comment', TEXTDOMAIN), __(' % comments', TEXTDOMAIN));
?>
                </span>
                        <span class="meta-sep"> / </span>
예제 #10
0
    the_post_thumbnail('blog-thumbnails');
    ?>
                            </a>
                        </div>
                        <div class="col-md-6 col-sm-6">
                            <div class="blog-title">
                                <a href="<?php 
    the_permalink();
    ?>
"><?php 
    the_title();
    ?>
</a>
                            </div>
                            <div class="blog-description"><?php 
    echo wpo_excerpt(15, '...');
    ?>
</div>
                            <p class="entry-meta">
                                <span class="published"><?php 
    the_time('M d, Y');
    ?>
</span>
                                <span class="meta-sep"> | </span>
                                <span class="comment-count">
                                    <?php 
    comments_popup_link(__(' 0 comment', TEXTDOMAIN), __(' 1 comment', TEXTDOMAIN), __(' % comments', TEXTDOMAIN));
    ?>
                                </span>
                                <?php 
    /*
								<li class="campaign-backers hidden">
									<p class="label"><?php 
_e('Backers', TEXTDOMAIN);
?>
</p>
									<p class="text"><?php 
echo esc_html($campaign->backers_count());
?>
</p>
								</li>		
							</ul>
						</div>
						<div class="clearfix"></div> 	
						<div class="desciption">
							<?php 
echo wpo_excerpt(36, '... <a class="read-more" href="' . esc_url(get_the_permalink()) . '">' . __('Read more', TEXTDOMAIN) . '</a>');
?>
					
						</div>
						<?php 
if ($campaign->is_active()) {
    ?>
					        <div id="campaign-form-<?php 
    echo esc_attr(get_the_ID() . "-{$uid}");
    ?>
" class="campaign-form reveal-modal content-block block">
						        <?php 
    echo edd_get_purchase_link(array('download_id' => get_the_ID()));
    ?>
						    </div>
						<?php 
예제 #12
0
파일: theme.php 프로젝트: jimmitjoo/mnh
    function wpo_load_more_portfolio()
    {
        $number = $_POST['number'];
        $paged = $_POST['paged'];
        $class_column = $_POST['column'];
        $args = array('post_type' => 'portfolio', 'posts_per_page' => $number, 'paged' => $paged);
        $loop = new WP_Query($args);
        $result = $posts = array();
        if ($loop->have_posts()) {
            while ($loop->have_posts()) {
                $loop->the_post();
                $item_classes = 'all ';
                $item_cats = get_the_terms($loop->post->ID, 'Categories');
                foreach ((array) $item_cats as $item_cat) {
                    if (count($item_cat) > 0) {
                        $item_classes .= $item_cat->slug . ' ';
                    }
                }
                $image_attributes = wp_get_attachment_image_src(get_post_thumbnail_id($loop->post->ID), 'blog-thumbnails');
                ob_start();
                ?>
             <div class="col-sm-<?php 
                echo esc_attr($class_column);
                ?>
 item col-md-<?php 
                echo esc_attr($class_column);
                ?>
 col-lg-<?php 
                echo esc_attr($class_column);
                ?>
 <?php 
                echo esc_attr($item_classes);
                ?>
">
                 <div class="wpo-portfolio-content thumbnail text-center">
                      <?php 
                if (has_post_thumbnail()) {
                    ?>
                          <figure class="wpo-portfolio-thumbnail">
                              <a href="<?php 
                    the_permalink();
                    ?>
" title="<?php 
                    the_title_attribute();
                    ?>
">
                                  <?php 
                    the_post_thumbnail('blog-thumbnails');
                    ?>
                              </a>
                          </figure>
                      <?php 
                }
                ?>
                      <div class="wpo-portfolio-title caption">
                          <h4 class="entry-title">
                              <a href="<?php 
                the_permalink();
                ?>
"><?php 
                the_title();
                ?>
</a>
                          </h4>
                          <?php 
                if ($image_attributes) {
                    ?>
                              <a href="<?php 
                    echo esc_url($image_attributes[0]);
                    ?>
" rel="prettyPhoto[<?php 
                    echo $item_classes;
                    ?>
]" title="<?php 
                    the_title_attribute();
                    ?>
" class="btn btn-outline-inverse">
                                <i class="fa fa-plus"></i>
                              </a>
                        <?php 
                }
                ?>
                          <p class="entry-description"><?php 
                echo wpo_excerpt(20, '...');
                ?>
</p>
                      </div>
                 </div>
             </div>

            <?php 
                $posts[] = ob_get_clean();
            }
        }
        if ($paged >= $loop->max_num_pages) {
            $result['check'] = false;
        } else {
            $result['check'] = true;
        }
        $result['posts'] = $posts;
        print_r(json_encode($result));
        exit;
    }
예제 #13
0
파일: blog.php 프로젝트: shubham79/Jhintaak
			<div class="post-name">			
				<h2 class="entry-title">
					<a href="<?php 
the_permalink();
?>
">
						<?php 
the_title();
?>
					</a>
				</h2>			
			</div>

			<p class="entry-content">
				<?php 
echo wpo_excerpt(40);
?>
			</p>

			<div class="entry-meta">
				<span class="published"><?php 
the_time('M d, Y');
?>
</span>
				<span class="meta-sep"> / </span>
				<span class="comment-count">
					<?php 
comments_popup_link(__(' 0 comment', TEXTDOMAIN), __(' 1 comment', TEXTDOMAIN), __(' % comments', TEXTDOMAIN));
?>
				</span>
				<span class="meta-sep"> / </span>
예제 #14
0
        the_permalink();
        ?>
"><?php 
        the_title();
        ?>
</a>
					            </h4>
					        <?php 
    }
    ?>

					        <?php 
    if (has_excerpt()) {
        ?>
					           <p class="entry-description"><?php 
        echo wpo_excerpt(25, '[...]');
        ?>
</p>
					        <?php 
    }
    ?>

						    <div class="clearfix">
						    	<div class="entry-meta">
						    		<div class="entry-create">
						    			<span class="entry-author"><?php 
    the_author_link();
    ?>
</span>
						    			<span class="meta-sep">|</span>
						    			<span class="entry-date"><?php