View difference between Paste ID: 4w4RX0WU and Nc1AvGe5
SHOW: | | - or go back to the newest paste.
1
<?php /*
2-
2+
Template Name: セミナー動画
3-
<div id="content">
3+
*/ ?>
4-
4+
5-
	<?php query_posts('cat=-11, post_type=post&paged='.$paged);
5+
 
6-
	if ( wptouch_have_posts() ) while ( wptouch_have_posts() ) { ?>
6+
<!-----------main---------------------------------------------------------------------------------->
7-
		<?php wptouch_the_post(); ?>
7+
<div id="main">
8-
		<div class="<?php wptouch_post_classes(); ?>">
8+
			
9-
			<?php get_template_part( 'post-loop' ); ?>
9+
		<div class="post-page-head-area bauhaus">
10-
		</div> <!-- post classes -->
10+
			<h2 class="post-title heading-font"><?php the_title(); ?></h2>
11-
	<?php } else { ?> 
11+
12-
		<!-- no posts -->
12+
		
13-
	<?php } ?>
13+
		<h2 class="border">今までのセミナーや活動等の紹介をしています。</h2>
14-
14+
		<!-----------content----------------->
15-
	<?php if ( foundation_is_theme_using_module( 'infinite-scroll' ) ) { ?>
15+
		<div id="content">
16-
16+
			<?php 
17-
		<?php if ( get_next_posts_link() ) { ?>
17+
			//query_posts('post_type=post&paged='.$paged);
18-
			<!-- hidden in css, needed to add js -->
18+
			query_posts('cat=-11, post_type=post&paged='.$paged);//カテゴリーIDの11番のみを除外してそのほかのカテゴリーは表示
19-
			<a class="infinite-link" href="#" rel="<?php echo get_next_posts_page_link(); ?>"></a>
19+
				if (have_posts()) : 
20-
		<?php } ?>
20+
					while (have_posts()) : the_post(); 
21-
21+
			?>
22-
	<?php } elseif ( foundation_is_theme_using_module( 'load-more' ) ) { ?>
22+
				<div class="post">
23-
23+
				    <h2><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2><!--投稿タイトル-->
24-
		<!-- show the load more if we have more posts/pages -->
24+
				    <div class="box_out">
25-
		<?php if ( get_next_posts_link() ) { ?>
25+
						<div class="box_in">
26-
			<a class="load-more-link tappable no-ajax" href="javascript:return false;" rel="<?php echo get_next_posts_page_link(); ?>">
26+
					    <?php 
27-
				<?php wptouch_fdn_archive_load_more_text(); ?>&hellip;
27+
					    	if(has_post_thumbnail()) { echo the_post_thumbnail(); }
28-
			</a>
28+
				    		global $more; $more = FALSE; 
29-
		<?php } ?>
29+
				    		the_content('続きを読む'); 
30-
30+
				    		$more = TRUE; 
31-
	<?php } else { ?>
31+
					    ?>
32-
32+
					    投稿日:<?php the_time("Y年m月j日") ?>
33-
		<div class="posts-nav">
33+
					    </div>
34-
			<?php posts_nav_link( ' | ', '&lsaquo; ' . __( 'newer posts', 'wptouch-pro' ), __( 'older posts', 'wptouch-pro' ) . ' &rsaquo;' ); ?>
34+
				    </div>
35
				</div>
36-
36+
		    <?php 
37-
	<?php } ?>
37+
		    		endwhile;
38-
38+
				else : 
39-
</div><!-- #content -->
39+
			?>
40-
40+
	    	<div class="post">
41
	        	<h2>記事が見つかりません</h2>
42
	        	<p></p>
43
	    	</div>
44
		<?php endif; ?>
45
		</div><!--/content end-->
46
	<?php get_sidebar(); ?>
47
</div><!--/main end-->
48
<?php get_footer(); ?>