Skip to content

Instantly share code, notes, and snippets.

@sou-lab
sou-lab / functions.php
Last active June 17, 2016 13:49 — forked from mypacecreator/functions.php
WP SitemanagerまたはPrime Strategy Bread Crumbの拡張(type string対応版)
<?php
//パンくずのリッチスニペット対応
function rich_bread_crumb($output, $args) {
if ($args['type'] == 'list') {
$output = preg_replace('|<li\s+(.*?)>|mi','<li ${1} itemscope="itemscope" itemtype="http://data-vocabulary.org/Breadcrumb">',$output);
$output = preg_replace('|<li\s+class="(.*?current.*?)".*?>|mi','<li class="${1}">',$output);
$output = preg_replace('|<a\s+(.*?)>|mi','<a ${1} itemprop="url"><span itemprop="title">',$output);
$output = str_replace('</a>','</span></a>',$output);
} elseif ($args['type'] == 'string') {
$output = preg_replace('|<a\s+(.*?)>|mi','<span itemscope="itemscope" itemtype="http://data-vocabulary.org/Breadcrumb"><a ${1} itemprop="url"><span itemprop=”title”>',$output);
プロパティー 発音
background-attachment バックグラウンド・アタッチメント
background-color バックグラウンド・カラー
background-image バックグラウンド・イメージ
background-position バックグラウンド・ポジション
background-repeat バックグラウンド・リピート
background バックグラウンド
border-collapse ボーダー・コラプス
border-color ボーダー・カラー
{
"files":
{
"jquery" : "http://code.jquery.com/jquery.js",
"jquery.min" : "http://code.jquery.com/jquery.min.js",
"jquery-cookie" : "https://raw.github.com/carhartl/jquery-cookie/master/jquery.cookie.js",
"jquery-dotimeout" : "https://raw.github.com/cowboy/jquery-dotimeout/master/jquery.ba-dotimeout.min.js",
"jquery-extra-selectors" : "https://raw.github.com/keithclark/JQuery-Extended-Selectors/master/jquery-extra-selectors.js",
"jquery-flexslider" : "https://raw.github.com/mbmufffin/FlexSlider/master/jquery.flexslider-min.js",
"jquery-mediaelement" : "https://raw.github.com/johndyer/mediaelement/master/build/mediaelement-and-player.js",
{
"files":
{
"Dynamic-Carousel": "https://raw.github.com/Wilto/Dynamic-Carousel/master/plugin.js",
"FitText": "https://raw.github.com/davatron5000/FitText.js/master/jquery.fittext.js",
"FitVids": "https://raw.github.com/davatron5000/FitVids.js/master/jquery.fitvids.js",
"Lettering.js": "https://raw.github.com/davatron5000/Lettering.js/master/jquery.lettering.js",
"Normalize.css": "https://raw.github.com/necolas/normalize.css/master/normalize.css",
"Sass-Css3-Mixins": "https://raw.github.com/matthieua/Sass-Css3-Mixins/master/css3-mixins.scss",
"_rem.scss": "https://raw.github.com/ry5n/rem/master/stylesheets/_rem.scss",