Ejemplo n.º 1
0
<?php

include locate_template('sections/params/sponsors.php');
?>
<section <?php 
section_attr($id, $slug, 'sponsors');
?>
 data-page="<?php 
echo $paged;
?>
">
	<?php 
get_template_part('partials/nav');
?>
	<?php 
get_template_part('partials/side');
?>
	<div class="content">
		<h2 class="head">
			Sponsors
		</h2>

		<div class="top">
			<div class="filter">
				<div class="bar">
					<div class="select link dropdown country" data-filter="country" data-slug="<?php 
echo $slug;
?>
">
						<?php 
if ($country_param) {
Ejemplo n.º 2
0
<?php

global $post;
$id = get_the_ID();
$slug = get_post($post)->post_name;
$title = get_the_title();
global $current_user;
get_currentuserinfo();
$name = $current_user->user_firstname . ' ' . $current_user->user_lastname;
?>

<section <?php 
section_attr($id, $slug, null);
?>
>
	<?php 
get_template_part('partials/nav');
?>
	<?php 
get_template_part('partials/side');
?>
	<div class="content">
		<h2 class="head"><?php 
echo $title;
?>
</h2>
		<div class="user-info">
			<a href="<?php 
echo wp_logout_url(home_url());
?>
">Logout</a>
Ejemplo n.º 3
0
<?php

global $post;
$id = $post->ID;
$title = get_post($post)->post_title;
$slug = get_post($post)->post_name;
$faq_id = get_page_by_path('apply/faq')->ID;
$faq_link = get_permalink($faq_id);
$programs_link = get_permalink(get_page_by_path('residency-programs')->ID);
$residency_programs_query = array('post_type' => 'page', 'post__not_in' => array($faq_id), 'child_of' => get_page_by_path('apply')->ID, 'post_status' => 'publish', 'orderby' => 'menu_order', 'sort_order' => 'desc');
$residency_programs = get_pages($residency_programs_query);
?>
<section <?php 
section_attr($id, $slug, 'apply');
?>
>
	<?php 
get_template_part('partials/nav');
?>
	<?php 
get_template_part('partials/side');
?>
	<div class="content">
		<h2 class="title"><?php 
echo $title;
?>
</h2>
		<?php 
foreach ($residency_programs as $program) {
    setup_postdata($program);
    $title = get_post($program)->post_title;
Ejemplo n.º 4
0
<?php

global $post;
$id = $post->ID;
$slug = $post->post_name;
$title = $post->post_title;
$paged = 1;
?>
<section <?php 
section_attr($id, $slug, 'critics');
?>
 data-page="<?php 
echo $paged;
?>
">
	<?php 
get_template_part('partials/nav');
?>
	<?php 
get_template_part('partials/side');
?>
	<div class="content">
		<h2 class="head"><?php 
echo $title;
?>
</h2>
		<div class="shelves filter-this list items <?php 
echo $slug;
?>
">
			<?php 
Ejemplo n.º 5
0
<?php

$title = get_the_title();
$slug = $post->post_name;
$id = $post->ID;
$paged = 1;
if ($query_vars) {
    $slug = $query_vars['pagename'];
    $paged = $query_vars['paged'];
    $post = get_page_by_path($slug, OBJECT, 'page');
}
?>
<section <?php 
section_attr($id, $slug, 'earth');
?>
 data-page="<?php 
echo $paged;
?>
">
	<a href="<?php 
echo site_url();
?>
" class="logo swap">
		<div class="icon default"></div>
		<div class="icon hover"></div>
	</a>
	<div class="buttons">
		<div class="swap zoom out">
			<div class="icon default"></div>
			<div class="icon hover"></div>
		</div>
Ejemplo n.º 6
0
<?php

$home_id = get_page_by_path('home')->ID;
?>
<section <?php 
section_attr(null, 'home', null, 'International Studio &amp; Curatorial Program');
?>
 data-title="Home">
	<?php 
get_template_part('partials/nav');
?>
	<?php 
get_template_part('partials/side');
?>
	<div class="content">
		<h2 class="head">
			International Studio &amp; Curatorial Program
		</h2>
		<?php 
$sorted_events = array_slice(sort_upcoming_events(), 0, 3);
$count = sizeof($sorted_events);
$count_class = 'cols_' . $count;
if ($count) {
    echo '<h3 class="title">';
    $events_id = get_page_by_path('events')->ID;
    $events_permalink = get_the_permalink($events_id);
    echo '<a href="' . $events_permalink . '">Events &amp; Exhibitions</a>';
    echo '</h3>';
    echo '<div class="events module shelves grid upcoming ' . $count_class . '">';
    echo '<div class="eventsWrap">';
    foreach ($sorted_events as $event) {
Ejemplo n.º 7
0
<?php

global $post;
$id = $post->ID;
$title = $post->post_title;
$slug = $post->post_name;
$description = get_field('description', $id);
if (!$description) {
    $description = get_post($id)->post_content;
    // $content = $content_post;
    $description = apply_filters('the_content', $description);
    // $description = str_replace(']]>', ']]&gt;', $content);
}
?>
<section  <?php 
section_attr($id, $slug, $slug);
?>
>
	<?php 
get_template_part('partials/nav');
?>
	<?php 
get_template_part('partials/side');
?>
	<div class="content">
		<h2 class="head"><?php 
echo $title;
?>
</h2>
		<div class="module">
			<?php 
Ejemplo n.º 8
0
<?php

global $post;
$id = $post->ID;
$title = $post->post_title;
$slug = $post->post_name;
?>
<section  <?php 
section_attr($id, $slug, 'about');
?>
>
	<?php 
get_template_part('partials/nav');
?>
	<?php 
get_template_part('partials/side');
?>
	<div class="content">
		<h2 class="head"><?php 
echo $title;
?>
</h2>

		<?php 
$description = get_field('description', $id);
?>

		<div class="main">
			<div class="module description">
				<?php 
echo $description;
Ejemplo n.º 9
0
<?php

include locate_template('sections/params/contributors.php');
?>
<section <?php 
section_attr($id, $slug, 'contributors');
?>
 data-page="<?php 
echo $paged;
?>
">
	<?php 
get_template_part('partials/nav');
?>
	<?php 
get_template_part('partials/side');
?>
	<div class="content">
		<h2 class="head">
			Contributors
		</h2>

		<div class="top">
			<div class="filter">
				<div class="bar">
					<div class="select link dropdown country" data-filter="country" data-slug="<?php 
echo $slug;
?>
">
						<?php 
if ($country_param) {
Ejemplo n.º 10
0
<?php

include locate_template('sections/params/journals.php');
?>
<section <?php 
section_attr($id, $slug, 'journal');
?>
 data-page="<?php 
echo $paged;
?>
">
	<?php 
get_template_part('partials/nav');
?>
	<?php 
get_template_part('partials/side');
?>
	<div class="content">
		<h2 class="head"><?php 
the_title();
?>
</h2>
		<div class="top">
			<div class="filter">
				<?php 
if ($tag_param) {
    $tag_name = get_term_by('slug', $tag_param, 'post_tag')->name;
    echo '<div class="bar">';
} else {
    echo '<div class="bar hide">';
}
Ejemplo n.º 11
0
<?php

global $visit;
$title = $post->post_title;
$slug = $post->post_name;
$id = $post->ID;
$about = get_page_by_path('about');
?>

<section <?php 
section_attr($id, $slug, 'visit');
?>
>
	<?php 
get_template_part('partials/nav');
?>
	<?php 
get_template_part('partials/side');
?>
	<div class="content">
		<h2 class="head"><?php 
echo $title;
?>
</h2>

		<?php 
$office_hours = get_field('office_hours', $visit);
$exhibition_hours = get_field('exhibition_hours', $visit);
$address = strip_tags(get_field('address', $about));
$directions_base = 'https://www.google.com/maps/dir//';
$directions_link = $directions_base . $address;
Ejemplo n.º 12
0
get_header();
if ($query_vars) {
    $paged = $query_vars['paged'];
} else {
    $paged = 1;
}
$search_value = get_search_query();
if (!$search_value) {
    $search_value = 'Search';
}
// global $wp_query;
$search_count = $wp_query->found_posts;
?>
<section <?php 
section_attr(null, 'search', null, $search_value);
?>
 data-page="<?php 
echo $paged;
?>
">
	<?php 
get_template_part('partials/nav');
?>
	<?php 
get_template_part('partials/side');
?>
	<div class="content">
	<?php 
if ($search_value) {
    echo '<h3 class="title head">';
Ejemplo n.º 13
0
<?php

global $current_user;
get_currentuserinfo();
$name = $current_user->user_firstname . ' ' . $current_user->user_lastname;
global $post;
$id = get_the_ID();
$slug = get_post($post)->post_name;
$title = get_the_title();
$section_classes = 'greenroom';
?>

<section <?php 
section_attr($id, $slug, $section_classes, $title);
?>
>
	<?php 
get_template_part('partials/nav');
?>
	<?php 
get_template_part('partials/side');
?>
	<div class="content">
		<h2 class="head"><?php 
echo $title;
?>
</h2>
		<div class="user-info">
			<div>Hello, <?php 
echo $name;
?>
Ejemplo n.º 14
0
$date = get_the_date('F d, Y');
$featured_image = get_thumb($joural_post_id, null);
$featured_image_id = get_post_thumbnail_id();
$id = get_the_ID();
$event_classes = 'journal-post single';
$author_f = get_the_author_meta('first_name');
$author_l = get_the_author_meta('last_name');
$author = $author_f . ' ' . $author_l;
$images = get_attached_media('image', $id);
$show_featured_image = get_field('show_featured_image');
if (get_field('author')) {
    $author = get_field('author');
}
?>
<section <?php 
section_attr($id, $slug, $event_classes);
?>
>
	<?php 
get_template_part('partials/nav');
?>
	<?php 
get_template_part('partials/side');
?>

	<div class="content">
	<div class="inner">
		<div class="header">
		<h3 class="title date"><?php 
echo $date;
?>
Ejemplo n.º 15
0
<?php

include locate_template('sections/params/residents.php');
// $filter = $_GET['filter'];
?>
<section <?php 
section_attr($id, $slug, 'residents');
?>
 data-page="<?php 
echo $paged;
?>
">
	<?php 
get_template_part('partials/nav');
?>
	<?php 
get_template_part('partials/side');
?>
	<div class="content">
		<h2 class="head">
		<?php 
if ($slug == 'residents') {
    if ($program_param) {
        if ($program_param == 'ground_floor') {
            echo 'Ground Floor ';
        } else {
            echo 'International ';
        }
    }
    if ($type_param) {
        echo ucwords($type_param) . 's';
Ejemplo n.º 16
0
$website = http(get_field('website', $resident_id));
$studio_number = get_field('studio_number', $resident_id);
$resident_type = get_field('resident_type', $resident_id);
$residencies = array();
$resident_classes = 'resident single';
$residents_id = get_page_by_path('residents')->ID;
$residents_url = preg_replace('{/$}', '', get_permalink($residents_id));
if (is_past($resident_id)) {
    $resident_classes .= ' past';
}
if (have_rows('gallery') == false) {
    $resident_classes .= ' one_col';
}
?>
<section <?php 
section_attr($resident_id, $resident_slug, $resident_classes);
?>
>
	<?php 
get_template_part('partials/nav');
?>
	<?php 
get_template_part('partials/side');
?>
	<div class="content">
		<header class="sub">
			<div class="left">
				<?php 
if ($countries_array) {
    echo $countries;
}
Ejemplo n.º 17
0
$today = new DateTime();
$today = $today->format('Ymd');
$country_param = get_query_var('from');
$country_param_obj = get_page_by_path($country_param, OBJECT, 'country');
$country_param_title = $country_param_obj->post_title;
$country_param_id = $country_param_obj->ID;
$year_param = get_query_var('date');
$program_param = get_query_var('residency_program');
$program_param_name = get_program_title($program_param);
$page_url = get_the_permalink();
$sponsor_query = array('key' => 'residency_dates_0_sponsors', 'value' => '"' . $sponsor_id . '"', 'compare' => 'LIKE');
$paged = 1;
?>

<section <?php 
section_attr($sponsor_id, $sponsor_slug, 'sponsor residents');
?>
 data-page="<?php 
echo $paged;
?>
">
	<?php 
get_template_part('partials/nav');
?>
	<?php 
get_template_part('partials/side');
?>
	<div class="content">
		<h2 class="head">
			Sponsor</br>
			<?php 
Ejemplo n.º 18
0
<section <?php 
section_attr('error', 'error', 'error', 'Error');
?>
>
	<?php 
get_template_part('partials/nav');
?>
	<?php 
get_template_part('partials/side');
?>
	<div class="content">
	<h1 class="title">
		Sorry, this page can't be found
	</h1>	
	<?php 
if (!isset($search_value)) {
    $search_value = search_broken_link();
    $query_vars['s'] = $search_value;
    $search_query = new WP_Query(array('s' => $search_value, 'posts_per_page' => 24, 'paged' => 1, 'post_status' => 'publish'));
    $GLOBALS['wp_query'] = $search_query;
}
if ($search_value) {
    echo '<h3 class="title head">';
    echo '<span class="counter">' . $search_count . '</span>';
    echo ' results for ';
    echo '&ldquo;<span class="value">' . $search_value . '</span>&rdquo;';
    echo '</h3>';
    $placeholder_opacity = ' style="opacity: 0"';
}
echo '<form role="search" method="get" class="searchform" class="searchform" autocomplete="off" action="' . esc_url(home_url('/')) . '">';
echo '<div class="placeholder"' . $placeholder_opacity . '><span>Search</span></div>';
Ejemplo n.º 19
0
<?php

global $post;
$id = $post->ID;
$title = $post->post_title;
$slug = $post->post_name;
$content = $post->post_content;
$description = get_field('description', $id);
?>
<section  <?php 
section_attr($id, $slug, 'internships');
?>
>
	<?php 
get_template_part('partials/nav');
?>
	<?php 
get_template_part('partials/side');
?>
	<div class="content">
		<h2 class="head"><?php 
echo $title;
?>
</h2>
		<div class="module">
			<?php 
echo $description;
?>
		</div>
	</div>
	<?php 
Ejemplo n.º 20
0
$slug = $post->post_name;
$title = $post->post_title;
$parent = $post->post_parent;
if ($parent != 0) {
    $parent_title = get_post($parent)->post_title;
    $parent_slug = get_post($parent)->post_name;
    $parent_id = get_post($parent)->ID;
    $programs_id = $parent_id;
} else {
    $programs_id = $post->ID;
}
$programs_query = array('post_type' => 'page', 'orderby' => 'menu_order', 'order' => 'DESC', 'child_of' => $programs_id, 'post_status' => 'publish');
$programs = array_reverse(get_pages($programs_query));
?>
<section <?php 
section_attr($id, $slug, 'programs');
?>
>
	<?php 
get_template_part('partials/nav');
?>
	<?php 
get_template_part('partials/side');
?>
	<div class="content">
		<h2 class="head"><?php 
echo $title;
?>
</h2>
		<?php 
if (have_rows('images', $programs_id)) {
Ejemplo n.º 21
0
<?php

global $post;
$id = $post->ID;
$title = $post->post_title;
$slug = $post->post_name;
// $content = $post->post_content;
$content = get_field('description', $id);
$paypal = get_field('paypal', $id);
$footnote = get_field('footnote', $id);
?>

<section  <?php 
section_attr($id, $slug, 'support donate');
?>
>
	<?php 
get_template_part('partials/nav');
?>
	<?php 
get_template_part('partials/side');
?>
	<div class="content">
		<h2 class="head"><?php 
echo $title;
?>
</h2>
		<div class="module">
			<?php 
echo $content;
?>