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 | |
function cwv3_issue_17( $output ){ | |
$exit_text = get_option( 'cwv3_exit_txt', __( 'Exit', 'cwv3' ) ); | |
$enter_text = get_option( 'cwv3_enter_txt', __( 'Enter', 'cwv3' ) ); | |
$cwv3_denial_title = get_option( 'cwv3_den_title', __( 'Access Denied', 'cwv3' ) ); | |
$cwv3_denial_message = get_option( 'cwv3_den_msg', __( 'You have been denied access to this content. If you feel this is in error, please contact a site administrator.', 'cwv3' ) ); | |
$cwv3_title = get_option( 'cwv3_d_title', __( 'Warning: Explicit Content', 'cwv3' ) ); | |
$cwv3_message = get_option( 'cwv3_d_msg', __( 'The content you are about to view may be considered offensive and/or inappropriate. Furthermore, this content may be considered adult content, if you are not of legal age or are easily offended, you are required to click the exit button.', 'cwv3' ) ); | |
$exit_url = get_option( 'cwv3_exit_link', '#' ); |
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 if( $images ): ?> | |
<div id="carousel-example-generic" class="carousel slide" data-ride="carousel"> | |
<!-- Indicators --> | |
<ol class="carousel-indicators"> | |
<li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li> | |
<li data-target="#carousel-example-generic" data-slide-to="1"></li> | |
<li data-target="#carousel-example-generic" data-slide-to="2"></li> | |
</ol> | |
<!-- Wrapper for slides --> |
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 | |
/** | |
* Calculate the distance between two points. | |
*/ | |
class DistanceCheck { | |
/** | |
* Calculate |
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
{ | |
"11": { | |
"children": { | |
"100": { | |
"children": { | |
"1600": { | |
"description": "", | |
"name": "Orbital Strike", | |
"parent": "100" | |
}, |
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
:: I created this with some free time at WebDevStudios. I just got tired of having to edit my vhosts in xampp, | |
:: then go to my local computer's hosts file and edit that one as well, so why not create a batch file? | |
:: | |
:: This batch file could use some logic updates as it will not know if the entries already exist in vhosts or | |
:: in your hosts file. | |
:: ALSO: I'm a newbie at batch files, so excuse any formatting issues :D | |
@echo off |
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
[10-Jun-2015 14:40:35 UTC] PHP Fatal error: Class 'Mustache_Cache_NoopCache' not found in /home/dealtrend/public_html/wp-content/plugins/posts-to-posts/vendor/mustache/mustache/src/Mustache/Engine.php on line 528 | |
[10-Jun-2015 14:40:35 UTC] PHP Stack trace: | |
[10-Jun-2015 14:40:35 UTC] PHP 1. {main}() /home/dealtrend/public_html/wp-admin/post.php:0 | |
[10-Jun-2015 14:40:35 UTC] PHP 2. include() /home/dealtrend/public_html/wp-admin/post.php:209 | |
[10-Jun-2015 14:40:35 UTC] PHP 3. do_meta_boxes($screen = 'locations', $context = 'side', $object = class WP_Post { public $ID = '19622'; public $post_author = '1'; public $post_date = '2015-06-03 09:47:07'; public $post_date_gmt = '2015-06-03 13:47:07'; public $post_content = ''; public $post_title = '3005 31st St , Astoria, NY'; public $post_excerpt = ''; public $post_status = 'publish'; public $comment_status = 'open'; public $ping_status = 'open'; public $post_password = ''; public $post_name = '3005-31st-st-astoria-ny'; public $to_ping = ''; public $pinged = ''; p |
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
// JqueryUI datepicker and Magnific popup don't play well together, this is a fix. | |
$.magnificPopup.instance._onFocusIn = function(e) { | |
if( $(e.target).hasClass( 'ui-datepicker-month' ) | |
|| $(e.target).hasClass( 'ui-datepicker-year' ) | |
|| $( e.target ).hasClass( 'ui-state-default' ) ) { | |
return true; | |
} | |
$.magnificPopup.proto._onFocusIn.call(this,e); | |
}; |
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 wds_dealtrend_deals_main_no_expired( $query ) { | |
if( ! $query instanceof WP_Query ) { | |
return 'FALSE'; | |
} | |
if ( ! $query->is_main_query() || ! $query->is_post_type_archive( 'deals' ) ) { | |
return false; | |
} | |
$query->set( 'meta_query', array( |
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
/** | |
* fixMSWord | |
* | |
* Replace ascii chars with utf8. Note there are ascii characters that don't | |
* correctly map and will be replaced by spaces. | |
* | |
* Updated 7-15-2015 by Jay Wood to encode lower end items into HTML entity counterparts. | |
* | |
* @author Robin Cafolla,Jay Wood | |
* @date 2013-03-22 |
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
.cwv3.dialog-overlay{ | |
background-image: url("http://www.kikoriwhiskey.com/wp-content/uploads/2015/08/MG_9118Kikori.jpg"); | |
/* | |
Center the background position | |
See - http://www.w3schools.com/cssref/pr_background-position.asp | |
*/ | |
background-repeat: no-repeat; | |
background-attachment: fixed; | |
background-position: center center; |