This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@mixin archives_ul_settings_3clumes($wapper_size:100%,$width:100%,$clume_widht:100%,$defo_margin:0%,$double_margin:0%) { | |
width: floor((( $width / $wapper_size ) * 10000% )) / 100; | |
display: -webkit-box; | |
display: -ms-flexbox; | |
display: -webkit-flex; | |
display: flex; | |
-ms-flex-wrap: wrap; | |
-webkit-flex-wrap: wrap; | |
flex-wrap: wrap; | |
align-content: space-between; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
order deny,allow | |
deny from all | |
allow from 1.0.16.0/20 | |
allow from 1.0.64.0/18 | |
allow from 1.1.64.0/18 | |
allow from 1.5.0.0/16 | |
allow from 1.21.0.0/16 | |
allow from 1.33.0.0/16 | |
allow from 1.66.0.0/15 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
■下準備 | |
--フッターに記載--- | |
<script>var home_url = <?php echo home_url('/'); ?>; var rest_api_base = <?php echo home_url('/wp-json/wp/v2/'); ?></script> | |
<script async type="text/javascript" src='<?php echo get_bloginfo('template_url'); ?>/js/ファイル名.js'></script><!--テーマファイルの中にjsというディレクトリを作成し、その中にjsファイルを作る--> | |
■読み込み側のjsにセットする(基準となるjsファイルの記載) | |
//関数設定用 | |
function get_cat_id(slug) { | |
var cat_id; | |
$.ajaxSetup({async: false});//同期通信(json取ってくるまで待つ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@charset "utf-8"; | |
@import 'mixin'; | |
//ボタンアクション開始 | |
//ホバーすると中の画像が広がる | |
@mixin hover_img_scale() { | |
overflow: hidden; | |
img { | |
-moz-transition: -moz-transform 0.5s linear; | |
-webkit-transition: -webkit-transform 0.5s linear; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@charset "utf-8"; | |
@import 'mixin'; | |
@mixin arrow_base($color) { | |
&{ | |
color:$color | |
position: relative; | |
display: inline-block; | |
padding: 0 0 0 16px; | |
vertical-align: middle; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>カテゴリーデータの取得等…</title> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> | |
<script> | |
//サイトのURL | |
site_url = "https://afiru-wp-afiru.c9users.io/"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cloud9をアップデートしてWordPressを使用する。 | |
#1.httpdアップデート | |
$ sudo add-apt-repository ppa:ondrej/php -y | |
$ sudo apt-get update -y | |
#2.PHPバージョンアップ(7を使用) | |
$ sudo apt-get install php7.0-curl php7.0-cli php7.0-dev php7.0-gd php7.0-intl php7.0-mcrypt php7.0-json php7.0-mysql php7.0-opcache php7.0-bcmath php7.0-mbstring php7.0-soap php7.0-xml php7.0-zip -y | |
$ sudo mv /etc/apache2/envvars /etc/apache2/envvars.bak | |
$ sudo apt-get remove libapache2-mod-php5 -y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//設定項目 | |
$header_info[0] = "h1_settings"; | |
$header_info[1] = "youtube_code"; | |
$header_info[2] = "header_big_thumbs"; | |
$header_info[3] = "LOGO_IMAGE_URL_SP"; | |
$header_info[4] = "pc_nav_column"; | |
$header_info[5] = "tel_Number_text"; | |
$header_info[6] = "LOGO_IMAGE_URL"; | |
$header_info[7] = "sp_menu_open_image_url"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>親カテゴリーから、孫カテゴリーを抽出し、詳細を作るSPA</title> | |
<link rel="stylesheet" href="css/basestyle.css" /> | |
<link rel="stylesheet" href="css/tab_chenge_box.css" /> | |
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> | |
</head> | |
<script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.getJSON( "https://web-pack.jp/wp-json/wp/v2/site_genre/?parent=0", function(results) { | |
$.each(results, function(i, item) { | |
$("ul#site_genre_list").append('<li id="" data-parent="' + item.id + '">' + item.name + '</li>'); | |
}); | |
}); | |
$(document).on('click','#site_genre_list li',function(){ | |
$("ul#site_genre_detail_list").empty(); | |
$("ul#looping_site_genre_box").empty(); | |
parentid = $(this).data('parent'); | |
urlname ="https://web-pack.jp/wp-json/wp/v2/site_genre/?parent="+ parentid; |
NewerOlder