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
if (view == 'list') { | |
console.log("list"); | |
jQuery('.product-grid .item').addClass("list_view_item"); | |
jQuery('.product-grid > div').each(function(index, element) { | |
// image_but | |
html = '<div class="image_but">'; | |
var image = jQuery(element).find('.image').html(); |
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
<!-- _____________________mega_filter_custom_js_____________________ --> | |
<script> | |
function display_MFP(view) { | |
if (typeof display == 'function') { | |
display(view); | |
return; | |
} | |
function save(v) { |
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
/* category menu */ | |
$(".categoryMenu__item span").on("click", function() { | |
/* single click */ | |
/* click on the same open category */ | |
if ($(this).hasClass("open")) { | |
$(this).prev().stop().slideUp(200); | |
$(this).removeClass("open"); | |
$(this).prev().prev().removeClass("active"); | |
} else { |
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
$categories = $this->model_catalog_category->getCategories(0); | |
foreach ($categories as $category) { | |
$children_data = array(); | |
$children = $this->model_catalog_category->getCategories($category['category_id']); | |
foreach ($children as $child) { | |
$children2_data = array(); |
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 | |
// Script and tutorial written by Adam Khoury @ developphp.com | |
// Line by line explanation : youtube.com/watch?v=T2QFNu_mivw | |
include_once("mysqli_connection.php"); | |
// This first query is just to get the total count of rows | |
$sql = "SELECT COUNT(id) FROM testimonials WHERE approved='1'"; | |
$query = mysqli_query($db_conx, $sql); | |
$row = mysqli_fetch_row($query); | |
// Here we have the total row count | |
$rows = $row[0]; |
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
/* category */ | |
$(".toggleCategory").on("click", function(e) { | |
console.log("toggle click"); | |
// level 2 | |
if ( $(this).hasClass("toggleLevel2") ) { | |
var ul = $(this).prev(); | |
if ( $(this).hasClass("toDown") ) { |
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
var gulp = require('gulp'), | |
sass = require('gulp-sass'), | |
browserSync = require('browser-sync'), | |
concat = require('gulp-concat'), | |
uglify = require('gulp-uglify'), | |
cleanCSS = require('gulp-clean-css'), | |
rename = require('gulp-rename'), | |
del = require('del'), | |
imagemin = require('gulp-imagemin'), | |
cache = require('gulp-cache'), |
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
var gulp = require('gulp'), | |
sass = require('gulp-sass'), | |
browserSync = require('browser-sync'), | |
concat = require('gulp-concat'), | |
uglify = require('gulp-uglify'), | |
cleanCSS = require('gulp-clean-css'), | |
rename = require('gulp-rename'), | |
del = require('del'), | |
imagemin = require('gulp-imagemin'), | |
cache = require('gulp-cache'), |
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
{ | |
"name": "opencart-gulp", | |
"version": "1.0.0", | |
"description": "", | |
"main": "gulpfile.js", | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1" | |
}, | |
"author": "eapdob", | |
"license": "ISC", |
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
{ | |
"name": "landing-gulp", | |
"version": "1.0.0", | |
"description": "", | |
"main": "gulpfile.js", | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1" | |
}, | |
"author": "eapdob", | |
"license": "ISC", |
OlderNewer