Hello! Please I need help to find the code to change to following:
Widget Index Insert - The widget area inserted after x posts on the index page.
I like to change the pre-setting x= after 2 posts to another value.
I have Thematic 0.9.7.7 and (as a non PHP-coder, maybe "Hacker") searched down and up to find pieces of the generating code. I think it is the variable "thm_insert_position", but I found only one place, where it is used and no place where it is defined. Here is what i found:
content-extensions.php
if ($count==$thm_insert_position) {
get_sidebar('index-insert');
}
$count = $count + 1;
endwhile;
}
} // end index_loop
sidebar-index-insert.php
// action hook creating the 'index-insert' widget area
widget_area_index_insert();
widgets-extensions.php
'Index Insert' => array(
'admin_menu_order' => 700,
'args' => array (
'name' => 'Index Insert',
'id' => 'index-insert',
'description' => __('The widget area inserted after x posts on the index page.', 'thematic'),
'before_widget' => thematic_before_widget(),
'after_widget' => thematic_after_widget(),
'before_title' => thematic_before_title(),
'after_title' => thematic_after_title(),
),
'action_hook' => 'widget_area_index_insert',
'function' => 'thematic_index_insert',
'priority' => 10,
),
// Define the Index Insert
function thematic_index_insert() {
if (is_active_sidebar('index-insert')) {
echo thematic_before_widget_area('index-insert');
dynamic_sidebar('index-insert');
echo thematic_after_widget_area('index-insert');
}
}
sidebar-extensions.php
// ocated in sidebar-index-insert.php
function widget_area_index_insert() {
do_action('widget_area_index_insert');
} // end widget_area_index_insert