array( // Chamando nhref --> view/static/chamada_da_pagina "title" => "Título da página no admin", "fotos" => array( // Esse informa se terá galeria de fotos ou não "ativo" => "Sim", // Sim ou Nao "width" => 1000, // Livre "height" => 500, // Livre480 "corte" => "crop", // proporcional, crop ou preenchimento "thumbs" => true, // True ou false "thumbsConf" => array( // Se marcar thumb como true, adicionar as thumbs abaixo e suas configs "thumb1" => array("corte" => "preenchimento", "w" => 500, "h" => 350, "prenome" => 'med'), "thumb1" => array("corte" => "preenchimento", "w" => 500, "h" => 350, "prenome" => 'med'), "thumb1" => array("corte" => "preenchimento", "w" => 500, "h" => 350, "prenome" => 'med'), "thumb1" => array("corte" => "preenchimento", "w" => 500, "h" => 350, "prenome" => 'med'), "thumb1" => array("corte" => "preenchimento", "w" => 500, "h" => 350, "prenome" => 'med') // Quantidade livre ) ), "textos" => array( // Aqui define os campos da página "nome_campo" => array( "nomeCampo" => "nome_campo", // Nome do campo que será armazenado no banco e chamar no sitre "nomeExib" => "Título do site", // Nome que será exibido acima do campo "require" => true, // true ou false "htmlType" => "text", // textarea, text ou file "htmlClass" => "col-md-12", // Classe para alinhamente botstrap. Para foto, usar sempre col-md-2 "editor" => true, //true ou fase - Aplica-se em caso do htmlType for textarea "maxCaracter" => 500, // Limitador de caracteres "width" => "500", // Livre - Aplica-se em caso do htmlType for file "height" => "400", // Livre - Aplica-se em caso do htmlType for file "corte" => "preenchimento", // proporcional, crop ou preenchimento - Aplica-se em caso do htmlType for file "aditionalClass" = "" // Qualquer classe CSS ) ) ), */ $configs = array( "configuracoes" => array( // Array chave "title" => "INFORMAÇÕES DO SITE", "galeria" => array( "ativo" => false, "width" => 750, "height" => 433, "corte" => "crop", // proporcional, crop ou preenchimento "thumbs" => true, "thumbsConf" => array( "thumb1" => array("corte" => "crop", "w" => 400, "h" => 300, "prenome" => 'thumb'), "thumb2" => array("corte" => "proporcional", "w" => 300, "h" => 200, "prenome" => 'mini'), ) ), // "tabs1" = array( // "nome" => "Tabs 01"; // ), "textos" => array( "site_titulo" => array( "nomeCampo" => "site_titulo", "nomeExib" => "Título do site", "require" => true, // true ou false "htmlType" => "text", // Textarea o Text "htmlClass" => "col-md-12", "maxCaracter" => 80, ), "site_palavras" => array( "nomeCampo" => "site_palavras", "nomeExib" => "Palavras chave - não informe nomes de associados", "require" => true, // true ou false "htmlType" => "text", // Textarea o Text "htmlClass" => "col-md-12", "maxCaracter" => 200 ), "site_descricao" => array( "nomeCampo" => "site_descricao", "nomeExib" => "Breve descrição do site - motores de buscas e redes sociais", "require" => true, // true ou false "htmlType" => "textarea", // Textarea o Text "htmlClass" => "col-md-12", "maxCaracter" => "", "editor" => false, "separador" => "Dados de contato" ), "site_cep" => array( "nomeCampo" => "site_cep", "nomeExib" => "Cep da empresa", "require" => true, // true ou false "htmlType" => "text", // Textarea o Text "htmlClass" => "col-md-6", "aditionalClass" => "maskCeps" ), "site_endereco" => array( "nomeCampo" => "site_endereco", "nomeExib" => "Endereço da empresa", "require" => true, // true ou false "htmlType" => "text", // Textarea o Text "htmlClass" => "col-md-6", ), "site_horario" => array( "nomeCampo" => "site_horario", "nomeExib" => "Horário", "require" => false, // true ou false "htmlType" => "text", // Textarea o Text "htmlClass" => "col-md-3", ), "site_bairro" => array( "nomeCampo" => "site_bairro", "nomeExib" => "Bairro", "require" => false, // true ou false "htmlType" => "text", // Textarea o Text "htmlClass" => "col-md-3", ), "site_cidade" => array( "nomeCampo" => "site_cidade", "nomeExib" => "Cidade", "require" => true, // true ou false "htmlType" => "text", // Textarea o Text "htmlClass" => "col-md-4", "maxCaracter" => 60 ), "site_uf" => array( "nomeCampo" => "site_uf", "nomeExib" => "UF", "require" => true, // true ou false "htmlType" => "text", // Textarea o Text "htmlClass" => "col-md-2", "maxCaracter" => 2 ), "site_email" => array( "nomeCampo" => "site_email", "nomeExib" => "E-mail principal", "require" => true, // true ou false "htmlType" => "text", // Textarea o Text "htmlClass" => "col-md-6", "addonLeft" => '', ), "site_telefone" => array( "nomeCampo" => "site_telefone", "nomeExib" => "Telefone principal", "require" => true, // true ou false "htmlType" => "text", // Textarea o Text "htmlClass" => "col-md-6", "aditionalClass" => "maskTelefones", "addonLeft" => '', "separador" => "Social" ), "site_facebook" => array( "nomeCampo" => "site_facebook", "nomeExib" => "Link do Facebook", "require" => false, // true ou false "htmlType" => "text", // Textarea o Text "htmlClass" => "col-md-4", "addonLeft" => '', "separador" => "Dados para autenticação e-mails", ), // "site_instagram" => array( // "nomeCampo" => "site_instagram", // "nomeExib" => "Link do Instagram", // "require" => false, // true ou false // "htmlType" => "text", // Textarea o Text // "htmlClass" => "col-md-4", // "addonLeft" => '', // ), // "site_twitter" => array( // "nomeCampo" => "site_twitter", // "nomeExib" => "Link do Twitter", // "require" => false, // true ou false // "htmlType" => "text", // Textarea o Text // "htmlClass" => "col-md-4", // "addonLeft" => '', // ), array( "nomeCampo" => "site_mail_exibicao", "nomeExib" => "Nome para exibição", "require" => true, // true ou false "htmlType" => "text", // Textarea o Text "htmlClass" => "col-md-5", "maxCaracter" => 80, ), array( "nomeCampo" => "site_mail_host", "nomeExib" => "Host", "require" => false, // true ou false "htmlType" => "text", // Textarea o Text "htmlClass" => "col-md-5" ), array( "nomeCampo" => "site_mail_porta", "nomeExib" => "Porta", "require" => false, // true ou false "htmlType" => "text", // Textarea o Text "htmlClass" => "col-md-2" ), array( "nomeCampo" => "site_mail_user", "nomeExib" => "Usuário", "require" => false, // true ou false "htmlType" => "text", // Textarea o Text "htmlClass" => "col-md-6", "addonLeft" => '', ), array( "nomeCampo" => "site_mail_pass", "nomeExib" => "Senha", "require" => false, // true ou false "htmlType" => "text", // Textarea o Text "htmlClass" => "col-md-6", "addonLeft" => '', "separador" => "Google Analytics" ), array( "nomeCampo" => "site_analytics", "nomeExib" => "Código de acompanhamento", "require" => false, // true ou false "htmlType" => "textarea", // Textarea o Text "htmlClass" => "col-md-12", "editor" => false, "separador" => "Outras configurações" ), array( "nomeCampo" => "site_manutencao", "nomeExib" => "Site em manutenção?", "require" => true, // true ou false "htmlType" => "select", // Textarea o Text "htmlClass" => "col-md-3", "typeSelect" => array("1" => "Site online", "2" => "Site em manutenção") ), ) ), "titulos" => array( // Array chave no header.php " sobre" => "view/static/sobre" "title" => "TÍTULOS DE CONTATO", "galeria" => array( "ativo" => false, "width" => 750, "height" => 433, "corte" => "crop", // proporcional, crop ou preenchimento "thumbs" => true, "thumbsConf" => array( "thumb1" => array("corte" => "crop", "w" => 400, "h" => 300, "prenome" => 'thumb') ) ), "textos" => array( array( "nomeCampo" => "cont_titulo", "nomeExib" => "Título", "require" => true, // true ou false "htmlType" => "text", // Textarea o Text "htmlClass" => "col-md-6", ), array( "nomeCampo" => "cont_subtitulo", "nomeExib" => "Subtítulo", "require" => true, // true ou false "htmlType" => "text", // Textarea o Text "htmlClass" => "col-md-6", ), array( "nomeCampo" => "cont_fundo", "nomeExib" => "Imagem do fundo", "require" => true, // true ou false "htmlType" => "file", // Textarea o Text "htmlClass" => "col-md-2", "width" => 1900, "height" => 830, "corte" => "crop", "separador" => "QUEM SOMOS" ), array( "nomeCampo" => "quem_titulo", "nomeExib" => "Título", "require" => true, // true ou false "htmlType" => "text", // Textarea o Text "htmlClass" => "col-md-6", ), array( "nomeCampo" => "quem_subtitulo", "nomeExib" => "Subtítulo", "require" => true, // true ou false "htmlType" => "text", // Textarea o Text "htmlClass" => "col-md-6", ), array( "nomeCampo" => "quem_fundo", "nomeExib" => "Imagem do fundo", "require" => true, // true ou false "htmlType" => "file", // Textarea o Text "htmlClass" => "col-md-2", "width" => 1920, "height" => 1200, "corte" => "crop", "separador" => "ONDE ENCONTRAR" ), array( "nomeCampo" => "onde_title", "nomeExib" => "Imagem do título", "require" => true, // true ou false "htmlType" => "file", // Textarea o Text "htmlClass" => "col-md-2", "width" => 740, "height" => 200, "corte" => "crop", ), array( "nomeCampo" => "onde_mapa", "nomeExib" => "Imagem do mapa", "require" => true, // true ou false "htmlType" => "file", // Textarea o Text "htmlClass" => "col-md-2", "width" => 460, "height" => 480, "corte" => "crop", ), array( "nomeCampo" => "onde_fundo", "nomeExib" => "Imagem do fundo", "require" => true, // true ou false "htmlType" => "file", // Textarea o Text "htmlClass" => "col-md-2", "width" => 1900, "height" => 830, "corte" => "crop", "separador" => "Ofertas" ), array( "nomeCampo" => "ofer_titulo", "nomeExib" => "Título", "require" => true, // true ou false "htmlType" => "text", // Textarea o Text "htmlClass" => "col-md-6", ), array( "nomeCampo" => "ofer_subtitulo", "nomeExib" => "Subtítulo", "require" => true, // true ou false "htmlType" => "text", // Textarea o Text "htmlClass" => "col-md-6", "separador" => "Parallax" ), array( "nomeCampo" => "parallax_titulo", "nomeExib" => "Título", "require" => true, // true ou false "htmlType" => "text", // Textarea o Text "htmlClass" => "col-md-6", ), array( "nomeCampo" => "parallax_subtitulo", "nomeExib" => "Subtítulo", "require" => true, // true ou false "htmlType" => "text", // Textarea o Text "htmlClass" => "col-md-6", ), array( "nomeCampo" => "parallax_fundo", "nomeExib" => "Imagem do fundo", "require" => true, // true ou false "htmlType" => "file", // Textarea o Text "htmlClass" => "col-md-2", "width" => 1900, "height" => 560, "corte" => "crop", "separador" => "Produtos" ), array( "nomeCampo" => "prod_titulo", "nomeExib" => "Título", "require" => true, // true ou false "htmlType" => "text", // Textarea o Text "htmlClass" => "col-md-6", ), array( "nomeCampo" => "prod_subtitulo", "nomeExib" => "Subtítulo", "require" => true, // true ou false "htmlType" => "text", // Textarea o Text "htmlClass" => "col-md-6", "separador" => "Blog" ), array( "nomeCampo" => "blog_fundo", "nomeExib" => "Imagem do fundo", "require" => true, // true ou false "htmlType" => "file", // Textarea o Text "htmlClass" => "col-md-2", "width" => 1920, "height" => 660, "corte" => "crop", ), ) ), "quemsomos" => array( // Array chave "title" => "QUEM SOMOS", "galeria" => array( "list-legenda" => 1, "ativo" => false, "width" => 800, "height" => 0, "corte" => "proporcional", // proporcional, crop ou preenchimento "thumbs" => true, "thumbsConf" => array( "thumb1" => array("corte" => "proporcional", "w" => 500, "h" => 350, "prenome" => 'mini'), "thumb2" => array("corte" => "preenchimento", "w" => 400, "h" => 300, "prenome" => 'thumb') ) ), "textos" => array( array( "nomeCampo" => "quem_pretexto", "nomeExib" => "Texto curto", "require" => false, // true ou false "htmlType" => "textarea", // Textarea o Text "htmlClass" => "col-md-6", "editor" => true ), array( "nomeCampo" => "quem_texto", "nomeExib" => "Texto completo", "require" => false, // true ou false "htmlType" => "textarea", // Textarea o Text "htmlClass" => "col-md-6", "editor" => true ), array( "nomeCampo" => "quem_foto", "nomeExib" => "Foto da fachada", "require" => true, // true ou false "htmlType" => "file", // Textarea o Text "htmlClass" => "col-md-2", "width" => 800, "height" => 600, "corte" => "proporcional", ), array( "nomeCampo" => "quem_foto2", "nomeExib" => "Foto 2", "require" => false, // true ou false "htmlType" => "file", // Textarea o Text "htmlClass" => "col-md-2", "width" => 800, "height" => 600, "corte" => "proporcional", ), array( "nomeCampo" => "quem_foto3", "nomeExib" => "Foto 3", "require" => false, // true ou false "htmlType" => "file", // Textarea o Text "htmlClass" => "col-md-2", "width" => 800, "height" => 600, "corte" => "proporcional", ), array( "nomeCampo" => "quem_foto4", "nomeExib" => "Foto 4", "require" => false, // true ou false "htmlType" => "file", // Textarea o Text "htmlClass" => "col-md-2", "width" => 800, "height" => 600, "corte" => "proporcional", ), ) ), ); // $limitedefotos = 8; // for ($i=1; $i <= $limitedefotos; $i++) { // $configs['sobre']['textos'][] = array( // "nomeCampo" => "sobre_foto_industria_".$i, // "nomeExib" => "", // "require" => false, // true ou false // "htmlType" => "file", // Textarea, Text ou File // "htmlClass" => "col-md-3", // "width" => "1000", // "height" => "", // "corte" => "crop", // proporcional, crop ou preenchimento // "separador" => ($limitedefotos == $i) ? 'FOTOS DA FROTA' : '' // ); // } // for ($i=1; $i <= $limitedefotos; $i++) { // $configs['sobre']['textos'][] = array( // "nomeCampo" => "sobre_foto_frota_".$i, // "nomeExib" => "", // "require" => false, // true ou false // "htmlType" => "file", // Textarea, Text ou File // "htmlClass" => "col-md-3", // "width" => "1000", // "height" => "", // "corte" => "crop", // proporcional, crop ou preenchimento // ); // } if(@$configs["$cond"] == false) { exit; } ?>


'.($campos["require"] ? '*' : '').' '.$campos["nomeExib"].'
'.(($campos["addonLeft"] == true or $campos["addonRight"] == true) ? '
' : '').' '.(($campos["addonLeft"] == true) ? '
'.$campos["addonLeft"].'
' : '').' '.(($campos["addonRight"] == true) ? '
'.$campos["addonRight"].'
' : '').' '.(($campos["addonLeft"] == true or $campos["addonRight"] == true) ? '
' : '').'
'; } elseif($campos["htmlType"] == "textarea") { echo '
'.($campos["require"] ? '*' : '').' '.$campos["nomeExib"].'
'; } elseif($campos["htmlType"] == "select") { echo '
'.($campos["require"] ? '*' : '').' '.$campos["nomeExib"].'
'; } elseif($campos["htmlType"] == "file") { $classe = $campos["nomeCampo"]; $dadosFoto["width"] = $campos["width"]; $dadosFoto["height"] = $campos["height"]; $dadosFoto["corte"] = $campos["corte"]; $dadosFoto["require"] = $campos["require"]; $dadosFoto["nomeExib"] = $campos["nomeExib"]; $dadosFoto["prenome"] = $campos["nomeCampo"]; echo '
'.($campos["require"] ? '*' : '').' '.$campos["nomeExib"].'
('.$campos["width"]. (($campos["height"] > 0) ? 'x'.$campos["height"].'px)' : 'px de largura)' ).'
texto ? 'style="background-image: url(../uploads/static/'.$lnDados->texto.');"' : '').'> '.($lnDados->texto ? '' : '').'
texto ? 'style="display: none;"' : '').'>
texto ? 'style="display: inline-block;"' : '').' class="btn btn-danger btn-sm remove-foto btnRemove'.$classe.'" data-img-name="'.$lnDados->texto.'" data-style="'.($lnDados->texto ? 'url(../uploads/static/'.$lnDados->texto.')' : 'none').'" data-foto-classe="'.$classe.'" data-foto-id="'.$lnDados->ID.'" href="javascript:;">Remover
'; } elseif($campos["htmlType"] == "arquivo") { $dadosArquivo["extensoes"] = $campos["extensoes"]; $dadosArquivo["nomeExib"] = $campos["nomeExib"]; $dadosArquivo["require"] = $campos["require"]; $dadosArquivo["atual"] = $lnDados->texto; echo '
'.($campos["require"] ? '*' : '').' '.$campos["nomeExib"].'
Formatos aceitos: .zip
Peso máximo: '.ini_get('post_max_size').'b
'.($dadosArquivo["atual"] ? "Arquivo atual: ".$dadosArquivo["atual"].'
' : '').'
'; } echo (@$campos["separador"] == true) ? separador(@$campos["separador"]) : ''; } ?>



Galeria de fotos


" /> " /> " /> '."\n"; foreach($configs["$cond"]["galeria"]["thumbsConf"] as $key => $value) { echo ''."\n"; } } ?>



FOTOS ENVIADAS

1): ?>
Arraste para alterar a ordem das fotos
Buscando fotos...