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
<tr> | |
<td class="border p-3"> | |
<%= tag.p tag.strong @data.name %> | |
<%= tag.p @data.description %> | |
</td> | |
<td class="border p-3"><%= @data.qty %></td> | |
<td class="border p-3"><%= @data.tax %></td> | |
<td class="border p-3"><%= @data.unit_cost %></td> | |
</tr> |
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
<table class="<%= classes %>"> | |
<thead class='bg-gray-300 font-medium'> | |
<% head %> | |
</thead> | |
<tbody> | |
<% body %> | |
</tbody> | |
</table> |
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_filter( 'wp_nav_menu_items', 'sam_logout_menu', 10, 2 ); | |
function sam_logout_menu( $items, $args ) { | |
if ( 'primary' == $args->theme_location ) { | |
$items .= '<li class="menu-item logout"><a href="'. wp_logout_url(home_url()) . '" >Esci</a></li>'; | |
} | |
} | |
return $items; | |
} |
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', 'sam_load_scripts'); | |
function sam_load_scripts(){ | |
wp_enqueue_script( 'slug-tuo-script', get_bloginfo( 'stylesheet_directory' ) . '/js/tuo-script.js', array( 'jquery' ), '1.0.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 | |
// Aggiungo la lista autori agganciandomi a un Hook | |
add_action( 'il_tuo_hook', 'sam_recupero_autori' ); | |
function sam_recupero_autori() { | |
$args = [ | |
'role' => 'author', | |
'fields' => 'ID' | |
]; |
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 | |
/** | |
* Plugin Name: Il mio primo CPT | |
*/ |
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 | |
//* Aggiungo la pagina d'esempio per i componenti | |
include_once( get_stylesheet_directory() . '/inc/theme-customizer/theme-customizer-demo.php' ); |
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 | |
// Array di configurazione | |
return [ | |
'dependencies' => [ | |
'plugins' => [], | |
], | |
'content' => [], | |
'navigation_menus' => [], | |
'widgets' => [], |
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
{ | |
"name": "app-desktop", | |
"version": "1.0.0", | |
"description": "applicazione di esempio con Electron", | |
"main": "main.js", | |
"scripts": { | |
"run": "electron ." | |
}, | |
"author": "Andrea Barghigiani", | |
"license": "ISC" |
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 | |
// Espandend to use is_sales_page() | |
if ( ! function_exists( 'is_lifterlms' ) ) { | |
function is_lifterlms() { | |
return apply_filters( 'is_lifterlms', ( is_courses() || is_course_taxonomy() || is_course() || is_lesson() || is_membership() || is_memberships() || is_quiz() || is_sales_page() ) ); | |
} | |
} | |
/** |
NewerOlder