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 | |
return PhpCsFixer\Config::create() | |
->setRiskyAllowed(true) | |
->setRules([ | |
// '@PHP71Migration' => true, | |
// '@PSR2' => true, | |
// 'align_multiline_comment' => true, | |
// 'array_syntax' => ['syntax' => 'short'], | |
// 'binary_operator_spaces' => true, |
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 | |
public function update(array $meta, ContainerInterface $container) | |
{ | |
/** @var Plugin $Plugin */ | |
$code = 'PluginCode'; | |
$Plugin = $container->get(PluginRepository::class)->findByCode($code); | |
$config = $container->get(PluginService::class)->readConfig($container->get(PluginService::class)->calcPluginDir($code)); | |
$container->get(PluginService::class)->generateProxyAndUpdateSchema($Plugin, $config); |
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
2つ以上の商品を表示する際の手順 | |
1. 1つめの商品は、上の枠・下の枠をそのままコピーして貼り付けてください | |
2. 2つ名の商品をはりつけるときには、1つ目の時貼ったものに差し込む必要があります | |
<script type="text/javascript">//<![CDATA[ | |
var productsClassCategories = { | |
"1706":{"__unselected":{"__unselected":{"name":"\u9078\u629e\u3057\u3066\u304f\u3060\u3055\u3044","product_class_id":"7026","product_type":"1"}},"__unselected2":{"#":{"classcategory_id2":"","name":"\u9078\u629e\u3057\u3066\u304f\u3060\u3055\u3044"},"#0":{"classcategory_id2":"0","name":"","stock_find":true,"price01":"","price02":"11,858","point":"109","product_code":"32001","product_class_id":"7026","product_type":"1"}}} |
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
server { | |
listen 80; | |
server_name www.nob-log.info; | |
rewrite ^ http://nob-log.info$request_uri?; | |
} | |
charset utf-8; | |
# リバースプロキシの設定 | |
proxy_cache_path /var/cache/nginx levels=1:2 keys_zone=czone:4m max_size=50m inactive=120m; |
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
/** | |
* おすすめ商品検索. | |
* | |
* @return array $arrBestProducts 検索結果配列 | |
*/ | |
function lfGetRanking() { | |
$objQuery =& SC_Query_Ex::getSingletonInstance(); | |
$objProduct = new SC_Product_Ex(); | |
// おすすめ商品取得 |
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
function add_text_before_head_close_tag() { | |
if (is_single() || is_page()) { | |
$url = get_permalink(); | |
} else { | |
$url = get_bloginfo('url'); | |
} | |
echo ' | |
<rdf:RDF |
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 | |
// googleのsitemap xmlを使ってurlを抽出する | |
$google_xml_url = 'http://nob-log.info/sitemap.xml'; | |
$limit = 10; | |
// urlのリストを作成する | |
$xml = simplexml_load_file($google_xml_url); | |
foreach($xml->url as $data){ | |
$urls[] = $data->loc; |