This file contains hidden or 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 my_rest_prepare_post($data, $post, $request) { | |
| $_data = $data->data; | |
| $fields = get_fields($post->ID); | |
| foreach ($fields as $key => $value){ | |
| $_data[$key] = get_field($key, $post->ID); | |
| } | |
| $data->data = $_data; | |
| return $data; |
This file contains hidden or 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
| /* highlight col-* */ | |
| .row [class*='col-'] { | |
| background-color: #cceeee; | |
| background-clip: content-box; | |
| min-height: 120px; | |
| margin-bottom: 30px; | |
| } | |
| .tall { | |
| height: 160px; |
This file contains hidden or 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 gulp = require('gulp'); | |
| var sass = require('gulp-sass'); | |
| var browserSync = require('browser-sync'); | |
| gulp.task('sass', function () { | |
| gulp.src('scss/styles.scss') | |
| .pipe(sass({includePaths: ['scss']})) | |
| .pipe(gulp.dest('css')); | |
| }); |
This file contains hidden or 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 (has_post_thumbnail( $post->ID ) ): ?> | |
| <?php $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'single-post-thumbnail' ); ?> | |
| <div class="full-wd-header" style="background-image: url('<?php echo $image[0]; ?>')"> | |
| <?php the_title( '<h1 class="entry-title text-center">', '</h1>' ); ?> | |
| </div> | |
| <?php endif; ?> |