Ver Mensaje Individual
  #3 (permalink)  
Antiguo 10/03/2012, 02:39
trapecio101
 
Fecha de Ingreso: marzo-2012
Mensajes: 3
Antigüedad: 12 años, 1 mes
Puntos: 0
Respuesta: Barra lateral derecha wordpress

Hola amigo este es el sidebar.php

¿Que tengo que cambiar?


Código PHP:
Ver original
  1. <div id="sidebar">
  2.   <?php if (get_option('flex_sidebar_visibility') == "no") { ?>
  3.   <?php if (get_option('flex_adsense_loc2') == "yes" && !get_option('flex_adsense_loc2banner')) { ?>
  4.   <div style="display:block; text-align:center; margin:10px 0 15px 0; text-align:center;">
  5.     <?php
  6.  
  7.     $adsize = get_option('flex_adsense_loc2size');
  8.  
  9.     $adtype = get_option('flex_adsense_loc2type');
  10.    
  11.     $adchannel = get_option('flex_adsense_loc2channel');
  12.  
  13.     include('adsense.php'); ?>
  14.   </div>
  15.   <?php } else if (get_option('flex_adsense_loc2') == "yes" && get_option('flex_adsense_loc2banner')) { ?>
  16.    <div style="display:block; text-align:center; margin:10px 0 15px 0; text-align:center;">
  17.    <?php echo stripslashes(get_option('flex_adsense_loc2banner'));  ?>
  18.    </div>
  19.    <?php } ?>
  20.   <?php } else { ?>
  21.   <div id="sidebar-top">
  22.     <?php if (get_option('flex_adsense_loc2') == "yes" && !get_option('flex_adsense_loc2banner')) { ?>
  23.   <div style="display:block; text-align:center; margin:10px 0 15px 0; text-align:center;">
  24.     <?php
  25.  
  26.     $adsize = get_option('flex_adsense_loc2size');
  27.  
  28.     $adtype = get_option('flex_adsense_loc2type');
  29.    
  30.     $adchannel = get_option('flex_adsense_loc2channel');
  31.  
  32.     include('adsense.php'); ?>
  33.   </div>
  34.   <?php } else if (get_option('flex_adsense_loc2') == "yes" && get_option('flex_adsense_loc2banner')) { ?>
  35.    <div style="display:block; text-align:center; margin:10px 0 15px 0; text-align:center;">
  36.    <?php echo stripslashes(get_option('flex_adsense_loc2banner'));  ?>
  37.    </div>
  38.    <?php } ?>
  39.     <?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar('Sidebar_top') ) : else : ?>
  40.     <div class="toptitle">
  41.       <h5 style="border:1px solid #<?php echo get_option('flex_sidebar_boxborder'); ?>;"><?php echo get_option('flex_sidebar_toptitle'); ?></h5>
  42.     </div>
  43.     <div class="sidebar-top-box">
  44.       <p><?php echo stripslashes(get_option('flex_sidebar_boxtext')); ?></p>
  45.       <div style="clear:both;"></div>
  46.     </div>
  47.     <div class="toptitle">
  48.       <h5 style="border:1px solid #<?php echo get_option('flex_sidebar_boxborder'); ?>;">Recent Posts</h5>
  49.     </div>
  50.     <ul class="widget">
  51.       <?php wp_get_archives('type=postbypost&limit=7'); ?>
  52.     </ul>
  53.  
  54.     <div class="toptitle">
  55.       <h5 style="border:1px solid #<?php echo get_option('flex_sidebar_boxborder'); ?>;">Recent Comments</h5>
  56.     </div>
  57.     <?php include (TEMPLATEPATH . '/simple_recent_comments.php'); ?>
  58.     <?php src_simple_recent_comments(); ?>
  59.     <?php endif; ?>
  60.   </div>
  61.   <div style="clear:both;"></div>
  62.   <?php } ?>
  63.   <?php if (get_option('flex_lsidebar_show') == "yes" || !get_option('flex_lsidebar_show')) { ?>
  64.   <div id="sidebar-left">
  65.   <?php if (get_option('flex_adsense_loc3') == "yes" && !get_option('flex_adsense_loc3banner')) { ?>
  66.     <div style="display:block; text-align:center; margin:15px 0 15px 0; text-align:center;">
  67.       <?php
  68.  
  69.     $adsize = get_option('flex_adsense_loc3size');
  70.  
  71.     $adtype = get_option('flex_adsense_loc3type');
  72.    
  73.     $adchannel = get_option('flex_adsense_loc3channel');
  74.  
  75.     include('adsense.php'); ?>
  76.     </div>
  77.     <?php } else if (get_option('flex_adsense_loc3') == "yes" && get_option('flex_adsense_loc3banner')) { ?>
  78.    <div style="display:block; text-align:center; margin:15px 0 15px 0; text-align:center;">
  79.    <?php echo stripslashes(get_option('flex_adsense_loc3banner'));  ?>
  80.    </div>
  81.    <?php } ?>
  82.     <?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar('Sidebar_left') ) : else : ?>
  83.     <h5>Categories</h5>
  84.     <ul>
  85.     <?php wp_list_categories('title_li=&orderby=name'); ?>
  86.     </ul>
  87.  
  88.     <?php endif; ?>
  89.    
  90.     <br/>
  91.   </div>
  92.   <?php } ?>
  93.   <?php if (get_option('flex_rsidebar_show') == "yes" || !get_option('flex_rsidebar_show')) { ?>
  94.   <div id="sidebar-right">
  95.     <?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar('Sidebar_right') ) : else : ?>
  96.    
  97.    <h5>Archives</h5>
  98.     <ul>
  99.       <?php wp_get_archives('type=monthly'); ?>
  100.     </ul>
  101.     <?php endif; ?>
  102.   </div>
  103.   <?php } ?>
  104. </div>

Última edición por Nekko; 10/03/2012 a las 07:05