• You MUST read the Babiato Rules before making your first post otherwise you may get permanent warning points or a permanent Ban.

    Our resources on Babiato Forum are CLEAN and SAFE. So you can use them for development and testing purposes. If your are on Windows and have an antivirus that alerts you about a possible infection: Know it's a false positive because all scripts are double checked by our experts. We advise you to add Babiato to trusted sites/sources or disable your antivirus momentarily while downloading a resource. "Enjoy your presence on Babiato"

66Biolinks - tip on creating / using custom site theme ( not biolink themes )

Pixelate

Active member
Oct 16, 2019
311
106
43
You can easily start a new theme by duplicating the original "altum" theme, and then referencing it so it's chosen as the site theme. This is the thing for front end / admin page layouts, not the biolink themes.

- Duplicate "altum" theme, which is located in "product/themes/altum"
- Give new theme a name ie) "greenery" so it's "product/themes/greenery"
- change the "init.php" file which determines which site theme is loaded, which is found in "product/apps/init.php" to reflect theme change.

Code:
const ALTUMCODE = 1;
define('ROOT_PATH', realpath(__DIR__ . '/..') . '/');
const APP_PATH = ROOT_PATH . 'app/';
const PLUGINS_PATH = ROOT_PATH . 'plugins/';
const THEME_PATH = ROOT_PATH . 'themes/altum/';
const THEME_URL_PATH = 'themes/altum/';
const ASSETS_PATH = THEME_PATH . 'assets/';
const ASSETS_URL_PATH = THEME_URL_PATH . 'assets/';
const UPLOADS_PATH = ROOT_PATH . 'uploads/';
const UPLOADS_URL_PATH = 'uploads/';
const CACHE_DEFAULT_SECONDS = 2592000;

NOTE: There are a couple of places where there is "Altum" so be careful about doing a Find & Replace. Specifically keep all the "ALTUMCODE" word and don't change two other places on the page.

Code:
/* Autoloader */
spl_autoload_register (function ($class) {
    $namespace_prefix = 'Altum';
    $split = explode('\\', $class);

    if($split[0] !== $namespace_prefix) {
        return;
    }

    /* Altum core */
    if(isset($split[1]) && !isset($split[2])) {
        require_once APP_PATH . 'core/' . $split[1] . '.php';
    }

Likely the "Altum core" doesn't matter but I've only change the locations where it's related to the template name.
 
Last edited:
You can easily start a new theme by duplicating the original "altum" theme, and then referencing it so it's chosen as the site theme. This is the thing for front end / admin page layouts, not the biolink themes.

- Duplicate "altum" theme, which is located in "product/themes/altum"
- Give new theme a name ie) "greenery" so it's "product/themes/greenery"
- change the "init.php" file which determines which site theme is loaded, which is found in "product/apps/init.php" to reflect theme change.

Code:
const ALTUMCODE = 1;
define('ROOT_PATH', realpath(__DIR__ . '/..') . '/');
const APP_PATH = ROOT_PATH . 'app/';
const PLUGINS_PATH = ROOT_PATH . 'plugins/';
const THEME_PATH = ROOT_PATH . 'themes/altum/';
const THEME_URL_PATH = 'themes/altum/';
const ASSETS_PATH = THEME_PATH . 'assets/';
const ASSETS_URL_PATH = THEME_URL_PATH . 'assets/';
const UPLOADS_PATH = ROOT_PATH . 'uploads/';
const UPLOADS_URL_PATH = 'uploads/';
const CACHE_DEFAULT_SECONDS = 2592000;

NOTE: There are a couple of places where there is "Altum" so be careful about doing a Find & Replace. Specifically keep all the "ALTUMCODE" word and don't change two other places on the page.

Code:
/* Autoloader */
spl_autoload_register (function ($class) {
    $namespace_prefix = 'Altum';
    $split = explode('\\', $class);

    if($split[0] !== $namespace_prefix) {
        return;
    }

    /* Altum core */
    if(isset($split[1]) && !isset($split[2])) {
        require_once APP_PATH . 'core/' . $split[1] . '.php';
    }

Likely the "Altum core" doesn't matter but I've only change the locations where it's related to the template name.
Are you good in doing custom theme? I'd pay if we can agree on it.
 
You can easily start a new theme by duplicating the original "altum" theme, and then referencing it so it's chosen as the site theme. This is the thing for front end / admin page layouts, not the biolink themes.

- Duplicate "altum" theme, which is located in "product/themes/altum"
- Give new theme a name ie) "greenery" so it's "product/themes/greenery"
- change the "init.php" file which determines which site theme is loaded, which is found in "product/apps/init.php" to reflect theme change.

Code:
const ALTUMCODE = 1;
define('ROOT_PATH', realpath(__DIR__ . '/..') . '/');
const APP_PATH = ROOT_PATH . 'app/';
const PLUGINS_PATH = ROOT_PATH . 'plugins/';
const THEME_PATH = ROOT_PATH . 'themes/altum/';
const THEME_URL_PATH = 'themes/altum/';
const ASSETS_PATH = THEME_PATH . 'assets/';
const ASSETS_URL_PATH = THEME_URL_PATH . 'assets/';
const UPLOADS_PATH = ROOT_PATH . 'uploads/';
const UPLOADS_URL_PATH = 'uploads/';
const CACHE_DEFAULT_SECONDS = 2592000;

NOTE: There are a couple of places where there is "Altum" so be careful about doing a Find & Replace. Specifically keep all the "ALTUMCODE" word and don't change two other places on the page.

Code:
/* Autoloader */
spl_autoload_register (function ($class) {
    $namespace_prefix = 'Altum';
    $split = explode('\\', $class);

    if($split[0] !== $namespace_prefix) {
        return;
    }

    /* Altum core */
    if(isset($split[1]) && !isset($split[2])) {
        require_once APP_PATH . 'core/' . $split[1] . '.php';
    }

Likely the "Altum core" doesn't matter but I've only change the locations where it's related to the template name.
Hello sir, If you have built a custom theme. Can you please share it.
 
AdBlock Detected

We get it, advertisements are annoying!

However in order to keep our huge array of resources free of charge we need to generate income from ads so to use the site you will need to turn off your adblocker.

If you'd like to have an ad free experience you can become a Babiato Lover by donating as little as $5 per month. Click on the Donate menu tab for more info.

I've Disabled AdBlock