Update funzioni.php
sostituita funzione get_home_url() con site_url()
This commit is contained in:
parent
54022fae6d
commit
dc85ee8ce6
|
@ -53,7 +53,7 @@ if ($controllo){
|
||||||
$cartelle = dirname(__FILE__);
|
$cartelle = dirname(__FILE__);
|
||||||
$ultimacartella = basename($cartelle);
|
$ultimacartella = basename($cartelle);
|
||||||
|
|
||||||
$urlcomp = get_home_url().'/wp-content/plugins/'.$ultimacartella.'/menu/';
|
$urlcomp = site_url()().'/wp-content/plugins/'.$ultimacartella.'/menu/';
|
||||||
|
|
||||||
$finalurl = $urlcomp.$urlfileprescelto;
|
$finalurl = $urlcomp.$urlfileprescelto;
|
||||||
|
|
||||||
|
@ -249,7 +249,7 @@ function generahtmlmodal($filepdf){
|
||||||
$cartelle = dirname(__FILE__);
|
$cartelle = dirname(__FILE__);
|
||||||
$ultimacartella = basename($cartelle);
|
$ultimacartella = basename($cartelle);
|
||||||
|
|
||||||
$urlcomp = get_home_url().'/wp-content/plugins/'.$ultimacartella.'/';
|
$urlcomp = site_url()().'/wp-content/plugins/'.$ultimacartella.'/';
|
||||||
|
|
||||||
return '
|
return '
|
||||||
<div style="text-align:center;z-index:5000;">
|
<div style="text-align:center;z-index:5000;">
|
||||||
|
@ -395,7 +395,7 @@ function generahtmlmodalridotto($filepdf,$etichetta){
|
||||||
$cartelle = dirname(__FILE__);
|
$cartelle = dirname(__FILE__);
|
||||||
$ultimacartella = basename($cartelle);
|
$ultimacartella = basename($cartelle);
|
||||||
|
|
||||||
$urlcomp = get_home_url().'/wp-content/plugins/'.$ultimacartella.'/';
|
$urlcomp = site_url()().'/wp-content/plugins/'.$ultimacartella.'/';
|
||||||
|
|
||||||
return '
|
return '
|
||||||
<div style="z-index:5000;">
|
<div style="z-index:5000;">
|
||||||
|
|
Loading…
Reference in New Issue