Esempio n. 1
0
                        </li>
                        <?php 
    }
    ?>
                </ul>
                <div class="controllers">
                    <div class="prev-slider">
                        <span id="prev-slider-icon"></span>
                    </div>
                    <div class="next-slider">
                        <span id="next-slider-icon"></span>
                    </div>
                </div>

            </div>
            <br>
            <a class='link-section' href="<?php 
    echo $page_url;
    ?>
">
                <span class="read-more">
                </span>
                <p><?php 
    the_label('see_all_news');
    ?>
</p>
            </a>
        </div>
    </section>
    <?php 
}
Esempio n. 2
0
                    ?>
                                            <div class="text-container publication-description">
                                                <p>
                                                    <?php 
                    the_excerpt();
                    ?>
                                                </p>
                                            </div>
                                            <?php 
                }
                if (get_field('documents')) {
                    ?>
                                            <div class="download-section">
                                                <span class="download-icon"></span>
                                                <p class="download-text"><b><?php 
                    the_label('download_here');
                    ?>
</b></p>
                                                <br>
                                                <?php 
                    while (have_rows('documents')) {
                        the_row();
                        $doc = get_sub_field('document');
                        $doc_url = $doc['url'];
                        $doc_name = $doc['title'];
                        ?>
                                                    <a target="blank" href="<?php 
                        echo $doc_url;
                        ?>
"><?php 
                        echo $doc_name;
Esempio n. 3
0
<?php

$news_posts_args = array('post_type' => 'news_post', 'posts_per_page' => 4, 'post__not_in' => array(get_the_ID()), 'post_status' => array('publish'));
$news_posts_query = new WP_Query($news_posts_args);
if ($news_posts_query->have_posts()) {
    ?>
 
    <div class="related-posts">
        <h2><?php 
    the_label('latest');
    ?>
</h2>
        <div class="news-slider">
            <ul>
                <?php 
    while ($news_posts_query->have_posts()) {
        $news_posts_query->the_post();
        if (has_post_thumbnail()) {
            $attachment_id = get_post_thumbnail_id();
            $attachment_alt = get_post_meta($attachment_id, '_wp_attachment_image_alt', true);
            $size = 'news-thumb';
            $attachment_array = wp_get_attachment_image_src($attachment_id, $size);
            $attachment_src = $attachment_array[0];
        }
        ?>
                    <li>
                        <?php 
        if (has_post_thumbnail()) {
            ?>
                            <div class="img-container">
                                <img src="<?php 
Esempio n. 4
0
</h3>
                                </div>
                            </div>
                            <div class="text-container program-description">
                                <p>
                                    <?php 
        echo $programme_term->description;
        ?>
                                </p>
                            </div>
                        </li>
                        <?php 
    }
    ?>
                </ul>
            </div>
            <a class='link-section' href="<?php 
    echo $page_url;
    ?>
">
                <span class="read-more">
                </span>
                <p><?php 
    the_label('see_all');
    ?>
</p>
            </a>
        </div>
    </section>
    <?php 
}
Esempio n. 5
0
if (get_field('telephone', 'option') || get_field('fax', 'option')) {
    ?>
                    <div class="phone-section">
                        <span class="tel-icon icon"></span>
                        <div class="text-container">
                            <?php 
    if (get_field('telephone', 'option')) {
        echo '<p>';
        the_label('tel');
        echo ': ';
        echo get_field('telephone', 'option');
        echo '</p>';
    }
    if (get_field('fax', 'option')) {
        echo '<p>';
        the_label('fax');
        echo ': ';
        echo get_field('fax', 'option');
        echo '</p>';
    }
    ?>
                        </div>
                    </div>
                    <?php 
}
if (get_field('emails', 'option')) {
    ?>
                    <div class="mail-section">
                        <span class="mail-icon icon"></span>
                        <div class="text-container">
                            <?php 
Esempio n. 6
0
                if (has_excerpt()) {
                    the_excerpt();
                } else {
                    echo wp_trim_words(get_the_content(), 50);
                }
                ?>
                                                </p>
                                            </div>
                                            <a class="link-section" href="<?php 
                the_permalink();
                ?>
">
                                                <span class="read-more">
                                                </span>
                                                <p><?php 
                the_label('read_more');
                ?>
</p>
                                            </a>
                                        </li>
                                        <?php 
            }
            ?>
                                </ul>
                                <div class="pagination-section">
                                    <?php 
            pagination($news_posts_query);
            ?>
                                </div>
                            </div>
                        </div>
Esempio n. 7
0
            ?>
                                <a href="<?php 
            echo $doc_url;
            ?>
"><?php 
            echo $doc_name;
            ?>
</a>
                                <?php 
        }
        ?>
                        </div>
                    </li>
                    <?php 
    }
    ?>
            </ul>
            <a class='link-section' href="<?php 
    echo $page_url;
    ?>
">
                <span class="read-more"></span>
                <p><?php 
    the_label('see_all_publications');
    ?>
</p>
            </a>
        </div>
    </section>
    <?php 
}
Esempio n. 8
0
</p>
                                                        <?php 
            }
        }
        ?>
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                        <?php 
    }
    ?>
                </div>


            </div>
            <?php 
} else {
    ?>
            <h3>
                <?php 
    the_label('no_project_found');
    ?>
            </h3>
        <?php 
}
?>
    </div>
</div>
Esempio n. 9
0
        include 'parts/breadcrumbs.php';
        ?>
                <div class="white-bg news-section">
                    <div class="container">
                        <h1 class="news-title">
                            <?php 
        echo $page_title;
        ?>
                        </h1>
                        <div class="left-part article-style">
                            <div class="upper-text">
                                <div class="left-part">
                                    <p>
                                        <b>
                                            <?php 
        the_label('publication_date');
        ?>
                                        </b>   
                                        <?php 
        display_date();
        ?>
</p>
                                </div>
                                <div class="right-part social-media">
                                    <?php 
        $summary = '';
        if (has_excerpt()) {
            $summary = get_the_excerpt();
        } else {
            $summary = wp_trim_words(get_the_content(), 50);
        }
Esempio n. 10
0
                    } else {
                        $programme_link .= '?period=ongoing';
                    }
                    ?>
                                            <br>
                                            <a class='link-section' href="<?php 
                    echo $programme_link;
                    ?>
" title="<?php 
                    echo $programme_term->name;
                    ?>
">
                                                <span class="read-more">
                                                </span>
                                                <p><?php 
                    the_label('see_ongoing_projects');
                    ?>
</p>
                                            </a>
                                            <?php 
                }
                ?>
                                    </li>
                                    <?php 
            }
            ?>
                            </ul>
                        </div>
                    </div>
                </div>
            </section>
Esempio n. 11
0
<div class="input-wrapper">
    
    <form role="search" id="searchform" class="searchform" method="get" action="<?php 
echo esc_url(home_url('/'));
?>
">
        <input type="text" id="s" name="s" placeholder="<?php 
the_label('search');
?>
..">
    </form>
    <a href='#' class="search-trigger">
        <span class="search-icon"></span>
    </a>
</div>
Esempio n. 12
0
?>
<section class="full-page grey-background results-page">
    <div class="bigger-container">
        <?php 
// include 'parts/breadcrumb.php';
?>
        <div class="white-bg results-section">
            <div class="container">
                <h1><?php 
the_label('search_results');
?>
</h1>
                <p>
                    <?php 
$keyword = get_search_query();
the_label('results_for');
?>
 
                    <b><?php 
echo $keyword;
?>
</b>
                </p>
                <?php 
$paged = get_query_var('paged') ? get_query_var('paged') : 1;
$search_posts_args = array('post_type' => array('post', 'page', 'publication_post', 'project_post', 'news_post', 'partner_post'), 'posts_per_page' => 9, 'post_status' => array('publish'), 'paged' => $paged, 's' => $keyword);
$search_posts_query = new WP_Query($search_posts_args);
if ($search_posts_query->have_posts()) {
    ?>
 
                    <ul class="results-list">
Esempio n. 13
0
                            </div>
                            <?php 
        }
        /*
         * Partners
         */
        $page_title = $page->title;
        $page_url = $page->guid;
        $donors_posts_args = array('post_type' => array('donor_post'), 'posts_per_page' => -1, 'post_status' => array('publish'));
        $donors_posts_query = new WP_Query($donors_posts_args);
        if ($donors_posts_query->have_posts()) {
            ?>
 
                            <section class='news-section'>
                                <h2><?php 
            the_label('donors');
            ?>
 </h2>
                                <div class="partners-slider">
                                    <ul class="partners-bxslider">
                                        <?php 
            while ($donors_posts_query->have_posts()) {
                $donors_posts_query->the_post();
                if (has_post_thumbnail()) {
                    $attachment_id = get_post_thumbnail_id();
                    $attachment_alt = get_post_meta($attachment_id, '_wp_attachment_image_alt', true);
                    $size = 'full';
                    $attachment_array = wp_get_attachment_image_src($attachment_id, $size);
                    $attachment_src = $attachment_array[0];
                    $external_link = get_field('external_link');
                    ?>