This file contains 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 axios = require('axios'); | |
const qs = require('qs'); | |
exports.handler = async function(event, context) { | |
// Parse the 'code' from the query string | |
const { code } = event.queryStringParameters; | |
// Token endpoint for your service, this should be replaced with your actual token endpoint | |
const tokenURL = 'https://auth.smartcar.com/oauth/token'; |
This file contains 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 axios = require('axios'); | |
const qs = require('qs'); | |
exports.handler = async function(event, context) { | |
// Parse the 'code' from the query string | |
const { code } = event.queryStringParameters; | |
// Token endpoint for your service, this should be replaced with your actual token endpoint | |
const tokenURL = 'https://auth.smartcar.com/oauth/token'; |
This file contains 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 strict'; | |
var React = require('react/addons'); | |
var RouteHandler = require('react-router').RouteHandler; | |
var DocumentTitle = require('react-document-title'); | |
var projectActions = require('./actions/projectActions'); | |
var ProjectStore = require('./stores/projectStore'); | |
var Header = require('./components/header'); | |
var Footer = require('./components/footer'); | |
var Bootstrap = require('./libraries/bootstrap/'); | |
var BootstrapTheme = require('./libraries/bootstrap_theme.min/'); |
This file contains 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
// Create a page on theme activation | |
function privateMessagePage () { | |
$default_pages = array('This content is private'); //Page Title | |
$existing_pages = get_pages(); | |
$temp = array(); | |
foreach ($existing_pages as $page) { |
This file contains 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 | |
/** | |
* @package RedRokk | |
* @version 1.0.0 | |
* | |
* Plugin Name: Empty Widget | |
* Description: Single Widget Class handles all of the widget responsibility, all that you need to do is create the html. Just use Find/Replace on the Empty_Widget keyword to rebrand this class for your needs. | |
* Author: RedRokk Interactive Media | |
* Version: 1.0.0 | |
* Author URI: http://www.redrokk.com |