Permalink
Browse files

float of text in full post or index

  • Loading branch information...
1 parent 73a1ded commit a86d753ee8dc8ae96d78d20d12b1eae7d677ca7e @alexanmtz committed May 1, 2012
Showing with 23 additions and 5 deletions.
  1. +1 −1 category.php
  2. +12 −0 functions.php
  3. +4 −3 header.php
  4. +1 −1 sidebar.php
  5. +5 −0 style.css
View
@@ -30,7 +30,7 @@
</p>
</div>
<div class="post-comments">
- <?php comments_popup_link(__('Nenhum coment&aacute;rio'), __('1 Coment&aacute;rio'), __('% Coment&aacute;rios')); ?>
+ <?php comments_popup_link(__('0'), __('1'), __('%')); ?>
</div>
<?php if(has_post_thumbnail()) : ?>
<a class="image-link" href="<?php the_permalink(); ?>">
View
@@ -6,6 +6,18 @@ function wp_list_categories_hook_relative_path( $output ) {
return str_replace( get_bloginfo('wpurl').'/en/','/', $output );
}
+if(!function_exists('icl_get_languages')) {
+ function icl_get_languages($str) {
+ $languages = array(array(
+ 'active' => 1,
+ 'language_code' => 'pt-br',
+ 'url' => 'http://brazilian_trans',
+ 'native_name' => 'Português'
+ ));
+ return $languages;
+ }
+}
+
add_theme_support('post-thumbnails');
function smart_title() {
View
@@ -36,9 +36,10 @@
<div class="main">
<div class="grid_16 topbar">
<?php if(function_exists('icl_get_languages')) : ?>
- <ul class="horizontal-list">
- <?php foreach(icl_get_languages('skip_missing=Y&orderby=KEY&order=DIR') as $language) :?>
- <li><a class="<?php echo $language['language_code']; ?>" href="<?php echo $language['url']; ?>" title="<?php _e('Alterar idioma para '); echo $language['native_name']; ?>"><span></span><?php echo $language['native_name'] ?></a></li>
+ <ul class="horizontal-list language-bar">
+ <?php foreach(icl_get_languages('skip_missing=1&orderby=KEY&order=DIR') as $language) :?>
+ <?php $active = $language['active'] ? 'active' : ''; ?>
+ <li><a class="<?php echo $active; ?> <?php echo $language['language_code']; ?>" href="<?php echo $language['url']; ?>" title="<?php _e('Alterar idioma para '); echo $language['native_name']; ?>"><span></span><?php echo $language['native_name'] ?></a></li>
<?php endforeach; ?>
</ul>
<?php endif; ?>
View
@@ -8,7 +8,7 @@
<?php $related = new WP_Query( array('posts_per_page' => 10, 'orderby' => 'rand' ) ); ?>
<?php while ( $related->have_posts() ) : $related->the_post(); ?>
<li>
- <a href="<?php the_permalink(); ?>" title="#"><?php the_title(); ?></a>
+ <a href="<?php the_permalink(); ?>" title="<?php the_permalink(); ?>"><?php the_title(); ?></a>
</li>
<?php endwhile; ?>
</ul>
View
@@ -159,6 +159,11 @@ h3 {
background-image: url('images/ico-usa.png');
}
+.topbar .active {
+ background-color: #5F9391;
+ padding: 7px 7px 7px 2px;
+}
+
/*
* title
*/

0 comments on commit a86d753

Please sign in to comment.