Recent Topics

[SOLVED] Tealpro (5.1.2)

Started by on Sep 28, 2014 – Contents updated: Oct 01, 2014

Sep 28, 2014 03:06    

Hi,
After upgrade to 5.1.2, I get this error :
<code>Parse error: syntax error, unexpected end of file in /sites/test/b2evo-5.1.2_2014/skins/tealpro/_item_block.inc.php on line 163</code>
Header of the page is displayed but no post and sidebar. It works fine with any other skins. With debug, I couldn't find any error and have no idea what was changed since my previous version (4.1.6).
Thanks
Mel

_item_block.inc.php

PHP

<?php
/**
 * This is the template that displays the item block
 *
 * 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/license.html}
 * @copyright (c)2003-2009 by Francois PLANQUE - {@link http://fplanque.net/}
 *
 * @package evoskins
 */
if( !defined('EVO_MAIN_INIT') ) die'Please, do not access this page directly.' );
 
global $Item;
 
// Default params:
$params array_mergearray(
        'feature_block'   => false,
        'content_mode'    => 'auto',        // 'auto' will auto select depending on $disp-detail
        'item_class'      => 'post',
        'image_size'        => 'fit-400x320',
    ), $params );
 
?>
<div id="<?php $Item->anchor_id() ?>" class="<?php $Item->div_classes$params ?>" lang="<?php $Item->lang() ?>">
 
    <?php
        $Item->locale_temp_switch(); // Temporarily switch to post locale (useful for multilingual blogs)
    ?>
 
 
<?php if( ! $Item->is_intro() ){if( $Skin->get_setting('display_metadata') ){ if( ! $Item->is_featured()) {?> 
<div class="date">
<?php
    $Item->issue_datearray(
            'before'    => '',
            'after'     => '',
            'date_format' => 'M',
        ));
    
    $Item->issue_datearray(
            'before'    => '<span>',
            'after'     => '</span>',
            'date_format' => 'd',
        ));
    ?>
 
</div>     
<? } } }?>
 
    <div <?php if( ! $Item->is_intro() ){if( $Skin->get_setting('display_metadata') ){ if( ! $Item->is_featured()) { ?> class="posthead"<? } } } ?>>
   
    <h2 class="title"><?php $Item->title(); ?></h2>
 
     <?php if( ! $Item->is_intro() ){if( $Skin->get_setting('display_metadata') ){?> 
    
            <p class="meta">
                    <?php
                        $Item->authorarray(
                                'before'    => T_('De').' ',
                                'after'     => ' ',
 
                            ) );
                    ?> 
        
                    <?php
                        $Item->issue_datearray(
                            'before'      => T_('le').' ',
                            'after'       => ' ',
                            'date_format' => 'j-m-Y H:i',
                        ) );
                    ?>
                    <?php
                    $Item->categoriesarray(
                        'before'          => '  -  'T_('Dans: '),
                        'after'           => '',
                        'include_main'    => true,
                        'include_other'   => true,
                        'include_external'=> true,
                        'link_categories' => true,
                    ) );
                ?>
                    <?php
                        // Link to comments, trackbacks, etc.:
                        $Item->feedback_linkarray(
                                'type' => 'comments',
                                'link_before' => '-',
                                'link_after' => '',
                                'link_text_zero' => '#',
                                'link_text_one' => '#',
                                'link_text_more' => '#',
                                'link_title' => '#',
                                'use_popup' => false,
                            ) );
                    ?>
                    <?php
                    $Item->edit_linkarray// Link to backoffice for editing
                            'before'    => '  -  ',
                            'after'     => '',
                        ) );
                    ?>
 
            </p>
    <?php } } ?>
    
    </div> <!-- end posthead -->
    
 
    
    <div class="entry">
        <?php
            // ---------------------- POST CONTENT INCLUDED HERE ----------------------
            skin_include'_item_content.inc.php'$params );
            // Note: You can customize the default item feedback by copying the generic
            // /skins/_item_content.inc.php file into the current skin folder.
            // -------------------------- END OF POST CONTENT -------------------------
        ?>
    </div>
 
    <?php
    
    
    if( ! $Item->is_intro() )
    {
        if( $Skin->get_setting('display_metadata') )
        {
 
        ?>
            <p class="links">    
                <?php
                    // List all tags attached to this post:
                    $Item->tagsarray(
                            'before' =>         T_('Tags').': ',
                            'after' =>          '',
                            'separator' =>      ', ',
                        ) );
                ?>
            
            </p>
        <?php
        }
    }
    ?>
    <div class="feedback">
        <?php
            // ------------------ FEEDBACK (COMMENTS/TRACKBACKS) INCLUDED HERE ------------------
                skin_include'_item_feedback.inc.php'array(
                    'before_section_title' => '<h4>',
                    'after_section_title'  => '</h4>',
                ) );
            // Note: You can customize the default item feedback by copying the generic
            // /skins/_item_feedback.inc.php file into the current skin folder.
            // ---------------------- END OF FEEDBACK (COMMENTS/TRACKBACKS) ---------------------
        ?>
    </div>
 
</div>
 
<?php
locale_restore_previous();    // Restore previous locale (Blog locale)
?>

Sep 30, 2014 01:57

Thanks! It works fine! :-)


Form is loading...

powered by b2evolution – This forum is powered by b2evolution CMS, a complete engine for your website.