MaketRandevu/application/helpers/maketrandevu/branding_helper.php

90 lines
2.7 KiB
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?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ıı & Alex Tselegidis", // to also give credit to original maintainer
"maintainer_nickname" => "asandikci",
"maintainer_name" => "Aliberk Sandıı",
"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;
}
}
}