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 //// | |
| $list = Product::get()->filterAny(array('AllCountries' => 1, 'IncludedCountries.Code' => $country)) | |
| ->exclude('ExcludedCountries.Code', $country)->map(); |
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
| SELECT DISTINCT | |
| `SiteTree_Live`.`ClassName`, | |
| `SiteTree_Live`.`Created`, | |
| `SiteTree_Live`.`LastEdited`, | |
| `SiteTree_Live`.`URLSegment`, | |
| `SiteTree_Live`.`Title`, | |
| `SiteTree_Live`.`MenuTitle`, | |
| `SiteTree_Live`.`Content`, | |
| `SiteTree_Live`.`MetaDescription`, | |
| `SiteTree_Live`.`ExtraMeta`, |
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 | |
| $list = Product::get()->filterAny(array('AllCountries' => 1, 'IncludedCountries.Code' => $country)) | |
| ->exclude('ExcludedCountries.Code', $country) | |
| ->map()->toArray(); |
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 | |
| /** | |
| * @description: This class helps you to manage countries within the context of e-commerce. | |
| * For example: To what countries can be sold. | |
| * /dev/build/?resetecommercecountries=1 will reset the list of countries... | |
| * | |
| * | |
| * @authors : Nicolaas [at] Sunny Side Up .co.nz | |
| * @package : ecommerce |
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
| Director: | |
| environment_type: 'dev' | |
| Director: | |
| rules: | |
| 'test//$Action/$ID' : 'TestPage_Controller' | |
| 'OrderModifierForm_Controller//$Action/$ID' : 'OrderModifierForm_Controller' |
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
| BlogEntry: | |
| default_sort: 'Date DESC' | |
| summary_fields: | |
| - Title | |
| - Date | |
| field_labels: | |
| - Title: 'Entry Title' | |
| - Date: 'Date Posted' |
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 | |
| for($i = 1; $i <= 10; $i++){ | |
| for($j = 1; $j <= (11-($i?:1)); $j++){ | |
| echo $i.chr(64+$j)."\n"; | |
| } | |
| echo "--\n\n"; | |
| } | |
| ?> |
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
| /* $AMPERSAND_VERSION */ | |
| var domify = require('domify'); | |
| var dom = require('ampersand-dom'); | |
| var matches = require('matches-selector'); | |
| var View = require('ampersand-view'); | |
| //Replaceable with anything with label, message-container, message-text data-hooks and a <select> | |
| var defaultTemplate = [ | |
| '<label class="select">', | |
| '<span data-hook="label"></span>', |
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
| Requirements::customScript(<<<JS | |
| (function($) { | |
| $('.icp-auto').entwine({ | |
| onmatch: function(){ | |
| $('.icp-auto').iconpicker(); | |
| this._super(); | |
| }, | |
| onunmatch: function() { | |
| this._super(); | |
| } |
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
| var AmpersandCheckboxView = require('ampersand-checkbox-view'); | |
| module.exports = AmpersandCheckboxView.extend({ | |
| initialize: function(opts){ | |
| this._defaultInitialize(opts); | |
| this.htmlLabel = !!opts.htmlLabel; | |
| }, | |
| render: function(){ |