Skip to content

Instantly share code, notes, and snippets.

typography6: {
family: "Arial, Helvetica, sans-serif"
google: "false"
style: "400-italic"
script: ""
size: "33"
height: "42"
color: "#939393"
}
@dovy
dovy / redux_get_variables.php
Last active October 3, 2016 10:13
Simple method for recovering redux values if you wish to not use the global variable.
<?
function redux_get_variables( $name, $key = false ) {
global $MY_VAR_NAME; // Update to your opt_name or global_variable name
$options = $MY_VAR_NAME; // Update to your opt_name or global_variable name
$var = ""; // Set this to your preferred default value
if ( empty( $name ) && !empty( $options ) ) {
$var = $options;
} else {
type id title subtitle desc compiler class fold options default data transparent width height placeholder tiles presets style raw_html header icon url preview username multi min max step units top right bottom left On Off rows google family size script color
button_set X X X X X X X X X
@dovy
dovy / gist:6633606
Last active December 23, 2015 12:09
Plugin
Demo
Free to build off of
Core features
Github Issue Support
Premium
Premium Support - First priority
Private Github Support Files (Customized Theme & Plugin Boilerplates)
Private Github + ThemeForest Support Files (Customized Theme & Plugin Boilerplates)
@dovy
dovy / function.php
Last active December 23, 2015 14:59
sdfds
<?
private function __construct() {
$this->_actionsCommon();
if ( is_admin() ) {
$this->_actionsAdmin();
}
}
<?
// Construct the proper google fonts URL from the font values
function getGoogleScript( $font ) {
$data['link'] = 'http://fonts.googleapis.com/css?family=' . str_replace( ' ', '+', $font['font-family'] );
$data['key'] = str_replace( ' ', '_', $font['font-family'] );
if ( !empty( $font['font-weight'] ) ) :
$data['link'] .= ':' . str_replace( '-', '', $font['font-weight'] );
if ( !empty( $font['font-style'] ) ) :

Integrate RecordSeek on your website!

RecordSeek is a service that allows users to link any page on the net to an ancestor's profile on FamilySearch. In order to make this an easy integration, the following document has been created. For production use please contact earl@rtcollab.com for pricing and maintenance details.

Step 1 - Get a FamilySearch Developer Key

FamilySearch will allow you to utilize RecordSeek as a method to gain a developer key. We can be a proxy for you, but you need to go through the proper process. First, you will need to go here to request a key: https://familysearch.org/developers/docs/guides/getting-started

Then after you've been approved, you will need to get it promoted to production level. Once that occurrs, send an email to [dovy@rtcollab.com](mailto:dovy@rtcollab.com?subject=RecordSeek Integration). Tell me your key, secret, and site URL you will be sending links from.

@dovy
dovy / sdk.js
Created October 21, 2013 20:20
/*!
* FamilySearch JavaScript SDK
* Copyright 2012, Dallan Quass & Dovy Paukstys
* For all api documentation:
* https://familysearch.org/developers/
*/
;(function(){
// The FamilySearch namespace
<!doctype html>
<html>
<head>
<title>XD</title>
</head>
<body onload="sendFragment()">
<script>
function sendFragment() {
(window.opener || window.parent || window.top).postMessage("access_token=S7jYwvM2UgFK2hYuFWHNQIZF52uW3gY3XV7FElw1&action=authorize&authorize=1&callback=g8008&client_id=AJv9wOwmrMstpYTuTlIOmqpbd1FA02y2CbVoy2EO&controller=platform%2Foauth&display=popup&expires_in=86400&origin=http%3A%2F%2Fgeni.dev&redirect_url=&response_type=token&scope=&state=", "http://geni.dev");
/* Layout
-------------------------------------------------------------- */
#page {
margin: 0 auto 0 auto;
width: 100%;
text-align: left;
background: #fff;
}
.page-stripe {