winnt adlı üyeden alıntı: mesajı görüntüle
temanın bahsettiğim dosyasındaki kodları yapıştırımısınız buraya?

Alıntı
<?php if ( ! isset( $content_width ) ) $content_width = 900;

include (TEMPLATEPATH . '/theme-options/notifier/update-notifier.php');
// Notifier Info
$themename = "Magnus";
$themefolder = "magnus";

define ('theme_name', $themename );
define ('theme_ver' , 1.4 );

$notifier_name = $themename;
$notifier_url = "http://www.....net/feed";

// Constants for the theme name, folder and remote XML url
define( 'MTHEME_NOTIFIER_THEME_NAME', $themename );
define( 'MTHEME_NOTIFIER_THEME_FOLDER_NAME', $themefolder );
define( 'MTHEME_NOTIFIER_XML_FILE', $notifier_url );
define( 'MTHEME_NOTIFIER_CACHE_INTERVAL', 1 );


/*------ MAGNUS THEME OPTIONS ------*/
require('theme-options/general.php');
require('theme-options/settings.php');

/*------ MAGNUS THEME SUPPORT ------*/
add_theme_support( 'custom-header');
add_theme_support( 'custom-background');

/*------ MAGNUS TIKER PLUGIN ------*/
require('includes/plugins/jnewsticker/jnewsticker-for-wordpress.php');
require_once('includes/plugins/twitter/twitter.php');
require_once('includes/plugins/display-widgets/display-widgets.php');
require_once('includes/plugins/instant-gallery/instant-gallery.php');

/*------ MAGNUS NOTICE ------*/
require('includes/annoucements/simple-notices.php');

/*------ MAGNUS FONTS ------*/
require_once ('includes/plugins/fonts/gwf-options.php');

/*------ MAGNUS SHORTCODES ------*/
require_once ('includes/shortcodes.php');

/*------ MAGNUS RELATED ------*/
require_once('includes/related-posts.php');

/*------ MAGNUS GALLERY ------*/
require_once('includes/gallery.php');

/*------ MAGNUS PAGINATION ------*/
require_once('includes/pagination.php');

/*------ MAGNUS TRANSLATION ------*/
load_theme_textdomain( 'magnus', get_template_directory().'/languages' );
$locale = get_locale();
$locale_file = get_template_directory().'/languages/$locale.php';
if ( is_readable($locale_file) )
require_once($locale_file);

/*------ MAGNUS MENUS ------*/
register_nav_menu('mgtopmenu', __('Top Navigation', 'magnus'));
register_nav_menu('mgmainmenu', __('Main Navigation', 'magnus'));

/*------ MAGNUS THUMBNAILS ------*/
add_theme_support( 'post-thumbnails' );

/*------ MAGNUS SIDEBARS ------*/
require_once('includes/sidebars.php');

/*------ MAGNUS PROFILE ------*/
require_once('includes/profile.php');

/*------ MAGNUS COMMENTS ------*/
require_once('includes/comments.php');

/*------ THUMBNAILS ------*/
require_once('includes/thumbnails.php');

/*------ POST VIEWS ------*/
require_once('includes/post-views-count.php');

/*------ DROP DOWN ------*/
include_once('includes/dropdown-menus.php');

/*------ MAGNUS WIDGETS ------*/
require_once('includes/widgets/facebook-widget.php');
require_once('includes/widgets/video-widget.php');
require_once('includes/widgets/magnus-magazine-one.php');
require_once('includes/widgets/magnus-magazine-two.php');
require_once('includes/widgets/magnus-magazine-three.php');
require_once('includes/widgets/recent-posts.php');
require_once('includes/widgets/comment.php');
require_once('includes/widgets/popular-posts.php');
require_once('includes/widgets/adds300.php');
require_once('includes/widgets/adds468.php');
require_once('includes/widgets/adds125.php');
require_once('includes/widgets/search-widget.php');
require_once('includes/widgets/flickr-widget.php');
require_once('includes/widgets/whos-online.php');

/*------ MAGNUS UNREGISTER WIDGET ------*/
function unregister_default_wp_widgets() {
unregister_widget('WP_Widget_Recent_Comments');
unregister_widget('WP_Widget_Search');
}
add_action('widgets_init', 'unregister_default_wp_widgets', 1);

/*------ MAGNUS RSS ------*/
add_theme_support( 'automatic-feed-links' );

/*------ MAGNUS POST FORMAT ------*/
add_theme_support( 'post-formats', array( 'video', 'audio', 'gallery' ) );

/*------ MAGNUS SEARCH ------*/
function SearchFilter($query) {
if ($query->is_search) {
$query->set('post_type', array( 'post'));
}
return $query;
}
add_filter('pre_get_posts','SearchFilter');

/*------ MAGNUS WORD ------*/
function string_limit_words($string, $word_limit)
{
$words = explode(' ', $string, ($word_limit + 1));
if(count($words) > $word_limit)
array_pop($words);
return implode(' ', $words) . '...';
}
# Limit Title
function mg_title_limit($max_char, $more_link_text = '', $stripteaser = 0, $more_file = '') {
$title = get_the_title($more_link_text, $stripteaser, $more_file);
$title = apply_filters('the_title', $title);
$title = str_replace(']]>', ']]&gt;', $title);
$title = strip_tags($title);

if ((strlen($title)>$max_char) && ($espacio = strpos($title, " ", $max_char ))) {
$title = substr($title, 0, $espacio);
$title = $title;
echo "";
echo $title;
echo "...";
}
else {
echo "";
echo $title;
}
}

/*------ MAGNUS TAG ------*/
add_filter( "widget_tag_cloud_args", 'my_widget_tag_cloud_args' );
function my_widget_tag_cloud_args( $args ) {
$args['number'] = 12;
$args['largest'] = 14;
$args['smallest'] = 12;
$args['number'] = 12;
$args['format'] = 'list';
$args['unit'] = 'px';
return $args;
}

/*------ MAGNUS RATING ------*/
function voting($id) {
global $user_ID;
$currentvotes = get_post_meta($id, 'votes', true);
$voters = get_post_meta($id, 'thevoters', true);
$voters = explode(",", $voters);
$alreadyVoted ="";
foreach($voters as $voter) {
if($voter == $user_ID) $alreadyVoted = true;
}

if(!$currentvotes) $currentvotes = 0;
echo '<div class="vote vote'.$id.'"><div class="star"></div><span>'.$currentvotes.' stars</span>';
if($user_ID && !$alreadyVoted) echo '<p><a post="'.$id.'" user="'.$user_ID.'">'.__("Vote").'</a></p>';
if($user_ID && $alreadyVoted) echo '<br /><div class="voted">'.__("Voted").'</div>';
echo '</div>';
if(!$user_ID) echo '<div class="votsignup"><a href="'.get_bloginfo('url').'/wp-login.php?action=register">'.__('Register').'</a> '.__('to vote').'!</div>';
}

/*------ MAGNUS JS ------*/
function magnus_register_js() {
if (!is_admin()) {
wp_register_script('jqueryUI', get_template_directory_uri().'/js/jquery-ui.js', array("jquery"), true );
wp_register_script('refineslider', get_template_directory_uri().'/js/jquery.refineslide.min.js', array("jquery"), true );
wp_register_script('tabber', get_template_directory_uri().'/', 'js/tabber.js', array("jquery"), true );
wp_register_script('prettyPhoto', get_template_directory_uri().'/js/jquery.prettyPhoto.js', array("jquery"), true );
wp_register_script('ScrollTop', get_template_directory_uri().'/js/scrolltopcontrol.js', array("jquery"), true );
wp_register_script('Custom', get_template_directory_uri().'/js/custom.js', array("jquery"), true);
wp_register_script('hoverintent', get_template_directory_uri() . '/js/hoverIntent.js');
wp_register_script('superfish', get_template_directory_uri() . '/js/superfish.js', array( 'jquery', 'hoverintent' ));
wp_register_script('supersubs', get_template_directory_uri() . '/js/supersubs.js', array( 'superfish' ));
wp_register_script('rating', get_template_directory_uri().'/js/rating.js', array("jquery"), true );

wp_enqueue_script('jquery');
wp_enqueue_script('supersubs');
wp_enqueue_script('jqueryUI');
wp_enqueue_script('refineslider');
wp_enqueue_script('prettyPhoto');
wp_enqueue_script('ScrollTop');
wp_enqueue_script('Custom');
wp_enqueue_script('rating');

}
}
add_action('init', 'magnus_register_js');

/*------ MAGNUS CSS ------*/
function magnus_register_style() {
if (!is_admin()) {
wp_register_style('reset', get_template_directory_uri() . '/css/reset.css');
wp_register_style('format', get_template_directory_uri() . '/css/format.css');
wp_register_style('style', get_template_directory_uri() . '/style.css');
wp_register_style('refindeslide', get_template_directory_uri() . '/css/refineslide.css');
wp_register_style('prettyPhoto', get_template_directory_uri() . '/css/prettyPhoto.css');
wp_register_style('superfishbase', get_template_directory_uri() . '/css/superfish.css');
wp_register_style('responsive', get_template_directory_uri() . '/css/responsive.css');
wp_register_style('custom', stripslashes (get_option('magnus_codechildcss')));
wp_enqueue_style('reset');
wp_enqueue_style('format');
wp_enqueue_style('refindeslide');
wp_enqueue_style('style');
wp_enqueue_style('superfishbase');
wp_enqueue_style('prettyPhoto');
wp_enqueue_style('responsive');
}

if(get_option('magnus_code_allow_childcss') == 'true')
{
wp_enqueue_style('custom');
}

}
add_action('init', 'magnus_register_style');
function header_style()
{

require_once('magnus-color.php');
}
add_action('wp_head', 'header_style');
?>
Buyrun. functions.php dosyası bu şekilde.