This should work on at least:
- 10.9 Mavericks
- 10.10 Yosemite
Taken from Using MacOSX Lion command line mail with Gmail as SMTP
Edit file /etc/postfix/main.cf and add this to the bottom:
| body.page-template-template-full-width #content #primary { | |
| max-width: 100%; | |
| } | |
| body.page-template-template-full-width #content #primary .entry-header, | |
| body.page-template-template-full-width #content #primary .entry-content { | |
| float: none; | |
| width: 100%; | |
| } |
| <?php | |
| //* OPTIONAL STEP - Keep the form disappearing. | |
| //* Gravity Forms notification popup instead of the page redirect or AJAX notification. | |
| //* Props to @WilliamAlexander in the comments | |
| //* @link https://anythinggraphic.net/gravity-forms-notification-popup | |
| add_filter( 'gform_confirmation', 'ag_custom_confirmation', 10, 4 ); | |
| function ag_custom_confirmation( $confirmation, $form, $entry, $ajax ) { | |
| add_filter( 'wp_footer', 'ag_overlay'); |
| $value = array( | |
| "deep"=>1, | |
| "data"=>null, | |
| "node"=>array( | |
| "deep"=>2, | |
| "data"=>null, | |
| "node"=>array( | |
| "deep"=>3 | |
| ) | |
| ), |
This should work on at least:
Taken from Using MacOSX Lion command line mail with Gmail as SMTP
Edit file /etc/postfix/main.cf and add this to the bottom:
| <iframe src="http://docs.google.com/gview?url=http://example.com/mypdf.pdf&embedded=true" style="width:100%; height:1000px;" frameborder="0"></iframe> |
| <?php | |
| /** | |
| * Calculate a precise time difference. | |
| * @param string $start result of microtime() | |
| * @param string $end result of microtime(); if NULL/FALSE/0/'' then it's now | |
| * @return flat difference in seconds, calculated with minimum precision loss | |
| */ | |
| function microtime_diff($start, $end = null) | |
| { | |
| if (!$end) { |