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
name: Update Plugin | |
on: | |
pull_request | |
jobs: | |
sync_plugin: | |
name: Sync-back plugin | |
runs-on: ubuntu-latest | |
steps: |
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 | |
/** | |
* Plugin Name: Bedrock StatisPress | |
* Plugin URI: https://steenbergen.design | |
* Description: An MU Plugin that ties Bedrock and SatisPress together. Allows for autoupdates and cleans up the admin dasboard. | |
* Version: 1.0.0 | |
* Author: Steenbergen Design | |
* Author URI: https://steenbergen.design | |
* License: MIT License | |
*/ |
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 | |
/** | |
* Plugin Name: Bedrock StatisPress | |
* Plugin URI: https://steenbergen.design | |
* Description: An MU Plugin that ties Bedrock and SatisPress together. Allows for autoupdates and cleans up the admin dasboard. | |
* Version: 1.0.0 | |
* Author: Steenbergen Design | |
* Author URI: https://steenbergen.design | |
* License: MIT License | |
*/ |
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
name: Deploy | |
on: [push] | |
jobs: | |
deploy_staging: | |
name: deploy to staging | |
runs-on: ubuntu-latest | |
container: | |
image: itinerisltd/tiller:latest |
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 | |
namespace App; | |
use Carbon_Fields\Field; | |
use Carbon_Fields\Block; | |
Block::make( __( 'Gutenberg Block' ) ) | |
->set_icon( 'format-chat') | |
->add_fields( array( | |
Field::make( 'rich_text', 'text', __( 'text', 'my-theme' ) ) |
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 | |
/** | |
* Plugin Name: Bedrock Autoloader | |
* Plugin URI: https://github.com/roots/bedrock/ | |
* Description: An autoloader that enables standard plugins to be required just like must-use plugins. The autoloaded plugins are included during mu-plugin loading. An asterisk (*) next to the name of the plugin designates the plugins that have been autoloaded. | |
* Version: 1.0.0 | |
* Author: Roots | |
* Author URI: https://roots.io/ | |
* License: MIT License | |
*/ |
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 get_block_template( $template, $args ){ | |
$template = App\locate_template([$template.".blade.php", 'resources/views/partials/blocks/'.$template.'.blade.php']); | |
$data = collect(get_body_class())->reduce(function ($data, $class) use ($template) { | |
return apply_filters("sage/template/{$class}/data", $data, $template); | |
}); | |
/* | |
* This merges data available in blade templates with data from carbon fields as ${meta_key} |
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
// Define $total-columns in variables. | |
// This is usefull for horizontal scrolling purposes. | |
@mixin make-grid-columns($columns: $total-columns, $width: $grid-columns, $gutter: $grid-gutter-width, $breakpoints: $grid-breakpoints) { | |
// Common properties for all breakpoints | |
%grid-column { | |
position: relative; | |
width: 100%; | |
padding-right: $gutter / 2; | |
padding-left: $gutter / 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
/** | |
* Add this to your setup.php | |
* Usage @loop( $wp_query ) or $loop and end with @endloop | |
* the new $loop variable is available | |
*/ | |
/** | |
* Create @loop Blade directive | |
*/ | |
sage('blade')->compiler()->directive('loop', function ( $query = null ) { |