This file contains hidden or 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 | |
| | $name_site = get_bloginfo('name'); | |
| | $url_parsed = parse_url(get_bloginfo('url')); | |
| | $domain_site = $url_parsed['host']; | |
| | $url_template = get_bloginfo('template_url'); | |
| | $title_page = ''; | |
| | if(!is_front_page()){ | |
| //- 前に謎のスペースが入るのでtrimする |
This file contains hidden or 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 get_abbreviated_title($post_id, $num_char = 20, $ellips = '…') { | |
| $title = get_the_title($post_id); | |
| if ( mb_strlen($title, 'UTF-8') > $num_char ) { | |
| $title = mb_substr($title, 0, $num_char, 'UTF-8') . $ellips; | |
| } | |
| return $title; | |
| } |
This file contains hidden or 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
| - var menu = [{order:20, label:'foo'},{order:10, label:'bar'}] | |
| - menu.sort((a,b)=>{return a.order > b.order ? 1 : -1}) | |
| each m in menu | |
| li= m.label |
This file contains hidden or 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
| balloon(position, size, color) | |
| position relative | |
| border 1px solid color | |
| background-color #FFF | |
| border-radius 5px | |
| &::before | |
| &::after | |
| content "" | |
| position absolute | |
| width 0 |
This file contains hidden or 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
| text-stroke(hoff = 1px, voff = 1px, blur = 0, color = #000) | |
| text-shadow (-1 * hoff) (-1 * voff) blur color, hoff (-1 * voff) blur color, (-1 * hoff) voff blur color, hoff voff blur color |
This file contains hidden or 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
| style | |
| include:stylus _maintenance/maintenance.styl |
This file contains hidden or 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 | |
| $tags = get_tags(); | |
| if ($tags) { | |
| foreach($tags as $tag) { | |
| // タグ名の出力 | |
| echo $tag->name.''; | |
| // タグのスラッグ名の出力 | |
| echo $tag->slug.''; | |
| // タグ名IDの出力 | |
| echo $tag->term_id.''; |
This file contains hidden or 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
| color-twitter = #55acee | |
| color-facebook = #3B5998 | |
| color-googleplus = #C64B3F | |
| color-line = #00C200 |
This file contains hidden or 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 | |
| // https://www.dctweb.jp/20150128k/ | |
| function tag_selector() { | |
| global $wp_rewrite; | |
| $rewrite = array( | |
| 'slug' => get_option('tag_base') ? get_option('tag_base') : 'tag', | |
| 'with_front' => ! get_option('tag_base') || $wp_rewrite->using_index_permalinks(), | |
| 'ep_mask' => EP_TAGS, | |
| ); |
This file contains hidden or 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
| nums = ('\2780' '\2781' '\2782' '\2783' '\2784' '\2785' '\2786' '\2787' '\2788' '\2789') | |
| for n, i in nums | |
| li:nth-of-type({i+1})::before | |
| content n |
OlderNewer