- b2evolution CMS Support Forums
- b2evolution Support
- Templates, skins, XHTML and CSS
- [1.10.1] Skin Changes from 1.10.0 to 1.10.1
1 laibcoms Jun 02, 2007 06:01
My b2evolution Version: 1.10.1
Here are the skin changes from b2evolution 1.10.0 to b2evolution 1.10.1 based on the diff between the skins/custom/_main.php files.
# 1.1: Find:
$Blog->disp('name', 'htmlhead');
# 1.2: Change to:
$Blog->disp( 'name', 'htmlhead' );
# 2.1: Find:
if( empty( $preview ) ) $Messages->disp( );
// fp>> TODO: I think we should rather forget the messages here so they don't get displayed again.
# 2.2: Change to:
$Messages->disp( '<div class="action_messages">', '</div>' );
# 3.1: Find:
request_title( '<h2>', '</h2>' );
# 3.2: Change to:
request_title( '<h2>', '</h2>', ' - ', 'htmlbody' );
# 4.1: Find:
if( isset($MainList) ) $MainList->display_if_empty(); // Display message if no post
# 4.2: Change to:
if( isset($MainList) ) $MainList->display_if_empty( '' ); // Display message if no post
# 5.1: Find:
$MainList->date_if_changed();
# 5.2: Change to:
$MainList->date_if_changed( '<h2>', '</h2>', '' );
# 6.1: Find:
$Item->permanent_link( '#icon#' );
# 6.2: Change to:
$Item->permanent_link( '#icon#', '#', '' );
# 7.1: Find:
$Item->issue_time();
# 7.2: Change to:
$Item->issue_time( '' );
# 8.1: Find:
$Item->msgform_link( $Blog->get('msgformurl') );
# 8.2: Change to:
$Item->msgform_link( $Blog->get('msgformurl'), ' ', ' ', '#', '#', '' );
# 9.1: Find:
$Item->views();
# 9.2: Change to:
$Item->views( '#', '#', '#' );
# 10.1: Find:
locale_flag( $Item->locale, 'h10px' );
# 10.2: Change to:
locale_flag( $Item->locale, 'h10px', 'flag', '' );
# 10.1: Find:
$Item->categories();
# 10.2: Change to:
$Item->categories( '#', '<strong>', '</strong>', '', '', '<em>', '</em>', ', ' );
# 11.1: Find:
<h3 class="bTitle"><?php $Item->title(); ?></h3>
# 11.2: Change to:
<h3 class="bTitle"><?php $Item->title( '', '', true ); ?></h3>
# 12.1: Find:
<?php link_pages() ?>
# 12.2: Change to:
<?php link_pages( '#', '#', 'number', '#', '#', '%d' ); ?>
# 13.1: Find:
<?php $Item->feedback_link( 'comments', '' ) // Link to comments ?>
<?php $Item->feedback_link( 'trackbacks', ' • ' ) // Link to trackbacks ?>
<?php $Item->edit_link( ' • ' ) // Link to backoffice for editing ?>
# 13.2: Change to:
<?php $Item->feedback_link( 'comments', '', '', '#', '#', '#', '#' ) // Link to comments ?>
<?php $Item->feedback_link( 'trackbacks', ' • ', '', '#', '#', '#', '#' ) // Link to trackbacks ?>
<?php $Item->edit_link( ' • ', '', '#', '#', '' ) // Link to backoffice for editing ?>
# 14.1: Find:
<?php posts_nav_link(); ?>
# 14.2: Change to:
<?php posts_nav_link( ' :: ', '#', '#' ); ?>
^_^
Thanks! Most of these look like the function is including the default conditions for various parameters, meaning I don't think they are required, but it's cool to have a handy reference available.