Skip to content

Commit

Permalink
[ 仕様変更 ] header.php から module_slide.php / module_pageTit.php / module…
Browse files Browse the repository at this point in the history
…_panList.php を分離( フックやPHPがわからない人でもテンプレート毎にカスタマイズしやすいように )
  • Loading branch information
kurudrive committed Aug 7, 2015
1 parent 88d4432 commit e812044
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 7 deletions.
3 changes: 3 additions & 0 deletions front-page.php
@@ -1,4 +1,7 @@
<?php get_header(); ?>

<?php get_template_part('module_slide'); ?>

<div class="section siteContent">
<div class="container">
<div class="row">
Expand Down
8 changes: 1 addition & 7 deletions header.php
Expand Up @@ -45,10 +45,4 @@
</div>

</div>
</header>
<?php if (is_front_page()) :?>
<?php get_template_part('module_slide'); ?>
<?php else : ?>
<?php get_template_part('module_pageTit'); ?>
<?php get_template_part('module_panList'); ?>
<?php endif;?>
</header>
4 changes: 4 additions & 0 deletions index.php
@@ -1,4 +1,8 @@
<?php get_header(); ?>

<?php get_template_part('module_pageTit'); ?>
<?php get_template_part('module_panList'); ?>

<div class="section siteContent">
<div class="container">
<div class="row">
Expand Down
4 changes: 4 additions & 0 deletions page-onecolumn.php
Expand Up @@ -3,6 +3,10 @@
* Template Name: No sidebar
*/
get_header(); ?>

<?php get_template_part('module_pageTit'); ?>
<?php get_template_part('module_panList'); ?>

<div class="section siteContent">
<div class="container">
<div class="row">
Expand Down
4 changes: 4 additions & 0 deletions page.php
@@ -1,4 +1,8 @@
<?php get_header(); ?>

<?php get_template_part('module_pageTit'); ?>
<?php get_template_part('module_panList'); ?>

<div class="section siteContent">
<div class="container">
<div class="row">
Expand Down
4 changes: 4 additions & 0 deletions single.php
@@ -1,4 +1,8 @@
<?php get_header(); ?>

<?php get_template_part('module_pageTit'); ?>
<?php get_template_part('module_panList'); ?>

<div class="section siteContent">
<div class="container">
<div class="row">
Expand Down

0 comments on commit e812044

Please sign in to comment.