The popular open-source contract for web professionals by Stuff & Nonsense
- Originally published: 23rd December 2008
- Revised date: March 15th 2016
- Original post
| <?php | |
| /** | |
| * Front to the WordPress application. This file doesn't do anything, but loads | |
| * wp-blog-header.php which does and tells WordPress to load the theme. | |
| * | |
| * @package WordPress | |
| */ | |
| header('Access-Control-Allow-Origin: *'); | |
| header('Access-Control-Allow-Methods: GET, POST, PATCH, PUT, DELETE, OPTIONS'); |
| /** | |
| * * Styled Components Theme * | |
| * This theme file contains an object which holds values for | |
| * common variables such as color, fonts, box shadows, and more. | |
| * Our theme file pulls many of its conventions from styled-system. | |
| * | |
| * * Further Reading: | |
| * - https://primer.style/components/docs/primer-theme | |
| * - https://styled-system.com/table | |
| */ |
| import React from "react"; | |
| import Counter from "./Counter"; | |
| const App = () => { | |
| return ( | |
| <div className="App"> | |
| <Counter initialCount={100} /> | |
| </div> | |
| ); | |
| }; |
| <?php | |
| namespace DevDesigns\DevDesignsStripeAchPlaid; | |
| use GFForms; | |
| use GFPaymentAddOn; | |
| use DevDesigns\DevDesignsStripeAchPlaid\Updater\Licensing; | |
| afb8cdd65d760f1453e1b572e004b7d1cbbe154853febb022cda4eb7abf512c4c8f04c2a2edb7d554d0303ace3a375a93dda88c3e7f0cf469f30077f906fb8b6 |
| <?php | |
| /** | |
| * Make sure the function does not exist before defining it | |
| */ | |
| if( ! function_exists( 'remove_class_filter' ) ){ | |
| /** | |
| * Remove Class Filter Without Access to Class Object | |
| * | |
| * In order to use the core WordPress remove_filter() on a filter added with the callback |
| const addMarginTop = () => { | |
| const siteHeader = document.querySelector('.site-header') | |
| const siteHeaderHeight = window.getComputedStyle(siteHeader).getPropertyValue('height') | |
| const siteHeaderSiblingEl = siteHeader.nextElementSibling | |
| if (!siteHeader || !siteHeaderSiblingEl) { | |
| return | |
| } | |
| siteHeaderSiblingEl.style.setProperty(`--header-height`, siteHeaderHeight) |
| <?php | |
| /** | |
| * Plugin Name: MailHog Config | |
| * Description: Route all WordPress email through MailHog. | |
| * Version: 1.0.0 | |
| * | |
| * @package LuminFire\MailHog | |
| * @since 1.0.0 | |
| * @author LuminFire | |
| * @link https://luminfire.com/ |