Manual Skin Mod: CasesUpdated: April 22nd, 2014
Created: 22/04/14Four more hacks.
1 to change default main page from showing full categories and post titles as the to 9 most recent posts
a) comment out block
<!-- echo '<h2 class="table_contents">'.T_('Table of contents').'</h2>';
$Skin->display_chapters( array(
'display_blog_title' => false,
'display_children' => true,
'class_selected' => ''
) ); -->
b) Immediately before block insert new line to end php i.e
?>
c) following the block add
<!-- My Mod -->
<?php // ------ START OF POSTS -------
// Display message if no post:
display_if_empty();
while( $Item = & mainlist_get_item() )
{ // For each blog post, do everything below up to the closing curly brace "}"
?>
<h3>
<?php
$Item->title( array(
'link_type' => 'permalink'
) );
?>
</h3>
<?php
// ---- POST CONTENT ----
skin_include( '_item_content.inc.php', array(
'image_size' => 'fit-400x320',
) );
?>
<?php // ---- SHOW POST's CATEGORIES ----
$Item->categories( array(
'before' => '<div class="iaac_cat">'.T_('Categories').': ',
'after' => '</div>',
'include_main' => true,
'include_other' => true,
'include_external' => true,
'link_categories' => true,
) );
?>
d) add class to /media/blogs/cases/style.css
.iaac_cat {
font-weight: 600;
background: #bbaaff;
border-bottom: 1px solid blue;
margin-bottom: 2em;
padding: 0.1em 1em;
}
2. Comment out prev~next navigation on
_item_block.php
a) added lines
53 ?>
54 <?php
b) commented out lines 43 to 53
<!--?php
// ------------------- PREV/NEXT POST LINKS (SINGLE POST MODE) -------------------
item_prevnext_links( array(
'block_start' => '<div class="posts_navigation">',
'separator' => ' :: ',
'block_end' => '</div>',
'target_blog' => $Blog->ID, // this forces to stay in the same blog, should the post be cross posted in multiple blogs
'post_navigation' => 'same_category', // force to stay in the same category in this skin
) );
// ------------------------- END OF PREV/NEXT POST LINKS -------------------------
?-->
3. Formatted background to bText
/media/blogs/cases/style.css
.bText {
background:#fff6ec;
padding:1em;
}
4. Deleted Prev/Next blocks from
index.main.php and
_item_block.php







