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
FROM php:7.4-cli-alpine | |
# Install xdebug | |
RUN apk add --no-cache --virtual .phpize-deps $PHPIZE_DEPS \ | |
&& pecl install xdebug \ | |
&& docker-php-ext-enable xdebug \ | |
&& apk del .phpize-deps | |
WORKDIR /var/www/html |
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\Library\Handler; | |
use App\Library\Test\Client; | |
use App\Library\Parser\Parser; | |
abstract class AbstractHandler | |
{ | |
/** |
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 | |
class: large | |
group: content | |
slug: | |
type: slug |
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
<section id="Services" class="light-wrapper"> | |
<div class="container inner"> | |
{% setcontent categories = 'productcategories' orderby 'id' %} | |
{% for columns in categories|batch(3) %} | |
<div class="row" style="margin-bottom:20px;"> | |
{% for category in columns %} | |
<div class="col-md-4"> | |
<div class="Headline-Text"> | |
<h4>{{ category.title }}</h4> |
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 Bolt\Extension\Test\ExtensionA\Storage\Repository; | |
class ContentRepository extends \Bolt\Storage\Repository\ContentRepository | |
{ | |
public function getPublishedContent() | |
{ |
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
taxonomylink: | |
path: '/{taxonomytype}/{slug}' | |
defaults: | |
_controller: 'Bolt\Controllers\Frontend::taxonomy' | |
requirements: | |
taxonomytype: 'Bolt\Controllers\Routing::getAnyTaxonomyTypeRequirement' |
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 Bolt\Extension\Bolt\JsonApi\Storage\Query\Handler; | |
use Bolt\Extension\Bolt\JsonApi\Storage\Query\PagingResultSet; | |
use Bolt\Storage\Query\ContentQueryParser; | |
class PagingHandler | |
{ |
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 | |
//Create news article routes | |
$this->get('/create', function(ServerRequestInterface $request, ResponseInterface $response, $args) { | |
$data = $this->newsHandler->getCreate(); | |
return $this->view->render($response, 'news/show.html.twig', $data); | |
})->setName('new_create')->add($this->getContainer()->get('csrf')); | |
$this->post('/create', function(ServerRequestInterface $request, ResponseInterface $response, $args) { | |
$data = $this->newsHandler->postCreate($request, $response, $this->router); | |
return $this->view->render($response, 'news/show.html.twig', $data); |
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 NewsHandler; | |
$this->get('/{id:[0-9]+}/edit', function(ServerRequestInterface $request, ResponseInterface $response, $args) { | |
//Typehint newsHandler automatically instead of doing -> | |
/** @var NewsHandler $news*/ | |
// $news = $this->newsHandler; | |
$data = $this->newsHandler->getShow($args['id']); | |
return $this->view->render($response, 'news/show.html.twig', $data); |
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 | |
public function initialize() | |
{ | |
if (empty($this->config['encryption'])) { | |
$this->config['encryption'] = "plaintext"; | |
} | |
$this->addTwigFunction('passwordprotect', 'passwordProtect'); |
NewerOlder