AnonSec Shell
Server IP : 54.36.91.62  /  Your IP : 216.73.217.117
Web Server : Apache
System : Linux webm013.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
User : coopiak ( 151928)
PHP Version : 8.3.23
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/coopiak/amisdesseniors-fr/nice2/templates/yootheme/packages/theme-joomla/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/coopiak/amisdesseniors-fr/nice2/templates/yootheme/packages/theme-joomla/updates.php
<?php

namespace YOOtheme;

use Joomla\Database\DatabaseDriver;

return [
    '3.0.0-beta.1.5' => function ($config) {
        /** @var DatabaseDriver $db */
        $db = app(DatabaseDriver::class);
        $modules = $db->setQuery('SELECT id, params FROM `#__modules`')->loadObjectList();

        foreach ($modules as $module) {
            $params = json_decode($module->params);
            if (empty($params->yoo_config)) {
                continue;
            }

            $conf = json_decode($params->yoo_config, true);
            Arr::updateKeys($conf, ['menu_style' => 'menu_type']);
            $params->yoo_config = json_encode($conf);
            $module->params = json_encode($params);

            $db->updateObject('#__modules', $module, 'id');
        }

        return $config;
    },
    '2.8.0-beta.0.4' => function ($config) {
        Arr::updateKeys($config, ['menu.positions.mobile' => 'menu.positions.dialog-mobile']);

        /** @var DatabaseDriver $db */
        $db = app(DatabaseDriver::class);
        $db->setQuery(
            "UPDATE `#__modules` SET position = {$db->quote(
                'dialog-mobile',
            )} WHERE client_id=0 AND position = {$db->quote('mobile')}",
        )->execute();

        return $config;
    },
    '2.8.0-beta.0.1' => function ($config, array $params) {
        if (preg_match('/(offcanvas|modal)/', Arr::get($params['config'], 'header.layout'))) {
            Arr::updateKeys($config, ['menu.positions.navbar' => 'menu.positions.dialog']);

            // Ensure empty instead of default value
            Arr::set($config, 'menu.positions.navbar', '');

            /** @var DatabaseDriver $db */
            $db = app(DatabaseDriver::class);
            $db->setQuery(
                "UPDATE `#__modules` SET position = {$db->quote(
                    'dialog',
                )} WHERE client_id=0 AND position = {$db->quote('navbar')}",
            )->execute();
        }

        // Check child theme's "theme.js" for jQuery
        if (
            !empty($config['child_theme']) &&
            !isset($config['jquery']) &&
            ($contents = @file_get_contents(
                $params['app'](Config::class)->get('theme.rootDir') .
                    "_{$config['child_theme']}/js/theme.js",
            )) &&
            str_contains($contents, 'jQuery')
        ) {
            $config['jquery'] = true;
        }

        return $config;
    },
    '1.20.0-beta.6' => function ($config) {
        // Deprecated Blog settings
        if (!Arr::has($config, 'post.image_margin')) {
            Arr::set($config, 'post.title_margin', 'large');
            Arr::set($config, 'blog.title_margin', 'large');

            if (Arr::get($config, 'post.content_width') === true) {
                Arr::set($config, 'post.content_width', 'small');
            }

            if (Arr::get($config, 'post.content_width') === false) {
                Arr::set($config, 'post.content_width', '');
            }

            if (Arr::get($config, 'post.header_align') === true) {
                Arr::set($config, 'blog.header_align', 1);
            }
        }

        return $config;
    },
];

Anon7 - 2022
AnonSec Team