function fau_glossary($atts, $content = null)
 {
     extract(shortcode_atts(array("category" => 'category', "id" => 'id', "color" => 'color'), $atts));
     return fau_get_glossar($id, $category, $color);
 }
Ejemplo n.º 2
0
    echo '<h2>' . __('Synonyme', 'fau') . "</h2>\n";
    echo fau_get_synonym();
} elseif ($posttype == 'glossary' && $options['index_glossary_listall']) {
    echo '<h2>' . __('Glossar', 'fau') . "</h2>\n";
    echo fau_get_glossar();
} else {
    $line = 0;
    while (have_posts()) {
        the_post();
        $line++;
        if ($posttype == 'event') {
            get_template_part('post', 'event');
        } elseif ($posttype == 'synonym') {
            echo fau_get_synonym($post->ID);
        } elseif ($posttype == 'glossary') {
            echo fau_get_glossar($post->ID);
        } elseif ($posttype == 'person') {
            echo FAU_Person_Shortcodes::fau_person(array("id" => $post->ID, 'format' => 'kompakt', 'showlink' => 0, 'showlist' => 1));
            //
        } elseif ($posttype == 'post') {
            echo fau_display_news_teaser($post->ID, true);
        } else {
            ?>


						    <h2 class="small">
							    <a href="<?php 
            the_permalink();
            ?>
"><?php 
            the_title();