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 | |
/** | |
*use this for file paths. | |
*@param string | |
* | |
*@return string | |
*/ | |
function ez_file_path( $file ) { | |
$host = $_SERVER[ "HTTP_HOST" ]; | |
$path = rtrim ( dirname( $_SERVER[ "PHP_SELF" ] ), "/\\" ); |
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 ~/.profile | |
# ------------------------------------------------------------ | |
# Set paths | |
# ------------------------------------------------------------ | |
export PATH="/usr/local/bin:$PATH" | |
export PATH="$PATH:$HOME/.composer/vendor/bin" | |
export PATH=~/.npm-global/bin:$PATH | |
# ------------------------------------------------------------ |
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 | |
/** | |
*use this for file paths. | |
*@param string | |
* | |
*@return string | |
*/ | |
function ez_file_path( $file ) { | |
$host = $_SERVER[ "HTTP_HOST" ]; | |
$path = rtrim ( dirname( $_SERVER[ "PHP_SELF" ] ), "/\\" ); |
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
/* | |
*jquery - Lightbox | |
*/ | |
//Problem: User, when clicking on an image goes to a dead end. | |
//Solution: Create a large overlay when the user clicks the image. -Lightbox | |
//By placing the div in the app.js file we are using unobtrusive jquery. | |
var $overlay = $('<div id="overlay"></div>'); | |
var $image = $("<img>"); |
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 | |
/** | |
* | |
*General registration form | |
* | |
* | |
*/ | |
?> | |
<form method="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 | |
/** | |
* Template Name: Home | |
*/ | |
/** | |
* Remove the Genesis custom loop and add custom template | |
* | |
* @action genesis_loop | |
* |
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
/** | |
* Remove the Genesis custom loop and add custom template | |
* | |
* Added a counter to my WordPress loop to avoid having to use the Genesis Grid Loop | |
* | |
* @action genesis_loop | |
* | |
* @return void | |
*/ | |
function rjs_portfolio_loop() { |
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 | |
/* | |
* Single Categories | |
*/ | |
get_header() ?> | |
<section id="categories"> | |
<div class="gallery-categories grid-100"> | |
<ul> |
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 demo_enqueue_scripts() { | |
// Theme CSS | |
wp_enqueue_style( 'demo-animate' , get_template_directory_uri() . '/css/animate.min.css'); | |
// Theme JS | |
wp_enqueue_script( 'deom-lazyloadxt' , get_template_directory_uri() . '/js/jquery.lazyloadxt.js', array('jquery'), '' , true); | |
} | |
add_action( 'wp_enqueue_scripts', 'demo_enqueue_scripts' ); |
OlderNewer