HEX

Warning: set_time_limit() [function.set-time-limit]: Cannot set time limit - prohibited by configuration in /home/u547966/brikov.ru/www/wp-content/plugins/admin-menu-editor/menu-editor.php on line 745
Server: Apache
System: Linux 4.19.0-0.bpo.9-amd64 x86_64 at red40
User: u547966 (5490)
PHP: 5.3.29-mh2
Disabled: syslog, dl, popen, proc_open, proc_nice, proc_get_status, proc_close, proc_terminate, posix_mkfifo, chown, chgrp, accelerator_reset, opcache_reset, accelerator_get_status, opcache_get_status, pcntl_alarm, pcntl_fork, pcntl_waitpid, pcntl_wait, pcntl_wifexited, pcntl_wifstopped, pcntl_wifsignaled, pcntl_wifcontinued, pcntl_wexitstatus, pcntl_wtermsig, pcntl_wstopsig, pcntl_signal, pcntl_signal_dispatch, pcntl_get_last_error, pcntl_strerror, pcntl_sigprocmask, pcntl_sigwaitinfo, pcntl_sigtimedwait, pcntl_exec, pcntl_getpriority, pcntl_setpriority
Upload Files
File: /home/u547966/brikov.ru/www_old_1/wp-content/themes/brikov/templates/pictures.php
<?php
/*
Template Name: Портфолио
*/
?>
<!DOCTYPE html>
<html>
<body class="body-index">
	<?php get_header(); ?>
	<?php 

						$post_id = get_the_ID();	?>

<div class="text-container-holder text-container-holder07">
			<div class="wrap-container-holder03">
				<div class="title-holder">
					<h2><strong><span><em><?php single_post_title(); ?></em></span></strong></h2>
				</div>
				<div class="container-wrap">
					<div class="container cGallery_cont">
						<div class="gallery-container">
							<div class="gall-container">
								<div class="gallery">
									
									
									
									<?php $pstID_1 = get_field('sl_href_1',$post_id);
												$pstID_2 = get_field('sl_href_2',$post_id);
												$pstID_3 = get_field('sl_href_3',$post_id);
												$pstID_4 = get_field('sl_href_4',$post_id);
									?>
									
									<ul>
										<li><a href="<?php print_r(get_the_permalink($pstID_1));?>"><img src="<?php the_field('port_1',$post_id); ?>" alt="" width="492" height="281" /></a></li>
										<li><a href="<?php print_r(get_the_permalink($pstID_2));?>"><img src="<?php the_field('port_2',$post_id); ?>" alt="" width="492" height="281" /></a></li>
										<li><a href="<?php print_r(get_the_permalink($pstID_3));?>"><img src="<?php the_field('port_3',$post_id); ?>" alt="" width="492" height="281" /></a></li>
										<li><a href="<?php print_r(get_the_permalink($pstID_4));?>"><img src="<?php the_field('port_4',$post_id); ?>" alt="" width="492" height="281" /></a></li>
									</ul>
								</div>
								<ul class="switcher">
									<li><a href="#" class="active">1</a></li>
									<li><a href="#" >2</a></li>
									<li><a href="#" >3</a></li>
									<li><a href="#" >4</a></li>
								</ul>
							</div>
						</div>					<div class="text">
						<h3><?php single_post_title(); ?></h3>
						<p><span style="font-size: large;"><span style="font-family: georgia, palatino;">
							
							
						
							
					<? $post = get_post($post_id); // Записываем все данные записи 1 в объект $post
 echo $post->post_content; // Выводим конте	?>	
							
							
							
							
							
							
							
							
							</span></span></p>					</div>
					</div>
				</div>
			</div>
		</div>
	<?
// создаем экземпляр
$my_posts = new WP_Query;

// делаем запрос
$myposts = $my_posts->query( array(
	  'post_type' => 'page',
	  'orderby' => 'menu_order',
	  'order' => 'ASC',
	  'posts_per_page' => '-1',
  'post_parent' => get_the_ID()
) );

// обрабатываем результат
foreach( $myposts as $pst ){
	echo "<pre>";
	//print_r($pst);
	echo "</pre>";
	
	 $value = get_post_meta( $pst->ID,'img_prew', false  );


}

?>
			<div class="category-gallery text-container-holder text-container-holder03 cCategoryGallery_smallPict" id="alt03">
			<div class="wrap-container-holder03">
				<div class="holder">
					<ul>
                
<?php
	// обрабатываем результат
foreach( $myposts as $pst ){
		 $value = get_post_meta( $pst->ID,'img_prew', false  );
?>
 <li>
      <a href="<?php print_r(get_the_permalink($pst->ID))?>">
		  <img src="<?php print_r(wp_get_attachment_url( $value['0'] ));?>" alt="" width="250" height="500" class="grey">
		 	<img src="<?php print_r(wp_get_attachment_url( $value['0'] ));?>" alt="" width="189" height="378" class="color" style="opacity: 0;">
		  </a>
		  <span class="info"><span class="span-lupa-img" rel="clearbox"></span><span class="gallery-text"><?php echo esc_html( $pst->post_title );?> </span></span></li>	
		  <?
}

?>
	
					</ul>
				</div>
			</div>
		</div>

	
	
	
	<?php get_footer() ?>
				<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
			</body>
			</html>