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 | |
/** | |
* Gravatar Image WP Custom Function | |
* @param string $aa_email user/author email address | |
* @param string $aa_size size of gravatar | |
* @return string gravatar image url | |
*/ | |
function aa_get_gravatar($aa_email, $aa_size) { | |
// Convert email into md5 hash and set image size to 200 px |
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 | |
/** | |
* WP Post Featured Image Url Function | |
* @param string $ai_post_id WP post id | |
* @param string $aa_size WP defined image size | |
* @return string src of featured image | |
*/ | |
function aa_return_img_url($ai_post_id, $aa_size) { | |
$dom = simplexml_load_string(get_the_post_thumbnail($ai_post_id, $aa_size)); | |
$src = $dom->attributes()->src; |
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 | |
/** | |
* Similar posts loop | |
*/ | |
$categories = get_the_category(); //get all categories for this post | |
$cat_id = $categories[0]->cat_ID; | |
echo $cat_id; | |
$args = array( | |
'orderby' => 'date', | |
'order' => 'DESC', |
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 | |
/** | |
* Comment Parent Check | |
* | |
* Returns true if comment is a parent comment | |
* and false if it is child comment | |
* | |
*/ | |
function aa_comment_parent($aa_comment_id) { |
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 for triggering different events | |
* on base of slide number in | |
* Owl Carousel 2 | |
* @url (http://www.owlcarousel.owlgraphic.com/) | |
*/ | |
vr_slider_detailsPage.on('change.owl.carousel', function(event) { | |
//console.log(event.item.index); | |
var vr_slide_index = event.item.index; | |
if ( vr_slide_index == 2 ) { |
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 for triggering different events | |
* on base of slide number in | |
* Owl Carousel 2 | |
* @url (http://www.owlcarousel.owlgraphic.com/) | |
*/ | |
vr_slider_detailsPage.on('change.owl.carousel', function(event) { | |
//console.log(event.item.index); | |
var vr_slide_index = event.item.index; | |
if ( vr_slide_index == 2 ) { |
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
/** | |
* Default Body Class Styles | |
*/ | |
.rtl {} | |
.home {} | |
.blog {} | |
.archive {} | |
.date {} | |
.search {} |
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 | |
/** | |
* This gist is used to create custom fields in the | |
* checkout form of EDD (Easy Digital Downloads). | |
*/ | |
/** | |
* Adding HTML for User Contact Form. | |
*/ | |
function add_address_html() { |
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
// Enable WP_DEBUG mode. | |
define( 'WP_DEBUG', true ); | |
// Enable Debug logging to the /wp-content/debug.log file. | |
// Create this file yourself. | |
define( 'WP_DEBUG_LOG', true ); | |
// Disable display of errors and warnings. | |
define( 'WP_DEBUG_DISPLAY', false ); | |
@ini_set( 'display_errors', 0 ); |
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
Copyright (c) 2010-2015 Giulia Alfonsi <[email protected]> | |
Permission is hereby granted, free of charge, to any person | |
obtaining a copy of this software and associated documentation | |
files (the "Software"), to deal in the Software without | |
restriction, including without limitation the rights to use, | |
copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the | |
Software is furnished to do so, subject to the following | |
conditions: |
OlderNewer