Example #1
0
 public static function getSectionSlug()
 {
     $id = EdcMenu::getSectionID();
     $post = get_post($id);
     return $post->post_name;
 }
Example #2
0
	<?php 
    echo $info_box_content;
    ?>
</div>
<?php 
}
// checks if "hide contact info box" is checked on a per-page basis
$hide_contact_box = CFS()->get('hide_contact_info_box');
if ($hide_contact_box != 1) {
    ?>

<?php 
    global $post, $pagename;
    $displayPhoto = true;
    //disabled top level check - Jeremy 5/13/13
    $sectionSlug = EdcMenu::getSectionSlug();
    if ($sectionSlug == $post->post_name) {
        $displayPhoto = true;
    }
    ?>

<div class="sbr-card">

	<?php 
    if (in_array($sectionSlug, array('site-selection', 'expand-and-relocate', 'business-clusters')) or in_category('presidents-desk')) {
        ?>
		<?php 
        if ($displayPhoto) {
            ?>
			<img src="/wp-content/themes/edc/images/valerie-shaffer_card.jpg" alt="Valerie Shaffer">
		<?php 
Example #3
0
    <link  rel="stylesheet" type="text/css" href="<?php 
echo get_template_directory_uri();
?>
/css/ie6.css">
  <![endif]-->
  <link rel="stylesheet" type="text/css" href="<?php 
echo get_template_directory_uri();
?>
/style.css">
  <?php 
wp_head();
?>
</head>

<body <?php 
body_class('section-' . EdcMenu::getSectionSlug());
?>
>
  <div id="pg">
    <div id="hd">
      <div id="banner">
        <a id="logo" href="<?php 
echo home_url('/');
?>
" title="<?php 
echo esc_attr(get_bloginfo('name', 'display'));
?>
" rel="home"></a>

        <ul class="social">
          <li><a class="linkedin" target="_blank" href="http://www.linkedin.com/company/economic-development-corporation-of-wayne-county-in"><img src="/wp-content/themes/edc/images/linkedin.png"></a></li>
Example #4
0
if ('page' == $mobilePageType) {
    //do the pages main content
    ?>
	<?php 
    the_content();
    ?>



<?php 
} else {
    //do the page-list and home pages main content
    ?>
	<ul class="nav">
<?php 
    $mobile_page_query = new WP_Query(array('post_type' => 'mobile_page', 'post_parent' => is_archive() ? 0 : get_the_ID(), 'posts_per_page' => -1, 'order' => 'ASC', 'orderby' => 'menu_order', 'post__not_in' => EdcMenu::nav_excluded_page_ids(true)));
    while ($mobile_page_query->have_posts()) {
        $mobile_page_query->the_post();
        ?>
		<li id="post-<?php 
        the_ID();
        ?>
">
			<a href="<?php 
        the_permalink();
        ?>
"><?php 
        the_title();
        ?>
</a>
		</li>