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
#Inserisci qua i plugin che vuoi usare | |
#Sintassi Preferita | |
preferred_syntax = :scss | |
#Percorso al progetto | |
http_path = '/' | |
#Cartella CSS | |
css_dir = 'css' | |
#Cartella SASS | |
sass_dir = 'sass' |
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 | |
/** | |
* Genesis Framework. | |
* | |
* Questo file mi sara' utile per gestire il layout | |
* delle pagine contenenti i singoli corsi | |
* | |
* @package Genesis\Templates | |
* @author Codeat | |
* @license GPL-2.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
<?php | |
add_action( 'wp_enqueue_scripts', 'carico_stili' ); | |
function carico_stili(){ | |
wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' ); | |
wp_enqueue_style( 'child-style', get_stylesheet_directory_uri() . '/style.css', array( 'parent-style' ) ); | |
} |
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 | |
//Per Ruolo | |
function aggiungi_capability() { | |
// prendo il ruolo author | |
$ruolo = get_role( 'author' ); | |
//Aggiungo la mia Capability | |
$role->add_cap( 'aggiungi_prodotto' ); | |
} | |
add_action( 'admin_init', 'aggiungi_capability'); |
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 | |
if( !function_exists( 'skam_setup') ){ | |
function skam_setup(){ | |
} | |
} | |
add_action( 'after_setup_theme', 'skam_setup' ); | |
function skam_widgets_init() { |
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 | |
if( !function_exists( 'skam_setup') ){ | |
function skam_setup(){ | |
//Aggiungo il supporto al tag <title> | |
add_theme_support( 'title-tag' ); | |
//Mostro il link del feed all'interno di <head> | |
add_theme_support( 'automatic-feed-links' ); |
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 | |
function am_inserisci_autore() { | |
echo '<meta name="author" content="Andrea Barghigiani">\n'; | |
} //fine am_inserisci_autore() | |
/* Action Hook */ | |
add_action( 'wp_head', 'am_inserisci_autore' ); |
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 query_posts( 'page_per_post=5&category_name=pippo' ); ?> | |
<?php if ( have_posts() ) : ?> | |
<?php while ( have_posts() ) : the_post(); ?> | |
/* Codice da eseguire in caso di contenuto trovato */ | |
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> | |
<h2> | |
<a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"> |
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
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; | |
} |
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 | |
/** | |
* Template Name: Il template per la mia pagina personalizzata | |
*/ | |
//Inserire codice PHP per personalizzare la struttura della pagina. |