20 <?php
if (
$block->isShow()): ?>
21 <div
class=
"field field-store-switcher">
22 <label
class=
"label" for=
"store_switcher"><?=
__(
'Show Report For:') ?></label>
26 class=
"admin__control-select" 28 onchange=
"return switchStore(this);">
29 <option
value=
""><?=
__(
'All Websites') ?></option>
30 <?php
foreach (
$block->getWebsiteCollection() as $_website): ?>
32 <?php
foreach (
$block->getGroupCollection($_website) as $_group): ?>
33 <?php $showGroup =
false; ?>
34 <?php
foreach (
$block->getStoreCollection($_group) as $_store): ?>
37 <option website=
"true" value=
"<?= /* @escapeNotVerified */ implode(',', $_website->getStoreIds()) ?>"<?php
if (
$block->getRequest()->getParam(
'store_ids') == implode(
',', $_website->getStoreIds())): ?> selected<?php endif; ?>><?=
$block->escapeHtml($_website->getName()) ?></option>
39 <?php
if ($showGroup ==
false): ?>
40 <?php $showGroup =
true; ?>
41 <option group=
"true" value=
"<?= /* @escapeNotVerified */ implode(',', $_group->getStoreIds()) ?>"<?php
if (
$block->getRequest()->getParam(
'store_ids') == implode(
',', $_group->getStoreIds())): ?> selected<?php endif; ?>>&
nbsp;&
nbsp;&
nbsp;<?=
$block->escapeHtml($_group->getName()) ?></option>
43 <option
value=
"<?= /* @escapeNotVerified */ $_store->getId() ?>"<?php
if (
$block->getStoreId() == $_store->getId()): ?> selected<?php endif; ?>>&
nbsp;&
nbsp;&
nbsp;&
nbsp;&
nbsp;&
nbsp;<?=
$block->escapeHtml($_store->getName()) ?></option>
45 <?php
if ($showGroup): ?>
52 <?=
$block->getHintHtml() ?>
55 require([
'prototype'],
function(){
57 switchStore =
function(obj){
58 var storeParam = obj.value ?
'store_ids/' + obj.value +
'/' :
'';
60 storeParam+= obj.switchParams;
62 setLocation(
'<?= /* @escapeNotVerified */ $block->getSwitchUrl() ?>'+storeParam);
if( $websites=$block->getWebsites())(__( 'Choose Store View:')) ?></label >< div class $showWebsite
$block setTitle( 'CMS Block Title') -> setIdentifier('fixture_block') ->setContent('< h1 >Fixture Block Title</h1 >< a href=" store url</a><p> Config value
$_count $_index $_prevOptionId if($block->getOrderOptions()|| $_item->getDescription()) foreach( $items as $_item)( $_item) ?><?php $attributes if( $_item->getOrderItem() ->getParentItem())($_prevOptionId !=$attributes['option_id'])</td >< td > & nbsp
if( $block->isShow())( 'Show Report For:') ?></label >< div class foreach($block->getWebsiteCollection() as $_website) foreach($block->getGroupCollection($_website) as $_group) foreach( $block->getStoreCollection( $_group) as $_store)($showWebsite==false) if($block->getRequest() ->getParam('store_ids')==implode(',', $_website->getStoreIds())) endif
if($block->getStoreId()==$_store->getId()) endforeach