Commit d3721f8f by o.kimura

20200720作業後

parent f75ed123
<div id="pageTopBox">
<div class="inner">
<p class="pageTop"><a href="javascript:void(0)"><span class="icon"></span>ページトップへ</a></p>
<div class="btn_form"><?php btn_form('form'); ?><!-- /.btn_form --></div>
<!-- /.inner --></div>
<!-- /#pageTopBox --></div>
<!-- footer -->
<div id="footer">
<div class="inner">
<div id="footerNavBox">
<?php wp_nav_menu( array( 'menu' => 'footerNav', 'container' => 'false', 'menu_id' => 'footerNav' ) ); ?>
<!-- /#footerNavBox --></div>
<div class="sabNavBox">
<?php wp_nav_menu( array( 'menu' => 'sabNav', 'container' => 'false', 'menu_id' => 'sabNav' ) ); ?>
<!-- /.sabNavBox --></div>
<p id="copyright">Copyright&copy; 2014 Diamond Family Club All Rights Reserved.</p>
<!-- /.inner --></div>
<!-- /#footer --></div>
<!-- /#content --></div>
<!-- /#container --></div>
<!-- /#sb-site --></div>
<!-- /#page --></div>
<?php get_sidebar(); ?>
<?php if ( is_mobile() ) : ?>
<link href="<?php bloginfo('template_url'); ?>/css/sp.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="<?php echo get_template_directory_uri(); ?>/js/accordion-mobile.js"></script>
<?php else: ?>
<?php endif; ?>
<?php wp_footer(); ?>
</body>
</html>
\ No newline at end of file
<?php
// メインコンテンツの幅を指定
if ( ! isset( $content_width ) ) $content_width = 680;
// ヘッダの整理
remove_action('wp_head', 'wp_generator');
remove_action('wp_head', 'rsd_link');
remove_action('wp_head', 'wlwmanifest_link');
remove_action('wp_head', 'wp_shortlink_wp_head');
remove_action('wp_head', 'adjacent_posts_rel_link_wp_head');
remove_action('wp_head', 'feed_links_extra', 3);
add_filter( 'show_admin_bar', '__return_false' );
/* WordPressで投稿者アーカイブを作らない */
add_filter( 'author_rewrite_rules', '__return_empty_array' );
/* インラインスタイル削除 */
function remove_recent_comments_style() {
global $wp_widget_factory;
remove_action( 'wp_head', array( $wp_widget_factory->widgets['WP_Widget_Recent_Comments'], 'recent_comments_style' ) );
}
add_action( 'widgets_init', 'remove_recent_comments_style' );
/* 投稿記事のpを削除 */
remove_filter (the_content, wpautop);
/* 投稿記事のspanを削除しない */
add_filter('tiny_mce_before_init', 'tinymce_init');
function tinymce_init( $init ) {
$init['verify_html'] = false;
return $init;
}
// カスタムメニューを有効化
add_theme_support( 'menus' );
// カスタムメニューの「場所」を設定
register_nav_menu('globalNav', 'グローバルナビ');
register_nav_menu('footerNav', 'フッターナビ');
register_nav_menu('sabNav', 'サブナビ');
//カスタムメニューを整理
/*
add_filter('nav_menu_css_class', 'my_css_attributes_filter', 100, 1);
add_filter('nav_menu_item_id', 'my_css_attributes_filter', 100, 1);
add_filter('page_css_class', 'my_css_attributes_filter', 100, 1);
function my_css_attributes_filter($var) {
return is_array($var) ? array_intersect($var, array('current-menu-item')) : '';
}
*/
//カスタムメニューを整理
class My_Walker_Nav_Menu extends Walker_Nav_Menu {
function start_el(&$output, $item, $depth, $args) {
global $wp_query;
$indent = ( $depth ) ? str_repeat( "\t", $depth ) : '';
$class_names = $value = '';
$classes = empty( $item->classes ) ? array() : (array) $item->classes;
$classes[] = 'menu-item-' . $item->ID;
$class_names = join( ' ', apply_filters( 'nav_menu_css_class', array_filter( $classes ), $item, $args ) );
$class_names = ' class="' . esc_attr( $class_names ) . '"';
$id = apply_filters( 'nav_menu_item_id', 'menu-item-'. $item->ID, $item, $args );
$id = strlen( $id ) ? ' id="' . esc_attr( $id ) . '"' : '';
//$output .= $indent . '<li class="nItem">';
//$attributes = ! empty( $item->attr_title ) ? ' title="' . esc_attr( $item->attr_title ) .'"' : '';
$attributes .= ! empty( $item->target ) ? ' target="' . esc_attr( $item->target ) .'"' : '';
$attributes .= ! empty( $item->xfn ) ? ' rel="' . esc_attr( $item->xfn ) .'"' : '';
$attributes .= ! empty( $item->url ) ? ' href="' . esc_attr( $item->url ) .'"' : '';
$item_output = $args->before;
//以下をカスタマイズします。
$item_output .= '<li class="nItem nav_'. $item->attr_title .'"><a'. $attributes .'><span class="nText">';
$item_output .= $args->link_before . apply_filters( 'the_title', $item->title, $item->ID ) . $args->link_after;
$item_output .= '</span></a>';
$item_output .= $args->after;
$output .= apply_filters( 'walker_nav_menu_start_el', $item_output, $item, $depth, $args );
}
}
add_filter( 'wp_nav_menu_args', 'my_nav_menu_args' );
function my_nav_menu_args( $args ) {
$args = (object) $args;
$args->walker = new My_Walker_Nav_Menu;
return $args;
}
//
/* カスタムメニュー追加 */
function add_ancestor_class_name($classes) {
global $post;
if (is_page() && (!is_front_page()) ){
if($post->ancestors){
foreach($post->ancestors as $post_anc_id){
$post_id = $post_anc_id;
}
} else {
$post_id = $post->ID;
}
$ancestor_post = get_page($post_id);
$ancestorSlug = $ancestor_post->post_name; //スラッグ
$classes[] = $ancestorSlug;
}
return $classes;
}
add_filter('body_class','add_ancestor_class_name');
/* 存在しないページを指定された場合は 404 ページを表示する */
function redirect_404() {
//メインページ・シングルページ・アーカイブ(月別)・固定ページ 以外の指定の場合 404 ページを表示する
if(is_home() || is_single() || is_month() || is_page()) return;
include(TEMPLATEPATH . '/404.php');
exit;
}
add_action('template_redirect', 'redirect_404');
/**
* 個別投稿表示以外のURLの末尾にスラッシュ追加
*/
// add_filter( 'user_trailingslashit', 'hook_user_trailingslashit', 10, 2 );
// if ( ! function_exists( 'hook_user_trailingslashit' ) ) :
// function hook_user_trailingslashit( $string, $type_of_url ) {
// 今回の例では個別投稿のURLには.htmlが付くので、個別投稿以外にスラッシュを付与
// if ( $type_of_url != 'single' ) {
// $string = trailingslashit( $string );
// }
// return $string;
// }
// endif;
// カスタム投稿タイプの追加
// トピックス
add_action( 'init', 'create_post_type' );
function create_post_type() {
register_post_type( 'topics', // 投稿タイプ名の定義
array(
'labels' => array(
'name' => __( 'トピックス' ), // フロントで表示する投稿タイプ名
'singular_name' => __( 'トピックス' )
),
'public' => true,
'capability_type' => 'post',
'taxonomies' => array('category'),
'has_archive' => true,
'menu_position' =>5,
'supports' => array('title','editor','custom-fields','excerpt','author','trackbacks','revisions','page-attributes','thumbnail')
)
);
// しあわせ通信
register_post_type( 'message',
array(
'labels' => array(
'name' => __( 'しあわせ通信' ),
'singular_name' => __( 'しあわせ通信' )
),
'public' => true,
'capability_type' => 'post',
'taxonomies' => array('category'),
'has_archive' => false,
'menu_position' =>5,
'supports' => array('title','editor','custom-fields','excerpt','author','trackbacks','revisions','page-attributes','thumbnail')
)
);
// ご成約者の声
register_post_type( 'voice',
array(
'labels' => array(
'name' => __( 'ご成約者の声' ),
'singular_name' => __( 'ご成約者の声' )
),
'public' => true,
'capability_type' => 'post',
'taxonomies' => array('category'),
'has_archive' => false,
'menu_position' =>5,
'supports' => array('title','editor','custom-fields','excerpt','author','trackbacks','revisions','page-attributes','thumbnail')
)
);
}
// カスタム投稿タイプにカテゴリを自動付与
// しあわせ通信
function add_housecategory_automatically($post_ID) {
global $wpdb;
if(!wp_is_post_revision($post_ID)) {
$housecat = array (8,11);
wp_set_object_terms( $post_ID, $housecat, 'category');
}
}
add_action('publish_message', 'add_housecategory_automatically');
// ご成約者の声
function add_housecategory_automatically02($post_ID) {
global $wpdb;
if(!wp_is_post_revision($post_ID)) {
$housecat = array (8,12);
wp_set_object_terms( $post_ID, $housecat, 'category');
}
}
add_action('publish_voice', 'add_housecategory_automatically02');
global $my_archives_post_type;
add_filter( 'getarchives_where', 'my_getarchives_where', 10, 2 );
function my_getarchives_where( $where, $r ) {
global $my_archives_post_type;
if ( isset($r['post_type']) ) {
$my_archives_post_type = $r['post_type'];
$where = str_replace( '\'post\'', '\'' . $r['post_type'] . '\'', $where );
} else {
$my_archives_post_type = '';
}
return $where;
}
add_filter( 'get_archives_link', 'my_get_archives_link' );
function my_get_archives_link( $link_html ) {
global $my_archives_post_type;
if ( '' != $my_archives_post_type )
$add_link .= '?post_type=' . $my_archives_post_type;
$link_html = preg_replace("/href=\'(.+)\'\s/","href='$1".$add_link."'",$link_html);
return $link_html;
}
// 固定ページ一覧に順序の項目を追加
function check_post_type_support_page_attr() {
$all_post_types = get_post_types( array('show_ui' => true ), false );
if ( !isset( $_REQUEST['post_type'] ) ) {
$edit_post_type = 'post';
} elseif ( in_array( $_REQUEST['post_type'], array_keys( $all_post_types ) ) ) {
$edit_post_type = $_REQUEST['post_type'];
} else {
wp_die( __('Invalid post type') );
}
if ( post_type_supports( $edit_post_type, 'page-attributes' ) ) {
add_filter( 'manage_' . $edit_post_type . '_posts_columns', 'add_menu_order_column' );
add_action( 'admin_print_styles-edit.php', 'add_menu_order_column_styles' );
add_filter( 'manage_edit-' . $edit_post_type . '_sortable_columns', 'add_menu_order_sortable_column' );
}
}
add_action( 'load-edit.php' , 'check_post_type_support_page_attr' );
if ( defined( 'DOING_AJAX' ) && DOING_AJAX ) {
add_action( 'admin_init', 'check_post_type_support_page_attr' );
}
function add_menu_order_column( $posts_columns ) {
$new_columns = array();
foreach ( $posts_columns as $column_name => $column_display_name ) {
if ( $column_name == 'date' ) {
$new_columns['order'] = __( 'Order' );
add_action( 'manage_pages_custom_column', 'display_menu_order_column', 10, 2 );
add_action( 'manage_posts_custom_column', 'display_menu_order_column', 10, 2 );
}
$new_columns[$column_name] = $column_display_name;
}
return $new_columns;
}
function add_menu_order_sortable_column( $sortable_column ) {
$sortable_column['order'] = 'menu_order';
return $sortable_column;
}
function display_menu_order_column( $column_name, $post_id ) {
if ( $column_name == 'order' ) {
$post_id = (int)$post_id;
$post = get_post( $post_id );
echo $post->menu_order;
}
}
function add_menu_order_column_styles() {
?>
<style type="text/css" charset="utf-8">
.fixed .column-order {
width: 7%;
text-align: center;
}
</style>
<?php
}
//カスタム投稿タイプの表示順
function custom_post_archive_orderby_menu_order( $wp_query ) {
if ( $wp_query->is_post_type_archive() && post_type_supports( $wp_query->query_vars['post_type'], 'page-attributes' ) ) {
if ( ! isset( $wp_query->query_vars['orderby'] ) ) {
$wp_query->query_vars['orderby'] = 'menu_order';
}
if ( ! isset( $wp_query->query_vars['order'] ) ) {
$wp_query->query_vars['order'] = 'ASC';
}
}
}
add_action( 'pre_get_posts', 'custom_post_archive_orderby_menu_order' );
// ボタンリンク
function btn_form($btnForm) {
global $post;
$post_array_slug = array($btnForm);
foreach($post_array_slug as $value) {
$the_slug = $value;
$args=array(
'post_type' => array('page','post','message','voice'),
'name' => $the_slug
);
$my_posts = get_posts($args);
foreach($my_posts as $post) {
echo '<div class="btnGrn btnBox"><a href="';
the_permalink();
echo '"><span class="icon"></span><span class="btnText">入会申込書類請求はこちら</span><span class="btnArrow"></span></a></div>';
}
}
}
function btnGrn_link($btnGrn) {
global $post;
$post_array_slug = array($btnGrn);
foreach($post_array_slug as $value) {
$the_slug = $value;
$args=array(
'post_type' => array('page','post','message','voice'),
'name' => $the_slug
);
$my_posts = get_posts($args);
foreach($my_posts as $post) {
echo '<div class="btnGrn btnBox"><a href="';
the_permalink();
echo '"><span class="icon"></span><span class="btnText">';
the_title();
echo '</span></a></div>';
}
}
}
function btnRd_link($btnRd) {
global $post;
$post_array_slug = array($btnRd);
foreach($post_array_slug as $value) {
$the_slug = $value;
$args=array(
'post_type' => array('page','post','message','voice'),
'name' => $the_slug
);
$my_posts = get_posts($args);
foreach($my_posts as $post) {
echo '<div class="btnRd btnBox"><a href="';
the_permalink();
echo '"><span class="icon"></span><span class="btnText">';
the_title();
echo '</span></a></div>';
}
}
}
// Android条件分岐
function is_Android () {
$useragents = array(
'Android',
);
$pattern = '/'.implode('|', $useragents).'/i';
return preg_match($pattern, $_SERVER['HTTP_USER_AGENT']);
}
// mobile条件分岐
function is_mobile () {
$useragents = array(
'iPad',
'iPhone',
'Android',
);
$pattern = '/'.implode('|', $useragents).'/i';
return preg_match($pattern, $_SERVER['HTTP_USER_AGENT']);
}
?>
\ No newline at end of file
<!DOCTYPE html>
<html lang="ja">
<head>
<?php if (is_front_page()): ?>
<title><?php wp_title( '|', true, 'right' ); bloginfo('name'); ?></title>
<?php elseif(get_post_type() === 'message' ): ?>
<title>しあわせ通信 - <?php wp_title( '|', true, 'right' ); bloginfo('name'); ?></title>
<?php else : ?>
<title><?php wp_title( '|', true, 'right' ); bloginfo('name'); ?></title>
<?php endif; ?>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
<link rel="shortcut icon" href="<?php echo get_template_directory_uri(); ?>/images/favicon.ico">
<!--wp_head-->
<link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/js/lightbox/css/prettyPhoto.css">
<link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/js/slidebars/slidebars.css">
<link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/css/style.css">
<!--START : js-->
<script type="text/javascript" src="<?php echo get_template_directory_uri(); ?>/js/jquery/jquery.js?ver=1.10.2"></script>
<script type="text/javascript" src="<?php echo get_template_directory_uri(); ?>/js/jquery/jquery-migrate.min.js?ver=1.2.1"></script>
<script type="text/javascript" src="<?php echo get_template_directory_uri(); ?>/js/lightbox/js/jquery.prettyPhoto.js"></script>
<script type="text/javascript" charset="utf-8">
$(document).ready(function(){
$("#map_t a[rel^='prettyPhoto']:first").prettyPhoto({
custom_markup: '<div id="map_canvas_t" style="width:100%; height:425px"></div>',
changepicturecallback: function(){ initialize1(); }
});
$("#map_n a[rel^='prettyPhoto']:first").prettyPhoto({
custom_markup: '<div id="map_canvas_n" style="width:100%; height:425px"></div>',
changepicturecallback: function(){ initialize2(); }
});
});
</script>
<!-- Google Maps Code -->
<script type="text/javascript" src="https://maps.google.com/maps/api/js?sensor=true"></script>
<script type="text/javascript">
function initialize1() {
var latlng = new google.maps.LatLng(35.672479, 139.724729);
var myOptions = {
zoom: 17,
center: latlng,
mapTypeId: google.maps.MapTypeId.ROADMAP
};
var map = new google.maps.Map(document.getElementById("map_canvas_t"), myOptions);
var marker = new google.maps.Marker({
position: latlng,
map: map,
title:"東京オフィス"
});
}
function initialize2() {
var latlng = new google.maps.LatLng(35.173313, 136.885369);
var myOptions = {
zoom: 17,
center: latlng,
mapTypeId: google.maps.MapTypeId.ROADMAP
};
var map = new google.maps.Map(document.getElementById("map_canvas_n"), myOptions);
var marker = new google.maps.Marker({
position: latlng,
map: map,
title:"名古屋オフィス"
});
}
</script>
<!-- END Google Maps Code -->
<?php if (is_front_page()): ?>
<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/js/jquery.heightLine.js"></script>
<script>jQuery(function(){$(".sectionArea_boxM_01 .sectionBox_body_inner").heightLine({minWidth:639});});</script>
<script>jQuery(function(){$(".sectionArea_boxM_02 .sectionBox_body_inner").heightLine({minWidth:639});});</script>
<script>jQuery(function(){$(".menuSBox .sectionBox_body_inner").heightLine({minWidth:639});});</script>
<script>jQuery(function(){$(".submenuBox .sectionBox_body_inner").heightLine({minWidth:639});});</script>
<?php elseif(is_page('73')): ?>
<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/js/jquery.heightLine.js"></script>
<script>jQuery(function(){$(".sectionArea_boxM_01 .boxM").heightLine({minWidth:639});});</script>
<script>jQuery(function(){$(".sectionArea_boxM_02 .boxM").heightLine({minWidth:639});});</script>
<?php elseif(is_page('106')): ?>
<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/js/jquery.heightLine.js"></script>
<script>jQuery(function(){$(".bannerList a").heightLine({minWidth:639});});</script>
<?php else : ?>
<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/js/jquery.heightLine.js"></script>
<script>jQuery(function(){$(".columnBoxCol3").heightLine({minWidth:767});});</script>
<?php endif; ?>
<?php if ( is_Android() ) : ?>
<script type="text/javascript" src="<?php echo get_template_directory_uri(); ?>/js/slidebars/slidebars-Android.js"></script>
<?php else: ?>
<script type="text/javascript" src="<?php echo get_template_directory_uri(); ?>/js/slidebars/slidebars.js"></script>
<?php endif; ?>
<script type="text/javascript" src="<?php echo get_template_directory_uri(); ?>/js/script.js"></script>
<!--END : js-->
<!--[if lte IE 9 ]>
<link rel="stylesheet" id="style-css" href="<?php bloginfo('template_url'); ?>/css/ie.css" type="text/css" media="all" />
<![endif]-->
<!--[if lte IE 8]>
<link rel="stylesheet" id="style-css" href="<?php bloginfo('template_url'); ?>/css/ie8.css" type="text/css" media="all" />
<script type="text/javascript" src="<?php echo get_template_directory_uri(); ?>/js/html5.js"></script>
<script type="text/javascript" src="<?php echo get_template_directory_uri(); ?>/js/css3-mediaqueries.js"></script>
<script type="text/javascript" src="<?php echo get_template_directory_uri(); ?>/js/jquery.backgroundSize.js"></script>
<![endif]-->
<?php wp_head(); ?>
</head>
<body id="<?php if (is_front_page()): ?>home<?php elseif(is_post_type_archive( 'topics' )): ?>topicsArchive<?php elseif(get_post_type() === 'topics' ): ?>topics_page<?php else : ?><?php $post = get_page($page_id); echo $post->post_name; ?><?php endif; ?>" class="<?php if (get_post_type() === 'voice,message'): ?>happyreport_page<?php elseif(in_category( array( 8 ) )): ?>happyreport_page<?php elseif(is_page( array( 633 ) )): ?>happyreport_page happyreport_pageTop<?php elseif(in_category( array( 3 ) )): ?>about_page<?php elseif(in_category( array( 3 ) )): ?>about_page<?php elseif(in_category( array( 4 ) )): ?>system_page<?php else : ?>normal<?php endif; ?>">
<!--[if lt IE 8]>
<div id="caution" style='border: 1px solid #F7941D; background: #FEEFDA; text-align: center; clear: both; height: 75px; position: absolute; z-index: 999;'>
<div style='position: absolute; right: 3px; top: 3px; font-family: courier new; font-weight: bold;'><a href='#' onclick='javascript:this.parentNode.parentNode.style.display="none"; return false;'><img src='http://www.ie6nomore.com/files/theme/ie6nomore-cornerx.jpg' style='border: none;' alt='Close this notice'/></a></div>
<div style='width: 640px; margin: 0 auto; text-align: left; padding: 0; overflow: hidden; color: black;'>
<div style='width: 75px; float: left;'><img src='http://www.ie6nomore.com/files/theme/ie6nomore-warning.jpg' alt='Warning!'/></div>
<div style='width: 275px; float: left; font-family: Arial, sans-serif;'>
<div style='font-size: 14px; font-weight: bold; margin-top: 12px;'>You are using an outdated browser</div>
<div style='font-size: 12px; margin-top: 6px; line-height: 12px;'>For a better experience using this site, please upgrade to a modern web browser.</div>
</div>
<div style='width: 75px; float: left;'><a href='http://www.firefox.com' target='_blank'><img src='http://www.ie6nomore.com/files/theme/ie6nomore-firefox.jpg' style='border: none;' alt='Get Firefox 3.5'/></a></div>
<div style='width: 75px; float: left;'><a href='http://www.browserforthebetter.com/download.html' target='_blank'><img src='http://www.ie6nomore.com/files/theme/ie6nomore-ie8.jpg' style='border: none;' alt='Get Internet Explorer 8'/></a></div>
<div style='width: 73px; float: left;'><a href='http://www.apple.com/safari/download/' target='_blank'><img src='http://www.ie6nomore.com/files/theme/ie6nomore-safari.jpg' style='border: none;' alt='Get Safari 4'/></a></div>
<div style='float: left;'><a href='http://www.google.com/chrome' target='_blank'><img src='http://www.ie6nomore.com/files/theme/ie6nomore-chrome.jpg' style='border: none;' alt='Get Google Chrome'/></a></div>
</div>
</div>
<![endif]-->
<div id="page">
<div id="sb-site">
<div id="container">
<div id="content">
<div id="header">
<div class="inner">
<h1 class="siteTitle"><img src="<?php bloginfo('template_url'); ?>/images/ttl_h1_DFC.gif" alt="<?php bloginfo( 'name' ); ?>"></h1>
<div class="uiNav">
<div class="btn_form"><?php btn_form('form'); ?><!-- /.btn_form --></div>
<div class="btn_map_t"><img src="<?php bloginfo('template_url'); ?>/images/text_header_tel_t.gif" width="252" height="20" alt="東京オフィス:03-3405-8261" class="imgTll">
<p id="map_t"><a href="#?custom=true&width=630&height=420" rel="prettyPhoto" title="東京都港区南青山1-1-1 新青山ビル西館2階" data-link="https://www.google.co.jp/maps?f=q&amp;source=embed&amp;hl=ja&amp;geocode=&amp;q=%E6%9D%B1%E4%BA%AC%E9%83%BD%E6%B8%AF%E5%8C%BA%E5%8D%97%E9%9D%92%E5%B1%B11-1-1%E6%96%B0%E9%9D%92%E5%B1%B1%E3%83%93%E3%83%AB%E8%A5%BF%E9%A4%A82%E9%9A%8E&amp;aq=&amp;sll=36.018536,139.305715&amp;sspn=0.581477,0.798569&amp;brcurrent=3,0x60188c820ac932eb:0xc68079dd10afd971,0&amp;ie=UTF8&amp;hq=&amp;hnear=%E6%9D%B1%E4%BA%AC%E9%83%BD%E6%B8%AF%E5%8C%BA%E5%8D%97%E9%9D%92%E5%B1%B1%EF%BC%91%E4%B8%81%E7%9B%AE%EF%BC%91%E2%88%92%EF%BC%91%EF%BC%99+%E9%9D%92%E5%B1%B1%E3%83%84%E3%82%A4%E3%83%B3%E3%83%93%E3%83%AB%E6%96%B0%E9%9D%92%E5%B1%B1%E3%83%93%E3%83%AB%E3%83%82%E3%83%B3%E3%82%B0%E8%A5%BF%E9%A4%A8&amp;t=m&amp;z=14&amp;ll=35.672479,139.724729">
<img src="<?php bloginfo('template_url'); ?>/images/btn_header_map.png" width="52" height="20" alt="">
</a></p></div>
<div class="btn_map_n"><img src="<?php bloginfo('template_url'); ?>/images/text_header_tel_n.gif" width="252" height="20" alt="名古屋オフィス:052-569-2915" class="imgTll">
<p id="map_n"><a href="#?custom=true&width=630&height=420" rel="prettyPhoto" title="名古屋市中村区名駅3-16-22 名古屋ダイヤビル1号館7階" data-link="https://www.google.co.jp/maps?f=q&amp;source=embed&amp;hl=ja&amp;geocode=&amp;q=%E5%90%8D%E5%8F%A4%E5%B1%8B%E5%B8%82%E4%B8%AD%E6%9D%91%E5%8C%BA%E5%90%8D%E9%A7%853%EF%BC%8D16%EF%BC%8D22%E5%90%8D%E5%8F%A4%E5%B1%8B%E3%83%80%E3%82%A4%E3%83%A4%E3%83%93%E3%83%AB1%E5%8F%B7%E9%A4%A87%E9%9A%8E&amp;aq=&amp;sll=37.996163,159.082031&amp;sspn=70.195097,102.216797&amp;brcurrent=3,0x600376dcc14c8d61:0x6070d361caa3d5eb,0&amp;ie=UTF8&amp;hq=&amp;hnear=%E6%84%9B%E7%9F%A5%E7%9C%8C%E5%90%8D%E5%8F%A4%E5%B1%8B%E5%B8%82%E4%B8%AD%E6%9D%91%E5%8C%BA%E5%90%8D%E9%A7%85%EF%BC%93%E4%B8%81%E7%9B%AE%EF%BC%91%EF%BC%96%E2%88%92%EF%BC%92%EF%BC%92+%E5%90%8D%E5%8F%A4%E5%B1%8B%E3%83%80%E3%82%A4%E3%83%A4%E3%83%93%E3%83%AB%E3%83%87%E3%82%A3%E3%83%B3%E3%82%B0%EF%BC%91%E5%8F%B7%E9%A4%A8&amp;t=m&amp;z=14&amp;ll=35.173313,136.88537">
<img src="<?php bloginfo('template_url'); ?>/images/btn_header_map.png" width="52" height="20" alt="">
</a></p></div>
<p class="icon_tabSlide">
<span class="iconTab sb-toggle-right openSlide"><img src="<?php bloginfo('template_url'); ?>/images/icon_tabSlide.gif" width="40" height="40" alt="iconTab"></span>
<span class="iconTab sb-close closeSlide"><img src="<?php bloginfo('template_url'); ?>/images/icon_tabSlide.gif" width="40" height="40" alt="iconTab"></span>
</p>
<!-- /.uiNav --></div>
<!-- /.inner --></div>
<!-- /#header --></div>
<div id="globalNavBox">
<div class="inner">
<?php wp_nav_menu( array( 'menu' => 'globalNav', 'container' => 'false', 'menu_id' => 'globalNav' ) ); ?>
<!-- /.inner --></div>
<!-- /#globalNavBox --></div>
\ No newline at end of file
<?php
/**
* Template Name: [トップページ]
*/ get_header(); ?>
<!-- main -->
<div id="mainVisual">
<div class="shadow"><div class="inner">
<img src="<?php bloginfo('template_url'); ?>/images/mainVisual_780.png" alt="" class="img780">
<img src="<?php bloginfo('template_url'); ?>/images/mainVisual.png" alt="ダイヤモンドファミリークラブは三菱グループ社員の福利厚生と社会貢献を目的に設立した結婚紹介センターです" class="imgPC">
<div class="visualCopy">
<h2>ダイヤモンドファミリークラブは三菱グループ社員の福利厚生と社会貢献を目的に設立した結婚紹介センターです</h2>
<p>専任のカウンセラーが長年培った経験と実績をもとに、ご紹介から交際・ご婚約まで親身になってお世話させていただきます。<br>
<br>
三菱グループの安心と信頼の場で新しい出会いを広げてみませんか。</p>
<div class="btn_form"><?php btn_form('form'); ?><!-- /.btn_form --></div>
<div class="btn_member"><?php btnRd_link('member'); ?><!-- /.btn_member --></div>
</div>
<!-- /.inner --></div><!-- /.shadow --></div>
<!-- /.mainVisual --></div>
<div id="mainContent">
<div class="inner">
<h4 class="ttl_sp">ご案内</h4>
<div class="topixBox sectionBox boxL accordion">
<div class="sectionBox_shadow">
<div class="sectionBox_inner">
<div class="sectionBox_header">
<h3><span class="icon"></span>トピックス<span class="linkText"><a href="<?php echo home_url(); ?>/topics.html">トピックス一覧へ</a></span><span class="btnArrow"></span></h3>
<!-- /.sectionBox_header --></div>
<div class="sectionBox_body">
<div class="sectionBox_body_inner">
<?php
$loop = new WP_Query(array("post_type" => "topics","posts_per_page" => 3,"orderby" => "date","order" => "DESC"));
if ( $loop->have_posts() ) : while($loop->have_posts()): $loop->the_post();
?>
<?php if(empty($post->post_content)) : ?>
<p><span class="date"><?php the_time('y.m.d'); ?></span><?php
$days = 30; //Newマーク表示の日数
$daysInt = ($days-1)*86400;
$today = time();
$entry = get_the_time('U');
$dayago = $today-$entry;
if ($dayago < $daysInt) {
$blogUrl = get_bloginfo('template_url');
echo '<span class="new">NEW</span>';
}
?><span class="text"><?php the_title(); ?></span></p>
<?php else : ?>
<p><a href="<?php the_permalink() ?>"><span class="date"><?php the_time('y.m.d'); ?></span><?php
$days = 30; //Newマーク表示の日数
$daysInt = ($days-1)*86400;
$today = time();
$entry = get_the_time('U');
$dayago = $today-$entry;
if ($dayago < $daysInt) {
$blogUrl = get_bloginfo('template_url');
echo '<span class="new">NEW</span>';
}
?><span class="text"><?php the_title(); ?></span></a></p>
<?php endif; ?>
<?php endwhile; endif; ?>
<h4 class="ttl_sp"><span class="linkText"><a href="<?php echo home_url(); ?>/topics.html">トピックス一覧へ</a></span></h4>
<!-- /.sectionBox_body_inner --></div>
<!-- /.sectionBox_body --></div>
<div class="sectionBox_btm"></div>
<!-- /.sectionBox_inner --></div>
<!-- /.sectionBox_shadow --></div>
<!-- /.topixBox --></div>
<div class="sectionArea_boxM sectionArea_boxM_01">
<?php
$args = array(
'post__in' => array(88,86),
'posts_per_page' => 2,
'meta_key=num&orderby' => 'meta_value_num&order=ASC',
'order' => 'ASC'
); ?>
<?php $my_query = new WP_Query( $args ); ?>
<?php while ( $my_query->have_posts() ) : $my_query->the_post(); ?>
<div class="<?php nskw_subtitle(); ?>Box sectionBox boxM accordion">
<div class="sectionBox_shadow">
<div class="sectionBox_inner">
<div class="sectionBox_header">
<h3><span class="icon"></span><?php the_title(); ?><span class="btnArrow"></span></h3>
<!-- /.sectionBox_header --></div>
<div class="sectionBox_body">
<div class="sectionBox_body_inner">
<span class="topBox_tmb"><img src="<?php $image = wp_get_attachment_image_src(get_post_meta($post->ID, 'topBox_tmb', true), 'large'); echo $image[0];?>" alt="<?php the_title(); ?>"></span>
<span class="topBox_tmbS"><img src="<?php $image = wp_get_attachment_image_src(get_post_meta($post->ID, 'topBox_tmbS', true), 'large'); echo $image[0];?>" alt="<?php the_title(); ?>"></span>
<div class="text officeText"><?php echo (post_custom('TopSubject')); ?></div>
<div class="btn_<?php nskw_subtitle(); ?>"><div class="btnRd btnBox"><a href="<?php the_permalink(); ?>"><span class="icon"></span><span class="btnText"><?php echo nl2br(post_custom('linkText')); ?></span><span class="btnArrow"></span></a></div><!-- /.btn_member --></div>
<!-- /.sectionBox_body_inner --></div>
<!-- /.sectionBox_body --></div>
<div class="sectionBox_btm"></div>
<!-- /.sectionBox_inner --></div>
<!-- /.sectionBox_shadow --></div>
<!-- /.topixBox --></div>
<?php endwhile; // end of the loop. ?>
<?php wp_reset_postdata(); ?>
<!-- /.boxM --></div>
<div class="sectionArea_boxM sectionArea_boxM_02">
<?php
$args = array(
'post_type' => array('post','page'),
'post__in' => array(75),
'posts_per_page' => 1,
'orderby' => 'ID',
'order' => 'ASC'
); ?>
<?php $my_query = new WP_Query( $args ); ?>
<?php while ( $my_query->have_posts() ) : $my_query->the_post(); ?>
<div class="<?php nskw_subtitle(); ?>Box sectionBox boxM accordion">
<div class="sectionBox_shadow">
<div class="sectionBox_inner">
<div class="sectionBox_header">
<h3><span class="icon"></span><?php the_title(); ?><span class="btnArrow"></span></h3>
<!-- /.sectionBox_header --></div>
<div class="sectionBox_body">
<div class="sectionBox_body_inner">
<span class="topBox_tmb"><img src="<?php $image = wp_get_attachment_image_src(get_post_meta($post->ID, 'topBox_tmb', true), 'large'); echo $image[0];?>" alt="<?php the_title(); ?>"></span>
<span class="topBox_tmbS"><img src="<?php $image = wp_get_attachment_image_src(get_post_meta($post->ID, 'topBox_tmbS', true), 'large'); echo $image[0];?>" alt="<?php the_title(); ?>"></span>
<p class="text"><?php echo nl2br(post_custom('TopSubject')); ?></p>
<div class="btn_<?php nskw_subtitle(); ?>"><div class="btnRd btnBox"><a href="<?php the_permalink(); ?>"><span class="icon"></span><span class="btnText"><?php echo nl2br(post_custom('linkText')); ?></span><span class="btnArrow"></span></a></div><!-- /.btn_member --></div>
<!-- /.sectionBox_body_inner --></div>
<!-- /.sectionBox_body --></div>
<div class="sectionBox_btm"></div>
<!-- /.sectionBox_inner --></div>
<!-- /.sectionBox_shadow --></div>
<!-- /.boxM --></div>
<?php endwhile; // end of the loop. ?>
<?php wp_reset_postdata(); ?>
<?php
$args = array(
'post_type' => array('post','page'),
'post__in' => array(131),
'posts_per_page' => 1,
'orderby' => 'ID',
'order' => 'ASC'
); ?>
<?php $my_query = new WP_Query( $args ); ?>
<?php while ( $my_query->have_posts() ) : $my_query->the_post(); ?>
<div class="<?php nskw_subtitle(); ?>Box sectionBox boxM accordion">
<div class="sectionBox_shadow">
<div class="sectionBox_inner">
<div class="sectionBox_header">
<h3><span class="icon"></span>入会申込書類のご請求<span class="btnArrow"></span></h3>
<!-- /.sectionBox_header --></div>
<div class="sectionBox_body">
<div class="sectionBox_body_inner">
<span class="topBox_tmb"><img src="<?php bloginfo('template_url'); ?>/images/top_box_tmb_04S.jpg" alt="<?php the_title(); ?>"></span>
<span class="topBox_tmbS"><img src="<?php bloginfo('template_url'); ?>/images/top_box_tmb_04S.jpg" alt="<?php the_title(); ?>"></span>
<p class="text"><?php echo nl2br(post_custom('TopSubject')); ?></p>
<div class="btn_<?php nskw_subtitle(); ?>"><div class="btnGrn btnBox"><a href="<?php the_permalink(); ?>"><span class="icon"></span><span class="btnText">資料請求はこちら</span><span class="btnArrow"></span></a></div><!-- /.btn_member --></div>
<!-- /.sectionBox_body_inner --></div>
<!-- /.sectionBox_body --></div>
<div class="sectionBox_btm"></div>
<!-- /.sectionBox_inner --></div>
<!-- /.sectionBox_shadow --></div>
<!-- /.boxM --></div>
<?php endwhile; // end of the loop. ?>
<?php wp_reset_postdata(); ?>
<!-- /.sectionArea --></div>
<h4 class="ttl_sp">メニュー</h4>
<div class="sectionArea_boxS menuSBox">
<?php
$args = array(
'post_type' => array('post','page','message'),
'post__in' => array(73,90,100,102,104,633,106,131),
'posts_per_page' => 8,
'meta_key' => 'num',
'orderby' => 'meta_value_num',
'order' => 'ASC'
); ?>
<?php $my_query = new WP_Query( $args ); ?>
<?php while ( $my_query->have_posts() ) : $my_query->the_post(); ?>
<div class="<?php global $post; echo $post->post_name; ?>Box sectionBox boxS">
<div class="sectionBox_shadow">
<div class="sectionBox_inner">
<div class="sectionBox_header">
<h3><a href="<?php the_permalink(); ?>"><?php echo nl2br(post_custom('linkText')); ?><span class="btnArrow"></span></a></h3>
<!-- /.sectionBox_header --></div>
<div class="sectionBox_body">
<div class="sectionBox_body_inner">
<p class="img"><img src="<?php $image = wp_get_attachment_image_src(get_post_meta($post->ID, 'topBox_tmb', true), 'large'); echo $image[0];?>" alt="<?php the_title(); ?>"></p>
<p class="text"><?php echo nl2br(post_custom('TopSubject')); ?></p>
<!-- /.sectionBox_body_inner --></div>
<!-- /.sectionBox_body --></div>
<div class="sectionBox_btm"></div>
<!-- /.sectionBox_inner --></div>
<!-- /.sectionBox_shadow --></div>
<!-- /.boxS --></div>
<?php endwhile; // end of the loop. ?>
<?php wp_reset_postdata(); ?>
<!-- /.sectionArea --></div>
<div class="sectionArea_boxS submenuBox">
<?php
$args = array(
'post_type' => array('post','page','message'),
'post__in' => array(19,23,21),
'posts_per_page' => 3,
'meta_key' => 'num',
'orderby' => 'meta_value_num',
'order' => 'ASC'
); ?>
<?php $my_query = new WP_Query( $args ); ?>
<?php while ( $my_query->have_posts() ) : $my_query->the_post(); ?>
<div class="<?php nskw_subtitle(); ?>Box sectionBox boxS">
<div class="sectionBox_shadow">
<div class="sectionBox_inner">
<div class="sectionBox_header">
<h3><a href="<?php the_permalink(); ?>"><?php echo nl2br(post_custom('linkText')); ?><span class="btnArrow"></span></a></h3>
<!-- /.sectionBox_header --></div>
<div class="sectionBox_body">
<div class="sectionBox_body_inner">
<p class="img"><img src="<?php $image = wp_get_attachment_image_src(get_post_meta($post->ID, 'topBox_tmb', true), 'large'); echo $image[0];?>" alt="<?php the_title(); ?>"></p>
<p class="text"><?php echo nl2br(post_custom('TopSubject')); ?></p>
<!-- /.sectionBox_body_inner --></div>
<!-- /.sectionBox_body --></div>
<div class="sectionBox_btm"></div>
<!-- /.sectionBox_inner --></div>
<!-- /.sectionBox_shadow --></div>
<!-- /.boxS --></div>
<?php endwhile; // end of the loop. ?>
<?php wp_reset_postdata(); ?>
<!-- /.sectionArea --></div>
<!-- /.inner --></div>
<!-- /mainContent --></div>
<?php get_footer(); ?>
\ No newline at end of file
<?php if ( is_Android() ) : ?>
<div class="sb-slidebar sb-right" style="display:none;">
<?php else: ?>
<div class="sb-slidebar sb-right">
<?php endif; ?>
<ul id="slidebarNav" class="menu"><li class="nItem nav_g_home"><a href="<?php echo home_url(); ?>/"><span class="nText">ホーム<span class="icon"></span></span></a></li>
<li class="nItem nav_g_about"><a href="javascript:void(0)"><span class="nText">ダイヤモンドファミリークラブとは<span class="icon"></span></span></a>
<ul class="sub-menu close">
<li class="nItem nav_gs_information"><a href="<?php echo home_url(); ?>/about/information.html"><span class="nText">営業案内<span class="icon"></span></span></a></li>
<li class="nItem nav_gs_qualification"><a href="<?php echo home_url(); ?>/about/qualification.html"><span class="nText">入会資格<span class="icon"></span></span></a></li>
<li class="nItem nav_gs_club"><a href="<?php echo home_url(); ?>/about/club.html"><span class="nText">クラブ概要<span class="icon"></span></span></a></li>
<li class="nItem nav_gs_greeting"><a href="<?php echo home_url(); ?>/about/greeting.html"><span class="nText">代表ご挨拶<span class="icon"></span></span></a></li>
<li class="nItem nav_gs_tokyo"><a href="<?php echo home_url(); ?>/about/tokyo-office.html"><span class="nText">東京オフィスのご案内<span class="icon"></span></span></a></li>
<li class="nItem nav_gs_nagoya"><a href="<?php echo home_url(); ?>/about/nagoya-office.html"><span class="nText">名古屋オフィスのご案内<span class="icon"></span></span></a></li>
</ul></li>
<li class="nItem nav_g_system"><a href="javascript:void(0)"><span class="nText">ご紹介システム<span class="icon"></span></span></a>
<ul class="sub-menu close">
<li class="nItem nav_gs_flow"><a href="<?php echo home_url(); ?>/system/flow.html"><span class="nText">ご入会までの流れ<span class="icon"></span></span></a></li>
<li class="nItem nav_gs_system"><a href="<?php echo home_url(); ?>/system/system.html"><span class="nText">カウンセラー制度<span class="icon"></span></span></a></li>
<li class="nItem nav_gs_counselor"><a href="<?php echo home_url(); ?>/system/counselor.html"><span class="nText">カウンセラー紹介<span class="icon"></span></span></a></li>
<li class="nItem nav_gs_facility"><a href="<?php echo home_url(); ?>/system/facility.html"><span class="nText">施設のご紹介<span class="icon"></span></span></a></li>
</ul>
</li>
<li class="nItem nav_g_profile"><a href="<?php echo home_url(); ?>/profile/profile.html"><span class="nText">会員プロフィール<span class="icon"></span></span></a></li>
<li class="nItem nav_g_qa"><a href="<?php echo home_url(); ?>/qa/qa.html"><span class="nText">Q&A<span class="icon"></span></span></a></li>
<li class="nItem nav_g_parents"><a href="<?php echo home_url(); ?>/parents/parents.html"><span class="nText">ご両親様へ<span class="icon"></span></span></a></li>
<li class="nItem nav_g_happyreport"><a href="javascript:void(0)"><span class="nText">しあわせ通信<span class="icon"></span></span></a>
<ul class="sub-menu close">
<li class="nItem nav_gs_message"><a href="<?php echo home_url(); ?>/message.html"><span class="nText">しあわせ通信<span class="icon"></span></span></a></li>
<li class="nItem nav_gs_voice"><a href="<?php echo home_url(); ?>/voice/voice01.html"><span class="nText">ご成約者の声<span class="icon"></span></span></a></li>
<li class="nItem nav_gs_useful"><a href="<?php echo home_url(); ?>/happyreport/useful.html"><span class="nText">お役立ち情報<span class="icon"></span></span></a></li>
<!--<li class="nItem nav_gs_guide"><a href="<?php echo home_url(); ?>/happyreport/guide.html"><span class="nText">青山界隈情報<span class="icon"></span></span></a></li>-->
</ul>
</li>
</ul>
<ul id="slidebarSabNav" class="menu">
<li class="nItem nav_sab_link"><a href="<?php echo home_url(); ?>/link.html"><span class="nText">おすすめリンク<span class="icon"></span></span></a></li>
<li class="nItem nav_sab_form"><a href="<?php echo home_url(); ?>/form.html"><span class="nText">入会申込書類のご請求フォーム<span class="icon"></span></span></a></li>
<li class="nItem nav_sab_sitepolicy"><a href="<?php echo home_url(); ?>/sitepolicy.html"><span class="nText">このサイトについて<span class="icon"></span></span></a></li>
<li class="nItem nav_sab_privacypolicy"><a href="<?php echo home_url(); ?>/privacypolicy.html"><span class="nText">プライバシーポリシー<span class="icon"></span></span></a></li>
<li class="nItem nav_sab_sitemap"><a href="<?php echo home_url(); ?>/sitemap.html"><span class="nText">サイトマップ<span class="icon"></span></span></a></li>
</ul>
<!-- /.sb-slidebar --></div>
......@@ -154,7 +154,7 @@ $dayago = $today-$entry;
</div>
<div class="sectionArea_boxM sectionArea_boxM_02">
<div class="Box sectionBox boxM accordion">
<div class="qualificationBox sectionBox boxM accordion">
<div class="sectionBox_shadow">
<div class="sectionBox_inner">
<div class="sectionBox_header">
......@@ -166,7 +166,7 @@ $dayago = $today-$entry;
<span class="topBox_tmb"><img src="http://www.diamond-familyclub.com/wp-content/uploads/top_box_tmb_03.jpg" alt="入会資格"></span>
<span class="topBox_tmbS"><img src="http://www.diamond-familyclub.com/wp-content/uploads/top_box_tmb_03S.jpg" alt="入会資格"></span>
<p class="text">加盟会社(三菱グループと推薦会社・推薦団体)にご勤務・所属されている方(ご退職されました方を含む)とその家族及びご紹介の方がお申込みいただけます。なお年齢、学歴、再婚等の制限はありません。</p>
<div class="btn_">
<div class="btn_qualification">
<div class="btnRd btnBox"><a href="<?php echo home_url(); ?>/about/qualification.html"><span class="icon"></span><span class="btnText">加盟会社一覧</span><span class="btnArrow"></span></a></div><!-- /.btn_member -->
</div>
<!-- /.sectionBox_body_inner -->
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment