Skip to content

Commit dacffe3

Browse files
committed
Purchase ORION theme license and add its asset files
- Theme:「ORION」(Version: 3.0) - Author: [Design Plus](http://design-plus1.com/tcd-w/) - 利用規約: [https://design-plus1.com/tcd-w/license_standard](https://design-plus1.com/tcd-w/license_standard)
1 parent 26415fc commit dacffe3

15 files changed

+310
-3
lines changed

fonts/design_plus.eot

30.7 KB
Binary file not shown.

fonts/design_plus.svg

+156
Loading

fonts/design_plus.ttf

30.6 KB
Binary file not shown.

fonts/design_plus.woff

30.6 KB
Binary file not shown.

fonts/icomoon.eot

3.57 KB
Binary file not shown.

fonts/icomoon.svg

+22
Loading

fonts/icomoon.ttf

3.41 KB
Binary file not shown.

fonts/icomoon.woff

3.49 KB
Binary file not shown.
File renamed without changes.

footer-bar/footer-bar.js

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
jQuery(document).ready(function($){
2+
3+
/**
4+
* スマホ用固定フッターバー
5+
*/
6+
if ($(".dp-footer-bar-share").length) {
7+
$(".dp-footer-bar-share, #modal-overlay").on("click", function() {
8+
$("#modal-content, #modal-overlay").toggleClass("hide");
9+
return false;
10+
});
11+
$("#modal-overlay, #modal-content").on("touchmove", function(e) {
12+
e.preventDefault();
13+
});
14+
}
15+
if ($(".dp-footer-bar").length) {
16+
var footerBar = $(".dp-footer-bar");
17+
var footerBarHeight = footerBar.height() || 55;
18+
footerBar.hide();
19+
//$('#return_top').hide();
20+
$('body').css('paddingBottom', footerBarHeight);
21+
$('#return_top').css('bottom', footerBarHeight);
22+
$(window).scroll(function () {
23+
if ($(this).scrollTop() > 100) {
24+
footerBar.stop().fadeIn("slow");
25+
//$('#return_top').stop().fadeIn("slow");
26+
} else {
27+
footerBar.stop().fadeOut();
28+
//$('#return_top').stop().fadeOut();
29+
}
30+
});
31+
}
32+
});

footer-bar/footer-bar.php

+68
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
<?php
2+
// テーマオプションを取得
3+
$options = get_desing_plus_option();
4+
5+
if ( $options['footer_bar_display'] == 'type1' || $options['footer_bar_display'] == 'type2' ) :
6+
// ページタイトルを取得
7+
$title = wp_title( '|', false, 'right' );
8+
9+
// ページ URL を取得
10+
$url = ( empty( $_SERVER['HTTPS'] ) ? 'http://' : 'https://' ) . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
11+
12+
$footer_bar_btn_classes = array();
13+
$footer_bar_btn_target = '';
14+
$footer_bar_btn_url = '';
15+
?>
16+
<ul class="dp-footer-bar">
17+
<?php
18+
// ボタンを表示
19+
foreach ( $options['footer_bar_btns'] as $key => $value ) :
20+
switch ( $value['type'] ) {
21+
// ボタンタイプ:デフォルト
22+
case 'type1' :
23+
$footer_bar_btn_classes = array( 'dp-footer-bar-item' );
24+
$footer_bar_btn_target = $value['target'];
25+
$footer_bar_btn_url = $value['url'];
26+
break;
27+
// ボタンタイプ:シェア
28+
case 'type2' :
29+
$footer_bar_btn_classes = array( 'dp-footer-bar-share', 'dp-footer-bar-item' );
30+
$footer_bar_btn_url = '#';
31+
break;
32+
// ボタンタイプ:電話番号
33+
case 'type3' :
34+
$footer_bar_btn_classes = array( 'dp-footer-bar-item' );
35+
$footer_bar_btn_url = 'tel:' . $value['number'];
36+
}
37+
?>
38+
<li class="<?php echo esc_attr( implode( ' ', $footer_bar_btn_classes ) ); ?>">
39+
<a href="<?php echo esc_url( $footer_bar_btn_url ); ?>"<?php echo $footer_bar_btn_target ? ' target="_blank"' : ''; ?>>
40+
<span class="dp-footer-bar-icon icon-<?php echo esc_attr( $value['icon'] ); ?>"><?php echo esc_html( $value['label'] ); ?></span>
41+
</a>
42+
</li>
43+
<?php
44+
endforeach;
45+
?>
46+
</ul>
47+
<div id="modal-overlay" class="modal-overlay hide">
48+
<div class="modal-close icon-close"></div>
49+
</div>
50+
<div id="modal-content" class="modal-content hide">
51+
<ul class="share clearfix">
52+
<li class="share-button share-button--rounded-square">
53+
<a href="https://twitter.com/intent/tweet?url=<?php echo $url; ?>&text=<?php echo $title; ?>" onClick="window.open(encodeURI(decodeURI(this.href)), 'tweetwindow', 'width=650, height=470, personalbar=0, toolbar=0, scrollbars=1, sizable=1'); return false;"><img src="<?php echo get_template_directory_uri(); ?>/img/common/twitter.png" alt=""></a>
54+
</li>
55+
<li class="share-button">
56+
<a href="https://www.facebook.com/sharer/sharer.php?u=<?php echo rawurlencode( $url ); ?>"><img src="<?php echo get_template_directory_uri(); ?>/img/common/facebook.png" alt=""></a>
57+
</li>
58+
<li class="share-button">
59+
<a href="http://line.me/R/msg/text/?<?php echo rawurlencode( $title ); ?><?php echo rawurlencode( $url ); ?>"><img src="<?php echo get_template_directory_uri(); ?>/img/common/line.png" alt=""></a>
60+
</li>
61+
<li class="share-button">
62+
<a href="http://b.hatena.ne.jp/entry/" class="hatena-bookmark-button" data-hatena-bookmark-layout="touch" data-hatena-bookmark-width="50" data-hatena-bookmark-height="50" title="このエントリーをはてなブックマークに追加"><img src="https://b.st-hatena.com/images/entry-button/[email protected]" alt="このエントリーをはてなブックマークに追加" width="20" height="20" style="border: none;" /></a><script type="text/javascript" src="https://b.st-hatena.com/js/bookmark_button.js" charset="utf-8" async="async"></script>
63+
</li>
64+
</ul>
65+
</div>
66+
<?php
67+
endif;
68+
?>

footer-bar/footer-bar2.js

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
jQuery(document).ready(function($){
2+
3+
/**
4+
* スマホ用固定フッターバー
5+
*/
6+
if ($(".dp-footer-bar-share").length) {
7+
$(".dp-footer-bar-share, #modal-overlay").on("click", function() {
8+
$("#modal-content, #modal-overlay").toggleClass("hide");
9+
return false;
10+
});
11+
$("#modal-overlay, #modal-content").on("touchmove", function(e) {
12+
e.preventDefault();
13+
});
14+
}
15+
if ($(".dp-footer-bar").length) {
16+
var footerBar = $(".dp-footer-bar");
17+
var footerBarHeight = footerBar.height() || 55;
18+
footerBar.hide();
19+
$('body').css('paddingBottom', footerBarHeight);
20+
$('#return_top').css('bottom', footerBarHeight);
21+
$(window).scroll(function () {
22+
if ($(this).scrollTop() > 100) {
23+
footerBar.stop().slideDown('fast');
24+
} else {
25+
footerBar.stop().slideUp('fast');
26+
}
27+
});
28+
}
29+
});

index.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
}
4646
</style>
4747

48-
<link rel='stylesheet' id='style-css' href='/css/style.css' type='text/css' media='all' />
48+
<link rel='stylesheet' id='style-css' href='/style.css' type='text/css' media='all' />
4949
<script type='text/javascript' src='/js/jquery.js'></script>
5050
<script type='text/javascript' src='/js/jquery-migrate.min.js'></script>
5151
<!--<link rel='https://api.w.org/' href='https://decadojo-dev.coderdojo.jp/wp-json/' />-->
@@ -61,8 +61,8 @@
6161
<script src="/js/jscript.js"></script>
6262
<script src="/js/comment.js"></script>
6363

64-
<link rel="stylesheet" media="screen and (max-width:770px)" href="/css/footer-bar.css">
65-
<link rel="stylesheet" media="screen and (max-width:770px)" href="/css/responsive.css">
64+
<link rel="stylesheet" media="screen and (max-width:770px)" href="/footer-bar/footer-bar.css">
65+
<link rel="stylesheet" media="screen and (max-width:770px)" href="/responsive.css">
6666

6767
<style type="text/css">
6868
body, input, textarea { font-family: Verdana, "ヒラギノ角ゴ ProN W3", "Hiragino Kaku Gothic ProN", "メイリオ", Meiryo, sans-serif; }
File renamed without changes.

css/style.css renamed to style.css

File renamed without changes.

0 commit comments

Comments
 (0)