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 | |
function example_image_widget_output( $output, $args, $instance, $id_base ) { | |
$link_open = ''; | |
$link_close = ''; | |
if ( ! empty ( $instance['link'] ) ) { | |
$target = ( empty( $instance['new_window'] ) ) ? '' : ' target="_blank"'; | |
$link_open = '<a href="' . esc_url( $instance['link'] ) . '"' . $target . '>'; | |
$link_close = '</a>'; | |
} | |
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 | |
/** | |
* Remove Defualt Functions | |
* | |
* This file removes default functions from WordPres | |
* and the Genesis Framework | |
* | |
* @package FF_Framework | |
* @author Funeral Forward <[email protected]> | |
* @copyright Copyright (c) 2013, Funeral Forward |
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 | |
/** | |
* EDD Super Admin Settings | |
* | |
* Modifies the EDD settings page for non-super admin users. | |
* | |
* @package EDSU_Admin | |
* @author FAT Media <[email protected]> | |
* @copyright Copyright (c) 2012, FAT Media | |
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License |
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 | |
/** | |
* The custom testimonials post type archive template | |
* | |
* @since 1.0.0 | |
* | |
* @author FAT Media <[email protected]> | |
* @package Genesis | |
* | |
* @copyright Copyright (c) 2012, FAT Media |
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
jQuery(document).ready(function($) { | |
$.fn.cleardefault = function() { | |
return this.focus(function() { | |
if( this.value == this.defaultValue ) { | |
this.value = ""; | |
} | |
}).blur(function() { | |
if( !this.value.length ) { | |
this.value = this.defaultValue; |
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 | |
add_action( 'wp_enqueue_scripts', 'prefix_enqueue_awesome' ); | |
/** | |
* Register and load font awesome CSS files using a CDN. | |
* | |
* @link http://www.bootstrapcdn.com/#fontawesome | |
* @author FAT Media | |
*/ | |
function prefix_enqueue_awesome() { | |
wp_enqueue_style( 'prefix-font-awesome', '//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.min.css', array(), '4.0.3' ); |
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 | |
/** | |
* Registers and loads font awesome | |
* CSS files using a CDN. | |
* | |
* @link http://www.bootstrapcdn.com/#tab_fontawesome | |
* @author FAT Media | |
*/ | |
add_action( 'wp_enqueue_scripts', 'prefix_enqueue_awesome' ); | |
/** |
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 | |
// Remove the default Genesis child theme CSS | |
remove_action( 'genesis_meta', 'genesis_load_stylesheet' ); | |
add_action( 'wp_enqueue_scripts', 'prefix_load_stylesheet' ); | |
/** | |
* Get the current child theme version | |
* and use it to bust the cache by appending | |
* it to the CSS output. | |
* | |
* @author FAT Media |