Mountain Lion (10.8) has three main difference compared to Lion (10.7):
- XCode 4.4 does not install Command Line Tools by default
- X11 isn't available anymore
- The installed version of OpenSSL has some bugs
| // Gravity Forms anchor - disable auto scrolling of forms | |
| add_filter("gform_confirmation_anchor", create_function("","return false;")); |
| <?php | |
| // No trailing slash | |
| define('BURST_LOG_PATH', ABSPATH . 'wp-content'); | |
| // Define which get logged in Burst::$_burst_log_levels | |
| define('BURST_INFO', 1); | |
| define('BURST_DEBUG', 2); | |
| define('BURST_CRITICAL', 3); |
| // Check dependencies | |
| include_once(ABSPATH . 'wp-admin/includes/plugin.php'); | |
| if (!is_plugin_active('gravityforms/gravityforms.php')) { | |
| add_action('admin_notices', function() { | |
| echo '<div class="error"><p>This plugin requires the Gravity Forms plugin to be enabled, and is not currently running.</p></div>'; | |
| }); | |
| if (class_exists('Burst')) { | |
| Burst::log("Gravity Forms dependency unmet.", BURST_CRITICAL); | |
| } |
| <?php | |
| /* If the gravity form is below the fold the user can get confused if there isn't an anchor on the form */ | |
| add_filter("gform_confirmation_anchor", create_function("","return true;")); | |
| ?> |
| // filter the Gravity Forms button type | |
| add_filter("gform_submit_button", "form_submit_button", 10, 2); | |
| function form_submit_button($button, $form){ | |
| return "<input type='submit' class='button gform_button btn btn-flat' id='gform_submit_button_{$form["id"]}' />"; | |
| } |
| <?php | |
| // add the following to your functions file or similar | |
| define( 'FUBLO_GF_PROFILE', 1 ); // define the ID number of your profile form. | |
| // ============================================================= PROFILE EDITING | |
| /** | |
| * These are the user metadata fields, with their names and the data about them. |
| <?php | |
| // add the following to your functions file or similar | |
| define( 'FUBLO_GF_PROFILE', 1 ); // define the ID number of your profile form. | |
| // ============================================================= PROFILE EDITING | |
| /** | |
| * These are the user metadata fields, with their names and the data about them. |
| /* | |
| * matches the student academic profile with their school in the Gravity Form | |
| * it uses a modified version of the save function from the relations post type | |
| * plugin that is meant to work with the GF form of this specific ID | |
| */ | |
| add_action( 'gform_post_submission_4', 'sfn_tan_make_post_relation', 10, 2); | |
| function sfn_tan_make_post_relation( $entry, $form, $custom_id = 0, $object_ids = array(), $post_types = array(), $append = true ) { | |
| global $wpdb; |
| #!/bin/bash | |
| homebrew_packages=( | |
| freetype | |
| jpeg | |
| libpng | |
| gd | |
| zlib | |
| openssl | |
| unixodbc |