Beispiel #1
0
function my_class_names($classes)
{
    global $post;
    if (is_tree('0')) {
        $classes[] = '';
    }
    // add the page title as a class to the body
    $classes[] = strtolower(str_replace(' ', '', get_the_title($post->ID)));
    return $classes;
}
Beispiel #2
0
<?php

get_header();
?>

<?php 
if (is_page('tecnologia')) {
    get_template_part('escolha');
}
?>

	<?php 
if (is_tree('14')) {
    get_template_part('content', 'pfc');
} else {
    get_template_part('content');
}
?>

<?php 
get_sidebar();
?>

<?php 
get_footer();
Beispiel #3
0
<?php

// Sidebar
global $current_site;
$depth = is_tree($post->ID) ? 2 : 1;
?>
	<div class="box_Sidebar">
      <div class="box_000 box_Menu">
        <div class="box_Title js_sIFR_Title_Section">
          <h2 class="tit_Section">Navigation.</h2>
        </div>
        <div class="box_Content">
          <div class="box_Top"> </div>
          <div class="box_Left"> </div>
          <div class="box_Right"> </div>
          <div class="box_Bottom"> </div>
  
          <div class="box_Main">
          <?php 
//include('cascading_menu.php');
?>
	

			<ul class="list_Menu_Sidebar">
			 <?php 
global $current_blog;
//echo ;
switch ($_SERVER['SERVER_NAME']) {
    case "shop.three.ie":
        echo "<li class=\"\"> <a href=\"/terms\" class=\"link_First_Level\" title=\"Terms &amp; Conditions\">Terms &amp; Conditions</a> </li>";
        wp_list_pages('title_li=&depth=' . $depth);
?>
</button>
          <?php 
if (is_tree(2273) || $mylocal == 'charlotte') {
    wp_nav_menu(array('theme_location' => 'charlotte', 'menu_id' => 'charlotte-menu'));
} elseif (is_tree(2285) || $mylocal == 'gaston-county') {
    wp_nav_menu(array('theme_location' => 'gaston', 'menu_id' => 'gaston-menu'));
} elseif (is_tree(2275) || $mylocal == 'lake-norman-area') {
    wp_nav_menu(array('theme_location' => 'lakenorman', 'menu_id' => 'lakenorman-menu'));
} elseif (is_tree(2277) || $mylocal == 'northeast') {
    wp_nav_menu(array('theme_location' => 'northeast', 'menu_id' => 'northeast-menu'));
} elseif (is_tree(2283) || $mylocal == 'south-carolina') {
    wp_nav_menu(array('theme_location' => 'southcarolina', 'menu_id' => 'southcarolina-menu'));
} elseif (is_tree(2279) || $mylocal == 'south-charlotte') {
    wp_nav_menu(array('theme_location' => 'southcharlotte', 'menu_id' => 'southcharlotte-menu'));
} elseif (is_tree(2281) || $mylocal == 'southeast-charlotte') {
    wp_nav_menu(array('theme_location' => 'southeastcharlotte', 'menu_id' => 'southeastcharlotte-menu'));
} else {
    wp_nav_menu(array('theme_location' => 'primary', 'menu_id' => 'primary-menu'));
}
?>
        </nav><!-- #site-navigation -->
        <?php 
if ($location == 'mainlocation') {
    get_template_part('template-parts/locations-main');
} else {
    ?>
          <div class="nav-bar-image">
            <?php 
    if (function_exists('yoast_breadcrumb')) {
        if (!is_singular('sitters')) {
Beispiel #5
0
 */
include 'globalConf.php';
get_header();
?>

<div id="primary">

	<div id="sidenav">
		<?php 
$ancestors = $post->ancestors;
/*
	Aus dem "SubNavi" Array in der globalConf.php die Seite prüfen und die Navigation auslesen.
*/
foreach ($PageID as $k => $v) {
    foreach ($v as $vk => $vv) {
        if (is_tree($vv['id']) or in_array($vv['id'], $ancestors)) {
            wp_nav_menu(array('menu' => $vv['menu']));
        }
    }
}
?>
	</div>

	<div id="content" class="fullpage">
		<a href="javascript:window.print()" id="druckicon"><img src="<?php 
bloginfo('template_directory');
?>
/images/drucken-icon.gif" alt="Drucken"></a>
		<?php 
while (have_posts()) {
    the_post();
<div class="post" id="post-<?php 
the_ID();
?>
">
<?php 
global $post;
if (is_tree(7) or is_tree(9)) {
    ?>
	
    <div id="content">
        <div id="content_wrap">
            <div id="content_hold">
                <div id="left">
                    <div id="meer">
                        <h1>Meer <?php 
    if (is_tree(7)) {
        ?>
Diensten <?php 
    } else {
        ?>
Activiteiten <?php 
    }
    ?>
</h1>
                        <?php 
    global $post;
    // Setup the global variable $post
    if (is_page() && $post->post_parent) {
        // Make sure we are on a page and that the page is a parent
        $kiddies = wp_list_pages('sort_column=menu_order&title_li=&child_of=' . $post->post_parent . '&echo=0');
    } else {
Beispiel #7
0
global $post;
switch (true) {
    case is_page('work'):
        // Redirect to first child page.
        $pagekids = get_pages("child_of=" . $post->ID . "&sort_column=menu_order");
        $firstchild = $pagekids[0];
        if ($firstchild) {
            wp_redirect(get_permalink($firstchild->ID), 301);
            exit;
        } else {
            get_template_part('index');
        }
        break;
    case has_children($post->ID):
        // If has child pages
        get_template_part('template-work-grid');
        break;
    case is_tree(5):
        // Is in the "About" tree.
        get_template_part('template-work-grid');
        break;
    case !empty($post->_custom_video_url):
        // Page has a video URL metabox value saved, so use the work detail template.
        get_template_part('template-work-detail');
        break;
    default:
        get_template_part('index');
        break;
}
?>
	
Beispiel #8
0
</h1>
					<?php 
        }
        ?>

					<div class="entry-content">
						<?php 
        the_content();
        ?>
						
						
						<?php 
        if (!is_page('1926')) {
            ?>
							<?php 
            if (is_tree('1926')) {
                ?>
						<!-- Begin MailChimp Signup Form -->
						<div class="newsletter-signup">
						<img class="img-border" src="/wp-content/uploads/2015/10/story-tree-content.jpg" alt="Sign Up for Leo's newsletter - 'The Story Tree'" />
						<?php 
                if (is_page('1841')) {
                    /* insight bird */
                    echo '<form action="//palaceofstories.us2.list-manage.com/subscribe/post?u=ac240678e7f9769631f2e8ed7&amp;id=09ac552b6a" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate>';
                } elseif (is_page('1922')) {
                    /* queen of the sea/wisdom rx */
                    echo '<form action="//palaceofstories.us2.list-manage.com/subscribe/post?u=ac240678e7f9769631f2e8ed7&amp;id=9d7f26f887" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate>';
                } elseif (is_page('1988')) {
                    /* song of the land/garliq */
                    echo '<form action="//palaceofstories.us2.list-manage.com/subscribe/post?u=ac240678e7f9769631f2e8ed7&amp;id=de9d87e487" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate>';
                }