Skip to content

Instantly share code, notes, and snippets.

View bulini's full-sized avatar

Giuseppe Surace bulini

View GitHub Profile
<?php
/*
WP-Cache Config Sample File
See wp-cache.php for author details.
*/
$wp_cache_mobile_groups = ''; //Added by WP-Cache Manager
$wp_cache_mobile_prefixes = 'w3c , w3c-, acs-, alav, alca, amoi, audi, avan, benq, bird, blac, blaz, brew, cell, cldc, cmd-, dang, doco, eric, hipt, htc_, inno, ipaq, ipod, jigs, kddi, keji, leno, lg-c, lg-d, lg-g, lge-, lg/u, maui, maxo, midp, mits, mmef, mobi, mot-, moto, mwbp, nec-, newt, noki, palm, pana, pant, phil, play, port, prox, qwap, sage, sams, sany, sch-, sec-, send, seri, sgh-, shar, sie-, siem, smal, smar, sony, sph-, symb, t-mo, teli, tim-, tosh, tsm-, upg1, upsi, vk-v, voda, wap-, wapa, wapi, wapp, wapr, webc, winw, winw, xda , xda-'; //Added by WP-Cache Manager
$wp_cache_refresh_single_only = '0'; //Added by WP-Cache Manager
<?php
/**
* Insert an attachment from an URL address.
*
* @param String $url
* @param Int $post_id
* @param Array $meta_data
* @return Int Attachment ID
*/
var offset = $("#filter-search").offset();
var topPadding = 100;
$(window).scroll(function() {
if ($(window).scrollTop() > offset.top) {
$("#filter-search").stop().animate({
marginTop: $(window).scrollTop() - offset.top + topPadding
});
} else {
$("#filter-search").stop().animate({
marginTop: 0
<?php
//cambio testo e oggetto email di cambio password
add_filter('password_change_email', 'change_password_mail_message', 10, 3 );
function change_password_mail_message( $pass_change_mail, $user, $userdata ) {
$new_message_txt = __( 'Ciao ###USERNAME###,
ti confermiamo che la tua password è stata modificata.
Se non sei stato tu ad aver cambiato password, scrivici a info@xxxxxxxxx
Saluti.');
$pass_change_mail[ 'subject' ] = 'Hai cambiato la password';
<?php
/**
* Template Name: Vendor Products
*/
// File Security Check
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
Vendor::no_vendor_redirect();
<!DOCTYPE html>
<html>
<head>
<title>Confindustria SFC - Economia Circolare</title>
<style type="text/css">
footer {
bottom: 0;
position: absolute;
}
@bulini
bulini / ssss
Created October 4, 2018 08:07
import
<?php
/**
*
*/
class FeedImport
{
private $xml_url;
function __construct()
{
export const distance = [
{
van: 1,
details: [
{
round_trip: 100,
price: 310,
staff: 2,
final_price: 403
},
export const flats = [
{
floor: 1,
options: [
{
van: 1,
cost: 10
},
{
van: 2,
const domande = [
{
question:
"Seleziona l'affermazione che più ti descrive: in un progetto la cosa più importante è...",
answers: [
{
answer: "Raccogliere il maggior numero possibile di informazioni utili",
tags: [],
profile: ["logico", "analista", "pioniere"],
question: "Nei miei processi valutativi...",