Ver Mensaje Individual
  #3 (permalink)  
Antiguo 28/06/2010, 14:59
Avatar de sanosiris
sanosiris
 
Fecha de Ingreso: junio-2010
Ubicación: Perú
Mensajes: 40
Antigüedad: 14 años, 5 meses
Puntos: 0
Respuesta: META en este Theme bright-sky

Este es el code header.php

Código PHP:
<?php 
function kreative_wp_head() {
    
$kt =& get_instance();
    
    
$jquery $kt->config->item('jquery_source''optimize');
    
    if (
in_array($jquery, array('cdn-google'))) :
        
?>
        <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>    
        <?php 
    
else :
        
?>
        <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/jquery.min.js"></script>
        <?php    
    
endif;
    
    if (
$kt->config->item('enable_cufon''general') == 'true') : ?>
<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/cufon-yui.js"></script>
<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/vegur_400-vegur_700.font.js"></script>
<script type="text/javascript">

<!--
jQuery(function($) {
    Cufon.replace('h1.maintitle, #header h1, h2.mainhead, li.t1 a, li.t2 a, li.t3 a');
});
-->
</script>
        
    <?php endif;
}

add_action('wp_head''kreative_wp_head');
Code index.php:

Código PHP:
<?php get_header(); ?>

    <div id="content" class="subcontainer fleft">
    
        <?php include (TEMPLATEPATH '/functions/brightsky-topbox.php'); ?>
        <ul id="highlight">
         <?php 
        $kt 
=& get_instance();
        
$highlight_posts $kt->config->item('highlight_posts''layout');
        
$home_query $kt->config->item('home_advanced_query''layout');
        
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
        
        
query_posts($query_string $home_query);
        
$count 0;
        
$prev FALSE;
        
        if (
have_posts()) : while (have_posts()) : the_post(); $count++;
        
        if (
$count === ($highlight_posts 1)) : $prev TRUE?>
            </ul><!-- end of #highlight -->
            <div id="prev">
                <h2 class="mainhead">Previous Posts</h2>
                <ul id="excerpt">
        <?php endif; ?>
        
        <?php if ($count <= $highlight_posts) : /* show highlight */ ?>
        <li <?php post_class() ?> id="post-<?php the_ID(); ?>">
            <div class="posthead">
                 <div class="maindate fleft">
                     <?php the_time('d'?><br />
                     <span><?php the_time('M'?> </span>
                 </div>     
                
                <h1 class="maintitle fleft"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h1>
                <br class="clear" />
            </div>
        
            <div class="entry">
                <?php the_content('Read the rest of this entry &raquo;'); ?>
            </div>
            <p class="postinfo">
                <span class="category">Filed under - <?php the_category(', '?></span>              
                <span class="comment"><?php comments_popup_link('No Comments''1 Comment''% Comments'); ?> so far. Add yours now</span>
            </p>
        </li>
        
        <?php else : /* show previous */ ?>
            <li> 
                 <div class="p_coleft fleft">
                     <p class="date_s"><?php the_time('M d, Y'?></p>
                     <span class="comment_s"><?php comments_popup_link('No Comments''1 Comment''% Comments'); ?></span>
                 </div>
                 
                 <div class="p_coright fright">        
                    <h1 class="prevtitle">
                        <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a>
                    </h1>
                    <?php kreative_excerpt('55') ;?>
                </div>
                
                <br class="clear" />
            </li>
        
        <?php endif; ?>
        
    <?php endwhile; ?>
    
    <!-- 5 Start -->
    <?php else : ?>
        <?php include (TEMPLATEPATH '/notfound.php'); ?><!-- Also added and edited notfound.php -->
    <?php endif; ?>
    <!-- Erro 5 End -->
    
    <?php if ($prev === TRUE) : ?>
        </ul></div>
    <?php endif; ?>
    <br class="clear" />
     <?php kreative_pagenavi();?>
</div>
    
<?php get_sidebar(); ?>
<?php get_footer
(); ?>