<?php 

$language_id = 2;
foreach($data['languages'] as $language) {
	if($language['language_id'] != 1) {
		$language_id = $language['language_id'];
	}
}

$output = array();
$output["custom_module_module"] = array (
  1 => 
  array (
    'type' => '2',
    'block_heading' => 
    array (
      1 => '',
      $language_id => '',
    ),
    'block_content' => 
    array (
      1 => '<p><br></p>',
      $language_id => '<p><br></p>',
    ),
    'html' => 
    array (
      1 => '<div style="background: #f6f6f6">
     <div class="standard-body">
          <div class="full-width">
               <div class="container">
                    <div class="stationery-top-bar row">
                         <div class="col-sm-4">
                              <div class="background">
                                   <img src="image/catalog/stationery/icon-free-shipping.png" alt="Free shipping">
                                   <p>Free shipping & Return</p>
                              </div>
                         </div>
                         
                         <div class="col-sm-4 text-center">
                              <div class="background">
                                   <img src="image/catalog/stationery/icon-money.png" alt="Money back">
                                   <p>Money back guarantee</p>
                              </div>
                         </div>
                         
                         <div class="col-sm-4 text-right">
                              <div class="background">
                                   <img src="image/catalog/stationery/icon-support.png" alt="Support">
                                   <p>Support 24/7</p>
                              </div>
                         </div>
                    </div>
               </div>
          </div>
     </div>
</div>',
      $language_id => '<div style="background: #f6f6f6">
     <div class="standard-body">
          <div class="full-width">
               <div class="container">
                    <div class="stationery-top-bar row">
                         <div class="col-sm-4">
                              <div class="background">
                                   <img src="image/catalog/stationery/icon-free-shipping.png" alt="Free shipping">
                                   <p>Free shipping & Return</p>
                              </div>
                         </div>
                         
                         <div class="col-sm-4 text-center">
                              <div class="background">
                                   <img src="image/catalog/stationery/icon-money.png" alt="Money back">
                                   <p>Money back guarantee</p>
                              </div>
                         </div>
                         
                         <div class="col-sm-4 text-right">
                              <div class="background">
                                   <img src="image/catalog/stationery/icon-support.png" alt="Support">
                                   <p>Support 24/7</p>
                              </div>
                         </div>
                    </div>
               </div>
          </div>
     </div>
</div>',
    ),
    'layout_id' => '99999',
    'position' => 'header_notice',
    'status' => '1',
    'sort_order' => '',
  ),
  2 => 
  array (
    'type' => '2',
    'block_heading' => 
    array (
      1 => '',
      $language_id => '',
    ),
    'block_content' => 
    array (
      1 => '<p><br></p>',
      $language_id => '<p><br></p>',
    ),
    'html' => 
    array (
      1 => '<div class="stationery-phone hidden-md hidden-sm">
     <img src="image/catalog/stationery/icon-phone.png" alt="Phone">
     <div class="heading">Do you have<br>a question?</div>
     <p>500-130-120</p>
</div>',
      $language_id => '<div class="stationery-phone hidden-md hidden-sm">
     <img src="image/catalog/stationery/icon-phone.png" alt="Phone">
     <div class="heading">Do you have<br>a question?</div>
     <p>500-130-120</p>
</div>',
    ),
    'layout_id' => '99999',
    'position' => 'top_block',
    'status' => '1',
    'sort_order' => '',
  ),
  3 => 
  array (
    'type' => '2',
    'block_heading' => 
    array (
      1 => '',
      $language_id => '',
    ),
    'block_content' => 
    array (
      1 => '<p><br></p>',
      $language_id => '<p><br></p>',
    ),
    'html' => 
    array (
      1 => '<div class="row banners" style="margin-bottom: 10px">
     <div class="col-sm-4"><a href="#"><img src="image/catalog/stationery/banner-02.png" alt="Banner"></a></div>
     <div class="col-sm-4"><a href="#"><img src="image/catalog/stationery/banner-03.png" alt="Banner"></a></div>
     <div class="col-sm-4"><a href="#"><img src="image/catalog/stationery/banner-04.png" alt="Banner"></a></div>
</div>',
      $language_id => '<div class="row banners" style="margin-bottom: 10px">
     <div class="col-sm-4"><a href="#"><img src="image/catalog/stationery/banner-02.png" alt="Banner"></a></div>
     <div class="col-sm-4"><a href="#"><img src="image/catalog/stationery/banner-03.png" alt="Banner"></a></div>
     <div class="col-sm-4"><a href="#"><img src="image/catalog/stationery/banner-04.png" alt="Banner"></a></div>
</div>',
    ),
    'layout_id' => '1',
    'position' => 'content_bottom',
    'status' => '1',
    'sort_order' => '15',
  ),
  4 => 
  array (
    'type' => '2',
    'block_heading' => 
    array (
      1 => '',
      $language_id => '',
    ),
    'block_content' => 
    array (
      1 => '<p><br></p>',
      $language_id => '<p><br></p>',
    ),
    'html' => 
    array (
      1 => '<div class="stationery-categories">
     <div class="container">
          <div class="row responsive-margin-top-0">
               <div class="col-sm-3">
                    <a href="#"><img src="image/catalog/stationery/banner-05.png" alt="Banner"></a>
               </div>
               
               <div class="col-sm-5">
                    <a href="#"><img src="image/catalog/stationery/banner-06.png" alt="Banner"></a>
               </div>
               
               <div class="col-sm-4">
                    <a href="#"><img src="image/catalog/stationery/banner-07.png" alt="Banner"></a>
               </div>
               
               <div class="col-sm-4">
                    <a href="#"><img src="image/catalog/stationery/banner-08.png" alt="Banner"></a>
               </div>
               
               <div class="col-sm-3">
                    <a href="#"><img src="image/catalog/stationery/banner-09.png" alt="Banner"></a>
               </div>
          </div>
     </div>
</div>',
      $language_id => '<div class="stationery-categories">
     <div class="container">
          <div class="row responsive-margin-top-0">
               <div class="col-sm-3">
                    <a href="#"><img src="image/catalog/stationery/banner-05.png" alt="Banner"></a>
               </div>
               
               <div class="col-sm-5">
                    <a href="#"><img src="image/catalog/stationery/banner-06.png" alt="Banner"></a>
               </div>
               
               <div class="col-sm-4">
                    <a href="#"><img src="image/catalog/stationery/banner-07.png" alt="Banner"></a>
               </div>
               
               <div class="col-sm-4">
                    <a href="#"><img src="image/catalog/stationery/banner-08.png" alt="Banner"></a>
               </div>
               
               <div class="col-sm-3">
                    <a href="#"><img src="image/catalog/stationery/banner-09.png" alt="Banner"></a>
               </div>
          </div>
     </div>
</div>',
    ),
    'layout_id' => '1',
    'position' => 'slideshow',
    'status' => '1',
    'sort_order' => '3',
  ),
  5 => 
  array (
    'type' => '2',
    'block_heading' => 
    array (
      1 => '',
      $language_id => '',
    ),
    'block_content' => 
    array (
      1 => '<p><br></p>',
      $language_id => '<p><br></p>',
    ),
    'html' => 
    array (
      1 => '<div class="row banners">
     <div class="col-sm-6"><a href="#"><img src="image/catalog/stationery/banner-10.png" alt="Banner"></a></div>
     <div class="col-sm-6"><a href="#"><img src="image/catalog/stationery/banner-11.png" alt="Banner"></a></div>
</div>',
      $language_id => '<div class="row banners">
     <div class="col-sm-6"><a href="#"><img src="image/catalog/stationery/banner-10.png" alt="Banner"></a></div>
     <div class="col-sm-6"><a href="#"><img src="image/catalog/stationery/banner-11.png" alt="Banner"></a></div>
</div>',
    ),
    'layout_id' => '1',
    'position' => 'preface_fullwidth',
    'status' => '1',
    'sort_order' => '2',
  ),
); 

$output2 = array();
$output2["custom_module_module"] = $this->config->get('custom_module_module');

if(!is_array($output["custom_module_module"])) $output["custom_module_module"] = array();
if(!is_array($output2["custom_module_module"])) $output2["custom_module_module"] = array();
$output3 = array();
$output3["custom_module_module"] = array_merge($output["custom_module_module"], $output2["custom_module_module"]);

$this->model_setting_setting->editSetting( "custom_module", $output3 );	

?>