Example #1
0
 function tf2013_setup()
 {
     global $defaultoptions;
     global $options;
     // This theme styles the visual editor with editor-style.css to match the theme style.
     add_editor_style();
     // This theme uses post thumbnails
     add_theme_support('post-thumbnails');
     // Add default posts and comments RSS feed links to head
     add_theme_support('automatic-feed-links');
     $args = array('default-color' => $defaultoptions['background-header-color'], 'background_repeat' => 'no-repeat', 'background_position_x' => 'left', 'background_position_y' => 'top', 'width' => 1173, 'height' => 135, 'default-image' => get_template_directory_uri() . '/grafiken/techfak-2013/header-techfak-3b.png', 'uploads' => true, 'random-default' => false, 'flex-height' => false, 'flex-width' => false, 'header-text' => true, 'default-text-color' => '#003366');
     add_theme_support('custom-header', $args);
     if (function_exists('add_theme_support')) {
         add_theme_support('post-thumbnails');
         set_post_thumbnail_size(150, 150);
         // default Post Thumbnail dimensions
     }
     if (function_exists('add_image_size')) {
         add_image_size('teaser-thumb', $options['teaser-thumbnail_width'], $options['teaser-thumbnail_height'], $options['teaser-thumbnail_crop']);
         //300 pixels wide (and unlimited height)
     }
     // Make theme available for translation
     // Translations can be filed in the /languages/ directory
     load_theme_textdomain('tf2013', get_template_directory() . '/languages');
     $locale = get_locale();
     $locale_file = get_template_directory() . "/languages/{$locale}.php";
     if (is_readable($locale_file)) {
         require_once $locale_file;
     }
     // This theme uses wp_nav_menu() in one location.
     register_nav_menus(array('primary' => __('Hauptnavigation', 'tf2013'), 'targetmenu' => __('Zielgruppenmenu', 'tf2013')));
     if (!is_blogs_fau_de()) {
         register_nav_menu('tecmenu', __('Technische Navigation (Kontakt, Impressum, etc)', 'tf2013'));
     }
     if ($options['login_errors'] == 0) {
         /** Abschalten von Fehlermeldungen auf der Loginseite */
         add_filter('login_errors', create_function('$a', "return null;"));
     }
     /** Entfernen der Wordpressversionsnr im Header */
     remove_action('wp_head', 'wp_generator');
     /* Zulassen von Shortcodes in Widgets */
     add_filter('widget_text', 'do_shortcode');
 }
Example #2
0
<?php

/*
 * Footer
 */
?>
			<hr id="vorfooter" />
	      	</div>  <!-- end: content -->
     	</div>  <!-- end: main -->
		<footer><div id="footer">  <!-- begin: footer -->
			<div id="footerinfos">  <!-- begin: footerinfos -->
				<?php 
if (is_blogs_fau_de()) {
    ?>
				<nav role="navigation">
                        <div id="tecmenu">   <!-- begin: tecmenu -->
		        	<h2 class="skip"><a name="hilfemarke" id="hilfemarke">Technisches Menu</a></h2>
					<div class="menu-tecmenue-container">
						<ul id="menu-tecmenue" class="menu">
						<li><a href="http://blogs.fau.de/">Blogs@FAU</a></li>
						<li><a href="http://www.portal.uni-erlangen.de/forums/viewforum/94">Forum</a></li>
						<li><a href="http://blogs.fau.de/hilfe/">Hilfe</a></li>
						<li><a href="<?php 
    bloginfo('url');
    ?>
/kontakt/">Kontakt</a></li>
						<li><a href="http://blogs.fau.de/impressum/">Impressum</a></li>
						<li><a href="http://blogs.fau.de/nutzungsbedingungen/">Nutzungsbedingungen</a></li>
						</ul>
					</div>
	        	</div>  <!-- end: tecmenu -->