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
<!-- Get upcoming events --> | |
<div class="columns medium-6 align-right"> | |
<?php $events_args = array( | |
'post_type' => 'contest', | |
'meta_key' => 'contest_year_ch', | |
'orderby' => 'meta_value', | |
'posts_per_page' => -1 | |
); | |
$upcoming_events = new WP_Query( $events_args ); |
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 c = floor(5 / 2) = 2 | |
// 5 + c | |
// ___________________ | |
// [0] [1] {2} [3] [4] [5] [6] {7} {8} [9] [10] | |
// ___________________ ____________________ | |
// 0 + c 6 + c | |
// var c = floor(3 / 2) = 1 |
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 | |
// Load scripts and styles | |
function add_scripts_and_styles() { | |
if ( ! is_admin() ) { | |
// For styles | |
wp_enqueue_style( 'main-style', get_template_directory_uri() . '/style.css', null, null ); | |
// For scripts (js) | |
wp_enqueue_script('jquery'); | |
wp_enqueue_script( 'main-js', get_template_directory_uri() . '/js/main.js', null, null, true ); | |
// Map |
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
:nth-last-of-type(2) { | |
} |
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
// General person styles | |
.person { | |
$s: &; | |
position: relative; | |
margin-bottom: 30px; | |
&__first-part { | |
text-align: center; | |
} |
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 | |
/** | |
* Home | |
* | |
* Standard loop for the blog-page | |
*/ | |
get_header(); ?> | |
<div class="media"> |
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
@mixin min($width) { | |
@media ( min-width: $width) { | |
@content; | |
} | |
} | |
@mixin max($width) { | |
@media ( max-width: $width) { | |
@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 boxToggler(trigger, toggleBox) { | |
$(trigger).on('click', function(event) { | |
event.preventDefault(); | |
var target = event.target; | |
if ($(target).parent().has(toggleBox)) { | |
var toggleElem = $(target).parent().find(toggleBox)[0]; | |
$(toggleElem).fadeToggle(); | |
} | |
}); | |
} |
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
@mixin median($width) { | |
@media ( min-width: $width) { | |
@content; | |
} | |
} | |
@mixin mediax($width) { | |
@media ( max-width: $width) { | |
@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
Step 1: Create RSS chanel - https://www.screencast.com/t/JhXHaJ1vZ7h | |
Step 2: Find and select your posts - https://www.screencast.com/t/Rrpli4ywD | |
Step 3: Install "Import XML feed" plugin in WP - https://www.screencast.com/t/aEGhhLpG | |
Step 4: Get RSS link in Business Catalyst - https://www.screencast.com/t/pLgcsXacz | |
Step 5: Copy RSS link from href attribute - https://www.screencast.com/t/ASotR7lt | |
Step 6: Open "Import XML feed" plugin in WP and paste the link - https://www.screencast.com/t/d0zJEm5YuA | |
Step 7: Select a place for imported posts and tune your potion - https://www.screencast.com/t/G9PEKv8NTLFC | |
Last Step: Rejoice! |