<commit_before><?php
/**
 * FoodCoopShop - The open source software for your foodcoop
 *
 * Licensed under The MIT License
 * For full copyright and license information, please see the LICENSE.txt
 * Redistributions of files must retain the above copyright notice.
 *
 * @since         FoodCoopShop Network Plugin 1.0.0
 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
 * @author        <NAME> <<EMAIL>>
 * @copyright     Copyright (c) <NAME>, https://www.rothauer-it.com
 * @link          https://www.foodcoopshop.com
 */
use Cake\Core\Configure;

?>
<div id="sync-product-data">

    <?php
        $this->element('addScript', [
            'script' =>
                Configure::read('app.jsNamespace') . ".SyncBase.init();".
                Configure::read('app.jsNamespace') . ".Admin.selectMainMenuAdmin('Meine Produkte');" .
                Configure::read('app.jsNamespace') . ".Admin.addLoaderToSyncProductDataButton($('a.sync-product-button.btn-default'));"
        ]);

        if (!empty($localSyncProducts)) {
            $this->element('addScript', [
                'script' =>
                    Configure::read('app.jsNamespace') . ".SyncProductData.init('".addslashes(json_encode($syncProducts))."', '".addslashes(json_encode($localSyncProducts))."');".
                    Configure::read('app.jsNamespace') . ".SyncProductData.showLocalProductList();"
            ]);
        }

    ?>
   
    <div class="filter-container-not-fixed">
        <?php
        if (!empty($localSyncProducts)) {
            echo $this->element('syncLoginForm', ['syncDomains' => $syncDomains]);
        }
        echo '<div class="sync-button-wrapper">';
        if (!empty($localSyncProducts)) {
            echo $this->Html->link('<i class="fa fa-check-circle"></i> Vorschau laden', 'javascript:void(0);', [
                'class' => 'btn btn-success show-preview-button',
                'escape' => false
            ]);
        }
        echo $this->Html->link(
            '<i class="fa fa-arrow-circle-left"></i> Meine Produkte',
            $this->Slug->getProductAdmin(),
            [
                'class' => 'btn btn-default',
                'escape' => false
            ]
        );
        if (!empty($localSyncProducts)) {
            echo $this->Html->link('<i class="fa fa-refresh"></i> Produktdaten synchronisieren', 'javascript:void(0);', [
            'class' => 'btn btn-danger sync-products-button',
            'escape' => false
            ]);
        }
           echo '</div>';
        ?>
        <div class="right">
            <?php echo $this->element('headerIcons', ['helperLink' => $this->Network->getNetworkPluginDocs()]); ?>
        </div>

    </div>
    <div class="sc"></div>

    <h2>Produktdaten synchronisieren</h2>
    
    <?php
        echo '<p>';
    if (!empty($emptyProductsString)) {
        echo $emptyProductsString;
    }
        $syncProductsLink = $this->Html->link(
            '<i class="fa fa-arrow-circle-right"></i> Produkte zuordnen',
            $this->Network->getSyncProducts(),
            [
                'class' => 'btn btn-default sync-product-button',
                'escape' => false,
                'style' => 'margin-left: 2px'
            ]
        );
        echo 'Klicke auf '.$syncProductsLink . ', um deine Produkte zuzuordnen.';
        echo '<br /><b><a target="_blank" href="'.$this->Network->getNetworkPluginDocs().'">Hier geht\'s zur Anleitung.</a></b> <b>Varianten</b> werden klein und kursiv angezeigt, <b>Produkte</b> groß und nicht kursiv.';
        echo '<br />Rot hinterlegte Felder (Vorschau) zeigen Unterschiede zwischen Master-Foodcoop und Remote-Foodcoop an.';
        echo '</p>';
    ?>
    
    <h2 class="warning">Der <b>Preis nach Gewicht (z. B. <?php echo $this->PricePerUnit->getPricePerUnitBaseInfo(6, 'kg', 1); ?>)</b> wird erst ab Herbst 2018 synchronisiert.</h2>
    
    <h2 class="info" id="everything-allright"><b>Super!</b> Du kannst dich entspannt zurücklehen. Deine Produktdaten sind bei allen Foodcoops synchron.</h2>
    <commit_msg>remove warning<commit_after><?php
/**
 * FoodCoopShop - The open source software for your foodcoop
 *
 * Licensed under The MIT License
 * For full copyright and license information, please see the LICENSE.txt
 * Redistributions of files must retain the above copyright notice.
 *
 * @since         FoodCoopShop Network Plugin 1.0.0
 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
 * @author        <NAME> <<EMAIL>>
 * @copyright     Copyright (c) <NAME>, https://www.rothauer-it.com
 * @link          https://www.foodcoopshop.com
 */
use Cake\Core\Configure;

?>
<div id="sync-product-data">

    <?php
        $this->element('addScript', [
            'script' =>
                Configure::read('app.jsNamespace') . ".SyncBase.init();".
                Configure::read('app.jsNamespace') . ".Admin.selectMainMenuAdmin('Meine Produkte');" .
                Configure::read('app.jsNamespace') . ".Admin.addLoaderToSyncProductDataButton($('a.sync-product-button.btn-default'));"
        ]);

        if (!empty($localSyncProducts)) {
            $this->element('addScript', [
                'script' =>
                    Configure::read('app.jsNamespace') . ".SyncProductData.init('".addslashes(json_encode($syncProducts))."', '".addslashes(json_encode($localSyncProducts))."');".
                    Configure::read('app.jsNamespace') . ".SyncProductData.showLocalProductList();"
            ]);
        }

    ?>
   
    <div class="filter-container-not-fixed">
        <?php
        if (!empty($localSyncProducts)) {
            echo $this->element('syncLoginForm', ['syncDomains' => $syncDomains]);
        }
        echo '<div class="sync-button-wrapper">';
        if (!empty($localSyncProducts)) {
            echo $this->Html->link('<i class="fa fa-check-circle"></i> Vorschau laden', 'javascript:void(0);', [
                'class' => 'btn btn-success show-preview-button',
                'escape' => false
            ]);
        }
        echo $this->Html->link(
            '<i class="fa fa-arrow-circle-left"></i> Meine Produkte',
            $this->Slug->getProductAdmin(),
            [
                'class' => 'btn btn-default',
                'escape' => false
            ]
        );
        if (!empty($localSyncProducts)) {
            echo $this->Html->link('<i class="fa fa-refresh"></i> Produktdaten synchronisieren', 'javascript:void(0);', [
            'class' => 'btn btn-danger sync-products-button',
            'escape' => false
            ]);
        }
           echo '</div>';
        ?>
        <div class="right">
            <?php echo $this->element('headerIcons', ['helperLink' => $this->Network->getNetworkPluginDocs()]); ?>
        </div>

    </div>
    <div class="sc"></div>

    <h2>Produktdaten synchronisieren</h2>
    
    <?php
        echo '<p>';
    if (!empty($emptyProductsString)) {
        echo $emptyProductsString;
    }
        $syncProductsLink = $this->Html->link(
            '<i class="fa fa-arrow-circle-right"></i> Produkte zuordnen',
            $this->Network->getSyncProducts(),
            [
                'class' => 'btn btn-default sync-product-button',
                'escape' => false,
                'style' => 'margin-left: 2px'
            ]
        );
        echo 'Klicke auf '.$syncProductsLink . ', um deine Produkte zuzuordnen.';
        echo '<br /><b><a target="_blank" href="'.$this->Network->getNetworkPluginDocs().'">Hier geht\'s zur Anleitung.</a></b> <b>Varianten</b> werden klein und kursiv angezeigt, <b>Produkte</b> groß und nicht kursiv.';
        echo '<br />Rot hinterlegte Felder (Vorschau) zeigen Unterschiede zwischen Master-Foodcoop und Remote-Foodcoop an.';
        echo '</p>';
    ?>
    
    <h2 class="info" id="everything-allright"><b>Super!</b> Du kannst dich entspannt zurücklehen. Deine Produktdaten sind bei allen Foodcoops synchron.</h2>
    
{'fraction_non_alphanumeric': 0.16725175526579739, 'fraction_numerical': 0.003510531594784353, 'mean_word_length': 2.281365693130399, 'pattern_counts': {'":': 0, '<': 96, '<?xml version=': 0, '>': 164, 'https://': 4, 'lorem ipsum': 0, 'www.': 6, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1785140', 'n_tokens_mistral': 2401, 'n_tokens_neox': 2349, 'n_words': 472}