Changeset 872


Ignore:
Timestamp:
12/24/07 23:12:31 (4 years ago)
Author:
bogdanpasoi@…
Message:

Added calendar to sidebar.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/smf/SSI.php

    r869 r872  
    17561756                $return[$mday][count($array) - 1]['is_last'] = true; 
    17571757 
    1758         if ($output_method != 'echo' || empty($return)) 
     1758        if ($output_method != 'echo') 
    17591759                return $return; 
    17601760 
     
    17651765        foreach ($return as $mday => $array) 
    17661766    { 
    1767         echo '<div class="date">'.strftime("%A, %d %B", strtotime($mday)).'</div>'; 
     1767        echo '<div class="date">'.strftime("%A, %d %b %Y", strtotime($mday)).'</div>'; 
    17681768                foreach ($array as $event) 
    17691769                { 
  • trunk/www/views/header.php

    r852 r872  
    33require_once(IA_ROOT_DIR.'www/views/sitewide.php'); 
    44require_once(IA_ROOT_DIR.'www/views/utilities.php'); 
     5require_once(IA_ROOT_DIR.'www/macros/macro_calendar.php'); 
    56 
    67// Basic view checks. 
     
    8990    </div> 
    9091 
     92    <div id="calendar"> 
     93        <?= macro_calendar() ?> 
     94    </div> 
     95 
    9196    <?php if (identity_is_anonymous()) { ?> 
    9297    <div id="login"> 
Note: See TracChangeset for help on using the changeset viewer.