function prologue_recent_projects_widget($args) { extract($args); $options = get_option('prologue_recent_projects'); $title = empty($options['title']) ? __('Recent Tags') : $options['title']; $num_to_show = empty($options['num_to_show']) ? 35 : $options['num_to_show']; $num_to_show = (int) $num_to_show; $before = $before_widget; $before .= $before_title . $title . $after_title; $after = $after_widget; echo prologue_recent_projects($num_to_show, $before, $after); }
$open = get_cat_id($abierto); $padre = $wpdb->get_var("SELECT parent from $wpdb->term_taxonomy WHERE term_id = '$open'"); ?> <div id="sidebar"> <div style="float:left;"><?php include (TEMPLATEPATH . '/searchform.php'); ?></div> <ul> <?php if( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) { $before = "<li><h2>Proyectos recientes</h2>\n"; $after = "</li>\n"; $num_to_show = 35; echo prologue_recent_projects( $num_to_show, $before, $after ); } // if dynamic_sidebar ?> </ul> <? // Projects list idea global $wpdb; // Prioridad echo '<div style="padding-bottom:10px;padding-top:10px;font-weight:bold;font-size:2em;"><strong>Prioridad</strong></div>'; $categories = $wpdb->get_col("SELECT term_id FROM wp_term_taxonomy WHERE parent = 68 ORDER BY term_id DESC");