This file contains hidden or 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
@charset "utf-8"; | |
/* CSS Document */ | |
#rad-slider { | |
position: relative; | |
list-style: none; | |
overflow: hidden; | |
width: 100%; | |
padding: 0; | |
margin: 0; | |
max-width:1120px; |
This file contains hidden or 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 | |
/** | |
* Customization API | |
*/ | |
//add_action( 'customize_register', 'awesome_theme_customizer' ); | |
// | |
function awesome_theme_customizer( $wp_customize ) { | |
//Link color | |
//create the setting and its defaults | |
$wp_customize->add_setting( 'awesome_link_color', array( 'default' => '#6bcbca', )); |
This file contains hidden or 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: Post thumbnails by taxonomy term | |
*/ | |
//edit these to match the stuff you registered in your custom post type plugin | |
$post_type = 'work'; | |
$taxonomy = 'work_category'; ?> | |
<?php get_header(); ?> |
This file contains hidden or 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', 'mytheme_scripts' ); | |
/** | |
* Enqueue Dashicons style for frontend use | |
*/ | |
function mytheme_scripts() { | |
wp_enqueue_style( 'dashicons' ); | |
} |
This file contains hidden or 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 | |
/* | |
* Plugin Name: Media Upload Widget | |
* Plugin URI: http://wordpress.melissacabral.com | |
* Description: A widget that allows you to upload media from a widget | |
* Version: 1.0 | |
* Author: Melissa Cabral | |
* Author URI: http://wordpress.melissacabral.com | |
* License: GPLv3 | |
*/ |
This file contains hidden or 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_for_posts = get_option('page_for_posts'); | |
if( is_home() && $page_for_posts ) : | |
echo get_the_post_thumbnail($page_for_posts, 'medium'); | |
endif; | |
?> |
This file contains hidden or 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 debug_to_console( $data ) { | |
if ( is_array( $data ) ) | |
$output = "<script>console.log( 'Debug Objects: " . implode( ',', $data) . "' );</script>"; | |
else | |
$output = "<script>console.log( 'Debug Objects: " . $data . "' );</script>"; | |
echo $output; | |
} |
This file contains hidden or 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 | |
// square cropping logic on lines 56-70 | |
// header has the authentication, DB connection and doctype! | |
require('admin-header.php'); | |
//begin upload parser | |
if($_POST['did_upload']){ | |
//the folder where uploads will be saved | |
$upload_directory = '../uploads'; |
This file contains hidden or 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 | |
//hide all of this file if the post if password protected | |
if( post_password_required() ){ | |
return; | |
} | |
//get a distinct count of comments vs. pings | |
$comm = get_comments( array( | |
'status' => 'approve', | |
'post_id' => $id, //This post |