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
phrets_hourly is the WP_CRON hook | |
add_action('phrets_hourly', 'run_listings_update' ); | |
function run_listings_update(){ | |
$fetch = new Fetcher(); | |
$fetch->fetch(); |
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
phrets_hourly is the WP_CRON hook | |
add_action('phrets_hourly', 'run_listings_update' ); | |
function run_listings_update(){ | |
$fetch = new Fetcher(); | |
$fetch->fetch(); |
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
phrets_hourly is the WP_CRON hook | |
add_action('phrets_hourly', 'run_listings_update' ); | |
function run_listings_update(){ | |
$fetch = new Fetcher(); | |
$fetch->fetch(); |
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
global $wp_query; | |
$news = new wp_query(array('post_type' => 'news','nopaging' => true)); | |
$psts = $wp_query->posts; | |
$nws = $news->posts; | |
$pstsnumber = count($psts); | |
$newsnumber = count($nws); | |
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(); ?> | |
<div id="projects"> | |
<?php $thumbnailid = get_post_thumbnail_id($post->ID); ?> | |
<?php $images = get_children( | |
array( | |
'post_parent' => $post->ID, | |
'post_status' => 'inherit', | |
'post_type' => 'attachment', | |
'post_mime_type' => 'image', | |
'order' => 'ASC', |
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
# -FrontPage- | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteRule ^cms/\?p=(.*)$ /\?p=$1 | |
</IfModule> | |
IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti* | |
<Limit GET 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
var headerHeight = $('#primary-navigation').outerHeight(); | |
var footerHeight = $('#main-footer').outerHeight(); | |
var $jsheight = $('.js-height'); | |
if ($jsheight.data('sub')) { | |
$jsheight.height($(window).height() - headerHeight - $($jsheight.data('sub')).outerHeight() * 2.2); | |
}else{ | |
$jsheight.height($(window).height() - headerHeight); |
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
add_filter( 'rss2_item', 'mailchimp_attached_images' ); | |
function mailchimp_attached_images() { | |
global $post; | |
$thumbnail = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'large' ); | |
if ( $thumbnail ) { | |
?> | |
<media:content url="<?php echo $thumbnail[0]; ?>" type="image/jpeg" medium="image" width="100%"></media:content> |
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() { | |
$.stellar({ | |
horizontalScrolling: false, | |
}); | |
// slides | |
var swipe_brian = new Swipe(document.getElementById('swipe-brian'), { | |
speed: 600, |
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
ini_set('error_reporting', E_ALL); | |
echo "hallo"; | |
$username = 'EOJ2S-Z6OoN_le_KS1d75wsZ6y0SFdVsY9183IvxFyZp'; | |
$password = 'EClusMEUk8e9ihI7ZdVLF5cZ6y0SFdVsY9183IvxFyZp'; | |
$headers = array('Accept: application/json','Accept-Language: en_US'); | |
$data = array('grant_type' => 'client_credentials'); |