Skip to content
Permalink
Browse files

Add two custom fields to projectData

  • Loading branch information...
uprel committed Sep 10, 2019
1 parent d9e08fe commit 527445acc64a4d24038217a79c64c471236c789e
Showing with 11 additions and 0 deletions.
  1. +11 −0 client_common/load.php
@@ -43,6 +43,15 @@
if (!property_exists($data, "client_url")) {
$data->client_url = "";
}
if (!property_exists($data, "custom1")) {
$data->custom1 = "";
}
if (!property_exists($data, "custom2")) {
$data->custom2 = "";
}
if (file_exists($client_path . 'admin/resources/images/' . $data->client_name . '.png')) {
$data->client_logo = $gis_projects->path . 'admin/resources/images/' . $data->client_name . '.png';
} else {
@@ -63,6 +72,8 @@
projectData.client_display_name = '<?php echo $data->client_display_name ?>';
projectData.client_url = '<?php echo $data->client_url ?>';
projectData.client_logo = '<?php echo $data->client_logo ?>';
projectData.custom1 = '<?php echo $data->custom1 ?>';
projectData.custom2 = '<?php echo $data->custom2 ?>';
projectData.lang = '<?php echo $lang ?>';

projectData.search = eval(<?php echo json_encode($settings->search) ?>);

0 comments on commit 527445a

Please sign in to comment.
You can’t perform that action at this time.