-
-
Minor tweaks
Minor fix for WP-istalker Theme inloop_get_cat_links & wpi_get_grid_width functions (version 1.x). 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
External Links
-
- February 28, 2008 at 8:32 am
- May 17, 2008 at 8:32 am
- 0.3
- url
-
-
-
No Responses to “Wp-Istalker Minor Fixes”
Trackback URL: Use the TrackBack url ↑ to ping this article. If your blog does not support Trackbacks you might want to leave a comment instead.
-
-
"write as if you were talking to a good friend (in front of your mother)."
.haveyoursay
Disclaimer: For any content that you post, you hereby grant to Kaizeku Ban the royalty-free, irrevocable, perpetual, exclusive and fully sublicensable license to use, reproduce, modify, adapt, publish, translate, create derivative works from, distribute, perform and display such content in whole or in part, world-wide and to incorporate it in other works, in any form, media or technology now known or later developed. Some rights reserved.
-
The following "Code" are designed to protect you and other users of this site.
In order to keep these experiences enjoyable and interesting for all of our users, we ask that you follow the above guidlines.
be the first to comment.