<?php echo $header;
/** featued box in home page **/

if(empty($wg24_home_f_box)) $wg24_home_f_box="disable";
if(empty($wg24_fot_powerred_col)) $wg24_fot_powerred_col = "aaa";
if(empty($wg24_fot_line)) $wg24_fot_line = "444f59 ";
if(empty($wg24_fot_powerred_hover_col)) $wg24_fot_powerred_hover_col = "fff";
if(empty($wg24_title_color_menu_lateral)) $wg24_title_color_menu_lateral = "fff";
if(!isset($wg24_qtd_cart_sus)){ $wg24_qtd_cart_sus = '5'; }
if(!isset($wg24_linkDevolucoes)){ $wg24_linkDevolucoes = Type_Status::Tp_Habilitado; }

if(!isset($wg24_tipo_rodape)){ $wg24_tipo_rodape = Type_AutoOrPersonalizado::Tp_Personalizado; }


if(empty($wg24_home_s_b_f_box)) $wg24_home_s_b_f_box='<div class="store-img-box">

<ul>
	<li class="box-1">
		<div class="feature-box">
			<div>
				<span class="fas fa-credit-card" aria-hidden="true" style="margin-right:6px;"></span>
				PARCELE SUA COMPRA
				<span>Parcele em até 12x sem juros.</span>
			</div>
		</div>
	</li>
	<li>
		<div class="feature-box">
			<div>
				<i class="fas fa-truck" aria-hidden="true" style="margin-right:6px;"></i>
				FRETE GRÁTIS
				<span>Confira o regulamento</span>
			</div>
		</div>
	</li>
	<li>
		<div class="feature-box">
			<div>
				<i class="fas fa-shopping-bag" aria-hidden="true" style="margin-right:6px;"></i>
				VARIEDADES
				<span>Confira nossa variedade de produtos</span>
			</div>
		</div>
	</li>
	<li class="last">
	<div class="feature-box">
	<div>
		<i class="fas fa-lock" aria-hidden="true" style="margin-right:6px;"></i>
		COMPRAS SEGURAS <span>Tenha total seguranças em suas compras </span></div>
	</div>
	</li>
</ul>
</div>';
if(empty($wg24_cate_list_grid)) $wg24_cate_list_grid="grid_view";

if(empty($tipo_descricao_expansivel)) $tipo_descricao_expansivel=0;
if(empty($mostra_preco_sem_estoque))  $mostra_preco_sem_estoque=0;

/** tabs content  ****/
if(empty($wg24_l_custom_tab)) $wg24_l_custom_tab="disable";
if(empty($wg24_l_tab_title)) $wg24_l_tab_title="Informações complementares";
if(empty($wg24_l_tabc)) $wg24_l_tabc="<div class='product-tabs-content-inner clearfix'></div>";

/*** menu custom column  **/
if(empty($wg24_l_show_custom_htmlm)) $wg24_l_show_custom_htmlm="disable";
if(empty($wg24_l_custom_bmenu)) $wg24_l_custom_bmenu='
<style>
  .level-bottom-custom {
    position: absolute;
    z-index: 10;
    top:52px;
    left: 0;
    border: 1px solid #DDD;
    border-top: none;
    border-bottom: 5px #000 solid;
    background: #FFF;
    display:none
  }
  .level-top:hover .level-bottom-custom {
    display: table!important;
  }
  .level-bottom-custom-title {
    font-size: 1.8rem;
  }
</style>
<div class="level-bottom-custom">
  <div class="row padding-large">
    <div class="col-xs-4 padding-medium">
      <div class="content-box">
        <h4 class="level-bottom-custom-title">Tempor Incididunt</h4>
        <p class="level-bottom-custom-description vertical-margin-large">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam.</p>
        <button type="button" class="btn-default btn-medium">
          <span>Saiba mais</span>
          <i class="fas fa-long-arrow-alt-right" aria-hidden="true"></i>
        </button>
      </div>
    </div>
    <div class="col-xs-4 padding-medium">
      <div class="content-box">
        <h4 class="level-bottom-custom-title">Sed do Eiusmod</h4>
        <p class="level-bottom-custom-description vertical-margin-large">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam.</p>
        <button type="button" class="btn-default btn-medium">
          <span>Saiba mais</span>
          <i class="fas fa-long-arrow-alt-right" aria-hidden="true"></i>
        </button>
      </div>
    </div>
    <div class="col-xs-4 padding-medium">
      <div class="content-box">
        <h4 class="level-bottom-custom-title">Labore et Dolore</h4>
        <p class="level-bottom-custom-description vertical-margin-large">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam.</p>
        <button type="button" class="btn-default btn-medium">
          <span>Saiba mais</span>
          <i class="fas fa-long-arrow-alt-right" aria-hidden="true"></i>
        </button>
      </div>
    </div>
  </div>
</div>';
/*****    color options  ***/
if(empty($wg24_l_load_color)) $wg24_l_load_color="customeskin";
if(empty($wg24_l_bodyb)) $wg24_l_bodyb="#FFFFFF";
if(empty($wg24_l_bodyb)) $wg24_l_bodyb="#FFFFFF";
if(empty($wg24_l_body_tbc)) $wg24_l_body_tbc="#00C0BE";
if(empty($wg24_l_body_fc)) $wg24_l_body_fc="#666666";
if(empty($wg24_l_linkc)) $wg24_l_linkc="#F5537D";
if(empty($wg24_l_hcolor)) $wg24_l_hcolor="#333333";
if(empty($wg24_l_header_color)) $wg24_l_header_color="#000000";
if(empty($wg24_l_extra_bcolor)) $wg24_l_extra_bcolor="#E5E5E5";
if(empty($wg24_header_bgcolor)) $wg24_header_bgcolor="#ECF0F1";
if(empty($wg24_header_menulcolor)) $wg24_header_menulcolor="#666666";
if(empty($wg24_header_menulhcolor)) $wg24_header_menulhcolor="#666666";
if(empty($wg24_heade_m_lin_bg_c)) $wg24_heade_m_lin_bg_c="#2FB9B7";
if(empty($wg24_top_cart_bgcol)) $wg24_top_cart_bgcol="#F5537D";
if(empty($wg24_topcart_te_colo)) $wg24_topcart_te_colo="#FFFFFF";

if(empty($wg24_mm_bgcol)) $wg24_mm_bgcol="#00C0BE";
if(empty($wg24_mm_bgcol_center)) $wg24_mm_bgcol_center="";
if(empty($wg24_mainm_brcol)) $wg24_mainm_brcol="#09B0AE";
if(empty($wg24_menum_lcolor)) $wg24_menum_lcolor="#FFFFFF";
if(empty($wg24_mainm_lhcolor)) $wg24_mainm_lhcolor="#FFFFFF";
if(empty($wg24_menu_hbgcolor)) $wg24_menu_hbgcolor="#F5537D";

if(empty($wg24_home_sbtn_bgcol)) $wg24_home_sbtn_bgcol="#F5537D";
if(empty($wg24_home_sbtn_hbr_bgclr)) $wg24_home_sbtn_hbr_bgclr="#F5537D";
if(empty($wg24_home_btn_hbr_txclr)) $wg24_home_btn_hbr_txclr="#FFFFFF";
if(empty($wg24_home_fboxbg_col)) $wg24_home_fboxbg_col="";
if(empty($wg24_hom_fe_boxdes_col)) $wg24_hom_fe_boxdes_col="#777777";
if(empty($wg24_product_bx_bgclr)) $wg24_product_bx_bgclr="#FFFFFF";
if(empty($wg24_product_bx_bdrclr)) $wg24_product_bx_bdrclr="";

if(empty($wg24_product_box_sicon_bgcolor)) $wg24_product_box_sicon_bgcolor="#DD4B39";
if(empty($wg24_product_box_sale_nicontcolor)) $wg24_product_box_sale_nicontcolor="#FFFFFF";
if(empty($wg24_product_box_n_col)) $wg24_product_box_n_col="#333333";

if(empty($wg24_product_box_nhov_col)) $wg24_product_box_nhov_col="#F5537D";
if(empty($wg24_product_box_price_col)) $wg24_product_box_price_col="#F5537D";
if(empty($wg24_product_box_oldprce_col)) $wg24_product_box_oldprce_col="#666666";
if(empty($wg24_btn_1bg_col)) $wg24_btn_1bg_col="#F5537D";
if(empty($wg24_btn_text_col)) $wg24_btn_text_col="#FFFFFF";

if(empty($wg24_fotheadin_col)) $wg24_fotheadin_col="#FFFFFF";
if(empty($wg24_fotaout_des_col)) $wg24_fotaout_des_col="#AAAAAA";
if(empty($wg24_fotlin_col)) $wg24_fotlin_col="#FFFFFF";
if(empty($wg24_fotlin_h_col)) $wg24_fotlin_h_col="#00C0BE";


if(empty($wg24_fot_addre_iconbg_col)) $wg24_fot_addre_iconbg_col="#F5537D";
if(empty($wg24_fot_bbg_col)) $wg24_fot_bbg_col="#222B34";
if(empty($wg24_fot_powerred_col)) $wg24_fot_powerred_col="#666666";


/***   slider markup   **/
if(empty($wg24_l_add_slider)) $wg24_l_add_slider=' <div class="item"><a href="#"><img src="'.$this->config->get('config_url').'catalog/view/theme/vista/image/slider/s-banner1.jpg" alt="Banner"></a>
<div class="slide-container slide-skin">
<h2>Summer Sale</h2>
<h3 style="">70% OFF on all Items</h3>
<h5>On now through Monday</h5>
<div style="overflow:hidden; text-align:left; padding-left:5px; margin-top:15px"><a href="#" class="btn-shop">Shop Now</a></div>

</div>
</div>
<div class="item"><a href="#"><img src="'.$this->config->get('config_url').'catalog/view/theme/vista/image/slider/s-banner2.jpg" alt="Banner"></a>
<div class="slide-container slide-skin-2">
<h2 style="">Spring Sale</h2>
<h3 style="">Happening Through August</h3>
<h4 style="">Free Shipping on your entire order</h4>
</div>
</div>
<div class="item"><a href="#"><img src="'.$this->config->get('config_url').'catalog/view/theme/vista/image/slider/s-banner3.jpg" alt="Banner"></a>
<div class="slide-container slide-skin-3">
<h2 style="">Crazy Sale!</h2>
<h3 style=""> 50% Off on selected</h3>
<h5 style="">womens premium collection</h4>
</div>
</div>';
/**  backgorund parttenr  **/
if(empty($wg24_backgroun_image_show)) $wg24_backgroun_image_show='disable';
if(empty($we24_default_parttern)) $we24_default_parttern='2';
if(empty($wg24_bg_repeat)) $wg24_bg_repeat= Type_BackgroundRepeat::Tp_Repeat;
if(empty($wg24_futura_of_age_background_repeat)) $wg24_futura_of_age_background_repeat= Type_BackgroundRepeat::Tp_NoRepeat;
if(empty($wg24_bg_attachment)) $wg24_bg_attachment="scroll";
if(empty($wg24_bg_positin)) $wg24_bg_positin="left top";
if(empty($wg24_body_font_source)) $wg24_body_font_source="google";
if(empty($wg24_body_fontto_google)) $wg24_body_fontto_google="Lato";
if(empty($wg24_body_fontto_system)) $wg24_body_fontto_system='Lato,sans-serif';

if(empty($wg24_header_font_source)) $wg24_header_font_source="google";
if(empty($wg24_header_fontto_google)) $wg24_header_fontto_google="Lato";
if(empty($wg24_header_fontto_system)) $wg24_header_fontto_system='Lato,sans-serif';
if(empty($wg24_heading_transfrom)) $wg24_heading_transfrom='uppercase';
if(empty($wg24_produt_h_font_size)) $wg24_produt_h_font_size='22';
if(empty($wg24_page_h_font_size)) $wg24_page_h_font_size='22';
if(empty($wg24_left_rig_h_font_size)) $wg24_left_rig_h_font_size='16';

$wg24_tipo_zoom_prod = ftr_geral::isType($wg24_tipo_zoom_prod, Type_TipoZoom::getEnumList(), Type_TipoZoom::Tp_PhotoSwipe);

/**   Parametros gerais    ***/
if(empty($wg24_sub_parametros_gerais)) $wg24_sub_parametros_gerais = Type_OrdemProdutos::Tp_Default ;


/**   footer all options    ***/
if(empty($wg24_logo_image)) $wg24_logo_image='<h4>Sobre nós</h4>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent massa lectus, vehicula a lacinia ut, volutpat ac nulla. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. </p>
';

if(empty($wg24_contact_info_page_of)) $wg24_contact_info_page_of=
'
<!-- As classes informadas abaixo são necessárias para manter o comportamento correto do site no responsivo. -->
<div class="footer-accordion-control js-accordion-control">
  <div style="display: flex;justify-content: space-between;align-items: center;">
    <span class="footer-title" style="font-size: 1rem;line-height: 1.25rem;font-weight: bold;padding-top: 0.5rem !important;padding-bottom: 0.5rem !important;margin-top: 0.25rem !important;margin-bottom: 0.25rem !important;">
      Contate-nos
    </span>
    <i class="fas fa-angle-down hidden-sm-up"></i>
  </div>
</div>
<div class="js-accordion-content" style="display: block;padding-top: 0.25rem !important;">
  <div style="align-items: center;display: flex;padding-top: 0.5rem !important;padding-bottom: 0.5rem !important;">
    <div class="contact-icon">
      <i class="fas fa-phone"></i>
    </div>
    <div style="width: calc(100% - 2.75rem);padding-left: 1rem !important;">
      <span style="font-size: 1rem;line-height: 1.25rem;display: block !important;">(99) 99999-9999</span>
    </div>
  </div>
  <div style="align-items: center;display: flex;padding-top: 0.5rem !important;padding-bottom: 0.5rem !important;">
    <div class="contact-icon">
      <i class="fab fa-whatsapp"></i>
    </div>
    <div style="width: calc(100% - 2.75rem);padding-left: 1rem !important;">
      <span style="font-size: 1rem;line-height: 1.25rem;display: block !important;">(99) 99999-9999</span>
    </div>
  </div>
  <div style="align-items: center;display: flex;padding-top: 0.5rem !important;padding-bottom: 0.5rem !important;">
    <div class="contact-icon">
      <i class="far fa-envelope"></i>
    </div>
    <div style="width: calc(100% - 2.75rem);padding-left: 1rem !important;">
      <span style="font-size: 1rem;line-height: 1.25rem;display: block !important;">contato@futurasistemas.com.br</span>
    </div>
  </div>
  <div style="align-items: center;display: flex;padding-top: 0.5rem !important;padding-bottom: 0.5rem !important;">
    <div class="contact-icon">
      <i class="fas fa-map-marker-alt"></i>
    </div>
    <div style="width: calc(100% - 2.75rem);padding-left: 1rem !important;">
      <span style="font-size: 1rem;line-height: 1.25rem;display: block !important;" style="font-size: 1rem;line-height: 1.25rem;display: block !important;">Av. Conceição, R. Profa. Yraildes Martins Machado, 335</span>
    </div>
  </div>
</div>
';
/***** all socail link  in footer  ***/


/*** twitter api  ***/

/***** payment icon  ******/

?>
<style type="text/css">
a.button, .list a.button {
	background-color: #f58327;
}
a.btn_test {
	background-color: #2a6ea0 !important;
}
a.btn_test:hover {
	background-color: #1ba1d1 !important;
}
a.button:hover, .list a.button:hover {
	background-color: #bf5f11;
}
.content-sem-menu {
	padding-top: 10px;
}
.vtabs-content {
	background-color: #FFFFFF;
	float: left;
	margin-left: 20px;
	min-height: 348px;
	padding: 10px;
	width: 779px;
	margin-top: 10px !important;
}
.htabs-content {
	background-color: #FFFFFF;
	margin-left: 8px;
	margin-top: -11px;
	min-height: 348px;
	padding: 10px;
}
td div b,
.content-title {
	color: #f58327;
	font-size: 22px;
	font-weight: bold;
	text-transform: uppercase;
  line-height: 2.5rem;
}
td {
	color: #414141 !important;
	font-size: 16px !important;
	font-weight: normal;
}
td p {
	clear: both;
	color: #414141;
	font-size: 11px;
	width: auto;
}
.box {
	background-color: #F8F8F8;
	border: 1px solid #E4DDDD;
	border-radius: 6px;
	margin: 0 auto;
	width: 1038px;
}
.box > .heading, .box > .content {
	border: none !important;
}
.htabs a.selected, .vtabs a.selected, .htabs a:hover, .vtabs a:hover {
	background-color: #1ba1d1 !important;
	color: #FFFFFF;
}
.htabs {
	height: 60px !important;
	border-bottom: none !important;
}
.vtabs {
	border-right: none !important;
	margin-left: 9px;
}
.htabs a, .vtabs a {
	background: none repeat scroll 0 0 #2a6ea0 !important;
	color: #FFFFFF !important;
	float: left;
	margin-right: 1px;
	padding: 8px 21px !important;
	text-decoration: none;
	border: none !important;
	font-weight: normal;
	font-size: 14px;
	text-align: left;
	margin-bottom: 1px;
}
table.form > tbody > tr > td {
	font-size: 15px;
}
input[type="text"],
input[type="password"] {
  width: 100%;
	max-width: 380px;
	border: 1px solid #CCCCCC;
}
.color {
	border: 1px solid #CCCCCC;
}
.separation {
	background-color: #F7F7F7;
}
table.form {
	margin-bottom: 0;
}
select {
	background-color: #F8F8F8;
	border: 1px solid #E4DDDD;
	font-family: Arial, Verdana, sans-serif, "Lucida Grande", "Lucida Sans Unicode";
	font-size: 12px;
	margin-bottom: 9px !important;
	padding: 7px;
  width: 100%;
  max-width: 380px;
	border-radius: 3px;
}
textarea {
	background-color: #F8F8F8;
	border: 1px solid #E4DDDD;
	font-family: Arial, Verdana, sans-serif, "Lucida Grande", "Lucida Sans Unicode";
	font-size: 12px;
	margin-bottom: 9px !important;
	padding: 7px;
  width: 100%;
	max-width: 380px;
}
input:focus, textarea:focus, select:focus {
	background-color: #FFFFFF;
	border-color: #E4DDDD;
	outline: 0 none;
}
input.jscolor {
    width: 74px;
}
</style>

<div id="content">
  <div class="breadcrumb">
    <?php foreach ($breadcrumbs as $breadcrumb) { ?>
    <?php echo $breadcrumb['separator']; ?><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a>
    <?php } ?>
  </div>


  <!-- sheldon - descomentar
    <?php


    $wg24localfonts= array(
    'Lato,sans-serif' => '"Lato",sans-serif',
    'Open+Sans' => 'Open Sans',
    'Arial,Helvetica' => 'Arial, Helvetica',
    'Geneva' => 'Geneva',
    'Helvetica,sans-serif' => 'Helvetica, sans-serif',
    'Times+New+Roman' => 'Times New Roman',
    'Times,serif' => 'Times, serif',
    'PT+Sans' => 'PT Sans',
    'monospace' => 'monospace',
    'Georgia,serif' => 'Georgia,Times, serif',
    'Verdana' => 'Verdana',
    'Oswald' => 'Oswald',
    'Telex'=>'Telex' ,
    'Iceberg' => 'Iceberg',
    'Yanone+Kaffeesatz' => 'Yanone Kaffeesatz ExtraLight',
    'tahoma'=>'Tahoma, Geneva',
    'Amethysta' => 'Amethysta',
    'Courier+New,Courier' => 'Courier New, Courier',
    'Gudea'=> 'Gudea',
    'Duru+Sans' => 'Duru Sans',
    'Germania+One' => 'Germania One',
    'Macondo+Swash+Caps'=>'Macondo Swash Caps',
    );


    ?>
     -->


  <div class="box" style="color:#121212">
    <div class="heading">
      <h1><img src="view/image/module.png" alt="" /> <b><?php echo $heading_title; ?></b></h1>
      <div class="buttons">
				<a  class="button btn_test" tipoRedirecionamento="exit"><?php echo $button_save_setting; ?></a>
				<a  class="button btn_test" tipoRedirecionamento="refresh"><?php echo $button_save; ?></a>
				<a onclick="location = '<?php echo $cancel; ?>';" class="button"><?php echo $button_cancel; ?></a>
			</div>
    </div>
    <div class="content">
      <form class="content-sem-menu" action="<?php echo $action; ?>" method="post" enctype="multipart/form-data" id="form">
        <div id="tab-store-features">
          <div id="wg24tab_menu" class="htabs">
						<a href="#wg24_theme_setting"><?php echo $wg24_tab_general; ?></a>
						<a href="#wg24_theme_background"><?php echo $wg24_tab_background; ?></a>
						<a href="#wg24_theme_font"><?php echo $wg24_tab_font; ?></a>
						<a href="#wg24_theme_menu"><?php echo $wg24_tab_menu; ?></a>
						<a href="#wg24_theme_footer"><?php echo $wg24_tab_footer; ?></a>
						<a href="#wg24_theme_custom_code"><?php echo $wg24_tab_custom; ?></a>
            <a href="#wg24_theme_seo"><?php echo $wg24_tab_seo; ?></a>
            <?php if ($exibe_mobile_config): ?>
              <a href="#wg24_app"><?php echo $wg24_text_app; ?></a>
            <?php endif; ?>
				 </div>
          <!--wg24_theme_setting start-->
          <div id="wg24_theme_setting" class="htabs-select" >
            <div id="wg24tab_submenu" class="vtabs">
							<a href="#wg24_sub_layout">Layout</a>
							<a href="#wg24_sub_category_page">Página de Categoria</a>
							<a href="#wg24_sub_product_page">Página de Produto</a>
							<a href="#wg24_sub_parametros_gerais">Parâmetros Gerais</a>
							<a href="#wg24_sub_produtos_18">Produtos +18</a>
						</div>
            <div id="wg24_sub_layout" class="vtabs-content">
              <table class="form">
                <tr>
                  <td colspan="2"><div><b><?php echo $wg24_layout ?></b></div></td>
                </tr>
                <tr>
                  <td><?php echo $wg24_h_b_f_cb ?></td>
                  <td><select name="wg24_home_f_box">
                      <option value="enable" <?php if($wg24_home_f_box == 'enable') echo ' selected="selected"';?><?php if($wg24_home_f_box == '') echo ' selected="selected"';?>>Habilitado</option>
                      <option value="disable"  <?php if($wg24_home_f_box == 'disable') echo ' selected="selected"';?><?php if($wg24_home_f_box == '') echo ' selected="selected"';?>>Desabilitado</option>
                    </select>
                    <p>Você pode habilitar ou desabilitar caixas de avisos.</p></td>
                </tr>
                <?php foreach ($languages as $language) { ?>
                <tr class="tab-language-<?php echo $language['language_id']; ?>">
                  <td><?php echo $wg24_h_b_f_cbc ?></td>
                  <td>
										<textarea name="wg24_home_s_b_f_box[<?php echo $language['language_id']; ?>]" id="wg24_home_s_b_f_box-<?php echo $language['language_id']; ?>"><?php
												if(is_array($wg24_home_s_b_f_box)){
													echo $wg24_home_s_b_f_box[$language['language_id']];
												} else {
													echo $wg24_home_s_b_f_box;
												}
											?></textarea>
                    <p>Você pode digitar o conteúdo das caixas de avisos.</p>
									</td>
                </tr>
                <?php } ?>

	            </table>
            </div>
            <div id="wg24_sub_category_page" class="vtabs-content">
              <table class="form">
                <tr>
                  <td colspan="2"><div><b>Página de Categoria</b></div></td>
                </tr>

                <tr>
                  <td><?php echo $wg24_c_pvm ?></td>
                  <td><select name="wg24_cate_list_grid">
                      <?php foreach (Type_gridOrListView::getEnumList() as $key => $value) { ?>
                        <option value="<?php echo $key ?>" <?php echo Ftr_Geral::isSelected($key, isset($wg24_cate_list_grid) ? $wg24_cate_list_grid : '', Type_gridOrListView::Tp_Grid) ?>><?php echo $value ?></option>
                      <?php } ?>
                    </select>
                    <p>Você pode habilitar qual o modo de exibição dos produtos será o padrão.</p></td>
                </tr>
                <tr>
                  <td><?php echo $wg24_text_category_image_status ?></td>
                  <td>
                    <select name="wg24_category_image_status">
                      <?php foreach (Type_Status::getEnumList() as $key => $value) { ?>
                        <option value="<?php echo $key ?>" <?php echo Ftr_Geral::isSelected($key, isset($wg24_category_image_status) ? $wg24_category_image_status : '', Type_Status::Tp_Desabilitado) ?>><?php echo $value ?></option>
                      <?php } ?>
                    </select>
                </tr>

              </table>
            </div>
            <div id="wg24_sub_product_page" class="vtabs-content">
              <table class="form">
                <tr>
                  <td>Opção de Zoom na imagem do Produto:</td>
                  <td><select name="wg24_tipo_zoom_prod">
										<?php
												foreach(Type_TipoZoom::getEnumList() as $key => $value){
										?>
											<option value="<?php echo $key; ?>" <?php echo Ftr_Geral::isSelected($key, $wg24_tipo_zoom_prod, Type_TipoZoom::Tp_PhotoSwipe); ?> ><?php echo $value; ?></option>
										<?php
												}
										?>
                    </select>
                    <p>Efeito do zoom ao passar o mouse sobre a imagem do produto.</p></td>
                </tr>

                <tr>
                  <td><?php echo $text_descricao_expansivel ?></td>
                  <td><select name="tipo_descricao_expansivel">
                      <?php foreach(Type_Status::getEnumList() as $key  => $value){ ?>
                      <option value="<?php echo $key; ?>" <?php echo Ftr_Geral::isSelected($key, $tipo_descricao_expansivel, Type_Status::Tp_Habilitado); ?>><?php echo $value; ?></option>
                      <?php } ?>
                    </select>
                    <p>Define se na página do produto irá sempre mostrar a descrição completa, ou se precisa clicar para expandir.</p></td>
                </tr>

                <tr>
                  <td><?php echo $text_mostrar_preco_sem_estoque ?></td>
                  <td><select name="mostra_preco_sem_estoque">
                      <?php foreach(Type_DsimDnao::getEnumList() as $key  => $value){ ?>
                      <option value="<?php echo $key; ?>" <?php echo Ftr_Geral::isSelected($key, $mostra_preco_sem_estoque, Type_DsimDnao::Tp_Sim); ?>><?php echo $value; ?></option>
                      <?php } ?>
                    </select>
                    <p>Define se na página do produto irá mostrar o preço do produto mesmo se não tiver estoque.</p></td>
                </tr>

                <tr>
                  <td><?php echo $wg24_custom_tab ?></td>
                  <td><select name="wg24_l_custom_tab">
                      <option value="enable" <?php if($wg24_l_custom_tab == 'enable') echo ' selected="selected"';?><?php if($wg24_l_custom_tab == '') echo ' selected="selected"';?>>Habilitado</option>
                      <option value="disable"  <?php if($wg24_l_custom_tab == 'disable') echo ' selected="selected"';?><?php if($wg24_l_custom_tab == '') echo ' selected="selected"';?>>Desabilitado</option>
                    </select>
                    <p>Você pode habilitar ou desabilitar a aba personalizada na página de produto.</p></td>
                </tr>
                <tr>
                  <td><?php echo $wg24_tabt ?></td>
                  <td><input type="text" value="<?php if(is_array($wg24_l_tab_title)){  echo $wg24_l_tab_title[$language['language_id']]; }else { echo $wg24_l_tab_title; } ?>" name="wg24_l_tab_title" id="wg24_l_tab_title">
                    <p>Título da aba personalizada na página de produto.</p>
									</td>
                </tr>
                <?php foreach ($languages as $language) { ?>
                <tr class="tab-language-<?php echo $language['language_id']; ?>">
                  <td><?php echo $wg24_tabc ?></td>
                  <td>
										<textarea name="wg24_l_tabc[<?php echo $language['language_id']; ?>]" id="wg24_l_tabc-<?php echo $language['language_id']; ?>"><?php   if(is_array($wg24_l_tabc)){  echo $wg24_l_tabc[$language['language_id']]; }else { echo $wg24_l_tabc; } ?></textarea>
                    <p>Texto ou html personalizada para conteúdo da aba personalizada.</p></td>
                </tr>
                <?php  } ?>
              </table>
            </div>

            <div id="wg24_sub_parametros_gerais" class="vtabs-content">
              <table class="form">
                <tr>
                  <td colspan="2"><div><b>Parâmetros Gerais</b></div></td>
                </tr>
                <tr>
                  <td>Lista de desejos:</td>
                  <td><select name="wg24_futura_status_lista_desejos">
										<?php foreach(Type_Status::getEnumList() as $key  => $value){ ?>
											<option value="<?php echo $key; ?>" <?php echo Ftr_Geral::isSelected($key, $wg24_futura_status_lista_desejos, Type_Status::Tp_Habilitado); ?>><?php echo $value; ?></option>
										<?php } ?>
                    </select></td>
                </tr>
                <tr>
                  <td>Lista de comparação:</td>
                  <td><select name="wg24_futura_status_lista_comparacao">
										<?php foreach(Type_Status::getEnumList() as $key  => $value){ ?>
											<option value="<?php echo $key; ?>" <?php echo Ftr_Geral::isSelected($key, $wg24_futura_status_lista_comparacao, Type_Status::Tp_Habilitado); ?>><?php echo $value; ?></option>
										<?php } ?>
                    </select></td>
                </tr>
              </table>
            </div>
						<div id="wg24_sub_produtos_18" class="vtabs-content">
							<table class="form">

                <tr>
                  <td colspan="2"><div><b>Produtos +18</b></div></td>
                </tr>

								<tr>
									<td><?php echo $entry_of_age; ?></td>
									<td><select name="wg24_futura_of_age_status">
										<?php foreach(Type_Status::getEnumList() as $key  => $value){ ?>
											<option value="<?php echo $key; ?>" <?php echo Ftr_Geral::isSelected($key, $wg24_futura_of_age_status, Type_Status::Tp_Desabilitado); ?>><?php echo $value; ?></option>
										<?php } ?>
										</select>
									</td>
								</tr>

								<script>

									$(document).ready(function(){

										if ($('.wg24_futura_of_age_type_message').val() == '<?php echo Type_MessageOfAge::Tp_TelaInteira; ?>') {
											$('.config_of_age').show();
										} else {
											$('.config_of_age').hide();
										}

										$( ".wg24_futura_of_age_type_message" ).change(function() {
											if ($('.wg24_futura_of_age_type_message').val() == '<?php echo Type_MessageOfAge::Tp_TelaInteira; ?>') {
													$('.config_of_age').show();
											}else{
													$('.config_of_age').hide();
											}
										});

									});

								</script>

								<tr>
									<td><?php echo $entry_of_age_message; ?></td>
									<td><select name="wg24_futura_of_age_type_message" class="wg24_futura_of_age_type_message" id="wg24_futura_of_age_type_message">
										<?php foreach(Type_MessageOfAge::getEnumList() as $key  => $value){ ?>
											<option value="<?php echo $key; ?>" <?php echo Ftr_Geral::isSelected($key, $wg24_futura_of_age_type_message, Type_MessageOfAge::Tp_Selecione); ?>><?php echo $value; ?></option>
										<?php } ?>
										</select>
									</td>
								</tr>

								<tr>
									<td><?php echo $entry_of_age_link; ?></td>
									<td><input type="text" name="wg24_futura_of_age_link" value="<?php echo $wg24_futura_of_age_link; ?>" id="wg24_futura_of_age_link">
								</tr>

								<tr class="config_of_age">
									<td><?php echo $entry_of_age_logo; ?> </td>
									<td>
										<div class="image">
											<img src="<?php echo $wg24_futura_of_age_logo_thumb; ?>" id="wg24_futura_of_age_logo_thumb" /> <br />
											<input type="hidden" name="wg24_futura_of_age_logo" value="<?php echo $wg24_futura_of_age_logo; ?>" id="wg24_futura_of_age_logo"/>
                      <a class="js-filemanager"><?php echo $upload_text; ?></a> &nbsp;&nbsp;|&nbsp;&nbsp;<a class="js-remove-img"><?php echo $resent_text; ?></a></td>
									 </div>
								</tr>

								<tr class="config_of_age">
									<td><?php echo $entry_of_age_background; ?> </td>
									<td>
										<div class="image">
											<img src="<?php echo $wg24_futura_of_age_background_thumb; ?>" id="wg24_futura_of_age_background_thumb" data-size="true" /> <br />
											<input type="hidden" name="wg24_futura_of_age_background" value="<?php echo $wg24_futura_of_age_background; ?>" id="wg24_futura_of_age_background"/>
											<a class="js-filemanager"><?php echo $upload_text; ?></a> &nbsp;&nbsp;|&nbsp;&nbsp;<a class="js-remove-img" ><?php echo $resent_text; ?></a></td>
										</div>
								</tr>

								<tr class="config_of_age">
									<td><?php echo $entry_of_age_repeat; ?></td>
									<td><select name="wg24_futura_of_age_background_repeat">
										<?php	foreach($backgroundrepeat as $key => $value){	?>
											<option value="<?php echo $key; ?>" <?php echo Ftr_Geral::isSelected($key, $wg24_futura_of_age_background_repeat); ?> ><?php echo $value; ?></option>
										<?php	}	?>
										</select>
									</td>
								</tr>

                <tr class="config_of_age">
                  <td><?php echo $entry_of_age_text_color; ?></td>
                  <td>
                    <input
                      type="text"
                      name="wg24_futura_of_age_text_color"
                      value="<?php echo $wg24_futura_of_age_text_color; ?>"
                      class="jscolor {required:false,hash:true}"
                      size="7"
                    >
                  </td>
                </tr>

							</table>
						</div>

          </div>
          <!--wg24_theme_setting end-->

          <!--wg24_theme_background start-->
          <div id="wg24_theme_background" class="htabs-content htabs-select">
            <table class="form">
              <tr>
                <td colspan="2"><div><b><?php echo $wg24_tab_background; ?></b></div></td>
              </tr>
              <tr>
                <td>Imagem de Fundo: </td>
                <td><select name="wg24_backgroun_image_show">
                    <option value="enable" <?php if($wg24_backgroun_image_show == 'enable') echo ' selected="selected"';?><?php if($wg24_backgroun_image_show == '') echo ' selected="selected"';?>>Habilitado</option>
                    <option value="disable"  <?php if($wg24_backgroun_image_show == 'disable') echo ' selected="selected"';?><?php if($wg24_backgroun_image_show == '') echo ' selected="selected"';?>>Desabilitado</option>
                  </select>
                  <p>Você pode habilitar ou desabilitar que apareça imagem no fundo do site.</p></td>
              </tr>
              <tr>
                <td>Escolha sua imagem de fundo: </td>
                <td>
                  <div class="row">
                    <div class="col-xs-12 col-sm-7">
                      <div class="flex flex-row middle-xs js-file-container">
                        <div class="flex-0 background-white border-gray right-margin-medium hidden-overflow cursor-pointer" style="width: 5rem; height: 5rem;">
                          <img id="wg24_body_sub_class_thumb" src="<?php echo $wg24_body_sub_class_thumb; ?>" class="js-open-file-manager" width="80" height="80">
                          <input type="hidden" id="wg24_body_cus_pattan" name="wg24_body_cus_pattan" class="field-entry" value="<?php echo $wg24_body_cus_pattan; ?>">
                        </div>
                        <div class="flex-1 text-ellipsis">
                          <div class="flex flex-row">
                            <button type="button" class="btn-default top-margin-small right-margin-small btn-primary btn-small js-open-file-manager">
                              <span>Trocar</span>
                            </button>
                            <button type="button" class="btn-default top-margin-small btn-outline btn-small js-btn-clear-image">
                              <span>Remover</span>
                            </button>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </td>
              </tr>
              <tr>
                <td></td>
                <td><?php
                                    for($i=1; $i<=12; $i++) { ?>
                  <img src="<?php echo $this->config->get('config_url'); ?>../catalog/view/theme/vista/image/theme_patterns/<?php echo $i;  ?>.png" width="40px" height="40px"><span class=""><?php echo $i;  ?></span>
                  <?php  } ?></td>
              </tr>
              <tr>
                <td>Escolha uma textura padrão: </td>
                <td><select name="we24_default_parttern" id="we24_default_parttern">
                    <option value="">Nenhuma</option>
                    <?php

                                        for($j=0; $j<=12; $j++) { ?>
                    <option value="<?php echo $j; ?>" <?php echo ($j==$we24_default_parttern)? "selected='selected'":"" ?>  ><?php echo $j; ?></option>
                    <?php }
                                        ?>
                  </select>

                  <!-- <p>Voc catalog/view/theme/vista/image/theme_patterns/</p> --></td>
              </tr>
              <tr>
                <td>Comportamento: </td>
                <td><select name="wg24_bg_attachment">
                    <option value="scroll"<?php if($wg24_bg_attachment == 'scroll') echo ' selected="selected"';?>>Rolar</option>
                    <option value="fixed"<?php if($wg24_bg_attachment == 'fixed') echo ' selected="selected"';?>>Fixo</option>
                  </select></td>
              </tr>
              <tr>
                <td>Repetir: </td>
                <td><select name="wg24_bg_repeat">
									<?php	foreach($backgroundrepeat as $key => $value){	?>
										<option value="<?php echo $key; ?>" <?php echo Ftr_Geral::isSelected($key, $wg24_bg_repeat); ?> ><?php echo $value; ?></option>
									<?php	}	?>
                  </select></td>
              </tr>
              <tr>
                <td>Posição: </td>
                <td><select  name="wg24_bg_positin" >
                    <option  value="left top" <?php if($wg24_bg_positin == 'left top') echo ' selected="selected"';?> >Em cima a esquerda top</option>
                    <option  value="left center" <?php if($wg24_bg_positin == 'left center') echo ' selected="selected"';?> >No centro a esquerda</option>
                    <option  value="left bottom" <?php if($wg24_bg_positin == 'left bottom') echo ' selected="selected"';?> >Embaixo a esquerda</option>
                    <option  value="right top" <?php if($wg24_bg_positin == 'right top') echo ' selected="selected"';?> >Em cima a direita</option>
                    <option  value="right center" <?php if($wg24_bg_positin == 'right center') echo ' selected="selected"';?> >No centro a direita</option>
                    <option  value="right bottom" <?php if($wg24_bg_positin == 'right bottom') echo ' selected="selected"';?> >Embaixo a direita</option>
                    <option  value="center top" <?php if($wg24_bg_positin == 'center top') echo ' selected="selected"';?> >Em cima no centro</option>
                    <option  value="center center" <?php if($wg24_bg_positin == 'center center') echo ' selected="selected"';?> >No centro</option>
                    <option  value="center bottom" <?php if($wg24_bg_positin == 'center bottom') echo ' selected="selected"';?> >Embaixo e no centro</option>
                  </select></td>
              </tr>
            </table>
          </div>
          <!--wg24_theme_background end-->

          <!--wg24_theme_slider start-->
          <div id="wg24_theme_font" class="htabs-select">
            <div id="wg24tab_submenu3" class="vtabs"> <a href="#wg24_sub_body_font">Fonte do site</a> <a href="#wg24_sub_category_header_font">Fonte dos cabeçalhos</a> </div>
            <div id="wg24_sub_body_font" class="vtabs-content vtabs-select">
              <table class="form">
                <tr>
                  <td colspan="2"><div><b>Fonte do Site</b></div></td>
                </tr>
                <tr>
                  <td>Origem da fonte: </td>
                  <td><select id="fontesbody" name="wg24_body_font_source">
                      <option value="google" <?php if($wg24_body_font_source == 'google') echo ' selected="selected"';?><?php if($wg24_body_font_source == '') echo ' selected="selected"';?>>Google</option>
                      <option value="system"  <?php if($wg24_body_font_source == 'system') echo ' selected="selected"';?><?php if($wg24_body_font_source == '') echo ' selected="selected"';?>>Sistema</option>
                    </select>
                    <p>Você pode selecionar de onde irá pegar as fontes.(Sistema/Google)</p></td>
                </tr>
                <script type="text/javascript">
									<?php if($wg24_body_font_source == 'google'){ ?>
										$( document ).ready(function() {
										    $('#fontesbody').trigger('change');
										});
									<?php } ?>
                  $('#fontesbody').on('change', function(){
                    if($(this).val()=='google'){
                      $('.disable').css('display', 'table-row');

                      getFontGoogle('<?php echo $this->session->data['token']; ?>', '<?php echo $wg24_body_fontto_google; ?>', '#wg24_body_fontto_google');

                    }else{
                      $('.disable').css('display', 'none');
                    }
                  });

                </script>

                <tr>
                  <td>Fontes padrões do sistema para o site: </td>
                  <td><select id="wg24_body_fontto_system" name="wg24_body_fontto_system">
                      <?php
                                            foreach($wg24localfonts as $key=>$sysfonts){

                                            ?>
                      <option value="<?php echo $key; ?>" <?php echo ($key==$wg24_body_fontto_system )? "selected='selected'":""; ?>><?php echo $sysfonts; ?> </option>
                      <?php
                                            }
                                            ?>
                    </select>

                    <!-- <span id="wg24_demo_body_to_system"> <h3>Quick brown fox jumps over the lazy dog </h3></span>  -->

                    <p>Você pode selecionar qual a fonte padrão do sistema o site utilizará</p></td>
                </tr>
                <tr class="disable">
                  <td>Fontes padrões do google para o site: </td>
                  <td><select name="wg24_body_fontto_google" id="wg24_body_fontto_google"></select>

                    <!-- <span id="wg24_demo_body_to_google"><h3>Quick brown fox jumps over the lazy dog</h3></span>  -->

                    <p>Você pode selecionar qual a fonte padrão do google o site utilizará</p></td>
                </tr>
              </table>
            </div>
            <div id="wg24_sub_category_header_font" class="vtabs-content vtabs-select">
              <table class="form">
                <tr>
                  <td colspan="2"><div><b>Fonte dos cabeçalhos: </b></div></td>
                </tr>
                <tr>
                  <td>Origem da fonte: </td>
                  <td><select id="fontesheader" name="wg24_header_font_source">
                      <option value="google" <?php if($wg24_header_font_source == 'google') echo ' selected="selected"';?><?php if($wg24_header_font_source == '') echo ' selected="selected"';?>>Google</option>
                      <option value="system"  <?php if($wg24_header_font_source == 'system') echo ' selected="selected"';?><?php if($wg24_header_font_source == '') echo ' selected="selected"';?>>Sistema</option>
                    </select>
                    <p>Você pode selecionar de onde irá pegar as fontes.(Sistema/Google)</p></td>
                </tr>

                <script type="text/javascript">

								<?php if($wg24_header_font_source == 'google'){ ?>
									$( document ).ready(function() {
											$('#fontesheader').trigger('change');
									});
								<?php } ?>

                  $('#fontesheader').on('change', function(){
                    if($(this).val()=='google'){
                      $('.disable').css('display', 'table-row');

                      getFontGoogle('<?php echo $this->session->data['token']; ?>', '<?php echo $wg24_header_fontto_google; ?>', '#wg24_header_fontto_google');

                    }else{
                      $('.disable').css('display', 'none');
                    }
                  });

                </script>

                <tr>
                  <td>Fontes padrões do sistema para o site: </td>
                  <td><select id="wg24_header_fontto_system" name="wg24_header_fontto_system">
                      <?php
                                            foreach($wg24localfonts as $key=>$sysfonts){

                                            ?>
                      <option value="<?php echo $key; ?>" <?php echo ($key==$wg24_header_fontto_system )? "selected='selected'":""; ?>><?php echo $sysfonts; ?> </option>
                      <?php
                                            }
                                            ?>
                    </select>

                    <!-- <span id="wg24_demo_header_to_system"><h3>Quick brown fox jumps over the lazy dog</h3></span>-->

                    <p>Você pode selecionar qual a fonte padrão do sistema o site utilizará</p></td>
                </tr>
                <tr class="disable">
                  <td>Fontes padrões do google para o site: </td>
                  <td><select name="wg24_header_fontto_google" id="wg24_header_fontto_google">

                    </select>

                    <!--<span id="wg24_demo_heading_to_google"><h3>Quick brown fox jumps over the lazy dog</h3></span>-->

                    <p>Você pode selecionar qual a fonte padrão do google o site utilizará</p></td>
                </tr>
                <tr>
                  <td>Estilo das Fontes: </td>
                  <td><select name="wg24_heading_transfrom">
                      <option value="uppercase"<?php if($wg24_heading_transfrom == 'uppercase') echo ' selected="selected"';?>>Maiúscula</option>
                      <option value="lowercase"<?php if($wg24_heading_transfrom == 'lowercase') echo ' selected="selected"';?>>Minuscula</option>
                      <option value="inherit"<?php if($wg24_heading_transfrom == 'inherit') echo ' selected="selected"';?>>Herança</option>
                    </select></td>
                </tr>
                <tr>
                  <td>
                    Títulos principal:
                    <span class="help">Ex.: Topo das páginas e título da página de produto.</span>
                  </td>
                  <td>
										<?php
											$small_medium_large = array(
												'1' => 'Pequeno',
												'2' => 'Médio',
												'3' => 'Grande'
											);
										?>
										<select name="wg24_produt_h_font_size">
										<?php
											for ($i=1; $i<=3; $i++) {
												if ($wg24_produt_h_font_size == $i) {
											  	$selectvalue = 'selected="selected"';
											  } else {
											  	$selectvalue='';
											  }
												echo '<option value="' . $i . '" ' . $selectvalue . ' >' . $small_medium_large[$i] . '</option>';
											}
										?>
                    </select>
									</td>
                </tr>
                <tr>
                  <td>
                    Títulos secundários:
                    <span class="help">Ex.: Titulo das listagens de produtos.</span>
                  </td>
                  <td>
										<select name="wg24_page_h_font_size">
											<?php
												for ($i=1; $i<=3; $i++) {
													if ($wg24_page_h_font_size == $i) {
												  	$selectvalue = 'selected="selected"';
												  } else {
												  	$selectvalue='';
												  }
													echo '<option value="' . $i . '" ' . $selectvalue . ' >' . $small_medium_large[$i] . '</option>';
												}
											?>
                    </select>
									</td>
                </tr>
                <tr>
                  <td>
                    Títulos terciários:
                    <span class="help">Ex.: Título das listagens de produtos na lateral.</span>
                  </td>
                  <td>
                    <select name="wg24_left_rig_h_font_size">
											<?php
												for ($i=1; $i<=3; $i++) {
													if ($wg24_left_rig_h_font_size == $i) {
														$selectvalue = 'selected="selected"';
													} else {
														$selectvalue='';
													}
													echo '<option value="' . $i . '" ' . $selectvalue . ' >' . $small_medium_large[$i] . '</option>';
												}
											?>
                    </select>
                  </td>
                </tr>
              </table>
            </div>
          </div>
          <!--wg24_theme_slider end-->

          <!--wg24_theme_menu start-->
          <div id="wg24_theme_menu" class="htabs-content htabs-select">
            <table class="form">
              <tr>
                <td colspan="2"><div><b><?php echo $wg24_tab_menu ?></b></div></td>
              </tr>
              <tr>
                <td><?php echo $wg24_custom_item_menu_text ?></td>
                <td>
                  <input type="text" name="wg24_custom_item_menu" id="wg24_custom_item_menu" value="<?php echo $wg24_custom_item_menu ?>">
                </td>
              </tr>
              <tr>
                <td><?php echo $wg24_show_custom_htmlm ?></td>
                <td><select name="wg24_l_show_custom_htmlm">
                  <?php
                      foreach(Type_Status::getEnumList() as $key => $value){
                  ?>
                    <option value="<?php echo $key; ?>" <?php echo Ftr_Geral::isSelected($key, $wg24_l_show_custom_htmlm); ?> ><?php echo $value; ?></option>
                  <?php
                      }
                  ?>
                  </select>
                  <p>Você pode habilitar ou desabilitar o menu personalizado.</p></td>
              </tr>
              <?php foreach ($languages as $language) { ?>
              <tr class="tab-language-<?php echo $language['language_id']; ?>">
                <td><?php echo $wg24_custom_bmenu ?></td>
                <td>
                  <textarea name="wg24_l_custom_bmenu[<?php echo $language['language_id']; ?>]" id="wg24_l_custom_bmenu_<?php echo $language['language_id']; ?>"><?php   if(is_array($wg24_l_custom_bmenu)){  echo $wg24_l_custom_bmenu[$language['language_id']]; }else { echo $wg24_l_custom_bmenu; } ?></textarea>
                  <p>Personalização do menu.</p></td>
              </tr>
              <?php } ?>
            </table>
          </div>
          <!--wg24_theme_menu end-->
          <!--wg24_theme_fotter start-->

          <div id="wg24_theme_footer" class="htabs-select">
            <div id="wg24tab_submenu4" class="vtabs"> <a href="#wg24_sub_fot_logo"> Coluna 1</a> <a href="#wg24_sub_fot_contact">Contato</a> <a href="#wg24_sub_fot_social">Redes Sociais</a> <a href="#wg24_sub_fot_powered">Personalizado</a> <a href="#wg24_sub_fot_paymenet">Ícones de Pagamento</a> <a href="#wg24_sub_fot_links"><?php echo $wg24_sub_fot_links; ?></a> <a href="#wg24_sub_fot_certificado">Certificados</a> </div>
            <div id="wg24_sub_fot_links" class="vtabs-content vtabs-select">
              <table class="form">
							<tr>
								<td colspan="2"><div><b><?php echo $wg24_sub_fot_links?></b></div></td>
							</tr>
							<tr>
								<td><?php echo $wg24_sub_fot_links1?></td>
								<td><select name="wg24_linkFabricantes">
										<?php if ($wg24_linkFabricantes) { ?>
										<option value="1" selected="selected"><?php echo $text_enabled; ?></option>
										<option value="0"><?php echo $text_disabled; ?></option>
										<?php } else { ?>
										<option value="1"><?php echo $text_enabled; ?></option>
										<option value="0" selected="selected"><?php echo $text_disabled; ?></option>
										<?php } ?>
									</select></td>
							</tr>
							<tr>
								<td><?php echo $wg24_text_linkDevocoes?></td>
								<td>
									<select name="wg24_linkDevolucoes">
										<?php foreach(Type_Status::getEnumList() as $key  => $value){ ?>
											<option value="<?php echo $key; ?>" <?php echo Ftr_Geral::isSelected($key, $wg24_linkDevolucoes, Type_Status::Tp_Habilitado); ?>><?php echo $value; ?></option>
										<?php } ?>
									</select>
								</td>
							</tr>
              </table>
            </div>
            <div id="wg24_sub_fot_logo" class="vtabs-content vtabs-select">
              <table class="form">
                <tr>
                  <td colspan="2"><div><b><?php echo $wg24_l_footer_logo?></b></div></td>
                </tr>
                <?php foreach ($languages as $language) { ?>
                <tr>
                  <td><?php echo $wg24_l_logo_image ?></td>
                  <td><select name="wg24_foot_first_colunm" id="wg24_foot_first_colunm">
                      <option value="static" <?php if($wg24_foot_first_colunm == 'static') echo ' selected="selected"';?><?php if($wg24_foot_first_colunm == '') echo ' selected="selected"';?>>Exibir código coluna1 rodapé</option>
                      <option value="dynamic"  <?php if($wg24_foot_first_colunm == 'dynamic') echo ' selected="selected"';?><?php if($wg24_foot_first_colunm == '') echo ' selected="selected"';?>>Exibir informações das páginas dinamicas</option>
                    </select></td>
                </tr>
                <tr id="wg24_foot_first_config" class="tab-language-<?php echo $language['language_id']; ?>">
                  <td><?php echo "Conteúdo:" ?></td>
                  <td>
                    <textarea name="wg24_logo_image[<?php echo $language['language_id']; ?>]" id="wg24_logo_image-<?php echo $language['language_id']; ?>"><?php if(is_array($wg24_logo_image)){
													echo $wg24_logo_image[$language['language_id']];
												}else {
													echo $wg24_logo_image;
												} ?></textarea>
                    <p>Primeira coluna do rodapé.</p></td>
                </tr>
                <?php } ?>
              </table>
            </div>
            <div id="wg24_sub_fot_contact" class="vtabs-content vtabs-select"></div>
            <div id="wg24_sub_fot_social" class="vtabs-content vtabs-select">
              <table class="form">
                <tr>
                  <td colspan="2"><div><b><?php echo $wg24_l_social_ico?></b></div></td>
                </tr>
                <tr>
                  <td>Cor do Fundo</td>
                  <td><input type="text" name="wg24_bg_social" value="<?php  echo $wg24_bg_social ?>" class="jscolor {required:false,hash:true}" size="7" /></td>
                </tr>
                <tr>
                  <td>Cor do efeito Hover</td>
                  <td><input type="text" name="wg24_bg_hover_social" value="<?php  echo $wg24_bg_hover_social ?>" class="jscolor {required:false,hash:true}" size="7" /></td>
                </tr>
                <tr>
                  <td>Cor da Fonte</td>
                  <td><input type="text" name="wg24_col_social" value="<?php  echo $wg24_col_social ?>" class="jscolor {required:false,hash:true}" size="7" /></td>
                </tr>
                <tr>
                  <td><?php echo $wg24_l_facebook_url;?></td>
                  <td><input type="text" value="<?php echo $wg24_facebook_url;?>" name="wg24_facebook_url"/>
                    <p>Coloque o link para sua página no facebook.</p></td>
                </tr>
                <tr>
                  <td><?php echo $wg24_l_twitter_url;?></td>
                  <td><input type="text" value="<?php echo $wg24_twitter_url;?>" name="wg24_twitter_url"/>
                    <p>Coloque o link para sua página no twitter.</p></td>
                </tr>
                <tr>
                  <td><?php echo $wg24_l_google_url;?></td>
                  <td><input type="text" value="<?php echo $wg24_google_url;?>" name="wg24_google_url"/>
                    <p>Coloque o link para sua página no google.</p></td>
                </tr>
                <tr>
                  <td><?php echo $wg24_l_rss_url?></td>
                  <td><input type="text" value="<?php echo $wg24_rss_url; ?>" name="wg24_rss_url"/>
                    <p>Coloque o link para sua página no rss.</p></td>
                </tr>
                <tr>
                  <td><?php echo $wg24_l_pinterest_url;?></td>
                  <td><input type="text" value="<?php echo $wg24_pinterest_url;?>" name="wg24_pinterest_url"/>
                    <p>Coloque o link para sua página no pinterest.</p></td>
                </tr>
                <tr>
                  <td>Link para o linkedin: </td>
                  <td><input type="text" value="<?php echo $wg24_linking_url;?>" name="wg24_linking_url"/>
                    <p>Coloque o link para sua página no linkedin.</p></td>
                </tr>
                <tr>
                  <td><?php echo $wg24_l_youtube_url;?></td>
                  <td><input type="text" value="<?php echo $wg24_youtub_url;?>" name="wg24_youtub_url"/>
                    <p>Coloque o link para sua página no youtube.</p></td>
                </tr>
                <tr>
                  <td>Link para o Instagram: </td>
                  <td><input type="text" value="<?php echo $wg24_instagram_url;?>" name="wg24_instagram_url"/>
                    <p>Coloque o link para sua página no Instagram.</p></td>
                </tr>
                <tr>
                  <td>Link para o Blogger: </td>
                  <td><input type="text" value="<?php echo $wg24_blogger_url;?>" name="wg24_blogger_url"/>
                    <p>Coloque o link para sua página no Blogger.</p></td>
                </tr>
              </table>
            </div>
            <div id="wg24_sub_fot_powered" class="vtabs-content vtabs-select">
              <table class="form">
								<tr>
									<td colspan="2"><div><b><?php echo $wg24_l_powered_by ?></b></div></td>
								</tr>
                <?php foreach ($languages as $language) { ?>
                <tr class="tab-language-<?php echo $language['language_id']; ?>">
                  <td>
										<?php echo $wg24_l_copyr_text?>
										<select class="controller" name="wg24_tipo_rodape" style="display: block; max-width: 200px; margin-top: 15px;">
											<option value="<?php echo Type_AutoOrPersonalizado::Tp_Automatico; ?>" <?php if($wg24_tipo_rodape == Type_AutoOrPersonalizado::Tp_Automatico) echo 'selected="selected"'; ?>>
												<?php echo Type_AutoOrPersonalizado::getNickFromValue(Type_AutoOrPersonalizado::Tp_Automatico); ?>
											</option>
											<option data-controlled="tipo_rodape" value="<?php echo Type_AutoOrPersonalizado::Tp_Personalizado; ?>" <?php if($wg24_tipo_rodape == Type_AutoOrPersonalizado::Tp_Personalizado || $wg24_tipo_rodape == '') echo 'selected="selected"'; ?>>
												<?php echo Type_AutoOrPersonalizado::getNickFromValue(Type_AutoOrPersonalizado::Tp_Personalizado); ?>
											</option>
										</select>
									</td>
                  <td class="tipo_rodape" <?php if(!$wg24_tipo_rodape) echo 'style="display: none;"'; ?>>
										<textarea name="wg24_copyr_text[<?php echo $language['language_id']; ?>]" id="wg24_copyr_text-<?php echo $language['language_id']; ?>"><?php   if(is_array($wg24_copyr_text)){  echo $wg24_copyr_text[$language['language_id']]; }else { echo $wg24_copyr_text; } ?></textarea>
									</td>
                </tr>
                <?php } ?>
              </table>
            </div>
            <div id="wg24_sub_fot_paymenet" class="vtabs-content vtabs-select">
              <table class="form">
                <tr>
                  <td colspan="2"><div><b><?php echo $wg24_l_payment_ilinks?></b></div></td>
                </tr>
                <tr>
                  <td>Status:</td>
                  <td><select name="wg24_statuspagamento" id="wg24_statuspagamento">
                      <option value="enable" <?php if($wg24_statuspagamento == 'enable') echo ' selected="selected"';?><?php if($wg24_statuspagamento == '') echo ' selected="selected"';?>>Habilitado</option>
                      <option value="disable"  <?php if($wg24_statuspagamento == 'disable') echo ' selected="selected"';?><?php if($wg24_statuspagamento == '') echo ' selected="selected"';?>>Desabilitado</option>
                    </select>
                    <p>Habilitar a exibição dos ícones de pagamento.</p></td>
                </tr>
								<tr>
                  <td><?php echo $text_wg24_bandeiras_automaticas ?></td>
                  <td>
									<select class="controller" name="wg24_bandeiras_automaticas" id="wg24_bandeiras_automaticas">
										<option data-controlled="layout-bandeiras" value="<?php echo Type_DsimDnao::Tp_Nao ?>" <?php if($wg24_bandeiras_automaticas == Type_DsimDnao::Tp_Nao || $wg24_bandeiras_automaticas == '') echo ' selected="selected"';?>><?php echo Type_DsimDnao::getNickFromValue(Type_DsimDnao::Tp_Nao); ?></option>
										<option value="<?php echo Type_DsimDnao::Tp_Sim ?>" <?php if($wg24_bandeiras_automaticas == Type_DsimDnao::Tp_Sim) echo ' selected="selected"';?>><?php echo Type_DsimDnao::getNickFromValue(Type_DsimDnao::Tp_Sim); ?></option>
                  </select>
                  </td>
                </tr>
                <tr class="layout-bandeiras" <?php echo ($wg24_bandeiras_automaticas == Type_DsimDnao::Tp_Sim) ? 'style="display: none"' : '' ; ?>>
                  <td>Layout:</td>
                  <td class="left"><select name="wg24_banner_pagamento">
                      <?php foreach ($banners as $banner) { ?>
                      <?php if ($banner['banner_id'] == $wg24_banner_pagamento) { ?>
                      <option value="<?php echo $banner['banner_id']; ?>" selected="selected"><?php echo $banner['name']; ?></option>
                      <?php } else { ?>
                      <option value="<?php echo $banner['banner_id']; ?>"><?php echo $banner['name']; ?></option>
                      <?php } ?>
                      <?php } ?>
                    </select></td>
                </tr>

                <!--<tr>
                                    <td>Exibição:</td>
                                    <td>
                                        <select name="wg24_exibicao_pagamento">
                                            <option value="0" <?php //if($wg24_exibicao_pagamento == '0') echo ' selected="selected"';?><?php //if($wg24_exibicao_pagamento == '') echo ' selected="selected"';?>>Rodapé</option>
                                            <option value="1"  <?php //if($wg24_exibicao_pagamento == '1') echo ' selected="selected"';?><?php //if($wg24_exibicao_pagamento == '') echo ' selected="selected"';?>>Sub Rodapé</option>
                                        </select>

                                    </td>
                                </tr> -->

                <tr class="layout-bandeiras" <?php echo ($wg24_bandeiras_automaticas == Type_DsimDnao::Tp_Sim) ? 'style="display: none"' : '' ; ?>>
                  <td>Largura das imagens</td>
                  <td><input type="text" name="wg24_pagtolargura" id="wg24_pagtolargura" class="numeric" value="<?php echo $wg24_pagtolargura; ?>">
                    <p>Largura em Pixel (px). Informar apenas valor numérico. Ex: 30</p></td>
                </tr>
                <tr class="layout-bandeiras" <?php echo ($wg24_bandeiras_automaticas == Type_DsimDnao::Tp_Sim) ? 'style="display: none"' : '' ; ?>>
                  <td>Altura das imagens</td>
                  <td><input type="text" name="wg24_pagtoaltura" id="wg24_pagtoaltura" class="numeric" value="<?php echo $wg24_pagtoaltura; ?>">
                    <p>Altura em Pixel (px). Informar apenas valor numérico. Ex: 30</p></td>
                </tr>
              </table>
            </div>
            <div id="wg24_sub_fot_certificado" class="vtabs-content vtabs-select">
              <table class="form">
                <tr>
                  <td colspan="2"><div><b><?php echo $wg24_l_Certificado ?></b></div></td>
                </tr>
                <tr>
                  <tr>
                    <td>Selecionar Certificado:</td>
                    <td>
                      <select id="wg24_certificado_status" name="wg24_certificado_status">
                        <?php foreach(Type_Certificado::getEnumList() as $key  => $value) { ?>
                          <option
                            value="<?php echo $key; ?>"
                            <?php echo Ftr_Geral::isSelected($key, $wg24_certificado_status); ?>
                          >
                            <?php echo $value; ?>
                          </option>
                        <?php } ?>
                      </select>
                    </td>
                  </tr>
                </tr>
                <tr>
                <table id="certificado_personalizado" class="hidden form">
                  <tr>
                  <td>Layout dos Certificados:</td>
                  <td class="left">
                    <select name="wg24_certificado_banner">
                      <?php foreach ($banners as $banner) { ?>
                      <?php if ($banner['banner_id'] == $wg24_certificado_banner) { ?>
                      <option value="<?php echo $banner['banner_id']; ?>" selected="selected"><?php echo $banner['name']; ?></option>
                      <?php } else { ?>
                      <option value="<?php echo $banner['banner_id']; ?>"><?php echo $banner['name']; ?></option>
                      <?php } ?>
                      <?php } ?>
                    </select>
                  </td>
                  </tr>
                  <tr>
                    <td>Largura das imagens</td>
                    <td><input type="text" name="wg24_certificado_largura" id="wg24_certificado_largura" class="numeric" value="<?php echo $wg24_certificado_largura; ?>">
                      <p>Largura em px. Informar apenas valos numerico. Ex: 30</p></td>
                  </tr>
                  <tr>
                    <td>Altura das imagens</td>
                    <td><input type="text" name="wg24_certificado_altura" id="wg24_certificado_altura" class="numeric" value="<?php echo $wg24_certificado_altura; ?>">
                      <p>Altura em px. Informar apenas valos numerico. Ex: 30</p></td>
                  </tr>
                  </tr>
                </table>
              </table>
            </div>
          </div>

          <!--wg24_theme_fotter end-->
          <!--wg24_theme_custom code start-->
          <div id="wg24_theme_custom_code" class="htabs-content htabs-select">
            <table class="form">
              <tr>
                <td colspan="2"><div><b><?php echo $wg24_tab_custom ?></b></div></td>
              </tr>
              <tr>
                <td><?php echo $wg24_add_custom_css ?></td>
                <td>
                <textarea name="wg24_l_add_custom_css[<?php echo $language['language_id']; ?>]" id="wg24_l_add_custom_css-<?php echo $language['language_id']; ?>"><?php   if(is_array($wg24_l_add_custom_css)){  echo $wg24_l_add_custom_css[$language['language_id']]; }else { echo $wg24_l_add_custom_css; } ?></textarea>
                  <p>Você pode adicionar um css para seu tema.</p></td>
              </tr>
              <tr>
                <td><?php echo $wg24_add_custom_jss ?></td>
                <td>
                <textarea name="wg24_l_add_custom_jss[<?php echo $language['language_id']; ?>]" id="wg24_l_add_custom_jss-<?php echo $language['language_id']; ?>"><?php   if(is_array($wg24_l_add_custom_jss)){  echo $wg24_l_add_custom_jss[$language['language_id']]; }else { echo $wg24_l_add_custom_jss; } ?></textarea>
                  <p>Você pode adicionar um jss personalizado para seu tema.</p></td>
              </tr>
            </table>
          </div>
          <!--wg24_theme_custom code end-->

          <!--wg24_theme_seo start-->
          <div id="wg24_theme_seo" class="htabs-select">
            <div id="wg24tab_submenu6" class="vtabs">
              <a href="#wg24_seo_fer_face"><?php echo $wg24_seo_fer_face ?></a>
              <a href="#wg24_seo_categoria"><?php echo $wg24_seo_categoria ?></a>
            </div>
            <div id="wg24_seo_fer_face" class="vtabs-content vtabs-select">
              <table class="form">
                <tr>
                  <td colspan="2">
                    <div>
                      <b><?php echo $wg24_seo_fer_face ?></b>
                    </div>
                  </td>
                </tr>
                <tr>
                  <td><?php echo $wg24_seo_fer_face_status ?></td>
                  <td><select name="wg24_seo_fer_facebook_status">
                      <option value="enable" <?php if($wg24_seo_fer_facebook_status == 'enable') echo ' selected="selected"';?><?php if($wg24_seo_fer_facebook_status == '') echo ' selected="selected"';?>>Habilitado</option>
                      <option value="disable"  <?php if($wg24_seo_fer_facebook_status == 'disable') echo ' selected="selected"';?><?php if($wg24_seo_fer_facebook_status == '') echo ' selected="selected"';?>>Desabilitado</option>
                    </select></td>
                </tr>
                <tr>
                  <td><?php echo $wg24_seo_fer_face_pixel ?></td>
                  <td><textarea class="textarea-scrit" id="wg24_seo_fer_facebook_pixel" name="wg24_seo_fer_facebook_pixel"/><?php echo $wg24_seo_fer_facebook_pixel ?></textarea></td>
                </tr>
              </table>
            </div>

            <div id="wg24_seo_categoria" class="vtabs-content vtabs-select">
              <table class="form">
                <tr>
                  <td colspan="2"><div><b><?php echo $wg24_seo_categoria?></b></div></td>
                </tr>
                <tr>
                  <td><?php echo $wg24_seo_lang_cat_status; ?></td>
                  <td><select name="wg24_seo_categoria_status" id="wg24_seo_categoria_status">
											<?php foreach(Type_StatusEn::getEnumList() as $key  => $value){ ?>
												<option value="<?php echo $key; ?>" <?php echo Ftr_Geral::isSelected($key, $wg24_seo_categoria_status, Type_StatusEn::Tp_Disable); ?> ><?php echo $value; ?></option>
											<?php } ?>
                    </select></td>
                </tr>
                <tr>
                  <td><?php echo $wg24_seo_lang_cat_textini?></td>
                  <td><input type="text"  value="<?php echo $wg24_seo_categoria_tituloini;?>" name="wg24_seo_categoria_tituloini" id="wg24_seo_categoria_tituloini"/></td>
                </tr>
                <tr>
                  <td><?php echo $wg24_seo_lang_cat_textfim?></td>
                  <td><input type="text"  value="<?php echo $wg24_seo_categoria_titulofim;?>" name="wg24_seo_categoria_titulofim" id="wg24_seo_categoria_titulofim"/></td>
                </tr>
                <tr>
                  <td>Exemplo: </td>
                  <td id="wg24_seo_categoria_exemplo"><?php echo $wg24_seo_categoria_tituloini;?> {CATEGORIA} <?php echo $wg24_seo_categoria_titulofim;?></td>
                </tr>
              </table>
            </div>
            <!--wg24_theme_seo end-->
          </div>
          <div id="wg24_app" class="htabs-select" <?php echo ($exibe_mobile_config) ? '' : 'style="display: none;"' ?>>
            <div id="wg24tab_submenu7" class="vtabs">
							<a href="#wg24_app_colors"><?php echo $wg24_title_cores_padrao ?></a>
              <a href="#wg24_app_config_store"><?php echo $wg24_title_config_store ?></a>
            </div>
            <div id="wg24_app_colors" class="vtabs-content vtabs-select">
              <div class="form">
                <div class="row">
                  <div class="col-xs-12 col-sm-7">
                    <div class="content-box">
                      <div class="personalize text-right visible-inline-block vertical-middle">
                        <div class="visible-block" style="padding: 5px 0;">
                          <span for="primary_color" class="text-medium">Cor primária para fundo</span>
                          <input type="text" name="wg24_app_primary_color" value="<?php echo $wg24_app_primary_color ?>" class="jscolor {required:false,hash:true}" size="7">
                        </div>
                        <div class="visible-block" style="padding: 5px 0;">
                          <span for="secondary_color" class="text-medium">Cor secundária para fundo</span>
                          <input type="text" name="wg24_app_secondary_color" value="<?php echo $wg24_app_secondary_color ?>" class="jscolor {required:false,hash:true}" size="7">
                        </div>
                        <div class="visible-block" style="padding: 5px 0;">
                          <span for="primary_color" class="text-medium">Cor do texto no fundo primário</span>
                          <input type="text" name="wg24_app_text_primary_color" value="<?php echo $wg24_app_text_primary_color ?>" class="jscolor {required:false,hash:true}" size="7">
                        </div>
                        <div class="visible-block" style="padding: 5px 0;">
                          <span for="secondary_color" class="text-medium">Cor do texto no fundo secundário</span>
                          <input type="text" name="wg24_app_text_secondary_color" value="<?php echo $wg24_app_text_secondary_color ?>" class="jscolor {required:false,hash:true}" size="7">
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
						<div id="wg24_app_config_store" class="vtabs-content vtabs-select">
							<div class="form">
								<div class="row">
                  <div class="col-xs-12 col-sm-7">

                    <div class="flex flex-row middle-xs js-file-container">
                      <div class="full-width bottom-margin-x-small">
                        <span class="text-small text-bold visible-block" style="color: #000">Icone do app (Tamanho: 64x64)</span>
                      </div>
                      <div class="flex-0 background-white right-margin-medium hidden-overflow cursor-pointer" style="width: 5rem; height: 5rem;border: 1px solid #ccc;">
                        <img id="wg24_app_icon_store_class_thumb" src="<?php echo $wg24_app_icon_store_class_thumb; ?>" class="js-open-file-manager" width="80" height="80">
                        <input type="hidden" id="wg24_app_icon_store" name="wg24_app_icon_store" class="field-entry" value="<?php echo $wg24_app_icon_store; ?>">
                      </div>
                      <div class="flex-1 text-ellipsis">
                        <div class="flex flex-row">
                          <button type="button" class="btn-default top-margin-small right-margin-small btn-primary btn-small js-open-file-manager">
                            <span>Trocar</span>
                          </button>
                          <button type="button" class="btn-default top-margin-small btn-outline btn-small js-btn-clear-image" style="background-color: #fff;border-color: #ccc;">
                            <span>Remover</span>
                          </button>
                        </div>
                      </div>
                    </div>

                    <div class="content-box">
											<div class="field-group top-margin-large">
												<label class="field-label" style="color: #000">Url da Google Play Store</label>
												<input type="text" name="wg24_app_play_store" value="<?php echo $wg24_app_play_store; ?>" class="field-entry-medium">
											</div>
											<div class="field-group top-margin-large">
												<label class="field-label" style="color: #000">Url da App Store</label>
												<input type="text" name="wg24_app_app_store" value="<?php echo $wg24_app_app_store; ?>" class="field-entry-medium">
											</div>
										</div>
									</div>
                </div>
							</div>
						</div>
          </div>
      </form>
    </div>
  </div>
</div>
<script type="text/javascript">
    $("#wg24tab_menu a").tabs();
    $("#wg24tab_submenu a").tabs();
    $("#wg24tab_submenu2 a").tabs();
    $("#wg24tab_submenu3 a").tabs();
    $("#wg24tab_submenu4 a").tabs();
    $("#wg24tab_submenu6 a").tabs();
    $("#wg24tab_submenu7 a").tabs();

    $("#settings_tabs a").tabs();


</script>
<script type="text/javascript" src="view/javascript/ckeditor/ckeditor.js"></script>
<script type="text/javascript" src="view/javascript/jscolor/jscolor.js"></script>
<script type="text/javascript" src="view/javascript/jscolor/demofont.js"></script>
<script src="view/javascript/chroma/chroma.min.js"></script>
<script src="view/javascript/colorthief/color-thief.js"></script>
<script type="module" src="view/javascript/colors.js"></script>
<?php foreach ($languages as $language) { ?>
<input type="hidden" id="tmptextcontact-<?php echo $language['language_id']; ?>" value="<?php if(is_array($wg24_contact_info_page_of)){  echo $wg24_contact_info_page_of[$language['language_id']]; }else { echo htmlentities($wg24_contact_info_page_of, ENT_QUOTES); } ?>">
<?php }?>
<script type="text/javascript">
$(document).ready(function(){
  if($('.numeric').length > 0) $('.numeric').numeric();

  const openFileManager = document.querySelectorAll('.js-open-file-manager');

  for (const iterator of openFileManager) {
    iterator.addEventListener('click', () => {
      const Container = iterator.closest('.js-file-container');
      const imageId = Container.querySelector('img').id;
      handleFileManager(Container, imageId);
    });
  }

  const removeButtons = document.querySelectorAll('.js-btn-clear-image');

  for (const item of removeButtons) {
    item.addEventListener('click', () => {
      const Container = item.closest('.js-file-container');
      Container.querySelector('input').value = '';
      Container.querySelector('img').src = 'view/image/sem-imagem.png';
    });
  }

  function handleFileManager(container, imageId) {
    window.dispatchEvent(
      new CustomEvent('vue-file-manager', {
        detail: {
          callbackFunction: file => {
            container.querySelector('input').value = 'data/' + file.file;
            container.querySelector('img').src = file.thumbnail;
          },
          options: {
            maxWidth: imageId == 'wg24_body_sub_class_thumb' ? 1920 : 64,
            maxHeight: imageId == 'wg24_body_sub_class_thumb' ? 1920 : 64,
            extensions: ['jpg', 'jpeg', 'png', 'pdf'],
          },
        },
      })
    );
  }

});


  var vhtml = "";

  <?php if(($wg24_type_configuration_contact != 'easy') && ($wg24_type_configuration_contact != '')){ ?>
    vhtml = getHTMLCompletoContato(false, <?php echo (($wg24_exibe_contact   == 'yes') || $wg24_exibe_contact   == '')? 'true' : 'false'; ?>);
  <?php } else { ?>
    vhtml = getHTMLCompletoContato(true, <?php echo (($wg24_exibe_contact   == 'yes') || $wg24_exibe_contact   == '')? 'true' : 'false'; ?>);
  <?php }?>

  document.getElementById("wg24_sub_fot_contact").innerHTML = vhtml;

  $(".fieldphone").mask("(99) 9999-9999?9");

  //if($('input.numeric').length > 0) $('input.numeric').number();

  $('#wg24_type_configuration_contact').live("change",function(){
	var vhtml = "";

    var vexibeend = false;
	if($('#wg24_exibe_contact').val() == 'yes'){
		vexibeend = true;
  }

    if($(this).val() == 'advance'){
    	vhtml = getHTMLCompletoContato(false, vexibeend);
    	document.getElementById("wg24_sub_fot_contact").innerHTML = vhtml;

        <?php foreach ($languages as $language) { ?>
            CKEDITOR.dtd.$removeEmpty['i'] = false;
	        	CKEDITOR.replace('wg24_contact_info_page_of-<?php echo $language["language_id"]; ?>', {
	        	filebrowserBrowseUrl: 'index.php?route=common/filemanager&token=<?php echo $token; ?>',
	        	filebrowserImageBrowseUrl: 'index.php?route=common/filemanager&token=<?php echo $token; ?>',
	        	filebrowserFlashBrowseUrl: 'index.php?route=common/filemanager&token=<?php echo $token; ?>',
	        	filebrowserUploadUrl: 'index.php?route=common/filemanager&token=<?php echo $token; ?>',
	        	filebrowserImageUploadUrl: 'index.php?route=common/filemanager&token=<?php echo $token; ?>',
	        	filebrowserFlashUploadUrl: 'index.php?route=common/filemanager&token=<?php echo $token; ?>'
	        	});
			<?php } ?>

    }else{
    	vhtml = getHTMLCompletoContato(true, vexibeend);
    	document.getElementById("wg24_sub_fot_contact").innerHTML = vhtml;
    }

    $(".fieldphone").mask("(99) 9999-9999?9");


  });

  $('#wg24_type_configuration_contact').trigger("change");


  function getHTMLCompletoContato(psimples, pexicecontato){
    var vhtml = '';
    vhtml += '<table class="form">';
    vhtml += '<tr>';
    vhtml += '    <td colspan="2"><div><b>Informações de Contato</b></div></td>';
    vhtml += '</tr>';
    vhtml += '';
    vhtml += '<tr>';
    vhtml += '  <td> Exibir endereço:</td>';
    vhtml += '  <td>';

    vhtml += '		  <select name="wg24_exibe_contact" id="wg24_exibe_contact">';

    if(pexicecontato){
        vhtml += '		  	<option value="no">NÃO</option>';
        vhtml += '		    <option value="yes" selected="selected">SIM</option>';
    }else{
        vhtml += '		  	<option value="no" selected="selected">NÃO</option>';
        vhtml += '		    <option value="yes">SIM</option>';
    }

    vhtml += '        </select>';

    vhtml += '  </td>';
    vhtml += '</tr>';
    vhtml += '';
    vhtml += '<tr>';
    vhtml += '<td> Tipo de configuração</td>';
    vhtml += '  <td>';
    vhtml += '		   <select name="wg24_type_configuration_contact" id="wg24_type_configuration_contact">';

    if(psimples){
        vhtml += '		        <option value="advance">Avançado</option>';
        vhtml += '		        <option value="easy" selected="selected">Fácil</option>';
    }else{
        vhtml += '		        <option value="advance" selected="selected">Avançado</option>';
        vhtml += '		        <option value="easy" >Fácil</option>';
    }

    vhtml += '        </select>';
    vhtml += '  </td>';
    vhtml += '</tr>';

    if((!psimples)){
            <?php foreach ($languages as $language) { ?>
        vhtml += '    <tr class="tab-language-<?php echo $language['language_id']; ?>">';
        vhtml += '        <td><?php echo $wg24_l_contact_info_page_of?></td>';
        vhtml += '        <td><textarea   name="wg24_contact_info_page_of[<?php echo $language['language_id']; ?>]" id="wg24_contact_info_page_of-<?php echo $language['language_id']; ?>">';
        vhtml += $('#tmptextcontact-<?php echo $language['language_id']; ?>').val();
        vhtml += '</textarea></td>';
        vhtml += '    </tr>';
            <?php } ?>
    }else{

        vhtml += '    <tr>';
        vhtml += '        <td>Titulo no rodapé:</td>';
        vhtml += '        <td><input type="text" size="40" MaxLength="40" name="wg24_titulo_rodape" value="<?php echo $wg24_titulo_rodape; ?>"></td>';
        vhtml += '    </tr>';
        vhtml += '';
	}
    vhtml += '</table>';
    return vhtml;
  }
</script>


<script type="text/javascript">

	$(document).ready(function(){

            $( "#fontes" ).trigger( "change" );

		if ($("#wg24_foot_first_colunm").val() === "dynamic"){
			$("#wg24_foot_first_config").hide();
		}


		$("#wg24_foot_first_colunm").change(function() {
			if ($(this).val() === "dynamic"){
				$("#wg24_foot_first_config").hide();
			} else {
				$("#wg24_foot_first_config").show();
			}

		});

                $( "#wg24_seo_categoria_tituloini,#wg24_seo_categoria_titulofim" ).keyup(function() {
                    $( "#wg24_seo_categoria_exemplo" ).html("");
                    var exemplo = "";
                    if ($( "#wg24_seo_categoria_tituloini" ).val()){
                        exemplo = $( "#wg24_seo_categoria_tituloini" ).val();
                    }
                    exemplo = exemplo+" {CATEGORIA} "
                    if ($("#wg24_seo_categoria_titulofim" ).val()){
                        exemplo = exemplo+$("#wg24_seo_categoria_titulofim").val();
                    }
                    $( "#wg24_seo_categoria_exemplo" ).html(exemplo);
                });


	});

	$('.btn_test').live('click', function() {
      var $this_btn_test = $(this);

      if (analize_id_array) {
        $.ajax({
          url: 'index.php?route=setting/analyze/deleteAjax&token=<?php echo $token ?>',
          type: 'POST',
          dataType: 'json',
          data: {
            analyze_ids: analize_id_array
          }
        })
        .fail(function(json) {
          console.log("error");
          console.log(json);
        });
      }

			var tiporedirect = $(this).attr('tipoRedirecionamento');

			for ( instance in CKEDITOR.instances ){
       	CKEDITOR.instances[instance].updateElement();
		 	}

			$.ajax({
				url: 'index.php?route=module/wg24themeoptionpanel/sendData&token=<?php echo $token; ?>&tipoRedirect='+tiporedirect,
				type: 'POST',
				dataType: 'json',
				data: $('#form').serialize(),
				beforeSend: function() {
					$('body').append(loadBeforeSend());
		    },
				complete: function(json) {
					$( ".loadBeforeSend" ).fadeOut();
				},
				success: function(json) {
              // acompanhamento dos banners
              if (typeof json['acompanhamentos'] != 'undefined') {
                var acompanhamentos = JSON.parse(json['acompanhamentos']);
                for (var i = 0; i < acompanhamentos.length; i++) {
                  for (var key in acompanhamentos[i]) {
                    if (acompanhamentos[i].hasOwnProperty(key)) {
                      $('input[name="' + key + '"]').val(acompanhamentos[i][key]);
                    }
                  }
                }
              }
							$('.success, .warning, .error').remove();
							if (json['success']){
								if (json['redirect'] == 'refresh'){
									$('.box').before('<div class="success"><span>' + json['success'] + '<i class="btn-close fas fa-times" aria-hidden="true"></i></span></div>');
									$('.success').fadeIn('slow');
								}else{
										location = 'index.php?route=extension/module&token=<?php echo $token; ?>#tab-info=<?php echo $type; ?>';
								}
							}
							if (json['error']['error_warning']){
								$('.box').before('<div class="warning"><span>' + json['error']['error_warning'] + '<i class="btn-close fas fa-times" aria-hidden="true"></i></span></div>');
								$('.warning').fadeIn('slow');
							}
							$.each( json['error'], function( key, value ) {

								if ((json['error'][key]!='')&&(key!='error_warning')){
									var errSeletorID = '#'+key.replace('error_','');

									var idTab     = $(errSeletorID).closest(".htabs-select").attr("id");
									var idSubTab  = $(errSeletorID).closest(".vtabs-select").attr("id");

									idTab = '#'+idTab;
									idSubTab = '#'+idSubTab;

									if (idTab!='#undefined'){
										var seletor = 'a[href*='+idTab+']';
										$(seletor).activetab();
									}
									if (idSubTab!='#undefined'){
										var seletor = 'a[href*='+idSubTab+']';
										$(seletor).activetab();
									}


									if(typeof json['error'][key] == 'object'){
										var fisrt = true ;
										$.each( json['error'][key], function( keyObj, valueObj ) {
												var errSeletorIDObj = '#'+keyObj;
												if(fisrt){
													$(errSeletorIDObj).focus();
												}
												$(errSeletorIDObj).after('<span class="error">'+json['error'][key][keyObj]+'</span>');
												fisrt = false;
										});
									}else{
										$( errSeletorID ).focus();
										$(errSeletorID).after('<span class="error">'+json['error'][key]+'</span>');
									}

                  // if (json['error']) {
                  //   error_clean();
                  // }

								}
							});
							$('.success, .warning').slideDown(300).delay(5000).fadeOut();
				},
				error: function(json) {
          console.log('error');
          console.log(json);
				}
			});
	});
	function testa(prop, expr) {
	    if ( eval("obj['" + prop + "'] " + expr) )
	        document.body.innerHTML += "<p>obj." + prop + " " + expr + "</p>";
	}

</script>
<?php foreach ($languages as $language) { ?>
<script type="text/javascript"><!--
CKEDITOR.replace('wg24_home_s_b_f_box-<?php echo $language["language_id"]; ?>', {
filebrowserBrowseUrl: 'index.php?route=common/filemanager&token=<?php echo $token; ?>',
filebrowserImageBrowseUrl: 'index.php?route=common/filemanager&token=<?php echo $token; ?>',
filebrowserFlashBrowseUrl: 'index.php?route=common/filemanager&token=<?php echo $token; ?>',
filebrowserUploadUrl: 'index.php?route=common/filemanager&token=<?php echo $token; ?>',
filebrowserImageUploadUrl: 'index.php?route=common/filemanager&token=<?php echo $token; ?>',
filebrowserFlashUploadUrl: 'index.php?route=common/filemanager&token=<?php echo $token; ?>'
});
//--></script>
<?php } ?>
<?php foreach ($languages as $language) { ?>
<script type="text/javascript"><!--
CKEDITOR.replace('wg24_l_tabc-<?php echo $language["language_id"]; ?>', {
filebrowserBrowseUrl: 'index.php?route=common/filemanager&token=<?php echo $token; ?>',
filebrowserImageBrowseUrl: 'index.php?route=common/filemanager&token=<?php echo $token; ?>',
filebrowserFlashBrowseUrl: 'index.php?route=common/filemanager&token=<?php echo $token; ?>',
filebrowserUploadUrl: 'index.php?route=common/filemanager&token=<?php echo $token; ?>',
filebrowserImageUploadUrl: 'index.php?route=common/filemanager&token=<?php echo $token; ?>',
filebrowserFlashUploadUrl: 'index.php?route=common/filemanager&token=<?php echo $token; ?>'
});
//--></script>
<?php } ?>
<?php foreach ($languages as $language) { ?>
<script type="text/javascript"><!--
CKEDITOR.replace('wg24_l_custom_bmenu_<?php echo $language["language_id"]; ?>', {
filebrowserBrowseUrl: 'index.php?route=common/filemanager&token=<?php echo $token; ?>',
filebrowserImageBrowseUrl: 'index.php?route=common/filemanager&token=<?php echo $token; ?>',
filebrowserFlashBrowseUrl: 'index.php?route=common/filemanager&token=<?php echo $token; ?>',
filebrowserUploadUrl: 'index.php?route=common/filemanager&token=<?php echo $token; ?>',
filebrowserImageUploadUrl: 'index.php?route=common/filemanager&token=<?php echo $token; ?>',
filebrowserFlashUploadUrl: 'index.php?route=common/filemanager&token=<?php echo $token; ?>'
});
//--></script>
<?php } ?>

<?php foreach ($languages as $language) { ?>
<script type="text/javascript">
/*CKEDITOR.replace('wg24_l_add_slider-<?php echo $language["language_id"]; ?>', {
filebrowserBrowseUrl: 'index.php?route=common/filemanager&token=<?php echo $token; ?>',
filebrowserImageBrowseUrl: 'index.php?route=common/filemanager&token=<?php echo $token; ?>',
filebrowserFlashBrowseUrl: 'index.php?route=common/filemanager&token=<?php echo $token; ?>',
filebrowserUploadUrl: 'index.php?route=common/filemanager&token=<?php echo $token; ?>',
filebrowserImageUploadUrl: 'index.php?route=common/filemanager&token=<?php echo $token; ?>',
filebrowserFlashUploadUrl: 'index.php?route=common/filemanager&token=<?php echo $token; ?>'
});*/
</script>
<?php } ?>
<?php foreach ($languages as $language) { ?>
<script type="text/javascript"><!--
CKEDITOR.replace('wg24_copyr_text-<?php echo $language["language_id"]; ?>', {
filebrowserBrowseUrl: 'index.php?route=common/filemanager&token=<?php echo $token; ?>',
filebrowserImageBrowseUrl: 'index.php?route=common/filemanager&token=<?php echo $token; ?>',
filebrowserFlashBrowseUrl: 'index.php?route=common/filemanager&token=<?php echo $token; ?>',
filebrowserUploadUrl: 'index.php?route=common/filemanager&token=<?php echo $token; ?>',
filebrowserImageUploadUrl: 'index.php?route=common/filemanager&token=<?php echo $token; ?>',
filebrowserFlashUploadUrl: 'index.php?route=common/filemanager&token=<?php echo $token; ?>'
});
//--></script>
<?php } ?>
<?php foreach ($languages as $language) { ?>
<script type="text/javascript"><!--
/*CKEDITOR.replace('wg24_contact_info_page_of-<?php echo $language["language_id"]; ?>', {
filebrowserBrowseUrl: 'index.php?route=common/filemanager&token=<?php echo $token; ?>',
filebrowserImageBrowseUrl: 'index.php?route=common/filemanager&token=<?php echo $token; ?>',
filebrowserFlashBrowseUrl: 'index.php?route=common/filemanager&token=<?php echo $token; ?>',
filebrowserUploadUrl: 'index.php?route=common/filemanager&token=<?php echo $token; ?>',
filebrowserImageUploadUrl: 'index.php?route=common/filemanager&token=<?php echo $token; ?>',
filebrowserFlashUploadUrl: 'index.php?route=common/filemanager&token=<?php echo $token; ?>'
});*/
</script>
<?php } ?>
<?php foreach ($languages as $language) { ?>
<script type="text/javascript"><!--
CKEDITOR.replace('wg24_logo_image-<?php echo $language["language_id"]; ?>', {
filebrowserBrowseUrl: 'index.php?route=common/filemanager&token=<?php echo $token; ?>',
filebrowserImageBrowseUrl: 'index.php?route=common/filemanager&token=<?php echo $token; ?>',
filebrowserFlashBrowseUrl: 'index.php?route=common/filemanager&token=<?php echo $token; ?>',
filebrowserUploadUrl: 'index.php?route=common/filemanager&token=<?php echo $token; ?>',
filebrowserImageUploadUrl: 'index.php?route=common/filemanager&token=<?php echo $token; ?>',
filebrowserFlashUploadUrl: 'index.php?route=common/filemanager&token=<?php echo $token; ?>'
});
//--></script>

<?php } ?>
<style>
  input[disabled].analize-disable-quantity-field {
    margin-top: 3px!important;
    background: #efefef!important;
    border-color: #dddddd!important;
  }
</style>
<script>
  var analize_id_array = [];
  $('.remove-banner').on('click', function() {
    var $row = $(this).closest('[id*=-row]');

    if ($row.find('input[type=hidden][name*=analyze_id]').val()) {
      analize_id_array.push($row.find('input[type=hidden][name*=analyze_id]').val());
    }

    $row.remove();
  });

  $('input[type=checkbox][name$=[analize]]').on('change', function(){
    var $container = $(this).closest('.box_config_advanced');

    if ($(this).prop('checked')) {
      if ($container.find('[name=quantity]').length > 0) {
        $container.find('[name=quantity]').show();
      } else {
        $container.append('<input type="text" name="quantity" value="0" style="margin-top: 3px;" disabled>');
      }
    } else {
      $container.find('[name=quantity]').hide();
    }
  });


  var certificadoField = document.getElementById('wg24_certificado_status');
  certificadoField.onchange = certificado;

  function certificado() {
    var certificadoPersonalizado = document.getElementById('certificado_personalizado');

    if (certificadoField.value == 2){
      certificadoPersonalizado.classList.remove('hidden');
    } else {
      certificadoPersonalizado.classList.add('hidden');
    }
  }
  window.onload = certificado;




</script>

</div>
<?php echo $footer; ?>
