This file contains hidden or 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 //Apertura PHP inserita solo per colorazione sintassi | |
//Aggiungo la funzione sam_tgm_plugin() al corretto Hook | |
add_action( 'tgmpa_register', 'sam_tgm_plugin' ); | |
function sam_tgm_plugin(){ | |
//Richiesta plugin e configurazione | |
} |
This file contains hidden or 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 | |
//Aggancio la funzione sam_script_styles() all'Hook wp_enqueue_script | |
add_action( 'wp_enqueue_scripts', 'sam_script_styles' ); | |
//Creo la funzione sam_script_styles() che mi permette di caricare i file JavaScript | |
function sam_script_styles() { | |
wp_enqueue_script( 'mio-js', get_stylesheet_directory() . '/js/mio-js.js', array( 'jquery' ), '1.0.0' ); | |
} |
This file contains hidden or 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
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut odio. Nam sed est. Nam | |
risus et est iaculis adipiscing. Vestibulum ante ipsum primis in faucibus orci luctus | |
ultrices posuere cubilia Curae; Integer ut justo. In tincidunt viverra nisl. Donec dictum | |
malesuada magna. Curabitur id nibh auctor tellus adipiscing pharetra. | |
<a href="#torna-su" rel="nofollow">Torna su</a> | |
jQuery(document).ready(function() | |
{ |
This file contains hidden or 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
/*! | |
Theme Name: SkillsAndMore | |
Theme URI: https://skillsandmore.org | |
Author: Andrea Barghigiani | |
Author URI: https://skillsandmore.org | |
Description: Il tema di partenza per la piattaforma online SkillsAndMore dove formiamo gli sviluppatori del domani | |
Version: 0.0.1 | |
License: GNU General Public License v2 or later | |
License URI: http://www.gnu.org/licenses/gpl-2.0.html | |
Tags: light, gray, white, lime-green |
This file contains hidden or 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Ottengo i dati del modulo</title> | |
</head> | |
<body> | |
<h1>Ottengo i dati del modulo</h1> | |
<?php | |
if( $_GET['invio'] ){ |
This file contains hidden or 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
/*** BEGIN HEADER ***/ | |
header#masthead { | |
background-color: #00BD9C; | |
border-bottom: 10px solid #0e6152; | |
height: 117px; | |
clear: both; | |
margin-bottom: 20px; | |
} |
This file contains hidden or 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 | |
function media(){ | |
$parametri = func_get_args(); | |
$media = 0; | |
$numbers = 0; | |
foreach( $parametri as $par ){ | |
if( is_numeric( $par ) ) { | |
$media += $par; |
This file contains hidden or 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
jQuery(function() { | |
// Check the date range, 86400000 is the number of milliseconds in one day | |
$("#start_date").datepicker({ | |
dateFormat: "dd/mm/yy", | |
changeMonth: true, | |
changeYear: true, | |
onSelect: function(selected) { | |
$("#end_date").datepicker("option","minDate", selected) | |
} |
This file contains hidden or 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 | |
/** | |
* Template Name: Il template per la mia pagina personalizzata | |
*/ | |
//Inserire codice PHP per personalizzare la struttura della pagina. |
This file contains hidden or 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
h2, h3, h4, h5, h6{ | |
background-color: #000; | |
color: #fff; | |
padding: 10px; | |
/* Imposta un angolo arrotondato in alto a destra */ | |
border-top-right-radius: 3px; | |
} |