Seditio Source
Root |
./othercms/b2evolution_7.2.3/skins/jared_skin/front.main.php
<?php
/**
 * This is the template that displays the front page of a collection (when front page enabled)
 *
 * For a quick explanation of b2evo 2.0 skins, please start here:
 * {@link http://b2evolution.net/man/skin-development-primer}
 *
 * @package evoskins
 * @subpackage bootstrap_main
 */
if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );

if(
evo_version_compare( $app_version, '6.4' ) < 0 )
{
// Older skins (versions 2.x and above) should work on newer b2evo versions, but newer skins may not work on older b2evo versions.
   
die( 'This skin is designed for b2evolution 6.4 and above. Please <a href="http://b2evolution.net/downloads/index.html">upgrade your b2evolution</a>.' );
}

// This is the main template; it may be used to display very different things.
// Do inits depending on current $disp:
skin_init( $disp );


// -------------------------- HTML HEADER INCLUDED HERE --------------------------
skin_include( '_html_header.inc.php', array(
   
'body_class' => 'pictured',
) );
// -------------------------------- END OF HEADER --------------------------------


// ---------------------------- SITE HEADER INCLUDED HERE ----------------------------
// If site headers are enabled, they will be included here:
skin_include( '_body_header.inc.php' );
// ------------------------------- END OF SITE HEADER --------------------------------

if( $Skin->get_setting( 'section_1_display' ) ) {
?>

<div class="evo_pictured_layout evo_container__front_first_section">

<div class="container main_page_wrapper">

        <?php
           
// ------------------------- "Page Top" CONTAINER EMBEDDED HERE --------------------------
            // Display container and contents:
           
widget_container( 'page_top', array(
                   
// The following params will be used as defaults for widgets included in this container:
                   
'container_display_if_empty' => true, // Display container anyway even if no widget
                   
'container_start'     => '<header class="row"><div class="coll-xs-12 coll-sm-12 col-md-4 col-md-push-8"><div class="evo_container $wico_class$">',
                   
'container_end'       => '</div></div></header>',
                   
'block_start'         => '<div class="evo_widget $wi_class$">',
                   
'block_end'           => '</div>',
                   
'block_display_title' => false,
                   
'list_start'          => '<ul>',
                   
'list_end'            => '</ul>',
                   
'item_start'          => '<li>',
                   
'item_end'            => '</li>',
                ) );
           
// ----------------------------- END OF "Page Top" CONTAINER -----------------------------
       
?>

<div class="row">

    <div class="col-md-12 front_main_area">

        <main><!-- This is were a link like "Jump to main content" would land -->

        <!-- ================================= START OF MAIN AREA ================================== -->

        <?php
       
if( ! in_array( $disp, array( 'login', 'lostpassword', 'register', 'activateinfo', 'access_requires_login' ) ) )
        {
// Don't display the messages here because they are displayed inside wrapper to have the same width as form
            // ------------------------- MESSAGES GENERATED FROM ACTIONS -------------------------
           
messages( array(
                   
'block_start' => '<div class="action_messages">',
                   
'block_end'   => '</div>',
                ) );
           
// --------------------------------- END OF MESSAGES ---------------------------------
       
}

       
// Start of wrapper for front page area, in order to have the $Messages outside this block
       
echo '<div class="front_main_content">';
       
?>

        <?php
           
// ------------------- PREV/NEXT POST LINKS (SINGLE POST MODE) -------------------
           
item_prevnext_links( array(
                   
'block_start' => '<ul class="pager">',
                   
'prev_start'  => '<li class="previous">',
                   
'prev_end'    => '</li>',
                   
'next_start'  => '<li class="next">',
                   
'next_end'    => '</li>',
                   
'block_end'   => '</ul>',
                ) );
           
// ------------------------- END OF PREV/NEXT POST LINKS -------------------------
       
?>

        <?php
           
// ------------------------ TITLE FOR THE CURRENT REQUEST ------------------------
           
request_title( array(
                   
'title_before'      => '<h2>',
                   
'title_after'       => '</h2>',
                   
'title_none'        => '',
                   
'glue'              => ' - ',
                   
'title_single_disp' => false,
                   
'title_page_disp'   => false,
                   
'title_widget_page_disp'  => false,
                   
'format'            => 'htmlbody',
                   
'register_text'     => '',
                   
'login_text'        => '',
                   
'lostpassword_text' => '',
                   
'account_activation' => '',
                   
'msgform_text'      => '',
                   
'user_text'         => '',
                   
'users_text'        => '',
                   
'comments_text'     => '',
                ) );
           
// ----------------------------- END OF REQUEST TITLE ----------------------------
       
?>

        <?php
       
// Go Grab the featured post:
       
if( $Item = & get_featured_Item() )
        {
// We have a featured/intro post to display:
            // ---------------------- ITEM BLOCK INCLUDED HERE ------------------------
           
echo '<div class="panel panel-default"><div class="panel-body">';
           
skin_include( '_item_block.inc.php', array(
                   
'feature_block' => true,
                   
'content_mode'  => 'auto',        // 'auto' will auto select depending on $disp-detail
                   
'intro_mode'    => 'normal',    // Intro posts will be displayed in normal mode
                   
'Item'          => $Item,
                ) );
            echo
'</div></div>';
           
// ----------------------------END ITEM BLOCK  ----------------------------
       
}
       
?>

        <?php
           
// -------------- MAIN CONTENT TEMPLATE INCLUDED HERE (Based on $disp) --------------
           
skin_include( '$disp$', array(
                   
'author_link_text' => 'auto',
                   
// Profile tabs to switch between user edit forms
                   
'profile_tabs' => array(
                       
'block_start'         => '<nav><ul class="nav nav-tabs profile_tabs">',
                       
'item_start'          => '<li>',
                       
'item_end'            => '</li>',
                       
'item_selected_start' => '<li class="active">',
                       
'item_selected_end'   => '</li>',
                       
'block_end'           => '</ul></nav>',
                    ),
                   
// Pagination
                   
'pagination' => array(
                       
'block_start'           => '<div class="center"><ul class="pagination">',
                       
'block_end'             => '</ul></div>',
                       
'page_current_template' => '<span>$page_num$</span>',
                       
'page_item_before'      => '<li>',
                       
'page_item_after'       => '</li>',
                       
'page_item_current_before' => '<li class="active">',
                       
'page_item_current_after'  => '</li>',
                       
'prev_text'             => '<i class="fa fa-angle-double-left"></i>',
                       
'next_text'             => '<i class="fa fa-angle-double-right"></i>',
                    ),
                   
// Form params for the forms below: login, register, lostpassword, activateinfo and msgform
                   
'skin_form_before'      => '<div class="panel panel-default skin-form">'
                                                                               
.'<div class="panel-heading">'
                                                                                   
.'<h3 class="panel-title">$form_title$</h3>'
                                                                               
.'</div>'
                                                                               
.'<div class="panel-body">',
                   
'skin_form_after'       => '</div></div>',
                   
// Login
                   
'display_form_messages' => true,
                   
'form_title_login'      => T_('Log in to your account').'$form_links$',
                   
'form_title_lostpass'   => get_request_title().'$form_links$',
                   
'lostpass_page_class'   => 'evo_panel__lostpass',
                   
'login_form_inskin'     => false,
                   
'login_page_class'      => 'evo_panel__login',
                   
'login_page_before'     => '<div class="$form_class$">',
                   
'login_page_after'      => '</div>',
                   
'display_reg_link'      => true,
                   
'abort_link_position'   => 'form_title',
                   
'abort_link_text'       => '<button type="button" class="close" aria-label="Close"><span aria-hidden="true">&times;</span></button>',
                   
// Register
                   
'register_page_before'      => '<div class="evo_panel__register">',
                   
'register_page_after'       => '</div>',
                   
'register_form_title'       => T_('Register'),
                   
'register_links_attrs'      => '',
                   
'register_use_placeholders' => true,
                   
'register_field_width'      => 252,
                   
'register_disabled_page_before' => '<div class="evo_panel__register register-disabled">',
                   
'register_disabled_page_after'  => '</div>',
                   
// Activate form
                   
'activate_form_title'  => T_('Account activation'),
                   
'activate_page_before' => '<div class="evo_panel__activation">',
                   
'activate_page_after'  => '</div>',
                   
// Search
                   
'search_input_before'  => '<div class="input-group">',
                   
'search_input_after'   => '',
                   
'search_submit_before' => '<span class="input-group-btn">',
                   
'search_submit_after'  => '</span></div>',
                   
// Front page
                   
'front_block_first_title_start' => '<h1>',
                   
'front_block_first_title_end'   => '</h1>',
                   
'front_block_title_start'       => '<h2>',
                   
'front_block_title_end'         => '</h2>',
                   
// Form "Sending a message"
                   
'msgform_form_title' => T_('Sending a message'),
                ) );
           
// Note: you can customize any of the sub templates included here by
            // copying the matching php file into your skin directory.
            // ------------------------- END OF MAIN CONTENT TEMPLATE ---------------------------
       
?>

        <?php
           
// End of wrapper for front page area, in order to have the $Messages outside this block
           
echo '</div>';// END OF <div class="front_main_content">
       
?>

        </main>

    </div><!-- .col -->

    <!-- "Slide down" button -->
    <div class="slide_button_wrap"><a href="#" id="slide_button"><i class="fa fa-angle-down" ></i></a></div>

</div><!-- .row -->

</div><!-- .container -->

</div><!-- .evo_pictured_layout -->
<?php } ?>

<!-- =================================== START OF SECONDARY AREA =================================== -->
<section class="secondary_area" id="slide_destination"><!-- white background, ID is used to slide here from "slide_button" -->
<div class="container-fluid">

    <div class="row">

        <?php if( $Skin->get_setting( 'section_2_display' ) ) {
               
// ------------------------- "Front Page Secondary Area" CONTAINER EMBEDDED HERE --------------------------
                // Display container and contents:
               
widget_container( 'front_page_secondary_area', array(
                       
// The following params will be used as defaults for widgets included in this container:
                       
'container_display_if_empty' => false, // If no widget, don't display container at all
                       
'container_start'   => '<div class="evo_container $wico_class$"><div class="container">',
                       
'container_end'     => '</div></div>',
                       
'block_start'       => '<div class="evo_widget $wi_class$">',
                       
'block_end'         => '</div>',
                       
'block_title_start' => '<h2 class="page-header">',
                       
'block_title_end'   => '</h2>',
                       
// The following overrides are used to prevent nested "container" divs with subcontainers:
                       
'override_params_for_subcontainer_row' => array(
                           
'container_start' => '<div class="evo_container $wico_class$">',
                           
'container_end'   => '</div>',
                        ),
                    ) );
               
// ----------------------------- END OF "Front Page Secondary Area" CONTAINER -----------------------------
       
} ?>

        <?php if( $Skin->get_setting( 'section_3_display' ) ) {
               
// ------------------------- "Front Page Area 3" CONTAINER EMBEDDED HERE --------------------------
                // Display container and contents:
               
widget_container( 'front_page_area_3', array(
                       
// The following params will be used as defaults for widgets included in this container:
                       
'container_display_if_empty' => false, // If no widget, don't display container at all
                       
'container_start'   => '<div class="evo_container $wico_class$"><div class="container">',
                       
'container_end'     => '</div></div>',
                       
'block_start'       => '<div class="evo_widget $wi_class$">',
                       
'block_end'         => '</div>',
                       
'block_title_start' => '<h2 class="page-header">',
                       
'block_title_end'   => '</h2>',
                       
// The following overrides are used to prevent nested "container" divs with subcontainers:
                       
'override_params_for_subcontainer_row' => array(
                           
'container_start' => '<div class="evo_container $wico_class$">',
                           
'container_end'   => '</div>',
                        ),
                    ) );
               
// ----------------------------- END OF "Front Page Area 3" CONTAINER -----------------------------
       
} ?>

        <?php if( $Skin->get_setting( 'section_4_display' ) ) {
               
// ------------------------- "Front Page Area 4" CONTAINER EMBEDDED HERE --------------------------
                // Display container and contents:
               
widget_container( 'front_page_area_4', array(
                       
// The following params will be used as defaults for widgets included in this container:
                       
'container_display_if_empty' => false, // If no widget, don't display container at all
                       
'container_start'   => '<div class="evo_container $wico_class$"><div class="container">',
                       
'container_end'     => '</div></div>',
                       
'block_start'       => '<div class="evo_widget $wi_class$">',
                       
'block_end'         => '</div>',
                       
'block_title_start' => '<h2 class="page-header">',
                       
'block_title_end'   => '</h2>',
                       
// The following overrides are used to prevent nested "container" divs with subcontainers:
                       
'override_params_for_subcontainer_row' => array(
                           
'container_start' => '<div class="evo_container $wico_class$">',
                           
'container_end'   => '</div>',
                        ),
                    ) );
               
// ----------------------------- END OF "Front Page Area 4" CONTAINER -----------------------------
       
} ?>

        <?php if( $Skin->get_setting( 'section_5_display' ) ) {
               
// ------------------------- "Front Page Area 5" CONTAINER EMBEDDED HERE --------------------------
                // Display container and contents:
               
widget_container( 'front_page_area_5', array(
                       
// The following params will be used as defaults for widgets included in this container:
                       
'container_display_if_empty' => false, // If no widget, don't display container at all
                       
'container_start'   => '<div class="evo_container $wico_class$"><div class="container">',
                       
'container_end'     => '</div></div>',
                       
'block_start'       => '<div class="evo_widget $wi_class$">',
                       
'block_end'         => '</div>',
                       
'block_title_start' => '<h2 class="page-header">',
                       
'block_title_end'   => '</h2>',
                       
// The following overrides are used to prevent nested "container" divs with subcontainers:
                       
'override_params_for_subcontainer_row' => array(
                           
'container_start' => '<div class="evo_container $wico_class$">',
                           
'container_end'   => '</div>',
                        ),
                    ) );
               
// ----------------------------- END OF "Front Page Area 5" CONTAINER -----------------------------
       
} ?>

    </div><!-- .row -->

</div><!-- .container -->

</section><!-- .secondary_area -->

<script>
// Scroll Down to content
// ======================================================================== /
$slide_down = $( "#slide_button" );
// Smooth scroll to top
$slide_down.on( "click", function(event) {
    event.preventDefault();
    $( "body, html, #skin_wrapper" ).animate({
        scrollTop: $("#slide_destination").offset().top +26
    }, 1000);
});
</script>

<?php
// ---------------------------- SITE FOOTER INCLUDED HERE ----------------------------
// If site footers are enabled, they will be included here:
skin_include( '_body_footer.inc.php' );
// ------------------------------- END OF SITE FOOTER --------------------------------


// ------------------------- HTML FOOTER INCLUDED HERE --------------------------
skin_include( '_html_footer.inc.php' );
// ------------------------------- END OF FOOTER --------------------------------
?>