全体として太一が感覚的に実践している事を論理的に説明しようと試みている為、
説明の粒度が適切でなかったり一貫性が無いように見える部分があるかもしれない。
普段やっているけども書ききれていない事も多分きっとある。
- コードを嗜む
- コードを学ぶ
- 武器を手に入れる
<?php | |
/** | |
* 画像のURLのサイズ違いのURLを取得する | |
* | |
* @param string $url 画像のURL | |
* @param string $size 画像のサイズ (thumbnail, medium, large or full) | |
*/ | |
function get_attachment_image_src($url, $size) { | |
$image = wp_get_attachment_image_src(get_attachment_id($url), $size); |
var start_pos = 0; | |
$(window).scroll(function(e){ | |
var current_pos = $(this).scrollTop(); | |
if (current_pos > start_pos) { | |
console.log('down'); | |
} else { | |
console.log('up'); | |
} | |
start_pos = current_pos; | |
}); |
This should help you get Sendmail installed with basic configuration on Ubuntu.
sudo apt-get install sendmail
/etc/hosts
file: nano /etc/hosts
127.0.0.1 localhost yourhostname
sudo sendmailconfig
sudo service apache2 restart
<?php | |
/* One of the upload fields as an example */ | |
?> | |
<tr> | |
<th><label for="ols_user_meta_image_1"><?php _e( 'OLS Image 1', 'textdomain' ); ?></label></th> | |
<td> | |
<!-- Outputs the image after save --> | |
<img src="<?php echo esc_url( get_the_author_meta( 'ols_user_meta_image_1', $user->ID ) ); ?>" style="width:150px;"><br /> | |
<!-- Outputs the text field and displays the URL of the image retrieved by the media uploader --> |
.clearfix:before { | |
display: table; | |
content: " "; | |
} | |
.clearfix:after { | |
display: table; | |
content: " "; | |
clear: both; | |
} |
>vagrant up |