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
{% extends 'base.twig' %} | |
{% block title %}Custom Page Title{% endblock %} | |
{% block css %} | |
{{ parent() }} | |
<link rel="stylesheet" type="text/css" href="/my/custom/file.css"> | |
{% endblock %} | |
{% block content %} | |
all content goes in here | |
{% endblock %} | |
{% block js %} |
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 Mocks; | |
use Doctrine\DBAL\Driver\Statement; | |
/** | |
* Doctrine DBAL Statement implementing \Iterator. | |
* | |
* This class has been created because of a bug in PHPUnit Mock Objects. |
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
pages: | |
name: Pages | |
singular_name: Page | |
fields: | |
title: | |
type: text | |
slug: | |
type: slug | |
uses: title | |
image: |
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
composer install --optimize-autoloader --prefer-dist --no-scripts | |
./vendor/bin/phpunit | |
composer install --optimize-autoloader --prefer-dist --no-scripts --no-dev | |
docker build -t <appname>_img:$CI_BUILD_REF_NAME . | |
docker tag <appname>_img:$CI_BUILD_REF_NAME quay.io/<username>/<appname>:$CI_BUILD_REF_NAME | |
docker push quay.io/<username>/<appname>:$CI_BUILD_REF_NAME |
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 Bolt\Thumbs\ThumbnailResponder; | |
class RetinaThumbnailResponder extends ThumbnailResponder | |
{ | |
public function parseRequest() | |
{ | |
parent::parseRequest(); |
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
pages: | |
name: Pages | |
singular_name: Page | |
field_defaults: &defaults | |
title: | |
type: text | |
class: large | |
slug: | |
type: slug | |
uses: title |
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 | |
require_once "../private/vendor/autoload.php"; | |
$configuration = new Bolt\Configuration\Composer(dirname(__DIR__)."/private"); | |
$configuration->setPath("web","../public"); | |
$configuration->setPath("files","../public/files"); | |
$configuration->setPath("themebase","../public/theme"); | |
$configuration->getVerifier()->removeCheck('apache'); | |
$configuration->verify(); | |
$app = new Bolt\Application(array('resources'=>$configuration)); | |
$app->initialize(); |
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
## This is how it should look | |
news: | |
name: News | |
singular_name: Article | |
slug: latest | |
fields: | |
title: | |
type: text | |
class: large |
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 | |
// | |
// this file sits in public/index.php | |
require_once "../vendor/autoload.php"; | |
$configuration = new Bolt\Configuration\Standard(dirname(__DIR__)); | |
$configuration->setPath("web","public"); | |
$configuration->setPath("files","public/files"); | |
$configuration->setPath("themebase","public/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
pages: | |
name: Pages | |
singular_name: Page | |
field_defaults: &defaults | |
title: | |
type: text | |
class: large | |
slug: | |
type: slug | |
uses: title |
OlderNewer