Skip to content

Instantly share code, notes, and snippets.

View taniarascia's full-sized avatar
💾

Tania Rascia taniarascia

💾
View GitHub Profile
<link rel="icon" type="image/png" href="images/favicon.png">
@taniarascia
taniarascia / nav.html
Last active February 13, 2024 07:52
Responsive Dropdown Navigation Bar
<section class="navigation">
<div class="nav-container">
<div class="brand">
<a href="#!">Logo</a>
</div>
<nav>
<div class="nav-mobile">
<a id="nav-toggle" href="#!"><span></span></a>
</div>
<ul class="nav-list">
@taniarascia
taniarascia / index.html
Last active May 28, 2024 00:15
HTML Skeleton file
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<meta name="author" content="">
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<?php
/**
* The base configuration for WordPress
*
* The wp-config.php creation script uses this file during the
* installation. You don't have to use the web site, you can
* copy this file to "wp-config.php" and fill in the values.
*
* This file contains the following configurations:
*
@taniarascia
taniarascia / index.php
Created October 18, 2015 00:54
Start Wordpress Tutorial
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<meta name="description" content="">
<meta name="author" content="">
// Load Grunt
module.exports = function (grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
// Tasks
sass: { // Begin Sass Plugin
dist: {
options: {
sourcemap: 'none'
@taniarascia
taniarascia / category.php
Created October 27, 2015 00:03
Add category to post
<?php
foreach((get_the_category()) as $category) {
if ($category->cat_name != 'Uncategorized') {
echo '<a class="category-block" href="' . get_category_link( $category->term_id ) . '" title="' . sprintf( __( "View all posts in %s" ), $category->name ) . '" ' . '>' . $category->name.'</a> '; }}
?>
@taniarascia
taniarascia / date.php
Created November 2, 2015 19:50
Pulling date via $_GET from URL, parsing it into strings to be used later
<?php
// No date is set if they didn't click a specific date
$eventDate = false;
// If 'date' is in the URL
if(isset($_GET[date])) {
// Date is set
$eventDate = true;
Functions.php:
function get_custom(){
return 'http://www.custom.com';
}
<?php echo get_custom();?>
@taniarascia
taniarascia / maps.js
Last active February 13, 2024 07:52
Google Maps APIs for Multiple Locations
function initMap() {
var broadway = {
info: '<strong>Chipotle on Broadway</strong><br>\
5224 N Broadway St<br> Chicago, IL 60640<br>\
<a href="https://goo.gl/maps/jKNEDz4SyyH2">Get Directions</a>',
lat: 41.976816,
long: -87.659916
};