blah |
![]() |
![]() |
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
| :root { | |
| --ease-in-quad: cubic-bezier(0.55, 0.085, 0.68, 0.53); | |
| --ease-in-cubic: cubic-bezier(0.55, 0.055, 0.675, 0.19); | |
| --ease-in-quart: cubic-bezier(0.895, 0.03, 0.685, 0.22); | |
| --ease-in-quint: cubic-bezier(0.755, 0.05, 0.855, 0.06); | |
| --ease-in-expo: cubic-bezier(0.95, 0.05, 0.795, 0.035); | |
| --ease-in-circ: cubic-bezier(0.6, 0.04, 0.98, 0.335); | |
| --ease-out-quad: cubic-bezier(0.25, 0.46, 0.45, 0.94); | |
| --ease-out-cubic: cubic-bezier(0.215, 0.61, 0.355, 1); | |
| --ease-out-quart: cubic-bezier(0.165, 0.84, 0.44, 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
| // Import __ from i18n internationalization library | |
| const { __ } = wp.i18n; | |
| // Import registerBlockType() from block building libary | |
| const { registerBlockType } = wp.blocks; | |
| // Import the element creator function (React abstraction layer) | |
| const el = wp.element.createElement; | |
| /** | |
| * Example of a custom SVG path taken from fontastic | |
| */ |
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 | |
| /* | |
| Plugin Name: ACF Front End Forms | |
| Plugin URI: https://navarrojr.com | |
| Description: Create forms on the front end of the site from ACF field groups. | |
| Version: 0.0.1 | |
| Author: Dave Navarro, Jr. | |
| Author URI: https://navarrojr.com | |
| */ |
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 | |
| /** | |
| * Illustrates how to extract attachment details returned by wp_prepare_attachment_for_js(). | |
| * | |
| * The wp_prepare_attachment_for_js() function returns an array with the attachment post object | |
| * that can be used to extract specific information for the attachment. | |
| * | |
| * Following is a list of all the details that the function returns extrated into individual variables. | |
| * |
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 | |
| function get_youtube_video_ID($youtube_video_url) { | |
| /** | |
| * Pattern matches | |
| * http://youtu.be/ID | |
| * http://www.youtube.com/embed/ID | |
| * http://www.youtube.com/watch?v=ID | |
| * http://www.youtube.com/?v=ID | |
| * http://www.youtube.com/v/ID | |
| * http://www.youtube.com/e/ID |
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
| .in-sub-panel #customize-theme-controls .customize-pane-child.current-panel-parent, | |
| #customize-theme-controls .customize-pane-child.current-section-parent { | |
| -webkit-transform: translateX(-100%); | |
| -ms-transform: translateX(-100%); | |
| transform: translateX(-100%); | |
| } |
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 | |
| //check if form was sent | |
| if($_POST){ | |
| $to = '[email protected]'; | |
| $subject = 'Testing HoneyPot'; | |
| $header = "From: $name <$name>"; | |
| $name = $_POST['name']; |
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
| $wp_customize->add_setting( 'themeslug_number_setting_id', array( | |
| 'capability' => 'edit_theme_options', | |
| 'sanitize_callback' => 'themeslug_sanitize_number_absint', | |
| 'default' => 1, | |
| ) ); | |
| $wp_customize->add_control( 'themeslug_number_setting_id', array( | |
| 'type' => 'number', | |
| 'section' => 'custom_section', // Add a default or your own section | |
| 'label' => __( 'Custom Number' ), |
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
| $wp_customize->add_setting( 'themeslug_url_setting_id', array( | |
| 'capability' => 'edit_theme_options', | |
| 'sanitize_callback' => 'themeslug_sanitize_url', | |
| ) ); | |
| $wp_customize->add_control( 'themeslug_url_setting_id', array( | |
| 'type' => 'url', | |
| 'section' => 'custom_section', // Add a default or your own section | |
| 'label' => __( 'Custom URL' ), | |
| 'description' => __( 'This is a custom url input.' ), |
