Skip to content

Instantly share code, notes, and snippets.

Andrew Pietsch pietschy

Block or report user

Report or block pietschy

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@pietschy
pietschy / BlockViewTemplate.php
Last active Dec 27, 2015
Initial ideas to improve BlockViewTemplates.
View BlockViewTemplate.php
<?php
defined('C5_EXECUTE') or die("Access Denied.");
/**
* An object that represents a block's template, whether it's built-in, or custom.
*
* Summary of functional issues:
* - Currently only custom templates can be overridden by packages, it's not possible for a
* packaged theme to override root/blocks/<block_handle>/view.php.
* - While packages can override custom templates, the search order is arbitrary.
*
You can’t perform that action at this time.