Пример #1
0
<?php

/*
Template Name: Overseas
*/
get_header();
$getTadaFunc = new tadaFunctions();
?>

<div class="main-content books overseas clearfix">
  <div class="row">
    <header id="page-top" class="col-sm-12 clearfix">
      <div id="page-top-menu" class="clearfix">
        <div class="page-top-menu-button new"><a href="<?php 
echo esc_url(home_url('/'));
?>
new-titles/picture/">
          <div class="up-button"></div>
          New Titles</a></div>
        <div class="page-top-menu-button back"><a href="<?php 
echo esc_url(home_url('/'));
?>
backlist/picture/">
          <div class="up-button"></div>
          Backlist</a></div>
        <div class="page-top-menu-button overseas"><a href="<?php 
echo esc_url(home_url('/'));
?>
overseas/picture/">
          <div class="up-button"></div>
          Overseas</a></div>
Пример #2
0
<?php

/*
Template Name: Backlist
*/
get_header();
$getTadaFunc = new tadaFunctions();
?>



<div class="main-content books backlist clearfix">
  <div class="row">
    <header id="page-top" class="col-sm-12 clearfix">
      <div id="page-top-menu" class="clearfix">
        <div class="page-top-menu-button new"><a href="<?php 
echo esc_url(home_url('/'));
?>
new-titles/picture/">
          <div class="up-button"></div>
          New Titles</a></div>
        <div class="page-top-menu-button back"><a href="<?php 
echo esc_url(home_url('/'));
?>
backlist/picture/">
          <div class="up-button"></div>
          Backlist</a></div>
        <div class="page-top-menu-button overseas"><a href="<?php 
echo esc_url(home_url('/'));
?>
overseas/picture/">
Пример #3
0
<?php

get_header();
$getTadaFunc = new tadaFunctions();
?>

<div class="main-content books<?php 
if (get_field('new') == true) {
    ?>
 new-titles<?php 
} else {
    ?>
 backlist<?php 
}
?>
">
  <div class="row">
    <header id="page-top" class="col-sm-12 clearfix">
      <div id="page-top-menu" class="clearfix">
        <div class="page-top-menu-button new"><a href="<?php 
echo esc_url(home_url('/'));
?>
new-titles/picture/">
          <div class="up-button"></div>
          New Titles</a></div>
        <div class="page-top-menu-button back"><a href="<?php 
echo esc_url(home_url('/'));
?>
backlist/picture/">
          <div class="up-button"></div>
          Backlist</a></div>
Пример #4
0
<?php

get_header();
$getTadaFunc = new tadaFunctions();
?>

<div class="main-content">
<?php 
get_template_part('content', 'page-top');
?>

<?php 
get_template_part('content', 'search-panel');
?>
        
<div id="main" class="row">
<?php 
while (have_posts()) {
    the_post();
    ?>
<div class="col-sm-12">
<article id="post-<?php 
    the_ID();
    ?>
" <?php 
    post_class();
    ?>
>
<div class="navbar navbar-kaiseisha"> 
  <!-- The WordPress Menu goes here -->
  <?php 
//$creator_by_name="saeko";
$arrAuthorMatch = array();
if ($creator_by_name) {
    $authorMatch = array('post_type' => 'creator', 's' => $creator_by_name, 'posts_per_page' => -1);
    query_posts($authorMatch);
    while (have_posts()) {
        the_post();
        array_push($arrAuthorMatch, get_the_ID());
    }
    //var_dump($arrAuthorMatch);
}
//var_dump($inc_or_exc);
if (!$paged) {
    $paged = 1;
}
$searchQuery = new tadaFunctions();
if (!$categories && !$age_groups && !$publication_year && !$countries_published_in && !$arrAuthorMatch && !$author_1 && !$illustrator && !$photographer) {
    $published = array('post_type' => 'book', 'posts_per_page' => 20, 's' => $title, 'paged' => $paged);
} else {
    $published = array('post_type' => 'book', 's' => $title, 'posts_per_page' => 20, 'paged' => $paged, 'meta_query' => $searchQuery->getSearch(array("categories" => $categories, "age_groups" => $age_groups, "publication_year" => $publication_year, "author_1" => $author_1, "illustrator" => $illustrator, "photographer" => $photographer, "inc_or_exc" => $inc_or_exc, "countries_published_in" => $countries_published_in, "arrAuthorMatch" => $arrAuthorMatch)));
}
// $published = array(
// 		    'post_type' => 'book',
// 		    'posts_per_page' => 500,
// 		    's' => $title,
// 		  	'paged' => get_query_var( 'paged' ),
// 		  	'meta_query' => array(
// 		  		array("key"=>"author_1_0_name","value"=>"633", "compare" => "LIKE"),
// 		  	)
// );
echo "<pre>";
Пример #6
0
<?php

/*
Template Name: Creators
*/
get_header();
$getTadaFunc = new tadaFunctions();
?>

<div class="main-content books creators clearfix">

<?php 
get_template_part('content', 'page-top');
?>

<?php 
get_template_part('content', 'search-panel');
?>
        
<div id="main" class="row">
    <div class="col-sm-12">
      <article id="post-<?php 
the_ID();
?>
" <?php 
post_class();
?>
>

        	<div class="navbar navbar-kaiseisha">          
          	<!-- The WordPress Menu goes here -->