2023-12-22 23:44:48 +03:00
|
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Copyleft
|
|
|
|
|
*
|
2024-01-01 01:14:38 +03:00
|
|
|
|
* @package maketrandevu
|
2023-12-22 23:44:48 +03:00
|
|
|
|
* @author asandikci
|
|
|
|
|
* @copyright Copyleft (c) 2023 - 2024
|
|
|
|
|
* @license https://opensource.org/licenses/GPL-3.0 GPL3.0 License
|
2024-01-01 01:14:38 +03:00
|
|
|
|
* @link https://iflpanel.com/about/maketrandevu
|
2023-12-22 23:44:48 +03:00
|
|
|
|
* @since Version 1.4.3
|
|
|
|
|
* @filesource
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
use function PHPSTORM_META\type;
|
|
|
|
|
|
|
|
|
|
defined('BASEPATH') or exit('No direct script access allowed');
|
|
|
|
|
|
|
|
|
|
/**
|
2024-01-01 01:14:38 +03:00
|
|
|
|
* MaketRandevu Branding Helper
|
2023-12-22 23:44:48 +03:00
|
|
|
|
*
|
2024-01-01 01:14:38 +03:00
|
|
|
|
* @package maketrandevu
|
2023-12-22 23:44:48 +03:00
|
|
|
|
* @subpackage Helpers
|
|
|
|
|
* @category Helpers
|
|
|
|
|
* @author asandikci
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
// ------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!function_exists('branding')) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Branding
|
|
|
|
|
* Update Branding
|
|
|
|
|
*
|
|
|
|
|
* @param string product
|
|
|
|
|
* @param string type
|
|
|
|
|
* @return string
|
|
|
|
|
*/
|
|
|
|
|
function branding($product, $type)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
// Yazılım Sağlayıcı Bilgileri
|
|
|
|
|
$software = array(
|
2024-01-01 11:37:50 +03:00
|
|
|
|
"name" => "MAKET Randevu",
|
|
|
|
|
"name_tr" => "MAKET Randevu",
|
|
|
|
|
"name_en" => "MAKET Appointment",
|
|
|
|
|
"description" => "MAKET Randevu",
|
|
|
|
|
"description_tr" => "MAKET Randevu Portalı",
|
|
|
|
|
"description_en" => "MAKET Appointment Portal",
|
2023-12-22 23:44:48 +03:00
|
|
|
|
"maintainers" => "Aliberk Sandıkçı & Alex Tselegidis", // to also give credit to original maintainer
|
|
|
|
|
"maintainer_nickname" => "asandikci",
|
|
|
|
|
"maintainer_name" => "Aliberk Sandıkçı",
|
|
|
|
|
"maintainer_website" => "https://asandikci.com/",
|
|
|
|
|
"license" => "GPL3.0",
|
2024-01-01 01:14:38 +03:00
|
|
|
|
"website" => "https://iflpanel.com/about/maketrandevu",
|
2023-12-22 23:44:48 +03:00
|
|
|
|
"example" => "https://randevu.iflpanel.com/",
|
2024-01-01 01:14:38 +03:00
|
|
|
|
"source" => "https://git.aliberksandikci.com.tr/maket/maketrandevu",
|
|
|
|
|
"issues" => "https://git.aliberksandikci.com.tr/maket/maketrandevu/issues"
|
2023-12-22 23:44:48 +03:00
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
// Upstream Yazılım Sağlayıcı Bilgileri
|
|
|
|
|
$upstream = array (
|
|
|
|
|
"name" => "Easy!Appointments",
|
|
|
|
|
"description" => "Self Hosted Appointment Scheduler ",
|
|
|
|
|
"maintainer_nickname" => "alextselegidis",
|
|
|
|
|
"maintainer_name" => "Alex Tselegidis",
|
|
|
|
|
"maintainer_website" => "https://alextselegidis.com",
|
|
|
|
|
"license" => "GPL3.0",
|
|
|
|
|
"website" => "https://easyappointments.org",
|
|
|
|
|
"example" => "https://demo.easyappointments.org/",
|
|
|
|
|
"source" => "https://github.com/alextselegidis/easyappointments",
|
|
|
|
|
"issues" => "https://github.com/alextselegidis/easyappointments/issues",
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
switch ($product) {
|
|
|
|
|
case 'software':
|
|
|
|
|
return $software[$type];
|
|
|
|
|
break;
|
|
|
|
|
case 'type':
|
|
|
|
|
return $upstream[$type];
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|