Skip to content

Instantly share code, notes, and snippets.

Avatar

Jean Luc Houedanou jhouedanou

View GitHub Profile
View gist.php
<?php
$bodyclass = get_body_class();
if (in_array('woocommerce-page',$bodyclass)) {?>
<!--contenu reservé à woocommerce-->
<?php
} else {
?>
<!--contenu normal-->
<?php
View theme.yml
displayFooterText:
- ps_customtext
View theme.yml
global_settings:
configuration:
PS_IMAGE_QUALITY: png
modules:
to_enable:
- ps_linklist
hooks:
modules_to_hook:
View eurobizi.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
<title>EU Business Register :: Search results</title>
<META HTTP-EQUIV="Cache-control" CONTENT="no-cache">
<META NAME="copyright" CONTENT="www.eubusinessregister.com">
<META NAME="description" CONTENT="Welcome to EU Business Register!The easiest way to find companies specified by branch, city and country within the 25 EU countries">
<META HTTP-EQUIV="expires" CONTENT="Sun, 1 Jan 2010 23:59:59 GMT">
<META NAME="keywords" CONTENT="eu business register,eu,europian union,company search">
<META NAME="ROBOTS" CONTENT="FOLLOW, INDEX">
View gulfile.js
require('es6-promise').polyfill();
var sourcemaps = require('gulp-sourcemaps');
var gulp = require('gulp');
var sass = require('gulp-sass');
var rename = require('gulp-rename');
var plumber = require('gulp-plumber');
var gutil = require('gulp-util');
var sourcemaps = require('gulp-sourcemaps');
var concat = require('gulp-concat');
var uglify = require('gulp-uglify');
View install
npm install gulp es6-promise gulp-sass gulp-rename gulp-plumber gulp-util gulp-concat gulp-uglify gulp-concat gulp-imagemin browser-sync main-bower-files gulp.spritesmith gulp-strip-json-comments --save-dev
View js.js
gulp.task('watch', function() {
gulp.watch('./sass/**/*.scss', ['sass']);
gulp.watch('images/src/*', ['images']);
gulp.watch('images/sprite/*', ['sprite']);
});
gulp.task('default', ['sprite', 'sass', 'js', 'script', 'images', 'browser-sync', 'watch']);
gulp.task('build',['sprite', 'sass', 'js', 'script', 'images']);
View bs.js
gulp.task('browser-sync', function() {
var files = [
'./*.php',
'./*.html',
'./*.js'
];
browserSync.init(files, {
// server: {
// baseDir: "./",
// index: "index.html"
View browsersync.js
gulp.task('sass', function() {
return gulp.src('./sass/*.scss')
.pipe(sass({outputStyle: 'compressed'}))
.pipe(strip_comments())
// .pipe(autoprefixer())
.pipe(gulp.dest('./')) // Output LTR stylesheets (style.css)
.pipe(plumber({ errorHandler: onError }))
.pipe(browserSync.stream());
});
View sass.js
gulp.task('sass', function() {
return gulp.src('./sass/*.scss')
.pipe(sass({outputStyle: 'compressed'}))
.pipe(strip_comments())
// .pipe(autoprefixer())
.pipe(gulp.dest('./')) // Output LTR stylesheets (style.css)
.pipe(plumber({ errorHandler: onError }))
.pipe(browserSync.stream());
});