Skip to content

Commit

Permalink
Updade pt-br lang, add xoops banner support
Browse files Browse the repository at this point in the history
  • Loading branch information
angelorocha committed Jun 14, 2014
1 parent a1374ab commit 038028c
Show file tree
Hide file tree
Showing 6 changed files with 51 additions and 27 deletions.
4 changes: 4 additions & 0 deletions language/english/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,7 @@
define("THEME_NEWBB_SEARCH_FORUM", "Search in forum...");
define("THEME_NEWBB_SEARCH_TOPIC", "Search in topic...");
define("THEME_FORUM_DESC", "About This Forum");

//Block login
define("THEME_LOGIN", "Your Username");
define("THEME_PASS", "Your Password");
38 changes: 21 additions & 17 deletions language/pt-br_utf8/main.php
Original file line number Diff line number Diff line change
@@ -1,26 +1,30 @@
<?php

//Nav Menu
define("THEME_HOME", "Home");
define("THEME_MODULE1", "About");
define("THEME_MODULE2", "News");
define("THEME_MODULE3", "Forum");
define("THEME_MODULE4", "Contact");
define("THEME_SEARCH_TEXT", "Search here...");
define("THEME_SEARCH_BUTTON", "Go");
define("THEME_HOME", "Início");
define("THEME_MODULE1", "Sobre");
define("THEME_MODULE2", "Notícias");
define("THEME_MODULE3", "Fórum");
define("THEME_MODULE4", "Contato");
define("THEME_SEARCH_TEXT", "Buscar no site...");
define("THEME_SEARCH_BUTTON", "Buscar");

//Slider
define("THEME_READMORE", "Read More");
define("THEME_READMORE", "Leia Mais");

//Home Message
define("THEME_ABOUTUS", "About Us");
define("THEME_LEARNINGMORE", "Learning More...");
define("THEME_ABOUTUS", "Sobre Nós");
define("THEME_LEARNINGMORE", "Continue Lendo...");

//NewBB
define("THEME_NEWBB_TOPIC", "More");
define("THEME_FORUM_SPONSORBY", "Sponsor By.: ");
define("THEME_GOTOTHEFORUM", "Go to Forum");
define("THEME_FORUM_DESCRIPTION", "Description");
define("THEME_NEWBB_SEARCH_FORUM", "Search in forum...");
define("THEME_NEWBB_SEARCH_TOPIC", "Search in topic...");
define("THEME_FORUM_DESC", "About This Forum");
define("THEME_NEWBB_TOPIC", "Mais");
define("THEME_FORUM_SPONSORBY", "Patrocinado por.: ");
define("THEME_GOTOTHEFORUM", "Ir ao Fórum");
define("THEME_FORUM_DESCRIPTION", "Descrição");
define("THEME_NEWBB_SEARCH_FORUM", "Buscar no Fórum...");
define("THEME_NEWBB_SEARCH_TOPIC", "Buscar no Tópico...");
define("THEME_FORUM_DESC", "Sobre este fórum");

//Block login
define("THEME_LOGIN", "Nome de Usuário");
define("THEME_PASS", "Digite sua Senha");
6 changes: 3 additions & 3 deletions modules/system/blocks/system_block_login.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
<form action="<{xoAppUrl user.php}>" method="post" role="form">
<div class="form-group">
<{$block.lang_username}>
<input class="form-control" type="text" name="uname" placeholder="Your Login">
<input class="form-control" type="text" name="uname" placeholder="<{$smarty.const.THEME_LOGIN}>">
</div>

<div class="form-group">
<{$block.lang_password}>
<input class="form-control" type="password" name="pass" placeholder="Your Password">
<input class="form-control" type="password" name="pass" placeholder="<{$smarty.const.THEME_PASS}>">
</div>

<div class="checkbox">
Expand All @@ -26,4 +26,4 @@
<a class="btn btn-info btn-xs btn-block" href="<{xoAppUrl user.php#lost}>" title="<{$block.lang_lostpass}>"><{$block.lang_lostpass}></a>

<a class="btn btn-info btn-xs btn-block" href="<{xoAppUrl register.php}>" title="<{$block.lang_registernow}>"><{$block.lang_registernow}></a>
</div>
</div>
13 changes: 11 additions & 2 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,16 @@ div.slideshow .item{text-align:center;}
div.slideshow .item img{display:inline-block;}

div.maincontainer{margin-top:20px; margin-bottom:20px;}
div.home-message{background: #FFF; padding-top:5px; border-left: 3px solid #9C6; margin-top:-60px; position:relative; z-index:5;}
div.home-message{background: #FAFAFA; padding-top:5px; border-left: 3px solid #9C6; margin-top:-60px; position:relative; z-index:5;}
div.bottom-blocks{background: url(images/cover.jpg) 50% 50% no-repeat fixed; background-size:cover; margin-top: 20px; padding: 20px 0 20px 0;}

footer.footer{background:#111; color:#EAEAEA;}
footer.footer > h3{font-size:0.9em; margin:0; line-height:inherit; max-width:960px; margin:0 auto 0 auto; padding:10px 0 10px 0; text-align:center; position:relative;}
footer.footer > h3 > a.credits{position:absolute; top:3px; right:10px;}

.xoops-banner{position: relative; top: 40px;}
.xoops-banner *{max-width: 100%;}

/* 2. XOOPS Codes */
.xoopsQuote{padding:10px 20px; margin:0 0 20px;border-left:5px solid #eeeeee; font-style:italic;}
.xoopsCode {background:url(images/code.png); overflow-x: auto; border: 1px solid #EEE; padding-left: 10px}
Expand Down Expand Up @@ -340,7 +343,13 @@ div.order-by a{color:#999; font-size:1.2em;}
.lw30{line-height: 30px;} /* Only Add Line Height 30px */
.nompl{margin: 0; padding: 0; line-height: inherit;}/* No margin, paddind and lineweight -> use in title tags if necessary... */

/* Media Queries */
@media (min-width:320px) and (max-width:768px){
.xoops-banner{top: 0;}
.xoops-banner.pull-right{float: none !important;}
}

/* bla, bla, bla */
.aligncenter{text-align:center; margin-left:auto; margin-right:auto;}
.alignleft{text-align:left; float:left;}
.alignright{text-align:right; float:right;}
.alignright{text-align:right; float:right;}
15 changes: 11 additions & 4 deletions theme.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,17 @@
<div class="container maincontainer">

<{if $xoops_dirname == "system"}>
<div class="aligncenter home-message">
<h2><{$smarty.const.THEME_ABOUTUS}></h2>
<p class="lead"><{$xoops_meta_description}></p>
<p><a href="javascript:;" class="btn btn-md btn-success"><{$smarty.const.THEME_LEARNINGMORE}></a></p>
<div class="aligncenter home-message row">
<div class="<{if $xoops_banner != ""}>col-md-6<{else}>col-md-12<{/if}>">
<h2><{$smarty.const.THEME_ABOUTUS}></h2>

<p class="lead"><{$xoops_meta_description}></p>

<p><a href="javascript:;" class="btn btn-md btn-success"><{$smarty.const.THEME_LEARNINGMORE}></a></p>
</div>

<{if $xoops_banner != ""}><div class="col-md-6"><div class="xoops-banner pull-right"><{$xoops_banner}></div></div><{/if}>

</div><!-- .home-message -->
<{/if}>

Expand Down
2 changes: 1 addition & 1 deletion tpl/nav-menu.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li class="active"><a href="<{$xoops_url}>"><{$smarty.const.THEME_HOME}></a></li>
<li><a href="javascript:;"><{$smarty.const.THEME_MODULE2}></a></li>
<li><a href="javascript:;"><{$smarty.const.THEME_MODULE1}></a></li>
<li class="dropdown"> <a data-toggle="dropdown" class="dropdown-toggle" href="javascript:;"><{$smarty.const.THEME_MODULE2}><b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="javascript:;">Topic 1</a></li>
Expand Down

0 comments on commit 038028c

Please sign in to comment.