set_params( array( 'class_outerdiv' => 'action_messages container-fluid', 'class_success' => 'alert alert-dismissible alert-success fade in', 'class_warning' => 'alert alert-dismissible alert-warning fade in', 'class_error' => 'alert alert-dismissible alert-danger fade in', 'class_note' => 'alert alert-dismissible alert-info fade in', 'before_message' => '', ) ); // --------------------- PAGE LEVEL CACHING SUPPORT --------------------- // Note: This is totally optional. General caching must be enabled in Global settings, otherwise this will do nothing. // Delete this block if you don't care about page level caching. Don't forget to delete the matching section at the end of the page. load_class( '_core/model/_pagecache.class.php', 'PageCache' ); $PageCache = new PageCache( NULL ); // Check for cached content & Start caching if needed: if( ! $PageCache->check() ) { // Cache miss, we have to generate: // --------------------- PAGE LEVEL CACHING SUPPORT --------------------- require_js_defer( '#jquery#' ); require_js_defer( '#bootstrap#' ); require_css( '#bootstrap_css#' ); require_css( 'bootstrap-b2evo_base.bmin.css' ); require_css( 'b2evo_helper_screens.min.css' ); // Initialize font-awesome icons and use them as a priority over the glyphicons, @see get_icon() init_fontawesome_icons( 'fontawesome-glyphicons' ); add_js_for_toolbar(); // Registers all the javascripts needed by the toolbar menu // Send the predefined cookies: evo_sendcookies(); headers_content_mightcache( 'text/html' ); // In most situations, you do NOT want to cache dynamic content! ?> b2evolution - Default Page >
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_('Your b2evolution CMS is installed and working but there is no content yet.').'

'; // Display this link to create blog echo ''; } 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( check_user_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 --------------------------------- ?>
'; } } ?>
end_collect(); } // --------------------- PAGE LEVEL CACHING SUPPORT --------------------- ?>