87 lines
2.5 KiB
PHP
87 lines
2.5 KiB
PHP
|
<?php
|
|||
|
|
|||
|
/**
|
|||
|
* Copyleft
|
|||
|
*
|
|||
|
* @package iflrandevu
|
|||
|
* @author asandikci
|
|||
|
* @copyright Copyleft (c) 2023 - 2024
|
|||
|
* @license https://opensource.org/licenses/GPL-3.0 GPL3.0 License
|
|||
|
* @link https://iflpanel.com/about/randevu
|
|||
|
* @since Version 1.4.3
|
|||
|
* @filesource
|
|||
|
*/
|
|||
|
|
|||
|
use function PHPSTORM_META\type;
|
|||
|
|
|||
|
defined('BASEPATH') or exit('No direct script access allowed');
|
|||
|
|
|||
|
/**
|
|||
|
* IFLRandevu Branding Helper
|
|||
|
*
|
|||
|
* @package iflrandevu
|
|||
|
* @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" => "İFL Randevu",
|
|||
|
"description" => "İzmir Fen Lisesi 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/iflrandevu",
|
|||
|
"example" => "https://randevu.iflpanel.com/",
|
|||
|
"source" => "https://git.aliberksandikci.com.tr/ifl/iflrandevu",
|
|||
|
"issues" => "https://git.aliberksandikci.com.tr/ifl/iflrandevu/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;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|