ich möchte ja nicht die größe vom header ändern. sonderen die thumbnailgröße vom artikelbild in der artikel vorschau.
die function.php sieht wie folgt aus.
<?php
$art_config = parse_ini_file(TEMPLATEPATH."/config.ini", true);
$menu_source_options = array('Pages' => 'Pages', 'Categories' => 'Categories');
$sidebars_style_options = array('Block' => 'Block Style', 'Post' => 'Post Style', 'Simple' => 'Simple Text');
$options = array (
array(
'name' => __('Page', THEME_NS),
'type' => 'heading'
),
array(
'id' => 'art_page_comments_allow',
'name' => __('Comments Allow', THEME_NS),
'std' => art_ini_option('page.comments_allow'),
'desc' => __('Yes', THEME_NS),
'type' => 'checkbox'
),
array(
'name' => __('Menu', THEME_NS),
'type' => 'heading'
),
array(
'id' => 'art_menu_showHome',
'name' => __('Show Home Item', THEME_NS),
'std' => art_ini_option('menu.showHome'),
'desc' => __('Yes', THEME_NS),
'type' => 'checkbox'
),
array(
'id' => 'art_menu_homeCaption',
'name' => __('Home Item Caption', THEME_NS),
'std' => art_ini_option('menu.homeCaption'),
'type' => 'text'
),
array(
'id' => 'art_menu_source',
'name' => __('Default Horizontal Menu Source', THEME_NS),
'std' => art_ini_option('menu.source'),
'type' => 'select',
'options' => $menu_source_options,
'desc' => __('Displayed when Appearance > Menu > Primary menu is not set', THEME_NS),
),
array(
'id' => 'art_vmenu_source',
'name' => __('Default Vertical Menu Source', THEME_NS),
'std' => art_ini_option('vmenu.source'),
'type' => 'select',
'options' => $menu_source_options,
'desc' => __('Displayed when Appearance > Menu > Secondary menu is not set', THEME_NS),
),
array(
'name' => __('Post Thumbnails', THEME_NS),
'type' => 'heading'
),
array(
'id' => 'art_metadata_thumbnail_auto',
'name' => __('Use Auto Thumbnails', THEME_NS),
'std' => art_ini_option('metadata.thumbnail_auto'),
'desc' => __('Generate post thumbnails automatically (use the first image from the post gallery)', THEME_NS),
'type' => 'checkbox'
),
array(
'id' => 'art_metadata_thumbnail_width',
'name' => __('Thumbnail Width', THEME_NS),
'std' => art_ini_option('metadata.thumbnail_width'),
'desc' => __('(px)', THEME_NS),
'type' => 'numeric'
),
array(
'id' => 'art_metadata_thumbnail_height',
'name' => __('Thumbnail Height', THEME_NS),
'std' => art_ini_option('metadata.thumbnail_height'),
'desc' => __('(px)', THEME_NS),
'type' => 'numeric'
),
array(
'name' => __('Post Excerpts', THEME_NS),
'type' => 'heading'
),
array(
'id' => 'art_metadata_excerpt_auto',
'name' => __('Use Auto Excerpts', THEME_NS),
'std' => art_ini_option('metadata.excerpt_auto'),
'desc' => __('Generate post excerpts automatically (When neither more-tag nor post excerpt is used)', THEME_NS),
'type' => 'checkbox'
),
array(
'id' => 'art_metadata_excerpt_words',
'name' => __('Excerpt Length', THEME_NS),
'std' => art_ini_option('metadata.excerpt_words'),
'desc' => __('(words)', THEME_NS),
'type' => 'numeric'
),
array(
'id' => 'art_metadata_excerpt_min_remainder',
'name' => __('Excerpt Balance', THEME_NS),
'std' => art_ini_option('metadata.excerpt_min_remainder'),
'desc' => __('(words)', THEME_NS),
'type' => 'numeric'
),
array(
'id' => 'art_metadata_excerpt_use_tag_filter',
'name' => __('Apply Excerpt Tag Filter', THEME_NS),
'std' => art_ini_option('metadata.excerpt_use_tag_filter'),
'desc' => __('Yes', THEME_NS),
'type' => 'checkbox'
),
array(
'id' => 'art_metadata_excerpt_allowed_tags',
'name' => __('Allowed Excerpt Tags', THEME_NS),
'std' => art_ini_option('metadata.excerpt_allowed_tags'),
'desc' => __('Used when "Apply Excerpt Tag Filter" is enabled', THEME_NS),
'type' => 'widetext'
),
array(
'name' => __('Default Sidebar Style', THEME_NS),
'type' => 'heading'
),
array(
'id' => 'art_sidebars_style_default',
'name' => __('Primary Sidebar', THEME_NS),
'std' => art_ini_option('sidebars_style.default'),
'type' => 'select',
'options' => $sidebars_style_options
),
array(
'id' => 'art_sidebars_style_secondary',
'name' => __('Secondary Sidebar', THEME_NS),
'std' => art_ini_option('sidebars_style.secondary'),
'type' => 'select',
'options' => $sidebars_style_options
),
array(
'id' => 'art_sidebars_style_top',
'name' => __('Top Sidebars', THEME_NS),
'std' => art_ini_option('sidebars_style.top'),
'type' => 'select',
'options' => $sidebars_style_options
),
array(
'id' => 'art_sidebars_style_bottom',
'name' => __('Bottom Sidebars', THEME_NS),
'std' => art_ini_option('sidebars_style.bottom'),
'type' => 'select',
'options' => $sidebars_style_options
),
array(
'id' => 'art_sidebars_style_footer',
'name' => __('Footer Sidebars', THEME_NS),
'std' => art_ini_option('sidebars_style.footer'),
'type' => 'select',
'options' => $sidebars_style_options
),
array(
'name' => __('Footer', THEME_NS),
'type' => 'heading'
),
array(
'id' => 'art_footer_content',
'name' => __('Footer Content', THEME_NS),
'desc' => sprintf(__('<strong>XHTML:</strong> You can use these tags: <code>%s</code>', THEME_NS), 'a, abbr, acronym, em, b, i, strike, strong, span'),
'std' => str_replace('"', '"', art_ini_option('footer.content')),
'type' => 'textarea'
),
array(
'id' => 'art_footer_rss_show',
'name' => __('Show RSS Icon', THEME_NS),
'std' => art_ini_option('footer.rss_show'),
'desc' => __('Yes', THEME_NS),
'type' => 'checkbox'
)
);
define('WP_VERSION', $wp_version);
remove_action('wp_head', 'wp_generator');
wp_enqueue_script('jquery');
if (is_singular() && comments_open() && (get_option('thread_comments') == 1)) {
wp_enqueue_script('comment-reply');
}
define('THEME_NS', 'kubrick');
if (class_exists('xili_language')) {
define('THEME_TEXTDOMAIN',THEME_NS);
define('THEME_LANGS_FOLDER','/lang');
} else {
load_theme_textdomain(THEME_NS, TEMPLATEPATH . '/lang');
}
require_once(TEMPLATEPATH . '/core/parser.php');
require_once(TEMPLATEPATH . '/core/navigation.php');
require_once(TEMPLATEPATH . '/core/sidebars.php');
require_once(TEMPLATEPATH . '/core/widgets.php');
function art_option($name) {
global $options;
$key = 'art_'.str_replace('.', '_', $name);
$result = get_option($key);
if (false === $result) {
foreach ($options as $value) {
if ($value['id'] == $key && isset($value['std'])) {
return $value['std'];
}
}
}
return art_ini_option($name);
}
function art_ini_option($name){
global $art_config;
$separator = '.';
$name = trim($name);
if (strpos($name, $separator) === false) return false;
$path = explode($separator, $name);
$location = $path[0];
if (isset($art_config[$location])){
$group = $art_config[$location];
$key = $path[1];
if (isset($group[$key])){
return $group[$key];
}
}
return false;
}
$art_current_page_template = 'page';
function art_page_template($templateName = null){
global $art_current_page_template;
if ($templateName !== null) {
$art_current_page_template = $templateName;
}
return $art_current_page_template;
}
$art_template_variables = null;
function art_page_variables($variables = null){
global $art_template_variables;
if ($art_template_variables == null){
$art_template_variables = array(
'template_url' => get_bloginfo('template_url') . '/',
'logo_url' => get_option('home'),
'logo_name' => get_bloginfo('name'),
'logo_description' => get_bloginfo('description'),
'menu_items' => art_get_menu_auto('primary-menu', art_option('menu.source'), art_option('menu.showSubitems')),
'sidebar1' => art_get_sidebar('default'),
'sidebarTop' => art_get_sidebar('top'),
'sidebarBottom' => art_get_sidebar('bottom'),
Alles anzeigen