Minor fix for WP-istalker Theme inloop_get_cat_links & wpi_get_grid_width functions (version 1.6 & 1.8). You could either wait for WPISTALKER v2 or apply this quick patch.
functions.php
Login to WordPress Admin Open ↓
Presentation » Theme Editor » functions.php
On line 745 replace inloop_get_cat_links function with the following code:-
View Code
function inloop_get_cat_links($echo= 1, $index = false, $separator = '¸')
{
$cats = get_the_category();
$options = array( 'class' => 'cat-link dc-subject',
'href' => '#content',
'rel' => 'category foaf.topic',
'title' => 'category',
'rev' => 'site:archive');
if (is_bool($index)):
$links = "\n";
$ismore = false;
$cnt = count($cats);
if ($cnt >= 0):
$ismore = true;
$endcnt = ($cnt - 1);
endif;
$i = 1;
foreach($cats as $cat):
$options['href'] = wpi_relative(get_category_link($cat->cat_ID));
$options['title'] = $cat->cat_name.' ('.$cat->count.' articles in this category)';
$links .= _t('a',$cat->name, $options);
if ( $ismore && $i == $endcnt):
$links .= ' '._t('span','&',array('class'=>'sep')).' ';
elseif ( $i !== $cnt):
$links .= _t('span',$separator,array('class'=>'sep')).' ';
endif;
$i++;
endforeach;
elseif(is_integer($index)):
$cats = $cats[$index];
$options['href'] = wpi_relative(get_category_link($cats->cat_ID));
$options['title'] = $cats->cat_name.' ('.$cats->count.' articles in this category)';
$links .= _t('a', $cats->name, $options);
endif;
unset($cats);
if ($echo == 1): echo $links; else: return $links; endif;
}
On line 341 replace wpi_get_grid_width function with the below code
View Code
function wpi_get_grid_width( $column = 10 )
{ global $kaizeku;
if (!$kaizeku->engine->enabled_grid){
$kaizeku->object_cache->set(WPI_REF_TOKEN,'admin',array('theme_styles'=>'fluid'));
return false;
} else {
settype( $column, "integer" );
$setwidth = ( $kaizeku->css['colwidth'] + $kaizeku->css['margin'] ) ;
return ( ($column * $setwidth) - $kaizeku->css['margin'] ) ;
}
}
CSS
Read the rest of this entry »