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
gulp.task('sass', function() { | |
gulp.src(['assets/scss/**/*.scss', '!assets/scss/templates/*.scss']) | |
.pipe(plumber({errorHandler: on_Error})) | |
.pipe(gulpif(condition, sass({require: ['susy'], style: 'expanded', sourcemap: true}), sass())) | |
.pipe(filter('**/*.css')) | |
.pipe(sourcemaps.init({loadMaps:true})) | |
.pipe(postcss([autoprefixer({ browsers: ['last 2 version', 'ie 9'], cascade: true})])) | |
.on('error', function(err) { console.log(err.message); }) | |
.pipe(sourcemaps.write('.')) | |
.pipe(gulp.dest('dist/css')) |
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 | |
/** | |
* WordPress Query Comprehensive Reference | |
* Compiled by luetkemj - luetkemj.com | |
* | |
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query#Parameters | |
* Source: https://core.trac.wordpress.org/browser/tags/3.9/src/wp-includes/query.php | |
*/ | |
$args = array( |
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
/** | |
|-------------------------------------------------------------------------- | |
| gulp browser-sync | |
|-------------------------------------------------------------------------- | |
* | |
* Browser Sync | |
* @description Refresh the Brwoser after File Change. | |
* Combined with webpack for HMR or Content Reload | |
* | |
* @package generator-mh-boilerplate |
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
/** | |
* Download Craft Plugins | |
* | |
* @package generator-mh-boilerplate | |
* @author Martin Herweg <[email protected]> | |
*/ | |
const inquirer = require('inquirer'); | |
const download = require('download'); | |
const ProgressBar = require('progress'); |
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
/* | |
|-------------------------------------------------------------------------- | |
| <%= moduleName.replace('-', '_') %> | |
|-------------------------------------------------------------------------- | |
*/ | |
export default function() { | |
console.log('Initialize: <%= moduleName.replace('-', '_') %>'); | |
} |
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
Show hidden characters
{ | |
"presets": | |
[ | |
"es2015" | |
] | |
} |
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
// No kind of Autocomplete works for in these import styles | |
// Vue Lazyloading of Routes | |
const Confirmation = () => import(/* webpackChunkName: 'router-confirmation' */ 'Js/views/Confirmation.vue'); | |
const Tnbs = () => import(/* webpackChunkName: 'router-tnbs' */ 'Js/views/Tnbs.vue'); | |
const Privacy = () => import(/* webpackChunkName: 'router-privacy' */ 'Js/views/Privacy.vue'); | |
// Normal Lazyloading as described in the webpack Documentation | |
// Autocomplete doesn't work eithe | |
import('Components/testFunction') |
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
{ | |
"sections": [ | |
{ | |
"name": "A New Section", | |
"handle": "a_new_section_handle" | |
} | |
] | |
} | |
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
import chalk from 'chalk'; | |
/** | |
|-------------------------------------------------------------------------- | |
| gulp browser-sync | |
|-------------------------------------------------------------------------- | |
* | |
* Browser Sync | |
* @description Refresh the Brwoser after File Change. | |
* Combined with webpack for HMR or Content Reload |
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
Event::on(LineItems::class, LineItems::EVENT_POPULATE_LINE_ITEM, function (LineItemEvent $event) { | |
$purchasable = $event->lineItem->purchasable; | |
$lineItem = $event->lineItem; | |
$productImageUrl = ''; | |
$imageOptimize = []; | |
if (count($purchasable->product->productImage) > 0) { | |
$productImageUrl = $purchasable->product->productImage->one()->getUrl(); | |
if (Craft::$app->plugins->isPluginInstalled('image-optimize')) { |
OlderNewer