Autor Tópico: Barra de Informações 1.1.x e 2.0.x  (Lida 2541 vezes)

0 Membros e 1 Visitante estão a ver este tópico.

Offline candidosa2

  • Suporte Tecnico
  • Fundador
  • *
  • Mensagens: 5072
  • Rank: 1658
  • Sexo: Masculino
  • Suporte
    • Hosting Moçambique
Barra de Informações 1.1.x e 2.0.x
« em: 10 de Dezembro de 2010, 07:39 »
Modo nome: InformationBar
Mod Autor: 4kstore
Versão em Editar e Tecnologia Patch + Manual: SmfPt

/Themes/default/style.css

Código: [Seleccione]
.redondeado:before {
   background: transparent url(images/arr-der.png) scroll no-repeat top right;
   margin-bottom: -10px;
   height: 14px;
   display: block;
   border: none;
   content: url(images/arr-izq.png);
   padding: 0;
   line-height: 0.1;
   font-size: 1px;
}

.redondeado:after {
   display: block;
   line-height: 0.1;
   font-size: 1px;
   content: url(images/aba-izq.png);
   margin: 2px 0 0 0;
   height: 14px;
   background: transparent url(images/aba-der.png) scroll no-repeat bottom right;
   padding: 0;
}


.redondeado * {
   padding-left: 25px;
   padding-right: 25px;
}

.redondeado {
   padding: 0;
   background: #993333;
   color: white;
   margin-right: -1px;
}

Themes/default/index.template.php

Código: [Seleccione]
template_menu();
Código: [Seleccione]
template_menu();
if (!empty($modSettings['ib_text']) && !empty($modSettings['ib_enable']))
{
echo'<br /><div class="redondeado">
<p align="center"> ',$modSettings['ib_text'],'
</p>
</div> ';
}


Sources/ModSettings.php

Código: [Seleccione]
// Basic stuff, user languages, titles, flash, permissions...
array('check', 'allow_guestAccess')

Código: [Seleccione]
array('check', 'ib_enable'),
array('large_text', 'ib_text', '5'),

/Themes/default/languages/Modifications.teuidioma.php

Código: [Seleccione]
?>
Código: [Seleccione]
// InformationBarMod
$txt['ib_text'] = 'InformationBar Text <div class="smalltext">permitir codificar HTML.</div>';
$txt['ib_enable'] = 'Activar InformationBar';

/Themes/default/images