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
/** | |
* Custom upload directory paths | |
* | |
* The array keys must match the ID from exp_upload_prefs | |
*/ | |
$env_config['upload_preferences'] = array( | |
1 => array( | |
'name' => 'Assets', | |
'server_path' => $base_path . '/assets/', | |
'url' => $base_url . '/assets/', |
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
{exp:channel:entries | |
channel="redirects" | |
disable="categories|member_data|pagination"} | |
{exp:http_header status="301" location="{redirect_url}" terminate="yes"} | |
{/exp:channel:entries} |
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
{embed="_inc/_wrapper" body_class="retailer-locator"} | |
{exp:stash:set} | |
{stash:meta} | |
<title>Retailer Locator | {site_name}</title> | |
{/stash:meta} | |
{stash:content} |
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
{sn_page_start} | |
<h1>{exp:stash:title}</h1> | |
<p class="product-price">{exp:stash:price}</p> | |
<div class="split reversed"> | |
<div class="split-1"> | |
<a href="{exp:stash:get name='image'}" class="product-image" title="{exp:stash:get name='title' random}" rel="images"> | |
{exp:ce_img:single |
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
{!-- Wrapper template --} | |
{stash:embed:layouts:product} | |
{!-- Custom field prefix --} | |
{preload_replace:cf="cf_product_"} | |
{exp:channel:entries | |
channel="products" | |
url_title="{segment_2}" | |
limit="1" |
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
{exp:ifelse parse="inward"} | |
{if segment_2} | |
{!-- If there's a segment_2, eg. /shop/my-product it means we're on a product page. --} | |
{embed="shop/_product"} | |
{if:else} | |
{!-- If there's no segment_2, eg. /shop/ it means we're on the listing page. --} | |
{embed="shop/_listing"} | |
{/if} | |
{/exp:ifelse} |
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 | |
class Hooks_epiceditor extends Hooks { | |
function control_panel__add_to_head() { | |
return $this->js->link('epiceditor.min.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
<h2>IfElse</h2> | |
{exp:channel:entries channel="blog" dynamic="no"} | |
{exp:ifelse parse="inward"} | |
{if "{switch='odd|even'}" == "odd"} | |
<b>{title}</b><br /> | |
{if:else} | |
{title}<br /> | |
{/if} | |
{/exp:ifelse} | |
{/exp:channel:entries} |
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
{{ bison:checkout_form_errors }} | |
{{ if missing }} | |
<p>You are missing the following fields.</p> | |
<ul> | |
{{ missing }} | |
<li>The {{ field_label }} field {{ message }}</li> | |
{{ /missing }} | |
</ul> | |
{{ endif }} | |
{{ if gateway }} |
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
<div id="payment-errors"> | |
{{ bison:checkout_form_errors }} | |
{{ if missing }} | |
<p>You are missing the following fields.</p> | |
<ul> | |
{{ missing }} | |
<li>The {{ field_label }} field {{ message }}</li> | |
{{ /missing }} | |
</ul> | |
{{ endif }} |
OlderNewer