first commit

This commit is contained in:
2025-03-12 17:06:23 +01:00
commit 2241f7131f
13185 changed files with 1692479 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
<ul>
<?php foreach ($fields as $key=>$field): ?>
<li><?php echo checkbox_tag('config[advanced_full_search_fields]['.$key.']',1,(isset($configFields[$key]) && $configFields[$key])?1:0)?> <?php echo $field?></li>
<?php endforeach; ?>
</ul>

View File

@@ -0,0 +1,6 @@
<ul>
<?php foreach ($fields as $key=>$field): ?>
<li><?php echo checkbox_tag('config[advanced_search_fields]['.$key.']',1,(isset($configFields[$key]) && $configFields[$key])?1:0)?> <?php echo $field?></li>
<?php endforeach; ?>
</ul>

View File

@@ -0,0 +1 @@
<?php st_include_partial('stAdminGenerator/message', array('labels' => $labels)) ?>

View File

@@ -0,0 +1,17 @@
<?php $routing = sfRouting::getInstance(); ?>
<?php $module = stConfiguration::getInstance()->getDesktopModule($sf_context->getModuleName()); ?>
<div class="list-menu">
<ul>
<?php foreach ($items as $action => $name): $url = url_for($action) ?>
<?php if ($action!='stSearchBackend/config'):?>
<li class="<?php echo $selected_item_path == $url ? 'selected' : 'none' ?>"><a href="<?php echo $url ?>"<?php if ($url[0] != '/'): ?> target="_blank"<?php endif ?>><?php echo $name ?></a></li>
<?php endif;?>
<?php endforeach; ?>
<li class="none">
<a href="<?php echo $sf_user->getCulture() == 'pl_PL' ? 'https://www.sote.pl/docs/wyszukiwarka-produktow' : 'https://www.soteshop.com/docs/search_engine' ?>?hash=085c1d2475cb9de3342947e98937e077" target="_blank">
<?php echo __("Dokumentacja", null, 'stAdminGeneratorPlugin') ?>
</a>
</li>
</ul>
</div>

View File

@@ -0,0 +1 @@
<?php echo select_tag('config[list_type]',options_for_select(array('listLongProduct'=>__("Pełna lista"),'listShortProduct'=>__("Skrócona lista"),'listOther'=> __("Lista alternatywna")),$config->get('list_type','listLongProduct'))) ?>

View File

@@ -0,0 +1 @@
<?php echo select_tag('config[order]', options_for_select(array("asc"=>__("Rosnąco"),"desc"=>__("Malejąco")),$config->get('order',0))) ?>

View File

@@ -0,0 +1 @@
<?php echo select_tag('config[order_field]', options_for_select(array("default"=>__("Trafność"),"name"=>__("Nazwa"),"price"=>__("Cena")),$config->get('order_field',"name"))) ?>

View File

@@ -0,0 +1,5 @@
<ul>
<?php foreach ($fields as $key=>$field): ?>
<li><?php echo checkbox_tag('config[simple_full_search_fields]['.$key.']',1,(isset($configFields[$key]) && $configFields[$key])?1:0)?> <?php echo $field?></li>
<?php endforeach; ?>
</ul>

View File

@@ -0,0 +1,6 @@
<?php use_stylesheet('backend/stSearchBackend.css'); ?>
<ul>
<?php foreach ($fields as $key=>$field): ?>
<li><?php echo checkbox_tag('config[simple_search_fields]['.$key.']',1,(isset($configFields[$key]) && $configFields[$key])?1:0)?> <?php echo $field?></li>
<?php endforeach; ?>
</ul>

View File

@@ -0,0 +1,18 @@
<?php echo input_tag('search_link[url]', $search_link->getUrl(), array('disabled' => false, 'style' => 'width: 500px;')) ?>
<?php if ($search_link->getUrl()):
list($culture) = explode('_', $search_link->getCulture());
stPluginHelper::addRouting('stProductSearchUrlLang4', '/product/:lang/search', 'stProduct', 'list', 'backend', array("page"=>1), array('lang' => '[a-z]{2,2}'));
stPluginHelper::addRouting('stProductSearchLinkUrl4', '/product/search/:query_url', 'stProduct', 'list', 'backend', array('page' => 1, 'query_url' => '[a-z0-9-]+'));
?>
<p>
<?php echo st_link_to(null, 'stProduct/list?query_url=' . $search_link->getUrl(), array(
'absolute' => true,
'for_app' => 'frontend',
'for_lang' => $culture,
'no_script_name' => true,
'class' => 'st_admin_external_link',
'target' => '_blank')) ?>
</p>
<?php endif ?>

View File

@@ -0,0 +1,16 @@
<?php use_helper('Object', 'Validation', 'ObjectAdmin', 'I18N', 'Date', 'VisualEffect', 'stAdminGenerator', 'stProgressBar') ?>
<?php st_include_partial('stSearchBackend/header', array('related_object' => null, 'title' => __('Optymalizacja',
array(), 'stSearchBackend'), 'route' => 'stSearchBackend/newConfig')) ?>
<?php st_include_partial('stSearchBackend/config_menu') ?>
<div class="admin_form">
<div class="fieldset">
<div class="content">
<?php echo progress_bar('stSearch_optimize', 'stSearchOptimize', 'optimize', $productCount); ?>
</div>
</div>
</div>
<?php st_include_partial('stSearchBackend/footer', array('related_object' => null, 'forward_parameters' => array())) ?>