Ver Mensaje Individual
  #3 (permalink)  
Antiguo 16/12/2013, 10:07
Avatar de rodrypaladin
rodrypaladin
Moderador
 
Fecha de Ingreso: abril-2010
Ubicación: Madrid
Mensajes: 2.127
Antigüedad: 14 años, 1 mes
Puntos: 468
Respuesta: Mostrar siempre el título de los posts completos

Hay tantos archivos y funciones que no sabría por donde empezar, puedo pegar el código del index.php principal de la plantilla, aver si sabéis donde está:

Código PHP:
Ver original
  1. <?php get_header(); ?>
  2. <?php if(get_option('tigu_homepage-news-ticker') == 'true' && get_option('tigu_newsticker_home') == 'true'): ?>
  3. <div class="newstickers" style="height:36px;"><?php jnewsticker_display( get_option('tigu_ticker_choosed_id') ) ?></div>
  4. <?php endif; ?>
  5. <!-- START MAIN AREA-->
  6.     <div id="main">
  7. <?php $fake_loop = new WP_Query('showposts=4'); while($fake_loop->have_posts()): $fake_loop->the_post(); ?>
  8. <?php endwhile; ?>
  9.  
  10. <?php if(get_option('tigu_featured_slider') == 'true'): ?>
  11. <?php require_once( trailingslashit( get_template_directory() ). '/includes/sliders/sliders.php' ); ?>
  12. <?php endif; ?>
  13.  
  14. <!-- START HOMEPAGE AREA -->
  15. <?php if(get_option('tigu_homepage_style') == 'magazine'): ?>
  16. <?php if (!function_exists('dynamic_sidebar') || !dynamic_sidebar('Homepage - Magazine Layout')): ?>
  17.  <div class="grids_box_sidebar"><div class="widget-title"><h3>
  18. <?php if( get_option('tigu_template_type', 'WordPres Default') == 'WordPres Default') : ?>
  19. <?php _e('Recent Posts', 'Gameleon'); ?>
  20. <?php else: ?>
  21. <?php _e('Recent Games', 'Gameleon'); ?>
  22. <?php endif; ?>
  23. </h3></div></div>
  24.      <div class="block archive">
  25.     <div class="block-rich">
  26. <?php
  27. $recent_posts = new WP_Query(array(
  28. 'showposts' => 5,
  29. ));
  30. ?>
  31. <?php
  32. $big_count = round(4 / 4);
  33. if(!$big_count) { $big_count = 1; }
  34. ?>
  35. <?php $counter = 1; while($recent_posts->have_posts()): $recent_posts->the_post(); ?>
  36. <?php
  37. if(has_post_format('video') || has_post_format('audio') || has_post_format('gallery')) {
  38. $icon = '<span class="' . get_post_format($post->ID) . '-icon"></span>';
  39. } else {
  40. $icon = '';
  41. }
  42. ?>
  43. <?php if($counter <= $big_count): ?>
  44.     <div class="high-grid">
  45. <?php if(has_post_thumbnail() || is_myarcade_game() ): ?>
  46. <?php $image = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'blog-style-image'); ?>
  47. <?php if ( empty($image[0]) ) $image[0] = myarcade_featured_image(); ?>
  48.     <div class="grid-image"><a class=<?php if( get_option('tigu_template_type', 'WordPres Default') == 'WordPres Default') : ?>"hover_play_small-wp"<?php else: ?>"hover_play_small"<?php endif; ?> href='<?php the_permalink(); ?>' title='<?php the_title(); ?>'>
  49. <?php if(get_option('tigu_timthumb') == 'true'): ?>
  50. <img src="<?php echo get_template_directory_uri(); ?>/scripts/timthumb.php?src=<?php echo $image[0]; ?>&amp;w=174&amp;h=100" alt="<?php ; ?>" />
  51. <?php else: ?>
  52. <img src="<?php echo $image[0]; ?>" width="174" height="100" alt="<?php the_title(); ?>" />
  53. <?php endif; ?>
  54. </a>
  55. <?php echo $icon; ?>
  56.     </div>
  57. <?php else: ?>
  58.   <div class="grid-image"><a href='<?php the_permalink(); ?>' title='<?php the_title(); ?>'>
  59. <img src="<?php echo get_template_directory_uri(); ?>/images/thumbnail.png" width="174" height="100" alt="<?php the_title(); ?>" />
  60. </a>
  61. <?php echo $icon; ?>
  62.   </div>
  63. <?php endif; ?>
  64.     <h2><a href='<?php the_permalink(); ?>' title='<?php the_title(); ?>'><?php the_title(); ?></a></h2>
  65.  
  66.  <p><?php echo get_excerpt(200); ?></p>
  67.     <?php paginate_links();
  68.     $args="";
  69.     wp_link_pages( $args );
  70.     ?>
  71.     </div>
  72. <?php else: ?>
  73.     <div class="high-grid">
  74. <?php if(has_post_thumbnail() || is_myarcade_game() ): ?>
  75. <?php $image = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'blog-style-image'); ?>
  76. <?php if ( empty($image[0]) ) $image[0] = myarcade_featured_image(); ?>
  77.       <div class="grid-image"><a class=<?php if( get_option('tigu_template_type', 'WordPres Default') == 'WordPres Default') : ?>"hover_play_small-wp"<?php else: ?>"hover_play_small"<?php endif; ?> href='<?php the_permalink(); ?>' title='<?php the_title(); ?>'>
  78. <?php if(get_option('tigu_timthumb') == 'true'): ?>
  79. <img src="<?php echo get_template_directory_uri(); ?>/scripts/timthumb.php?src=<?php echo $image[0]; ?>&amp;w=174&amp;h=100" alt="<?php the_title(); ?>" />
  80. <?php else: ?>
  81. <img src="<?php echo $image[0]; ?>" width="174" height="100" alt="<?php the_title(); ?>" />
  82. <?php endif; ?>
  83. </a>
  84. <?php echo $icon; ?>
  85.     </div>
  86. <?php else: ?>
  87.     <div class="grid-image"><a href='<?php the_permalink(); ?>' title='<?php the_title(); ?>'>
  88. <img src="<?php echo get_template_directory_uri(); ?>/images/thumbnail.png" width="174" height="100" alt="<?php the_title(); ?>" />
  89. </a>
  90. <?php echo $icon; ?>
  91.     </div>
  92. <?php endif; ?>
  93.     <h2><a href='<?php the_permalink(); ?>' title='<?php the_title(); ?>'><?php the_title(); ?></a></h2>
  94. <p><?php echo get_excerpt(200); ?></p>
  95.     </div>
  96. <?php endif; ?>
  97. <?php $counter++; endwhile; ?>
  98.     </div></div>
  99. <?php endif; ?>
  100. <?php endif; ?>
  101.  
  102. <?php if(get_option('tigu_homepage_style', 'blog') == 'blog'): ?>
  103. <div class="grids_box_sidebar">
  104. <div class="widget-title">
  105. <h3>
  106.  
  107. <?php if( get_option('tigu_template_type', 'WordPres Default') == 'WordPres Default') : ?>
  108. <?php _e('Recent Posts', 'Gameleon'); ?>
  109. <?php else: ?>
  110. <?php _e('Recent Games', 'Gameleon'); ?>
  111. <?php endif; ?>
  112.  
  113. </h3>
  114. </div>
  115. </div>
  116.     <div class="block archive">
  117.     <div class="block-rich">
  118. <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; ?>
  119. <?php $blog = new WP_Query('showposts='.$posts_per_page.'&paged='.$paged); ?>
  120.  
  121. <?php
  122.     $posts_per_page = get_option('tigu_homeblog_post_number');
  123.     $blog->query('showposts='.$posts_per_page.'&paged='.$paged);
  124. ?>
  125.  
  126. <?php if ($blog->have_posts()) : while ($blog->have_posts()) : $blog->the_post(); ?>
  127.     <div id="post-<?php the_ID(); ?>" <?php post_class('high-grid'); ?>>
  128. <?php
  129.     if(has_post_format('video') || has_post_format('audio') || has_post_format('gallery')) {
  130.     $icon = '<span class="' . get_post_format($post->ID) . '-icon"></span>';
  131. } else {
  132. $icon = '';
  133. }
  134. ?>
  135. <?php if(has_post_thumbnail() || is_myarcade_game()): ?>
  136. <?php $image = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'blog-style-image'); ?>
  137. <?php if ( empty($image[0]) ) $image[0] = myarcade_featured_image(); ?>
  138. <div class="grid-image"><a class=<?php if( get_option('tigu_template_type', 'WordPres Default') == 'WordPres Default') : ?>"hover_play_small-wp"<?php else: ?>"hover_play_small"<?php endif; ?> href='<?php the_permalink(); ?>' title='<?php the_title(); ?>'>
  139. <?php if(get_option('tigu_timthumb') == 'true'): ?>
  140. <img src="<?php echo get_template_directory_uri(); ?>/scripts/timthumb.php?src=<?php echo $image[0]; ?>&amp;w=174&amp;h=100" alt="<?php the_title(); ?>" />
  141. <?php else: ?>
  142. <img src="<?php echo $image[0]; ?>" width="174" height="100" alt="<?php the_title(); ?>" />
  143. <?php endif; ?>
  144. </a><?php echo $icon; ?></div>
  145. <?php else: ?>
  146. <div class="grid-image"><a href='<?php the_permalink(); ?>' title='<?php the_title(); ?>'>
  147. <img src="<?php echo get_template_directory_uri(); ?>/images/thumbnail.png" width="174" height="100" alt="<?php the_title(); ?>" />
  148. </a><?php echo $icon; ?></div>
  149. <?php endif; ?>
  150.  
  151.   <h2><a href='<?php the_permalink(); ?>' title='<?php the_title(); ?>'><?php the_title(); ?></a></h2>
  152. <div class="somepadd block-metas">
  153. <?php if(get_option('tigu_postdatetime_blog-layout', 'true') == 'true'): ?>
  154. <span class="postdatetime-wp">
  155. <?php the_time('Y-m-d') ?>
  156. </span>
  157. <?php endif; ?>
  158.  
  159. <?php if(get_option('tigu_mostplayed-blog-layout', 'true') == 'true'): ?>
  160. <?php if( get_option('tigu_template_type', 'WordPres Default') == 'WordPres Default') : ?>
  161. <span class="postviews-wp" title="<?php _e('Views', 'Gameleon'); ?>: <?php echo getMostPlayed(get_the_ID()); ?> "><?php _e('Views', 'Gameleon'); ?>: <?php echo getMostPlayed(get_the_ID()); ?></span>
  162. <?php else: ?>
  163. <span class="clubs" title="<?php _e('Played', 'Gameleon'); ?>: <?php echo getMostPlayed(get_the_ID()); ?> "><?php echo getMostPlayed(get_the_ID()); ?> <?php _e('plays', 'Gameleon'); ?></span>
  164. <?php endif; ?>
  165. <?php endif; ?>
  166.  
  167. <?php if(get_option('tigu_likes-blog-layout', 'true') == 'true'): ?>
  168. <span class="minilikes">
  169. <?php _e('Likes', 'Gameleon'); ?>: <?php echo $wp_superlike->show_likes($post->ID);?>
  170. </span>
  171. <?php endif; ?>
  172.  
  173. <?php if(get_option('tigu_comments-blog-layout', 'false') == 'true'): ?>
  174. <?php $comment_count = get_comment_count($post->ID); ?>
  175. <?php if ($comment_count['approved'] > 0) : ?>
  176. <?php comments_popup_link( '0', '1', '%', 'heading-comments-exist'); ?>
  177. <?php else: ?>
  178. <?php comments_popup_link( '0', '1', '%', 'heading-comments'); ?>
  179. <?php endif; ?>
  180. <?php endif; ?>
  181.  
  182. </div>
  183.  
  184.      <p><?php echo get_excerpt(get_option('tigu_blog_homepage_excerpt', '270')); ?></p>
  185.     </div>
  186.  
  187. <?php endwhile; endif; ?>
  188.  
  189.     </div>
  190.  
  191.     </div>
  192.     <div style='padding-top: 20px;'>
  193. <?php if (!function_exists('dynamic_sidebar') || !dynamic_sidebar('Homepage - Blog Layout')): ?>
  194. <?php endif; ?>
  195.     </div>
  196. <?php endif; ?>
  197. <!-- END HOMEPAGE AREA -->
  198. <?php if(get_option('tigu_pagination', 'false') == 'true' && get_option('tigu_homepage_style', 'blog') == 'blog'): ?>
  199. <?php kriesi_pagination($pages = '', $range = 2); ?>
  200. <?php endif; ?>
  201.     </div>
  202. <!-- END MAIN AREA-->
  203. <?php get_sidebar(); ?>
  204. <?php get_footer(); ?>
__________________
No te olvides de dar +1 a quien te echa un cable ;)