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
<section id="section-banner"> | |
<span class="banner_noresponsive"><?php | |
$bannerarea = get_field("banner"); | |
if($bannerarea == ""){ | |
?> | |
<?php }else{ ?> | |
<img src="<?php echo get_field("banner"); ?>"> | |
<?php } ?></span> | |
<span class="banner_responsive"><?php | |
$bannerarea_responsive = get_field("banner_responsive"); |
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 | |
if ( 'movie' == get_post_type() ) { | |
/* Custom code for 'movie' post type. */ | |
} elseif ( 'book' == get_post_type() ) { | |
/* Custom code for the 'book' post type. */ | |
} |
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(function ($) { | |
$(document).ready(function(){ | |
$(".page1").click(function(){ | |
$('#pageloader').load('path/to/file.html'); | |
}); | |
}); | |
} |
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
define('EDD_SLUG', 'my-downloads-slug'); |
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
.gallery { | |
overflow: auto; | |
zoom: 1; | |
display: flex; | |
flex-direction: row; | |
} | |
.gallery-columns-3 figure { | |
width: 33%; | |
float: left; | |
height: 370px; |
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 | |
if( $product->is_type( 'simple' ) ){ | |
echo "is simple product"; | |
} elseif( $product->is_type( 'variable' ) ){ | |
echo "is variable"; | |
} elseif( $product->is_type( 'composite' ) ){ | |
echo "is composite"; | |
} else { | |
echo "derpage"; |
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
<head> | |
<!--[if IE]><![endif]--> | |
<link rel='stylesheet' id='kfalkner-font-awesome-css' href='//netdna.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css?ver=4.4.0' type='text/css' media='all' /> | |
<link rel="stylesheet" href="http://www.kristinfalkner.com/wp-content/cache/min/1/d55b692a1c3c0173104fb1e29befc0a7.css" data-minify="1" /> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
<title>Custom WordPress Work, PSD to WordPress, Los Angeles WordPress Developer, Web Design & Development | Kristin Falkner</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<link rel="alternate" type="application/rss+xml" title="Kristin Falkner RSS Feed" href="http://www.kristinfalkner.com/feed/" /> |
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 rcp_subscription_level meta_key to users **// | |
// Updates user subscription upon saving the user's WP profile | |
add_action( 'edit_user_profile_update', 'digisavvy_auto_add_rcp_members' ); | |
// Auto adds new user to RCP subscription | |
add_action( 'user_register', 'digisavvy_auto_add_rcp_members' ); | |
function digisavvy_auto_add_rcp_members( $user_id ) { | |
$rcp_member = 1; // Subscription ID you're auto adding users to |
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
function ds_login_redirect( $redirect_to, $request, $user ) { | |
$current_user = wp_get_current_user(); | |
$url = get_site_url( ); | |
$purl = $url . '/members/'. $current_user->user_login . '/courses/'; | |
return ( is_array( $user->roles ) && in_array( 'administrator', $user->roles ) ) ? admin_url() : $purl; | |
} | |
add_filter( 'login_redirect', 'ds_login_redirect', 10, 3 ); |