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
X_FOR_X_DISCOUNT_ENABLED = false | |
X_FOR_X_RULES_ARR = [ | |
{ | |
TAG_NAME: 'tagname_something', | |
PRODUCT_COUNT: 3, | |
PRICE: 9900, | |
MESSAGE: '2 for $30 collection' | |
} | |
] |
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 | |
/** | |
* Ranking Library | |
* contains alogrithms for story ranking | |
* Basically a PHP Implementation of reddits algorithms | |
* | |
* @author Lucas Nolte <[email protected]> | |
* @since 0.1 | |
* @package Polska Wiadomosc | |
* @subpackage Libraries |
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 Guzzle\Http\Client; | |
use Guzzle\Http\Exception\ClientErrorResponseException; | |
private function purgeImgixCache($imageUrl) | |
{ | |
$client = new Client(); | |
try { | |
$request = $client->post('https://api.imgix.com/v2/image/purger', |
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() { | |
var fixadent = $(".logo-nav"); //the div you want | |
h = $(window).height(); //calculate height of window or whatever element you want it to scroll past | |
$(window).scroll(function() { | |
if($(this).scrollTop() > h ) { | |
$(fixadent).css('background', '#5fc1d8'); | |
} | |
else { | |
$(fixadent).css('background', '#222'); |
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 | |
query_posts('post_type=featured-work'); | |
if ( have_posts() ) : while ( have_posts() ) : the_post(); | |
global $wpdb; | |
$metatable = $wpdb->prefix."postmeta"; | |
$post_id = $post->ID; | |
$deschome = $wpdb->get_results($wpdb->prepare("SELECT meta_value FROM $metatable where post_id=%d AND meta_key='wpcf-featured-work-description-home'",$post_id));?> | |
<div class="work-home"> | |
<div class="work-view"> | |
<div class="work-img"><a title="<?php the_title(); ?>" href="<?php the_permalink() ?>"><?php the_post_thumbnail(); ?></a></div> |
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 get_header(); ?> | |
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> | |
<?php | |
global $wpdb; | |
$metatable = $wpdb->prefix."postmeta"; | |
$post_id = $post->ID; | |
$deschome = $wpdb->get_results($wpdb->prepare("SELECT meta_value FROM $metatable where post_id=%d AND meta_key='wpcf-featured-work-description-home'",$post_id)); | |
?> | |
<div class="container"> | |
<div class="work-home"> |
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: Blog | |
*/ | |
?> | |
<?php get_header(); ?> | |
<div class="container"> | |
<article id="content"> | |
<?php |