forked from Adleraci/adlerka.top
test
This commit is contained in:
parent
f45200ee01
commit
5a087db6d2
@ -143,16 +143,17 @@ function getPage($page_name = null): array|false|string
|
|||||||
|
|
||||||
if(!empty($pageMetadata["parameters"]["page_script"])){
|
if(!empty($pageMetadata["parameters"]["page_script"])){
|
||||||
$script_location = $pageMetadata["parameters"]["page_script"];
|
$script_location = $pageMetadata["parameters"]["page_script"];
|
||||||
|
echo $script_location;
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
$script_location = "assets/scripts/$site_name/$page_name.js";
|
$script_location = "assets/scripts/$site_name/$page_name.js";
|
||||||
|
echo $script_location;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(file_exists($style_location)) {
|
if(file_exists($style_location)) {
|
||||||
$script_tag = $script_location;
|
$script_tag = $script_location;
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
echo $script_location;
|
|
||||||
$script_tag = "";
|
$script_tag = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user