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
{ | |
"version": 8, | |
"id": "osm-liberty", | |
"name": "OSM Liberty", | |
"metadata": { | |
"mapbox:type": "template" | |
}, | |
"sources": { | |
"natural_earth_shaded_relief": { | |
"maxzoom": 6, |
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 | |
function block($slug, $params = array()) { | |
global $_SLUG_; | |
global $_PARAMS_; | |
$_SLUG_ = $slug; | |
$_PARAMS_ = $params; | |
ob_start(); |
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
.npmrc |
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
- pipeline: "Push staging" | |
trigger_mode: "ON_EVERY_PUSH" | |
ref_name: "dev" | |
ref_type: "BRANCH" | |
target_site_url: "" | |
actions: | |
- action: "Composer" | |
type: "BUILD" | |
working_directory: "" | |
docker_image_name: "library/php" |
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
<dict> | |
<key>name</key> | |
<string>Attributes</string> | |
<key>scope</key> | |
<string>meta.embedded.line.php, meta.embedded.block.php</string> | |
<key>settings</key> | |
<dict> | |
<key>background</key> | |
<string>#FFFFFF0F</string> | |
</dict> |
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 my_acf_block_render_callback( $block ) { | |
$slug = str_replace('acf/', '', $block['name']); | |
$block['slug'] = $slug; | |
$block['classes'] = implode(' ', [$block['slug'], $block['className'], $block['align']]); | |
echo \App\template("blocks/${slug}", ['block' => $block]); | |
} | |
add_action('acf/init', function() { | |
if( function_exists('acf_register_block') ) { | |
// Look into views/blocks |
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 my_acf_block_render_callback( $block ) { | |
$slug = str_replace('acf/', '', $block['name']); | |
if( file_exists(STYLESHEETPATH . "/template-parts/block/content-{$slug}.php") ) { | |
include( STYLESHEETPATH . "/template-parts/block/content-{$slug}.php" ); | |
} | |
} |
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 | |
/* | |
Title: Témoignage | |
Description: test | |
Category: formatting | |
Icon: admin-comments | |
Keywords: testimonial quote | |
*/ | |
?> |
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
const { BugsnagBuildReporterPlugin, BugsnagSourceMapUploaderPlugin } = require('webpack-bugsnag-plugins') | |
module.exports = { | |
... | |
build: { | |
extend (config, { isDev, isClient }) { | |
if (!isDev && isClient) { | |
config.devtool = '#source-map' | |
config.plugins.push( | |
new BugsnagBuildReporterPlugin({ |
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
// http://unsemantic.com/ | |
// ------------------- | |
// Variables | |
// ------------------- | |