post['id'] == 4) { $body_class .= ' layouts-page'; } ?> tpl('_/head', array()); wp_head(); ?> id="body-index" class="page-template-default page page-id-6" > tpl('_/preloader', array());?> tpl('_/navbar', array());?> 'attachment', 'orderby' => 'ID', 'order' => 'DESC', 'post_mime_type' => 'image', )); */ $images = array(); $args = array( 'order' => 'DESC', 'post_type' => 'attachment', 'post_parent' => 6, 'post_mime_type' => 'image', 'post_status' => null, 'numberposts' => -1, ); $attachments = get_posts($args); if($attachments) { foreach ($attachments as $attachment) { //$img_url = wp_get_attachment_image_url($attachment->ID, '300x300crop'); //echo $img_url; $images[] = array( 'id' => $attachment->ID, 'date' => get_the_date('Y.m.d.H.i', $attachment->ID), 'author' => $attachment->post_author, 'preview' => wp_get_attachment_image_url($attachment->ID, '300x300crop'), 'full' => wp_get_attachment_image_url($attachment->ID, '1920x1280'), ); } } //var_dump($images); $img_arr = array(); if(count($images)) { foreach($images as $img) { $_date = explode('.', $img['date']); $img_arr['' . $_date[0]]['' . $_date[1]]['' . $_date[2]][] = $img; } } //var_dump($img_arr); //wp_reset_postdata(); ?>

Ход строительства

$year_arr) { //$year_arr = array_reverse($year_arr, true), foreach($year_arr as $month => $month_arr) { //$month_arr = array_reverse($month_arr, true), foreach($month_arr as $day => $day_arr) { $root = $day_arr[0]; $user = get_user_by('id', $root['author']); $userinfo = get_userdata($root['author']); ?>
..
post['id'] == 6) { $this->tpl('_/modals/building', array()); } if($this->post['id'] == 184 ){ $this->tpl('_/modals/message', array()); } if(is_front_page()) { $this->tpl('_/modals/message', array()); $this->tpl('_/modals/video', array()); } ?> post['id'], array(1,4,6)) ) { //if(in_array($this->post['id'], array(1,4,6)) || get_post_type($this->post['id']) == 'apartment') { $this->tpl('_/script/bodymovin', array()); } ?> post['id'] == 6 || $this->post['id'] == 208) { $this->tpl('_/script/lightgallery', array()); } if($this->post['id'] == 4 ){ //$this->tpl('_/script/spinner', array()); } if($this->post['id'] == 6 ){ //$this->tpl('_/script/spinner', array()); $this->tpl('_/script/scrollbar', array()); } if($this->post['id'] == 184 ){ $this->tpl('_/script/validationEngine', array()); } if(get_post_type() == "doc"){ $this->tpl('_/script/scrollbar', array()); } ?> tpl('_/script/2gisMap', array()); $this->tpl('_/script/validationEngine', array()); $this->tpl('_/script/scrollr', array()); $this->tpl('_/script/plax', array()); //$this->tpl('_/script/spinner', array()); $this->tpl('_/script/response', array()); } ?> tpl('editor/modal', array()); ?>