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
| /** | |
| * http://applemusic.tumblr.com/ | |
| * https://jsfiddle.net/xq56dmrh/ | |
| */ | |
| /** Ultra Light */ | |
| @font-face { | |
| font-family: "San Francisco"; | |
| font-weight: 100; | |
| src: url("https://applesocial.s3.amazonaws.com/assets/styles/fonts/sanfrancisco/sanfranciscodisplay-ultralight-webfont.woff"); |
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
| add_filter( 'wp_nav_menu_items', 'we_add_loginout_link', 10, 2 ); | |
| /** | |
| * Add login/logout and registration links to header menu | |
| * | |
| * @author Bruce Munson, WebEndev | |
| * | |
| */ | |
| function we_add_loginout_link( $items, $args ) { | |
| if (is_user_logged_in() && $args->theme_location == 'header') { | |
| $items .= '<li class="menu-item"><a href="'. wp_logout_url() .'">Log Out</a></li>'; |
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
| add_action( 'gform_user_registered','we_autologin_gfregistration', 10, 4 ); | |
| /** | |
| * Auto login to site after GF User Registration Form Submittal | |
| * | |
| */ | |
| function we_autologin_gfregistration( $user_id, $config, $entry, $password ) { | |
| wp_set_auth_cookie( $user_id, false, '' ); | |
| } |
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
| .gform_wrapper ul { | |
| padding-left: 0; | |
| list-style: none; } | |
| .gform_wrapper li { | |
| margin-bottom: 15px; } | |
| .gform_wrapper form { | |
| margin-bottom: 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
| //Turn on our credit card field for admin and front end | |
| add_action("gform_enable_credit_card_field", "enable_creditcard"); | |
| function enable_creditcard($is_enabled){ | |
| return true; | |
| } | |
| //Email encoded card details when the form is submitted. | |
| add_action('gform_after_submission', 'email_encoded_cc', 10, 2); | |
| function email_encoded_cc($entry, $form) { | |
| function get_creditcard_field($form){ | |
| $fields = GFCommon::get_fields_by_type($form, array("creditcard")); |
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
| <div id="banner"> | |
| <div class="wrap-center"> | |
| <div class="banner-centered" id="banner-text"> | |
| <h2>Hello <strong>We Are Company-Name</strong>, Glad To See You. :-)</h2> | |
| </div> | |
| </div> | |
| </div> |