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
| /* Pricing Table | |
| --------------------------------------------- */ | |
| .pricing-table { | |
| box-sizing: border-box; | |
| display: -webkit-flex;display: -ms-flexbox;display: flex; | |
| -webkit-flex: 0 1 auto;-ms-flex: 0 1 auto;flex: 0 1 auto; | |
| -webkit-flex-wrap: wrap;-ms-flex-wrap: wrap;flex-wrap: wrap; | |
| -webkit-flex-direction: row;-ms-flex-direction: row;flex-direction: row; | |
| -webkit-justify-content: space-between;-ms-flex-pack: justify;justify-content: space-between; |
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 | |
| /** | |
| * Filter WP 'Edit Post' link to go to front end /edit-post/ page | |
| * | |
| * @author Mike Hemberger | |
| * @link http://thestizmedia.com/front-end-post-editing-with-caldera-forms/ | |
| * @return string url to front end for with query arg source post ID ( ?post_id=123 ) | |
| */ | |
| add_filter( 'get_edit_post_link', 'tsm_edit_post_link', 10, 1 ); |
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 | |
| /** | |
| * Add a custom 'Edit Post' link on posts the logged in user authored | |
| * Links to a separate page with ?post_id=123 query string | |
| * Uses tsm_is_current_users_post( $post_id ) helper function | |
| * | |
| * @author Mike Hemberger | |
| * @link http://thestizmedia.com/front-end-post-editing-with-caldera-forms/ | |
| * @return bool/string false or edit post link |
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 | |
| /** | |
| * Helper function to check if a user is the author of a specific post | |
| * | |
| * @author Mike Hemberger | |
| * @link http://thestizmedia.com/front-end-post-editing-with-caldera-forms/ | |
| * @param int $post_id Post ID | |
| * @return bool | |
| */ |
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 | |
| /** | |
| * Shortcode to conditionally display a post edit form | |
| * | |
| * @author Mike Hemberger | |
| * @link http://thestizmedia.com/front-end-post-editing-with-caldera-forms/ | |
| * @uses Caldera Forms | |
| * @return mixed Access message or Caldera Form | |
| */ | |
| add_shortcode( 'edit_post', 'tsm_do_caldera_edit_post_form' ); |
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 | |
| class FES_Multiple_Pricing_Field extends FES_Field { | |
| /** @var bool For 3rd parameter of get_post/user_meta */ | |
| public $single = false; | |
| /** @var array Supports are things that are the same for all fields of a field type. Like whether or not a field type supports jQuery Phoenix. Stored in obj, not db. */ | |
| public $supports = array( | |
| 'multiple' => false, | |
| 'forms' => array( |
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 // Put this code in functions.php or a custom plugin. Don't include opening php tag | |
| /** | |
| * Create shortcode to display map of all child page locations | |
| * | |
| * @author Mike Hemberger | |
| * @link http://thestizmedia.com/shortcode-to-show-map-markers-of-child-pages-with-acf-pro/ | |
| * | |
| * @return mixed | |
| */ |
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($) { | |
| /* | |
| * render_map | |
| * | |
| * This function will render a Google Map onto the selected jQuery element | |
| * | |
| * @type function | |
| * @date 8/11/2013 | |
| * @since 4.3.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
| <?php // Put this code in functions.php or a custom plugin. Don't include opening php tag. | |
| /** | |
| * Register scripts to enqueue in our shortcode | |
| * @author Mike Hemberger | |
| * @link http://thestizmedia.com/shortcode-to-show-map-markers-of-child-pages-with-acf-pro/ | |
| */ | |
| add_action('wp_enqueue_scripts', 'tsm_register_non_global_scripts'); | |
| function tsm_register_non_global_scripts() { | |
| wp_register_script( 'google-map', 'https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false', array(), '3', true ); |
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
| .sidr { | |
| display: none; | |
| position: fixed; | |
| top: 0; | |
| height: 100%; | |
| width: 100%; | |
| max-width: 500px; | |
| left: -500px; | |
| right: auto; | |
| background: #fff; |