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 | |
| /** | |
| * @author joshmoto <https://stackoverflow.com/users/888894/joshmoto> | |
| */ | |
| class DynamicRouter { | |
| protected static | |
| /** |
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
| const Subscriptions = require("../models/subscriptions"); //Any Subscription Model | |
| const Users = require("../models/users"); // User Model | |
| const Plans = require("../models/plans"); // Plans Model | |
| const Payments = require('../models/payments') | |
| const { send: sendMail } = require('../services/smtp'); | |
| const { generatePassword, getExpiryDate } = require('../utils/helpers'); | |
| let thrivecart_secret = process.env.THRIVECART_SECRET; //Add your API Secret in .env file |
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
| /*! NOTE: These are just recommended default global styles, edit as required */ | |
| @import ('Import reset stylesheet here, (I recommend modern-normalize) or even better, import the reset stylesheet in the HTML as the first imported stylesheet'); | |
| ::selection { /* Optional */ | |
| /* It can be really hard to read highlighted text with a text-shadow, it should be removed when selected */ | |
| text-shadow: none; | |
| /* NOTE: Using this means the color and background-color are set to transparent for selected text... */ | |
| /* So you can customise your styles below */ |
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
| /* I'll put here different examples of dynamic query for Oxygen repeater : | |
| * - Use one of the following repeater_dynamic_query definitions | |
| * in code block just BEFORE the repeater | |
| * - Set the repeater custom query settings : post type, number of posts, order... | |
| * - Add the remove_action in a code block AFTER the repeater | |
| */ | |
| /**************************************************************************************************** | |
| * Display related posts for any CPT with taxonomy: |
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> | |
| <head> | |
| <meta charset="UTF-8" /> | |
| <title>Add React in One Minute</title> | |
| </head> | |
| <body> | |
| <h2>Add React in One Minute</h2> | |
| <p>This page demonstrates using React with no build tooling.</p> |
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
Show hidden characters
| { | |
| "presets": ["env", "stage-2"], | |
| "plugins": [ | |
| ["transform-react-jsx", { "pragma": "h" }] | |
| ] | |
| } |
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
| use Carbon_Fields\Container; | |
| use Carbon_Fields\Field; | |
| add_action( 'carbon_fields_register_fields', 'crb_attach_theme_options' ); | |
| function crb_attach_theme_options() { | |
| Container::make( 'theme_options', __( 'Theme Options', 'crb' ) ) | |
| ->add_fields( array( | |
| Field::make('text', 'crb_text', 'Text Field' ), | |
| Field::make('association', 'crb_association', 'Association'), | |
| Field::make('checkbox', 'crb_checkbox', 'Checkbox') |
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_action( 'init', function() { | |
| if( !isset( $_GET['edd_action'] ) && !isset( $_POST['edd_action'] ) ) | |
| return; | |
| if( !isset( $_GET[ 'license' ] ) || !isset( $_GET[ 'item_id' ] ) ) | |
| if( !isset( $_POST[ 'license' ] ) || !isset( $_POST[ 'item_id' ] ) ) | |
| return; |
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
| version: '3' | |
| services: | |
| nginx-proxy: | |
| image: jwilder/nginx-proxy | |
| labels: | |
| com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy: "true" | |
| container_name: nginx-proxy | |
| restart: unless-stopped | |
| ports: |
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
| <html> | |
| <head> | |
| <title>grid</title> | |
| <style> | |
| body {padding: 0; margin: 0;} | |
| .container { | |
| display: grid; | |
| grid-template-rows: 200px repeat(4, 100px); | |
| grid-template-columns: repeat(4, 1fr); | |
| grid-template-areas: "header header header header" |
NewerOlder