Kaanep adlı üyeden alıntı

232. Satiri alabillirmiyim lutfen


kod aşağıdaki gibidir.

////////////////////////////////////////////////////////////////////////////////
// Global Define
////////////////////////////////////////////////////////////////////////////////
define('TEMPLATE_DOMAIN', 'pressimo'); // do not change this, its for translation and options string
define('REMOVE_UNWATED_ADD', 'yes');
define('SUPER_STYLE', 'yes');

////////////////////////////////////////////////////////////////////////////////
// Add Language Support
////////////////////////////////////////////////////////////////////////////////
load_theme_textdomain( TEMPLATE_DOMAIN, get_template_directory() . '/languages' );

////////////////////////////////////////////////////////////////////////////////
// Additional Theme Support
////////////////////////////////////////////////////////////////////////////////
if ( function_exists( 'add_theme_support' ) ) {
add_theme_support( 'post-thumbnails' );
set_post_thumbnail_size( 300, 250, true );
add_image_size( 'featured-post-img', 480, 280, true );
add_image_size( 'featured-slider-img', 750, 450, true );
// Add default posts and comments RSS feed links to head
add_theme_support( 'automatic-feed-links' );
add_editor_style();
if( class_exists('woocommerce') ) { add_theme_support('woocommerce'); }

if( REMOVE_UNWATED_ADD != 'yes' ) {

$custom_background_support = array(
'default-color' => '',
'default-image' => '',
'wp-head-callback' => '_custom_background_cb',
'admin-head-callback' => '',
'admin-preview-callback' => ''
);
add_theme_support( 'custom-background', $custom_background_support );

}

// Add support for custom headers.
$custom_header_support = array(
// The default header text color.
'default-text-color' => '',
'default-image' => '',
'header-text' => false,
// The height and width of our custom header.
'width' => 1120,
'height' => '',
// Support flexible heights.
'flex-height' => true,
// Random image rotation by default.
'random-default' => false,
// Callback for styling the header.
'wp-head-callback' => '',
// Callback for styling the header preview in the admin.
'admin-head-callback' => '',
// Callback used to display the header preview in the admin.
'admin-preview-callback' => '',
);
add_theme_support( 'custom-header', $custom_header_support );


if ( ! isset( $content_width ) ) $content_width = 550;
}

if ( function_exists( 'register_nav_menus' ) ) {
add_theme_support( 'menus' );
register_nav_menus( array(
'primary' => __( 'Primary Menu', TEMPLATE_DOMAIN ),
'footer' => __( 'Footer Menu', TEMPLATE_DOMAIN ),
));
function revert_wp_menu_page($args) {
global $bp_active,$bp;
$pages_args = array(
'depth' => 0,
'echo' => false,
'exclude' => '',
'title_li' => ''
);
$menu = wp_page_menu( $pages_args );
$menu = str_replace( array( '' ), array( '
    ', '
' ), $menu );
echo $menu;
if($bp_active=='true'):
do_action( 'bp_nav_items' );
endif;
?>

if ( !function_exists( 'wp_dtheme_page_menu_args' ) ) :
function wp_dtheme_page_menu_args( $args ) {
$args['show_home'] = true; return $args; }
add_filter( 'wp_page_menu_args', 'wp_dtheme_page_menu_args' );
endif;

}




///////////////////////////////////////////////////////////////////////////////
// Load Theme Cusrom Style
///////////////////////////////////////////////////////////////////////////////

function theme_custom_style_init() {
global $theme_version,$is_IE;
print '' . "\n"; ?>
add_action('wp_head','theme_custom_style_init');


///////////////////////////////////////////////////////////////////////////////
// Load Theme Default Fonts
///////////////////////////////////////////////////////////////////////////////
/*---------------------------load google webfont style--------------------------------------*/
function mp_theme_load_gwf_styles() {

if( get_theme_option('body_font') == 'Choose a font' || get_theme_option('body_font') == '') {
wp_register_style('default_body_gwf', 'http://fonts.googleapis.com/css?family=Open+Sans%3A100%2C200%2C300%2C400%2C600%2C700%2C900%2C100italic%2C200italic%2C300italic%2C400italic%2C600italic%2C700italic%2C900italic&subset=latin%2Ccyrillic-ext%2Clatin-ext%2Ccyrillic%2Cgreek%2Cgreek-ext%2Cvietnamese');
wp_enqueue_style( 'default_body_gwf');
}

if( get_theme_option('headline_font') == 'Choose a font' || get_theme_option('headline_font') == '') {
wp_register_style('default_headline_gwf', 'http://fonts.googleapis.com/css?family=Oswald%3A100%2C200%2C300%2C400%2C600%2C700%2C900%2C100italic%2C200italic%2C300italic%2C400italic%2C600italic%2C700italic%2C900italic&subset=latin%2Ccyrillic-ext%2Clatin-ext%2Ccyrillic%2Cgreek%2Cgreek-ext%2Cvietnamese');
wp_enqueue_style( 'default_headline_gwf');
}

if( get_theme_option('navigation_font') == 'Choose a font' || get_theme_option('navigation_font') == '') {
//wp_register_style('default_navigation_gwf', '');
//wp_enqueue_style( 'default_navigation_gwf');
}

}
add_action('wp_enqueue_scripts', 'mp_theme_load_gwf_styles');


///////////////////////////////////////////////////////////////////////////////
// Load Theme Styles and Javascripts
///////////////////////////////////////////////////////////////////////////////
/*---------------------------load styles--------------------------------------*/
if ( ! function_exists( 'theme_load_styles' ) ) :
function theme_load_styles() {
global $theme_version,$is_IE;

wp_enqueue_style( 'superfish', get_template_directory_uri(). '/lib/scripts/superfish-menu/css/superfish.css', array(), $theme_version );
wp_enqueue_style( 'tabber', get_template_directory_uri() . '/lib/scripts/tabber/tabber.css', array(), $theme_version );
if( is_singular() ):
wp_enqueue_style( 'fancybox-css', get_template_directory_uri() . '/lib/scripts/fancybox/jquery.fancybox-1.3.4.css', array(), $theme_version );
endif;

if ( ( is_home() || is_front_page() || is_page_template('page-templates/template-blog.php') ) && get_theme_option('slider_on') == 'Enable' ) {
wp_enqueue_style( 'jd-gallery-css', get_template_directory_uri(). '/lib/scripts/jd-gallery/jd.gallery.css', array(), $theme_version );
}

/*load font awesome */
wp_enqueue_style( 'font-awesome', get_template_directory_uri() . '/lib/scripts/fontawesome/css/font-awesome.css', array(), $theme_version );

if($is_IE):
wp_enqueue_style( 'font-awesome-ie7', get_template_directory_uri() . '/lib/scripts/fontawesome/css/font-awesome-ie7.css', array(), $theme_version );
endif;

/* load custom style */
if( file_exists( get_template_directory() . '/lib/styles/custom.css' ) ):
wp_enqueue_style( 'custom', get_template_directory_uri() . '/lib/styles/custom.css', array(), $theme_version );
endif;
?>

}
endif;
add_action( 'wp_enqueue_scripts', 'theme_load_styles' );




/*---------------------------load js scripts--------------------------------------*/
if ( ! function_exists( 'theme_load_scripts' ) ) :
function theme_load_scripts() {
global $theme_version,$is_IE;
wp_enqueue_script("jquery");
wp_enqueue_script('hoverIntent');
wp_enqueue_script('jquery-ui-core');

wp_enqueue_script('modernizr', get_template_directory_uri() . '/lib/scripts/modernizr/modernizr.js',false, $theme_version, true );

if($is_IE):
wp_enqueue_script('html5shim', '//html5shiv.googlecode.com/svn/trunk/html5.js', false,$theme_version, false );
endif;

wp_enqueue_script( 'tabber', get_template_directory_uri() . '/lib/scripts/tabber/tabber.js',false, $theme_version, true);

wp_enqueue_script('superfish-js', get_template_directory_uri() . '/lib/scripts/superfish-menu/js/superfish.js', false, $theme_version, true);
wp_enqueue_script('supersub-js', get_template_directory_uri() . '/lib/scripts/superfish-menu/js/supersubs.js',false, $theme_version, true);


wp_enqueue_script('jquery-mousewheel', get_template_directory_uri() . '/lib/scripts/fancybox/jquery.mousewheel-3.0.4.pack.js', false, $theme_version, true );
wp_enqueue_script('jquery-fancybox', get_template_directory_uri() . '/lib/scripts/fancybox/jquery.fancybox-1.3.4.pack.js', false, $theme_version, true );

if ( ( is_home() || is_front_page() || is_page_template('page-templates/template-blog.php') ) && get_theme_option('slider_on') == 'Enable' ) {
wp_enqueue_script('mootools-js', get_template_directory_uri(). '/lib/scripts/jd-gallery/mootools.v1.11.js', false, $theme_version, true );
wp_enqueue_script('jd-gallery2-js', get_template_directory_uri(). '/lib/scripts/jd-gallery/jd.gallery.v2.js', false, $theme_version, true );
wp_enqueue_script('jd-gallery-set-js', get_template_directory_uri(). '/lib/scripts/jd-gallery/jd.gallery.set.js', false, $theme_version, true );
wp_enqueue_script('jd-gallery-transitions-js', get_template_directory_uri(). '/lib/scripts/jd-gallery/jd.gallery.transitions.js', false, $theme_version, true );
}

wp_enqueue_script('custom-js', get_template_directory_uri() . '/lib/scripts/custom.js', false,$theme_version, true );

if ( is_singular() && get_option( 'thread_comments' ) && comments_open() ) wp_enqueue_script( 'comment-reply' ); ?>

endif;
add_action( 'wp_enqueue_scripts', 'theme_load_scripts' );



////////////////////////////////////////////////////////////////////////////////
// Add Theme Custom Functions
////////////////////////////////////////////////////////////////////////////////
include( get_template_directory() . '/lib/functions/theme-functions.php' );
include( get_template_directory() . '/lib/functions/option-functions.php' );
include( get_template_directory() . '/lib/functions/widget-functions.php' );
include( get_template_directory() . '/lib/functions/hook-functions.php' );

////////////////////////////////////////////////////////////////////////////////
// Add Theme Extra Functions
////////////////////////////////////////////////////////////////////////////////
if ( file_exists( get_template_directory() . '/dev-functions.php' ) ) {
include( get_template_directory() . '/dev-functions.php' );
}
?>