Changeset 593

Show
Ignore:
Timestamp:
09/02/07 23:21:40 (15 months ago)
Author:
michiel
Message:

added dossier sidebox.
Re #115

Location:
trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/common/mvblog.php

    r591 r593  
    918918        } 
    919919        /* }}} */ 
     920        /* blog_show_dossierlinks {{{ */ 
     921        /** 
     922         * Show list of dossiers. 
     923         */ 
     924        public function blog_show_dossierlinks() { 
     925                if (count($this->dossiers) > 1) { 
     926                        echo "<ul id=\"dossier_list_container\">\n"; 
     927                        foreach ($this->dossiers as $did=>$dossier) { 
     928                                if ($did == 0) continue; 
     929                                echo "<li class=\"dossier_list_item\"><a href=\"index.php?action=viewdossier&id=".$did."\">".$dossier["name"]."</a></li>\n"; 
     930                        } 
     931                        echo "</ul>\n"; 
     932                } 
     933        } 
     934        /* }}} */ 
    920935        /* post_comment($postdata) {{{ */ 
    921936        /** 
     
    12861301        } 
    12871302        /* }}} */ 
    1288         /* view_dossier {{{ */ 
    1289         /** 
    1290          * Overview page for a dossier with links to the articles 
    1291          * 
    1292          * @param int $id The dossier to show 
    1293          */ 
    1294         public function view_dossier($id) { 
    1295                  
    1296         } 
    1297         /* }}} */ 
    12981303} 
    12991304?> 
  • trunk/index.php

    r414 r593  
    5858                                                </li> 
    5959                                                <li> 
     60                                                        <h2>Dossiers</h2> 
     61                                                        <?php $mvblog->blog_show_dossierlinks(); ?> 
     62                                                </li> 
     63                                                <li> 
    6064                                                        <h2>Search</h2> 
    6165                                                        <?php $mvblog->blog_show_search(); ?>