File manager - Edit - /home/opticamezl/www/newok/builder-joomla.zip
Back
PK ��\�F� bootstrap.phpnu �[��� <?php namespace YOOtheme\Builder\Joomla; use Joomla\CMS\HTML\Helpers\Content; use YOOtheme\Builder; use YOOtheme\View; return [ 'routes' => [ ['post', '/page', PageController::class . '@savePage'], ['get', '/builder/pages', PageController::class . '@getPages'], ['post', '/builder/image', [BuilderController::class, 'loadImage']], ], 'actions' => [ 'onAfterRoute' => [ Listener\LoadSessionUser::class => '@handle', ], 'onLoadTemplate' => [ Listener\LoadSessionUser::class => ['@reset', 10], Listener\RenderBuilderButton::class => ['@handle', 10], ], 'onContentPrepare' => [ Listener\RenderBuilderPage::class => '@handle', ], 'onSchemaBeforeCompileHead' => [ Listener\LoadSessionUser::class => [['@handle', 10], ['@reset', -10]], ], ], 'extend' => [ View::class => function (View $view) { $view->addLoader(function ($name, $parameters, callable $next) { $content = $next($name, $parameters); return empty($parameters['prefix']) || $parameters['prefix'] !== 'page' ? Content::prepare($content) : $content; }, '*/builder/elements/layout/templates/template.php'); }, Builder::class => function (Builder $builder, $app) { $builder->addTypePath(__DIR__ . '/elements/*/element.json'); if ($childDir = $app->config->get('theme.childDir')) { $builder->addTypePath("{$childDir}/builder/*/element.json"); } }, ], 'services' => [ Listener\LoadSessionUser::class => '', Listener\RenderBuilderPage::class => '', ], ]; PK ��\���4� � ! elements/breadcrumbs/element.jsonnu �[��� { "name": "breadcrumbs", "title": "Breadcrumbs", "group": "system", "icon": "${url:images/icon.svg}", "iconSmall": "${url:images/iconSmall.svg}", "element": true, "width": 500, "defaults": { "show_home": true, "show_current": true }, "templates": { "render": "./templates/template.php" }, "fields": { "show_home": { "label": "Breadcrumbs", "description": "Show or hide the home link as first item as well as the current page as last item in the breadcrumb navigation.", "text": "Show home link", "type": "checkbox" }, "show_current": { "text": "Show current page", "type": "checkbox" }, "home_text": { "label": "Home Text", "description": "Enter the text for the home link.", "attrs": { "placeholder": "Home" }, "enable": "show_home" }, "position": "${builder.position}", "position_left": "${builder.position_left}", "position_right": "${builder.position_right}", "position_top": "${builder.position_top}", "position_bottom": "${builder.position_bottom}", "position_z_index": "${builder.position_z_index}", "blend": "${builder.blend}", "margin": "${builder.margin}", "margin_remove_top": "${builder.margin_remove_top}", "margin_remove_bottom": "${builder.margin_remove_bottom}", "text_align": "${builder.text_align}", "text_align_breakpoint": "${builder.text_align_breakpoint}", "text_align_fallback": "${builder.text_align_fallback}", "animation": "${builder.animation}", "_parallax_button": "${builder._parallax_button}", "visibility": "${builder.visibility}", "name": "${builder.name}", "status": "${builder.status}", "id": "${builder.id}", "class": "${builder.cls}", "css": { "label": "CSS", "description": "Enter your own custom CSS. The following selectors will be prefixed automatically for this element: <code>.el-element</code>", "type": "editor", "editor": "code", "mode": "css", "attrs": { "debounce": 500, "hints": [".el-element"] } } }, "fieldset": { "default": { "type": "tabs", "fields": [ { "title": "Settings", "fields": [ { "label": "Breadcrumbs", "type": "group", "divider": true, "fields": ["show_home", "show_current", "home_text"] }, { "label": "General", "type": "group", "fields": [ "position", "position_left", "position_right", "position_top", "position_bottom", "position_z_index", "blend", "margin", "margin_remove_top", "margin_remove_bottom", "text_align", "text_align_breakpoint", "text_align_fallback", "animation", "_parallax_button", "visibility" ] } ] }, "${builder.advanced}" ] } } } PK ��\�Z� � + elements/breadcrumbs/templates/template.phpnu �[��� <?php namespace YOOtheme; use Joomla\CMS\Factory; use Joomla\CMS\Language\Text; use Joomla\Module\Breadcrumbs\Site\Helper\BreadcrumbsHelper; use Joomla\Registry\Registry; $rand = rand(); $marker = "<!-- breadcrumbs_{$rand} -->"; $render = function () use ($__dir, $attrs, $props) { // Get the breadcrumbs $params = new Registry([ 'showHome' => $props['show_home'], 'homeText' => Text::_($props['home_text'] ?: 'Home', 'yootheme'), ]); $items = BreadcrumbsHelper::getList($params, Factory::getApplication()); if (!$props['show_current']) { array_pop($items); } elseif ($items) { $items[count($items) - 1]->link = ''; } $props['items'] = $items; return $this->render("{$__dir}/template-breadcrumbs", compact('attrs', 'props')); }; if ($prefix === 'page') { app('dispatcher')->addListener('onLoadTemplate', function ($event) use ($render, $marker) { [$view] = $event->getArguments(); if ($output = $view->get('_output')) { $view->set('_output', str_replace($marker, $render(), $output)); } }); echo $marker; } else { echo $render(); } PK ��\�O�_7 7 7 elements/breadcrumbs/templates/template-breadcrumbs.phpnu �[��� <?php $items = $props['items']; $el = $this->el('nav', [ 'aria-label' => 'Breadcrumb', ]); $list = $this->el('ul', [ 'class' => [ 'uk-breadcrumb uk-margin-remove-bottom', 'uk-flex-{text_align}[@{text_align_breakpoint} [uk-flex-{text_align_fallback}]]', ], 'vocab' => 'https://schema.org/', 'typeof' => 'BreadcrumbList', ]); $li = $this->el('li', [ 'property' => 'itemListElement', 'typeof' => 'ListItem', ]); $span = $this->el('span', ['property' => 'name']); $position = 1; ?> <?php if ($items) : ?> <?= $el($props, $attrs) ?> <?= $list($props) ?> <?php foreach ($items as $key => $item) : ?> <?php if (!empty($item->link)) : ?> <?= $li() ?> <a href="<?= $item->link ?>" property="item" typeof="WebPage"><?= $span([], $item->name) ?></a> <meta property="position" content="<?= $position++ ?>"> <?php elseif ($key !== array_key_last($items)) : ?> <li class="uk-disabled"> <span><?= $item->name ?></span> <?php else : ?> <?= $li() ?> <?= $span([], ['aria-current' => 'page'], $item->name) ?> <meta property="position" content="<?= $position++ ?>"> <?php endif ?> <?= $li->end() ?> <?php endforeach ?> <?= $list->end() ?> <?= $el->end() ?> <?php endif ?> PK ��\�'i\1 1 ) elements/breadcrumbs/images/iconSmall.svgnu �[��� <svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"> <polygon fill="none" stroke="#444" points="5.5 13.5 0.5 13.5 0.5 6.5 5.5 6.5 8.5 10 5.5 13.5" /> <polygon fill="none" stroke="#444" points="15.5 13.5 8.5 13.5 11.5 10 8.5 6.5 15.5 6.5 18.5 10 15.5 13.5" /> </svg> PK ��\{_, , $ elements/breadcrumbs/images/icon.svgnu �[��� <svg width="30" height="30" viewBox="0 0 30 30" xmlns="http://www.w3.org/2000/svg"> <polygon fill="none" stroke="#444" stroke-width="2" points="7 20 1 20 1 10 7 10 12 15 7 20" /> <polygon fill="none" stroke="#444" stroke-width="2" points="23 20 13 20 18 15 13 10 23 10 28 15 23 20" /> </svg> PK ��\WWT &