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 | |
/** | |
* Post rendering content according to caller of get_template_part. | |
* | |
* @package understrap | |
*/ | |
if ( ! defined( 'ABSPATH' ) ) { | |
exit; // Exit if accessed directly. | |
} | |
?> |
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
/****************************************** */ | |
// Funzione per richiamare le API | |
/****************************************** */ | |
// Method: POST, PUT, GET etc | |
// Data: array("param" => "value") ==> index.php?param=value | |
function CallAPI($method, $url, $data = false){ | |
$url_c = 'http://95.110.166.40/API/v1'.$url; |
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
/****************************************** */ | |
// Funzione per manipolare le stringhe | |
/****************************************** */ | |
function tdm_get_string_between($string, $start, $end){ | |
$string = ' ' . $string; | |
$ini = strpos($string, $start); | |
if ($ini == 0) return ''; | |
$ini += strlen($start); | |
$len = strpos($string, $end, $ini) - $ini; |
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
/****************************************** */ | |
// Funzione per l'autologin | |
/****************************************** */ | |
function autologin($user_name){ | |
$user = get_user_by('login', $user_name ); | |
// Redirect URL // | |
if ( !is_wp_error( $user ) ) |
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: Book Filter | |
Description: Crea uno short code per applicare i filtri alla pagina Biblioteca | |
Version: 1.0 | |
*/ | |
/* Includo js in wordpress */ | |
function enqueue_scripts(){ |
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
<-- Esempio parte in HTML --> | |
<div style="margin-top:3rem;" class="row"> | |
<label for="billing_address">(È richiesto indirizzo completo)*</label> | |
<!-- select delle province --> | |
<div class="col-md-4 "> | |
<div class="form-group"> | |
<select class="select form-control user-success" placeholder="Provincia" required="required" id="address_state"> |
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
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # | |
# REDIRECT PER LA CARTELLA /web di BEDROCK # # # # # # # # # # # # # # # # # # # # # # # # # # | |
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # | |
# Add directives | |
RewriteEngine on | |
# Change root directory to “web” folder | |
RewriteCond %{THE_REQUEST} ^GET\ /web/ | |
RewriteRule ^web/(.*) /$1 [L,R=301] | |
RewriteRule !^web/ web%{REQUEST_URI} [L] |
OlderNewer