See More

check() ) { // Cache miss, we have to generate: // --------------------- PAGE LEVEL CACHING SUPPORT --------------------- // Add CSS: require_css( 'basic_styles.css', 'rsc_url' ); // the REAL basic styles require_css( 'basic.css', 'rsc_url' ); // Basic styles require_css( 'evo_distrib_2.css', 'rsc_url' ); add_js_for_toolbar(); // Registers all the javascripts needed by the toolbar menu headers_content_mightcache( 'text/html' ); // In most situations, you do NOT want to cache dynamic content! ?>

b2evolution - Default Page > '; } else { echo '
'; } echo "\n"; ?>
b2evolution load_all(); if( $pagenow == 'index.php' || count( $BlogCache->cache ) == 0 ) { // This page is actually included by the index.html page OR there are no blogs ?>

'
', 'block_end' => '
', ) ); if( count( $BlogCache->cache ) == 0 ) { // There is no blog on this system! echo '

'.T_('b2evolution is installed and ready but you haven\'t created any content collection on this system yet.').'

'; if( is_logged_in() && $current_User->check_perm( 'blogs', 'create' ) ) { // Display this link only for users who can create blog echo '

'.T_( 'Create a first collection' ).' »

'; } } else { echo '

'.T_('You have successfully installed b2evolution.').'

'; echo '

'.T_('You haven\'t set a default collection yet. Thus, you see this default page.').'

'; if( is_logged_in() && $current_User->check_perm( 'blogs', 'create' ) ) { // Display this link only for users who can create blog ?>

»

cache ) ) { // There are blogs on this system! ?>

    get_first(); ! is_null( $l_Blog ); $l_Blog = & $BlogCache->get_next() ) { # by uncommenting the following lines you can hide some blogs // if( $curr_blog_ID == 2 ) continue; // Hide blog 2... echo '
  • '; printf( T_('Blog #%d'), $l_Blog->ID ); echo ': '; $l_Blog->disp( 'name' ); echo ''; echo '
  • '; } // ---------------------------------- END OF BLOG LIST --------------------------------- ?>
check_perm( 'blogs', 'create' ) ) { // Display this link only for users who can create blog echo '

'.T_( 'Add a new collection' ).' »

'; } ?>
end_collect(); } // --------------------- PAGE LEVEL CACHING SUPPORT --------------------- ?>