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
/** | |
* Woo: Custom Download View | |
* | |
* Enable custom download box from plugin, if plugin is de-activated | |
* fallback to woocommerce default. | |
*/ | |
function rapid_mydownloads( $template, $slug, $name ) { | |
if ( $template == 'myaccount/my-downloads.php' && function_exists( 'rapid_show_custom_download_box' ) ) { | |
global $woocommerce; | |
rapid_show_custom_download_box(); |
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
/** | |
* Auth0 Migration: Admin Page | |
* | |
* Provide a UI in the WP admin for migrating users to Auth0 | |
*/ | |
public function auth0_admin_page() { | |
// requires admin privledges | |
if ( current_user_can('manage_options') ) { |
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
# Elements | |
Fundamental building blocks of MIT Technology Review's digital styles. | |
## Doctype | |
{{ organization }} makes use of certain HTML elements and CSS properties that require the use of the HTML5 doctype. Include it at the beginning of all your projects. | |
### HTML | |
```html | |
<!DOCTYPE html> | |
<html lang="en"> |
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
/** | |
* DFP Test Page Controller | |
* | |
* This pulls in the data we need to output | |
* a story URL | |
* | |
* @pattern /dfp/ | |
*/ | |
'use strict'; |
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
/** | |
* /in/profile/edit | |
*/ | |
'edit': { | |
auth: { | |
mode: "try", | |
strategy: global.__config.cookie.strategy | |
}, | |
plugins: { | |
"hapi-auth-cookie": { |
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
.navbar__mobile-search__close { | |
display: none; | |
@include mq($nav-02) { | |
@include input-default; | |
display: block; | |
@include absolute(20px 20px n n); | |
@include size(20px); | |
background: #fff; |
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 | |
include_once( plugin_dir_path( __FILE__ ) . 'classes/MetaBox.php' ); | |
include_once( plugin_dir_path( __FILE__ ) . 'classes/MediaAccess.php' ); | |
$meta_boxname = new WPAlchemy_MetaBox( array( | |
'id' => '_boxname_meta', | |
'title' => 'Metabox Name', | |
'template' => plugin_dir_path( __FILE__ ) . 'meta-template.php', | |
'mode' => WPALCHEMY_MODE_EXTRACT, | |
) ); |
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
/** | |
* Load Media Upload Scripts | |
* | |
* Load the JS & CSS needed for the media upload field | |
*/ | |
function enqueue_scripts() { | |
// Only load on widgets screen | |
$screen = get_current_screen(); | |
if ( $screen->id != 'widgets' ) |
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 | |
/** | |
* Template Name: Around The Web | |
* | |
* The template for displaying a curated resources Archive. | |
* | |
* Learn more: http://codex.wordpress.org/Template_Hierarchy | |
* | |
* @package _s | |
* @since _s 1.0 |
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
/** | |
* Google hosted jQuery | |
*/ | |
function google_hosted_jquery( $src, $handle ) { | |
// Only run for jQuery | |
if ( $handle == "jquery" ) { | |
$parse_url = parse_url( $src ); | |
$version = str_replace( 'ver=', '', $parse_url['query'] ); | |
return "//ajax.googleapis.com/ajax/libs/jquery/$version/jquery.min.js"; |
OlderNewer