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 | |
| $out = ''; | |
| // create a new form field (also field wrapper) | |
| $form = $modules->get("InputfieldForm"); | |
| $form->action = "./"; | |
| $form->method = "post"; | |
| $form->attr("id+name",'subscribe-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
| /* | |
| * Require a Featured Image Before You Can Publish a Post | |
| */ | |
| function wpds_check_thumbnail($post_id) { | |
| // change to any custom post type | |
| if(get_post_type($post_id) != 'post') | |
| return; | |
| if ( !has_post_thumbnail( $post_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
| {"lastUpload":"2019-01-27T18:57:21.526Z","extensionVersion":"v3.2.4"} |
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
| <!--Retreaver Script--> | |
| <!-- <script src="//dist.routingapi.com/jsapi/v1/retreaver.min.js"></script> --> | |
| <script src="https://d1a32x6bfz4b86.cloudfront.net/jsapi/v1/retreaver.min.js"></script> | |
| <script> | |
| var j = jQuery.noConflict(); | |
| j(function() { | |
| Retreaver.configure({host: 'api.calltrackapi.com', prefix: 'https'}); | |
| // Initialize the Retreaver campaign using the campaign key from your campaign page. | |
| var phoneNum = new Retreaver.Campaign({ campaign_key: '3a4f5683eddd986e4eb3cf5638ad88b6' }); |
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
| /* | |
| * Redirect Contact Form 7 Submissions | |
| */ | |
| function redirect_cf7() { ?> | |
| <script type="text/javascript"> | |
| document.addEventListener( 'wpcf7mailsent', function( event ) { | |
| if ( '1438' == event.detail.contactFormId ) { // Sends sumissions on form 947 to the first thank you page | |
| location = 'https://www.ivf4everyone.com/thank-you-feedback/'; | |
| } else { // Sends submissions on all unaccounted for forms to the third thank you page |
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
| //Require assets | |
| const express = require('express'); | |
| const app = express(); | |
| const mongoose = require('mongoose'); | |
| mongoose.Promise = global.Promise; | |
| let port = 3000; | |
| const bodyParser = require('body-parser'); |
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
| //Fetch Recaptcha API | |
| <script src='https://www.google.com/recaptcha/api.js'></script> | |
| <div id="contact_form"> | |
| <h1>Contact Form</h1> | |
| <form method="POST" action="includes/php/mail.php"> | |
| <p class=""> | |
| Your Name:</p> | |
| <input class="" name="name" type="text" size="25" maxlength="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
| <!doctype html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Fizz Buzz Challenge</title> | |
| </head> | |
| <body> |
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 if( !is_front_page() ) { ?> | |
| <script> | |
| //Change links so they work if it is not the homepage | |
| var j = jQuery.noConflict(); | |
| j(function() { | |
| j('#menu-primary-menu li a').each(function() { | |
| var href = j(this).attr('href'), | |
| siteUrl = window.location.protocol + '//' + window.location.host + '/'; | |
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
| <script> | |
| //Smooth Scrolling Anchor Links | |
| var j = jQuery.noConflict(); | |
| j(function() { | |
| // Select all links with hashes | |
| j('a[href*="#"]') | |
| // Remove links that don't actually link to anything | |
| .not('[href="#"]') | |
| .not('[href="#0"]') | |
| .click(function(event) { |