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
// ---- | |
// Sass (v3.3.14) | |
// Compass (v1.0.0.rc.1) | |
// ---- | |
$primary-color: #4a8bbd; | |
$secondary-color: #61ce3c; | |
/* This is NOT best practice. All rules in mixins should | |
* contain a dynamic value otherwise the regular styles will |
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
// ---- | |
// Sass (v3.3.14) | |
// Compass (v1.0.0.rc.1) | |
// ---- | |
$primary-color: #4a8bbd; | |
$secondary-color: #61ce3c; | |
@mixin button($color) { | |
background: $color; |
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
// ---- | |
// Sass (v3.3.14) | |
// Compass (v1.0.0.rc.1) | |
// ---- | |
$primary-color: #4a8bbd; | |
$secondary-color: #61ce3c; | |
/* |
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
// ---- | |
// Sass (v3.3.14) | |
// Compass (v1.0.0.rc.1) | |
// ---- | |
$screen-sm: 30em; | |
$screen-md: 48em; | |
$screen-lg: 60em; | |
%fl { |
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
// ---- | |
// Sass (v3.3.14) | |
// Compass (v1.0.0.rc.1) | |
// ---- | |
$green: #00C11E; | |
$screen-sm: 20em; | |
$screen-md: 35em; | |
$screen-lg: 53em; |
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
// ---- | |
// Sass (v3.3.14) | |
// Compass (v1.0.0.rc.1) | |
// ---- | |
@import "compass"; | |
$primary-color: #4a8bbd; | |
$secondary-color: #61ce3c; |
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
<header class="header" role="banner"> | |
<div class="container"> | |
<div class="col-sm-5"> | |
<h1 class="site-title">DiJiFi</h1> | |
</div> | |
<nav class="nav col-sm-7"> | |
<ul> | |
<li class="col-sm-3">Photos</li> | |
<li class="col-sm-3">Video</li> | |
<li class="col-sm-3">Film</li> |
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 | |
// https://wordpress.org/support/topic/how-to-get-the-page-name | |
$name = $post->post_name; | |
if ( is_page($name) ) { | |
get_template_part( $name, 'partials/partial' ); | |
} else { | |
get_template_part( '404', 'partials/partial' ); | |
} |
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 | |
$id = get_the_ID(); | |
$args = array ( | |
'post_type' => 'video', | |
'meta_query' => array( | |
array( | |
'key' => 'director', | |
'value' => $id | |
) |
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
{% for content in post.get_field('content') %} | |
{% if content.acf_fc_layout == 'section' %} | |
{% for blck in content.blocks %} | |
{% if blck.acf_fc_layout == 'block_text' %} | |
{{blck.text}} | |
{% elseif blck.acf_fc_layout == 'block_list' %} | |
{% include 'blocks/block-list.twig' %} | |
{% endif %} | |
{% endfor %} |