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 | |
/** | |
* Implements hook_entity_access(). | |
*/ | |
function HOOK_entity_access(EntityInterface $entity, $operation, AccountInterface $account) { | |
// Only allow access to the test page. | |
$testPageNid = 111111; | |
if ((int) $entity->id() !== $testPageNid) { |
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
production: 'https://wordpress.diffy.website' | |
schedule: | |
type: '' | |
days: { } | |
staging: 'http://stage.wordpress.diffy.website' | |
development: '' | |
basicAuth: { } | |
authenticate: | |
enabled: false | |
type: '' |
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: Trigger deployment to Test on pull request to Production branch. | |
on: | |
pull_request: | |
branches: | |
- production | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install Terminus |
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 to prod after merge to production branch | |
on: | |
push: | |
branches: | |
- production | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 |
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: Trigger deployment to Test on pull request to Production branch. | |
on: | |
pull_request: | |
branches: | |
- production | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install Terminus |
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 to Pantheon dev environment | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 |
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
services: | |
apache: | |
commands: | |
init: | |
# The Diffy CLI tool requires PHP. If the service image does not have PHP | |
# installed, do it here | |
#- apt-get update | |
#- apt-get install php-cli | |
# Download the Diffy CLI tool, and authenticate. The latest version can be |
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 CircleCI 2.0 configuration file | |
# | |
# Check https://circleci.com/docs/2.0/language-php/ for more details | |
# | |
orbs: | |
node: circleci/node@5.0.2 | |
version: 2.1 | |
jobs: |
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
{% include "@atoms/text/headings/_heading.twig" with { | |
"heading_level": 2, | |
"heading": label, | |
"heading_url": url, | |
"heading_link_attributes": { | |
'rel': 'bookmark' | |
}, | |
} %} |
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 | |
use Diffy\Diffy; | |
use Diffy\Screenshot; | |
use Diffy\Diff; | |
// https://pantheon.io/docs/guides/quicksilver/variables | |
$pantheon_environment = $_ENV['environment']; | |
// Not sure how these are build for your site. |
NewerOlder