Exemplo n.º 1
0
<?php

get_template_part('template-parts/head');
if (have_posts()) {
    while (have_posts()) {
        the_post();
        $fc_sub_text = dfw_get_field('fc_sub_text');
        $fc_welcome = dfw_get_field('fc_welcome');
    }
}
?>
<header id="header" class="header content__wrapper" role="banner">
  <div id="header__logo" class="header__right col__2-3 header__logo">
    <?php 
get_template_part('template-parts/partials/logo');
?>
    <div class="header__text">
      <?php 
echo $fc_welcome;
?>
    </div>
  </div>
  <div class="header__left col__1-3">
    <?php 
echo $fc_sub_text;
?>
  </div>
</header>
<main id="main" class="main" role="main">
Exemplo n.º 2
0
<?php

get_template_part('template-parts/partials/menu');
$ddd_cs_sub_tilte_one = dfw_get_field('ddd_cs_subtilte_one');
$ddd_cs_subtitle_two = dfw_get_field('ddd_cs_subtitle_two');
?>
<div class="content__wrapper top">
  
  <?php 
if (is_singular('casestudies')) {
    ?>
    <h2 class="case-studies__subtitle one"><?php 
    echo $ddd_cs_sub_tilte_one;
    ?>
</h2>
    <h2 class="case-studies__subtitle two"><?php 
    echo $ddd_cs_subtitle_two;
    ?>
</h2>
  <?php 
} else {
    ?>
    <?php 
    if (function_exists('dfw_entry_title')) {
        dfw_entry_title(array('has_link' => false));
    }
    ?>
    <div class="entry__date"><?php 
    echo get_the_date();
    ?>
</div>
Exemplo n.º 3
0
<?php

if (have_posts()) {
    while (have_posts()) {
        the_post();
        $ddd_featured_news_heading = dfw_get_field('ddd_featured_news_heading');
        $ddd_featured_news_link = dfw_get_field('ddd_featured_news_link');
        $ddd_choose_featured_article = dfw_get_field('ddd_choose_featured_article');
    }
}
wp_reset_postdata();
echo fcwp_heading_bar($ddd_featured_news_heading, $ddd_featured_news_link);
$case_study_query = new WP_Query(array('post_type' => 'post', 'posts_per_page' => '1', 'post__in' => array($ddd_choose_featured_article->ID), 'no_found_rows' => true));
if (have_posts()) {
    while ($case_study_query->have_posts()) {
        $case_study_query->the_post();
        $even_odd = $case_study_query->current_post % 2 == 0 ? 'odd' : 'even';
        ?>
		      <article id="entry-<?php 
        get_the_ID();
        ?>
" <?php 
        post_class('row entry news listing ' . $even_odd);
        ?>
 aria-labelledby="entry__header" role="article">
		        <div class="content__wrapper">
		          <?php 
        if (has_post_thumbnail()) {
            ?>
		          <section class="entry__profile-image col__1-2">
		            <a href="<?php 
Exemplo n.º 4
0
<?php

$bci_logo = dfw_get_field('bci_logo', true);
$bci_logo_retina = dfw_get_field('bci_logo_retina', true);
$bci_logo_svg = dfw_get_field('bci_logo_svg', true);
?>
<h1>
  <a href="<?php 
echo home_url();
?>
">
    <?php 
$logo_paths = array('image' => $bci_logo['url'], 'retina' => $bci_logo_retina['url'], 'svg' => $bci_logo_svg['url']);
dfw_svg_fallback($logo_paths, $bci_logo['alt'], 'logo', 'svg logo__svg');
?>
  </a>
</h1>
Exemplo n.º 5
0
<?php

if (have_posts()) {
    while (have_posts()) {
        the_post();
        $ddd_btn_case_studies = dfw_get_field('ddd_btn_case_studies');
        $ddd_btn_case_studies_link = dfw_get_field('ddd_btn_case_studies_link');
        $ddd_choose_featured_case_study = dfw_get_field('ddd_choose_featured_case_study');
    }
}
wp_reset_postdata();
echo fcwp_heading_bar($ddd_btn_case_studies, $ddd_btn_case_studies_link);
$case_study_query = new WP_Query(array('post_type' => 'casestudies', 'posts_per_page' => '1', 'post__in' => array($ddd_choose_featured_case_study->ID), 'no_found_rows' => true));
if (have_posts()) {
    while ($case_study_query->have_posts()) {
        $case_study_query->the_post();
        $even_odd = $case_study_query->current_post % 2 == 0 ? 'odd' : 'even';
        ?>
		      <article id="entry-<?php 
        get_the_ID();
        ?>
" <?php 
        post_class('row entry case_study listing ' . $even_odd);
        ?>
 aria-labelledby="entry__header" role="article">
		        <div class="content__wrapper">
		          <?php 
        if (has_post_thumbnail()) {
            ?>
		          <section class="entry__profile-image col__1-2">
		            <a href="<?php 
Exemplo n.º 6
0
<?php

$ddd_logo = dfw_get_field('ddd_logo', true);
$ddd_logo_retina = dfw_get_field('ddd_logo_retina', true);
$ddd_logo_svg = dfw_get_field('ddd_logo_svg', true);
?>
<h1>
  <a href="<?php 
echo home_url();
?>
">
    <?php 
$header_logo_paths = array('image' => $ddd_logo['url'], 'retina' => $ddd_logo_retina['url'], 'svg' => $ddd_logo_svg['url']);
dfw_svg_fallback($header_logo_paths, $ddd_logo['alt'], 'logo', 'svg logo__svg');
?>
  </a>
  <span class="ir">
    <?php 
echo bloginfo('name');
?>
  </span>
</h1>
Exemplo n.º 7
0
      <section class="entry__profile-image col__1-2">
        <?php 
get_template_part('template-parts/partials/thumbnail');
?>
      </section>
      <section class="entry__content col__1-2">
        <?php 
if (function_exists('dfw_page_title')) {
    dfw_page_title('Diana Duke Duncan');
}
?>
        <?php 
if (have_posts()) {
    while (have_posts()) {
        $ddd_btn_about_text = dfw_get_field('ddd_btn_about_text');
        $ddd_btn_about_link = dfw_get_field('ddd_btn_about_link');
        the_post();
        the_content();
        ?>
            <div class="button__one">
              <a href="<?php 
        echo $ddd_btn_about_link;
        ?>
">
                <?php 
        echo $ddd_btn_about_text;
        ?>
              </a>
            </div>
            <?php 
    }
Exemplo n.º 8
0
<?php

if (have_posts()) {
    while (have_posts()) {
        the_post();
        $fc_bottom_line = dfw_get_field('fc_bottom_line');
        $fc_sub_text = dfw_get_field('fc_sub_text');
    }
}
?>
</main>
<footer id="footer" class="footer" role="contentinfo">
  <div class="footer__left">
    <?php 
echo $fc_sub_text;
?>
  </div>
  <div class="info">
    <div class="info__text">
      <?php 
echo $fc_bottom_line;
?>
    </div>
    <div class="links">
      <ul>
        <li class="fulcrum">
          <a href="http://fulcrumcreatives.com/">
            <img src="<?php 
echo FCWP_URI;
?>
/images/fulcrum-creatives-logo-@2.png" alt="Fulcrum Creatives" />
Exemplo n.º 9
0
<?php

if (have_posts()) {
    while (have_posts()) {
        the_post();
        $ddd_affiliate_logo = dfw_get_field('ddd_affiliate_logo', true);
        $ddd_affiliate_logo_retina = dfw_get_field('ddd_affiliate_logo_retina', true);
        $ddd_affiliate_logo_svg = dfw_get_field('ddd_affiliate_logo_svg', true);
        $ddd_affiliate_header = dfw_get_field('ddd_affiliate_header');
        $ddd_affiliate_copy = dfw_get_field('ddd_affiliate_copy');
        echo fcwp_heading_bar($ddd_affiliate_header);
        ?>
    <section class="affiliates">
      <h4 class="bene__logo">
        <a href="http://benefactorgroup.com/">
          <?php 
        $bene_logo_paths = array('image' => $ddd_affiliate_logo['url'], 'retina' => $ddd_affiliate_logo_retina['url'], 'svg' => $ddd_affiliate_logo_svg['url']);
        dfw_svg_fallback($bene_logo_paths, $ddd_affiliate_logo['alt'], 'logo', 'svg logo__svg');
        ?>
        </a>
        <span class="ir">
          <?php 
        echo _e('The Benefactor Group', 'fcwp');
        ?>
        </span>
      </h4>
      <div class="affiliation__text">
        <?php 
        echo $ddd_affiliate_copy;
        ?>
      </div>
Exemplo n.º 10
0
<?php

if (have_posts()) {
    while (have_posts()) {
        the_post();
        $ddd_clients_heading = dfw_get_field('ddd_clients_heading');
    }
}
wp_reset_postdata();
echo fcwp_heading_bar($ddd_clients_heading);
?>
<section class="clients">
  <?php 
if (have_rows('ddd_clients')) {
    $i = 0;
    while (have_rows('ddd_clients')) {
        the_row();
        $ddd_client_logo = dfw_get_sub_field('ddd_clients', 'ddd_client_logo');
        $ddd_client_url = dfw_get_sub_field('ddd_clients', 'ddd_client_url');
        if ($i % 3 == 0) {
            ?>
      <div class="row">
      <?php 
        }
        ?>
        <div class="col__1-3 client">
          <div class="inner">
            <div class="client__logo">
              <?php 
        if ($ddd_client_logo) {
            ?>
Exemplo n.º 11
0
<?php

$count = wp_count_posts('post');
if (have_posts()) {
    while (have_posts()) {
        the_post();
        $ddd_btn_case_studies = dfw_get_field('ddd_btn_case_studies');
        $ddd_btn_case_studies_link = dfw_get_field('ddd_btn_case_studies_link');
        if ($count->publish >= 5) {
            ?>
    <div class="button__one centered">
      <a href="<?php 
            echo $ddd_btn_case_studies_link;
            ?>
">
        <?php 
            echo $ddd_btn_case_studies;
            ?>
      </a>
    </div>
<?php 
        }
    }
}
wp_reset_postdata();