Seditio Source
Root |
./othercms/b2evolution_7.2.3/skins/green_bootstrap_theme/forum/_item_block_intro.inc.php
<?php
/**
 * This is the template that displays the intro item block: title, author, content (sub-template)
 *
 * This file is not meant to be called directly.
 * It is meant to be called by an include in the main.page.php template (or other templates)
 *
 * b2evolution - {@link http://b2evolution.net/}
 * Released under GNU GPL License - {@link http://b2evolution.net/about/gnu-gpl-license}
 * @copyright (c)2003-2020 by Francois Planque - {@link http://fplanque.com/}
 *
 * @package evoskins
 * @subpackage bootstrap_forums_skin
 */
if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );

global
$Item;

// Default params:
$params = array_merge( array(
       
// Classes for the <article> tag:
       
'item_class'                 => 'evo_post evo_content_block',
       
'item_type_class'            => 'evo_post__ptyp_',
       
'item_status_class'          => 'evo_post__',
       
'item_style'                 => '',
       
// Controlling the title:
       
'item_title_line_before'     => '<div class="evo_post_title">',    // Note: we use an extra class because it facilitates styling
           
'item_title_before'          => '<h2>',
           
'item_title_after'           => '</h2>',
       
'item_title_line_after'      => '</div>',
       
// Controlling the content:
       
'content_mode'               => 'auto',        // excerpt|full|normal|auto -- auto will auto select depending on $disp-detail
       
'image_class'                => 'img-responsive',
       
'image_size'                 => 'fit-1280x720',
       
'author_link_text'           => 'auto',
    ),
$params );
?>

<div class="evo_content_block">

<article id="<?php $Item->anchor_id() ?>" class="<?php $Item->div_classes( $params ) ?>" lang="<?php $Item->lang() ?>"<?php
   
echo empty( $params['item_style'] ) ? '' : ' style="'.format_to_output( $params['item_style'], 'htmlattr' ).'"' ?>>

    <header>
    <?php
        $Item
->locale_temp_switch(); // Temporarily switch to post locale (useful for multilingual blogs)

        // ------- Title -------
       
echo $params['item_title_line_before'];

       
// POST TITLE:
       
$Item->title( array(
               
'before'    => $params['item_title_before'],
               
'after'     => $params['item_title_after'],
               
'link_type' => '#'
           
) );

       
// Display edit link only for intro posts, because for all other posts the link is displayed on the info line.
       
$Item->edit_link( array(
                   
'before' => '<div class="'.button_class( 'group' ).'">',
                   
'after'  => '</div>',
                   
'text'   => get_icon( 'edit' ).' '.T_('Edit Intro'),
                   
'class'  => button_class( 'text' ),
                ) );

        echo
$params['item_title_line_after'];
   
?>
   </header>

    <?php
   
// this will create a <section>
        // ---------------------- POST CONTENT INCLUDED HERE ----------------------
       
skin_include( '_item_content.inc.php', $params );
       
// Note: You can customize the default item content by copying the generic
        // /skins/_item_content.inc.php file into the current skin folder.
        // -------------------------- END OF POST CONTENT -------------------------
    // this will end a </section>
   
?>

    <?php
        locale_restore_previous
();    // Restore previous locale (Blog locale)
   
?>
</article>

</div>