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
/* 外部&内部(wp)リンク対応ブログカード マテリアルデザイン風 */ | |
.blogcard { | |
font-size: 14px; | |
font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif; | |
line-height: 1.45em; | |
position: relative; | |
overflow: hidden; | |
height: 147px; | |
max-height: 160px; | |
margin: 0 auto 1.6%; |
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 | |
//---------------------------------------// | |
// 外部&内部(wp)リンク対応ブログカード | |
// OpenGraph.phpを使用してます | |
//---------------------------------------// | |
// 端末がスマホの場合はtrueを返す | |
function is_mobile() { | |
$useragents = array( | |
'iPhone', // iPhone |
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 | |
// 豆地雷 UA情報取得&メール通知 | |
// URLパラメータ a=mail account d=mail domain | |
function get_uainfo(){ | |
ini_set("display_errors", 0); | |
ini_set("display_startup_errors", 0); | |
error_reporting(E_ALL); |