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 | |
/* | |
* 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 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 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 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 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 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
<aside id="complementary"> | |
<?php | |
//get the titles of the most popular (by number of comments) 5 published posts | |
$query_popular = 'SELECT posts.title, posts.post_id, COUNT(*) AS numcomments | |
FROM posts, comments | |
WHERE posts.is_published = 1 | |
AND posts.post_id = comments.post_id | |
GROUP BY posts.post_id | |
ORDER BY numcomments DESC |
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
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Pure CSS Dropdowns</title> | |
<link href="css/reset.css" rel="stylesheet" type="text/css"> | |
<link href="css/style.css" rel="stylesheet" type="text/css"> | |
</head> | |
<body> |
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: Automagic Sitemap | |
Will automatically generate a sitemap from the wordpress database of posts, pages, and categories. | |
*/ | |
?> | |
<?php get_header(); ?> | |
<div id="content"> |
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
/* | |
Theme Name: Awesome Co | |
Theme URI: http://melissacabral.com/ | |
Description: A barebones theme for learning! | |
Author: melissa cabral | |
Author URI: http://melissacabral.com | |
Version: 1.0 | |
License: GPLv2 | |
License URI: license.txt |