Skip to content
Permalink
Browse files

[ 仕様変更 ][ class名動的出力箇所追加 ] siteContent & postList を外部から改変できるように動的出力化

  • Loading branch information
kurudrive committed Dec 17, 2019
1 parent c809665 commit 841694df03770ba76b136998cedc2c86ed043c18
Showing with 15 additions and 11 deletions.
  1. +1 −1 front-page.php
  2. +6 −2 inc/template-tags.php
  3. +2 −2 index.php
  4. +1 −1 page-lp-builder.php
  5. +1 −1 page-lp.php
  6. +1 −1 page-onecolumn.php
  7. +1 −1 page.php
  8. +1 −1 single.php
  9. +1 −1 woocommerce.php
@@ -13,7 +13,7 @@
}
?>

<div class="section siteContent">
<div class="<?php lightning_the_class_name( 'siteContent' ); ?>">
<?php do_action( 'lightning_siteContent_prepend' ); ?>
<div class="container">
<?php do_action( 'lightning_siteContent_container_prepend' ); ?>
@@ -40,19 +40,23 @@ function lightning_get_the_class_name( $position = '' ) {
$class_names = array(
'header' => 'navbar siteHeader',
'nav_menu_header' => 'nav gMenu',
'siteContent' => 'section siteContent',
'mainSection' => 'col-md-8 mainSection',
'sideSection' => 'col-md-3 col-md-offset-1 subSection sideSection',
);
if ( lightning_is_layout_onecolumn() ) {
$class_names['mainSection'] = 'col-md-12 mainSection';
$class_names['sideSection'] = 'col-md-12 sideSection';
}

} elseif ( $skin_info['bootstrap'] === 'bs4' ) {

$class_names = array(
'header' => 'siteHeader',
'nav_menu_header' => 'gMenu vk-menu-acc',
'mainSection' => 'col mainSection mainSection-col-two',
'sideSection' => 'col subSection sideSection sideSection-col-two',
'siteContent' => 'section siteContent',
'mainSection' => 'col mainSection mainSection-col-two baseSection',
'sideSection' => 'col subSection sideSection sideSection-col-two baseSection',
);
if ( lightning_is_layout_onecolumn() ) {
$class_names['mainSection'] = 'col mainSection mainSection-col-one';
@@ -23,7 +23,7 @@
}
?>

<div class="section siteContent">
<div class="<?php lightning_the_class_name( 'siteContent' ); ?>">
<?php do_action( 'lightning_siteContent_prepend' ); ?>
<div class="container">
<?php do_action( 'lightning_siteContent_container_prepend' ); ?>
@@ -64,7 +64,7 @@
do_action( 'lightning_loop_before' );
?>

<div class="postList">
<div class="<?php lightning_the_class_name( 'postList' ); ?>">

<?php if ( have_posts() ) : ?>

@@ -4,7 +4,7 @@
*/
get_header(); ?>

<div class="section siteContent">
<div class="<?php lightning_the_class_name( 'siteContent' ); ?>">
<?php do_action( 'lightning_siteContent_prepend' ); ?>

<?php
@@ -4,7 +4,7 @@
*/
get_header(); ?>

<div class="section siteContent">
<div class="<?php lightning_the_class_name( 'siteContent' ); ?>">
<?php do_action( 'lightning_siteContent_prepend' ); ?>
<div class="container">
<?php do_action( 'lightning_siteContent_container_prepend' ); ?>
@@ -27,7 +27,7 @@
}
?>

<div class="section siteContent">
<div class="<?php lightning_the_class_name( 'siteContent' ); ?>">
<?php do_action( 'lightning_siteContent_prepend' ); ?>
<div class="container">
<?php do_action( 'lightning_siteContent_container_prepend' ); ?>
@@ -23,7 +23,7 @@
}
?>

<div class="section siteContent">
<div class="<?php lightning_the_class_name( 'siteContent' ); ?>">
<?php do_action( 'lightning_siteContent_prepend' ); ?>
<div class="container">
<?php do_action( 'lightning_siteContent_container_prepend' ); ?>
@@ -23,7 +23,7 @@
}
?>

<div class="section siteContent">
<div class="<?php lightning_the_class_name( 'siteContent' ); ?>">
<?php do_action( 'lightning_siteContent_prepend' ); ?>
<div class="container">
<?php do_action( 'lightning_siteContent_container_prepend' ); ?>
@@ -3,7 +3,7 @@
<?php get_template_part( 'module_pageTit' ); ?>
<?php get_template_part( 'module_panList' ); ?>

<div class="section siteContent">
<div class="<?php lightning_the_class_name( 'siteContent' ); ?>">
<?php do_action( 'lightning_siteContent_prepend' ); ?>
<div class="container">
<?php do_action( 'lightning_siteContent_container_prepend' ); ?>

0 comments on commit 841694d

Please sign in to comment.
You can’t perform that action at this time.