90 lines
2.7 KiB
PHP
90 lines
2.7 KiB
PHP
<?php
|
||
|
||
/**
|
||
* Copyleft
|
||
*
|
||
* @package maketrandevu
|
||
* @author asandikci
|
||
* @copyright Copyleft (c) 2023 - 2024
|
||
* @license https://opensource.org/licenses/GPL-3.0 GPL3.0 License
|
||
* @link https://iflpanel.com/about/maketrandevu
|
||
* @since Version 1.4.3
|
||
* @filesource
|
||
*/
|
||
|
||
use function PHPSTORM_META\type;
|
||
|
||
defined('BASEPATH') or exit('No direct script access allowed');
|
||
|
||
/**
|
||
* MaketRandevu Branding Helper
|
||
*
|
||
* @package maketrandevu
|
||
* @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(
|
||
"name" => "MAKET Randevu",
|
||
"name_tr" => "MAKET Randevu",
|
||
"name_en" => "MAKET Appointment",
|
||
"description" => "MAKET Randevu",
|
||
"description_tr" => "MAKET Randevu Portalı",
|
||
"description_en" => "MAKET Appointment Portal",
|
||
"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",
|
||
"website" => "https://iflpanel.com/about/maketrandevu",
|
||
"example" => "https://randevu.iflpanel.com/",
|
||
"source" => "https://git.aliberksandikci.com.tr/maket/maketrandevu",
|
||
"issues" => "https://git.aliberksandikci.com.tr/maket/maketrandevu/issues"
|
||
);
|
||
|
||
// 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;
|
||
}
|
||
}
|
||
}
|