86 lines
2.5 KiB
PHP
86 lines
2.5 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",
|
||
"description" => "MAKET Randevu 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;
|
||
}
|
||
}
|
||
}
|