add initial codes.
22
404.php
Normal file
@ -0,0 +1,22 @@
|
||||
<?php get_header(); ?>
|
||||
|
||||
<!-- [ #container ] -->
|
||||
<div id="container" class="innerBox">
|
||||
<!-- [ #content ] -->
|
||||
<div id="content" class="content wide">
|
||||
|
||||
<div class="error404">
|
||||
<?php get_search_form(); ?>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
// focus on search field after it has loaded
|
||||
document.getElementById('s') && document.getElementById('s').focus();
|
||||
</script>
|
||||
|
||||
</div>
|
||||
<!-- [ /#content ] -->
|
||||
</div>
|
||||
<!-- [ /#container ] -->
|
||||
|
||||
<?php get_footer(); ?>
|
90
footer.php
Normal file
@ -0,0 +1,90 @@
|
||||
<?php
|
||||
/**
|
||||
* The template for displaying the footer.
|
||||
*/
|
||||
?>
|
||||
</div><!-- #main -->
|
||||
|
||||
<div id="back-top">
|
||||
<a href="#wrap">
|
||||
<img id="pagetop" src="<?php echo get_template_directory_uri(); ?>/js/res-vektor/images/footer_pagetop.png" alt="PAGETOP" />
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<!-- [ #footerSection ] -->
|
||||
<div id="footerSection">
|
||||
|
||||
<div id="pagetop">
|
||||
<div id="pagetopInner" class="innerBox">
|
||||
<a href="#wrap">PAGETOP</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="footMenu">
|
||||
<div id="footMenuInner" class="innerBox">
|
||||
<?php wp_nav_menu( array(
|
||||
'theme_location' => 'FooterNavi',
|
||||
'fallback_cb' => ''
|
||||
) ); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- [ #footer ] -->
|
||||
<div id="footer">
|
||||
<!-- [ #footerInner ] -->
|
||||
<div id="footerInner" class="innerBox">
|
||||
<!--
|
||||
<dl id="footerOutline">
|
||||
<dt><?php biz_vektor_footerSiteName(); ?></dt>
|
||||
<dd>
|
||||
<?php biz_vektor_print_footContact(); ?>
|
||||
</dd>
|
||||
</dl>
|
||||
-->
|
||||
<!-- [ #footerSiteMap ] -->
|
||||
<div id="footerSiteMap">
|
||||
<?php wp_nav_menu(
|
||||
array(
|
||||
'theme_location' => 'FooterSiteMap',
|
||||
'fallback_cb' => ''
|
||||
) ); ?>
|
||||
</div>
|
||||
<!-- [ /#footerSiteMap ] -->
|
||||
</div>
|
||||
<!-- [ /#footerInner ] -->
|
||||
</div>
|
||||
<!-- [ /#footer ] -->
|
||||
|
||||
<!-- [ #siteBottom ] -->
|
||||
<div id="siteBottom">
|
||||
<div id="siteBottomInner" class="innerBox">
|
||||
<div id="copy">Copyright RIKEN, Japan. All rights reserved.</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- [ /#siteBottom ] -->
|
||||
</div>
|
||||
<!-- [ /#footerSection ] -->
|
||||
</div>
|
||||
<!-- [ /#wrap ] -->
|
||||
<?php wp_footer();?>
|
||||
<script>
|
||||
jQuery(window).load(function() {
|
||||
jQuery('#topFreeArea').each(function(i, box) {
|
||||
var maxHeight = 0;
|
||||
jQuery(box).find('.topbox').each(function() {
|
||||
if (jQuery(this).height() > maxHeight) maxHeight = jQuery(this).height();
|
||||
});
|
||||
jQuery(box).find('.topbox').height(maxHeight);
|
||||
});
|
||||
|
||||
jQuery('#container').each(function(i, box) {
|
||||
var maxHeight = 0;
|
||||
jQuery(box).find('.side').each(function() {
|
||||
if (jQuery(this).height() > maxHeight) maxHeight = jQuery(this).height();
|
||||
});
|
||||
jQuery(box).find('.side').height(maxHeight);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
83
front-page.php
Normal file
@ -0,0 +1,83 @@
|
||||
<?php
|
||||
/**
|
||||
* BizVektor Front-Page.php
|
||||
*
|
||||
* @package BizVektor
|
||||
* @version 1.6.0
|
||||
*/
|
||||
|
||||
get_header();
|
||||
?>
|
||||
<!-- [ #container ] -->
|
||||
<div id="container" class="innerBox">
|
||||
<!-- [ #content ] -->
|
||||
<div id="content" class="content">
|
||||
<?php biz_vektor_contentMain_before();?>
|
||||
|
||||
<?php if ( is_active_sidebar('topimg-widget-area') ) : ?>
|
||||
<?php dynamic_sidebar('topimg-widget-area'); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<div id="content-main">
|
||||
|
||||
<?php if ( is_active_sidebar('topbnr-widget-area') ) : ?>
|
||||
<?php dynamic_sidebar('topbnr-widget-area'); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php // get_template_part('module_topPR'); ?>
|
||||
<?php if ( function_exists( 'biz_vektor_topSpecial' ) ): biz_vektor_topSpecial(); endif; ?>
|
||||
<?php //get_template_part('module_top_list_info'); ?>
|
||||
<?php get_template_part('module_top_list_post'); ?>
|
||||
|
||||
<?php
|
||||
if ( !apply_filters('biz_vektor_extra_main_content', false) ):
|
||||
|
||||
// page content
|
||||
if ( have_posts()) : the_post();
|
||||
if (get_post_type() === 'page') :
|
||||
$topFreeContent = NULL;
|
||||
$topFreeContent = get_the_content();
|
||||
if ($topFreeContent) : ?>
|
||||
<div id="topFreeArea">
|
||||
<?php the_content(); ?>
|
||||
<?php wp_link_pages( array( 'before' => '<div class="page-link">' . 'Pages:', 'after' => '</div>' ) ); ?>
|
||||
</div>
|
||||
<?php endif; // $topFreeContent ?>
|
||||
<?php endif; // get_post_type() === 'page' ?>
|
||||
|
||||
<?php endif; // have_posts() ?>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<?php do_action( 'biz_vektor_fbLikeBoxDisplay'); ?>
|
||||
<?php do_action( 'biz_vektor_snsBtns' ); ?>
|
||||
<?php do_action( 'biz_vektor_fbComments'); ?>
|
||||
|
||||
</div>
|
||||
<!-- #content-main -->
|
||||
<?php biz_vektor_contentMain_after();?>
|
||||
</div>
|
||||
<!-- [ /#content ] -->
|
||||
|
||||
<?php $option = biz_vektor_get_theme_options(); if( !$option['topSideBarDisplay'] ): ?>
|
||||
<!-- [ #sideTower ] -->
|
||||
<div id="sideTower" class="sideTower">
|
||||
<?php
|
||||
if ( is_active_sidebar( 'common-side-top-widget-area' ) ) dynamic_sidebar( 'common-side-top-widget-area' );
|
||||
if ( is_active_sidebar( 'top-side-widget-area' ) ) :
|
||||
dynamic_sidebar( 'top-side-widget-area' );
|
||||
else :
|
||||
// ウィジェットに設定がない場合
|
||||
if (function_exists('biz_vektor_contactBtn')) biz_vektor_contactBtn();
|
||||
if (function_exists('biz_vektor_snsBnrs')) biz_vektor_snsBnrs();
|
||||
endif;
|
||||
if ( is_active_sidebar( 'common-side-bottom-widget-area' ) ) dynamic_sidebar( 'common-side-bottom-widget-area' );
|
||||
?>
|
||||
</div>
|
||||
<!-- [ /#sideTower ] -->
|
||||
<?php biz_vektor_sideTower_after();?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<!-- [ /#container ] -->
|
||||
|
||||
<?php get_footer(); ?>
|
187
functions.php
Normal file
@ -0,0 +1,187 @@
|
||||
<?php
|
||||
|
||||
defined('ABSPATH') || exit();
|
||||
|
||||
// enable auto update
|
||||
add_filter('allow_major_auto_core_updates', '__return_true');
|
||||
add_filter('allow_minor_auto_core_updates', '__return_true');
|
||||
add_filter('auto_update_theme', '__return_true');
|
||||
add_filter('auto_update_plugin', '__return_true');
|
||||
|
||||
// remove parent theme defined filters and actions
|
||||
add_action('after_setup_theme', 'cbsonline_disable_parent_defines');
|
||||
function cbsonline_disable_parent_defines() {
|
||||
// remove 'ico - image/x-icon' mime support
|
||||
remove_filter('upload_mimes', 'biz_vektor_mine_types');
|
||||
// remove web fonts
|
||||
remove_action('wp_enqueue_scripts','biz_vektor_addWebFonts');
|
||||
// remove buggy biz_vector script
|
||||
remove_action('wp_head','biz_vektor_addJScripts');
|
||||
}
|
||||
|
||||
// disable emoji
|
||||
remove_action('wp_head', 'print_emoji_detection_script', 7);
|
||||
remove_action('admin_print_scripts', 'print_emoji_detection_script');
|
||||
remove_action('wp_print_styles', 'print_emoji_styles');
|
||||
remove_action('admin_print_styles', 'print_emoji_styles');
|
||||
remove_filter('the_content_feed', 'wp_staticize_emoji');
|
||||
remove_filter('comment_text_rss', 'wp_staticize_emoji');
|
||||
remove_filter('wp_mail', 'wp_staticize_emoji_for_email');
|
||||
// add_filter('tiny_mce_plugins', 'disable_emojis_tinymce');
|
||||
|
||||
// remove unnecessary head tags
|
||||
// - rest
|
||||
remove_action('wp_head','rest_output_link_wp_head');
|
||||
// - embed
|
||||
remove_action('wp_head','wp_oembed_add_discovery_links');
|
||||
remove_action('wp_head','wp_oembed_add_host_js');
|
||||
// - feed
|
||||
remove_action('wp_head','feed_links', 2);
|
||||
remove_action('wp_head','feed_links_extra', 3);
|
||||
// - rsd
|
||||
remove_action('wp_head','rsd_link');
|
||||
// - windows live writer
|
||||
remove_action('wp_head','wlwmanifest_link');
|
||||
// - generator
|
||||
remove_action('wp_head','wp_generator');
|
||||
// - shortlink
|
||||
remove_action('wp_head','wp_shortlink_wp_head');
|
||||
// - rel link
|
||||
remove_action('wp_head','index_rel_link');
|
||||
remove_action('wp_head','parent_post_rel_link', 10);
|
||||
remove_action('wp_head','start_post_rel_link', 10);
|
||||
remove_action('wp_head','adjacent_posts_rel_link_wp_head');
|
||||
|
||||
// disable automatically appending srcset attribute in img tag
|
||||
add_filter('wp_calculate_image_srcset_meta', '__return_null');
|
||||
|
||||
// disable DNS prefetch
|
||||
add_filter('wp_resource_hints', 'cbsonline_remove_dns_prefetch', 10, 2);
|
||||
function cbsonline_remove_dns_prefetch( $hints, $relation_type ) {
|
||||
if ( 'dns-prefetch' === $relation_type ) {
|
||||
return array_diff( wp_dependencies_unique_hosts(), $hints );
|
||||
}
|
||||
return $hints;
|
||||
}
|
||||
|
||||
// add styles
|
||||
add_action('wp_enqueue_scripts', 'cbsonline_add_styles');
|
||||
function cbsonline_add_styles() {
|
||||
wp_enqueue_style('parent-style', get_template_directory_uri().'/style.css');
|
||||
wp_enqueue_style('dashicons');
|
||||
}
|
||||
|
||||
// add scripts
|
||||
add_action('wp_head', 'cbsonline_add_scripts');
|
||||
function cbsonline_add_scripts() {
|
||||
wp_register_script('biz-vektor-fix-min-js', get_stylesheet_directory_uri().'/js/biz-vektor-fix-min.js', ['jquery'], '20201029');
|
||||
wp_enqueue_script('biz-vektor-fix-min-js');
|
||||
}
|
||||
|
||||
// add widgets
|
||||
function cbsonline_widgets_init() {
|
||||
register_sidebar( array(
|
||||
'name' => 'ヘッダー ウィジェット',
|
||||
'id' => 'header-widget-area',
|
||||
'before_widget' => '<div class="header-widget-area">',
|
||||
'after_widget' => '</div>',
|
||||
'before_title' => '<h2 class="rounded">',
|
||||
'after_title' => '</h2>',
|
||||
) );
|
||||
|
||||
register_sidebar( array(
|
||||
'name' => 'トップバナー ウィジェット',
|
||||
'id' => 'topbnr-widget-area',
|
||||
'before_widget' => '<div class="topbnr-widget-area clearfix"><div class="topbnr-widget-area-inner clearfix">',
|
||||
'after_widget' => '</div></div>',
|
||||
'before_title' => '<h2 class="rounded">',
|
||||
'after_title' => '</h2>',
|
||||
) );
|
||||
|
||||
register_sidebar( array(
|
||||
'name' => 'トップイメージ ウィジェット',
|
||||
'id' => 'topimg-widget-area',
|
||||
'before_widget' => '<div class="topimg-widget-area clearfix">',
|
||||
'after_widget' => '</div>',
|
||||
'before_title' => '<h2 class="rounded">',
|
||||
'after_title' => '</h2>',
|
||||
) );
|
||||
|
||||
}
|
||||
add_action('widgets_init', 'cbsonline_widgets_init');
|
||||
|
||||
// tweak bogo plugin
|
||||
// - disable flags
|
||||
add_filter( 'bogo_use_flags','bogo_use_flags_false');
|
||||
function bogo_use_flags_false() {
|
||||
return false;
|
||||
}
|
||||
// - remove ' (United States)' strings from en_US language
|
||||
add_filter( 'bogo_language_switcher','replace_bogo_text');
|
||||
function replace_bogo_text($output) {
|
||||
return str_replace(' (United States)', '', $output);
|
||||
}
|
||||
|
||||
// add short code
|
||||
// - topbox : http://www.webopixel.net/wordpress/53.html
|
||||
function cbsonline_shortcode_TopBox( $atts, $content = null ) {
|
||||
$content = do_shortcode(shortcode_unautop($content));
|
||||
extract(shortcode_atts(['class' => 'default'], $atts));
|
||||
|
||||
return '<div class="topbox">'.$content.'</div>';
|
||||
}
|
||||
add_shortcode('topbox', 'cbsonline_shortcode_TopBox');
|
||||
|
||||
// allow illustrator file upload
|
||||
function cbsonline_allow_upload_ai($mimes) {
|
||||
$mimes['ai'] = 'image/x-illustrator';
|
||||
return $mimes;
|
||||
}
|
||||
add_filter('upload_mimes', 'cbsonline_allow_upload_ai');
|
||||
|
||||
// force override Archive widget arguments
|
||||
add_filter( 'widget_archives_args', 'cbsonline_widget_archives_args' );
|
||||
function cbsonline_widget_archives_args( $args ) {
|
||||
// yearly
|
||||
$args['type'] = 'yearly';
|
||||
// maximum number of items : 10 years
|
||||
$args['limit'] = 10;
|
||||
|
||||
return $args;
|
||||
}
|
||||
|
||||
// support category based archives
|
||||
add_filter('getarchives_join', 'cbsonline_category_getarchives_join', 10, 2);
|
||||
function cbsonline_category_getarchives_join($join, $r) {
|
||||
global $wpdb;
|
||||
if (is_category()) {
|
||||
$cat = intval(get_query_var('cat'));
|
||||
if ($cat > 0) {
|
||||
return
|
||||
" LEFT JOIN $wpdb->term_relationships as r ON $wpdb->posts.ID = r.object_ID
|
||||
LEFT JOIN $wpdb->term_taxonomy as t ON r.term_taxonomy_id = t.term_taxonomy_id
|
||||
LEFT JOIN $wpdb->terms as terms ON t.term_id = terms.term_id";
|
||||
}
|
||||
}
|
||||
}
|
||||
add_filter('getarchives_where', 'cbsonline_category_getarchives_where', 10, 2);
|
||||
function cbsonline_category_getarchives_where($where, $r) {
|
||||
if (is_category()) {
|
||||
$cat = intval(get_query_var('cat'));
|
||||
if ($cat > 0) {
|
||||
return $where." AND t.taxonomy = 'category' AND terms.term_id = $cat";
|
||||
}
|
||||
}
|
||||
}
|
||||
add_filter('year_link', 'cbsonline_category_year_link', 10, 2);
|
||||
function cbsonline_category_year_link($url, $year){
|
||||
global $wp_rewrite;
|
||||
if (is_category()) {
|
||||
$cat = intval(get_query_var('cat'));
|
||||
if ($cat > 0) {
|
||||
$url .= '?cat='.get_query_var('cat');
|
||||
}
|
||||
}
|
||||
return $url;
|
||||
}
|
||||
|
114
header.php
Normal file
@ -0,0 +1,114 @@
|
||||
<!DOCTYPE html>
|
||||
<!--[if IE]>
|
||||
<meta http-equiv="X-UA-Compatible" content="edge" />
|
||||
<![endif]-->
|
||||
<?php global $biz_vektor_options;
|
||||
biz_vektor_get_theme_options(); ?>
|
||||
<html <?php language_attributes(); ?>>
|
||||
<head>
|
||||
<meta charset="<?php bloginfo( 'charset' ); ?>" />
|
||||
<link rel="start" href="<?php echo site_url(); ?>" title="HOME" />
|
||||
<meta id="viewport" name="viewport" content="width=device-width, initial-scale=1">
|
||||
<?php wp_head(); ?>
|
||||
</head>
|
||||
|
||||
<body <?php body_class(); ?>>
|
||||
<div id="wrap">
|
||||
|
||||
<!-- [ #header ] -->
|
||||
<div id="header">
|
||||
<div id="headerInner" class="innerBox">
|
||||
|
||||
<div class="headLogoWrap">
|
||||
|
||||
<!-- [ #headLogo ] -->
|
||||
<?php $heading_tag = ( is_home() || is_front_page() ) ? 'h1' : 'div'; ?>
|
||||
<<?php echo $heading_tag; ?> id="site-title">
|
||||
<a href="<?php echo home_url( '/' ); ?>" title="<?php bloginfo('name'); ?>" rel="home">
|
||||
<?php biz_vektor_print_headLogo(); ?>
|
||||
</a>
|
||||
</<?php echo $heading_tag; ?>>
|
||||
<!-- [ #headLogo ] -->
|
||||
|
||||
<!-- [ #headerTop ] -->
|
||||
<div id="headerTop">
|
||||
<div class="innerBox">
|
||||
<div id="site-description"><?php bloginfo( 'description' ); ?></div>
|
||||
</div>
|
||||
</div><!-- [ /#headerTop ] -->
|
||||
|
||||
</div>
|
||||
|
||||
<!-- [ #headContact ] -->
|
||||
<?php biz_vektor_print_headContact(); ?>
|
||||
<!-- [ /#headContact ] -->
|
||||
|
||||
<div class="header-widget">
|
||||
<div class="header-widget-area-wrap">
|
||||
|
||||
<?php if ( is_active_sidebar('header-widget-area') ) : ?>
|
||||
<?php dynamic_sidebar('header-widget-area'); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
</div>
|
||||
<form role="search" method="get" id="searchform" class="searchform" action="<?php bloginfo('url'); ?>">
|
||||
<div>
|
||||
<input type="submit" id="searchsubmit" value="Search" />
|
||||
<label class="screen-reader-text" for="s">検索:</label>
|
||||
<input type="text" value="" name="s" id="s" />
|
||||
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!-- #headerInner -->
|
||||
</div>
|
||||
<!-- [ /#header ] -->
|
||||
|
||||
<?php
|
||||
$args = array(
|
||||
'theme_location' => 'Header',
|
||||
'fallback_cb' => '',
|
||||
'echo' => false,
|
||||
'walker' => new description_walker()
|
||||
);
|
||||
$gMenu = wp_nav_menu( $args ) ;
|
||||
// メニューがセットされていたら実行
|
||||
if ($gMenu) {
|
||||
// ナビのHTMLを一旦変数に格納
|
||||
$gMenuHtml = '
|
||||
<!-- [ #gMenu ] -->
|
||||
<div id="gMenu" class="itemClose" onclick="showHide(\'gMenu\');">
|
||||
<div id="gMenuInner" class="innerBox">
|
||||
<h3 class="assistive-text"><span>MENU</span></h3>
|
||||
<div class="skip-link screen-reader-text">
|
||||
<a href="#content" title="'.__('Skip menu', 'bizvektor-global-edition').'">'.__('Skip menu', 'bizvektor-global-edition').'</a>
|
||||
</div>'."\n";
|
||||
$gMenuHtml .= $gMenu."\n";
|
||||
$gMenuHtml .= '</div><!-- [ /#gMenuInner ] -->
|
||||
</div>
|
||||
<!-- [ /#gMenu ] -->'."\n";
|
||||
// gMenuのHTMLにフックを設定
|
||||
$gMenuHtml = apply_filters( 'bizvektor_gMenuHtml', $gMenuHtml );
|
||||
// gMenuのHTMLを出力
|
||||
echo $gMenuHtml;
|
||||
} // if ($gMenu)
|
||||
?>
|
||||
|
||||
<?php wp_reset_query(); ?>
|
||||
|
||||
<?php if (is_front_page() && (biz_vektor_slideExist() || get_header_image()) ) { ?>
|
||||
<div id="topMainBnr">
|
||||
<div id="topMainBnrFrame"<?php if (biz_vektor_slideExist()) echo ' class="flexslider"';?>>
|
||||
<?php if(biz_vektor_slideExist()) { ?>
|
||||
<ul class="slides">
|
||||
<?php biz_vektor_slideBody(); ?>
|
||||
</ul>
|
||||
<?php } else { ?>
|
||||
<div class="slideFrame"><img src="<?php header_image(); ?>" alt="" /></div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div id="main">
|
BIN
images/bnr_contact.png
Normal file
After Width: | Height: | Size: 4.1 KiB |
BIN
images/bnr_contact_ja.png
Normal file
After Width: | Height: | Size: 4.3 KiB |
BIN
images/bnr_facebook.png
Normal file
After Width: | Height: | Size: 4.5 KiB |
BIN
images/bnr_twitter.png
Normal file
After Width: | Height: | Size: 5.4 KiB |
BIN
images/bnr_twitter_old.png
Normal file
After Width: | Height: | Size: 5.5 KiB |
BIN
images/bt_contact.png
Normal file
After Width: | Height: | Size: 3.8 KiB |
BIN
images/bt_contact_ja.png
Normal file
After Width: | Height: | Size: 3.5 KiB |
BIN
images/dummy.gif
Normal file
After Width: | Height: | Size: 227 B |
BIN
images/flexslider/bg_control_nav.png
Normal file
After Width: | Height: | Size: 3.6 KiB |
BIN
images/flexslider/bg_direction_nav2.png
Normal file
After Width: | Height: | Size: 1.8 KiB |
BIN
images/flexslider/bg_direction_nav2_20.png
Normal file
After Width: | Height: | Size: 1.8 KiB |
BIN
images/flexslider/bg_direction_nav2_30.png
Normal file
After Width: | Height: | Size: 1.8 KiB |
BIN
images/flexslider/bg_direction_nav2_50.png
Normal file
After Width: | Height: | Size: 1.9 KiB |
BIN
images/headers/accelerate-thumbnail.jpg
Normal file
After Width: | Height: | Size: 7.9 KiB |
BIN
images/headers/accelerate.jpg
Normal file
After Width: | Height: | Size: 57 KiB |
BIN
images/headers/autumn-leaves-thumbnail.jpg
Normal file
After Width: | Height: | Size: 14 KiB |
BIN
images/headers/autumn-leaves.jpg
Normal file
After Width: | Height: | Size: 187 KiB |
BIN
images/headers/bussines_desk_01-thumbnail.jpg
Normal file
After Width: | Height: | Size: 6.0 KiB |
BIN
images/headers/bussines_desk_01.jpg
Normal file
After Width: | Height: | Size: 60 KiB |
BIN
images/headers/features-thumbnail.jpg
Normal file
After Width: | Height: | Size: 8.8 KiB |
BIN
images/headers/features.jpg
Normal file
After Width: | Height: | Size: 119 KiB |
BIN
images/headers/johnny_01-thumbnail.jpg
Normal file
After Width: | Height: | Size: 10 KiB |
BIN
images/headers/johnny_01.jpg
Normal file
After Width: | Height: | Size: 96 KiB |
BIN
images/icon_try1_red.gif
Normal file
After Width: | Height: | Size: 46 B |
BIN
images/icon_try1_white.gif
Normal file
After Width: | Height: | Size: 46 B |
BIN
images/icon_try2_red.gif
Normal file
After Width: | Height: | Size: 52 B |
BIN
images/icon_try2_white.gif
Normal file
After Width: | Height: | Size: 46 B |
BIN
images/options/arrow_down.gif
Normal file
After Width: | Height: | Size: 939 B |
BIN
images/options/qaIconA.gif
Normal file
After Width: | Height: | Size: 250 B |
BIN
images/options/qaIconQ.gif
Normal file
After Width: | Height: | Size: 272 B |
BIN
images/samples/pr_image_demo_1.jpg
Normal file
After Width: | Height: | Size: 7.7 KiB |
BIN
images/samples/pr_image_demo_2.jpg
Normal file
After Width: | Height: | Size: 9.4 KiB |
BIN
images/samples/pr_image_demo_3.jpg
Normal file
After Width: | Height: | Size: 6.6 KiB |
BIN
images/samples/pr_image_demo_sq_1.jpg
Normal file
After Width: | Height: | Size: 6.1 KiB |
BIN
images/samples/pr_image_demo_sq_2.jpg
Normal file
After Width: | Height: | Size: 7.0 KiB |
BIN
images/samples/pr_image_demo_sq_3.jpg
Normal file
After Width: | Height: | Size: 4.0 KiB |
BIN
images/spacer.gif
Normal file
After Width: | Height: | Size: 43 B |
118
index.php
Normal file
@ -0,0 +1,118 @@
|
||||
<?php
|
||||
/**
|
||||
* BizVektor index.php
|
||||
*
|
||||
* @package BizVektor
|
||||
* @version 1.6.0
|
||||
*/
|
||||
|
||||
get_header();
|
||||
$postType = get_post_type();
|
||||
|
||||
if ( !$postType ) {
|
||||
global $wp_query;
|
||||
if ($wp_query->query_vars['post_type']) {
|
||||
$postType = $wp_query->query_vars['post_type'];
|
||||
}
|
||||
} ?>
|
||||
<!-- [ #container ] -->
|
||||
<div id="container" class="innerBox clearfix">
|
||||
<!-- [ #content ] -->
|
||||
<div id="content" class="content">
|
||||
|
||||
<div class="bcnlist">
|
||||
<?php if(function_exists('bcn_display'))
|
||||
{
|
||||
bcn_display();
|
||||
}?>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
/*-------------------------------------------*/
|
||||
/* Archive title
|
||||
/*-------------------------------------------*/
|
||||
if ( is_year()) {
|
||||
// $archiveTitle = get_the_date('Y');
|
||||
$archiveTitle = sprintf( __( 'Yearly Archives: %s', 'bizvektor-global-edition' ), get_the_date( _x( 'Y', 'yearly archives date format', 'bizvektor-global-edition' ) ) );
|
||||
} else if ( is_month() ) {
|
||||
$archiveTitle = sprintf( __( 'Monthly Archives: %s', 'bizvektor-global-edition' ), get_the_date( _x( 'F Y', 'monthly archives date format', 'bizvektor-global-edition' ) ) );
|
||||
} else if ( is_category() || is_tax() ) {
|
||||
$archiveTitle = single_term_title( '',false);
|
||||
} else if ( is_tag() ) {
|
||||
$archiveTitle = __('Tags : ', 'bizvektor-global-edition').single_term_title( '',false);
|
||||
} else if ( is_author() ) {
|
||||
$userObj = get_queried_object();
|
||||
$archiveTitle = $userObj->display_name;
|
||||
}
|
||||
if ( isset($archiveTitle) && $archiveTitle ) {
|
||||
$archiveTitle = apply_filters( 'biz_vektor_archiveTitCustom', $archiveTitle );
|
||||
echo '<h1 class="contentTitle">'.esc_html( $archiveTitle ).'</h1>';
|
||||
}
|
||||
/*-------------------------------------------*/
|
||||
/* Archive description
|
||||
/*-------------------------------------------*/
|
||||
if ( is_category() || is_tax() || is_tag() ) {
|
||||
$category_description = term_description();
|
||||
$page = get_query_var( 'paged', 0 );
|
||||
if ( ! empty( $category_description ) && $page == 0 ) {
|
||||
echo '<div class="archive-meta">' . $category_description . '</div>';
|
||||
}
|
||||
}
|
||||
?>
|
||||
<?php
|
||||
/*-------------------------------------------*/
|
||||
/* Archive post list
|
||||
/*-------------------------------------------*/
|
||||
?>
|
||||
<div class="infoList">
|
||||
<?php
|
||||
|
||||
$options = biz_vektor_get_theme_options();
|
||||
|
||||
if (is_biz_vektor_archive_loop()) : ?>
|
||||
|
||||
<?php biz_vektor_archive_loop(); ?>
|
||||
|
||||
<?php elseif ( apply_filters( 'biz_vektor_index_loop_hack', false ) ): ?>
|
||||
|
||||
<?php ///--- doing extra function ---/// ?>
|
||||
|
||||
<?php elseif (file_exists(get_template_directory( ).'/module_loop_'.$post_type.'.php')): ?>
|
||||
|
||||
<?php while ( have_posts() ) : the_post(); ?>
|
||||
|
||||
<?php get_template_part('module_loop_'.$post_type); ?>
|
||||
|
||||
<?php endwhile; ?>
|
||||
|
||||
<?php else : ?>
|
||||
|
||||
<?php $options = biz_vektor_get_theme_options();
|
||||
if ( $options['listBlogArchive'] == 'listType_set' ) { ?>
|
||||
<?php while ( have_posts() ) : the_post(); ?>
|
||||
<?php get_template_part('module_loop_post2'); ?>
|
||||
<?php endwhile ?>
|
||||
<?php } else { ?>
|
||||
<ul class="entryList">
|
||||
<?php while ( have_posts() ) : the_post(); ?>
|
||||
<?php get_template_part('module_loop_post'); ?>
|
||||
<?php endwhile; ?>
|
||||
</ul>
|
||||
<?php } ?>
|
||||
|
||||
<?php endif; // $postType == 'info' ?>
|
||||
<?php biz_vektor_pagination(); ?>
|
||||
</div><!-- [ /.infoList ] -->
|
||||
</div>
|
||||
<!-- [ /#content ] -->
|
||||
|
||||
<!-- [ #sideTower ] -->
|
||||
<div id="sideTower" class="sideTower side">
|
||||
<?php get_sidebar($postType); ?>
|
||||
</div>
|
||||
<!-- [ /#sideTower ] -->
|
||||
<?php biz_vektor_sideTower_after();?>
|
||||
</div>
|
||||
<!-- [ /#container ] -->
|
||||
|
||||
<?php get_footer(); ?>
|
125
js/biz-vektor-fix-min.js
vendored
Normal file
@ -0,0 +1,125 @@
|
||||
jQuery("#wp-admin-bar-editGuide .ab-item").click(function(){if(!jQuery(this).hasClass("close")){var a=jQuery(this).html();jQuery(this).html(a.replace(/OPEN/,"CLOSE")).addClass("close");
|
||||
jQuery(".adminEdit").each(function(c){jQuery(this).hide();});jQuery(".edit-link").each(function(c){jQuery(this).hide();});}else{var b=jQuery(this).html();
|
||||
jQuery(this).html(b.replace(/CLOSE/,"OPEN")).removeClass("close");jQuery(".adminEdit").each(function(c){jQuery(this).show();});jQuery(".edit-link").each(function(c){jQuery(this).show();
|
||||
});}});jQuery("iframe").each(function(e){var d=jQuery(this).attr("src");if(!d){return;}idx=d.indexOf("youtube");if(idx!=-1){console.log(d);jQuery(this).addClass("iframeYoutube").css({"max-width":"100%"});
|
||||
var b=jQuery(this).attr("width");var f=jQuery(this).attr("height");var a=f/b;var g=jQuery(this).width();var c=g*a;jQuery(this).css({"max-width":"100%",height:c});
|
||||
}});likeBoxReSize();jQuery(window).resize(function(){likeBoxReSize();});function likeBoxReSize(){jQuery(".fb-like-box").each(function(){var a=jQuery(this).parent().width();
|
||||
jQuery(this).attr("data-width",a);jQuery(this).children("span:first").css({width:a});jQuery(this).children("span iframe.fb_ltr").css({width:a});});}fbCommentReSize();
|
||||
jQuery(window).resize(function(){fbCommentReSize();});function fbCommentReSize(){jQuery(".fb-comments").each(function(){var a=jQuery(this).parent().width();
|
||||
jQuery(this).attr("data-width",a);jQuery(this).children("span:first").css({width:a});jQuery(this).children("span iframe.fb_ltr").css({width:a});});}var initRollovers=window.onload;
|
||||
window.onload=function(){if(!document.getElementById){return;}var c=new Array();var b;var a=function(k){for(var g=0;g<k.length;g++){if(k[g].className=="imgover"){var j=k[g].getAttribute("src");
|
||||
var f=j.substring(j.lastIndexOf("."),j.length);var h=j.replace(f,"_on"+f);k[g].setAttribute("hsrc",h);c[g]=new Image();c[g].src=h;k[g].onmouseover=function(){b=this.getAttribute("src");
|
||||
this.setAttribute("src",this.getAttribute("hsrc"));};k[g].onmouseout=function(){if(!b){b=this.getAttribute("src").replace("_on"+f,f);}this.setAttribute("src",b);
|
||||
};}}};var d=document.getElementsByTagName("img");a(d);var e=document.getElementsByTagName("input");a(e);if(initRollovers){initRollovers();}};jQuery(document).ready(function(){jQuery("a[href*='#']").click(function(){if(location.pathname.replace(/^\//,"")==this.pathname.replace(/^\//,"")&&location.hostname==this.hostname){var a=jQuery(this.hash);
|
||||
a=a.length&&a||jQuery("[name="+this.hash.slice(1)+"]");if(a.length){var b=a.offset().top;jQuery("html,body").animate({scrollTop:b},1200,"quart");return false;
|
||||
}}});});jQuery.easing.quart=function(e,f,a,h,g){return -h*((f=f/g-1)*f*f*f-1)+a;};new function(){var d="footerSection";function a(){var g=document.getElementsByTagName("body")[0].clientHeight;
|
||||
document.getElementById(d).style.top="0px";var h=document.getElementById(d).offsetTop;var e=document.getElementById(d).offsetHeight;if(window.innerHeight){var f=window.innerHeight;
|
||||
}else{if(document.documentElement&&document.documentElement.clientHeight!=0){var f=document.documentElement.clientHeight;}}if(h+e<f){document.getElementById(d).style.position="relative";
|
||||
document.getElementById(d).style.top=(f-e-h-1)+"px";}}function b(h){var i=document.createElement("div");var g=document.createTextNode("S");i.appendChild(g);
|
||||
i.style.visibility="hidden";i.style.position="absolute";i.style.top="0";document.body.appendChild(i);var f=i.offsetHeight;function j(){if(f!=i.offsetHeight){h();
|
||||
f=i.offsetHeight;}}setInterval(j,1000);}function c(i,g,f){try{i.addEventListener(g,f,false);}catch(h){i.attachEvent("on"+g,f);}}c(window,"load",a);c(window,"load",function(){b(a);
|
||||
});c(window,"resize",a);};jQuery("#btn").on("click",function(){jQuery(this).next().next().slideToggle();jQuery(this).toggleClass("active");});(function(a){a.flexslider=function(c,b){var d=a(c);
|
||||
a.data(c,"flexslider",d);d.init=function(){d.vars=a.extend({},a.flexslider.defaults,b);a.data(c,"flexsliderInit",true);d.container=a(".slides",d).first();
|
||||
d.slides=a(".slides:first > li",d);d.count=d.slides.length;d.animating=false;d.currentSlide=d.vars.slideToStart;d.animatingTo=d.currentSlide;d.atEnd=(d.currentSlide==0)?true:false;
|
||||
d.eventType=("ontouchstart" in document.documentElement)?"touchstart":"click";d.cloneCount=0;d.cloneOffset=0;d.manualPause=false;d.vertical=(d.vars.slideDirection=="vertical");
|
||||
d.prop=(d.vertical)?"top":"marginLeft";d.args={};d.transitions="webkitTransition" in document.body.style;if(d.transitions){d.prop="-webkit-transform";}if(d.vars.controlsContainer!=""){d.controlsContainer=a(d.vars.controlsContainer).eq(a(".slides").index(d.container));
|
||||
d.containerExists=d.controlsContainer.length>0;}if(d.vars.manualControls!=""){d.manualControls=a(d.vars.manualControls,((d.containerExists)?d.controlsContainer:d));
|
||||
d.manualExists=d.manualControls.length>0;}if(d.vars.randomize){d.slides.sort(function(){return(Math.round(Math.random())-0.5);});d.container.empty().append(d.slides);
|
||||
}if(d.vars.animation.toLowerCase()=="slide"){if(d.transitions){d.setTransition(0);}d.css({overflow:"hidden"});if(d.vars.animationLoop){d.cloneCount=2;d.cloneOffset=1;
|
||||
d.container.append(d.slides.filter(":first").clone().addClass("clone")).prepend(d.slides.filter(":last").clone().addClass("clone"));}d.newSlides=a(".slides:first > li",d);
|
||||
var m=(-1*(d.currentSlide+d.cloneOffset));if(d.vertical){d.newSlides.css({display:"block",width:"100%","float":"left"});d.container.height((d.count+d.cloneCount)*200+"%").css("position","absolute").width("100%");
|
||||
setTimeout(function(){d.css({position:"relative"}).height(d.slides.filter(":first").height());d.args[d.prop]=(d.transitions)?"translate3d(0,"+m*d.height()+"px,0)":m*d.height()+"px";
|
||||
d.container.css(d.args);},100);}else{d.args[d.prop]=(d.transitions)?"translate3d("+m*d.width()+"px,0,0)":m*d.width()+"px";d.container.width((d.count+d.cloneCount)*200+"%").css(d.args);
|
||||
setTimeout(function(){d.newSlides.width(d.width()).css({"float":"left",display:"block"});},100);}}else{d.transitions=false;d.slides.css({width:"100%","float":"left",marginRight:"-100%"}).eq(d.currentSlide).fadeIn(d.vars.animationDuration);
|
||||
}if(d.vars.controlNav){if(d.manualExists){d.controlNav=d.manualControls;}else{var e=a('<ol class="flex-control-nav"></ol>');var s=1;for(var t=0;t<d.count;
|
||||
t++){e.append("<li><a>"+s+"</a></li>");s++;}if(d.containerExists){a(d.controlsContainer).append(e);d.controlNav=a(".flex-control-nav li a",d.controlsContainer);
|
||||
}else{d.append(e);d.controlNav=a(".flex-control-nav li a",d);}}d.controlNav.eq(d.currentSlide).addClass("active");d.controlNav.bind(d.eventType,function(i){i.preventDefault();
|
||||
if(!a(this).hasClass("active")){(d.controlNav.index(a(this))>d.currentSlide)?d.direction="next":d.direction="prev";d.flexAnimate(d.controlNav.index(a(this)),d.vars.pauseOnAction);
|
||||
}});}if(d.vars.directionNav){var v=a('<ul class="flex-direction-nav"><li><a class="prev" href="#">'+d.vars.prevText+'</a></li><li><a class="next" href="#">'+d.vars.nextText+"</a></li></ul>");
|
||||
if(d.containerExists){a(d.controlsContainer).append(v);d.directionNav=a(".flex-direction-nav li a",d.controlsContainer);}else{d.append(v);d.directionNav=a(".flex-direction-nav li a",d);
|
||||
}if(!d.vars.animationLoop){if(d.currentSlide==0){d.directionNav.filter(".prev").addClass("disabled");}else{if(d.currentSlide==d.count-1){d.directionNav.filter(".next").addClass("disabled");
|
||||
}}}d.directionNav.bind(d.eventType,function(i){i.preventDefault();var j=(a(this).hasClass("next"))?d.getTarget("next"):d.getTarget("prev");if(d.canAdvance(j)){d.flexAnimate(j,d.vars.pauseOnAction);
|
||||
}});}if(d.vars.keyboardNav&&a("ul.slides").length==1){function h(i){if(d.animating){return;}else{if(i.keyCode!=39&&i.keyCode!=37){return;}else{if(i.keyCode==39){var j=d.getTarget("next");
|
||||
}else{if(i.keyCode==37){var j=d.getTarget("prev");}}if(d.canAdvance(j)){d.flexAnimate(j,d.vars.pauseOnAction);}}}}a(document).bind("keyup",h);}if(d.vars.mousewheel){d.mousewheelEvent=(/Firefox/i.test(navigator.userAgent))?"DOMMouseScroll":"mousewheel";
|
||||
d.bind(d.mousewheelEvent,function(y){y.preventDefault();y=y?y:window.event;var i=y.detail?y.detail*-1:y.originalEvent.wheelDelta/40,j=(i<0)?d.getTarget("next"):d.getTarget("prev");
|
||||
if(d.canAdvance(j)){d.flexAnimate(j,d.vars.pauseOnAction);}});}if(d.vars.slideshow){if(d.vars.pauseOnHover&&d.vars.slideshow){d.hover(function(){d.pause();
|
||||
},function(){if(!d.manualPause){d.resume();}});}d.animatedSlides=setInterval(d.animateSlides,d.vars.slideshowSpeed);}if(d.vars.pausePlay){var q=a('<div class="flex-pauseplay"><span></span></div>');
|
||||
if(d.containerExists){d.controlsContainer.append(q);d.pausePlay=a(".flex-pauseplay span",d.controlsContainer);}else{d.append(q);d.pausePlay=a(".flex-pauseplay span",d);
|
||||
}var n=(d.vars.slideshow)?"pause":"play";d.pausePlay.addClass(n).text((n=="pause")?d.vars.pauseText:d.vars.playText);d.pausePlay.bind(d.eventType,function(i){i.preventDefault();
|
||||
if(a(this).hasClass("pause")){d.pause();d.manualPause=true;}else{d.resume();d.manualPause=false;}});}if("ontouchstart" in document.documentElement){var w,u,l,r,o,x,p=false;
|
||||
d.each(function(){if("ontouchstart" in document.documentElement){this.addEventListener("touchstart",g,false);}});function g(i){if(d.animating){i.preventDefault();
|
||||
}else{if(i.touches.length==1){d.pause();r=(d.vertical)?d.height():d.width();x=Number(new Date());l=(d.vertical)?(d.currentSlide+d.cloneOffset)*d.height():(d.currentSlide+d.cloneOffset)*d.width();
|
||||
w=(d.vertical)?i.touches[0].pageY:i.touches[0].pageX;u=(d.vertical)?i.touches[0].pageX:i.touches[0].pageY;d.setTransition(0);this.addEventListener("touchmove",k,false);
|
||||
this.addEventListener("touchend",f,false);}}}function k(i){o=(d.vertical)?w-i.touches[0].pageY:w-i.touches[0].pageX;p=(d.vertical)?(Math.abs(o)<Math.abs(i.touches[0].pageX-u)):(Math.abs(o)<Math.abs(i.touches[0].pageY-u));
|
||||
if(!p){i.preventDefault();if(d.vars.animation=="slide"&&d.transitions){if(!d.vars.animationLoop){o=o/((d.currentSlide==0&&o<0||d.currentSlide==d.count-1&&o>0)?(Math.abs(o)/r+2):1);
|
||||
}d.args[d.prop]=(d.vertical)?"translate3d(0,"+(-l-o)+"px,0)":"translate3d("+(-l-o)+"px,0,0)";d.container.css(d.args);}}}function f(j){d.animating=false;
|
||||
if(d.animatingTo==d.currentSlide&&!p&&!(o==null)){var i=(o>0)?d.getTarget("next"):d.getTarget("prev");if(d.canAdvance(i)&&Number(new Date())-x<550&&Math.abs(o)>20||Math.abs(o)>r/2){d.flexAnimate(i,d.vars.pauseOnAction);
|
||||
}else{d.flexAnimate(d.currentSlide,d.vars.pauseOnAction);}}this.removeEventListener("touchmove",k,false);this.removeEventListener("touchend",f,false);w=null;
|
||||
u=null;o=null;l=null;}}if(d.vars.animation.toLowerCase()=="slide"){a(window).resize(function(){if(!d.animating&&d.is(":visible")){if(d.vertical){d.height(d.slides.filter(":first").height());
|
||||
d.args[d.prop]=(-1*(d.currentSlide+d.cloneOffset))*d.slides.filter(":first").height()+"px";if(d.transitions){d.setTransition(0);d.args[d.prop]=(d.vertical)?"translate3d(0,"+d.args[d.prop]+",0)":"translate3d("+d.args[d.prop]+",0,0)";
|
||||
}d.container.css(d.args);}else{d.newSlides.width(d.width());d.args[d.prop]=(-1*(d.currentSlide+d.cloneOffset))*d.width()+"px";if(d.transitions){d.setTransition(0);
|
||||
d.args[d.prop]=(d.vertical)?"translate3d(0,"+d.args[d.prop]+",0)":"translate3d("+d.args[d.prop]+",0,0)";}d.container.css(d.args);}}});}d.vars.start(d);
|
||||
};d.flexAnimate=function(g,f){if(!d.animating&&d.is(":visible")){d.animating=true;d.animatingTo=g;d.vars.before(d);if(f){d.pause();}if(d.vars.controlNav){d.controlNav.removeClass("active").eq(g).addClass("active");
|
||||
}d.atEnd=(g==0||g==d.count-1)?true:false;if(!d.vars.animationLoop&&d.vars.directionNav){if(g==0){d.directionNav.removeClass("disabled").filter(".prev").addClass("disabled");
|
||||
}else{if(g==d.count-1){d.directionNav.removeClass("disabled").filter(".next").addClass("disabled");}else{d.directionNav.removeClass("disabled");}}}if(!d.vars.animationLoop&&g==d.count-1){d.pause();
|
||||
d.vars.end(d);}if(d.vars.animation.toLowerCase()=="slide"){var e=(d.vertical)?d.slides.filter(":first").height():d.slides.filter(":first").width();if(d.currentSlide==0&&g==d.count-1&&d.vars.animationLoop&&d.direction!="next"){d.slideString="0px";
|
||||
}else{if(d.currentSlide==d.count-1&&g==0&&d.vars.animationLoop&&d.direction!="prev"){d.slideString=(-1*(d.count+1))*e+"px";}else{d.slideString=(-1*(g+d.cloneOffset))*e+"px";
|
||||
}}d.args[d.prop]=d.slideString;if(d.transitions){d.setTransition(d.vars.animationDuration);d.args[d.prop]=(d.vertical)?"translate3d(0,"+d.slideString+",0)":"translate3d("+d.slideString+",0,0)";
|
||||
d.container.css(d.args).one("webkitTransitionEnd transitionend",function(){d.wrapup(e);});}else{d.container.animate(d.args,d.vars.animationDuration,function(){d.wrapup(e);
|
||||
});}}else{d.slides.eq(d.currentSlide).fadeOut(d.vars.animationDuration);d.slides.eq(g).fadeIn(d.vars.animationDuration,function(){d.wrapup();});}}};d.wrapup=function(e){if(d.vars.animation=="slide"){if(d.currentSlide==0&&d.animatingTo==d.count-1&&d.vars.animationLoop){d.args[d.prop]=(-1*d.count)*e+"px";
|
||||
if(d.transitions){d.setTransition(0);d.args[d.prop]=(d.vertical)?"translate3d(0,"+d.args[d.prop]+",0)":"translate3d("+d.args[d.prop]+",0,0)";}d.container.css(d.args);
|
||||
}else{if(d.currentSlide==d.count-1&&d.animatingTo==0&&d.vars.animationLoop){d.args[d.prop]=-1*e+"px";if(d.transitions){d.setTransition(0);d.args[d.prop]=(d.vertical)?"translate3d(0,"+d.args[d.prop]+",0)":"translate3d("+d.args[d.prop]+",0,0)";
|
||||
}d.container.css(d.args);}}}d.animating=false;d.currentSlide=d.animatingTo;d.vars.after(d);};d.animateSlides=function(){if(!d.animating){d.flexAnimate(d.getTarget("next"));
|
||||
}};d.pause=function(){clearInterval(d.animatedSlides);if(d.vars.pausePlay){d.pausePlay.removeClass("pause").addClass("play").text(d.vars.playText);}};d.resume=function(){d.animatedSlides=setInterval(d.animateSlides,d.vars.slideshowSpeed);
|
||||
if(d.vars.pausePlay){d.pausePlay.removeClass("play").addClass("pause").text(d.vars.pauseText);}};d.canAdvance=function(e){if(!d.vars.animationLoop&&d.atEnd){if(d.currentSlide==0&&e==d.count-1&&d.direction!="next"){return false;
|
||||
}else{if(d.currentSlide==d.count-1&&e==0&&d.direction=="next"){return false;}else{return true;}}}else{return true;}};d.getTarget=function(e){d.direction=e;
|
||||
if(e=="next"){return(d.currentSlide==d.count-1)?0:d.currentSlide+1;}else{return(d.currentSlide==0)?d.count-1:d.currentSlide-1;}};d.setTransition=function(e){d.container.css({"-webkit-transition-duration":(e/1000)+"s"});
|
||||
};d.init();};a.flexslider.defaults={animation:"fade",slideDirection:"horizontal",slideshow:true,slideshowSpeed:5000,animationDuration:600,directionNav:true,controlNav:true,keyboardNav:true,mousewheel:false,prevText:"Previous",nextText:"Next",pausePlay:false,pauseText:"Pause",playText:"Play",randomize:false,slideToStart:0,animationLoop:true,pauseOnAction:true,pauseOnHover:false,controlsContainer:"",manualControls:"",start:function(){},before:function(){},after:function(){},end:function(){}};
|
||||
a.fn.flexslider=function(b){return this.each(function(){if(a(this).find(".slides > li").length==1){a(this).find(".slides > li").fadeIn(400);}else{if(a(this).data("flexsliderInit")!=true){new a.flexslider(this,b);
|
||||
}}});};})(jQuery);jQuery(".flexslider").flexslider();var breakPoint1=950;var breakPoint2=655;jQuery(function(){resVektorRun();});jQuery(document).ready(function(){resVektorRun();
|
||||
});jQuery(window).resize(function(){resVektorRun();});var mode;function resVektorRun(){resThumbTxtFix();var a=jQuery(window).width();if(a<=breakPoint2){if(mode!="mode_mobile"){showHide_mode_mobile();
|
||||
changeImageFile_mode_mobile();resImgTxtChange_mode_mobile();dropNavReset();dropNavFunctions();dropNavSubControlLinkDelete();mode="mode_mobile";}}if((breakPoint2<a)&&(a<breakPoint1)){if(mode!="mode_tab"){showHide_mode_tab();
|
||||
changeImageFile_mode_tab();resImgTxtChange_mode_tab();dropNavReset();dropNavFunctions();dropNavSubControlLinkDelete();mode="mode_tab";}}if(breakPoint1<=a){if(mode!="mode_full"){showHide_mode_full();
|
||||
changeImageFile_mode_full();resImgTxtChange_mode_full();dropNavReset();dropNavSubControlLinkRedo();mode="mode_full";}}}function showHide_mode_full(){jQuery(".show-tab-full,.show-full-only").each(function(){jQuery(this).show();
|
||||
});jQuery(".show-mobile-only,.show-mobile-tab,.show-tab-only").each(function(){jQuery(this).hide();});}function showHide_mode_tab(){jQuery(".show-mobile-tab,.show-tab-only,.show-tab-full").each(function(){jQuery(this).show();
|
||||
});jQuery(".show-mobile-only,.show-full-only").each(function(){jQuery(this).hide();});}function showHide_mode_mobile(){jQuery(".show-mobile-only,.show-mobile-tab").each(function(){jQuery(this).show();
|
||||
});jQuery(".show-tab-only,.show-tab-full,.show-full-only").each(function(){jQuery(this).hide();});}function changeImageFile_mode_mobile(){mobileImageChange();
|
||||
}function changeImageFile_mode_tab(){mobileImageBack();}function changeImageFile_mode_full(){mobileImageBack();}function mobileImageChange(){jQuery("img.resImage-mobile").each(function(){if(jQuery(this).hasClass("resImgMobile")!=true){var a=jQuery(this).attr("src").replace(/(\.[a-zA-Z]+)$/,"_mobile$1");
|
||||
jQuery(this).attr("src",a).addClass("resImgMobile");}});}function mobileImageBack(){jQuery("img.resImage-mobile").each(function(){if(jQuery(this).hasClass("resImgMobile")){var a=jQuery(this).attr("src").replace(/_mobile(\.[a-zA-Z]+)$/,"$1");
|
||||
jQuery(this).attr("src",a).removeClass("resImgMobile");}});}function dropNavFunctions(){jQuery(".dropNavControl").each(function(){var a=jQuery(this).next();
|
||||
jQuery(this).click(function(){if(jQuery(this).hasClass("dropNavOpen")){jQuery(this).removeClass("dropNavOpen");a.animate({height:"0"});}else{jQuery(this).removeClass("dropNavOpen");
|
||||
a.css({position:"absolute",opacity:"0",height:"auto"});var b=a.height();a.css({position:"relative",opacity:"1",height:"0",display:"block"});a.animate({height:b},function(){jQuery(this).css({height:"auto"});
|
||||
});jQuery(this).addClass("dropNavOpen");}});});}function dropNavReset(){jQuery("a.dropNavControl.dropNavSubControl").each(function(){jQuery(this).next().hide();
|
||||
});}function dropNavSubControlLinkDelete(){jQuery("a.dropNavControl.dropNavSubControl").each(function(){if(jQuery(this).hasClass("subControlMode")!==true){jQuery(this).addClass("subControlMode");
|
||||
var a=jQuery(this).attr("href");jQuery(this).attr("href","#").before('<span class="subControlLinkUrl">'+a+"</span>");jQuery(this).prev().hide();}});}function dropNavSubControlLinkRedo(){jQuery("span.subControlLinkUrl").each(function(){var a=jQuery(this).html();
|
||||
jQuery(this).next().attr("href",a).removeClass("subControlMode");jQuery(this).remove();});}function resImgTxtChange_mode_mobile(){resImgTxtChange_mobile_only();
|
||||
resImgTxtChange_mobile_tab();}function resImgTxtChange_mode_tab(){resImgTxtChange_mobile_tab();resImgTxtBack_mobile_only();}function resImgTxtChange_mode_full(){resImgTxtBack_mobile_tab();
|
||||
}function resImgTxtChange_mobile_only(){jQuery("img.resImgTxtChange-mobile-only").each(function(){var b=jQuery(this).prev().hasClass("resTxtChange-mobile-only");
|
||||
if(b===false){var a='<span class="resTxtChange-mobile-only">'+jQuery(this).attr("alt")+"</span>";jQuery(this).before(a);jQuery(this).hide();}});}function resImgTxtChange_mobile_tab(){jQuery("img.resImgTxtChange-mobile-tab").each(function(){var b=jQuery(this).prev().hasClass("resTxtChange-mobile-tab");
|
||||
if(b===false){var a='<span class="resTxtChange-mobile-tab">'+jQuery(this).attr("alt")+"</span>";jQuery(this).before(a);jQuery(this).hide();}});}function resImgTxtBack_mobile_tab(){jQuery("span.resTxtChange-mobile-tab").each(function(){jQuery(this).next().show();
|
||||
jQuery(this).remove();});}function resImgTxtBack_mobile_only(){jQuery("span.resTxtChange-mobile-only").each(function(){jQuery(this).next().show();jQuery(this).remove();
|
||||
});}function resThumbTxtFix(){jQuery(".ttBox").each(function(){var b=jQuery(this).width();var a=jQuery(this).children(".ttBoxThumb").width();txtWidth=b-a-15;
|
||||
jQuery(this).children(".ttBoxTxt").css({width:txtWidth});});}function showHide(a){if(document.getElementById(a)){var b="#"+a;if(jQuery(b).hasClass("itemOpen")){document.getElementById(a).className="itemClose";
|
||||
}else{document.getElementById(a).className="itemOpen";}}}jQuery(document).ready(function(){jQuery("#back-top").hide();jQuery(function(){jQuery(window).scroll(function(){if(jQuery(this).scrollTop()>100){jQuery("#back-top").fadeIn();
|
||||
}else{jQuery("#back-top").stop().fadeOut();}});jQuery("#back-top a").click(function(){jQuery("body,html").animate({scrollTop:0},800);return false;});});
|
||||
});
|
||||
/*!
|
||||
* jQuery Cookie Plugin v1.3.1
|
||||
* https://github.com/carhartl/jquery-cookie
|
||||
*
|
||||
* Copyright 2013 Klaus Hartl
|
||||
* Released under the MIT license
|
||||
*/
|
||||
(function(a){if(typeof define==="function"&&define.amd&&define.amd.jQuery){define(["jquery"],a);
|
||||
}else{a(jQuery);}}(function(e){var a=/\+/g;function d(g){return g;}function b(g){return decodeURIComponent(g.replace(a," "));}function f(g){if(g.indexOf('"')===0){g=g.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\");
|
||||
}try{return c.json?JSON.parse(g):g;}catch(h){}}var c=e.cookie=function(p,o,u){if(o!==undefined){u=e.extend({},c.defaults,u);if(typeof u.expires==="number"){var q=u.expires,s=u.expires=new Date();
|
||||
s.setDate(s.getDate()+q);}o=c.json?JSON.stringify(o):String(o);return(document.cookie=[encodeURIComponent(p),"=",c.raw?o:encodeURIComponent(o),u.expires?"; expires="+u.expires.toUTCString():"",u.path?"; path="+u.path:"",u.domain?"; domain="+u.domain:"",u.secure?"; secure":""].join(""));
|
||||
}var g=c.raw?d:b;var r=document.cookie.split("; ");var v=p?undefined:{};for(var n=0,k=r.length;n<k;n++){var m=r[n].split("=");var h=g(m.shift());var j=g(m.join("="));
|
||||
if(p&&p===h){v=f(j);break;}if(!p){v[h]=f(j);}}return v;};c.defaults={};e.removeCookie=function(h,g){if(e.cookie(h)!==undefined){e.cookie(h,"",e.extend(g,{expires:-1}));
|
||||
return true;}return false;};}));jQuery.changeLetterSize={handlers:[],interval:1000,currentSize:0};(function(e){var c=e.changeLetterSize;var d=e("<ins>M</ins>").css({display:"block",visibility:"hidden",position:"absolute",padding:"0",top:"0"});
|
||||
var b=function(){d.appendTo("body");var f=d[0].offsetHeight;d.remove();if(c.currentSize==f){return false;}c.currentSize=f;return true;};e(b);var a=function(){if(!b()){return;
|
||||
}e.each(c.handlers,function(f,g){g();});};c.addHandler=function(f){c.handlers.push(f);if(c.handlers.length==1){setInterval(a,c.interval);}};})(jQuery);
|
||||
(function(c){var b=[];var a=function(f){var e=0;f.each(function(){var g=this.offsetHeight;if(g>e){e=g;}});f.css("height",e+"px");};jQuery.fn.flatHeights=function(){if(this.length>1){a(this);
|
||||
b.push(this);}return this;};var d=function(){c.each(b,function(){this.height("auto");a(this);});};c.changeLetterSize.addHandler(d);c(window).resize(d);
|
||||
})(jQuery);jQuery(document).ready(function(a){jQuery(".topPrTit a").flatHeights();jQuery(".topPrDescription").flatHeights();jQuery(".child_page_block").flatHeights();
|
||||
jQuery(".child_page_block p").flatHeights();jQuery("#content .child_page_block h4 a").flatHeights();});
|
19
module_loop_post.php
Normal file
@ -0,0 +1,19 @@
|
||||
<?php
|
||||
$postType = get_post_type();
|
||||
if ($postType == 'post') {
|
||||
$taxonomySlug = 'category';
|
||||
} else {
|
||||
$taxonomies = get_the_taxonomies();
|
||||
if ($taxonomies) {
|
||||
foreach ( $taxonomies as $taxonomySlug => $taxonomy ) {}
|
||||
} else {
|
||||
$taxonomySlug = '';
|
||||
}
|
||||
}
|
||||
$taxo_catelist = get_the_term_list( $post->ID, $taxonomySlug, ' ','','');
|
||||
?>
|
||||
<li id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
||||
<span class="infoDate"><?php echo esc_html( get_the_date() ); ?></span>
|
||||
<?php if ( is_user_logged_in() == TRUE ) : edit_post_link(__('Edit', 'bizvektor-global-edition'), '<span class="edit-link edit-item">[ ', ' ]</span>');endif ?>
|
||||
<span class="infoTxt"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></span>
|
||||
</li>
|
36
module_loop_post2.php
Normal file
@ -0,0 +1,36 @@
|
||||
<?php
|
||||
$postType = get_post_type();
|
||||
if ($postType == 'post') {
|
||||
$taxonomySlug = 'category';
|
||||
} else {
|
||||
$taxonomies = get_the_taxonomies();
|
||||
if ($taxonomies) {
|
||||
foreach ( $taxonomies as $taxonomySlug => $taxonomy ) {}
|
||||
} else {
|
||||
$taxonomySlug = '';
|
||||
}
|
||||
}
|
||||
$taxo_catelist = get_the_term_list( $post->ID, $taxonomySlug, ' ','','');
|
||||
?>
|
||||
<!-- [ .infoListBox ] -->
|
||||
<div id="post-<?php the_ID(); ?>" <?php post_class('infoListBox ttBox'); ?>>
|
||||
<div class="entryTxtBox<?php if ( has_post_thumbnail()) echo ' ttBoxTxt haveThumbnail'; ?>">
|
||||
<h4 class="entryTitle">
|
||||
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
|
||||
<?php if ( is_user_logged_in() == TRUE ) : edit_post_link(__('Edit', 'bizvektor-global-edition'), '<span class="edit-link edit-item">[ ', ' ]</span>');endif ?>
|
||||
</h4>
|
||||
<p class="entryMeta">
|
||||
<span class="infoDate"><?php echo esc_html( get_the_date() ); ?></span>
|
||||
</p>
|
||||
<?php the_excerpt(); ?>
|
||||
<div class="moreLink"><a href="<?php the_permalink(); ?>"><?php _e('Read more', 'bizvektor-global-edition'); ?></a></div>
|
||||
</div><!-- [ /.entryTxtBox ] -->
|
||||
|
||||
<?php if ( has_post_thumbnail()) { ?>
|
||||
<div class="thumbImage ttBoxThumb">
|
||||
<div class="thumbImageInner">
|
||||
<a href="<?php the_permalink(); ?>"><?php the_post_thumbnail(); ?></a>
|
||||
</div>
|
||||
</div><!-- [ /.thumbImage ] -->
|
||||
<?php } ?>
|
||||
</div><!-- [ /.infoListBox ] -->
|
31
module_loop_post_news.php
Normal file
@ -0,0 +1,31 @@
|
||||
<?php
|
||||
$postType = get_post_type();
|
||||
if ($postType == 'post') {
|
||||
$taxonomySlug = 'category';
|
||||
} else {
|
||||
$taxonomies = get_the_taxonomies();
|
||||
if ($taxonomies) {
|
||||
foreach ( $taxonomies as $taxonomySlug => $taxonomy ) {}
|
||||
} else {
|
||||
$taxonomySlug = '';
|
||||
}
|
||||
}
|
||||
$taxo_catelist = get_the_term_list( $post->ID, $taxonomySlug, ' ','','');
|
||||
?>
|
||||
<!-- [ .infoListBox ] -->
|
||||
<li <?php post_class(); ?>>
|
||||
<span class="newsDate">
|
||||
<?php $locale = get_locale();
|
||||
if ('en_US' == $locale ) { ?>
|
||||
<!--英語表示の時-->
|
||||
<?php the_time('m/d/Y'); ?>
|
||||
<?php } else { ?>
|
||||
<!--日本語表示の時 -->
|
||||
<?php the_time('Y年m月d日'); ?>
|
||||
<?php } ?>
|
||||
</span>
|
||||
<span class="newsTitle"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a><?php if( is_sticky() ) : ?>
|
||||
<span style="font-size: medium;" class="sticky-tag dashicons dashicons-admin-post"></span>
|
||||
<?php endif; ?>
|
||||
</span>
|
||||
</li>
|
61
module_top_list_post.php
Normal file
@ -0,0 +1,61 @@
|
||||
<?php
|
||||
/*-------------------------------------------*/
|
||||
/* Post
|
||||
/*-------------------------------------------*/
|
||||
global $biz_vektor_options;
|
||||
$postTopCount = $biz_vektor_options['postTopCount'];
|
||||
if ($postTopCount != '0' ) :
|
||||
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
|
||||
|
||||
$post_loop = new WP_Query( array(
|
||||
'post_type' => 'post',
|
||||
'cat' => '-26',
|
||||
'posts_per_page' => $postTopCount,
|
||||
'paged' => $paged
|
||||
) ); ?>
|
||||
<?php if ($post_loop->have_posts()): ?>
|
||||
<div id="topBlog" class="infoList">
|
||||
<h2 class="entry-title">
|
||||
<?php $locale = get_locale();
|
||||
if ('en_US' == $locale ) { ?>
|
||||
<!--英語表示の時-->
|
||||
Announcements
|
||||
<?php } else { ?>
|
||||
<!--日本語表示の時 -->
|
||||
お知らせ
|
||||
<?php } ?>
|
||||
</h2>
|
||||
<ul class="entryListTop">
|
||||
<?php $options = biz_vektor_get_theme_options();
|
||||
if ( $options['listBlogTop'] == 'listType_set' ) { ?>
|
||||
<?php while ( $post_loop->have_posts() ) : $post_loop->the_post();?>
|
||||
<?php get_template_part('module_loop_post_news'); ?>
|
||||
<?php endwhile ?>
|
||||
<?php } else { ?>
|
||||
<?php while ( $post_loop->have_posts() ) : $post_loop->the_post();?>
|
||||
<?php get_template_part('module_loop_post'); ?>
|
||||
<?php endwhile; ?>
|
||||
<?php } ?>
|
||||
</ul>
|
||||
<?php // biz_vektor_pagination($post_loop->max_num_pages);
|
||||
$postTopUrl = (isset($biz_vektor_options['postTopUrl']))? $biz_vektor_options['postTopUrl'] : '';
|
||||
if ($postTopUrl) {
|
||||
echo '<div class="moreLink right"><a href="'.esc_url($postTopUrl).'">';
|
||||
printf( __( '%s List page', 'bizvektor-global-edition' ), esc_html($biz_vektor_options['postLabelName']) );
|
||||
echo '</a></div>';
|
||||
} ?>
|
||||
|
||||
<?php $locale = get_locale();
|
||||
if ('en_US' == $locale ) { ?>
|
||||
<!--英語表示の時-->
|
||||
<p class="entryListTopList"><a href="<?php bloginfo('url'); ?>/announcements/">→View ALL</a></p>
|
||||
<?php } else { ?>
|
||||
<!--日本語表示の時 -->
|
||||
<p class="entryListTopList"><a href="<?php bloginfo('url'); ?>/announcements/">→お知らせ一覧</a></p>
|
||||
<?php } ?>
|
||||
|
||||
</div><!-- [ /#topBlog ] -->
|
||||
<?php
|
||||
endif; // $post_loop have_posts()
|
||||
endif; // $postTopCpunt= 0
|
||||
wp_reset_query();?>
|
34
page-onecolumn.php
Normal file
@ -0,0 +1,34 @@
|
||||
<?php
|
||||
/*
|
||||
* Template Name: No sidebar
|
||||
*/
|
||||
get_header(); ?>
|
||||
|
||||
<!-- [ #container ] -->
|
||||
<div id="container" class="innerBox">
|
||||
<!-- [ #content ] -->
|
||||
<div id="content" class="content wide">
|
||||
|
||||
<div class="bcnlist">
|
||||
<?php if(function_exists('bcn_display'))
|
||||
{
|
||||
bcn_display();
|
||||
}?>
|
||||
</div>
|
||||
|
||||
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
|
||||
<div id="post-<?php the_ID(); ?>" class="entry-content">
|
||||
|
||||
<h1 class="entry-title"><?php the_title(); ?></h1>
|
||||
|
||||
<?php the_content(); ?>
|
||||
<?php wp_link_pages( array( 'before' => '<div class="page-link">' . 'Pages:', 'after' => '</div>' ) ); ?>
|
||||
</div><!-- .entry-content -->
|
||||
|
||||
<?php endwhile; ?>
|
||||
</div>
|
||||
<!-- [ /#content ] -->
|
||||
</div>
|
||||
<!-- [ /#container ] -->
|
||||
|
||||
<?php get_footer(); ?>
|
41
page.php
Normal file
@ -0,0 +1,41 @@
|
||||
<?php get_header(); ?>
|
||||
|
||||
<!-- [ #container ] -->
|
||||
<div id="container" class="innerBox">
|
||||
<!-- [ #content ] -->
|
||||
<div id="content" class="content side">
|
||||
|
||||
<div class="bcnlist">
|
||||
<?php if(function_exists('bcn_display'))
|
||||
{
|
||||
bcn_display();
|
||||
}?>
|
||||
</div>
|
||||
|
||||
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
|
||||
<div id="post-<?php the_ID(); ?>" class="entry-content">
|
||||
|
||||
<h1 class="entry-title"><?php the_title(); ?></h1>
|
||||
|
||||
<?php the_content(); ?>
|
||||
<?php wp_link_pages( array( 'before' => '<div class="page-link">' . 'Pages:', 'after' => '</div>' ) ); ?>
|
||||
</div><!-- .entry-content -->
|
||||
|
||||
<?php edit_post_link(__('Edit', 'bizvektor-global-edition'),'<div class="adminEdit"><span class="linkBtn linkBtnS linkBtnAdmin">','</span></div>'); ?>
|
||||
|
||||
<?php endwhile; ?>
|
||||
|
||||
<?php get_template_part('module_mainfoot'); ?>
|
||||
<?php comments_template( '', true ); ?>
|
||||
</div>
|
||||
<!-- [ /#content ] -->
|
||||
|
||||
<!-- [ #sideTower ] -->
|
||||
<div id="sideTower" class="sideTower side">
|
||||
<?php get_sidebar('page'); ?>
|
||||
</div>
|
||||
<!-- [ /#sideTower ] -->
|
||||
</div>
|
||||
<!-- [ /#container ] -->
|
||||
|
||||
<?php get_footer(); ?>
|
38
search.php
Normal file
@ -0,0 +1,38 @@
|
||||
<?php get_header(); ?>
|
||||
|
||||
<!-- [ #container ] -->
|
||||
<div id="container" class="innerBox">
|
||||
<!-- [ #content ] -->
|
||||
<div id="content" class="content wide">
|
||||
|
||||
<div class="error404">
|
||||
<form role="search" method="get" id="searchform" class="searchform" action="<?php bloginfo('url'); ?>">
|
||||
<div>
|
||||
<input type="submit" id="searchsubmit" value="Search" />
|
||||
<label class="screen-reader-text" for="s">検索:</label>
|
||||
<input type="text" value="<?php the_search_query(); ?>" name="s" id="s" />
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<?php if ( have_posts() ) : ?>
|
||||
<ul class="linkList">
|
||||
<?php while ( have_posts() ) : the_post(); ?>
|
||||
<li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
|
||||
<?php endwhile; ?>
|
||||
</ul>
|
||||
<?php biz_vektor_content_nav( 'nav-below' ); ?>
|
||||
<?php else : ?>
|
||||
<p><?php _e('Sorry, but nothing matched your search terms. Please try again with different keywords.', 'bizvektor-global-edition'); ?></p>
|
||||
<?php endif; ?>
|
||||
|
||||
<script type="text/javascript">
|
||||
// focus on search field after it has loaded
|
||||
document.getElementById('s') && document.getElementById('s').focus();
|
||||
</script>
|
||||
|
||||
</div>
|
||||
<!-- [ /#content ] -->
|
||||
</div>
|
||||
<!-- [ /#container ] -->
|
||||
<?php get_footer(); ?>
|
64
single.php
Normal file
@ -0,0 +1,64 @@
|
||||
<?php get_header(); ?>
|
||||
|
||||
<!-- [ #container ] -->
|
||||
<div id="container" class="innerBox">
|
||||
<!-- [ #content ] -->
|
||||
<div id="content" class="content side">
|
||||
|
||||
<div class="bcnlist">
|
||||
<?php if(function_exists('bcn_display'))
|
||||
{
|
||||
bcn_display();
|
||||
}?>
|
||||
</div>
|
||||
|
||||
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
|
||||
|
||||
<!-- [ #post- ] -->
|
||||
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
||||
<h1 class="entry-title"><?php the_title(); ?><?php edit_post_link(__('Edit', 'bizvektor-global-edition'), ' <span class="edit-link edit-item">[ ', ' ]' ); ?></h1>
|
||||
<div class="entry-meta">
|
||||
<?php _e('Posted on', 'bizvektor-global-edition'); ?> : <?php echo esc_html( get_the_date() ); ?>
|
||||
</div>
|
||||
<!-- .entry-meta -->
|
||||
<div class="entry-content post-content">
|
||||
<?php the_content(); ?>
|
||||
<?php wp_link_pages( array( 'before' => '<div class="page-link">' . 'Pages:', 'after' => '</div>' ) ); ?>
|
||||
|
||||
<div class="entry-utility">
|
||||
<?php
|
||||
$tags_list = get_the_tag_list( '', ', ' );
|
||||
if ( $tags_list ):
|
||||
?>
|
||||
<dl class="tag-links">
|
||||
<?php printf( __('<dt>Tags</dt><dd>%1$s</dd>', 'bizvektor-global-edition'), $tags_list ); ?>
|
||||
</dl>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<!-- .entry-utility -->
|
||||
</div><!-- .entry-content -->
|
||||
|
||||
<div id="nav-below" class="navigation">
|
||||
<div class="nav-previous"><?php previous_post_link( '%link', '<span class="meta-nav">←</span> %title' ); ?></div>
|
||||
<div class="nav-next"><?php next_post_link( '%link', '%title <span class="meta-nav">→</span>' ); ?></div>
|
||||
</div><!-- #nav-below -->
|
||||
|
||||
</div>
|
||||
<!-- [ /#post- ] -->
|
||||
|
||||
<?php if ( comments_open() || get_comments_number() ) { comments_template(); } ?>
|
||||
|
||||
<?php endwhile; // end of the loop. ?>
|
||||
|
||||
</div>
|
||||
<!-- [ /#content ] -->
|
||||
|
||||
<!-- [ #sideTower ] -->
|
||||
<div id="sideTower" class="sideTower side">
|
||||
<?php get_sidebar(get_post_type()); ?>
|
||||
</div>
|
||||
<!-- [ /#sideTower ] -->
|
||||
</div>
|
||||
<!-- [ /#container ] -->
|
||||
|
||||
<?php get_footer(); ?>
|
516
style.css
Normal file
@ -0,0 +1,516 @@
|
||||
/*
|
||||
Theme Name: CBS Online
|
||||
Template: bizvektor-global-edition
|
||||
Version: 20180322
|
||||
*/
|
||||
|
||||
body {
|
||||
font-size:100% !important;
|
||||
line-height:130% !important;
|
||||
-webkit-text-size-adjust : 100% !important;}
|
||||
|
||||
|
||||
|
||||
|
||||
.innerBox,
|
||||
#gMenu #gMenuInner.innerBox { width:960px !important; }
|
||||
#topMainBnr img { width:960px !important; }
|
||||
#topMainBnrFrame { width:960px !important; }
|
||||
|
||||
|
||||
|
||||
#main #container #sideTower {
|
||||
width: 280px !important;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
.bcnlist {
|
||||
margin: 15px 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
#main #container #content.wide {
|
||||
width: 100% !important;
|
||||
margin: 0 auto !important;
|
||||
float: none !important;
|
||||
}
|
||||
|
||||
|
||||
|
||||
#main #container {
|
||||
padding-top: 0 !important;
|
||||
}
|
||||
|
||||
|
||||
|
||||
#content p {
|
||||
padding: 0px !important;
|
||||
margin-bottom: 30px !important;
|
||||
}
|
||||
|
||||
|
||||
#gMenu {
|
||||
border-bottom: 4px solid #111986 !important;
|
||||
}
|
||||
|
||||
|
||||
|
||||
#footerSection {
|
||||
background: #e5e5e5;
|
||||
}
|
||||
|
||||
#siteBottom {
|
||||
background: #333;
|
||||
}
|
||||
|
||||
|
||||
|
||||
.header-widget {
|
||||
float: right;
|
||||
}
|
||||
|
||||
.header-widget .searchform {
|
||||
clear: both;
|
||||
}
|
||||
|
||||
.header-widget-area-wrap {
|
||||
}
|
||||
|
||||
|
||||
.header-widget .rounded {
|
||||
display: none;
|
||||
}
|
||||
|
||||
body.en-US .bogo-language-switcher .en {
|
||||
display: none;
|
||||
}
|
||||
|
||||
body.ja .bogo-language-switcher .ja {
|
||||
display: none;
|
||||
}
|
||||
|
||||
|
||||
|
||||
.topbox {
|
||||
width: 31%;
|
||||
margin: 0 1%;
|
||||
float: left;
|
||||
box-sizing: border-box;
|
||||
padding: 15px;
|
||||
height:auto;
|
||||
}
|
||||
.topbox .mtli_attachment {
|
||||
background: none;
|
||||
padding-right: 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
#content .topbox p {
|
||||
margin-bottom: 10px !important;
|
||||
}
|
||||
|
||||
|
||||
|
||||
#gMenu .menu {
|
||||
border-left: none;
|
||||
float: right;
|
||||
}
|
||||
|
||||
#gMenu .menu li {
|
||||
margin-left: 5px;
|
||||
}
|
||||
|
||||
#gMenu .menu li a {
|
||||
border-right: none;
|
||||
font-weight: bold !important;
|
||||
background: #b2b2b2;
|
||||
padding: 5px 15px 5px !important;
|
||||
color: #000000;
|
||||
border-radius: 5px 5px 0 0;
|
||||
|
||||
}
|
||||
#gMenu .menu li a strong {
|
||||
font-weight: bold !important;
|
||||
}
|
||||
|
||||
|
||||
|
||||
.headLogoWrap {
|
||||
}
|
||||
|
||||
|
||||
.headLogoWrap {
|
||||
float: left;
|
||||
width: 50%;
|
||||
}
|
||||
|
||||
.header-widget {
|
||||
float: right;
|
||||
width: 50%;
|
||||
}
|
||||
.header-widget-area-wrap {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.header-widget-area-wrap .header-widget-area {
|
||||
display: inline;
|
||||
margin-left: 15px;
|
||||
}
|
||||
.header-widget-area-wrap .header-widget-area div,
|
||||
.header-widget-area-wrap .header-widget-area p ,
|
||||
.header-widget-area-wrap .header-widget-area ul ,
|
||||
.header-widget-area-wrap .header-widget-area li {
|
||||
display: inline;
|
||||
}
|
||||
|
||||
|
||||
|
||||
#headerTop #site-description {
|
||||
color: #333 !important;
|
||||
}
|
||||
|
||||
#header #site-title{
|
||||
padding-bottom: 3px !important;
|
||||
}
|
||||
|
||||
|
||||
|
||||
.topbnr-widget-area {
|
||||
overflow: hidden;
|
||||
width: 960px;
|
||||
}
|
||||
.topbnr-widget-area p {
|
||||
float: left;
|
||||
margin-right: 53px;
|
||||
}
|
||||
.topbnr-widget-area p:nth-of-type(5n) ,
|
||||
.topbnr-widget-area p:nth-of-type(9n) ,
|
||||
.topbnr-widget-area p:nth-of-type(13n) {
|
||||
clear: both;
|
||||
}
|
||||
|
||||
.topbnr-widget-area-inner {
|
||||
width: 1012px;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#topFreeArea {
|
||||
clear: both;
|
||||
border-bottom: none !important;
|
||||
box-shadow: none !important;
|
||||
}
|
||||
|
||||
|
||||
.entry-title {
|
||||
clear: both;
|
||||
font-size: 128.6%;
|
||||
|
||||
padding: 13px 0px 8px;
|
||||
border-bottom: 1px solid #ccc;
|
||||
border-top: 2px solid #000;
|
||||
font-weight: bold;
|
||||
color: #333;
|
||||
position: relative;
|
||||
line-height: 114.3%;
|
||||
|
||||
|
||||
border-top: none !important;
|
||||
border-bottom: 2px solid #111986 !important;
|
||||
border-left: 5px solid #111986 !important;
|
||||
padding: 5px 0 5px 5px !important;
|
||||
margin-bottom: 10px !important;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#gMenu .menu {
|
||||
border-left: none !important;
|
||||
}
|
||||
|
||||
#gMenu .menu li.current_page_item > a, #gMenu .menu li > a:hover {
|
||||
background-color: #444444 !important;
|
||||
color: #FFFFFF !important;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#footMenu .menu {
|
||||
border-left: none !important;
|
||||
}
|
||||
|
||||
#footMenu .menu li a {
|
||||
border-right: none !important;
|
||||
padding-left: 0 !important;
|
||||
padding-right: 20px !important;
|
||||
}
|
||||
|
||||
#footMenu .innerBox {
|
||||
border-bottom: none !important;
|
||||
}
|
||||
|
||||
|
||||
|
||||
#siteBottom {
|
||||
padding: 40px 0 !important;
|
||||
color: #FFF !important;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#sideTower {
|
||||
background: #c4c6e1;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
.localSection .localHead {
|
||||
display: none;
|
||||
}
|
||||
|
||||
|
||||
.localSection .page_item {
|
||||
display: none;
|
||||
}
|
||||
.localSection .page_item.current_page_item ,
|
||||
.localSection .page_item.current_page_parent {
|
||||
display: block;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
form#searchform {
|
||||
background: none !important;
|
||||
padding-top: 10px !important;
|
||||
margin-bottom: 15px !important;
|
||||
|
||||
|
||||
/*padding: 5px 0px 5px 7px;
|
||||
background-color: #e5e5e5;
|
||||
display: block;
|
||||
overflow: hidden;
|
||||
position: relative;*/
|
||||
}
|
||||
|
||||
|
||||
|
||||
form#searchform input#s {
|
||||
float: right !important;
|
||||
width: 200px !important;
|
||||
}
|
||||
|
||||
|
||||
form#searchform input#searchsubmit {
|
||||
background-color: #000 !important;
|
||||
border-radius: 0 !important;
|
||||
color: #fff !important;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#footerSection {
|
||||
top: 0 !important;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#content .entry-content h2 {
|
||||
border: none !important;
|
||||
border-left: 5px solid #8F8F8F !important;
|
||||
padding-left: 10px;
|
||||
padding-top: 5px;
|
||||
padding-bottom: 5px;
|
||||
}
|
||||
#content .entry-content h3 {
|
||||
border: none !important;
|
||||
padding-left: 0 !important;
|
||||
}
|
||||
#content .entry-content h4 {
|
||||
border: none !important;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/*toc*/
|
||||
|
||||
#toc_container {
|
||||
background: none !important;
|
||||
border: none !important;
|
||||
padding: 0 10px !important;
|
||||
margin-bottom: 0 !important;
|
||||
margin-top: 0;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
font-size: 110% !important;
|
||||
}
|
||||
|
||||
#toc_container .toc_list {
|
||||
margin-bottom: 0 !important;
|
||||
}
|
||||
|
||||
#toc_container p.toc_title {
|
||||
display: none;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/*MimeTypes Link Icons*/
|
||||
|
||||
.mtli_attachment {
|
||||
display: inline !important;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/*左メニュー調整*/
|
||||
|
||||
.sideTower .sideWidget li a:hover, .sideTower .sideWidget li.current_page_item a, .sideTower .sideWidget li.current-cat a {
|
||||
background: none !important;
|
||||
}
|
||||
.sideTower .sideWidget li.current_page_item a {
|
||||
font-weight: bold;
|
||||
}
|
||||
.sideTower .sideWidget li.current_page_item ul.children a {
|
||||
font-weight: normal;
|
||||
/*padding: 13px 20px 11px 38px;*/
|
||||
}
|
||||
.sideTower .sideWidget li.current_page_item a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.sideTower .sideWidget li ul li {
|
||||
border-bottom: none !important;
|
||||
}
|
||||
#sideTower ul.localNavi ul.children {
|
||||
border-top: 2px solid #333;
|
||||
margin-left: 30px;
|
||||
margin-right: 30px;
|
||||
}
|
||||
#sideTower ul.localNavi ul.children a {
|
||||
padding: 13px 5px 11px 20px;
|
||||
}
|
||||
|
||||
#main #container #sideTower {
|
||||
padding-top: 30px;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
.single #sideTower .sideWidget ,
|
||||
.archive #sideTower .sideWidget {
|
||||
margin-left: 28px;
|
||||
margin-right: 28px;
|
||||
}
|
||||
|
||||
.single #sideTower .sideWidget .localHead ,
|
||||
.archive #sideTower .sideWidget .localHead {
|
||||
border-top: none !important;
|
||||
border-bottom: 2px solid #666 !important;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#content .infoList .infoListBox div.entryTxtBox p {
|
||||
margin-bottom: 10px !important;
|
||||
}
|
||||
|
||||
|
||||
/*検索フォーム*/
|
||||
|
||||
#content .error404 {
|
||||
padding-right: 160px;
|
||||
padding-top: 40px;
|
||||
padding-bottom: 80px !important;
|
||||
}
|
||||
|
||||
|
||||
.search #content ul.linkList {
|
||||
font-size: 100%;
|
||||
margin-bottom: 40px;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/*トップお知らせリスト*/
|
||||
|
||||
#content ul.entryListTop li {
|
||||
border-bottom: none !important;
|
||||
list-style: disc !important;
|
||||
margin-left: 1.2em;
|
||||
}
|
||||
|
||||
.entryListTopList {
|
||||
margin-left: 1.2em;
|
||||
}
|
||||
#content ul.entryListTop li .newsDate {
|
||||
float: left;
|
||||
display: block;
|
||||
}
|
||||
#content ul.entryListTop li .newsTitle {
|
||||
margin-left: 9em;
|
||||
display: block;
|
||||
}
|
||||
|
||||
/**/
|
||||
#sideNav {
|
||||
width: 260px;
|
||||
float: left;
|
||||
background-color: #eee;
|
||||
padding: 20px;
|
||||
}
|
||||
#mainContents {
|
||||
width: 630px;
|
||||
float: left;
|
||||
margin-left: 20px;
|
||||
}
|
||||
|
||||
|