Skip to content

Instantly share code, notes, and snippets.

Avatar

Andreas Becker lisandi

View GitHub Profile
@lisandi
lisandi / gist:07dcc913bc7f2ed451c5aae224222ca3
Created Feb 22, 2021
Sngine - downloaded User Information Example - links got replaced
View gist:07dcc913bc7f2ed451c5aae224222ca3
<!doctype html> <html lang="en_us" > <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta http-equiv="Content-type" content="text/html; charset=UTF-8"> <title>My Information</title> <link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700" rel="stylesheet" /> <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css" integrity="sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf" crossorigin="anonymous"> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous"> <style type="text/css">/**
* Index:
*
* 01. BASIC
* 02. MAIN
* 03. HEADER
* 04. COMMON
* 05. PUBLISHER
* 06. POST
* 07. COMMENT
@lisandi
lisandi / divi-mobile-submenu-toggles.css
Created Mar 8, 2018 — forked from Garconis/divi-mobile-submenu-toggles.css
Divi | WordPress Theme | Mobile Menu Collapsible Submenus via Toggles | CSS & jQuery Tweaks in action: https://i.gyazo.com/93557e9ef5d4aad260e22c6d5896de3b.mp4
View divi-mobile-submenu-toggles.css
/* when mobile menu is open, change hamburger icon to x icon */
#et_mobile_nav_menu .mobile_nav.opened .mobile_menu_bar::before {
content: '\4d';
}
/* makes sub sub menu icon be right arrow instead of down arrow */
#top-menu .menu-item-has-children .menu-item-has-children > a:first-child::after,
#et-secondary-nav .menu-item-has-children .menu-item-has-children > a:first-child::after {
content: '5';
}
@lisandi
lisandi / jpopt.sh
Created Sep 5, 2016 — forked from johan/jpopt.sh
jpopt is a convenience shell wrapper around jhead and jpegtran, for losslessly shrinking jpeg files in batch, written by Fredrik Mellström.
View jpopt.sh
#! /bin/sh
# Lossless repacking of JPEG images, to save disk space
# Keeps EXIF tags and comments on digital camera images, otherwise wipes them
# Requires the "jhead" program to function properly
# Keeps file timestamps, or sets file time to EXIF timestamp if present
# Fredrik Mellström <traal@chalmers.se>, Aug 2005
# Usage examples:
# jpopt *.jpg
View form-example.php
<?php
$out = '';
// create a new form field (also field wrapper)
$form = $modules->get("InputfieldForm");
$form->action = "./";
$form->method = "post";
$form->attr("id+name",'subscribe-form');
View form-process.php
<?php
// ------------------------------ FORM Processing ---------------------------------------
$errors = null;
$success = false;
// helper function to format form errors
function showError($e){
return "<p class='error'>$e</p>";