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 $pageOne = get_theme_mod( 'page_one', '2' ); $pageTwo = get_theme_mod( 'page_two', '2' ); $pageThree = get_theme_mod( 'page_three', '2' ); ?> | |
<?php if ( 'false' == ( $pageOne ) || '' != ( $pageOne ) && 'false' == ( $pageTwo ) || '' != ( $pageTwo ) && 'false' == ( $pageThree ) || '' != ( $pageThree ) ) { ?> | |
<!-- BEGIN .row --> | |
<div class="row featured-pages"> | |
<!-- BEGIN .content --> | |
<div class="content"> | |
<!-- BEGIN .sixteen columns --> |
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
//Source A shows this syntax as the proper way to write all jQuery code. | |
$(document.ready(function(){ | |
$('thingToInteractWith').event(function(){ | |
$('thingToAffect').effect(); | |
}); | |
}); | |
//Another example below |
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 lang="en"> | |
<head> | |
<title> JavaScript Foundations: Arrays</title> | |
<style> | |
html { | |
background: #FAFAFA; | |
font-family: sans-serif; | |
} | |
</style> |
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> | |
<link rel="stylesheet" href="styles.css" type="text/css"> | |
<link href="//fonts.googleapis.com/css?family=Nunito:400,300,700" rel="stylesheet" type="text/css"> | |
</head> | |
<body> | |
<div class="container"> | |
<div id="intro"> | |
<div class="grid_4"> |
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 swell_theme_customizer( $wp_customize ) { | |
//-------------------------------------------------------------------------------------------------------------------// | |
// Page Templates | |
//-------------------------------------------------------------------------------------------------------------------// | |
$wp_customize->add_section( 'swell_templates_section' , array( | |
'title' => __( 'Page Templates', 'swelltheme' ), | |
'priority' => 103, | |
) ); | |
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
<? | |
/** | |
* @author Joachim Kudish | |
* @uses SLD Custom Content Types & Taxonomies | |
* types & taxonomies | |
*/ | |
if (function_exists('sld_register_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
public function add_meta_box( $post_type ) { | |
$post_type = 'notes'; //limit meta box to certain post types | |
add_meta_box( | |
'handshaken_note_settings', | |
__( 'Note Settings', 'handshaken' ), | |
array( $this, 'render_meta_box_content_note' ), | |
$post_type, | |
'advanced', | |
'high' | |
); |
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 | |
/** | |
* @package Basis | |
*/ | |
if ( ! function_exists( 'basis_customize_colors' ) ) : | |
/** | |
* Add color theme options via the WordPress Customizer. | |
* | |
* @since 1.0. |
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
/** | |
* overlay.js | |
* | |
* Handles toggling the whole screen overlay when nav button is clicked. | |
*/ | |
(function(){ | |
$("#slider-btn").toggle(function() { | |
$('#page-overlay').css('display','block'); | |
$('.menu-main-menu-container').css('display','block'); |
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: Front Page | |
* | |
* @package port | |
*/ | |
get_header(); ?> | |
<div class="wrapper"> |