Warning: ob_start(): non-static method IRWF::pre_select_post_category() should not be called statically in /var/www/vhosts/raoulwallenberg.net/httpdocs/wp-content/plugins/irwf_add_edit_links_panel.php on line 24
E-Books « The International Raoul Wallenberg Foundation
'parent', 'id' => 'term_id'); /** * @see Walker::start_lvl() * @since 2.1.0 * * @param string $output Passed by reference. Used to append additional content. * @param int $depth Depth of category. Used for tab indentation. * @param array $args Will only append content if style argument value is 'list'. */ function start_lvl(&$output, $depth, $args) { if ( 'list' != $args['style'] ) return; $indent = str_repeat("\t", $depth); $output .= "$indent\n"; } /** * @see Walker::start_el() * @since 2.1.0 * * @param string $output Passed by reference. Used to append additional content. * @param object $category Category data object. * @param int $depth Depth of category in reference to parents. * @param array $args */ function start_el(&$output, $category, $depth, $args) { extract($args); $cat_name = esc_attr( $category->name); $cat_name = apply_filters( 'list_cats', $cat_name, $category ); $link = 'description) ) $link .= 'title="' . sprintf(__( 'View all posts filed under %s' ), $cat_name) . '"'; else $link .= 'title="' . esc_attr( strip_tags( apply_filters( 'category_description', $category->description, $category ) ) ) . '"'; $link .= '>'; $link .= $cat_name . ''; if ( (! empty($feed_image)) || (! empty($feed)) ) { $link .= ' '; if ( empty($feed_image) ) $link .= '('; $link .= ''; $link .= ''; if ( empty($feed_image) ) $link .= ')'; } if ( isset($show_count) && $show_count ) $link .= ' (' . intval($category->count) . ')'; if ( isset($show_date) && $show_date ) { $link .= ' ' . gmdate('Y-m-d', $category->last_update_timestamp); } $meta_key = 'expanded'; $metaValue = get_terms_meta($category->term_id, $meta_key); //print_r($metaValue); global $expand; $expand = $metaValue[0]; if ( $expand==1 ){ $output .= '
    • '; $catsVar = wp_list_categories("echo=0&show_count=0&child_of=$category->term_id&depth=1&title_li=&hide_empty=0&orderby=order"); } if ( isset($current_category) && $current_category ) $_current_category = get_category( $current_category ); if ( 'list' == $args['style'] ) { $output .= "\tterm_id; if ( $expand==1 ){ $class .= ' expandedTitle'; } if ( isset($current_category) && $current_category && ($category->term_id == $current_category) ) $class .= ' current-cat'; elseif ( isset($_current_category) && $_current_category && ($category->term_id == $_current_category->parent) ) $class .= ' current-cat-parent'; $output .= ' class="'.$class.'"'; $output .= ">$link\n"; if ( $expand==1 ){ $output .= '
        '; } $output .=$catsVar; $cat = $category->term_id; global $wpdb; $category = $wpdb->get_results("SELECT $wpdb->term_taxonomy.term_taxonomy_id FROM $wpdb->terms INNER JOIN $wpdb->term_taxonomy ON $wpdb->term_taxonomy.term_id = $wpdb->terms.term_id WHERE $wpdb->term_taxonomy.taxonomy = 'category' AND $wpdb->term_taxonomy.term_id = " . $cat . " ORDER BY $wpdb->terms.term_order"); if ( $expand==1 ){ $currentCat = $category[0]->term_taxonomy_id; // FIXME no duplicar este query con category.php $querystr = "SELECT * FROM $wpdb->posts LEFT JOIN $wpdb->term_relationships ON $wpdb->posts.ID = $wpdb->term_relationships.object_id LEFT JOIN $wpdb->term_taxonomy ON $wpdb->term_taxonomy.term_taxonomy_id = $wpdb->term_relationships.term_taxonomy_id LEFT JOIN wp_postmeta on wp_posts.ID = wp_postmeta.post_id WHERE $wpdb->term_relationships.term_taxonomy_id = $currentCat AND (meta_key !='_rc_cwp_write_panel_id' or meta_key is null) AND ($wpdb->posts.post_status = 'publish' OR $wpdb->posts.post_status = 'inherit') AND $wpdb->posts.post_type = 'post' AND $wpdb->posts.post_parent = '0' GROUP BY wp_posts.ID ORDER BY $wpdb->term_relationships.term_order ASC, $wpdb->posts.post_date DESC"; $pageposts = $wpdb->get_results($querystr, OBJECT); //echo $querystr; if ($pageposts): foreach ($pageposts as $post): setup_postdata($post); if ($post->meta_key=='url'){ $output .= '
      • '.$post->post_title.''; } elseif ($post->meta_key=='file'){ $ext = end(explode(".", $post->meta_value)); switch ($ext) { case 'pdf': $fileClass = "catFilePDF"; break; case 'rmv': case 'ra': $fileClass = "catFileReal"; break; case 'wmv': case 'asx': $fileClass = "catFileWMV"; break; case 'mp3': $fileClass = "catFileMP3"; break; case 'ppt': case 'pps': $fileClass = "catFilePPS"; break; case 'doc': case 'docx': $fileClass = "catFileDoc"; break; case 'jpg': case 'jpeg': case 'gif': $fileClass = "catFilejpg"; break; default : $fileClass = "catFileUnkno"; } $output .= ''.$file.'
      • '.$post->post_title.''; } else { $output .= '
      • '.$post->post_title.''; } $output .= '
      • '; endforeach; endif; $output .= '
      '; } } else { $output .= "\t$link
      \n"; } } /** * @see Walker::end_el() * @since 2.1.0 * * @param string $output Passed by reference. Used to append additional content. * @param object $page Not used. * @param int $depth Depth of category. Not used. * @param array $args Only uses 'list' for whether should append to output. */ function end_el(&$output, $page, $depth, $args) { if ( 'list' != $args['style'] ) return; $output .= "\n"; global $expand; if ($expand==1){ $output .= "
     
  • \n"; $output = str_replace(' ', '', $output ); } } } ?>

    E-Books

    This section is an open and free space for the reflection on various historical current issues. The authors are solely responsible for the opinions herewith presented by each of them and the latter are not necessarily shared by the International Raoul Wallenberg Foundation.


      Fatal error: Class 'Walker_Category_expanded' not found in /var/www/vhosts/raoulwallenberg.net/httpdocs/wp-content/themes/irwf/category.php on line 39