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 ?> | |
<div class="member-login"> | |
<?php if (is_user_logged_in()): | |
$loggedin = true; | |
$user = wp_get_current_user(); | |
$levels = WLMAPI::GetUserLevels($user->ID); | |
$getlevels = WLMAPI::GetLevels(); | |
endif; ?> | |
<a class="button" href="javascript:void(null);" onclick="jQuery('.dropdown-box').toggle();"> | |
<?php if ($loggedin): ?> |
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 these lines to your functions file | |
add_filter( 'embed_oembed_html', 'embed_responsively_oembed_filter', 10, 4 ) ; | |
// the following function will wrap the embedded code in a responsive frame, where the video is 100% width | |
function embed_responsively_oembed_filter($html, $url, $attr, $post_ID) { | |
$return = "<style> | |
.embed-container { | |
position: relative; |
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 my_login_logo() { | |
// this will add a block fo css to the page that you can customize on the login page. | |
?> | |
<style type="text/css"> | |
body.login div#login h1 a { | |
background-image: url(<?php echo get_bloginfo( 'stylesheet_directory' ) ?>/images/login_logo.png); | |
padding-bottom: 3px; | |
background-size: contain; | |
width: 100%; |
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 return_season() { | |
$day = date('z'); | |
if( $day < 79) $season = 'winter'; | |
elseif( $day < 171) $season = 'spring'; | |
elseif( $day < 265) $season = 'summer'; | |
elseif( $day < 354) $season = 'fall'; | |
else $season = "winter"; | |
return $season; |
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
RewriteEngine On | |
RewriteBase /wp-content/uploads/ | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{HTTP_HOST} ^tempurl.com$ | |
RewriteRule ^(.+)$ http://siteurl.com/wp-content/uploads/$1 [L,R=301,NE] |
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 append_query_string($url) { | |
global $post; | |
$newurl = get_post_meta($post->ID, 'post_URL', true); | |
if ($newurl) { | |
$url = $newurl; | |
} | |
return $url; | |
} | |
add_filter('post_link', 'append_query_string'); |
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 | |
// [page name="contact"] | |
function page_content($atts) { | |
extract(shortcode_atts(array( | |
'name' => '' | |
), $atts)); | |
$return = ''; | |
$args=array( | |
'name' => $name, | |
'post_type' => '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 | |
// Excerpt Filter this will remove any text added to the excerpt | |
function new_excerpt_more($more) { | |
global $post; | |
return ''; | |
} | |
// This will append the excerpt with additional text, "Read More" | |
function the_excerpt_always_show_read_more($content) { | |
global $post; |
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 get_header(); ?> | |
<div class="container blog content"> | |
<div class="row"> | |
<div class="span8 entry"> | |
<div class="headline"> | |
<?php | |
$value = get_query_var($wp_query->query_vars['taxonomy']); | |
$cat = get_term_by('slug',$value,$wp_query->query_vars['taxonomy']); ?> | |
<h1><?php echo $cat->name; ?></h1> | |
<?php $loop = new WP_Query(array( |
OlderNewer