layouts/basic/modules/Settings/Magento/ListViewHeader.tpl
{*<!-- {[The file is published on the basis of YetiForce Public License 6.5 that can be found in the following directory: licenses/LicenseEN.txt or yetiforce.com]} -->*}
{strip}
<!-- tpl-Settings-Magento-ListViewHeader -->
<div>
<div class="o-breadcrumb widget_header row">
<div class="col-md-9">
{include file=\App\Layout::getTemplatePath('BreadCrumbs.tpl', $QUALIFIED_MODULE)}
</div>
<div class="col-md-3 mt-1">
<a href="index.php?parent=Settings&module=Log&view=LogsViewer&type=magento" class="btn btn-info float-right">
<span class="yfi yfi-system-monitoring mr-2"></span>{\App\Language::translate('LBL_LOGS_VIEWER', 'Settings:Log')}
</a>
<a href="https://yetiforce.com/en/knowledge-base/documentation/administrator-documentation/category/magento-2" target="_blank" class="btn btn-outline-info js-popover-tooltip float-right mr-3" data-content="{App\Language::translate('BTM_GOTO_YETIFORCE_DOCUMENTATION')}" rel="noreferrer noopener" data-js="popover">
<span class="mdi mdi-book-open-page-variant u-fs-lg"></span>
</a>
</div>
</div>
{if !\App\YetiForce\Register::isRegistered()}
<div class="col-md-12">
<div class="alert alert-danger">
<span class="yfi yfi-yeti-register-alert color-red-600 u-fs-5x mr-4 float-left"></span>
<h1 class="alert-heading">{\App\Language::translate('LBL_YETIFORCE_NOT_REGISTRATION_TITLE',$QUALIFIED_MODULE)}</h1>
{\App\Language::translate('LBL_YETIFORCE_NOT_REGISTRATION_DESC',$QUALIFIED_MODULE)}
</div>
</div>
{else}
{assign var=CHECK_ALERT value=\App\YetiForce\Shop::checkAlert('YetiForceMagento')}
{if $CHECK_ALERT}
<div class="alert alert-warning">
<span class="yfi-premium mr-2 u-fs-2em color-red-600 float-left"></span>
{\App\Language::translate($CHECK_ALERT, 'Settings::YetiForce')} <a class="btn btn-primary btn-sm" href="index.php?parent=Settings&module=YetiForce&view=Shop"><span class="yfi yfi-shop mr-2"></span>{\App\Language::translate('LBL_YETIFORCE_SHOP', $QUALIFIED_MODULE)}</a>
</div>
{/if}
{if !Settings_Magento_Module_Model::isActive()}
<div class="alert alert-danger">
<form action='index.php' method="POST" enctype="multipart/form-data">
<input type="hidden" name="module" value="Magento" />
<input type="hidden" name="parent" value="Settings" />
<input type="hidden" name="action" value="Active" />
<span class="mdi mdi-alert-outline mr-2 u-fs-3x float-left"></span>
{\App\Language::translateArgs('LBL_FUNCTIONALITY_HAS_NOT_YET_BEEN_ACTIVATED', $QUALIFIED_MODULE,'Magento')}
<button type="submit" class="btn btn-primary btn-sm ml-3">
<span class="mdi mdi-check mr-2 float-left"></span>
{\App\Language::translate('LBL_ACTIVATE_FUNCTIONALITY', $QUALIFIED_MODULE)}
</button>
</form>
</div>
{else}
<div class="listViewActionsDiv row mt-2 mb-2">
<div class="{if !empty($SUPPORTED_MODULE_MODELS)}col-md-5{else}col-md-8{/if} btn-toolbar">
{foreach item=LINK from=$LISTVIEW_LINKS['LISTVIEWBASIC']}
{if $LINK->getLabel()}
{assign var="LABEL" value=\App\Language::translate($LINK->getLabel(), $QUALIFIED_MODULE)}
{/if}
<button type="button" title="{if $LINK->getLabel()}{$LABEL}{/if}"
class="btn{if $LINK->getClassName()} {$LINK->getClassName()}{else} btn-light{/if} {if $LINK->get('modalView')}js-show-modal{/if}"
{if $LINK->getUrl()}
{if stripos($LINK->getUrl(), 'javascript:')===0} onclick='{substr($LINK->getUrl(), strlen("javascript:"))};'
{else} onclick='window.location.href = "{$LINK->getUrl()}"'
{/if}
{/if}
{if $LINK->get('linkdata') neq '' && is_array($LINK->get('linkdata'))}
{foreach from=$LINK->get('linkdata') key=NAME item=DATA}
data-{$NAME}="{$DATA}"
{/foreach}
{/if}>
{if $LINK->get('linkicon')}
<span class="{$LINK->get('linkicon')}"></span>
{/if}
{if $LINK->getLabel() && $LINK->get('showLabel') eq 1}
<strong>{$LABEL}</strong>
{/if}
</button>
{/foreach}
</div>
{if !empty($SUPPORTED_MODULE_MODELS)}
<div class="col-md-3 btn-toolbar marginLeftZero">
<select class="select2 form-control" id="moduleFilter"
data-placeholder="{\App\Language::translate('LBL_ALL', $QUALIFIED_MODULE)}"
data-select="allowClear">
<optgroup class="p-0">
<option value="">{\App\Language::translate('LBL_ALL', $QUALIFIED_MODULE)}</option>
</optgroup>
{foreach item=MODULE_MODEL key=TAB_ID from=$SUPPORTED_MODULE_MODELS}
<option {if !empty($SOURCE_MODULE) && $SOURCE_MODULE eq $MODULE_MODEL->getName()} selected="" {/if}
value="{$TAB_ID}">
{App\Language::translate($MODULE_MODEL->getName(),$MODULE_MODEL->getName())}
</option>
{/foreach}
</select>
</div>
{/if}
<div class="col-12 col-sm-4 d-flex flex-row-reverse">
{include file=\App\Layout::getTemplatePath('ListViewActions.tpl', $QUALIFIED_MODULE)}
</div>
</div>
{/if}
{/if}
<div class="clearfix"></div>
<div class="listViewContentDiv listViewPageDiv" id="listViewContents">
<!-- /tpl-Settings-Magento-ListViewHeader -->
{/strip}