Skip to content

Instantly share code, notes, and snippets.

View eapdob's full-sized avatar

Evgenii Poperezhai eapdob

  • Kharkiv, Ukraine
View GitHub Profile
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();
<!-- _____________________mega_filter_custom_js_____________________ -->
<script>
function display_MFP(view) {
if (typeof display == 'function') {
display(view);
return;
}
function save(v) {
/* 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 {
$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();
<?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];
@eapdob
eapdob / category.js
Last active February 1, 2018 22:37
3 level opencart category module
/* category */
$(".toggleCategory").on("click", function(e) {
console.log("toggle click");
// level 2
if ( $(this).hasClass("toggleLevel2") ) {
var ul = $(this).prev();
if ( $(this).hasClass("toDown") ) {
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'),
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'),
@eapdob
eapdob / package.json
Last active March 4, 2018 14:30
opencart
{
"name": "opencart-gulp",
"version": "1.0.0",
"description": "",
"main": "gulpfile.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "eapdob",
"license": "ISC",
@eapdob
eapdob / package.json
Last active March 4, 2018 14:31
landing
{
"name": "landing-gulp",
"version": "1.0.0",
"description": "",
"main": "gulpfile.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "eapdob",
"license": "ISC",