Ver Mensaje Individual
  #6 (permalink)  
Antiguo 22/01/2007, 16:47
Avatar de xiscomax
xiscomax
 
Fecha de Ingreso: febrero-2006
Mensajes: 379
Antigüedad: 18 años, 10 meses
Puntos: 5
Re: WordPress problema en sidebar con wp_list_pages. ayuda

Este es el sidebar Modificado por mi que kiero usar.

Código PHP:
<!-- list pages  -->    
<div class="theme_sidebar_box">
    <div class="theme_sidebar_box_header"><div class="theme_sidebar-headline_cat">CONTENIDOS</div></div>
        <div class="theme_sidebar_box_main">
            <div class="categories">
                   <?php wp_list_pages('title_li' __('Pages') . '</h8>' ); ?>
            </div>
        </div>
    <div class="theme_sidebar_box_footer">&nbsp;</div>
</div>
<!-- Cats Start  -->
<div class="theme_sidebar_box">
    <div class="theme_sidebar_box_header"><div class="theme_sidebar-headline_cat">GALERIAS</div></div>
        <div class="theme_sidebar_box_main">
            <div class="categories">
                <ul>
                    <?php list_cats(0'''name''asc'''1001110,'','','','',''?>
                </ul>
            </div>
        </div>
    <div class="theme_sidebar_box_footer">&nbsp;</div>
</div>
<!-- Cats end -->
<!-- suche start -->
            <div class="theme_sidebar_box">
                    <div class="theme_sidebar_box_header_small"></div>
                            <div class="theme_sidebar_box_main">
                                <div class="info_box">
                                <?php include (TEMPLATEPATH '/searchform.php'); ?>
                                </div>
                            </div>
                    <div class="theme_sidebar_box_footer">&nbsp;</div>
                </div>
<!-- suche end -->
<div class="theme_sidebar_box">
    <div class="theme_sidebar_box_header"><div class="theme_sidebar-headline_archiv">FOTOS</div></div>
        <div class="theme_sidebar_box_main">
            <div class="categories">
                <ul>
                    <?php wp_get_archives('type=monthly'); ?>
                </ul>
            </div>
        </div>
    <div class="theme_sidebar_box_footer">&nbsp;</div>
</div>
<?php /* If this is the frontpage */ if (is_home()) { ?>    
<div class="theme_sidebar_box">
    <div class="theme_sidebar_box_header"><div class="theme_sidebar-headline_links">LINKS</div></div>
        <div class="theme_sidebar_box_main">
            <div class="categories">
                <ul>
                    <?php get_links('-1''<li>''</li>''<br />'); ?>
                </ul>
            </div>
        </div>
    <div class="theme_sidebar_box_footer">&nbsp;</div>

                </div>
<?php ?>
Y este es el que traia el Theme por defecto.

Código PHP:
<!-- Calender Start  -->    
<div id="theme_calender_box">
    <div id="theme_calender_box_header">
        <div class="theme_sidebar-headline">CALENDARIO</div>
    </div>
        <div id="theme_calender_box_main">
            <?php get_calendar(); ?>
        </div>
    <div id="theme_calender_box_footer">&nbsp;</div>
</div>
<!-- Calender End  -->

<!-- Info Start  -->    
            <?php /* If this is a category archive */ if (is_category()) { ?>
            <div class="theme_sidebar_box">
                    <div class="theme_sidebar_box_header_small"></div>
                            <div class="theme_sidebar_box_main">
                                <div class="info_box">
        
            <?php printf__('You are currently browsing the %1$s weblog archives for the \'%2$s\' category.'), '<a href="' get_settings('siteurl') .'">' get_bloginfo('name') . '</a>'single_cat_title(''false) ) ?>
                
                        </div>
                    </div>
                <div class="theme_sidebar_box_footer">&nbsp;</div>
            </div>
            <?php /* If this is a yearly archive */ } elseif (is_day()) { ?>
            <div class="theme_sidebar_box">
                    <div class="theme_sidebar_box_header_small"></div>
                            <div class="theme_sidebar_box_main">
                                <div class="info_box">
            You are currently browsing the <a href="<?php echo get_settings('siteurl'); ?>"><?php echo bloginfo('name'); ?></a> weblog archives
            for the day <?php the_time('l, F jS, Y'); ?>.
                
                        </div>
                    </div>
                <div class="theme_sidebar_box_footer">&nbsp;</div>
            </div>
            <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
            <div class="theme_sidebar_box">
                    <div class="theme_sidebar_box_header_small"></div>
                            <div class="theme_sidebar_box_main">
                                <div class="info_box">
        
            You are currently browsing the <a href="<?php echo get_settings('siteurl'); ?>"><?php echo bloginfo('name'); ?></a> weblog archives
            for <?php the_time('F, Y'); ?>.
                    
                        </div>
                    </div>
                <div class="theme_sidebar_box_footer">&nbsp;</div>
            </div>
      <?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
              <div class="theme_sidebar_box">
                    <div class="theme_sidebar_box_header_small"></div>
                            <div class="theme_sidebar_box_main">
                                <div class="info_box">
            
            You are currently browsing the <a href="<?php echo get_settings('siteurl'); ?>"><?php echo bloginfo('name'); ?></a> weblog archives
            for the year <?php the_time('Y'); ?>.
                    
                        </div>
                    </div>
                <div class="theme_sidebar_box_footer">&nbsp;</div>
            </div>
         <?php /* If this is a monthly archive */ } elseif (is_search()) { ?>
             <div class="theme_sidebar_box">
                    <div class="theme_sidebar_box_header_small"></div>
                            <div class="theme_sidebar_box_main">
                                <div class="info_box">
        
            You have searched the <a href="<?php echo get_settings('siteurl'); ?>"><?php echo bloginfo('name'); ?></a> weblog archives
            for <strong>'<?php echo wp_specialchars($s); ?>'</strong>. If you are unable to find anything in these search results, you can try one of these links.
                        
                        </div>
                    </div>
                <div class="theme_sidebar_box_footer">&nbsp;</div>
            </div>
            <?php /* If this is a monthly archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
            <div class="theme_sidebar_box">
                    <div class="theme_sidebar_box_header_small"></div>
                            <div class="theme_sidebar_box_main">
                                <div class="info_box">
        
            You are currently browsing the <a href="<?php echo get_settings('siteurl'); ?>"><?php echo bloginfo('name'); ?></a> weblog archives.
                    
                        </div>
                    </div>
                <div class="theme_sidebar_box_footer">&nbsp;</div>
            </div>
            <?php ?>
<!-- Info End  -->    
<div class="theme_sidebar_box">
    <div class="theme_sidebar_box_header_small"></div>
        <div class="theme_sidebar_box_main">
            <div class="info_box" align="center">
        <?php posts_nav_link('','','<img src="/wp-content/themes/bert/images/icons/arrow_A_ver2a.gif" width="9" height="9" alt="Anterior &raquo;">'?>
        <?php posts_nav_link('','<img src="/wp-content/themes/bert/images/icons/arrow_A_ver2.gif" width="9" height="9" alt="Siguiente &raquo;">',''?>
    
            </div>
        </div>
    <div class="theme_sidebar_box_footer">&nbsp;</div>
</div>
<!-- Cats Start  -->    
<div class="theme_sidebar_box">
    <div class="theme_sidebar_box_header"><div class="theme_sidebar-headline_cat">CATEGORIAS</div></div>
        <div class="theme_sidebar_box_main">
            <div class="categories">
                <ul>
                    <?php list_cats(0'''name''asc'''1001110,'','','','',''?>
                </ul>
            </div>
        </div>
    <div class="theme_sidebar_box_footer">&nbsp;</div>
</div>
<!-- Cats end -->
<!-- suche start -->
            <div class="theme_sidebar_box">
                    <div class="theme_sidebar_box_header_small"></div>
                            <div class="theme_sidebar_box_main">
                                <div class="info_box">
                                <?php include (TEMPLATEPATH '/searchform.php'); ?>
                                </div>
                            </div>
                    <div class="theme_sidebar_box_footer">&nbsp;</div>
                </div>
<!-- suche end -->
<div class="theme_sidebar_box">
    <div class="theme_sidebar_box_header"><div class="theme_sidebar-headline_archiv">ARCHIVOS</div></div>
        <div class="theme_sidebar_box_main">
            <div class="categories">
                <ul>
                    <?php wp_get_archives('type=monthly'); ?>
                </ul>
            </div>
        </div>
    <div class="theme_sidebar_box_footer">&nbsp;</div>
</div>
<?php /* If this is the frontpage */ if (is_home()) { ?>    
<div class="theme_sidebar_box">
    <div class="theme_sidebar_box_header"><div class="theme_sidebar-headline_links">Links</div></div>
        <div class="theme_sidebar_box_main">
            <div class="categories">
                <ul>
                    <?php get_links('-1''<li>''</li>''<br />'); ?>
                </ul>
            </div>
        </div>
    <div class="theme_sidebar_box_footer">&nbsp;</div>
</div>

            <div class="theme_sidebar_box">
                    <div class="theme_sidebar_box_header_small"></div>
                            <div class="theme_sidebar_box_main">
                                <div class="info_box">
            <div align="center">
        <?php wp_register(); ?><br>
        <a href="<?php bloginfo('rss2_url'); ?>" title="<?php _e('Syndicate this site using RSS'); ?>"><?php _e('<abbr title="Really Simple Syndication">RSS</abbr>'); ?></a><br>
        <a href="<?php bloginfo('comments_rss2_url'); ?>" title="<?php _e('The latest comments to all posts in RSS'); ?>"><?php _e('Comments <abbr title="Really Simple Syndication">RSS</abbr>'); ?></a><br>
        <a href="http://gmpg.org/xfn/"><abbr title="XHTML Friends Network">XFN</abbr></a><br>
        <?php wp_meta(); ?><br>
    </div>
                                </div>
                            </div>
                    <div class="theme_sidebar_box_footer">&nbsp;</div>
                </div>
<?php ?>


            <!-- Author information is disabled per default. Uncomment and fill in your details if you want to use it.
            <li><h2><?php _e('Author'); ?></h2>
            <p>A little something about you, the author. Nothing lengthy, just an overview.</p>
            </li>
            

                        

            <?php wp_list_pages('title_li=<h2>' __('Pages') . '</h2>' ); ?>
            -->