( Zaloguj | Zarejestruj )
![]() ![]() |
17.12.2009 - 17:53
Post
#1
|
|
|
Grupa: Bloger Postów: 8 Nr: 6 832 |
Korzystam ze skórki K2 i strasznie wkurzała mnie nawigacja, która pojawia się do góry strony, która ma za zadanie przeniesc nas do starszych wpisów. Dlatego też skasowałem wg mnie odpowiednie pliki które za to odpowiadaja. Wszystko pieknie ale pozostał jeden wkurzający element z tej nawigacji. Do góry i na dole strony jest « Older entries. Za Chiny nie moge tego usunąć, przeszukałem cały theme, nigdzie tego nie, jest jedynie coś w k2\app\display\rollingarchive.php ale nawet jak usuwam to i tak cały czas to cholerstwo zaśmieca mi strone. Moja strona to http://blogfutbol.pl/ Miał ktoś może podobny problem?
|
|
|
|
17.12.2009 - 19:43
Post
#2
|
|
![]() aktywność: ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Grupa: Redakcja Postów: 4 252 Nr: 5 919 |
Pokaż kod pliku index.php albo home.php z Twojego thema.
|
|
|
|
17.12.2009 - 20:38
Post
#3
|
|
|
Grupa: Bloger Postów: 8 Nr: 6 832 |
CODE <?php get_header(); ?>
<div class="content"> <div id="primary-wrapper"> <div id="primary" role="main"> <div id="notices"></div> <a name="startcontent" id="startcontent"></a> <?php /* K2 Hook */ do_action('template_primary_begin'); ?> <?php if ( '1' == get_option('k2rollingarchives') ): ?> <div id="dynamic-content"> <?php include(TEMPLATEPATH . '/app/display/rollingarchive.php'); ?> </div> <!-- #dynamic-content --> <?php else: ?> <div id="current-content" class="hfeed"> <?php include(TEMPLATEPATH . '/app/display/theloop.php'); ?> </div> <!-- #current-content --> <div id="dynamic-content"></div> <?php endif; ?> <?php /* K2 Hook */ do_action('template_primary_end'); ?> </div> <!-- #primary --> </div> <!-- #primary-wrapper --> <?php get_sidebar(); ?> </div> <!-- .content --> <?php get_footer(); ?> |
|
|
|
17.12.2009 - 23:56
Post
#4
|
|
![]() aktywność: ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Grupa: Redakcja Postów: 4 252 Nr: 5 919 |
To pokaż jeszcze plik /app/display/theloop.php
|
|
|
|
18.12.2009 - 16:17
Post
#5
|
|
|
Grupa: Bloger Postów: 8 Nr: 6 832 |
To jest k2-loop.php :
CODE <?php /** * Default Loop Template * * This file is loaded by multiple files and used for generating the loop * * @package K2 * @subpackage Templates */ // Post index for semantic classes $post_index = 1; while ( have_posts() ): the_post(); ?> <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <div class="entry-head"> <h3 class="entry-title"> <a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php k2_permalink_title(); ?>"><?php the_title(); ?></a> </h3> <?php /* Edit Link */ edit_post_link( __('Edit','k2_domain'), '<span class="entry-edit">', '</span>' ); ?> <?php if ( 'post' == $post->post_type ): ?> <div class="entry-meta"> <?php k2_entry_meta(1); ?> </div> <!-- .entry-meta --> <?php endif; ?> <?php /* K2 Hook */ do_action('template_entry_head'); ?> </div><!-- .entry-head --> <div class="entry-content"> <?php the_content( sprintf( __('Czytaj więcej ? %\'', 'k2_domain'), the_title('', '', false) ) ); ?> </div><!-- .entry-content --> <div class="entry-foot"> <?php wp_link_pages( array('before' => '<div class="entry-pages"><span>' . __('Pages:','k2_domain') . '</span>', 'after' => '</div>' ) ); ?> <?php if ( 'post' == $post->post_type ): ?> <div class="entry-meta"> <?php k2_entry_meta(2); ?> </div><!-- .entry-meta --> <?php endif; ?> <?php /* K2 Hook */ do_action('template_entry_foot'); ?> </div><!-- .entry-foot --> </div><!-- #post-ID --> <?php endwhile; /* End The Loop */ ?> <?php if(function_exists('wp_page_numbers')) : wp_page_numbers(); endif; ?> A to jest plik /app/display/theloop.php CODE <?php // This is the loop, which fetches entries from your database. // It is a very delicate piece of machinery. Be gentle! // array for loading loop templates $templates = array(); $page_head = ''; if ( is_home() ) { $templates[] = 'blocks/k2-loop-home.php'; } elseif ( is_archive() ) { if ( is_date() ) { the_post(); if ( is_day() ) { $templates[] = 'blocks/k2-loop-archive-day.php'; $page_head = sprintf( __('Daily Archive for %s','k2_domain'), get_the_time( __('F jS, Y','k2_domain') ) ); } elseif ( is_month() ) { $templates[] = 'blocks/k2-loop-archive-month.php'; $page_head = sprintf( __('Monthly Archive for %s','k2_domain'), get_the_time( __('F, Y','k2_domain') ) ); } elseif ( is_year() ) { $templates[] = 'blocks/k2-loop-archive-year.php'; $page_head = sprintf( __('Yearly Archive for %s','k2_domain'), get_the_time( __('Y','k2_domain') ) ); } $templates[] = 'blocks/k2-loop-archive-date.php'; rewind_posts(); } elseif ( is_category() ) { $templates[] = 'blocks/k2-loop-category-' . absint( get_query_var('cat') ) . '.php'; $templates[] = 'blocks/k2-loop-category.php'; $page_head = sprintf( __('Archive for the \'%s\' Category','k2_domain'), single_cat_title('', false) ); } elseif ( is_tag() ) { $templates[] = 'blocks/k2-loop-tag-' . get_query_var('tag') . '.php'; $templates[] = 'blocks/k2-loop-tag.php'; $page_head = sprintf( __('Tag Archive for \'%s\'','k2_domain'), single_tag_title('', false) ); } elseif ( is_author() ) { $templates[] = 'blocks/k2-loop-author.php'; $page_head = sprintf( __('Author Archive for %s','k2_domain'), get_author_name( get_query_var('author') ) ); } $templates[] = 'blocks/k2-loop-archive.php'; } elseif ( is_search() ) { $templates[] = 'blocks/k2-loop-search.php'; $page_head = sprintf( __('Search Results for \'%s\'','k2_domain'), attribute_escape( get_search_query() ) ); } $templates[] = 'blocks/k2-loop.php'; ?> <?php /* Top Navigation */ k2_navigation('nav-above'); ?> <?php if ( ! empty($page_head) ): ?> <div class="page-head"> <h1><?php echo $page_head; ?></h1> <?php if ( is_paged() ): ?> <h2 class="archivepages"><?php printf( __('Page %1$s of %2$s', 'k2_domain'), intval( get_query_var('paged')), $wp_query->max_num_pages); ?></h2> <?php endif; ?> </div> <?php endif; ?> <?php /* Check if there are posts */ if ( have_posts() ): ?> <?php /* Load the loop templates */ locate_template( $templates, true ); ?> <?php /* If there is nothing to loop */ else: define('K2_NOT_FOUND', true); ?> <div class="hentry four04"> <div class="entry-head"> <h3 class="center"><?php _e('Not Found','k2_domain'); ?></h3> </div> <div class="entry-content"> <p><?php _e('Oh no! You\'re looking for something which just isn\'t here! Fear not however, errors are to be expected, and luckily there are tools on the sidebar for you to use in your search for what you need.','k2_domain'); ?></p> </div> </div><!-- .hentry .four04 --> <?php endif; /* End Loop Init */ ?> <?php /* Bottom Navigation */ k2_navigation('nav-below'); ?> Strasznie skomplikowana dla mnie budowa tego thema. Niemiłosiernie trzeba się namęczyć żeby znaleźć np. poszczególną nazwę do przetłumaczenia. Cały czas mam też problem z przetłumaczeniem słowa Tags, które poprzedza każdy wpis. Szukam, szukam w każdym pliku, zmieniam na Tagi, ale cały czas nie chce się przetłumaczyć :/ Ten post edytował abercjusz 18.12.2009 - 16:19 |
|
|
|
18.12.2009 - 17:31
Post
#6
|
|
![]() aktywność: ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Grupa: Redakcja Postów: 4 252 Nr: 5 919 |
To czasem nie będą owe kody?
KOD <?php /* Top Navigation */ k2_navigation('nav-above'); ?>
<?php /* Bottom Navigation */ k2_navigation('nav-below'); ?> |
|
|
|
18.12.2009 - 17:44
Post
#7
|
|
|
Grupa: Bloger Postów: 8 Nr: 6 832 |
Tak, dzięki za pomoc
|
|
|
|
![]() ![]() |
| : 9 02 12 - 08:28 |